@linagora/linid-im-front-corelib 0.0.66 → 0.0.67
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.
- package/dist/core-lib.es.js +15506 -13172
- package/dist/core-lib.umd.js +83 -83
- package/dist/package.json +3 -2
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/src/composables/useDialog.d.ts +4 -1
- package/package.json +3 -2
package/dist/core-lib.umd.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(et,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(et=typeof globalThis<"u"?globalThis:et||self,r(et.CoreLib={},et.Vue))})(this,(function(et,r){"use strict";function pg(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const vl=pg(r);let xa=null;function bg(e){if(xa!==null){console.warn("[LinID CoreLib] Module Federation has already been initialized. Re-initialization is ignored.");return}xa=e}function Qu(){if(xa===null)throw new Error("[LinID CoreLib] Module Federation is not initialized. Call setModuleFederation() first.");return xa}const Wu=e=>r.defineAsyncComponent(()=>Qu().loadRemote(e).then(t=>{if(!t?.default)throw new Error(`Failed to load component from ${e}`);return t.default}));const to=typeof window<"u";let Er;const ka=e=>Er=e;process.env.NODE_ENV;const ml=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Tr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Fo;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Fo||(Fo={}));function Yu(e,t){for(const n in t){const o=t[n];if(!(n in e))continue;const a=e[n];Tr(a)&&Tr(o)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=Yu(a,o):e[n]=o}return e}const Ku=()=>{};function Gu(e,t,n,o=Ku){e.add(t);const a=()=>{e.delete(t)&&o()};return!n&&r.getCurrentScope()&&r.onScopeDispose(a),a}function no(e,...t){e.forEach(n=>{n(...t)})}const yg=e=>e(),Xu=Symbol(),hl=Symbol();function gl(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],a=e[n];Tr(a)&&Tr(o)&&e.hasOwnProperty(n)&&!r.isRef(o)&&!r.isReactive(o)?e[n]=gl(a,o):e[n]=o}return e}const _g=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Sg(e){return!Tr(e)||!Object.prototype.hasOwnProperty.call(e,_g)}const{assign:xn}=Object;function Ju(e){return!!(r.isRef(e)&&e.effect)}function Zu(e,t,n,o){const{state:a,actions:i,getters:l}=t,s=n.state.value[e];let d;function m(){!s&&(process.env.NODE_ENV==="production"||!o)&&(n.state.value[e]=a?a():{});const v=process.env.NODE_ENV!=="production"&&o?r.toRefs(r.ref(a?a():{}).value):r.toRefs(n.state.value[e]);return xn(v,i,Object.keys(l||{}).reduce((b,p)=>(process.env.NODE_ENV!=="production"&&p in v&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`),b[p]=r.markRaw(r.computed(()=>{ka(n);const _=n._s.get(e);return l[p].call(_,_)})),b),{}))}return d=pl(e,m,t,n,o,!0),d}function pl(e,t,n={},o,a,i){let l;const s=xn({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const d={deep:!0};process.env.NODE_ENV!=="production"&&(d.onTrigger=N=>{m?_=N:m==!1&&!k._hotUpdating&&(Array.isArray(_)?_.push(N):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let m,v,b=new Set,p=new Set,_;const g=o.state.value[e];!i&&!g&&(process.env.NODE_ENV==="production"||!a)&&(o.state.value[e]={});const E=r.ref({});let C;function w(N){let I;m=v=!1,process.env.NODE_ENV!=="production"&&(_=[]),typeof N=="function"?(N(o.state.value[e]),I={type:Fo.patchFunction,storeId:e,events:_}):(gl(o.state.value[e],N),I={type:Fo.patchObject,payload:N,storeId:e,events:_});const $=C=Symbol();r.nextTick().then(()=>{C===$&&(m=!0)}),v=!0,no(b,I,o.state.value[e])}const T=i?function(){const{state:I}=n,$=I?I():{};this.$patch(D=>{xn(D,$)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Ku;function x(){l.stop(),b.clear(),p.clear(),o._s.delete(e)}const y=(N,I="")=>{if(Xu in N)return N[hl]=I,N;const $=function(){ka(o);const D=Array.from(arguments),P=new Set,F=new Set;function Y(ce){P.add(ce)}function X(ce){F.add(ce)}no(p,{args:D,name:$[hl],store:k,after:Y,onError:X});let Z;try{Z=N.apply(this&&this.$id===e?this:k,D)}catch(ce){throw no(F,ce),ce}return Z instanceof Promise?Z.then(ce=>(no(P,ce),ce)).catch(ce=>(no(F,ce),Promise.reject(ce))):(no(P,Z),Z)};return $[Xu]=!0,$[hl]=I,$},q=r.markRaw({actions:{},getters:{},state:[],hotState:E}),L={_p:o,$id:e,$onAction:Gu.bind(null,p),$patch:w,$reset:T,$subscribe(N,I={}){const $=Gu(b,N,I.detached,()=>D()),D=l.run(()=>r.watch(()=>o.state.value[e],P=>{(I.flush==="sync"?v:m)&&N({storeId:e,type:Fo.direct,events:_},P)},xn({},d,I)));return $},$dispose:x},k=r.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&to?xn({_hmrPayload:q,_customProperties:r.markRaw(new Set)},L):L);o._s.set(e,k);const ee=(o._a&&o._a.runWithContext||yg)(()=>o._e.run(()=>(l=r.effectScope()).run(()=>t({action:y}))));for(const N in ee){const I=ee[N];if(r.isRef(I)&&!Ju(I)||r.isReactive(I))process.env.NODE_ENV!=="production"&&a?E.value[N]=r.toRef(ee,N):i||(g&&Sg(I)&&(r.isRef(I)?I.value=g[N]:gl(I,g[N])),o.state.value[e][N]=I),process.env.NODE_ENV!=="production"&&q.state.push(N);else if(typeof I=="function"){const $=process.env.NODE_ENV!=="production"&&a?I:y(I,N);ee[N]=$,process.env.NODE_ENV!=="production"&&(q.actions[N]=I),s.actions[N]=I}else process.env.NODE_ENV!=="production"&&Ju(I)&&(q.getters[N]=i?n.getters[N]:I,to&&(ee._getters||(ee._getters=r.markRaw([]))).push(N))}if(xn(k,ee),xn(r.toRaw(k),ee),Object.defineProperty(k,"$state",{get:()=>process.env.NODE_ENV!=="production"&&a?E.value:o.state.value[e],set:N=>{if(process.env.NODE_ENV!=="production"&&a)throw new Error("cannot set hotState");w(I=>{xn(I,N)})}}),process.env.NODE_ENV!=="production"&&(k._hotUpdate=r.markRaw(N=>{k._hotUpdating=!0,N._hmrPayload.state.forEach(I=>{if(I in k.$state){const $=N.$state[I],D=k.$state[I];typeof $=="object"&&Tr($)&&Tr(D)?Yu($,D):N.$state[I]=D}k[I]=r.toRef(N.$state,I)}),Object.keys(k.$state).forEach(I=>{I in N.$state||delete k[I]}),m=!1,v=!1,o.state.value[e]=r.toRef(N._hmrPayload,"hotState"),v=!0,r.nextTick().then(()=>{m=!0});for(const I in N._hmrPayload.actions){const $=N[I];k[I]=y($,I)}for(const I in N._hmrPayload.getters){const $=N._hmrPayload.getters[I],D=i?r.computed(()=>(ka(o),$.call(k,k))):$;k[I]=D}Object.keys(k._hmrPayload.getters).forEach(I=>{I in N._hmrPayload.getters||delete k[I]}),Object.keys(k._hmrPayload.actions).forEach(I=>{I in N._hmrPayload.actions||delete k[I]}),k._hmrPayload=N._hmrPayload,k._getters=N._getters,k._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&to){const N={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(I=>{Object.defineProperty(k,I,xn({value:k[I]},N))})}return o._p.forEach(N=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&to){const I=l.run(()=>N({store:k,app:o._a,pinia:o,options:s}));Object.keys(I||{}).forEach($=>k._customProperties.add($)),xn(k,I)}else xn(k,l.run(()=>N({store:k,app:o._a,pinia:o,options:s})))}),process.env.NODE_ENV!=="production"&&k.$state&&typeof k.$state=="object"&&typeof k.$state.constructor=="function"&&!k.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
2
2
|
state: () => new MyClass()
|
|
3
|
-
Found in store "${
|
|
3
|
+
Found in store "${k.$id}".`),g&&i&&n.hydrate&&n.hydrate(k.$state,g),m=!0,v=!0,k}function Ea(e,t,n){let o;const a=typeof t=="function";o=a?n:t;function i(l,s){const d=r.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&Er&&Er._testing?null:l)||(d?r.inject(ml,null):null),l&&ka(l),process.env.NODE_ENV!=="production"&&!Er)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
4
4
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
5
|
-
This will fail in production.`);i=Kn,i._s.has(e)||(o?gl(e,t,a,i):zs(e,a,i),process.env.NODE_ENV!=="production"&&(l._pinia=i));const d=i._s.get(e);if(process.env.NODE_ENV!=="production"&&s){const c="__hot:"+e,g=o?gl(c,t,a,i,!0):zs(c,Yt({},a),i,!0);s._hotUpdate(g),delete i.state.value[c],i._s.delete(c)}if(process.env.NODE_ENV!=="production"&&Sr){const c=r.getCurrentInstance();if(c&&c.proxy&&!s){const g=c.proxy,v="_pStores"in g?g._pStores:g._pStores={};v[e]=d}}return d}return l.$id=e,l}let Ia=null;function Um(e){if(Ia!==null){console.warn("[LinID CoreLib] Pinia store has already been initialized. Re-initialization is ignored.");return}Ia=e}function ta(){if(Ia===null)throw new Error("[LinID CoreLib] Pinia store is not initialized. Call setPiniaStore() first.");return Ia}const Hs=()=>Qm(ta()),Qm=Na("linidZoneStore",{state:()=>({zones:{}}),actions:{register(e,t){this.zones[e]||(this.zones[e]=[]),this.zones[e].push(t)},registerOnce(e,t){this.zones[e]?.some(({plugin:n})=>n===t.plugin)||this.register(e,t)}}}),Wm=r.defineComponent({inheritAttrs:!1,__name:"LinidZoneRenderer",props:{zone:{}},setup(e){const t=e,a=(Hs().zones[t.zone]||[]).map(o=>({...o,component:Ns(o.plugin)}));return(o,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(a),(i,s)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.component),r.mergeProps({key:i.plugin+s},{ref_for:!0},{...o.$attrs,...i.props}),null,16))),128)),r.unref(a).length===0?r.renderSlot(o.$slots,"default",{key:0}):r.createCommentVNode("",!0)],64))}});let Da=null;function Km(e){if(Da!==null){console.warn("[LinID CoreLib] Dayjs instance has already been initialized. Re-initialization is ignored.");return}Da=e}function js(){if(Da===null)throw new Error("[LinID CoreLib] Dayjs instance is not initialized. Call setDayjsInstance() first.");return Da}const Gn="YYYY-MM-DD";function Us(){const e=js();function t(o,l){return typeof o=="string"?e(o,l||Gn,!0):e(o)}function n(o,l){const i=o.map(s=>t(s,l)).filter(s=>s.isValid());return i.length===0?null:i.reduce((s,u)=>u.isAfter(s)?u:s)}function a(o,l){const i=o.map(s=>t(s,l)).filter(s=>s.isValid());return i.length===0?null:i.reduce((s,u)=>u.isBefore(s)?u:s)}return{maxDate:n,minDate:a,toDayjs:t}}var bl=function(e,t){return bl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},bl(e,t)};function $a(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");bl(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function pl(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function yl(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),o,l=[],i;try{for(;(t===void 0||t-- >0)&&!(o=a.next()).done;)l.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return l}function _l(e,t,n){if(n||arguments.length===2)for(var a=0,o=t.length,l;a<o;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Sn(e){return typeof e=="function"}function Qs(e){var t=function(a){Error.call(a),a.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Sl=Qs(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
6
|
-
`+n.map(function(a
|
|
7
|
-
`):"",this.name="UnsubscriptionError",this.errors=n}});function wl(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Ba=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,a,o,l;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=pl(i),u=s.next();!u.done;u=s.next()){var d=u.value;d.remove(this)}}catch(_){t={error:_}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}else i.remove(this);var c=this.initialTeardown;if(Sn(c))try{c()}catch(_){l=_ instanceof Sl?_.errors:[_]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var v=pl(g),h=v.next();!h.done;h=v.next()){var f=h.value;try{Ys(f)}catch(_){l=l??[],_ instanceof Sl?l=_l(_l([],yl(l)),yl(_.errors)):l.push(_)}}}catch(_){a={error:_}}finally{try{h&&!h.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}}if(l)throw new Sl(l)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Ys(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&wl(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&wl(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Ws=Ba.EMPTY;function Ks(e){return e instanceof Ba||e&&"closed"in e&&Sn(e.remove)&&Sn(e.add)&&Sn(e.unsubscribe)}function Ys(e){Sn(e)?e():e.unsubscribe()}var Ym={Promise:void 0},Gm={setTimeout:function(e,t){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];return setTimeout.apply(void 0,_l([e,t],yl(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Xm(e){Gm.setTimeout(function(){throw e})}function Gs(){}function Fa(e){e()}var Xs=(function(e){$a(t,e);function t(n){var a=e.call(this)||this;return a.isStopped=!1,n?(a.destination=n,Ks(n)&&n.add(a)):a.destination=Vm,a}return t.create=function(n,a,o){return new Cl(n,a,o)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Ba),Jm=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(a){za(a)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(a){za(a)}else za(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){za(n)}},e})(),Cl=(function(e){$a(t,e);function t(n,a,o){var l=e.call(this)||this,i;return Sn(n)||!n?i={next:n??void 0,error:a??void 0,complete:o??void 0}:i=n,l.destination=new Jm(i),l}return t})(Xs);function za(e){Xm(e)}function Zm(e){throw e}var Vm={closed:!0,next:Gs,error:Zm,complete:Gs},eh=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function th(e){return e}function nh(e){return e.length===0?th:e.length===1?e[0]:function(n){return e.reduce(function(a,o){return o(a)},n)}}var Js=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,a){var o=this,l=ah(t)?t:new Cl(t,n,a);return Fa(function(){var i=o,s=i.operator,u=i.source;l.add(s?s.call(l,u):u?o._subscribe(l):o._trySubscribe(l))}),l},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var a=this;return n=Zs(n),new n(function(o,l){var i=new Cl({next:function(s){try{t(s)}catch(u){l(u),i.unsubscribe()}},error:l,complete:o});a.subscribe(i)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[eh]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return nh(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=Zs(t),new t(function(a,o){var l;n.subscribe(function(i){return l=i},function(i){return o(i)},function(){return a(l)})})},e.create=function(t){return new e(t)},e})();function Zs(e){var t;return(t=e??Ym.Promise)!==null&&t!==void 0?t:Promise}function rh(e){return e&&Sn(e.next)&&Sn(e.error)&&Sn(e.complete)}function ah(e){return e&&e instanceof Xs||rh(e)&&Ks(e)}var oh=Qs(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Vs=(function(e){$a(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var a=new eu(this,this);return a.operator=n,a},t.prototype._throwIfClosed=function(){if(this.closed)throw new oh},t.prototype.next=function(n){var a=this;Fa(function(){var o,l;if(a._throwIfClosed(),!a.isStopped){a.currentObservers||(a.currentObservers=Array.from(a.observers));try{for(var i=pl(a.currentObservers),s=i.next();!s.done;s=i.next()){var u=s.value;u.next(n)}}catch(d){o={error:d}}finally{try{s&&!s.done&&(l=i.return)&&l.call(i)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var a=this;Fa(function(){if(a._throwIfClosed(),!a.isStopped){a.hasError=a.isStopped=!0,a.thrownError=n;for(var o=a.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;Fa(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var a=n.observers;a.length;)a.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var a=this,o=this,l=o.hasError,i=o.isStopped,s=o.observers;return l||i?Ws:(this.currentObservers=null,s.push(n),new Ba(function(){a.currentObservers=null,wl(s,n)}))},t.prototype._checkFinalizedStatuses=function(n){var a=this,o=a.hasError,l=a.thrownError,i=a.isStopped;o?n.error(l):i&&n.complete()},t.prototype.asObservable=function(){var n=new Js;return n.source=this,n},t.create=function(n,a){return new eu(n,a)},t})(Js),eu=(function(e){$a(t,e);function t(n,a){var o=e.call(this)||this;return o.destination=n,o.source=a,o}return t.prototype.next=function(n){var a,o;(o=(a=this.destination)===null||a===void 0?void 0:a.next)===null||o===void 0||o.call(a,n)},t.prototype.error=function(n){var a,o;(o=(a=this.destination)===null||a===void 0?void 0:a.error)===null||o===void 0||o.call(a,n)},t.prototype.complete=function(){var n,a;(a=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||a===void 0||a.call(n)},t.prototype._subscribe=function(n){var a,o;return(o=(a=this.source)===null||a===void 0?void 0:a.subscribe(n))!==null&&o!==void 0?o:Ws},t})(Vs);const kl=new Vs;function lh(e,t){const n=r.ref(!1);let a;function o(l){if(l.key!==e)return;const i=l.data;if(i.type==="close"){n.value=!1;return}n.value=!0,t?.(i)}return r.onMounted(()=>{a=kl.subscribe(o)}),r.onUnmounted(()=>{a?.unsubscribe()}),{show:n}}function tu(e,t){return function(){return e.apply(t,arguments)}}const{toString:ih}=Object.prototype,{getPrototypeOf:xl}=Object,{iterator:Ha,toStringTag:nu}=Symbol,ja=(e=>t=>{const n=ih.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),on=e=>(e=e.toLowerCase(),t=>ja(t)===e),Ua=e=>t=>typeof t===e,{isArray:Cr}=Array,kr=Ua("undefined");function na(e){return e!==null&&!kr(e)&&e.constructor!==null&&!kr(e.constructor)&&jt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ru=on("ArrayBuffer");function sh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ru(e.buffer),t}const uh=Ua("string"),jt=Ua("function"),au=Ua("number"),ra=e=>e!==null&&typeof e=="object",ch=e=>e===!0||e===!1,Qa=e=>{if(ja(e)!=="object")return!1;const t=xl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(nu in e)&&!(Ha in e)},dh=e=>{if(!ra(e)||na(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},fh=on("Date"),vh=on("File"),mh=e=>!!(e&&typeof e.uri<"u"),hh=e=>e&&typeof e.getParts<"u",gh=on("Blob"),bh=on("FileList"),ph=e=>ra(e)&&jt(e.pipe);function yh(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const ou=yh(),lu=typeof ou.FormData<"u"?ou.FormData:void 0,_h=e=>{let t;return e&&(lu&&e instanceof lu||jt(e.append)&&((t=ja(e))==="formdata"||t==="object"&&jt(e.toString)&&e.toString()==="[object FormData]"))},Sh=on("URLSearchParams"),[wh,Ch,kh,xh]=["ReadableStream","Request","Response","Headers"].map(on),Eh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function aa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,o;if(typeof e!="object"&&(e=[e]),Cr(e))for(a=0,o=e.length;a<o;a++)t.call(null,e[a],a,e);else{if(na(e))return;const l=n?Object.getOwnPropertyNames(e):Object.keys(e),i=l.length;let s;for(a=0;a<i;a++)s=l[a],t.call(null,e[s],s,e)}}function iu(e,t){if(na(e))return null;t=t.toLowerCase();const n=Object.keys(e);let a=n.length,o;for(;a-- >0;)if(o=n[a],t===o.toLowerCase())return o;return null}const Xn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,su=e=>!kr(e)&&e!==Xn;function El(){const{caseless:e,skipUndefined:t}=su(this)&&this||{},n={},a=(o,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const i=e&&iu(n,l)||l;Qa(n[i])&&Qa(o)?n[i]=El(n[i],o):Qa(o)?n[i]=El({},o):Cr(o)?n[i]=o.slice():(!t||!kr(o))&&(n[i]=o)};for(let o=0,l=arguments.length;o<l;o++)arguments[o]&&aa(arguments[o],a);return n}const Th=(e,t,n,{allOwnKeys:a}={})=>(aa(t,(o,l)=>{n&&jt(o)?Object.defineProperty(e,l,{value:tu(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),e),qh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Oh=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Mh=(e,t,n,a)=>{let o,l,i;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)i=o[l],(!a||a(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=n!==!1&&xl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Lh=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},Ah=e=>{if(!e)return null;if(Cr(e))return e;let t=e.length;if(!au(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Rh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xl(Uint8Array)),Ph=(e,t)=>{const a=(e&&e[Ha]).call(e);let o;for(;(o=a.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},Nh=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},Ih=on("HTMLFormElement"),Dh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,o){return a.toUpperCase()+o}),uu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$h=on("RegExp"),cu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};aa(n,(o,l)=>{let i;(i=t(o,l,e))!==!1&&(a[l]=i||o)}),Object.defineProperties(e,a)},Bh=e=>{cu(e,(t,n)=>{if(jt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(jt(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Fh=(e,t)=>{const n={},a=o=>{o.forEach(l=>{n[l]=!0})};return Cr(e)?a(e):a(String(e).split(t)),n},zh=()=>{},Hh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function jh(e){return!!(e&&jt(e.append)&&e[nu]==="FormData"&&e[Ha])}const Uh=e=>{const t=new Array(10),n=(a,o)=>{if(ra(a)){if(t.indexOf(a)>=0)return;if(na(a))return a;if(!("toJSON"in a)){t[o]=a;const l=Cr(a)?[]:{};return aa(a,(i,s)=>{const u=n(i,o+1);!kr(u)&&(l[s]=u)}),t[o]=void 0,l}}return a};return n(e,0)},Qh=on("AsyncFunction"),Wh=e=>e&&(ra(e)||jt(e))&&jt(e.then)&&jt(e.catch),du=((e,t)=>e?setImmediate:t?((n,a)=>(Xn.addEventListener("message",({source:o,data:l})=>{o===Xn&&l===n&&a.length&&a.shift()()},!1),o=>{a.push(o),Xn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",jt(Xn.postMessage)),Kh=typeof queueMicrotask<"u"?queueMicrotask.bind(Xn):typeof process<"u"&&process.nextTick||du,ne={isArray:Cr,isArrayBuffer:ru,isBuffer:na,isFormData:_h,isArrayBufferView:sh,isString:uh,isNumber:au,isBoolean:ch,isObject:ra,isPlainObject:Qa,isEmptyObject:dh,isReadableStream:wh,isRequest:Ch,isResponse:kh,isHeaders:xh,isUndefined:kr,isDate:fh,isFile:vh,isReactNativeBlob:mh,isReactNative:hh,isBlob:gh,isRegExp:$h,isFunction:jt,isStream:ph,isURLSearchParams:Sh,isTypedArray:Rh,isFileList:bh,forEach:aa,merge:El,extend:Th,trim:Eh,stripBOM:qh,inherits:Oh,toFlatObject:Mh,kindOf:ja,kindOfTest:on,endsWith:Lh,toArray:Ah,forEachEntry:Ph,matchAll:Nh,isHTMLForm:Ih,hasOwnProperty:uu,hasOwnProp:uu,reduceDescriptors:cu,freezeMethods:Bh,toObjectSet:Fh,toCamelCase:Dh,noop:zh,toFiniteNumber:Hh,findKey:iu,global:Xn,isContextDefined:su,isSpecCompliantForm:jh,toJSONObject:Uh,isAsyncFn:Qh,isThenable:Wh,setImmediate:du,asap:Kh,isIterable:e=>e!=null&&jt(e[Ha])};let Ie=class Dm extends Error{static from(t,n,a,o,l,i){const s=new Dm(t.message,n||t.code,a,o,l);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),i&&Object.assign(s,i),s}constructor(t,n,a,o,l){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),a&&(this.config=a),o&&(this.request=o),l&&(this.response=l,this.status=l.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.status}}};Ie.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Ie.ERR_BAD_OPTION="ERR_BAD_OPTION",Ie.ECONNABORTED="ECONNABORTED",Ie.ETIMEDOUT="ETIMEDOUT",Ie.ERR_NETWORK="ERR_NETWORK",Ie.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Ie.ERR_DEPRECATED="ERR_DEPRECATED",Ie.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Ie.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Ie.ERR_CANCELED="ERR_CANCELED",Ie.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Ie.ERR_INVALID_URL="ERR_INVALID_URL";const Yh=null;function Tl(e){return ne.isPlainObject(e)||ne.isArray(e)}function fu(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function ql(e,t,n){return e?e.concat(t).map(function(o,l){return o=fu(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function Gh(e){return ne.isArray(e)&&!e.some(Tl)}const Xh=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function Wa(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,p){return!ne.isUndefined(p[_])});const a=n.metaTokens,o=n.visitor||c,l=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(o))throw new TypeError("visitor must be a function");function d(f){if(f===null)return"";if(ne.isDate(f))return f.toISOString();if(ne.isBoolean(f))return f.toString();if(!u&&ne.isBlob(f))throw new Ie("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(f)||ne.isTypedArray(f)?u&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,_,p){let b=f;if(ne.isReactNative(t)&&ne.isReactNativeBlob(f))return t.append(ql(p,_,l),d(f)),!1;if(f&&!p&&typeof f=="object"){if(ne.endsWith(_,"{}"))_=a?_:_.slice(0,-2),f=JSON.stringify(f);else if(ne.isArray(f)&&Gh(f)||(ne.isFileList(f)||ne.endsWith(_,"[]"))&&(b=ne.toArray(f)))return _=fu(_),b.forEach(function(y,m){!(ne.isUndefined(y)||y===null)&&t.append(i===!0?ql([_],m,l):i===null?_:_+"[]",d(y))}),!1}return Tl(f)?!0:(t.append(ql(p,_,l),d(f)),!1)}const g=[],v=Object.assign(Xh,{defaultVisitor:c,convertValue:d,isVisitable:Tl});function h(f,_){if(!ne.isUndefined(f)){if(g.indexOf(f)!==-1)throw Error("Circular reference detected in "+_.join("."));g.push(f),ne.forEach(f,function(b,S){(!(ne.isUndefined(b)||b===null)&&o.call(t,b,ne.isString(S)?S.trim():S,_,v))===!0&&h(b,_?_.concat(S):[S])}),g.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return h(e),t}function vu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function Ol(e,t){this._pairs=[],e&&Wa(e,this,t)}const mu=Ol.prototype;mu.append=function(t,n){this._pairs.push([t,n])},mu.toString=function(t){const n=t?function(a){return t.call(this,a,vu)}:vu;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Jh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function hu(e,t,n){if(!t)return e;const a=n&&n.encode||Jh,o=ne.isFunction(n)?{serialize:n}:n,l=o&&o.serialize;let i;if(l?i=l(t,o):i=ne.isURLSearchParams(t)?t.toString():new Ol(t,o).toString(a),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class gu{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ne.forEach(this.handlers,function(a){a!==null&&t(a)})}}const Ml={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Zh={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ol,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ll=typeof window<"u"&&typeof document<"u",Al=typeof navigator=="object"&&navigator||void 0,Vh=Ll&&(!Al||["ReactNative","NativeScript","NS"].indexOf(Al.product)<0),eg=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tg=Ll&&window.location.href||"http://localhost",Pt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ll,hasStandardBrowserEnv:Vh,hasStandardBrowserWebWorkerEnv:eg,navigator:Al,origin:tg},Symbol.toStringTag,{value:"Module"})),...Zh};function ng(e,t){return Wa(e,new Pt.classes.URLSearchParams,{visitor:function(n,a,o,l){return Pt.isNode&&ne.isBuffer(n)?(this.append(a,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function rg(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ag(e){const t={},n=Object.keys(e);let a;const o=n.length;let l;for(a=0;a<o;a++)l=n[a],t[l]=e[l];return t}function bu(e){function t(n,a,o,l){let i=n[l++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),u=l>=n.length;return i=!i&&ne.isArray(o)?o.length:i,u?(ne.hasOwnProp(o,i)?o[i]=[o[i],a]:o[i]=a,!s):((!o[i]||!ne.isObject(o[i]))&&(o[i]=[]),t(n,a,o[i],l)&&ne.isArray(o[i])&&(o[i]=ag(o[i])),!s)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(a,o)=>{t(rg(a),o,n,0)}),n}return null}function og(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const oa={transitional:Ml,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const a=n.getContentType()||"",o=a.indexOf("application/json")>-1,l=ne.isObject(t);if(l&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return o?JSON.stringify(bu(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t)||ne.isReadableStream(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(l){if(a.indexOf("application/x-www-form-urlencoded")>-1)return ng(t,this.formSerializer).toString();if((s=ne.isFileList(t))||a.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Wa(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||o?(n.setContentType("application/json",!1),og(t)):t}],transformResponse:[function(t){const n=this.transitional||oa.transitional,a=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ne.isResponse(t)||ne.isReadableStream(t))return t;if(t&&ne.isString(t)&&(a&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?Ie.from(s,Ie.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pt.classes.FormData,Blob:Pt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{oa.headers[e]={}});const lg=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ig=e=>{const t={};let n,a,o;return e&&e.split(`
|
|
8
|
-
`).forEach(function(
|
|
9
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(o=>a.set(o)),a}static accessor(t){const a=(this[pu]=this[pu]={accessors:{}}).accessors,o=this.prototype;function l(i){const s=la(i);a[s]||(dg(o,i),a[s]=!0)}return ne.isArray(t)?t.forEach(l):l(t),this}};Ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ne.reduceDescriptors(Ut.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}}),ne.freezeMethods(Ut);function Pl(e,t){const n=this||oa,a=t||n,o=Ut.from(a.headers);let l=a.data;return ne.forEach(e,function(s){l=s.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function yu(e){return!!(e&&e.__CANCEL__)}let ia=class extends Ie{constructor(t,n,a){super(t??"canceled",Ie.ERR_CANCELED,n,a),this.name="CanceledError",this.__CANCEL__=!0}};function _u(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Ie("Request failed with status code "+n.status,[Ie.ERR_BAD_REQUEST,Ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function fg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function vg(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o=0,l=0,i;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),c=a[l];i||(i=d),n[o]=u,a[o]=d;let g=l,v=0;for(;g!==o;)v+=n[g++],g=g%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),d-i<t)return;const h=c&&d-c;return h?Math.round(v*1e3/h):void 0}}function mg(e,t){let n=0,a=1e3/t,o,l;const i=(d,c=Date.now())=>{n=c,o=null,l&&(clearTimeout(l),l=null),e(...d)};return[(...d)=>{const c=Date.now(),g=c-n;g>=a?i(d,c):(o=d,l||(l=setTimeout(()=>{l=null,i(o)},a-g)))},()=>o&&i(o)]}const Ya=(e,t,n=3)=>{let a=0;const o=vg(50,250);return mg(l=>{const i=l.loaded,s=l.lengthComputable?l.total:void 0,u=i-a,d=o(u),c=i<=s;a=i;const g={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:d||void 0,estimated:d&&s&&c?(s-i)/d:void 0,event:l,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(g)},n)},Su=(e,t)=>{const n=e!=null;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},wu=e=>(...t)=>ne.asap(()=>e(...t)),hg=Pt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Pt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Pt.origin),Pt.navigator&&/(msie|trident)/i.test(Pt.navigator.userAgent)):()=>!0,gg=Pt.hasStandardBrowserEnv?{write(e,t,n,a,o,l,i){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];ne.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ne.isString(a)&&s.push(`path=${a}`),ne.isString(o)&&s.push(`domain=${o}`),l===!0&&s.push("secure"),ne.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function bg(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Cu(e,t,n){let a=!bg(t);return e&&(a||n==!1)?pg(e,t):t}const ku=e=>e instanceof Ut?{...e}:e;function Jn(e,t){t=t||{};const n={};function a(d,c,g,v){return ne.isPlainObject(d)&&ne.isPlainObject(c)?ne.merge.call({caseless:v},d,c):ne.isPlainObject(c)?ne.merge({},c):ne.isArray(c)?c.slice():c}function o(d,c,g,v){if(ne.isUndefined(c)){if(!ne.isUndefined(d))return a(void 0,d,g,v)}else return a(d,c,g,v)}function l(d,c){if(!ne.isUndefined(c))return a(void 0,c)}function i(d,c){if(ne.isUndefined(c)){if(!ne.isUndefined(d))return a(void 0,d)}else return a(void 0,c)}function s(d,c,g){if(g in t)return a(d,c);if(g in e)return a(void 0,d)}const u={url:l,method:l,data:l,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(d,c,g)=>o(ku(d),ku(c),g,!0)};return ne.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const g=ne.hasOwnProp(u,c)?u[c]:o,v=g(e[c],t[c],c);ne.isUndefined(v)&&g!==s||(n[c]=v)}),n}const xu=e=>{const t=Jn({},e);let{data:n,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:l,headers:i,auth:s}=t;if(t.headers=i=Ut.from(i),t.url=hu(Cu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),ne.isFormData(n)){if(Pt.hasStandardBrowserEnv||Pt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(ne.isFunction(n.getHeaders)){const u=n.getHeaders(),d=["content-type","content-length"];Object.entries(u).forEach(([c,g])=>{d.includes(c.toLowerCase())&&i.set(c,g)})}}if(Pt.hasStandardBrowserEnv&&(a&&ne.isFunction(a)&&(a=a(t)),a||a!==!1&&hg(t.url))){const u=o&&l&&gg.read(l);u&&i.set(o,u)}return t},yg=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,a){const o=xu(e);let l=o.data;const i=Ut.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:d}=o,c,g,v,h,f;function _(){h&&h(),f&&f(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function b(){if(!p)return;const y=Ut.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:y,config:e,request:p};_u(function(C){n(C),_()},function(C){a(C),_()},w),p=null}"onloadend"in p?p.onloadend=b:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(b)},p.onabort=function(){p&&(a(new Ie("Request aborted",Ie.ECONNABORTED,e,p)),p=null)},p.onerror=function(m){const w=m&&m.message?m.message:"Network Error",E=new Ie(w,Ie.ERR_NETWORK,e,p);E.event=m||null,a(E),p=null},p.ontimeout=function(){let m=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||Ml;o.timeoutErrorMessage&&(m=o.timeoutErrorMessage),a(new Ie(m,w.clarifyTimeoutError?Ie.ETIMEDOUT:Ie.ECONNABORTED,e,p)),p=null},l===void 0&&i.setContentType(null),"setRequestHeader"in p&&ne.forEach(i.toJSON(),function(m,w){p.setRequestHeader(w,m)}),ne.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),s&&s!=="json"&&(p.responseType=o.responseType),d&&([v,f]=Ya(d,!0),p.addEventListener("progress",v)),u&&p.upload&&([g,h]=Ya(u),p.upload.addEventListener("progress",g),p.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(c=y=>{p&&(a(!y||y.type?new ia(null,e,p):y),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const S=fg(o.url);if(S&&Pt.protocols.indexOf(S)===-1){a(new Ie("Unsupported protocol "+S+":",Ie.ERR_BAD_REQUEST,e));return}p.send(l||null)})},_g=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let a=new AbortController,o;const l=function(d){if(!o){o=!0,s();const c=d instanceof Error?d:this.reason;a.abort(c instanceof Ie?c:new ia(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,l(new Ie(`timeout of ${t}ms exceeded`,Ie.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(l):d.removeEventListener("abort",l)}),e=null)};e.forEach(d=>d.addEventListener("abort",l));const{signal:u}=a;return u.unsubscribe=()=>ne.asap(s),u}},Sg=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let a=0,o;for(;a<n;)o=a+t,yield e.slice(a,o),a=o},wg=async function*(e,t){for await(const n of Cg(e))yield*Sg(n,t)},Cg=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:a}=await t.read();if(n)break;yield a}}finally{await t.cancel()}},Eu=(e,t,n,a)=>{const o=wg(e,t);let l=0,i,s=u=>{i||(i=!0,a&&a(u))};return new ReadableStream({async pull(u){try{const{done:d,value:c}=await o.next();if(d){s(),u.close();return}let g=c.byteLength;if(n){let v=l+=g;n(v)}u.enqueue(new Uint8Array(c))}catch(d){throw s(d),d}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},Tu=64*1024,{isFunction:Ga}=ne,kg=(({Request:e,Response:t})=>({Request:e,Response:t}))(ne.global),{ReadableStream:qu,TextEncoder:Ou}=ne.global,Mu=(e,...t)=>{try{return!!e(...t)}catch{return!1}},xg=e=>{e=ne.merge.call({skipUndefined:!0},kg,e);const{fetch:t,Request:n,Response:a}=e,o=t?Ga(t):typeof fetch=="function",l=Ga(n),i=Ga(a);if(!o)return!1;const s=o&&Ga(qu),u=o&&(typeof Ou=="function"?(f=>_=>f.encode(_))(new Ou):async f=>new Uint8Array(await new n(f).arrayBuffer())),d=l&&s&&Mu(()=>{let f=!1;const _=new n(Pt.origin,{body:new qu,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!_}),c=i&&s&&Mu(()=>ne.isReadableStream(new a("").body)),g={stream:c&&(f=>f.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!g[f]&&(g[f]=(_,p)=>{let b=_&&_[f];if(b)return b.call(_);throw new Ie(`Response type '${f}' is not supported`,Ie.ERR_NOT_SUPPORT,p)})});const v=async f=>{if(f==null)return 0;if(ne.isBlob(f))return f.size;if(ne.isSpecCompliantForm(f))return(await new n(Pt.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(ne.isArrayBufferView(f)||ne.isArrayBuffer(f))return f.byteLength;if(ne.isURLSearchParams(f)&&(f=f+""),ne.isString(f))return(await u(f)).byteLength},h=async(f,_)=>{const p=ne.toFiniteNumber(f.getContentLength());return p??v(_)};return async f=>{let{url:_,method:p,data:b,signal:S,cancelToken:y,timeout:m,onDownloadProgress:w,onUploadProgress:E,responseType:C,headers:R,withCredentials:H="same-origin",fetchOptions:q}=xu(f),T=t||fetch;C=C?(C+"").toLowerCase():"text";let M=_g([S,y&&y.toAbortSignal()],m),O=null;const k=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let A;try{if(E&&d&&p!=="get"&&p!=="head"&&(A=await h(R,b))!==0){let $=new n(_,{method:"POST",body:b,duplex:"half"}),x;if(ne.isFormData(b)&&(x=$.headers.get("content-type"))&&R.setContentType(x),$.body){const[Y,B]=Su(A,Ya(wu(E)));b=Eu($.body,Tu,Y,B)}}ne.isString(H)||(H=H?"include":"omit");const D=l&&"credentials"in n.prototype,z={...q,signal:M,method:p.toUpperCase(),headers:R.normalize().toJSON(),body:b,duplex:"half",credentials:D?H:void 0};O=l&&new n(_,z);let F=await(l?T(O,q):T(_,z));const Z=c&&(C==="stream"||C==="response");if(c&&(w||Z&&k)){const $={};["status","statusText","headers"].forEach(le=>{$[le]=F[le]});const x=ne.toFiniteNumber(F.headers.get("content-length")),[Y,B]=w&&Su(x,Ya(wu(w),!0))||[];F=new a(Eu(F.body,Tu,Y,()=>{B&&B(),k&&k()}),$)}C=C||"text";let he=await g[ne.findKey(g,C)||"text"](F,f);return!Z&&k&&k(),await new Promise(($,x)=>{_u($,x,{data:he,headers:Ut.from(F.headers),status:F.status,statusText:F.statusText,config:f,request:O})})}catch(D){throw k&&k(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new Ie("Network Error",Ie.ERR_NETWORK,f,O,D&&D.response),{cause:D.cause||D}):Ie.from(D,D&&D.code,f,O,D&&D.response)}}},Eg=new Map,Lu=e=>{let t=e&&e.env||{};const{fetch:n,Request:a,Response:o}=t,l=[a,o,n];let i=l.length,s=i,u,d,c=Eg;for(;s--;)u=l[s],d=c.get(u),d===void 0&&c.set(u,d=s?new Map:xg(t)),c=d;return d};Lu();const Nl={http:Yh,xhr:yg,fetch:{get:Lu}};ne.forEach(Nl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Au=e=>`- ${e}`,Tg=e=>ne.isFunction(e)||e===null||e===!1;function qg(e,t){e=ne.isArray(e)?e:[e];const{length:n}=e;let a,o;const l={};for(let i=0;i<n;i++){a=e[i];let s;if(o=a,!Tg(a)&&(o=Nl[(s=String(a)).toLowerCase()],o===void 0))throw new Ie(`Unknown adapter '${s}'`);if(o&&(ne.isFunction(o)||(o=o.get(t))))break;l[s||"#"+i]=o}if(!o){const i=Object.entries(l).map(([u,d])=>`adapter ${u} `+(d===!1?"is not supported by the environment":"is not available in the build"));let s=n?i.length>1?`since :
|
|
10
|
-
`+
|
|
11
|
-
`):" "+
|
|
12
|
-
`+l):a.stack=l}catch{}}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Jn(this.defaults,n);const{transitional:a,paramsSerializer:o,headers:l}=n;a!==void 0&&Ja.assertOptions(a,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean),legacyInterceptorReqResOrdering:Gt.transitional(Gt.boolean)},!1),o!=null&&(ne.isFunction(o)?n.paramsSerializer={serialize:o}:Ja.assertOptions(o,{encode:Gt.function,serialize:Gt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ja.assertOptions(n,{baseUrl:Gt.spelling("baseURL"),withXsrfToken:Gt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=l&&ne.merge(l.common,l[n.method]);l&&ne.forEach(["delete","get","head","post","put","patch","common"],f=>{delete l[f]}),n.headers=Ut.concat(i,l);const s=[];let u=!0;this.interceptors.request.forEach(function(_){if(typeof _.runWhen=="function"&&_.runWhen(n)===!1)return;u=u&&_.synchronous;const p=n.transitional||Ml;p&&p.legacyInterceptorReqResOrdering?s.unshift(_.fulfilled,_.rejected):s.push(_.fulfilled,_.rejected)});const d=[];this.interceptors.response.forEach(function(_){d.push(_.fulfilled,_.rejected)});let c,g=0,v;if(!u){const f=[Pu.bind(this),void 0];for(f.unshift(...s),f.push(...d),v=f.length,c=Promise.resolve(n);g<v;)c=c.then(f[g++],f[g++]);return c}v=s.length;let h=n;for(;g<v;){const f=s[g++],_=s[g++];try{h=f(h)}catch(p){_.call(this,p);break}}try{c=Pu.call(this,h)}catch(f){return Promise.reject(f)}for(g=0,v=d.length;g<v;)c=c.then(d[g++],d[g++]);return c}getUri(t){t=Jn(this.defaults,t);const n=Cu(t.baseURL,t.url,t.allowAbsoluteUrls);return hu(n,t.params,t.paramsSerializer)}};ne.forEach(["delete","get","head","options"],function(t){Zn.prototype[t]=function(n,a){return this.request(Jn(a||{},{method:t,url:n,data:(a||{}).data}))}}),ne.forEach(["post","put","patch"],function(t){function n(a){return function(l,i,s){return this.request(Jn(s||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:l,data:i}))}}Zn.prototype[t]=n(),Zn.prototype[t+"Form"]=n(!0)});let Mg=class $m{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const a=this;this.promise.then(o=>{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](o);a._listeners=null}),this.promise.then=o=>{let l;const i=new Promise(s=>{a.subscribe(s),l=s}).then(o);return i.cancel=function(){a.unsubscribe(l)},i},t(function(l,i,s){a.reason||(a.reason=new ia(l,i,s),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=a=>{t.abort(a)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new $m(function(o){t=o}),cancel:t}}};function Lg(e){return function(n){return e.apply(null,n)}}function Ag(e){return ne.isObject(e)&&e.isAxiosError===!0}const Dl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Dl).forEach(([e,t])=>{Dl[t]=e});function Du(e){const t=new Zn(e),n=tu(Zn.prototype.request,t);return ne.extend(n,Zn.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Du(Jn(e,o))},n}const yt=Du(oa);yt.Axios=Zn,yt.CanceledError=ia,yt.CancelToken=Mg,yt.isCancel=yu,yt.VERSION=Nu,yt.toFormData=Wa,yt.AxiosError=Ie,yt.Cancel=yt.CanceledError,yt.all=function(t){return Promise.all(t)},yt.spread=Lg,yt.isAxiosError=Ag,yt.mergeConfig=Jn,yt.AxiosHeaders=Ut,yt.formToJSON=e=>bu(ne.isHTMLForm(e)?new FormData(e):e),yt.getAdapter=Ru.getAdapter,yt.HttpStatusCode=Dl,yt.default=yt;const{Axios:n1,AxiosError:r1,CanceledError:a1,isCancel:o1,CancelToken:l1,VERSION:i1,all:s1,Cancel:u1,isAxiosError:c1,spread:d1,toFormData:f1,AxiosHeaders:v1,HttpStatusCode:$u,formToJSON:m1,getAdapter:h1,mergeConfig:g1}=yt;let Za=null;function Rg(e){if(Za!==null){console.warn("[LinID CoreLib] HTTP client has already been initialized. Re-initialization is ignored.");return}Za=e}function vn(){if(Za===null)throw new Error("[LinID CoreLib] HTTP client is not initialized. Call setHttpClient() first.");return Za}const Bu=new Map;function Pg(e){Bu.set(e.instanceId,e)}function Vn(e){const t=Bu.get(e);if(!t)throw new Error(`[LinID CoreLib] No module host configuration found for instanceId: ${e}`);return t}async function Ng(e,t){const n=Vn(e);return vn().post(`/${n.apiEndpoint}`,t).then(({data:a})=>a)}async function Ig(e,t,n){const a=Vn(e);return vn().put(`/${a.apiEndpoint}/${t}`,n).then(({data:o})=>o)}async function Dg(e,t,n){const a=Vn(e);return vn().get(`/${a.apiEndpoint}`,{params:{...t,...n}}).then(({data:o})=>o)}async function $g(e,t){const n=Vn(e);return vn().get(`/${n.apiEndpoint}/${t}`).then(({data:a})=>a)}async function Bg(e,t){const n=Vn(e);return vn().delete(`/${n.apiEndpoint}/${t}`)}async function Fg(e,t,n){const a=Vn(e);await vn().post(`/${a.apiEndpoint}/validate/${t}`,n,{headers:{"Content-Type":"application/json"}})}function Fu(e,t){if(!er(e)||!er(t))return t;const n={...e};for(const a of Object.keys(t))n[a]=Fu(e[a],t[a]);return n}function zg(e){const t={};for(const[n,a]of Object.entries(e)){const o=n.split(".");let l=t;o.forEach((i,s)=>{s===o.length-1?l[i]=a:(er(l[i])||(l[i]={}),l=l[i])})}return t}function er(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function zu(e,t){return typeof e!="object"||e===null?e:Object.fromEntries(Object.entries(e).map(([n,a])=>{const o=t(n),l=er(a)?zu(a,t):a;return[o,l]}))}function $l(e,t){if(e===t||typeof e=="number"&&typeof t=="number"&&Number.isNaN(e)&&Number.isNaN(t))return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object"||Array.isArray(e)!==Array.isArray(t))return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;const o=e,l=t;return n.every(i=>Object.prototype.hasOwnProperty.call(l,i)&&$l(o[i],l[i]))}function Va(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=new Set;return e.every(a=>{const o=t.findIndex((l,i)=>!n.has(i)&&Va(a,l));return o===-1?!1:(n.add(o),!0)})}if(er(e)&&er(t)){const n=Object.keys(e),a=Object.keys(t);return n.length!==a.length?!1:n.every(o=>Object.prototype.hasOwnProperty.call(t,o)&&Va(e[o],t[o]))}return $l(e,t)}function mn(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Hu={};function Hg(e){Hu[e]||(Hu[e]=!0,mn(e))}const wn=typeof window<"u";let Qt,tr;if(process.env.NODE_ENV!=="production"){const e=wn&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Qt=t=>{e.mark(t)},tr=(t,n,a)=>{e.measure(t,n,a),e.clearMarks(n),e.clearMarks(a)})}const jg=/\{([0-9a-zA-Z]+)\}/g;function eo(e,...t){return t.length===1&&tt(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(jg,(n,a)=>t.hasOwnProperty(a)?t[a]:"")}const Cn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ug=(e,t,n)=>Qg({l:e,k:t,s:n}),Qg=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Tt=e=>typeof e=="number"&&isFinite(e),ju=e=>Bl(e)==="[object Date]",to=e=>Bl(e)==="[object RegExp]",no=e=>rt(e)&&Object.keys(e).length===0,qt=Object.assign,Wg=Object.create,ot=(e=null)=>Wg(e);let Uu;const nr=()=>Uu||(Uu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ot());function Qu(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function Wu(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Kg(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(a,o,l)=>`${o}="${Wu(l)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(a,o,l)=>`${o}='${Wu(l)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&mn("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(a=>{e=e.replace(a,"$1javascript:")}),e}const Yg=Object.prototype.hasOwnProperty;function Xt(e,t){return Yg.call(e,t)}const _t=Array.isArray,vt=e=>typeof e=="function",Ee=e=>typeof e=="string",St=e=>typeof e=="boolean",tt=e=>e!==null&&typeof e=="object",Gg=e=>tt(e)&&vt(e.then)&&vt(e.catch),Ku=Object.prototype.toString,Bl=e=>Ku.call(e),rt=e=>Bl(e)==="[object Object]",Xg=e=>e==null?"":_t(e)||rt(e)&&e.toString===Ku?JSON.stringify(e,null,2):String(e);function Fl(e,t=""){return e.reduce((n,a,o)=>o===0?n+a:n+t+a,"")}const Yu=2;function Jg(e,t=0,n=e.length){const a=e.split(/\r?\n/);let o=0;const l=[];for(let i=0;i<a.length;i++)if(o+=a[i].length+1,o>=t){for(let s=i-Yu;s<=i+Yu||n>o;s++){if(s<0||s>=a.length)continue;const u=s+1;l.push(`${u}${" ".repeat(3-String(u).length)}| ${a[s]}`);const d=a[s].length;if(s===i){const c=t-(o-d)+1,g=Math.max(1,n>o?d-c:n-t);l.push(" | "+" ".repeat(c)+"^".repeat(g))}else if(s>i){if(n>o){const c=Math.max(Math.min(n-o,d),1);l.push(" | "+"^".repeat(c))}o+=d+1}}break}return l.join(`
|
|
13
|
-
`)}function
|
|
14
|
-
`,lb="\u2028",ib="\u2029";function sb(e){const t=e;let n=0,a=1,o=1,l=0;const i=C=>t[C]===ob&&t[C+1]===Nt,s=C=>t[C]===Nt,u=C=>t[C]===ib,d=C=>t[C]===lb,c=C=>i(C)||s(C)||u(C)||d(C),g=()=>n,v=()=>a,h=()=>o,f=()=>l,_=C=>i(C)||u(C)||d(C)?Nt:t[C],p=()=>_(n),b=()=>_(n+l);function S(){return l=0,c(n)&&(a++,o=0),i(n)&&n++,n++,o++,t[n]}function y(){return i(n+l)&&l++,l++,t[n+l]}function m(){n=0,a=1,o=1,l=0}function w(C=0){l=C}function E(){const C=n+l;for(;C!==n;)S();l=0}return{index:g,line:v,column:h,peekOffset:f,charAt:_,currentChar:p,currentPeek:b,next:S,peek:y,reset:m,resetPeek:w,skipToPeek:E}}const kn=void 0,ub=".",Gu="'",cb="tokenizer";function db(e,t={}){const n=t.location!==!1,a=sb(e),o=()=>a.index(),l=()=>Vg(a.line(),a.column(),a.index()),i=l(),s=o(),u={currentType:13,offset:s,startLoc:i,endLoc:i,lastType:13,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},d=()=>u,{onError:c}=t;function g(L,I,te,...K){const X=d();if(I.column+=te,I.offset+=te,c){const se=n?zl(X.startLoc,I):null,me=xr(L,se,{domain:cb,args:K});c(me)}}function v(L,I,te){L.endLoc=l(),L.currentType=I;const K={type:I};return n&&(K.loc=zl(L.startLoc,L.endLoc)),te!=null&&(K.value=te),K}const h=L=>v(L,13);function f(L,I){return L.currentChar()===I?(L.next(),I):(g(De.EXPECTED_TOKEN,l(),0,I),"")}function _(L){let I="";for(;L.currentPeek()===hn||L.currentPeek()===Nt;)I+=L.currentPeek(),L.peek();return I}function p(L){const I=_(L);return L.skipToPeek(),I}function b(L){if(L===kn)return!1;const I=L.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I===95}function S(L){if(L===kn)return!1;const I=L.charCodeAt(0);return I>=48&&I<=57}function y(L,I){const{currentType:te}=I;if(te!==2)return!1;_(L);const K=b(L.currentPeek());return L.resetPeek(),K}function m(L,I){const{currentType:te}=I;if(te!==2)return!1;_(L);const K=L.currentPeek()==="-"?L.peek():L.currentPeek(),X=S(K);return L.resetPeek(),X}function w(L,I){const{currentType:te}=I;if(te!==2)return!1;_(L);const K=L.currentPeek()===Gu;return L.resetPeek(),K}function E(L,I){const{currentType:te}=I;if(te!==7)return!1;_(L);const K=L.currentPeek()===".";return L.resetPeek(),K}function C(L,I){const{currentType:te}=I;if(te!==8)return!1;_(L);const K=b(L.currentPeek());return L.resetPeek(),K}function R(L,I){const{currentType:te}=I;if(!(te===7||te===11))return!1;_(L);const K=L.currentPeek()===":";return L.resetPeek(),K}function H(L,I){const{currentType:te}=I;if(te!==9)return!1;const K=()=>{const se=L.currentPeek();return se==="{"?b(L.peek()):se==="@"||se==="|"||se===":"||se==="."||se===hn||!se?!1:se===Nt?(L.peek(),K()):T(L,!1)},X=K();return L.resetPeek(),X}function q(L){_(L);const I=L.currentPeek()==="|";return L.resetPeek(),I}function T(L,I=!0){const te=(X=!1,se="")=>{const me=L.currentPeek();return me==="{"||me==="@"||!me?X:me==="|"?!(se===hn||se===Nt):me===hn?(L.peek(),te(!0,hn)):me===Nt?(L.peek(),te(!0,Nt)):!0},K=te();return I&&L.resetPeek(),K}function M(L,I){const te=L.currentChar();return te===kn?kn:I(te)?(L.next(),te):null}function O(L){const I=L.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I>=48&&I<=57||I===95||I===36}function k(L){return M(L,O)}function A(L){const I=L.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I>=48&&I<=57||I===95||I===36||I===45}function D(L){return M(L,A)}function z(L){const I=L.charCodeAt(0);return I>=48&&I<=57}function F(L){return M(L,z)}function Z(L){const I=L.charCodeAt(0);return I>=48&&I<=57||I>=65&&I<=70||I>=97&&I<=102}function he(L){return M(L,Z)}function $(L){let I="",te="";for(;I=F(L);)te+=I;return te}function x(L){let I="";for(;;){const te=L.currentChar();if(te==="\\"){const K=L.peek();K==="{"||K==="}"||K==="@"||K==="|"||K==="\\"?(I+=te+K,L.next(),L.next()):(L.resetPeek(),I+=te,L.next())}else{if(te==="{"||te==="}"||te==="@"||te==="|"||!te)break;if(te===hn||te===Nt)if(T(L))I+=te,L.next();else{if(q(L))break;I+=te,L.next()}else I+=te,L.next()}}return I}function Y(L){p(L);let I="",te="";for(;I=D(L);)te+=I;const K=L.currentChar();if(K&&K!=="}"&&K!==kn&&K!==hn&&K!==Nt&&K!==" "){const X=ve(L);return g(De.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,te+X),te+X}return L.currentChar()===kn&&g(De.UNTERMINATED_CLOSING_BRACE,l(),0),te}function B(L){p(L);let I="";return L.currentChar()==="-"?(L.next(),I+=`-${$(L)}`):I+=$(L),L.currentChar()===kn&&g(De.UNTERMINATED_CLOSING_BRACE,l(),0),I}function le(L){return L!==Gu&&L!==Nt}function N(L){p(L),f(L,"'");let I="",te="";for(;I=M(L,le);)I==="\\"?te+=U(L):te+=I;const K=L.currentChar();return K===Nt||K===kn?(g(De.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),0),K===Nt&&(L.next(),f(L,"'")),te):(f(L,"'"),te)}function U(L){const I=L.currentChar();switch(I){case"\\":case"'":return L.next(),`\\${I}`;case"u":return ue(L,I,4);case"U":return ue(L,I,6);default:return g(De.UNKNOWN_ESCAPE_SEQUENCE,l(),0,I),""}}function ue(L,I,te){f(L,I);let K="";for(let X=0;X<te;X++){const se=he(L);if(!se){g(De.INVALID_UNICODE_ESCAPE_SEQUENCE,l(),0,`\\${I}${K}${L.currentChar()}`);break}K+=se}return`\\${I}${K}`}function W(L){return L!=="{"&&L!=="}"&&L!==hn&&L!==Nt}function ve(L){p(L);let I="",te="";for(;I=M(L,W);)te+=I;return te}function _e(L){let I="",te="";for(;I=k(L);)te+=I;return te}function G(L){const I=te=>{const K=L.currentChar();return K==="{"||K==="@"||K==="|"||K==="("||K===")"||!K||K===hn?te:(te+=K,L.next(),I(te))};return I("")}function ge(L){p(L);const I=f(L,"|");return p(L),I}function pe(L,I){let te=null;switch(L.currentChar()){case"{":return I.braceNest>=1&&g(De.NOT_ALLOW_NEST_PLACEHOLDER,l(),0),L.next(),te=v(I,2,"{"),p(L),I.braceNest++,te;case"}":return I.braceNest>0&&I.currentType===2&&g(De.EMPTY_PLACEHOLDER,l(),0),L.next(),te=v(I,3,"}"),I.braceNest--,I.braceNest>0&&p(L),I.inLinked&&I.braceNest===0&&(I.inLinked=!1),te;case"@":return I.braceNest>0&&g(De.UNTERMINATED_CLOSING_BRACE,l(),0),te=we(L,I)||h(I),I.braceNest=0,te;default:{let X=!0,se=!0,me=!0;if(q(L))return I.braceNest>0&&g(De.UNTERMINATED_CLOSING_BRACE,l(),0),te=v(I,1,ge(L)),I.braceNest=0,I.inLinked=!1,te;if(I.braceNest>0&&(I.currentType===4||I.currentType===5||I.currentType===6))return g(De.UNTERMINATED_CLOSING_BRACE,l(),0),I.braceNest=0,Ae(L,I);if(X=y(L,I))return te=v(I,4,Y(L)),p(L),te;if(se=m(L,I))return te=v(I,5,B(L)),p(L),te;if(me=w(L,I))return te=v(I,6,N(L)),p(L),te;if(!X&&!se&&!me)return te=v(I,12,ve(L)),g(De.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,te.value),p(L),te;break}}return te}function we(L,I){const{currentType:te}=I;let K=null;const X=L.currentChar();switch((te===7||te===8||te===11||te===9)&&(X===Nt||X===hn)&&g(De.INVALID_LINKED_FORMAT,l(),0),X){case"@":return L.next(),K=v(I,7,"@"),I.inLinked=!0,K;case".":return p(L),L.next(),v(I,8,".");case":":return p(L),L.next(),v(I,9,":");default:return q(L)?(K=v(I,1,ge(L)),I.braceNest=0,I.inLinked=!1,K):E(L,I)||R(L,I)?(p(L),we(L,I)):C(L,I)?(p(L),v(I,11,_e(L))):H(L,I)?(p(L),X==="{"?pe(L,I)||K:v(I,10,G(L))):(te===7&&g(De.INVALID_LINKED_FORMAT,l(),0),I.braceNest=0,I.inLinked=!1,Ae(L,I))}}function Ae(L,I){let te={type:13};if(I.braceNest>0)return pe(L,I)||h(I);if(I.inLinked)return we(L,I)||h(I);switch(L.currentChar()){case"{":return pe(L,I)||h(I);case"}":return g(De.UNBALANCED_CLOSING_BRACE,l(),0),L.next(),v(I,3,"}");case"@":return we(L,I)||h(I);default:{if(q(L))return te=v(I,1,ge(L)),I.braceNest=0,I.inLinked=!1,te;if(T(L))return v(I,0,x(L));break}}return te}function fe(){const{currentType:L,offset:I,startLoc:te,endLoc:K}=u;return u.lastType=L,u.lastOffset=I,u.lastStartLoc=te,u.lastEndLoc=K,u.offset=o(),u.startLoc=l(),a.currentChar()===kn?v(u,13):Ae(a,u)}return{nextToken:fe,currentOffset:o,currentPosition:l,context:d}}const fb="parser",vb=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,mb=/\\([\\@{}|])/g;function hb(e,t){return t}function gb(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const a=parseInt(t||n,16);return a<=55295||a>=57344?String.fromCodePoint(a):"�"}}}function bb(e={}){const t=e.location!==!1,{onError:n}=e;function a(b,S,y,m,...w){const E=b.currentPosition();if(E.offset+=m,E.column+=m,n){const C=t?zl(y,E):null,R=xr(S,C,{domain:fb,args:w});n(R)}}function o(b,S,y){const m={type:b};return t&&(m.start=S,m.end=S,m.loc={start:y,end:y}),m}function l(b,S,y,m){t&&(b.end=S,b.loc&&(b.loc.end=y))}function i(b,S){const y=b.context(),m=o(3,y.offset,y.startLoc);return m.value=S.replace(mb,hb),l(m,b.currentOffset(),b.currentPosition()),m}function s(b,S){const y=b.context(),{lastOffset:m,lastStartLoc:w}=y,E=o(5,m,w);return E.index=parseInt(S,10),b.nextToken(),l(E,b.currentOffset(),b.currentPosition()),E}function u(b,S){const y=b.context(),{lastOffset:m,lastStartLoc:w}=y,E=o(4,m,w);return E.key=S,b.nextToken(),l(E,b.currentOffset(),b.currentPosition()),E}function d(b,S){const y=b.context(),{lastOffset:m,lastStartLoc:w}=y,E=o(9,m,w);return E.value=S.replace(vb,gb),b.nextToken(),l(E,b.currentOffset(),b.currentPosition()),E}function c(b){const S=b.nextToken(),y=b.context(),{lastOffset:m,lastStartLoc:w}=y,E=o(8,m,w);return S.type!==11?(a(b,De.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),E.value="",l(E,m,w),{nextConsumeToken:S,node:E}):(S.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,gn(S)),E.value=S.value||"",l(E,b.currentOffset(),b.currentPosition()),{node:E})}function g(b,S){const y=b.context(),m=o(7,y.offset,y.startLoc);return m.value=S,l(m,b.currentOffset(),b.currentPosition()),m}function v(b){const S=b.context(),y=o(6,S.offset,S.startLoc);let m=b.nextToken();if(m.type===8){const w=c(b);y.modifier=w.node,m=w.nextConsumeToken||b.nextToken()}switch(m.type!==9&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(m)),m=b.nextToken(),m.type===2&&(m=b.nextToken()),m.type){case 10:m.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(m)),y.key=g(b,m.value||"");break;case 4:m.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(m)),y.key=u(b,m.value||"");break;case 5:m.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(m)),y.key=s(b,m.value||"");break;case 6:m.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(m)),y.key=d(b,m.value||"");break;default:{a(b,De.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const w=b.context(),E=o(7,w.offset,w.startLoc);return E.value="",l(E,w.offset,w.startLoc),y.key=E,l(y,w.offset,w.startLoc),{nextConsumeToken:m,node:y}}}return l(y,b.currentOffset(),b.currentPosition()),{node:y}}function h(b){const S=b.context(),y=S.currentType===1?b.currentOffset():S.offset,m=S.currentType===1?S.endLoc:S.startLoc,w=o(2,y,m);w.items=[];let E=null;do{const H=E||b.nextToken();switch(E=null,H.type){case 0:H.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(H)),w.items.push(i(b,H.value||""));break;case 5:H.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(H)),w.items.push(s(b,H.value||""));break;case 4:H.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(H)),w.items.push(u(b,H.value||""));break;case 6:H.value==null&&a(b,De.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,gn(H)),w.items.push(d(b,H.value||""));break;case 7:{const q=v(b);w.items.push(q.node),E=q.nextConsumeToken||null;break}}}while(S.currentType!==13&&S.currentType!==1);const C=S.currentType===1?S.lastOffset:b.currentOffset(),R=S.currentType===1?S.lastEndLoc:b.currentPosition();return l(w,C,R),w}function f(b,S,y,m){const w=b.context();let E=m.items.length===0;const C=o(1,S,y);C.cases=[],C.cases.push(m);do{const R=h(b);E||(E=R.items.length===0),C.cases.push(R)}while(w.currentType!==13);return E&&a(b,De.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),l(C,b.currentOffset(),b.currentPosition()),C}function _(b){const S=b.context(),{offset:y,startLoc:m}=S,w=h(b);return S.currentType===13?w:f(b,y,m,w)}function p(b){const S=db(b,qt({},e)),y=S.context(),m=o(0,y.offset,y.startLoc);return t&&m.loc&&(m.loc.source=b),m.body=_(S),e.onCacheKey&&(m.cacheKey=e.onCacheKey(b)),y.currentType!==13&&a(S,De.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,b[y.offset]||""),l(m,S.currentOffset(),S.currentPosition()),m}return{parse:p}}function gn(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function pb(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:l=>(n.helpers.add(l),l)}}function Xu(e,t){for(let n=0;n<e.length;n++)Hl(e[n],t)}function Hl(e,t){switch(e.type){case 1:Xu(e.cases,t),t.helper("plural");break;case 2:Xu(e.items,t);break;case 6:{Hl(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function yb(e,t={}){const n=pb(e);n.helper("normalize"),e.body&&Hl(e.body,n);const a=n.context();e.helpers=Array.from(a.helpers)}function _b(e){const t=e.body;return t.type===2?Ju(t):t.cases.forEach(n=>Ju(n)),e}function Ju(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const a=e.items[n];if(!(a.type===3||a.type===9)||a.value==null)break;t.push(a.value)}if(t.length===e.items.length){e.static=Fl(t);for(let n=0;n<e.items.length;n++){const a=e.items[n];(a.type===3||a.type===9)&&delete a.value}}}}const Sb="minifier";function Er(e){switch(e.t=e.type,e.type){case 0:{const t=e;Er(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let a=0;a<n.length;a++)Er(n[a]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let a=0;a<n.length;a++)Er(n[a]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Er(t.key),t.k=t.key,delete t.key,t.modifier&&(Er(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw xr(De.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Sb,args:[e.type]})}delete e.type}const wb="parser";function Cb(e,t){const{filename:n,breakLineCode:a,needIndent:o}=t,l=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};l&&e.loc&&(i.source=e.loc.source);const s=()=>i;function u(_,p){i.code+=_}function d(_,p=!0){const b=p?a:"";u(o?b+" ".repeat(_):b)}function c(_=!0){const p=++i.indentLevel;_&&d(p)}function g(_=!0){const p=--i.indentLevel;_&&d(p)}function v(){d(i.indentLevel)}return{context:s,push:u,indent:c,deindent:g,newline:v,helper:_=>`_${_}`,needIndent:()=>i.needIndent}}function kb(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Tr(e,t.key),t.modifier?(e.push(", "),Tr(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function xb(e,t){const{helper:n,needIndent:a}=e;e.push(`${n("normalize")}([`),e.indent(a());const o=t.items.length;for(let l=0;l<o&&(Tr(e,t.items[l]),l!==o-1);l++)e.push(", ");e.deindent(a()),e.push("])")}function Eb(e,t){const{helper:n,needIndent:a}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(a());const o=t.cases.length;for(let l=0;l<o&&(Tr(e,t.cases[l]),l!==o-1);l++)e.push(", ");e.deindent(a()),e.push("])")}}function Tb(e,t){t.body?Tr(e,t.body):e.push("null")}function Tr(e,t){const{helper:n}=e;switch(t.type){case 0:Tb(e,t);break;case 1:Eb(e,t);break;case 2:xb(e,t);break;case 6:kb(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw xr(De.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:wb,args:[t.type]})}}const qb=(e,t={})=>{const n=Ee(t.mode)?t.mode:"normal",a=Ee(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
15
|
-
`,l=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],s=Cb(e,{filename:a,breakLineCode:o,needIndent:l});s.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(l),i.length>0&&(s.push(`const { ${Fl(i.map(c=>`${c}: _${c}`),", ")} } = ctx`),s.newline()),s.push("return "),Tr(s,e),s.deindent(l),s.push("}"),delete e.helpers;const{code:u,map:d}=s.context();return{ast:e,code:u,map:d?d.toJSON():void 0}};function Ob(e,t={}){const n=qt({},t),a=!!n.jit,o=!!n.minify,l=n.optimize==null?!0:n.optimize,s=bb(n).parse(e);return a?(l&&_b(s),o&&Er(s),{ast:s,code:""}):(yb(s,n),qb(s,n))}function Mb(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(nr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(nr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ln(e){return tt(e)&&jl(e)===0&&(Xt(e,"b")||Xt(e,"body"))}const Zu=["b","body"];function Lb(e){return Nn(e,Zu)}const Vu=["c","cases"];function Ab(e){return Nn(e,Vu,[])}const ec=["s","static"];function Rb(e){return Nn(e,ec)}const tc=["i","items"];function Pb(e){return Nn(e,tc,[])}const nc=["t","type"];function jl(e){return Nn(e,nc)}const rc=["v","value"];function oo(e,t){const n=Nn(e,rc);if(n!=null)return n;throw sa(t)}const ac=["m","modifier"];function Nb(e){return Nn(e,ac)}const oc=["k","key"];function Ib(e){const t=Nn(e,oc);if(t)return t;throw sa(6)}function Nn(e,t,n){for(let a=0;a<t.length;a++){const o=t[a];if(Xt(e,o)&&e[o]!=null)return e[o]}return n}const lc=[...Zu,...Vu,...ec,...tc,...oc,...ac,...rc,...nc];function sa(e){return new Error(`unhandled node type: ${e}`)}function Ul(e){return n=>Db(n,e)}function Db(e,t){const n=Lb(t);if(n==null)throw sa(0);if(jl(n)===1){const l=Ab(n);return e.plural(l.reduce((i,s)=>[...i,ic(e,s)],[]))}else return ic(e,n)}function ic(e,t){const n=Rb(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const a=Pb(t).reduce((o,l)=>[...o,Ql(e,l)],[]);return e.normalize(a)}}function Ql(e,t){const n=jl(t);switch(n){case 3:return oo(t,n);case 9:return oo(t,n);case 4:{const a=t;if(Xt(a,"k")&&a.k)return e.interpolate(e.named(a.k));if(Xt(a,"key")&&a.key)return e.interpolate(e.named(a.key));throw sa(n)}case 5:{const a=t;if(Xt(a,"i")&&Tt(a.i))return e.interpolate(e.list(a.i));if(Xt(a,"index")&&Tt(a.index))return e.interpolate(e.list(a.index));throw sa(n)}case 6:{const a=t,o=Nb(a),l=Ib(a);return e.linked(Ql(e,l),o?Ql(e,o):void 0,e.type)}case 7:return oo(t,n);case 8:return oo(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const $b="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Bb(e,t){t&&ab(e)&&mn(eo($b,{source:e}))}const Fb=e=>e;let lo=ot();function zb(e,t={}){let n=!1;const a=t.onError||nb;return t.onError=o=>{n=!0,a(o)},{...Ob(e,t),detectError:n}}function Hb(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ee(e)){const n=St(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Bb(e,n);const o=(t.onCacheKey||Fb)(e),l=lo[o];if(l)return l;const{ast:i,detectError:s}=zb(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=Ul(i);return s?u:lo[o]=u}else{if(process.env.NODE_ENV!=="production"&&!ln(e))return mn(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);const n=e.cacheKey;if(n){const a=lo[n];return a||(lo[n]=Ul(e))}else return Ul(e)}}let ua=null;function jb(e){ua=e}function Ub(e,t,n){ua&&ua.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Qb=Wb("function:translate");function Wb(e){return t=>ua&&ua.emit(e,t)}const It={INVALID_ARGUMENT:eb,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Kb=24;function xn(e){return xr(e,null,process.env.NODE_ENV!=="production"?{messages:Yb}:void 0)}const Yb={[It.INVALID_ARGUMENT]:"Invalid arguments",[It.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[It.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[It.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[It.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[It.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[It.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Wl(e,t){return t.locale!=null?sc(t.locale):sc(e.locale)}let Kl;function sc(e){if(Ee(e))return e;if(vt(e)){if(e.resolvedOnce&&Kl!=null)return Kl;if(e.constructor.name==="Function"){const t=e();if(Gg(t))throw xn(It.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Kl=t}else throw xn(It.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw xn(It.NOT_SUPPORT_LOCALE_TYPE)}function Gb(e,t,n){return[...new Set([n,..._t(t)?t:tt(t)?Object.keys(t):Ee(t)?[t]:[n]])]}function Yl(e,t,n){const a=Ee(n)?n:so,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let l=o.__localeChainCache.get(a);if(!l){l=[];let i=[n];for(;_t(i);)i=uc(l,i,t);const s=_t(t)||!rt(t)?t:t.default?t.default:null;i=Ee(s)?[s]:s,_t(i)&&uc(l,i,!1),o.__localeChainCache.set(a,l)}return l}function uc(e,t,n){let a=!0;for(let o=0;o<t.length&&St(a);o++){const l=t[o];Ee(l)&&(a=Xb(e,t[o],n))}return a}function Xb(e,t,n){let a;const o=t.split("-");do{const l=o.join("-");a=Jb(e,l,n),o.splice(-1,1)}while(o.length&&a===!0);return a}function Jb(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(_t(n)||rt(n))&&n[o]&&(a=n[o])}return a}const In=[];In[0]={w:[0],i:[3,0],"[":[4],o:[7]},In[1]={w:[1],".":[2],"[":[4],o:[7]},In[2]={w:[2],i:[3,0],0:[3,0]},In[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},In[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},In[5]={"'":[4,0],o:8,l:[5,0]},In[6]={'"':[4,0],o:8,l:[6,0]};const Zb=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Vb(e){return Zb.test(e)}function ep(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function tp(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function np(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Vb(t)?ep(t):"*"+t}function rp(e){const t=[];let n=-1,a=0,o=0,l,i,s,u,d,c,g;const v=[];v[0]=()=>{i===void 0?i=s:i+=s},v[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},v[2]=()=>{v[0](),o++},v[3]=()=>{if(o>0)o--,a=4,v[0]();else{if(o=0,i===void 0||(i=np(i),i===!1))return!1;v[1]()}};function h(){const f=e[n+1];if(a===5&&f==="'"||a===6&&f==='"')return n++,s="\\"+f,v[0](),!0}for(;a!==null;)if(n++,l=e[n],!(l==="\\"&&h())){if(u=tp(l),g=In[a],d=g[u]||g.l||8,d===8||(a=d[0],d[1]!==void 0&&(c=v[d[1]],c&&(s=l,c()===!1))))return;if(a===7)return t}}const cc=new Map;function ap(e,t){return tt(e)?e[t]:null}function op(e,t){if(!tt(e))return null;let n=cc.get(t);if(n||(n=rp(t),n&&cc.set(t,n)),!n)return null;const a=n.length;let o=e,l=0;for(;l<a;){const i=n[l];if(lc.includes(i)&&ln(o)||!tt(o)||!Xt(o,i))return null;const s=o[i];if(s===void 0||vt(o))return null;o=s,l++}return o}const Ot={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9},qr=10,lp={[Ot.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Ot.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Ot.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Ot.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Ot.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Ot.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Ot.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.",[Ot.INVALID_NUMBER_ARGUMENT]:"Invalid argument for number formatting: expected a number but received '{value}'.",[Ot.INVALID_DATE_ARGUMENT]:"Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."};function En(e,...t){return eo(lp[e],...t)}const ip="11.3.0",io=-1,so="en-US",Or="",dc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function sp(){return{upper:(e,t)=>t==="text"&&Ee(e)?e.toUpperCase():t==="vnode"&&tt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ee(e)?e.toLowerCase():t==="vnode"&&tt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ee(e)?dc(e):t==="vnode"&&tt(e)&&"__v_isVNode"in e?dc(e.children):e}}let fc;function up(e){fc=e}let vc;function cp(e){vc=e}let mc;function dp(e){mc=e}let hc=null;const fp=e=>{hc=e},vp=()=>hc;let gc=null;const bc=e=>{gc=e},mp=()=>gc;let pc=0;function hp(e={}){const t=vt(e.onWarn)?e.onWarn:mn,n=Ee(e.version)?e.version:ip,a=Ee(e.locale)||vt(e.locale)?e.locale:so,o=vt(a)?so:a,l=_t(e.fallbackLocale)||rt(e.fallbackLocale)||Ee(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=rt(e.messages)?e.messages:Gl(o),s=rt(e.datetimeFormats)?e.datetimeFormats:Gl(o),u=rt(e.numberFormats)?e.numberFormats:Gl(o),d=qt(ot(),e.modifiers,sp()),c=e.pluralRules||ot(),g=vt(e.missing)?e.missing:null,v=St(e.missingWarn)||to(e.missingWarn)?e.missingWarn:!0,h=St(e.fallbackWarn)||to(e.fallbackWarn)?e.fallbackWarn:!0,f=!!e.fallbackFormat,_=!!e.unresolving,p=vt(e.postTranslation)?e.postTranslation:null,b=rt(e.processor)?e.processor:null,S=St(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,m=vt(e.messageCompiler)?e.messageCompiler:fc;process.env.NODE_ENV!=="production"&&vt(e.messageCompiler)&&Hg(En(Ot.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const w=vt(e.messageResolver)?e.messageResolver:vc||ap,E=vt(e.localeFallbacker)?e.localeFallbacker:mc||Gb,C=tt(e.fallbackContext)?e.fallbackContext:void 0,R=e,H=tt(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,q=tt(R.__numberFormatters)?R.__numberFormatters:new Map,T=tt(R.__meta)?R.__meta:{};pc++;const M={version:n,cid:pc,locale:a,fallbackLocale:l,messages:i,modifiers:d,pluralRules:c,missing:g,missingWarn:v,fallbackWarn:h,fallbackFormat:f,unresolving:_,postTranslation:p,processor:b,warnHtmlMessage:S,escapeParameter:y,messageCompiler:m,messageResolver:w,localeFallbacker:E,fallbackContext:C,onWarn:t,__meta:T};return M.datetimeFormats=s,M.numberFormats=u,M.__datetimeFormatters=H,M.__numberFormatters=q,process.env.NODE_ENV!=="production"&&(M.__v_emitter=R.__v_emitter!=null?R.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Ub(M,n,T),M}const Gl=e=>({[e]:ot()});function uo(e,t){return e instanceof RegExp?e.test(t):e}function yc(e,t){return e instanceof RegExp?e.test(t):e}function Xl(e,t,n,a,o){const{missing:l,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:n,key:t,type:o,groupId:`${o}:${t}`})}if(l!==null){const s=l(e,n,t,o);return Ee(s)?s:t}else return process.env.NODE_ENV!=="production"&&yc(a,t)&&i(En(Ot.NOT_FOUND_KEY,{key:t,locale:n})),t}function ca(e,t,n){const a=e;a.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function _c(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function gp(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let a=n+1;a<t.length;a++)if(_c(e,t[a]))return!0;return!1}const Sc=typeof Intl<"u",wc={dateTimeFormat:Sc&&typeof Intl.DateTimeFormat<"u",numberFormat:Sc&&typeof Intl.NumberFormat<"u"};function Cc(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:o,onWarn:l,localeFallbacker:i}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!wc.dateTimeFormat)return l(En(Ot.CANNOT_FORMAT_DATE)),Or;if(!Ee(t[0])&&!ju(t[0])&&!Tt(t[0]))return process.env.NODE_ENV!=="production"&&l(En(Ot.INVALID_DATE_ARGUMENT,{value:String(t[0])})),Or;const[u,d,c,g]=Jl(...t),v=St(c.missingWarn)?c.missingWarn:e.missingWarn,h=St(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,_=Wl(e,c),p=i(e,o,_);if(!Ee(u)||u==="")return new Intl.DateTimeFormat(_.replace(/!/g,""),g).format(d);let b={},S,y=null,m=_,w=null;const E="datetime format";for(let H=0;H<p.length;H++){if(S=w=p[H],process.env.NODE_ENV!=="production"&&_!==S&&uo(h,u)&&l(En(Ot.FALLBACK_TO_DATE_FORMAT,{key:u,target:S})),process.env.NODE_ENV!=="production"&&_!==S){const q=e.__v_emitter;q&&q.emit("fallback",{type:E,key:u,from:m,to:w,groupId:`${E}:${u}`})}if(b=n[S]||{},y=b[u],rt(y))break;Xl(e,u,S,v,E),m=w}if(!rt(y)||!Ee(S))return a?io:u;let C=`${S}__${u}`;no(g)||(C=`${C}__${JSON.stringify(g)}`);let R=s.get(C);return R||(R=new Intl.DateTimeFormat(S,qt({},y,g)),s.set(C,R)),f?R.formatToParts(d):R.format(d)}const kc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Jl(...e){const[t,n,a,o]=e,l=ot();let i=ot(),s;if(Ee(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw xn(It.INVALID_ISO_DATE_ARGUMENT);const d=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();s=new Date(d);try{s.toISOString()}catch{throw xn(It.INVALID_ISO_DATE_ARGUMENT)}}else if(ju(t)){if(isNaN(t.getTime()))throw xn(It.INVALID_DATE_ARGUMENT);s=t}else if(Tt(t))s=t;else throw xn(It.INVALID_ARGUMENT);return Ee(n)?l.key=n:rt(n)&&Object.keys(n).forEach(u=>{kc.includes(u)?i[u]=n[u]:l[u]=n[u]}),Ee(a)?l.locale=a:rt(a)&&(i=a),rt(o)&&(i=o),[l.key||"",s,l,i]}function xc(e,t,n){const a=e;for(const o in n){const l=`${t}__${o}`;a.__datetimeFormatters.has(l)&&a.__datetimeFormatters.delete(l)}}function Ec(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:o,onWarn:l,localeFallbacker:i}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!wc.numberFormat)return l(En(Ot.CANNOT_FORMAT_NUMBER)),Or;if(!Tt(t[0]))return process.env.NODE_ENV!=="production"&&l(En(Ot.INVALID_NUMBER_ARGUMENT,{value:String(t[0])})),Or;const[u,d,c,g]=Zl(...t),v=St(c.missingWarn)?c.missingWarn:e.missingWarn,h=St(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,_=Wl(e,c),p=i(e,o,_);if(!Ee(u)||u==="")return new Intl.NumberFormat(_.replace(/!/g,""),g).format(d);let b={},S,y=null,m=_,w=null;const E="number format";for(let H=0;H<p.length;H++){if(S=w=p[H],process.env.NODE_ENV!=="production"&&_!==S&&uo(h,u)&&l(En(Ot.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:S})),process.env.NODE_ENV!=="production"&&_!==S){const q=e.__v_emitter;q&&q.emit("fallback",{type:E,key:u,from:m,to:w,groupId:`${E}:${u}`})}if(b=n[S]||{},y=b[u],rt(y))break;Xl(e,u,S,v,E),m=w}if(!rt(y)||!Ee(S))return a?io:u;let C=`${S}__${u}`;no(g)||(C=`${C}__${JSON.stringify(g)}`);let R=s.get(C);return R||(R=new Intl.NumberFormat(S,qt({},y,g)),s.set(C,R)),f?R.formatToParts(d):R.format(d)}const Tc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Zl(...e){const[t,n,a,o]=e,l=ot();let i=ot();if(!Tt(t))throw xn(It.INVALID_ARGUMENT);const s=t;return Ee(n)?l.key=n:rt(n)&&Object.keys(n).forEach(u=>{Tc.includes(u)?i[u]=n[u]:l[u]=n[u]}),Ee(a)?l.locale=a:rt(a)&&(i=a),rt(o)&&(i=o),[l.key||"",s,l,i]}function qc(e,t,n){const a=e;for(const o in n){const l=`${t}__${o}`;a.__numberFormatters.has(l)&&a.__numberFormatters.delete(l)}}const bp=e=>e,pp=e=>"",yp="text",_p=e=>e.length===0?"":Fl(e),Sp=Xg;function Vl(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function wp(e){const t=Tt(e.pluralIndex)?e.pluralIndex:-1;return Tt(e.named?.count)?e.named.count:Tt(e.named?.n)?e.named.n:t}function Cp(e={}){const t=e.locale,n=wp(e),a=Ee(t)&&vt(e.pluralRules?.[t])?e.pluralRules[t]:Vl,o=a===Vl?void 0:Vl,l=b=>b[a(n,b.length,o)],i=e.list||[],s=b=>i[b],u=e.named||ot();Tt(e.pluralIndex)&&(u.count||=e.pluralIndex,u.n||=e.pluralIndex);const d=b=>u[b];function c(b,S){const y=vt(e.messages)?e.messages(b,!!S):tt(e.messages)?e.messages[b]:!1;return y||(e.parent?e.parent.message(b):pp)}const g=b=>e.modifiers?e.modifiers[b]:bp,v=vt(e.processor?.normalize)?e.processor.normalize:_p,h=vt(e.processor?.interpolate)?e.processor.interpolate:Sp,f=Ee(e.processor?.type)?e.processor.type:yp,p={list:s,named:d,plural:l,linked:(b,...S)=>{const[y,m]=S;let w="text",E="";S.length===1?tt(y)?(E=y.modifier||E,w=y.type||w):Ee(y)&&(E=y||E):S.length===2&&(Ee(y)&&(E=y||E),Ee(m)&&(w=m||w));const C=c(b,!0)(p),R=C===""||C===void 0?b:C,H=w==="vnode"&&_t(R)&&E?R[0]:R;return E?g(E)(H,w):H},message:c,type:f,interpolate:h,normalize:v,values:qt(ot(),i,u)};return p}const Oc=()=>"",Jt=e=>vt(e);function Mc(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:o,messageCompiler:l,fallbackLocale:i,messages:s}=e,[u,d]=ei(...t),c=St(d.missingWarn)?d.missingWarn:e.missingWarn,g=St(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,v=St(d.escapeParameter)?d.escapeParameter:e.escapeParameter,h=!!d.resolvedMessage,f=Ee(d.default)||St(d.default)?St(d.default)?l?u:()=>u:d.default:n?l?u:()=>u:null,_=n||f!=null&&(Ee(f)||vt(f)),p=Wl(e,d);v&&kp(d);let[b,S,y]=h?[u,p,s[p]||ot()]:Lc(e,u,p,i,g,c),m=b,w=u;if(!h&&!(Ee(m)||ln(m)||Jt(m))&&_&&(m=f,w=m),!h&&(!(Ee(m)||ln(m)||Jt(m))||!Ee(S)))return o?io:u;if(process.env.NODE_ENV!=="production"&&Ee(m)&&e.messageCompiler==null)return mn(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`),u;let E=!1;const C=()=>{E=!0},R=Jt(m)?m:Ac(e,u,S,m,w,C);if(E)return m;const H=qp(e,S,y,d),q=Cp(H),T=xp(e,R,q);let M=a?a(T,u):T;if(v&&Ee(M)&&(M=Kg(M)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const O={timestamp:Date.now(),key:Ee(u)?u:Jt(m)?m.key:"",locale:S||(Jt(m)?m.locale:""),format:Ee(m)?m:Jt(m)?m.source:"",message:M};O.meta=qt({},e.__meta,vp()||{}),Qb(O)}return M}function kp(e){_t(e.list)?e.list=e.list.map(t=>Ee(t)?Qu(t):t):tt(e.named)&&Object.keys(e.named).forEach(t=>{Ee(e.named[t])&&(e.named[t]=Qu(e.named[t]))})}function Lc(e,t,n,a,o,l){const{messages:i,onWarn:s,messageResolver:u,localeFallbacker:d}=e,c=d(e,a,n);let g=ot(),v,h=null,f=n,_=null;const p="translate";for(let b=0;b<c.length;b++){if(v=_=c[b],process.env.NODE_ENV!=="production"&&n!==v&&!_c(n,v)&&uo(o,t)&&s(En(Ot.FALLBACK_TO_TRANSLATE,{key:t,target:v})),process.env.NODE_ENV!=="production"&&n!==v){const w=e.__v_emitter;w&&w.emit("fallback",{type:p,key:t,from:f,to:_,groupId:`${p}:${t}`})}g=i[v]||ot();let S=null,y,m;if(process.env.NODE_ENV!=="production"&&wn&&(S=window.performance.now(),y="intlify-message-resolve-start",m="intlify-message-resolve-end",Qt&&Qt(y)),(h=u(g,t))===null&&(h=g[t]),process.env.NODE_ENV!=="production"&&wn){const w=window.performance.now(),E=e.__v_emitter;E&&S&&h&&E.emit("message-resolve",{type:"message-resolve",key:t,message:h,time:w-S,groupId:`${p}:${t}`}),y&&m&&Qt&&tr&&(Qt(m),tr("intlify message resolve",y,m))}if(Ee(h)||ln(h)||Jt(h))break;if(!gp(v,c)){const w=Xl(e,t,v,l,p);w!==t&&(h=w)}f=_}return[h,v,g]}function Ac(e,t,n,a,o,l){const{messageCompiler:i,warnHtmlMessage:s}=e;if(Jt(a)){const v=a;return v.locale=v.locale||n,v.key=v.key||t,v}if(i==null){const v=(()=>a);return v.locale=n,v.key=t,v}let u=null,d,c;process.env.NODE_ENV!=="production"&&wn&&(u=window.performance.now(),d="intlify-message-compilation-start",c="intlify-message-compilation-end",Qt&&Qt(d));const g=i(a,Ep(e,n,o,a,s,l));if(process.env.NODE_ENV!=="production"&&wn){const v=window.performance.now(),h=e.__v_emitter;h&&u&&h.emit("message-compilation",{type:"message-compilation",message:a,time:v-u,groupId:`translate:${t}`}),d&&c&&Qt&&tr&&(Qt(c),tr("intlify message compilation",d,c))}return g.locale=n,g.key=t,g.source=a,g}function xp(e,t,n){let a=null,o,l;process.env.NODE_ENV!=="production"&&wn&&(a=window.performance.now(),o="intlify-message-evaluation-start",l="intlify-message-evaluation-end",Qt&&Qt(o));const i=t(n);if(process.env.NODE_ENV!=="production"&&wn){const s=window.performance.now(),u=e.__v_emitter;u&&a&&u.emit("message-evaluation",{type:"message-evaluation",value:i,time:s-a,groupId:`translate:${t.key}`}),o&&l&&Qt&&tr&&(Qt(l),tr("intlify message evaluation",o,l))}return i}function ei(...e){const[t,n,a]=e,o=ot();if(!Ee(t)&&!Tt(t)&&!Jt(t)&&!ln(t))throw xn(It.INVALID_ARGUMENT);const l=Tt(t)?String(t):(Jt(t),t);return Tt(n)?o.plural=n:Ee(n)?o.default=n:rt(n)&&!no(n)?o.named=n:_t(n)&&(o.list=n),Tt(a)?o.plural=a:Ee(a)?o.default=a:rt(a)&&qt(o,a),[l,o]}function Ep(e,t,n,a,o,l){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{if(l&&l(i),process.env.NODE_ENV!=="production"){const s=Tp(a),u=i.location&&s&&Jg(s,i.location.start.offset,i.location.end.offset),d=e.__v_emitter;d&&s&&d.emit("compile-error",{message:s,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${n}`});const c=`Message compilation error: ${i.message}`;throw new SyntaxError(u?`${c}
|
|
16
|
-
${
|
|
17
|
-
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[bn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[bn.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function co(e,...t){return eo(Rp[e],...t)}function fa(e){if(!tt(e)||ln(e))return e;for(const t in e)if(Xt(e,t))if(!t.includes("."))tt(e[t])&&fa(e[t]);else{const n=t.split("."),a=n.length-1;let o=e,l=!1;for(let i=0;i<a;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in o||(o[n[i]]=ot()),!tt(o[n[i]])){process.env.NODE_ENV!=="production"&&mn(co(bn.IGNORE_OBJ_FLATTEN,{key:n[i]})),l=!0;break}o=o[n[i]]}if(l||(ln(o)?lc.includes(n[a])||delete e[t]:(o[n[a]]=e[t],delete e[t])),!ln(o)){const i=o[n[a]];tt(i)&&fa(i)}}return e}function Pc(e,t){const{messages:n,__i18n:a,messageResolver:o,flatJson:l}=t,i=rt(n)?n:_t(a)?ot():{[e]:ot()};if(_t(a)&&a.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:u,resource:d}=s;u?(i[u]=i[u]||ot(),ao(d,i[u])):ao(d,i)}else Ee(s)&&ao(JSON.parse(s),i)}),o==null&&l)for(const s in i)Xt(i,s)&&fa(i[s]);return i}function Nc(e){return e.type}function Pp(e,t,n){let a=tt(t.messages)?t.messages:ot();"__i18nGlobal"in n&&(a=Pc(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const o=Object.keys(a);o.length&&o.forEach(l=>{e.mergeLocaleMessage(l,a[l])});{if(tt(t.datetimeFormats)){const l=Object.keys(t.datetimeFormats);l.length&&l.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(tt(t.numberFormats)){const l=Object.keys(t.numberFormats);l.length&&l.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Ic(e){return r.createVNode(r.Text,null,e,0)}function ii(){const e="currentInstance";return e in fl?fl[e]:fl.getCurrentInstance()}const Dc="__INTLIFY_META__",$c=()=>[],Np=()=>!1;let Bc=0;function Fc(e){return((t,n,a,o)=>e(n,a,ii()||void 0,o))}const Ip=()=>{const e=ii();let t=null;return e&&(t=Nc(e)[Dc])?{[Dc]:t}:null};function Dp(e={}){const{__root:t,__injectWithOption:n}=e,a=t===void 0,o=e.flatJson,l=wn?r.ref:r.shallowRef;let i=St(e.inheritLocale)?e.inheritLocale:!0;const s=l(t&&i?t.locale.value:Ee(e.locale)?e.locale:so),u=l(t&&i?t.fallbackLocale.value:Ee(e.fallbackLocale)||_t(e.fallbackLocale)||rt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),d=l(Pc(s.value,e)),c=l(rt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),g=l(rt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let v=t?t.missingWarn:St(e.missingWarn)||to(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:St(e.fallbackWarn)||to(e.fallbackWarn)?e.fallbackWarn:!0,f=t?t.fallbackRoot:St(e.fallbackRoot)?e.fallbackRoot:!0,_=!!e.fallbackFormat,p=vt(e.missing)?e.missing:null,b=vt(e.missing)?Fc(e.missing):null,S=vt(e.postTranslation)?e.postTranslation:null,y=t?t.warnHtmlMessage:St(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter;const w=t?t.modifiers:rt(e.modifiers)?e.modifiers:{};let E=e.pluralRules||t&&t.pluralRules,C;C=(()=>{a&&bc(null);const J={version:Op,locale:s.value,fallbackLocale:u.value,messages:d.value,modifiers:w,pluralRules:E,missing:b===null?void 0:b,missingWarn:v,fallbackWarn:h,fallbackFormat:_,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:y,escapeParameter:m,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};J.datetimeFormats=c.value,J.numberFormats=g.value,J.__datetimeFormatters=rt(C)?C.__datetimeFormatters:void 0,J.__numberFormatters=rt(C)?C.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(J.__v_emitter=rt(C)?C.__v_emitter:void 0);const ae=hp(J);return a&&bc(ae),ae})(),ca(C,s.value,u.value);function H(){return[s.value,u.value,d.value,c.value,g.value]}const q=r.computed({get:()=>s.value,set:J=>{C.locale=J,s.value=J}}),T=r.computed({get:()=>u.value,set:J=>{C.fallbackLocale=J,u.value=J,ca(C,s.value,J)}}),M=r.computed(()=>d.value),O=r.computed(()=>c.value),k=r.computed(()=>g.value);function A(){return vt(S)?S:null}function D(J){S=J,C.postTranslation=J}function z(){return p}function F(J){J!==null&&(b=Fc(J)),p=J,C.missing=b}function Z(J,ae){return J!=="translate"||!ae.resolvedMessage}const he=(J,ae,be,ke,Qe,je)=>{H();let ee;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(C.fallbackContext=t?mp():void 0),ee=J(C)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,a||(C.fallbackContext=void 0)}if(be!=="translate exists"&&Tt(ee)&&ee===io||be==="translate exists"&&!ee){const[ce,V]=ae();if(process.env.NODE_ENV!=="production"&&t&&Ee(ce)&&Z(be,V)&&(f&&(uo(h,ce)||yc(v,ce))&&mn(co(bn.FALLBACK_TO_ROOT,{key:ce,type:be})),process.env.NODE_ENV!=="production")){const{__v_emitter:de}=C;de&&f&&de.emit("fallback",{type:be,key:ce,to:"global",groupId:`${be}:${ce}`})}return t&&f?ke(t):Qe(ce)}else{if(je(ee))return ee;throw da(Lt.UNEXPECTED_RETURN_TYPE)}};function $(...J){return he(ae=>Reflect.apply(Mc,null,[ae,...J]),()=>ei(...J),"translate",ae=>Reflect.apply(ae.t,ae,[...J]),ae=>ae,ae=>Ee(ae))}function x(...J){const[ae,be,ke]=J;if(ke&&!tt(ke))throw da(Lt.INVALID_ARGUMENT);return $(ae,be,qt({resolvedMessage:!0},ke||{}))}function Y(...J){return he(ae=>Reflect.apply(Cc,null,[ae,...J]),()=>Jl(...J),"datetime format",ae=>Reflect.apply(ae.d,ae,[...J]),()=>Or,ae=>Ee(ae)||_t(ae))}function B(...J){return he(ae=>Reflect.apply(Ec,null,[ae,...J]),()=>Zl(...J),"number format",ae=>Reflect.apply(ae.n,ae,[...J]),()=>Or,ae=>Ee(ae)||_t(ae))}function le(J){return J.map(ae=>Ee(ae)||Tt(ae)||St(ae)?Ic(String(ae)):ae)}const U={normalize:le,interpolate:J=>J,type:"vnode"};function ue(...J){return he(ae=>{let be;const ke=ae;try{ke.processor=U,be=Reflect.apply(Mc,null,[ke,...J])}finally{ke.processor=null}return be},()=>ei(...J),"translate",ae=>ae[ti](...J),ae=>[Ic(ae)],ae=>_t(ae))}function W(...J){return he(ae=>Reflect.apply(Ec,null,[ae,...J]),()=>Zl(...J),"number format",ae=>ae[ri](...J),$c,ae=>Ee(ae)||_t(ae))}function ve(...J){return he(ae=>Reflect.apply(Cc,null,[ae,...J]),()=>Jl(...J),"datetime format",ae=>ae[ni](...J),$c,ae=>Ee(ae)||_t(ae))}function _e(J){E=J,C.pluralRules=E}function G(J,ae){return he(()=>{if(!J)return!1;const be=Ee(ae)?ae:s.value,ke=Ee(ae)?[be]:Yl(C,u.value,be);for(let Qe=0;Qe<ke.length;Qe++){const je=we(ke[Qe]);let ee=C.messageResolver(je,J);if(ee===null&&(ee=je[J]),ln(ee)||Jt(ee)||Ee(ee))return!0}return!1},()=>[J],"translate exists",be=>Reflect.apply(be.te,be,[J,ae]),Np,be=>St(be))}function ge(J){let ae=null;const be=Yl(C,u.value,s.value);for(let ke=0;ke<be.length;ke++){const Qe=d.value[be[ke]]||{},je=C.messageResolver(Qe,J);if(je!=null){ae=je;break}}return ae}function pe(J){const ae=ge(J);return ae??(t?t.tm(J)||{}:{})}function we(J){return d.value[J]||{}}function Ae(J,ae){if(o){const be={[J]:ae};for(const ke in be)Xt(be,ke)&&fa(be[ke]);ae=be[J]}d.value[J]=ae,C.messages=d.value}function fe(J,ae){d.value[J]=d.value[J]||{};const be={[J]:ae};if(o)for(const ke in be)Xt(be,ke)&&fa(be[ke]);ae=be[J],ao(ae,d.value[J]),C.messages=d.value}function L(J){return c.value[J]||{}}function I(J,ae){c.value[J]=ae,C.datetimeFormats=c.value,xc(C,J,ae)}function te(J,ae){c.value[J]=qt(c.value[J]||{},ae),C.datetimeFormats=c.value,xc(C,J,ae)}function K(J){return g.value[J]||{}}function X(J,ae){g.value[J]=ae,C.numberFormats=g.value,qc(C,J,ae)}function se(J,ae){g.value[J]=qt(g.value[J]||{},ae),C.numberFormats=g.value,qc(C,J,ae)}Bc++,t&&wn&&(r.watch(t.locale,J=>{i&&(s.value=J,C.locale=J,ca(C,s.value,u.value))}),r.watch(t.fallbackLocale,J=>{i&&(u.value=J,C.fallbackLocale=J,ca(C,s.value,u.value))}));const me={id:Bc,locale:q,fallbackLocale:T,get inheritLocale(){return i},set inheritLocale(J){i=J,J&&t&&(s.value=t.locale.value,u.value=t.fallbackLocale.value,ca(C,s.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:M,get modifiers(){return w},get pluralRules(){return E||{}},get isGlobal(){return a},get missingWarn(){return v},set missingWarn(J){v=J,C.missingWarn=v},get fallbackWarn(){return h},set fallbackWarn(J){h=J,C.fallbackWarn=h},get fallbackRoot(){return f},set fallbackRoot(J){f=J},get fallbackFormat(){return _},set fallbackFormat(J){_=J,C.fallbackFormat=_},get warnHtmlMessage(){return y},set warnHtmlMessage(J){y=J,C.warnHtmlMessage=J},get escapeParameter(){return m},set escapeParameter(J){m=J,C.escapeParameter=J},t:$,getLocaleMessage:we,setLocaleMessage:Ae,mergeLocaleMessage:fe,getPostTranslationHandler:A,setPostTranslationHandler:D,getMissingHandler:z,setMissingHandler:F,[Ap]:_e};return me.datetimeFormats=O,me.numberFormats=k,me.rt=x,me.te=G,me.tm=pe,me.d=Y,me.n=B,me.getDateTimeFormat=L,me.setDateTimeFormat=I,me.mergeDateTimeFormat=te,me.getNumberFormat=K,me.setNumberFormat=X,me.mergeNumberFormat=se,me[Rc]=n,me[ti]=ue,me[ni]=ve,me[ri]=W,process.env.NODE_ENV!=="production"&&(me[ai]=J=>{C.__v_emitter=J},me[oi]=()=>{C.__v_emitter=void 0}),me}function zc(e,t){}const si={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function $p({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,o)=>[...a,...o.type===r.Fragment?o.children:[o]],[]):t.reduce((n,a)=>{const o=e[a];return o&&(n[a]=o()),n},ot())}function Hc(){return r.Fragment}qt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Tt(e)||!isNaN(e)}},si);function Bp(e){return _t(e)&&!Ee(e[0])}function jc(e,t,n,a){const{slots:o,attrs:l}=t;return()=>{const i={part:!0};let s=ot();e.locale&&(i.locale=e.locale),Ee(e.format)?i.key=e.format:tt(e.format)&&(Ee(e.format.key)&&(i.key=e.format.key),s=Object.keys(e.format).reduce((v,h)=>n.includes(h)?qt(ot(),v,{[h]:e.format[h]}):v,ot()));const u=a(e.value,i,s);let d=[i.key];_t(u)?d=u.map((v,h)=>{const f=o[v.type],_=f?f({[v.type]:v.value,index:h,parts:u}):[v.value];return Bp(_)&&(_[0].key=`${v.type}-${h}`),_}):Ee(u)&&(d=[u]);const c=qt(ot(),l),g=Ee(e.tag)||tt(e.tag)?e.tag:Hc();return r.h(g,c,d)}}qt({value:{type:Number,required:!0},format:{type:[String,Object]}},si);const Fp=Cn("global-vue-i18n");function fo(e={}){const t=ii();if(t==null)throw da(Lt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw da(Lt.NOT_INSTALLED);const n=zp(t),a=jp(n),o=Nc(t),l=Hp(e,o);if(l==="global")return Pp(a,e,o),a;if(l==="parent"){let u=Up(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&mn(co(bn.NOT_FOUND_PARENT_SCOPE)),u=a),u}const i=n;let s=i.__getInstance(t);if(s==null){const u=qt({},e);"__i18n"in o&&(u.__i18n=o.__i18n),a&&(u.__root=a),s=Dp(u),i.__composerExtend&&(s[li]=i.__composerExtend(s)),Wp(i,t,s),i.__setInstance(t,s)}else process.env.NODE_ENV!=="production"&&l==="local"&&mn(co(bn.DUPLICATE_USE_I18N_CALLING));return s}function zp(e){const t=r.inject(e.isCE?Fp:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw da(e.isCE?Lt.NOT_INSTALLED_WITH_PROVIDE:Lt.UNEXPECTED_ERROR);return t}function Hp(e,t){return no(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function jp(e){return e.mode==="composition"?e.global:e.global.__composer}function Up(e,t,n=!1){let a=null;const o=t.root;let l=Qp(t,n);for(;l!=null;){const i=e;if(e.mode==="composition")a=i.__getInstance(l);else if(__VUE_I18N_LEGACY_API__){const s=i.__getInstance(l);s!=null&&(a=s.__composer,n&&a&&!a[Rc]&&(a=null))}if(a!=null||o===l)break;l=l.parent}return a}function Qp(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Wp(e,t,n){let a=null;r.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,a=Zg();const o=n;o[ai]&&o[ai](a),a.on("*",zc)}},t),r.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&(a&&a.off("*",zc),o[oi]&&o[oi](),delete t.__VUE_I18N__),e.__deleteInstance(t);const l=o[li];l&&(l(),delete o[li])},t)}if(qt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},si),Mp(),up(Hb),cp(op),dp(Yl),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=nr();e.__INTLIFY__=!0,jb(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;let vo=null;function Kp(e){if(vo!==null){console.warn("[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored.");return}vo=e}function Uc(){if(vo===null)throw new Error("[LinID CoreLib] I18n is not initialized. Call setI18nInstance() first.");return vo}function Qc(e){const{t,te:n,tm:a}=fo({useScope:"global",__i18n:Uc().global});function o(...u){const[d,c,g]=u;return t(typeof c=="number"?`${e}.${d}`:`${e}.${d}`,c,g)}function l(u){return n(`${e}.${u}`)}function i(u){return a(`${e}.${u}`)}function s(u,...d){return l(d[0])?o(...d):u}return{t:o,te:l,tm:i,translateOrDefault:s}}const Yp=new Set([$u.BadRequest,$u.NotFound]);function Gp(e){return yt.isAxiosError(e)&&e.response?.status!=null&&Yp.has(e.response.status)}function Wc(e){const{t}=Qc(e),{toDayjs:n}=Us();async function a(b,S,y){try{return await Fg(b,S,y),!0}catch(m){return Gp(m)?m.response.data.error:t("validation.unknownError")}}function o(b){return b==null||b===""?t("validation.required"):!0}function l(b){return typeof b!="string"||!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(b)?t("validation.email"):!0}function i(b,S){return b!=null&&b.length<S?t("validation.minLength",{min:S}):!0}function s(b,S){return b!=null&&b.length>S?t("validation.maxLength",{max:S}):!0}function u(b,S){return S>b?t("validation.min",{min:S}):!0}function d(b,S){return b>S?t("validation.max",{max:S}):!0}function c(b,S){return new RegExp(S).test(b)?!0:t("validation.pattern",{pattern:S.toString()})}function g(b,S){return b==null?!0:(typeof b=="object"?S.some(m=>Va(b,m)):S.some(m=>m!=null&&String(m)===String(b)))?t("validation.unique"):!0}function v(b,S){return b==null||b===""||n(b,S).isValid()?!0:t("validation.invalidDate",{format:S||Gn})}function h(b,S,y){if(b==null||b==="")return!0;const m=n(b,y),w=n(S,y);return!m.isValid()||!w.isValid()||m.isAfter(w,"day")?!0:t("validation.afterDate",{compareTo:w.format(y||Gn)})}function f(b,S,y){if(b==null||b==="")return!0;const m=n(b,y),w=n(S,y);return!m.isValid()||!w.isValid()||m.isBefore(w,"day")?!0:t("validation.beforeDate",{compareTo:w.format(y||Gn)})}function _(b,S,y){if(b==null||b==="")return!0;const m=n(b,y),w=n(S,y);return!m.isValid()||!w.isValid()?!0:m.isBefore(w,"day")?t("validation.fromDate",{compareTo:w.format(y||Gn)}):!0}function p(b,S,y){if(b==null||b==="")return!0;const m=n(b,y),w=n(S,y);return!m.isValid()||!w.isValid()?!0:m.isAfter(w,"day")?t("validation.upToDate",{compareTo:w.format(y||Gn)}):!0}return{validateFromApi:a,required:o,email:l,minLength:i,maxLength:s,min:u,max:d,pattern:c,unique:g,validDate:v,afterDate:h,beforeDate:f,fromDate:_,upToDate:p}}function Xp(){function e(t){kl.next({key:"notify",data:t})}return{Notify:e}}let mo=null;function Jp(e){if(mo!==null){console.warn("[LinID CoreLib] Nunjucks environment has already been initialized. Re-initialization is ignored.");return}mo=e}function Kc(){if(mo===null)throw new Error("[LinID CoreLib] Nunjucks environment is not initialized. Call setNunjucksEnv() first.");return mo}function Zp(){const e=Kc();function t(n,a){return typeof n=="string"?e.renderString(n,a):Array.isArray(n)?n.map(o=>t(o,a)):n!==null&&typeof n=="object"&&Object.getPrototypeOf(n)===Object.prototype?Object.fromEntries(Object.entries(n).map(([o,l])=>[o,t(l,a)])):n}return{render:t}}function Vp(){function e(n){return{page:(n.page||1)-1,size:n.rowsPerPage||5,sort:n.sortBy||"updateDate",direction:n.descending?"desc":"asc"}}function t(n){return{page:n.number+1,rowsPerPage:n.size,rowsNumber:n.totalElements}}return{toPagination:e,toQuasarPagination:t}}var ui=null;function ci(){return ui!==null?ui:ui=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}typeof __QUASAR_SSR__!="boolean"&&(ci().__QUASAR_SSR__=!1),typeof __QUASAR_SSR_CLIENT__!="boolean"&&(ci().__QUASAR_SSR_CLIENT__=!1),typeof __QUASAR_SSR_PWA__!="boolean"&&(ci().__QUASAR_SSR_PWA__=!1);function xt(e,t,n,a){return Object.defineProperty(e,t,{get:n,set:a,enumerable:!0}),e}function Yc(e,t){for(const n in t)xt(e,n,t[n]);return e}var Zt=r.ref(__QUASAR_SSR_CLIENT__&&(__QUASAR_SSR_PWA__?document.body.getAttribute("data-server-rendered")!==null:!0)),di;function e0(e,t){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0",platform:t[0]||""}}function t0(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)||[]}var Gc="ontouchstart"in window||window.navigator.maxTouchPoints>0;function n0(e){const t=e.toLowerCase(),n=t0(t),a=e0(t,n),o={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};a.browser&&(o[a.browser]=!0,o.version=a.version,o.versionNumber=parseInt(a.version,10)),a.platform&&(o[a.platform]=!0);const l=o.android||o.ios||o.bb||o.blackberry||o.ipad||o.iphone||o.ipod||o.kindle||o.playbook||o.silk||o["windows phone"];if(l===!0||t.indexOf("mobile")!==-1?o.mobile=!0:o.desktop=!0,o["windows phone"]&&(o.winphone=!0,delete o["windows phone"]),o.edga||o.edgios||o.edg?(o.edge=!0,a.browser="edge"):o.crios?(o.chrome=!0,a.browser="chrome"):o.fxios&&(o.firefox=!0,a.browser="firefox"),(o.ipod||o.ipad||o.iphone)&&(o.ios=!0),o.vivaldi&&(a.browser="vivaldi",o.vivaldi=!0),(o.chrome||o.opr||o.safari||o.vivaldi||o.mobile===!0&&o.ios!==!0&&l!==!0)&&(o.webkit=!0),o.opr&&(a.browser="opera",o.opera=!0),o.safari&&(o.blackberry||o.bb?(a.browser="blackberry",o.blackberry=!0):o.playbook?(a.browser="playbook",o.playbook=!0):o.android?(a.browser="android",o.android=!0):o.kindle?(a.browser="kindle",o.kindle=!0):o.silk&&(a.browser="silk",o.silk=!0)),o.name=a.browser,o.platform=a.platform,t.indexOf("electron")!==-1)o.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)o.bex=!0;else{if(window.Capacitor!==void 0?(o.capacitor=!0,o.nativeMobile=!0,o.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(o.cordova=!0,o.nativeMobile=!0,o.nativeMobileWrapper="cordova"),Zt.value===!0&&(di={is:{...o}}),Gc===!0&&o.mac===!0&&(o.desktop===!0&&o.safari===!0||o.nativeMobile===!0&&o.android!==!0&&o.ios!==!0&&o.ipad!==!0)){delete o.mac,delete o.desktop;const i=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(o,{mobile:!0,ios:!0,platform:i,[i]:!0})}o.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete o.desktop,o.mobile=!0)}return o}var Xc=navigator.userAgent||navigator.vendor||window.opera,r0={has:{touch:!1,webStorage:!1},within:{iframe:!1}},He={userAgent:Xc,is:n0(Xc),has:{touch:Gc},within:{iframe:window.self!==window.top}},fi={install(e){const{$q:t}=e;Zt.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,He),Zt.value=!1}),t.platform=r.reactive(this)):t.platform=this}};{let e;xt(He.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(fi,He),Zt.value===!0&&(Object.assign(fi,di,r0),di=null)}var a0=fi;function ie(e){return r.markRaw(r.defineComponent(e))}function sn(e){return r.markRaw(e)}var Dn=(e,t)=>{const n=r.reactive(e);for(const a in e)xt(t,a,()=>n[a],o=>{n[a]=o});return t},lt={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(lt,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function wt(){}function ho(e){return e.button===0}function zt(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 o0(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;for(;n;){if(t.push(n),n.tagName==="HTML")return t.push(document),t.push(window),t;n=n.parentElement}}function ft(e){e.stopPropagation()}function Et(e){e.cancelable!==!1&&e.preventDefault()}function Fe(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Mr(e,t){if(e===void 0||t===!0&&e.__dragPrevented===!0)return;const n=t===!0?a=>{a.__dragPrevented=!0,a.addEventListener("dragstart",Et,lt.notPassiveCapture)}:a=>{delete a.__dragPrevented,a.removeEventListener("dragstart",Et,lt.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function mt(e,t,n){const a=`__q_${t}_evt`;e[a]=e[a]!==void 0?e[a].concat(n):n,n.forEach(o=>{o[0].addEventListener(o[1],e[o[2]],lt[o[3]])})}function Dt(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(a=>{a[0].removeEventListener(a[1],e[a[2]],lt[a[3]])}),e[n]=void 0)}function Lr(e,t=250,n){let a=null;function o(){const l=arguments,i=()=>{a=null,e.apply(this,l)};a!==null&&clearTimeout(a),a=setTimeout(i,t)}return o.cancel=()=>{a!==null&&clearTimeout(a)},o}var vi=["sm","md","lg","xl"],{passive:Jc}=lt;Dn({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:wt,setDebounce:wt,install({$q:e,onSSRHydrated:t}){if(e.screen=this,this.__installed===!0){e.config.screen!==void 0&&(e.config.screen.bodyClasses===!1?document.body.classList.remove(`screen--${this.name}`):this.__update(!0));return}const{visualViewport:n}=window,a=n||window,o=document.scrollingElement||document.documentElement,l=n===void 0||He.is.mobile===!0?()=>[Math.max(window.innerWidth,o.clientWidth),Math.max(window.innerHeight,o.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-o.clientWidth,n.height*n.scale+window.innerHeight-o.clientHeight],i=e.config.screen?.bodyClasses===!0;this.__update=g=>{const[v,h]=l();if(h!==this.height&&(this.height=h),v!==this.width)this.width=v;else if(g!==!0)return;let f=this.sizes;this.gt.xs=v>=f.sm,this.gt.sm=v>=f.md,this.gt.md=v>=f.lg,this.gt.lg=v>=f.xl,this.lt.sm=v<f.sm,this.lt.md=v<f.md,this.lt.lg=v<f.lg,this.lt.xl=v<f.xl,this.xs=this.lt.sm,this.sm=this.gt.xs===!0&&this.lt.md===!0,this.md=this.gt.sm===!0&&this.lt.lg===!0,this.lg=this.gt.md===!0&&this.lt.xl===!0,this.xl=this.gt.lg,f=this.xs===!0&&"xs"||this.sm===!0&&"sm"||this.md===!0&&"md"||this.lg===!0&&"lg"||"xl",f!==this.name&&(i===!0&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${f}`)),this.name=f)};let s,u={},d=16;this.setSizes=g=>{vi.forEach(v=>{g[v]!==void 0&&(u[v]=g[v])})},this.setDebounce=g=>{d=g};const c=()=>{const g=getComputedStyle(document.body);g.getPropertyValue("--q-size-sm")&&vi.forEach(v=>{this.sizes[v]=parseInt(g.getPropertyValue(`--q-size-${v}`),10)}),this.setSizes=v=>{vi.forEach(h=>{v[h]&&(this.sizes[h]=v[h])}),this.__update(!0)},this.setDebounce=v=>{s!==void 0&&a.removeEventListener("resize",s,Jc),s=v>0?Lr(this.__update,v):this.__update,a.addEventListener("resize",s,Jc)},this.setDebounce(d),Object.keys(u).length!==0?(this.setSizes(u),u=void 0):this.__update(),i===!0&&this.name==="xs"&&document.body.classList.add("screen--xs")};Zt.value===!0?t.push(c):c()}});var Ht=Dn({isActive:!1,mode:!1},{__media:void 0,set(e){Ht.mode=e,e==="auto"?(Ht.__media===void 0&&(Ht.__media=window.matchMedia("(prefers-color-scheme: dark)"),Ht.__updateMedia=()=>{Ht.set("auto")},Ht.__media.addListener(Ht.__updateMedia)),e=Ht.__media.matches):Ht.__media!==void 0&&(Ht.__media.removeListener(Ht.__updateMedia),Ht.__media=void 0),Ht.isActive=e===!0,document.body.classList.remove(`body--${e===!0?"light":"dark"}`),document.body.classList.add(`body--${e===!0?"dark":"light"}`)},toggle(){Ht.set(Ht.isActive===!1)},install({$q:e,ssrContext:t}){const n=__QUASAR_SSR_CLIENT__?document.body.classList.contains("body--dark"):e.config.dark;e.dark=this,this.__installed!==!0&&this.set(n!==void 0?n:!1)}});function rr(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function Vt(e,t){return rr(e)===!0?!1:[].concat(t).includes(e.keyCode)}var mi={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days",prevMonth:"Previous month",nextMonth:"Next month",prevYear:"Previous year",nextYear:"Next year",today:"Today",prevRangeYears:e=>`Previous ${e} years`,nextRangeYears:e=>`Next ${e} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>e===1?"1 record selected.":(e===0?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,n)=>e+"-"+t+" of "+n,columns:"Columns"},pagination:{first:"First page",prev:"Previous page",next:"Next page",last:"Last page"},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 Zc(){const e=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof e=="string")return e.split(/[-_]/).map((t,n)=>n===0?t.toLowerCase():n>1||t.length<4?t.toUpperCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("-")}var ar=Dn({__qLang:{}},{getLocale:Zc,set(e=mi,t){const n={...e,rtl:e.rtl===!0,getLocale:Zc};{if(n.set=ar.set,ar.__langConfig===void 0||ar.__langConfig.noHtmlAttrs!==!0){const a=document.documentElement;a.setAttribute("dir",n.rtl===!0?"rtl":"ltr"),a.setAttribute("lang",n.isoName)}Object.assign(ar.__qLang,n)}},install({$q:e,lang:t,ssrContext:n}){e.lang=ar.__qLang,ar.__langConfig=e.config.lang,this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(a){return Reflect.ownKeys(a).filter(o=>o!=="set"&&o!=="getLocale")}}),this.set(t||mi))}}),Vc=ar,l0={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"}},ed=Dn({iconMapFn:null,__qIconSet:{}},{set(e,t){const n={...e};n.set=ed.set,Object.assign(ed.__qIconSet,n)},install({$q:e,iconSet:t,ssrContext:n}){e.config.iconMapFn!==void 0&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__qIconSet,xt(e,"iconMapFn",()=>this.iconMapFn,a=>{this.iconMapFn=a}),this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qIconSet,{get(){return Reflect.get(...arguments)},ownKeys(a){return Reflect.ownKeys(a).filter(o=>o!=="set")}}),this.set(t||l0))}}),td="_q_t_",nd="_q_s_",or="_q_l_",rd="_q_pc_",ad="_q_f_",od="_q_fo_",ld="_q_tabs_",id="_q_u_";function et(){}var sd={};function un(e,t){if(e===t)return!0;if(e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,a;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(un(e[a],t[a])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let l=e.entries();for(a=l.next();a.done!==!0;){if(t.has(a.value[0])!==!0)return!1;a=l.next()}for(l=e.entries(),a=l.next();a.done!==!0;){if(un(a.value[1],t.get(a.value[0]))!==!0)return!1;a=l.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const l=e.entries();for(a=l.next();a.done!==!0;){if(t.has(a.value[0])!==!0)return!1;a=l.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(e[a]!==t[a])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 o=Object.keys(e).filter(l=>e[l]!==void 0);if(n=o.length,n!==Object.keys(t).filter(l=>t[l]!==void 0).length)return!1;for(a=n;a--!==0;){const l=o[a];if(un(e[l],t[l])!==!0)return!1}return!0}return e!==e&&t!==t}function $t(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}function va(e){return Object.prototype.toString.call(e)==="[object Date]"}function i0(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function ma(e){return typeof e=="number"&&isFinite(e)}function ud(e,t){const n=r.createApp(e);n.config.globalProperties=t.config.globalProperties;const{reload:a,...o}=t._context;return Object.assign(n._context,o),n}var cd=["B","KB","MB","GB","TB","PB"];function hi(e,t=1){let n=0;for(;parseInt(e,10)>=1024&&n<cd.length-1;)e/=1024,++n;return`${e.toFixed(t)}${cd[n]}`}function s0(e){return e.charAt(0).toUpperCase()+e.slice(1)}function at(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function go(e,t,n){if(n<=t)return t;const a=n-t+1;let o=t+(e-t)%a;return o<t&&(o=a+o),o===0?0:o}function Je(e,t=2,n="0"){if(e==null)return e;const a=""+e;return a.length>=t?a:new Array(t-a.length+1).join(n)+a}var gi=XMLHttpRequest,dd=gi.prototype.open,u0=["top","right","bottom","left"],bo=[],ha=0;function c0({p:e,pos:t,active:n,horiz:a,reverse:o,dir:l}){let i=1,s=1;return a===!0?(o===!0&&(i=-1),t==="bottom"&&(s=-1),{transform:`translate3d(${i*(e-100)}%,${n?0:s*-200}%,0)`}):(o===!0&&(s=-1),t==="right"&&(i=-1),{transform:`translate3d(${n?0:l*i*-200}%,${s*(e-100)}%,0)`})}function d0(e,t){return typeof t!="number"&&(e<25?t=Math.random()*3+3:e<65?t=Math.random()*3:e<85?t=Math.random()*2:e<99?t=.6:t=0),at(e+t,0,100)}function f0(e){ha++,bo.push(e),!(ha>1)&&(gi.prototype.open=function(t,n){const a=[],o=()=>{bo.forEach(i=>{(i.hijackFilter.value===null||i.hijackFilter.value(n)===!0)&&(i.start(),a.push(i.stop))})},l=()=>{a.forEach(i=>{i()})};this.addEventListener("loadstart",o,{once:!0}),this.addEventListener("loadend",l,{once:!0}),dd.apply(this,arguments)})}function v0(e){bo=bo.filter(t=>t.start!==e),ha=Math.max(0,ha-1),ha===0&&(gi.prototype.open=dd)}var m0=ie({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:e=>u0.includes(e)},size:{type:String,default:"2px"},color:String,skipHijack:Boolean,reverse:Boolean,hijackFilter:Function},emits:["start","stop"],setup(e,{emit:t}){const{proxy:n}=r.getCurrentInstance(),a=r.ref(0),o=r.ref(!1),l=r.ref(!0);let i=0,s=null,u;const d=r.computed(()=>`q-loading-bar q-loading-bar--${e.position}`+(e.color!==void 0?` bg-${e.color}`:"")+(l.value===!0?"":" no-transition")),c=r.computed(()=>e.position==="top"||e.position==="bottom"),g=r.computed(()=>c.value===!0?"height":"width"),v=r.computed(()=>{const y=o.value,m=c0({p:a.value,pos:e.position,active:y,horiz:c.value,reverse:n.$q.lang.rtl===!0&&["top","bottom"].includes(e.position)?e.reverse===!1:e.reverse,dir:n.$q.lang.rtl===!0?-1:1});return m[g.value]=e.size,m.opacity=y?1:0,m}),h=r.computed(()=>o.value===!0?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a.value}:{"aria-hidden":"true"});function f(y=300){const m=u;return u=Math.max(0,y)||0,i++,i>1?(m===0&&y>0?b():s!==null&&m>0&&y<=0&&(clearTimeout(s),s=null),i):(s!==null&&clearTimeout(s),t("start"),a.value=0,s=setTimeout(()=>{s=null,l.value=!0,y>0&&b()},o._value===!0?500:1),o._value!==!0&&(o.value=!0,l.value=!1),i)}function _(y){return i>0&&(a.value=d0(a.value,y)),i}function p(){if(i=Math.max(0,i-1),i>0)return i;s!==null&&(clearTimeout(s),s=null),t("stop");const y=()=>{l.value=!0,a.value=100,s=setTimeout(()=>{s=null,o.value=!1},1e3)};return a.value===0?s=setTimeout(y,1):y(),i}function b(){a.value<100&&(s=setTimeout(()=>{s=null,_(),b()},u))}let S;return r.onMounted(()=>{e.skipHijack!==!0&&(S=!0,f0({start:f,stop:p,hijackFilter:r.computed(()=>e.hijackFilter||null)}))}),r.onBeforeUnmount(()=>{s!==null&&clearTimeout(s),S===!0&&v0(f)}),Object.assign(n,{start:f,stop:p,increment:_}),()=>r.h("div",{class:d.value,style:v.value,...h.value})}}),bi={xs:18,sm:24,md:32,lg:38,xl:46},Tn={size:String};function qn(e,t=bi){return r.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Te(e,t){return e!==void 0&&e()||t}function ga(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function ht(e,t){return e!==void 0?t.concat(e()):t}function pi(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function en(e,t,n,a,o,l){t.key=a+o;const i=r.h(e,t,n);return o===!0?r.withDirectives(i,l()):i}var fd="0 0 24 24",yi=e=>e,_i=e=>`ionicons ${e}`,vd={"mdi-":e=>`mdi ${e}`,"icon-":yi,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":_i,"ion-ios":_i,"ion-logo":_i,"iconfont ":yi,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":yi},md={o_:"-outlined",r_:"-round",s_:"-sharp"},hd={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},h0=new RegExp("^("+Object.keys(vd).join("|")+")"),g0=new RegExp("^("+Object.keys(md).join("|")+")"),gd=new RegExp("^("+Object.keys(hd).join("|")+")"),b0=/^[Mm]\s?[-+]?\.?\d/,p0=/^img:/,y0=/^svguse:/,_0=/^ion-/,S0=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,Xe=ie({name:"QIcon",props:{...Tn,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=qn(e),o=r.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),l=r.computed(()=>{let i,s=e.name;if(s==="none"||!s)return{none:!0};if(n.iconMapFn!==null){const c=n.iconMapFn(s);if(c!==void 0)if(c.icon!==void 0){if(s=c.icon,s==="none"||!s)return{none:!0}}else return{cls:c.cls,content:c.content!==void 0?c.content:" "}}if(b0.test(s)===!0){const[c,g=fd]=s.split("|");return{svg:!0,viewBox:g,nodes:c.split("&&").map(v=>{const[h,f,_]=v.split("@@");return r.h("path",{style:f,d:h,transform:_})})}}if(p0.test(s)===!0)return{img:!0,src:s.substring(4)};if(y0.test(s)===!0){const[c,g=fd]=s.split("|");return{svguse:!0,src:c.substring(7),viewBox:g}}let u=" ";const d=s.match(h0);if(d!==null)i=vd[d[1]](s);else if(S0.test(s)===!0)i=s;else if(_0.test(s)===!0)i=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(gd.test(s)===!0){i="notranslate material-symbols";const c=s.match(gd);c!==null&&(s=s.substring(6),i+=hd[c[1]]),u=s}else{i="notranslate material-icons";const c=s.match(g0);c!==null&&(s=s.substring(2),i+=md[c[1]]),u=s}return{cls:i,content:u}});return()=>{const i={class:o.value,style:a.value,"aria-hidden":"true"};return l.value.none===!0?r.h(e.tag,i,Te(t.default)):l.value.img===!0?r.h(e.tag,i,ht(t.default,[r.h("img",{src:l.value.src})])):l.value.svg===!0?r.h(e.tag,i,ht(t.default,[r.h("svg",{viewBox:l.value.viewBox||"0 0 24 24"},l.value.nodes)])):l.value.svguse===!0?r.h(e.tag,i,ht(t.default,[r.h("svg",{viewBox:l.value.viewBox},[r.h("use",{"xlink:href":l.value.src})])])):(l.value.cls!==void 0&&(i.class+=" "+l.value.cls),r.h(e.tag,i,ht(t.default,[l.value.content])))}}});ie({name:"QAvatar",props:{...Tn,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){const n=qn(e),a=r.computed(()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(e.square===!0?" q-avatar--square":e.rounded===!0?" rounded-borders":"")),o=r.computed(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{const l=e.icon!==void 0?[r.h(Xe,{name:e.icon})]:void 0;return r.h("div",{class:a.value,style:n.value},[r.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:o.value},pi(t.default,l))])}}});var w0=["top","middle","bottom"];ie({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=>w0.includes(e)}},setup(e,{slots:t}){const n=r.computed(()=>e.align!==void 0?{verticalAlign:e.align}:null),a=r.computed(()=>{const o=e.outline===!0&&e.color||e.textColor;return`q-badge flex inline items-center no-wrap q-badge--${e.multiLine===!0?"multi":"single"}-line`+(e.outline===!0?" q-badge--outline":e.color!==void 0?` bg-${e.color}`:"")+(o!==void 0?` text-${o}`:"")+(e.floating===!0?" q-badge--floating":"")+(e.rounded===!0?" q-badge--rounded":"")+(e.transparent===!0?" q-badge--transparent":"")});return()=>r.h("div",{class:a.value,style:n.value,role:"status","aria-label":e.label},ht(t.default,e.label!==void 0?[e.label]:[]))}});var Ye={dark:{type:Boolean,default:null}};function Ge(e,t){return r.computed(()=>e.dark===null?t.dark.isActive:e.dark)}ie({name:"QBanner",props:{...Ye,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=Ge(e,n),o=r.computed(()=>"q-banner row items-center"+(e.dense===!0?" q-banner--dense":"")+(a.value===!0?" q-banner--dark q-dark":"")+(e.rounded===!0?" rounded-borders":"")),l=r.computed(()=>`q-banner__actions row items-center justify-end col-${e.inlineActions===!0?"auto":"all"}`);return()=>{const i=[r.h("div",{class:"q-banner__avatar col-auto row items-center self-start"},Te(t.avatar)),r.h("div",{class:"q-banner__content col text-body2"},Te(t.default))],s=Te(t.action);return s!==void 0&&i.push(r.h("div",{class:l.value},s)),r.h("div",{class:o.value+(e.inlineActions===!1&&s!==void 0?" q-banner--top-padding":""),role:"alert"},i)}}}),ie({name:"QBar",props:{...Ye,dense:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=Ge(e,n),o=r.computed(()=>`q-bar row no-wrap items-center q-bar--${e.dense===!0?"dense":"standard"} q-bar--${a.value===!0?"dark":"light"}`);return()=>r.h("div",{class:o.value,role:"toolbar"},Te(t.default))}});var bd={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},C0=Object.keys(bd),Si={align:{type:String,validator:e=>C0.includes(e)}};function wi(e){return r.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${bd[t]}`})}function po(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function pd(e,t){typeof t.type=="symbol"?Array.isArray(t.children)===!0&&t.children.forEach(n=>{pd(e,n)}):e.add(t)}function Ci(e){const t=new Set;return e.forEach(n=>{pd(t,n)}),Array.from(t)}function ki(e){return e.appContext.config.globalProperties.$router!==void 0}function $n(e){return e.isUnmounted===!0||e.isDeactivated===!0}var k0=["",!0];ie({name:"QBreadcrumbs",props:{...Si,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(e,{slots:t}){const n=wi(e),a=r.computed(()=>`flex items-center ${n.value}${e.gutter==="none"?"":` q-gutter-${e.gutter}`}`),o=r.computed(()=>e.separatorColor?` text-${e.separatorColor}`:""),l=r.computed(()=>` text-${e.activeColor}`);return()=>{if(t.default===void 0)return;const i=Ci(Te(t.default));if(i.length===0)return;let s=1;const u=[],d=i.filter(g=>g.type?.name==="QBreadcrumbsEl").length,c=t.separator!==void 0?t.separator:()=>e.separator;return i.forEach(g=>{if(g.type?.name==="QBreadcrumbsEl"){const v=s<d,h=g.props!==null&&k0.includes(g.props.disable),f=(v===!0?"":" q-breadcrumbs--last")+(h!==!0&&v===!0?l.value:"");s++,u.push(r.h("div",{class:`flex items-center${f}`},[g])),v===!0&&u.push(r.h("div",{class:"q-breadcrumbs__separator"+o.value},c()))}else u.push(g)}),r.h("div",{class:"q-breadcrumbs"},[r.h("div",{class:a.value},u)])}}});function yd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function _d(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function x0(e,t){for(const n in t){const a=t[n],o=e[n];if(typeof a=="string"){if(a!==o)return!1}else if(Array.isArray(o)===!1||o.length!==a.length||a.some((l,i)=>l!==o[i]))return!1}return!0}function Sd(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function E0(e,t){return Array.isArray(e)===!0?Sd(e,t):Array.isArray(t)===!0?Sd(t,e):e===t}function T0(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(E0(e[n],t[n])===!1)return!1;return!0}var wd={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},ba={...wd,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function yo({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=r.getCurrentInstance(),{props:a,proxy:o,emit:l}=n,i=ki(n),s=r.computed(()=>a.disable!==!0&&a.href!==void 0),u=t===!0?r.computed(()=>i===!0&&a.disable!==!0&&s.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""):r.computed(()=>i===!0&&s.value!==!0&&a.to!==void 0&&a.to!==null&&a.to!==""),d=r.computed(()=>u.value===!0?S(a.to):null),c=r.computed(()=>d.value!==null),g=r.computed(()=>s.value===!0||c.value===!0),v=r.computed(()=>a.type==="a"||g.value===!0?"a":a.tag||e||"div"),h=r.computed(()=>s.value===!0?{href:a.href,target:a.target}:c.value===!0?{href:d.value.href,target:a.target}:{}),f=r.computed(()=>{if(c.value===!1)return-1;const{matched:w}=d.value,{length:E}=w,C=w[E-1];if(C===void 0)return-1;const R=o.$route.matched;if(R.length===0)return-1;const H=R.findIndex(_d.bind(null,C));if(H!==-1)return H;const q=yd(w[E-2]);return E>1&&yd(C)===q&&R[R.length-1].path!==q?R.findIndex(_d.bind(null,w[E-2])):H}),_=r.computed(()=>c.value===!0&&f.value!==-1&&x0(o.$route.params,d.value.params)),p=r.computed(()=>_.value===!0&&f.value===o.$route.matched.length-1&&T0(o.$route.params,d.value.params)),b=r.computed(()=>c.value===!0?p.value===!0?` ${a.exactActiveClass} ${a.activeClass}`:a.exact===!0?"":_.value===!0?` ${a.activeClass}`:"":"");function S(w){try{return o.$router.resolve(w)}catch{}return null}function y(w,{returnRouterError:E,to:C=a.to,replace:R=a.replace}={}){if(a.disable===!0)return w.preventDefault(),Promise.resolve(!1);if(w.metaKey||w.altKey||w.ctrlKey||w.shiftKey||w.button!==void 0&&w.button!==0||a.target==="_blank")return Promise.resolve(!1);w.preventDefault();const H=o.$router[R===!0?"replace":"push"](C);return E===!0?H:H.then(()=>{}).catch(()=>{})}function m(w){if(c.value===!0){const E=C=>y(w,C);l("click",w,E),w.defaultPrevented!==!0&&E()}else l("click",w)}return{hasRouterLink:c,hasHrefLink:s,hasLink:g,linkTag:v,resolvedLink:d,linkIsActive:_,linkIsExactActive:p,linkClass:b,linkAttrs:h,getLink:S,navigateToRouterLink:y,navigateOnClick:m}}ie({name:"QBreadcrumbsEl",props:{...ba,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(e,{slots:t}){const{linkTag:n,linkAttrs:a,linkClass:o,navigateOnClick:l}=yo(),i=r.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(e.disable!==!0?"q-link--focusable"+o.value:"q-breadcrumbs__el--disable"),...a.value,onClick:l})),s=r.computed(()=>"q-breadcrumbs__el-icon"+(e.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const u=[];return e.icon!==void 0&&u.push(r.h(Xe,{class:s.value,name:e.icon})),e.label!==void 0&&u.push(e.label),r.h(n.value,{...i.value},ht(t.default,u))}}});var gt={size:{type:[String,Number],default:"1em"},color:String};function bt(e){return{cSize:r.computed(()=>e.size in bi?`${bi[e.size]}px`:e.size),classes:r.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}var cn=ie({name:"QSpinner",props:{...gt,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[r.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function _o(e){if(e===window)return{top:0,left:0};const{top:t,left:n}=e.getBoundingClientRect();return{top:t,left:n}}function Ar(e){return e===window?window.innerHeight:e.getBoundingClientRect().height}function xi(e,t){const n=e.style;for(const a in t)n[a]=t[a]}function q0(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=r.unref(e);if(t)return t.$el||t}function Cd(e,t){if(e==null||e.contains(t)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}function kd(e,t=250){let n=!1,a;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),a=e.apply(this,arguments)),a}}function xd(e,t,n,a){n.modifiers.stop===!0&&ft(e);const o=n.modifiers.color;let l=n.modifiers.center;l=l===!0||a===!0;const i=document.createElement("span"),s=document.createElement("span"),u=zt(e),{left:d,top:c,width:g,height:v}=t.getBoundingClientRect(),h=Math.sqrt(g*g+v*v),f=h/2,_=`${(g-h)/2}px`,p=l?_:`${u.left-d-f}px`,b=`${(v-h)/2}px`,S=l?b:`${u.top-c-f}px`;s.className="q-ripple__inner",xi(s,{height:`${h}px`,width:`${h}px`,transform:`translate3d(${p},${S},0) scale3d(.2,.2,1)`,opacity:0}),i.className=`q-ripple${o?" text-"+o:""}`,i.setAttribute("dir","ltr"),i.appendChild(s),t.appendChild(i);const y=()=>{i.remove(),clearTimeout(m)};n.abort.push(y);let m=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${_},${b},0) scale3d(1,1,1)`,s.style.opacity=.2,m=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,m=setTimeout(()=>{i.remove(),n.abort.splice(n.abort.indexOf(y),1)},275)},250)},50)}function Ed(e,{modifiers:t,value:n,arg:a}){const o=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:o.early===!0,stop:o.stop===!0,center:o.center===!0,color:o.color||a,keyCodes:[].concat(o.keyCodes||13)}}var So=sn({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const a={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(o){a.enabled===!0&&o.qSkipRipple!==!0&&o.type===(a.modifiers.early===!0?"pointerdown":"click")&&xd(o,e,a,o.qKeyEvent===!0)},keystart:kd(o=>{a.enabled===!0&&o.qSkipRipple!==!0&&Vt(o,a.modifiers.keyCodes)===!0&&o.type===`key${a.modifiers.early===!0?"down":"up"}`&&xd(o,e,a,!0)},300)};Ed(a,t),e.__qripple=a,mt(a,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n!==void 0&&(n.enabled=t.value!==!1,n.enabled===!0&&Object(t.value)===t.value&&Ed(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),Dt(t,"main"),delete e._qripple)}}),wo={none:0,xs:4,sm:8,md:16,lg:24,xl:32},O0={xs:8,sm:10,md:14,lg:20,xl:24},M0=["button","submit","reset"],L0=/[^\s]\/[^\s]/,Td=["flat","outline","push","unelevated"];function Ei(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}function qd(e){const t=Ei(e);return t!==void 0?{[t]:!0}:{}}var Ti={...Tn,...wd,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...Td.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...Si.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},A0={...Ti,round:Boolean};function R0(e){const t=qn(e,O0),n=wi(e),{hasRouterLink:a,hasLink:o,linkTag:l,linkAttrs:i,navigateOnClick:s}=yo({fallbackTag:"button"}),u=r.computed(()=>{const p=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},p,{padding:e.padding.split(/\s+/).map(b=>b in wo?wo[b]+"px":b).join(" "),minWidth:"0",minHeight:"0"}):p}),d=r.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),c=r.computed(()=>e.disable!==!0&&e.loading!==!0),g=r.computed(()=>c.value===!0?e.tabindex||0:-1),v=r.computed(()=>Ei(e,"standard")),h=r.computed(()=>{const p={tabindex:g.value};return o.value===!0?Object.assign(p,i.value):M0.includes(e.type)===!0&&(p.type=e.type),l.value==="a"?(e.disable===!0?p["aria-disabled"]="true":p.href===void 0&&(p.role="button"),a.value!==!0&&L0.test(e.type)===!0&&(p.type=e.type)):e.disable===!0&&(p.disabled="",p["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(p,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),p}),f=r.computed(()=>{let p;e.color!==void 0?e.flat===!0||e.outline===!0?p=`text-${e.textColor||e.color}`:p=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(p=`text-${e.textColor}`);const b=e.round===!0?"round":`rectangle${d.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${v.value} q-btn--${b}`+(p!==void 0?" "+p:"")+(c.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),_=r.computed(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:f,style:u,innerClasses:_,attributes:h,hasLink:o,linkTag:l,navigateOnClick:s,isActionable:c}}var{passiveCapture:tn}=lt,Rr=null,Pr=null,Nr=null,Ze=ie({name:"QBtn",props:{...A0,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{classes:o,style:l,innerClasses:i,attributes:s,hasLink:u,linkTag:d,navigateOnClick:c,isActionable:g}=R0(e),v=r.ref(null),h=r.ref(null);let f=null,_,p=null;const b=r.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),S=r.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:u.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),y=r.computed(()=>({center:e.round})),m=r.computed(()=>{const k=Math.max(0,Math.min(100,e.percentage));return k>0?{transition:"transform 0.6s",transform:`translateX(${k-100}%)`}:{}}),w=r.computed(()=>{if(e.loading===!0)return{onMousedown:O,onTouchstart:O,onClick:O,onKeydown:O,onKeyup:O};if(g.value===!0){const k={onClick:C,onKeydown:R,onMousedown:q};if(a.$q.platform.has.touch===!0){const A=e.onTouchstart!==void 0?"":"Passive";k[`onTouchstart${A}`]=H}return k}return{onClick:Fe}}),E=r.computed(()=>({ref:v,class:"q-btn q-btn-item non-selectable no-outline "+o.value,style:l.value,...s.value,...w.value}));function C(k){if(v.value!==null){if(k!==void 0){if(k.defaultPrevented===!0)return;const A=document.activeElement;if(e.type==="submit"&&A!==document.body&&v.value.contains(A)===!1&&A.contains(v.value)===!1){k.qAvoidFocus!==!0&&v.value.focus();const D=()=>{document.removeEventListener("keydown",Fe,!0),document.removeEventListener("keyup",D,tn),v.value?.removeEventListener("blur",D,tn)};document.addEventListener("keydown",Fe,!0),document.addEventListener("keyup",D,tn),v.value.addEventListener("blur",D,tn)}}c(k)}}function R(k){v.value!==null&&(n("keydown",k),Vt(k,[13,32])===!0&&Pr!==v.value&&(Pr!==null&&M(),k.defaultPrevented!==!0&&(k.qAvoidFocus!==!0&&v.value.focus(),Pr=v.value,v.value.classList.add("q-btn--active"),document.addEventListener("keyup",T,!0),v.value.addEventListener("blur",T,tn)),Fe(k)))}function H(k){v.value!==null&&(n("touchstart",k),k.defaultPrevented!==!0&&(Rr!==v.value&&(Rr!==null&&M(),Rr=v.value,f=k.target,f.addEventListener("touchcancel",T,tn),f.addEventListener("touchend",T,tn)),_=!0,p!==null&&clearTimeout(p),p=setTimeout(()=>{p=null,_=!1},200)))}function q(k){v.value!==null&&(k.qSkipRipple=_===!0,n("mousedown",k),k.defaultPrevented!==!0&&Nr!==v.value&&(Nr!==null&&M(),Nr=v.value,v.value.classList.add("q-btn--active"),document.addEventListener("mouseup",T,tn)))}function T(k){if(v.value!==null&&!(k?.type==="blur"&&document.activeElement===v.value)){if(k?.type==="keyup"){if(Pr===v.value&&Vt(k,[13,32])===!0){const A=new MouseEvent("click",k);A.qKeyEvent=!0,k.defaultPrevented===!0&&Et(A),k.cancelBubble===!0&&ft(A),v.value.dispatchEvent(A),Fe(k),k.qKeyEvent=!0}n("keyup",k)}M()}}function M(k){const A=h.value;k!==!0&&(Rr===v.value||Nr===v.value)&&A!==null&&A!==document.activeElement&&(A.setAttribute("tabindex",-1),A.focus()),Rr===v.value&&(f!==null&&(f.removeEventListener("touchcancel",T,tn),f.removeEventListener("touchend",T,tn)),Rr=f=null),Nr===v.value&&(document.removeEventListener("mouseup",T,tn),Nr=null),Pr===v.value&&(document.removeEventListener("keyup",T,!0),v.value?.removeEventListener("blur",T,tn),Pr=null),v.value?.classList.remove("q-btn--active")}function O(k){Fe(k),k.qSkipRipple=!0}return r.onBeforeUnmount(()=>{M(!0)}),Object.assign(a,{click:k=>{g.value===!0&&C(k)}}),()=>{let k=[];e.icon!==void 0&&k.push(r.h(Xe,{name:e.icon,left:e.stack!==!0&&b.value===!0,role:"img"})),b.value===!0&&k.push(r.h("span",{class:"block"},[e.label])),k=ht(t.default,k),e.iconRight!==void 0&&e.round===!1&&k.push(r.h(Xe,{name:e.iconRight,right:e.stack!==!0&&b.value===!0,role:"img"}));const A=[r.h("span",{class:"q-focus-helper",ref:h})];return e.loading===!0&&e.percentage!==void 0&&A.push(r.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[r.h("span",{class:"q-btn__progress-indicator fit block",style:m.value})])),A.push(r.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+i.value},k)),e.loading!==null&&A.push(r.h(r.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[r.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[r.h(cn)])]:null)),r.withDirectives(r.h(d.value,E.value,A),[[So,S.value,void 0,y.value]])}}}),Od=ie({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(e,{slots:t}){const n=r.computed(()=>{const a=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(o=>e[o]===!0).map(o=>`q-btn-group--${o}`).join(" ");return`q-btn-group row no-wrap${a.length!==0?" "+a:""}`+(e.spread===!0?" q-btn-group--spread":" inline")});return()=>r.h("div",{class:n.value},Te(t.default))}});function dn(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),a0.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}var Md={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Ld={...Md,contextMenu:Boolean};function qi({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:a,proxy:o,emit:l}=r.getCurrentInstance(),i=r.ref(null);let s=null;function u(h){return i.value===null?!1:h===void 0||h.touches===void 0||h.touches.length<=1}const d={};n===void 0&&(Object.assign(d,{hide(h){o.hide(h)},toggle(h){o.toggle(h),h.qAnchorHandled=!0},toggleKey(h){Vt(h,13)===!0&&d.toggle(h)},contextClick(h){o.hide(h),Et(h),r.nextTick(()=>{o.show(h),h.qAnchorHandled=!0})},prevent:Et,mobileTouch(h){if(d.mobileCleanup(h),u(h)!==!0)return;o.hide(h),i.value.classList.add("non-selectable");const f=h.target;mt(d,"anchor",[[f,"touchmove","mobileCleanup","passive"],[f,"touchend","mobileCleanup","passive"],[f,"touchcancel","mobileCleanup","passive"],[i.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,o.show(h),h.qAnchorHandled=!0},300)},mobileCleanup(h){i.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),e.value===!0&&h!==void 0&&dn()}}),n=function(h=a.contextMenu){if(a.noParentEvent===!0||i.value===null)return;let f;h===!0?o.$q.platform.is.mobile===!0?f=[[i.value,"touchstart","mobileTouch","passive"]]:f=[[i.value,"mousedown","hide","passive"],[i.value,"contextmenu","contextClick","notPassive"]]:f=[[i.value,"click","toggle","passive"],[i.value,"keyup","toggleKey","passive"]],mt(d,"anchor",f)});function c(){Dt(d,"anchor")}function g(h){for(i.value=h;i.value.classList.contains("q-anchor--skip");)i.value=i.value.parentNode;n()}function v(){if(a.target===!1||a.target===""||o.$el.parentNode===null)i.value=null;else if(a.target===!0)g(o.$el.parentNode);else{let h=a.target;if(typeof a.target=="string")try{h=document.querySelector(a.target)}catch{h=void 0}h!=null?(i.value=h.$el||h,n()):(i.value=null,console.error(`Anchor: target "${a.target}" not found`))}}return r.watch(()=>a.contextMenu,h=>{i.value!==null&&(c(),n(h))}),r.watch(()=>a.target,()=>{i.value!==null&&c(),v()}),r.watch(()=>a.noParentEvent,h=>{i.value!==null&&(h===!0?c():n())}),r.onMounted(()=>{v(),t!==!0&&a.modelValue===!0&&i.value===null&&l("update:modelValue",!1)}),r.onBeforeUnmount(()=>{s!==null&&clearTimeout(s),c()}),{anchorEl:i,canShow:u,anchorEvents:d}}function Ad(e,t){const n=r.ref(null);let a;function o(s,u){const d=`${u!==void 0?"add":"remove"}EventListener`,c=u!==void 0?u:a;s!==window&&s[d]("scroll",c,lt.passive),window[d]("scroll",c,lt.passive),a=u}function l(){n.value!==null&&(o(n.value),n.value=null)}const i=r.watch(()=>e.noParentEvent,()=>{n.value!==null&&(l(),t())});return r.onBeforeUnmount(i),{localScrollTarget:n,unconfigureScrollTarget:l,changeScrollEvent:o}}var Ir={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},Dr=["beforeShow","show","beforeHide","hide"];function $r({showing:e,canShow:t,hideOnRouteChange:n,handleShow:a,handleHide:o,processOnMount:l}){const i=r.getCurrentInstance(),{props:s,emit:u,proxy:d}=i;let c;function g(S){e.value===!0?f(S):v(S)}function v(S){if(s.disable===!0||S?.qAnchorHandled===!0||t!==void 0&&t(S)!==!0)return;const y=s["onUpdate:modelValue"]!==void 0;y===!0&&(u("update:modelValue",!0),c=S,r.nextTick(()=>{c===S&&(c=void 0)})),(s.modelValue===null||y===!1)&&h(S)}function h(S){e.value!==!0&&(e.value=!0,u("beforeShow",S),a!==void 0?a(S):u("show",S))}function f(S){if(s.disable===!0)return;const y=s["onUpdate:modelValue"]!==void 0;y===!0&&(u("update:modelValue",!1),c=S,r.nextTick(()=>{c===S&&(c=void 0)})),(s.modelValue===null||y===!1)&&_(S)}function _(S){e.value!==!1&&(e.value=!1,u("beforeHide",S),o!==void 0?o(S):u("hide",S))}function p(S){s.disable===!0&&S===!0?s["onUpdate:modelValue"]!==void 0&&u("update:modelValue",!1):S===!0!==e.value&&(S===!0?h:_)(c)}r.watch(()=>s.modelValue,p),n!==void 0&&ki(i)===!0&&r.watch(()=>d.$route.fullPath,()=>{n.value===!0&&e.value===!0&&f()}),l===!0&&r.onMounted(()=>{p(s.modelValue)});const b={show:v,hide:f,toggle:g};return Object.assign(d,b),b}var lr=[],pa=[];function Rd(e){pa=pa.filter(t=>t!==e)}function P0(e){Rd(e),pa.push(e)}function Pd(e){Rd(e),pa.length===0&&lr.length!==0&&(lr[lr.length-1](),lr=[])}function Br(e){pa.length===0?e():lr.push(e)}function N0(e){lr=lr.filter(t=>t!==e)}var Fr=[],ya=[],I0=1,Bn=document.body;function Oi(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${I0++}`:e,sd.globalNodes!==void 0){const a=sd.globalNodes.class;a!==void 0&&(n.className=a)}return Bn.appendChild(n),Fr.push(n),ya.push(t),n}function Nd(e){const t=Fr.indexOf(e);Fr.splice(t,1),ya.splice(t,1),e.remove()}function D0(e){if(e===Bn)return;if(Bn=e,Bn===document.body||ya.reduce((n,a)=>a==="dialog"?n+1:n,0)<2){Fr.forEach(n=>{n.contains(Bn)===!1&&Bn.appendChild(n)});return}const t=ya.lastIndexOf("dialog");for(let n=0;n<Fr.length;n++){const a=Fr[n];(n===t||ya[n]!=="dialog")&&a.contains(Bn)===!1&&Bn.appendChild(a)}}var zr=[];function $0(e){return zr.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function Id(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return po(e)}else if(e.__qPortal===!0){const n=po(e);return n?.$options.name==="QPopupProxy"?(e.hide(t),n):e}e=po(e)}while(e!=null)}function B0(e,t,n){for(;n!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(n--,e.$options.name==="QMenu"){e=Id(e,t);continue}e.hide(t)}e=po(e)}}var F0=ie({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function z0(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function Mi(e,t,n,a){const o=r.ref(!1),l=r.ref(!1);let i=null;const s={},u=a==="dialog"&&z0(e);function d(g){if(g===!0){Pd(s),l.value=!0;return}l.value=!1,o.value===!1&&(u===!1&&i===null&&(i=Oi(!1,a)),o.value=!0,zr.push(e.proxy),P0(s))}function c(g){if(l.value=!1,g!==!0)return;Pd(s),o.value=!1;const v=zr.indexOf(e.proxy);v!==-1&&zr.splice(v,1),i!==null&&(Nd(i),i=null)}return r.onUnmounted(()=>{c(!0)}),e.proxy.__qPortal=!0,xt(e.proxy,"contentEl",()=>t.value),{showPortal:d,hidePortal:c,portalIsActive:o,portalIsAccessible:l,renderPortal:()=>u===!0?n():o.value===!0?[r.h(r.Teleport,{to:i},r.h(F0,n))]:void 0}}var ir={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function Co(e,t=()=>{},n=()=>{}){return{transitionProps:r.computed(()=>{const a=`q-transition--${e.transitionShow||t()}`,o=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${a}-enter-from`,enterActiveClass:`${a}-enter-active`,enterToClass:`${a}-enter-to`,leaveFromClass:`${o}-leave-from`,leaveActiveClass:`${o}-leave-active`,leaveToClass:`${o}-leave-to`}}),transitionStyle:r.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Hr(){let e;const t=r.getCurrentInstance();function n(){e=void 0}return r.onDeactivated(n),r.onBeforeUnmount(n),{removeTick:n,registerTick(a){e=a,r.nextTick(()=>{e===a&&($n(t)===!1&&e(),e=void 0)})}}}function On(){let e=null;const t=r.getCurrentInstance();function n(){e!==null&&(clearTimeout(e),e=null)}return r.onDeactivated(n),r.onBeforeUnmount(n),{removeTimeout:n,registerTimeout(a,o){n(),$n(t)===!1&&(e=setTimeout(()=>{e=null,a()},o))}}}var sr=[Element,String],H0=[null,document,document.body,document.scrollingElement,document.documentElement];function pn(e,t){let n=q0(t);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return H0.includes(n)?window:n}function ko(e){return(e===window?document.body:e).scrollHeight}function Fn(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function xo(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function Dd(e,t,n=0){const a=arguments[3]===void 0?performance.now():arguments[3],o=Fn(e);if(n<=0){o!==t&&Li(e,t);return}requestAnimationFrame(l=>{const i=l-a,s=o+(t-o)/Math.max(i,n)*i;Li(e,s),s!==t&&Dd(e,t,n-i,l)})}function $d(e,t,n=0){const a=arguments[3]===void 0?performance.now():arguments[3],o=xo(e);if(n<=0){o!==t&&Ai(e,t);return}requestAnimationFrame(l=>{const i=l-a,s=o+(t-o)/Math.max(i,n)*i;Ai(e,s),s!==t&&$d(e,t,n-i,l)})}function Li(e,t){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t);return}e.scrollTop=t}function Ai(e,t){if(e===window){window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=t}function jr(e,t,n){if(n){Dd(e,t,n);return}Li(e,t)}function Ri(e,t,n){if(n){$d(e,t,n);return}Ai(e,t)}var Eo;function To(){if(Eo!==void 0)return Eo;const e=document.createElement("p"),t=document.createElement("div");xi(e,{width:"100%",height:"200px"}),xi(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let a=e.offsetWidth;return n===a&&(a=t.clientWidth),t.remove(),Eo=n-a,Eo}function j0(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}var ur=[],Ur;function U0(e){Ur=e.keyCode===27}function Q0(){Ur===!0&&(Ur=!1)}function W0(e){Ur===!0&&(Ur=!1,Vt(e,27)===!0&&ur[ur.length-1](e))}function Bd(e){window[e]("keydown",U0),window[e]("blur",Q0),window[e]("keyup",W0),Ur=!1}function Fd(e){He.is.desktop===!0&&(ur.push(e),ur.length===1&&Bd("addEventListener"))}function qo(e){const t=ur.indexOf(e);t!==-1&&(ur.splice(t,1),ur.length===0&&Bd("removeEventListener"))}var cr=[];function zd(e){cr[cr.length-1](e)}function Hd(e){He.is.desktop===!0&&(cr.push(e),cr.length===1&&document.body.addEventListener("focusin",zd))}function Pi(e){const t=cr.indexOf(e);t!==-1&&(cr.splice(t,1),cr.length===0&&document.body.removeEventListener("focusin",zd))}var{notPassiveCapture:Oo}=lt,dr=[];function Mo(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let n=zr.length-1;for(;n>=0;){const a=zr[n].$;if(a.type.name==="QTooltip"){n--;continue}if(a.type.name!=="QDialog")break;if(a.props.seamless!==!0)return;n--}for(let a=dr.length-1;a>=0;a--){const o=dr[a];if((o.anchorEl.value===null||o.anchorEl.value.contains(t)===!1)&&(t===document.body||o.innerRef.value!==null&&o.innerRef.value.contains(t)===!1))e.qClickOutside=!0,o.onClickOutside(e);else return}}function jd(e){dr.push(e),dr.length===1&&(document.addEventListener("mousedown",Mo,Oo),document.addEventListener("touchstart",Mo,Oo))}function Lo(e){const t=dr.findIndex(n=>n===e);t!==-1&&(dr.splice(t,1),dr.length===0&&(document.removeEventListener("mousedown",Mo,Oo),document.removeEventListener("touchstart",Mo,Oo)))}var Ud,Qd;function Ao(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function Wd(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}var Ni={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Ni[`${e}#ltr`]=e,Ni[`${e}#rtl`]=e});function Ro(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:Ni[`${n[1]}#${t===!0?"rtl":"ltr"}`]}}function K0(e,t){let{top:n,left:a,right:o,bottom:l,width:i,height:s}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],a-=t[0],l+=t[1],o+=t[0],i+=t[0],s+=t[1]),{top:n,bottom:l,height:s,left:a,right:o,width:i,middle:a+(o-a)/2,center:n+(l-n)/2}}function Y0(e,t,n){let{top:a,left:o}=e.getBoundingClientRect();return a+=t.top,o+=t.left,n!==void 0&&(a+=n[1],o+=n[0]),{top:a,bottom:a+1,height:1,left:o,right:o+1,width:1,middle:o,center:a}}function G0(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function Kd(e,t,n,a){return{top:e[n.vertical]-t[a.vertical],left:e[n.horizontal]-t[a.horizontal]}}function Ii(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Ii(e,t+1)},10);return}const{targetEl:n,offset:a,anchorEl:o,anchorOrigin:l,selfOrigin:i,absoluteOffset:s,fit:u,cover:d,maxHeight:c,maxWidth:g}=e;if(He.is.ios===!0&&window.visualViewport!==void 0){const E=document.body.style,{offsetLeft:C,offsetTop:R}=window.visualViewport;C!==Ud&&(E.setProperty("--q-pe-left",C+"px"),Ud=C),R!==Qd&&(E.setProperty("--q-pe-top",R+"px"),Qd=R)}const{scrollLeft:v,scrollTop:h}=n,f=s===void 0?K0(o,d===!0?[0,0]:a):Y0(o,s,a);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:g,maxHeight:c,visibility:"visible"});const{offsetWidth:_,offsetHeight:p}=n,{elWidth:b,elHeight:S}=u===!0||d===!0?{elWidth:Math.max(f.width,_),elHeight:d===!0?Math.max(f.height,p):p}:{elWidth:_,elHeight:p};let y={maxWidth:g,maxHeight:c};(u===!0||d===!0)&&(y.minWidth=f.width+"px",d===!0&&(y.minHeight=f.height+"px")),Object.assign(n.style,y);const m=G0(b,S);let w=Kd(f,m,l,i);if(s===void 0||a===void 0)Di(w,f,m,l,i);else{const{top:E,left:C}=w;Di(w,f,m,l,i);let R=!1;if(w.top!==E){R=!0;const H=2*a[1];f.center=f.top-=H,f.bottom-=H+2}if(w.left!==C){R=!0;const H=2*a[0];f.middle=f.left-=H,f.right-=H+2}R===!0&&(w=Kd(f,m,l,i),Di(w,f,m,l,i))}y={top:w.top+"px",left:w.left+"px"},w.maxHeight!==void 0&&(y.maxHeight=w.maxHeight+"px",f.height>w.maxHeight&&(y.minHeight=y.maxHeight)),w.maxWidth!==void 0&&(y.maxWidth=w.maxWidth+"px",f.width>w.maxWidth&&(y.minWidth=y.maxWidth)),Object.assign(n.style,y),n.scrollTop!==h&&(n.scrollTop=h),n.scrollLeft!==v&&(n.scrollLeft=v)}function Di(e,t,n,a,o){const l=n.bottom,i=n.right,s=To(),u=window.innerHeight-s,d=document.body.clientWidth;if(e.top<0||e.top+l>u)if(o.vertical==="center")e.top=t[a.vertical]>u/2?Math.max(0,u-l):0,e.maxHeight=Math.min(l,u);else if(t[a.vertical]>u/2){const c=Math.min(u,a.vertical==="center"?t.center:a.vertical===o.vertical?t.bottom:t.top);e.maxHeight=Math.min(l,c),e.top=Math.max(0,c-l)}else e.top=Math.max(0,a.vertical==="center"?t.center:a.vertical===o.vertical?t.top:t.bottom),e.maxHeight=Math.min(l,u-e.top);if(e.left<0||e.left+i>d)if(e.maxWidth=Math.min(i,d),o.horizontal==="middle")e.left=t[a.horizontal]>d/2?Math.max(0,d-i):0;else if(t[a.horizontal]>d/2){const c=Math.min(d,a.horizontal==="middle"?t.middle:a.horizontal===o.horizontal?t.right:t.left);e.maxWidth=Math.min(i,c),e.left=Math.max(0,c-e.maxWidth)}else e.left=Math.max(0,a.horizontal==="middle"?t.middle:a.horizontal===o.horizontal?t.left:t.right),e.maxWidth=Math.min(i,d-e.left)}var Po=ie({name:"QMenu",inheritAttrs:!1,props:{...Ld,...Ir,...Ye,...ir,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:Ao},self:{type:String,validator:Ao},offset:{type:Array,validator:Wd},scrollTarget:sr,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...Dr,"click","escapeKey"],setup(e,{slots:t,emit:n,attrs:a}){let o=null,l,i,s;const u=r.getCurrentInstance(),{proxy:d}=u,{$q:c}=d,g=r.ref(null),v=r.ref(!1),h=r.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),f=Ge(e,c),{registerTick:_,removeTick:p}=Hr(),{registerTimeout:b}=On(),{transitionProps:S,transitionStyle:y}=Co(e),{localScrollTarget:m,changeScrollEvent:w,unconfigureScrollTarget:E}=Ad(e,Y),{anchorEl:C,canShow:R}=qi({showing:v}),{hide:H}=$r({showing:v,canShow:R,handleShow:he,handleHide:$,hideOnRouteChange:h,processOnMount:!0}),{showPortal:q,hidePortal:T,renderPortal:M}=Mi(u,g,ue,"menu"),O={anchorEl:C,innerRef:g,onClickOutside(W){if(e.persistent!==!0&&v.value===!0)return H(W),(W.type==="touchstart"||W.target.classList.contains("q-dialog__backdrop"))&&Fe(W),!0}},k=r.computed(()=>Ro(e.anchor||(e.cover===!0?"center middle":"bottom start"),c.lang.rtl)),A=r.computed(()=>e.cover===!0?k.value:Ro(e.self||"top start",c.lang.rtl)),D=r.computed(()=>(e.square===!0?" q-menu--square":"")+(f.value===!0?" q-menu--dark q-dark":"")),z=r.computed(()=>e.autoClose===!0?{onClick:B}:{}),F=r.computed(()=>v.value===!0&&e.persistent!==!0);r.watch(F,W=>{W===!0?(Fd(N),jd(O)):(qo(N),Lo(O))});function Z(){Br(()=>{let W=g.value;W&&W.contains(document.activeElement)!==!0&&(W=W.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||W.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||W.querySelector("[autofocus], [data-autofocus]")||W,W.focus({preventScroll:!0}))})}function he(W){if(o=e.noRefocus===!1?document.activeElement:null,Hd(le),q(),Y(),l=void 0,W!==void 0&&(e.touchPosition||e.contextMenu)){const ve=zt(W);if(ve.left!==void 0){const{top:_e,left:G}=C.value.getBoundingClientRect();l={left:ve.left-G,top:ve.top-_e}}}i===void 0&&(i=r.watch(()=>c.screen.width+"|"+c.screen.height+"|"+e.self+"|"+e.anchor+"|"+c.lang.rtl,U)),e.noFocus!==!0&&document.activeElement.blur(),_(()=>{U(),e.noFocus!==!0&&Z()}),b(()=>{c.platform.is.ios===!0&&(s=e.autoClose,g.value.click()),U(),q(!0),n("show",W)},e.transitionDuration)}function $(W){p(),T(),x(!0),o!==null&&(W===void 0||W.qClickOutside!==!0)&&(((W?.type.indexOf("key")===0?o.closest('[tabindex]:not([tabindex^="-"])'):void 0)||o).focus(),o=null),b(()=>{T(!0),n("hide",W)},e.transitionDuration)}function x(W){l=void 0,i!==void 0&&(i(),i=void 0),(W===!0||v.value===!0)&&(Pi(le),E(),Lo(O),qo(N)),W!==!0&&(o=null)}function Y(){(C.value!==null||e.scrollTarget!==void 0)&&(m.value=pn(C.value,e.scrollTarget),w(m.value,U))}function B(W){s!==!0?(Id(d,W),n("click",W)):s=!1}function le(W){F.value===!0&&e.noFocus!==!0&&Cd(g.value,W.target)!==!0&&Z()}function N(W){e.noEscDismiss!==!0&&(n("escapeKey"),H(W))}function U(){Ii({targetEl:g.value,offset:e.offset,anchorEl:C.value,anchorOrigin:k.value,selfOrigin:A.value,absoluteOffset:l,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function ue(){return r.h(r.Transition,S.value,()=>v.value===!0?r.h("div",{role:"menu",...a,ref:g,tabindex:-1,class:["q-menu q-position-engine scroll"+D.value,a.class],style:[a.style,y.value],...z.value},Te(t.default)):null)}return r.onBeforeUnmount(x),Object.assign(d,{focus:Z,updatePosition:U}),M}}),$i,No=0,At=new Array(256);for(let e=0;e<256;e++)At[e]=(e+256).toString(16).substring(1);var X0=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return t=>{const n=new Uint8Array(t);return e.getRandomValues(n),n}}return t=>{const n=[];for(let a=t;a>0;a--)n.push(Math.floor(Math.random()*256));return n}})(),Yd=4096;function _a(){($i===void 0||No+16>Yd)&&(No=0,$i=X0(Yd));const e=Array.prototype.slice.call($i,No,No+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,At[e[0]]+At[e[1]]+At[e[2]]+At[e[3]]+"-"+At[e[4]]+At[e[5]]+"-"+At[e[6]]+At[e[7]]+"-"+At[e[8]]+At[e[9]]+"-"+At[e[10]]+At[e[11]]+At[e[12]]+At[e[13]]+At[e[14]]+At[e[15]]}function J0(e){return e??null}function Gd(e,t){return e??(t===!0?`f_${_a()}`:null)}function Io({getValue:e,required:t=!0}={}){if(Zt.value===!0){const n=e!==void 0?r.ref(J0(e())):r.ref(null);return t===!0&&n.value===null&&r.onMounted(()=>{n.value=`f_${_a()}`}),e!==void 0&&r.watch(e,a=>{n.value=Gd(a,t)}),n}return e!==void 0?r.computed(()=>Gd(e(),t)):r.ref(`f_${_a()}`)}var Z0=Object.keys(Ti);function V0(e){return Z0.reduce((t,n)=>{const a=e[n];return a!==void 0&&(t[n]=a),t},{})}var ey=ie({name:"QBtnDropdown",props:{...Ti,...ir,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,noRefocus:Boolean,noFocus:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean,toggleAriaLabel:String},emits:["update:modelValue","click","beforeShow","show","beforeHide","hide"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),o=r.ref(e.modelValue),l=r.ref(null),i=Io(),s=r.computed(()=>{const m={"aria-expanded":o.value===!0?"true":"false","aria-haspopup":"true","aria-controls":i.value,"aria-label":e.toggleAriaLabel||a.$q.lang.label[o.value===!0?"collapse":"expand"](e.label)};return(e.disable===!0||e.split===!1&&e.disableMainBtn===!0||e.disableDropdown===!0)&&(m["aria-disabled"]="true"),m}),u=r.computed(()=>"q-btn-dropdown__arrow"+(o.value===!0&&e.noIconAnimation===!1?" rotate-180":"")+(e.split===!1?" q-btn-dropdown__arrow-container":"")),d=r.computed(()=>qd(e)),c=r.computed(()=>V0(e));r.watch(()=>e.modelValue,m=>{l.value?.[m?"show":"hide"]()}),r.watch(()=>e.split,y);function g(m){o.value=!0,n("beforeShow",m)}function v(m){n("show",m),n("update:modelValue",!0)}function h(m){o.value=!1,n("beforeHide",m)}function f(m){n("hide",m),n("update:modelValue",!1)}function _(m){n("click",m)}function p(m){ft(m),y(),n("click",m)}function b(m){l.value?.toggle(m)}function S(m){l.value?.show(m)}function y(m){l.value?.hide(m)}return Object.assign(a,{show:S,hide:y,toggle:b}),r.onMounted(()=>{e.modelValue===!0&&S()}),()=>{const m=[r.h(Xe,{class:u.value,name:e.dropdownIcon||a.$q.iconSet.arrow.dropdown})];return e.disableDropdown!==!0&&m.push(r.h(Po,{ref:l,id:i.value,class:e.contentClass,style:e.contentStyle,cover:e.cover,fit:!0,persistent:e.persistent,noEscDismiss:e.noEscDismiss,noRouteDismiss:e.noRouteDismiss,autoClose:e.autoClose,noFocus:e.noFocus,noRefocus:e.noRefocus,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,separateClosePopup:!0,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:g,onShow:v,onBeforeHide:h,onHide:f},t.default)),e.split===!1?r.h(Ze,{class:"q-btn-dropdown q-btn-dropdown--simple",...c.value,...s.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:_},{default:()=>Te(t.label,[]).concat(m),loading:t.loading}):r.h(Od,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",rounded:e.rounded,square:e.square,...d.value,glossy:e.glossy,stretch:e.stretch},()=>[r.h(Ze,{class:"q-btn-dropdown--current",...c.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:p},{default:t.label,loading:t.loading}),r.h(Ze,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...s.value,...d.value,disable:e.disable===!0||e.disableDropdown===!0,rounded:e.rounded,color:e.color,textColor:e.textColor,dense:e.dense,size:e.size,padding:e.padding,ripple:e.ripple},()=>m)])}}}),nn={name:String};function Sa(e){return r.computed(()=>({type:"hidden",name:e.name,value:e.modelValue}))}function zn(e={}){return(t,n,a)=>{t[n](r.h("input",{class:"hidden"+(a||""),...e.value}))}}function Bi(e){return r.computed(()=>e.name||e.for)}ie({name:"QBtnToggle",props:{...nn,modelValue:{required:!0},options:{type:Array,required:!0,validator:e=>e.every(t=>("label"in t||"icon"in t||"slot"in t)&&"value"in t)},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(e,{slots:t,emit:n}){const a=r.computed(()=>e.options.find(v=>v.value===e.modelValue)!==void 0),o=r.computed(()=>({type:"hidden",name:e.name,value:e.modelValue})),l=zn(o),i=r.computed(()=>qd(e)),s=r.computed(()=>({rounded:e.rounded,dense:e.dense,...i.value})),u=r.computed(()=>e.options.map((v,h)=>{const{attrs:f,value:_,slot:p,...b}=v;return{slot:p,props:{key:h,"aria-pressed":_===e.modelValue?"true":"false",...f,...b,...s.value,disable:e.disable===!0||b.disable===!0,color:_===e.modelValue?c(b,"toggleColor"):c(b,"color"),textColor:_===e.modelValue?c(b,"toggleTextColor"):c(b,"textColor"),noCaps:c(b,"noCaps")===!0,noWrap:c(b,"noWrap")===!0,size:c(b,"size"),padding:c(b,"padding"),ripple:c(b,"ripple"),stack:c(b,"stack")===!0,stretch:c(b,"stretch")===!0,onClick(S){d(_,v,S)}}}}));function d(v,h,f){e.readonly!==!0&&(e.modelValue===v?e.clearable===!0&&(n("update:modelValue",null,null),n("clear")):n("update:modelValue",v,h),n("click",f))}function c(v,h){return v[h]===void 0?e[h]:v[h]}function g(){const v=u.value.map(h=>r.h(Ze,h.props,h.slot!==void 0?t[h.slot]:void 0));return e.name!==void 0&&e.disable!==!0&&a.value===!0&&l(v,"push"),ht(t.default,v)}return()=>r.h(Od,{class:"q-btn-toggle",...i.value,rounded:e.rounded,stretch:e.stretch,glossy:e.glossy,spread:e.spread},g)}});var Xd=ie({name:"QCard",props:{...Ye,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=Ge(e,n),o=r.computed(()=>"q-card"+(a.value===!0?" q-card--dark q-dark":"")+(e.bordered===!0?" q-card--bordered":"")+(e.square===!0?" q-card--square no-border-radius":"")+(e.flat===!0?" q-card--flat no-shadow":""));return()=>r.h(e.tag,{class:o.value},Te(t.default))}}),fr=ie({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const n=r.computed(()=>`q-card__section q-card__section--${e.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>r.h(e.tag,{class:n.value},Te(t.default))}}),ty=ie({name:"QCardActions",props:{...Si,vertical:Boolean},setup(e,{slots:t}){const n=wi(e),a=r.computed(()=>`q-card__actions ${n.value} q-card__actions--${e.vertical===!0?"vert column":"horiz row"}`);return()=>r.h("div",{class:a.value},Te(t.default))}}),Fi={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},ny=Object.keys(Fi);Fi.all=!0;function Do(e){const t={};for(const n of ny)e[n]===!0&&(t[n]=!0);return Object.keys(t).length===0?Fi:(t.horizontal===!0?t.left=t.right=!0:t.left===!0&&t.right===!0&&(t.horizontal=!0),t.vertical===!0?t.up=t.down=!0:t.up===!0&&t.down===!0&&(t.vertical=!0),t.horizontal===!0&&t.vertical===!0&&(t.all=!0),t)}var ry=["INPUT","TEXTAREA"];function $o(e,t){return t.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof t.handler=="function"&&ry.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(t.uid)===-1)}function ay(e){const t=[.06,6,50];return typeof e=="string"&&e.length&&e.split(":").forEach((n,a)=>{const o=parseFloat(n);o&&(t[a]=o)}),t}var oy=sn({name:"touch-swipe",beforeMount(e,{value:t,arg:n,modifiers:a}){if(a.mouse!==!0&&He.has.touch!==!0)return;const o=a.mouseCapture===!0?"Capture":"",l={handler:t,sensitivity:ay(n),direction:Do(a),noop:wt,mouseStart(i){$o(i,l)&&ho(i)&&(mt(l,"temp",[[document,"mousemove","move",`notPassive${o}`],[document,"mouseup","end","notPassiveCapture"]]),l.start(i,!0))},touchStart(i){if($o(i,l)){const s=i.target;mt(l,"temp",[[s,"touchmove","move","notPassiveCapture"],[s,"touchcancel","end","notPassiveCapture"],[s,"touchend","end","notPassiveCapture"]]),l.start(i)}},start(i,s){He.is.firefox===!0&&Mr(e,!0);const u=zt(i);l.event={x:u.left,y:u.top,time:Date.now(),mouse:s===!0,dir:!1}},move(i){if(l.event===void 0)return;if(l.event.dir!==!1){Fe(i);return}const s=Date.now()-l.event.time;if(s===0)return;const u=zt(i),d=u.left-l.event.x,c=Math.abs(d),g=u.top-l.event.y,v=Math.abs(g);if(l.event.mouse!==!0){if(c<l.sensitivity[1]&&v<l.sensitivity[1]){l.end(i);return}}else if(window.getSelection().toString()!==""){l.end(i);return}else if(c<l.sensitivity[2]&&v<l.sensitivity[2])return;const h=c/s,f=v/s;l.direction.vertical===!0&&c<v&&c<100&&f>l.sensitivity[0]&&(l.event.dir=g<0?"up":"down"),l.direction.horizontal===!0&&c>v&&v<100&&h>l.sensitivity[0]&&(l.event.dir=d<0?"left":"right"),l.direction.up===!0&&c<v&&g<0&&c<100&&f>l.sensitivity[0]&&(l.event.dir="up"),l.direction.down===!0&&c<v&&g>0&&c<100&&f>l.sensitivity[0]&&(l.event.dir="down"),l.direction.left===!0&&c>v&&d<0&&v<100&&h>l.sensitivity[0]&&(l.event.dir="left"),l.direction.right===!0&&c>v&&d>0&&v<100&&h>l.sensitivity[0]&&(l.event.dir="right"),l.event.dir!==!1?(Fe(i),l.event.mouse===!0&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),dn(),l.styleCleanup=_=>{l.styleCleanup=void 0,document.body.classList.remove("non-selectable");const p=()=>{document.body.classList.remove("no-pointer-events--children")};_===!0?setTimeout(p,50):p()}),l.handler({evt:i,touch:l.event.mouse!==!0,mouse:l.event.mouse,direction:l.event.dir,duration:s,distance:{x:c,y:v}})):l.end(i)},end(i){l.event!==void 0&&(Dt(l,"temp"),He.is.firefox===!0&&Mr(e,!1),l.styleCleanup?.(!0),i!==void 0&&l.event.dir!==!1&&Fe(i),l.event=void 0)}};if(e.__qtouchswipe=l,a.mouse===!0){const i=a.mouseCapture===!0||a.mousecapture===!0?"Capture":"";mt(l,"main",[[e,"mousedown","mouseStart",`passive${i}`]])}He.has.touch===!0&&mt(l,"main",[[e,"touchstart","touchStart",`passive${a.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchswipe;n!==void 0&&(t.oldValue!==t.value&&(typeof t.value!="function"&&n.end(),n.handler=t.value),n.direction=Do(t.modifiers))},beforeUnmount(e){const t=e.__qtouchswipe;t!==void 0&&(Dt(t,"main"),Dt(t,"temp"),He.is.firefox===!0&&Mr(e,!1),t.styleCleanup?.(),delete e.__qtouchswipe)}});function wa(){let e=Object.create(null);return{getCache:(t,n)=>e[t]===void 0?e[t]=typeof n=="function"?n():n:e[t],setCache(t,n){e[t]=n},hasCache(t){return Object.hasOwnProperty.call(e,t)},clearCache(t){t!==void 0?delete e[t]:e=Object.create(null)}}}var zi={name:{required:!0},disable:Boolean},Jd={setup(e,{slots:t}){return()=>r.h("div",{class:"q-panel scroll",role:"tabpanel"},Te(t.default))}},Hi={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},ji=["update:modelValue","beforeTransition","transition"];function Ui(){const{props:e,emit:t,proxy:n}=r.getCurrentInstance(),{getCache:a}=wa(),{registerTimeout:o}=On();let l,i;const s=r.ref(null),u={value:null};function d(k){const A=e.vertical===!0?"up":"left";R((n.$q.lang.rtl===!0?-1:1)*(k.direction===A?1:-1))}const c=r.computed(()=>[[oy,d,void 0,{horizontal:e.vertical!==!0,vertical:e.vertical,mouse:!0}]]),g=r.computed(()=>e.transitionPrev||`slide-${e.vertical===!0?"down":"right"}`),v=r.computed(()=>e.transitionNext||`slide-${e.vertical===!0?"up":"left"}`),h=r.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`),f=r.computed(()=>typeof e.modelValue=="string"||typeof e.modelValue=="number"?e.modelValue:String(e.modelValue)),_=r.computed(()=>({include:e.keepAliveInclude,exclude:e.keepAliveExclude,max:e.keepAliveMax})),p=r.computed(()=>e.keepAliveInclude!==void 0||e.keepAliveExclude!==void 0);r.watch(()=>e.modelValue,(k,A)=>{const D=m(k)===!0?w(k):-1;i!==!0&&C(D===-1?0:D<w(A)?-1:1),u.value!==D&&(u.value=D,t("beforeTransition",k,A),o(()=>{t("transition",k,A)},e.transitionDuration))});function b(){R(1)}function S(){R(-1)}function y(k){t("update:modelValue",k)}function m(k){return k!=null&&k!==""}function w(k){return l.findIndex(A=>A.props.name===k&&A.props.disable!==""&&A.props.disable!==!0)}function E(){return l.filter(k=>k.props.disable!==""&&k.props.disable!==!0)}function C(k){const A=k!==0&&e.animated===!0&&u.value!==-1?"q-transition--"+(k===-1?g.value:v.value):null;s.value!==A&&(s.value=A)}function R(k,A=u.value){let D=A+k;for(;D!==-1&&D<l.length;){const z=l[D];if(z!==void 0&&z.props.disable!==""&&z.props.disable!==!0){C(k),i=!0,t("update:modelValue",z.props.name),setTimeout(()=>{i=!1});return}D+=k}e.infinite===!0&&l.length!==0&&A!==-1&&A!==l.length&&R(k,k===-1?l.length:-1)}function H(){const k=w(e.modelValue);return u.value!==k&&(u.value=k),!0}function q(){const k=m(e.modelValue)===!0&&H()&&l[u.value];return e.keepAlive===!0?[r.h(r.KeepAlive,_.value,[r.h(p.value===!0?a(f.value,()=>({...Jd,name:f.value})):Jd,{key:f.value,style:h.value},()=>k)])]:[r.h("div",{class:"q-panel scroll",style:h.value,key:f.value,role:"tabpanel"},[k])]}function T(){if(l.length!==0)return e.animated===!0?[r.h(r.Transition,{name:s.value},q)]:q()}function M(k){return l=Ci(Te(k.default,[])).filter(A=>A.props!==null&&A.props.slot===void 0&&m(A.props.name)===!0),l.length}function O(){return l}return Object.assign(n,{next:b,previous:S,goTo:y}),{panelIndex:u,panelDirectives:c,updatePanelsList:M,updatePanelIndex:H,getPanelContent:T,getEnabledPanels:E,getPanels:O,isValidPanelName:m,keepAliveProps:_,needsUniqueKeepAliveWrapper:p,goToPanelByOffset:R,goToPanel:y,nextPanel:b,previousPanel:S}}var Ca=0,Qi={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Wi=["update:fullscreen","fullscreen"];function Ki(){const e=r.getCurrentInstance(),{props:t,emit:n,proxy:a}=e;let o,l;const i=r.ref(!1);ki(e)===!0&&r.watch(()=>a.$route.fullPath,()=>{t.noRouteFullscreenExit!==!0&&d()}),r.watch(()=>t.fullscreen,c=>{i.value!==c&&s()}),r.watch(i,c=>{n("update:fullscreen",c),n("fullscreen",c)});function s(){i.value===!0?d():u()}function u(){i.value!==!0&&(i.value=!0,l=a.$el.parentNode,l.replaceChild(o,a.$el),document.body.appendChild(a.$el),Ca++,Ca===1&&document.body.classList.add("q-body--fullscreen-mixin"))}function d(){i.value===!0&&(l.replaceChild(a.$el,o),i.value=!1,Ca=Math.max(0,Ca-1),Ca===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),a.$el.scrollIntoView!==void 0&&setTimeout(()=>{a.$el.scrollIntoView()})))}return r.onBeforeMount(()=>{o=document.createElement("span")}),r.onMounted(()=>{t.fullscreen===!0&&u()}),r.onBeforeUnmount(d),Object.assign(a,{toggleFullscreen:s,setFullscreen:u,exitFullscreen:d}),{inFullscreen:i,toggleFullscreen:s}}var ly=["top","right","bottom","left"],iy=["regular","flat","outline","push","unelevated"];ie({name:"QCarousel",props:{...Ye,...Hi,...Qi,transitionPrev:{type:String,default:"fade"},transitionNext:{type:String,default:"fade"},height:String,padding:Boolean,controlColor:String,controlTextColor:String,controlType:{type:String,validator:e=>iy.includes(e),default:"flat"},autoplay:[Number,Boolean],arrows:Boolean,prevIcon:String,nextIcon:String,navigation:Boolean,navigationPosition:{type:String,validator:e=>ly.includes(e)},navigationIcon:String,navigationActiveIcon:String,thumbnails:Boolean},emits:[...Wi,...ji],setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=Ge(e,n);let o=null,l;const{updatePanelsList:i,getPanelContent:s,panelDirectives:u,goToPanel:d,previousPanel:c,nextPanel:g,getEnabledPanels:v,panelIndex:h}=Ui(),{inFullscreen:f}=Ki(),_=r.computed(()=>f.value!==!0&&e.height!==void 0?{height:e.height}:{}),p=r.computed(()=>e.vertical===!0?"vertical":"horizontal"),b=r.computed(()=>e.navigationPosition||(e.vertical===!0?"right":"bottom")),S=r.computed(()=>`q-carousel q-panel-parent q-carousel--with${e.padding===!0?"":"out"}-padding`+(f.value===!0?" fullscreen":"")+(a.value===!0?" q-carousel--dark q-dark":"")+(e.arrows===!0?` q-carousel--arrows-${p.value}`:"")+(e.navigation===!0?` q-carousel--navigation-${b.value}`:"")),y=r.computed(()=>{const q=[e.prevIcon||n.iconSet.carousel[e.vertical===!0?"up":"left"],e.nextIcon||n.iconSet.carousel[e.vertical===!0?"down":"right"]];return e.vertical===!1&&n.lang.rtl===!0?q.reverse():q}),m=r.computed(()=>e.navigationIcon||n.iconSet.carousel.navigationIcon),w=r.computed(()=>e.navigationActiveIcon||m.value),E=r.computed(()=>({color:e.controlColor,textColor:e.controlTextColor,round:!0,[e.controlType]:!0,dense:!0}));r.watch(()=>e.modelValue,()=>{e.autoplay&&C()}),r.watch(()=>e.autoplay,q=>{q?C():o!==null&&(clearTimeout(o),o=null)});function C(){const q=ma(e.autoplay)===!0?Math.abs(e.autoplay):5e3;o!==null&&clearTimeout(o),o=setTimeout(()=>{o=null,q>=0?g():c()},q)}r.onMounted(()=>{e.autoplay&&C()}),r.onBeforeUnmount(()=>{o!==null&&clearTimeout(o)});function R(q,T){return r.h("div",{class:`q-carousel__control q-carousel__navigation no-wrap absolute flex q-carousel__navigation--${q} q-carousel__navigation--${b.value}`+(e.controlColor!==void 0?` text-${e.controlColor}`:"")},[r.h("div",{class:"q-carousel__navigation-inner flex flex-center no-wrap"},v().map(T))])}function H(){const q=[];if(e.navigation===!0){const T=t["navigation-icon"]!==void 0?t["navigation-icon"]:O=>r.h(Ze,{key:"nav"+O.name,class:`q-carousel__navigation-icon q-carousel__navigation-icon--${O.active===!0?"":"in"}active`,...O.btnProps,onClick:O.onClick}),M=l-1;q.push(R("buttons",(O,k)=>{const A=O.props.name,D=h.value===k;return T({index:k,maxIndex:M,name:A,active:D,btnProps:{icon:D===!0?w.value:m.value,size:"sm",...E.value},onClick:()=>{d(A)}})}))}else if(e.thumbnails===!0){const T=e.controlColor!==void 0?` text-${e.controlColor}`:"";q.push(R("thumbnails",M=>{const O=M.props;return r.h("img",{key:"tmb#"+O.name,class:`q-carousel__thumbnail q-carousel__thumbnail--${O.name===e.modelValue?"":"in"}active`+T,src:O.imgSrc||O["img-src"],onClick:()=>{d(O.name)}})}))}return e.arrows===!0&&h.value>=0&&((e.infinite===!0||h.value>0)&&q.push(r.h("div",{key:"prev",class:`q-carousel__control q-carousel__arrow q-carousel__prev-arrow q-carousel__prev-arrow--${p.value} absolute flex flex-center`},[r.h(Ze,{icon:y.value[0],...E.value,onClick:c})])),(e.infinite===!0||h.value<l-1)&&q.push(r.h("div",{key:"next",class:`q-carousel__control q-carousel__arrow q-carousel__next-arrow q-carousel__next-arrow--${p.value} absolute flex flex-center`},[r.h(Ze,{icon:y.value[1],...E.value,onClick:g})]))),ht(t.control,q)}return()=>(l=i(t),r.h("div",{class:S.value,style:_.value},[en("div",{class:"q-carousel__slides-container"},s(),"sl-cont",e.swipeable,()=>u.value)].concat(H())))}}),ie({name:"QCarouselSlide",props:{...zi,imgSrc:String},setup(e,{slots:t}){const n=r.computed(()=>e.imgSrc?{backgroundImage:`url("${e.imgSrc}")`}:{});return()=>r.h("div",{class:"q-carousel__slide",style:n.value},Te(t.default))}}),ie({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=>e.length===2}},setup(e,{slots:t}){const n=r.computed(()=>`q-carousel__control absolute absolute-${e.position}`),a=r.computed(()=>({margin:`${e.offset[1]}px ${e.offset[0]}px`}));return()=>r.h("div",{class:n.value,style:a.value},Te(t.default))}}),ie({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(e,{slots:t}){const n=r.computed(()=>e.sent===!0?"sent":"received"),a=r.computed(()=>`q-message-text-content q-message-text-content--${n.value}`+(e.textColor!==void 0?` text-${e.textColor}`:"")),o=r.computed(()=>`q-message-text q-message-text--${n.value}`+(e.bgColor!==void 0?` text-${e.bgColor}`:"")),l=r.computed(()=>"q-message-container row items-end no-wrap"+(e.sent===!0?" reverse":"")),i=r.computed(()=>e.size!==void 0?`col-${e.size}`:""),s=r.computed(()=>({msg:e.textHtml===!0?"innerHTML":"textContent",stamp:e.stampHtml===!0?"innerHTML":"textContent",name:e.nameHtml===!0?"innerHTML":"textContent",label:e.labelHtml===!0?"innerHTML":"textContent"}));function u(c){return t.stamp!==void 0?[c,r.h("div",{class:"q-message-stamp"},t.stamp())]:e.stamp?[c,r.h("div",{class:"q-message-stamp",[s.value.stamp]:e.stamp})]:[c]}function d(c,g){const v=g===!0?c.length>1?h=>h:h=>r.h("div",[h]):h=>r.h("div",{[s.value.msg]:h});return c.map((h,f)=>r.h("div",{key:f,class:o.value},[r.h("div",{class:a.value},u(v(h)))]))}return()=>{const c=[];t.avatar!==void 0?c.push(t.avatar()):e.avatar!==void 0&&c.push(r.h("img",{class:`q-message-avatar q-message-avatar--${n.value}`,src:e.avatar,"aria-hidden":"true"}));const g=[];t.name!==void 0?g.push(r.h("div",{class:`q-message-name q-message-name--${n.value}`},t.name())):e.name!==void 0&&g.push(r.h("div",{class:`q-message-name q-message-name--${n.value}`,[s.value.name]:e.name})),t.default!==void 0?g.push(d(Ci(t.default()),!0)):e.text!==void 0&&g.push(d(e.text)),c.push(r.h("div",{class:i.value},g));const v=[];return t.label!==void 0?v.push(r.h("div",{class:"q-message-label"},t.label())):e.label!==void 0&&v.push(r.h("div",{class:"q-message-label",[s.value.label]:e.label})),v.push(r.h("div",{class:l.value},c)),r.h("div",{class:`q-message q-message-${n.value}`},v)}}});function Zd(e,t){const n=r.ref(null),a=r.computed(()=>e.disable===!0?null:r.h("span",{ref:n,class:"no-outline",tabindex:-1}));function o(l){const i=t.value;l?.qAvoidFocus!==!0&&(l?.type.indexOf("key")===0?document.activeElement!==i&&i?.contains(document.activeElement)===!0&&i.focus():n.value!==null&&(l===void 0||i?.contains(l.target)===!0)&&n.value.focus())}return{refocusTargetEl:a,refocusTarget:o}}var Vd={xs:30,sm:35,md:40,lg:50,xl:60},ef={...Ye,...Tn,...nn,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},tf=["update:modelValue"];function nf(e,t){const{props:n,slots:a,emit:o,proxy:l}=r.getCurrentInstance(),{$q:i}=l,s=Ge(n,i),u=r.ref(null),{refocusTargetEl:d,refocusTarget:c}=Zd(n,u),g=qn(n,Vd),v=r.computed(()=>n.val!==void 0&&Array.isArray(n.modelValue)),h=r.computed(()=>{const M=r.toRaw(n.val);return v.value===!0?n.modelValue.findIndex(O=>r.toRaw(O)===M):-1}),f=r.computed(()=>v.value===!0?h.value!==-1:r.toRaw(n.modelValue)===r.toRaw(n.trueValue)),_=r.computed(()=>v.value===!0?h.value===-1:r.toRaw(n.modelValue)===r.toRaw(n.falseValue)),p=r.computed(()=>f.value===!1&&_.value===!1),b=r.computed(()=>n.disable===!0?-1:n.tabindex||0),S=r.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?" disabled":"")+(s.value===!0?` q-${e}--dark`:"")+(n.dense===!0?` q-${e}--dense`:"")+(n.leftLabel===!0?" reverse":"")),y=r.computed(()=>{const M=f.value===!0?"truthy":_.value===!0?"falsy":"indet",O=n.color!==void 0&&(n.keepColor===!0||(e==="toggle"?f.value===!0:_.value!==!0))?` text-${n.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${M}${O}`}),m=r.computed(()=>{const M={type:"checkbox"};return n.name!==void 0&&Object.assign(M,{".checked":f.value,"^checked":f.value===!0?"checked":void 0,name:n.name,value:v.value===!0?n.val:n.trueValue}),M}),w=zn(m),E=r.computed(()=>{const M={tabindex:b.value,role:e==="toggle"?"switch":"checkbox","aria-label":n.label,"aria-checked":p.value===!0?"mixed":f.value===!0?"true":"false"};return n.disable===!0&&(M["aria-disabled"]="true"),M});function C(M){M!==void 0&&(Fe(M),c(M)),n.disable!==!0&&o("update:modelValue",R(),M)}function R(){if(v.value===!0){if(f.value===!0){const M=n.modelValue.slice();return M.splice(h.value,1),M}return n.modelValue.concat([n.val])}if(f.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(_.value===!0){if(n.toggleOrder==="ft"||n.toggleIndeterminate===!1)return n.trueValue}else return n.toggleOrder!=="ft"?n.trueValue:n.falseValue;return n.indeterminateValue}function H(M){(M.keyCode===13||M.keyCode===32)&&Fe(M)}function q(M){(M.keyCode===13||M.keyCode===32)&&C(M)}const T=t(f,p);return Object.assign(l,{toggle:C}),()=>{const M=T();n.disable!==!0&&w(M,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const O=[r.h("div",{class:y.value,style:g.value,"aria-hidden":"true"},M)];d.value!==null&&O.push(d.value);const k=n.label!==void 0?ht(a.default,[n.label]):Te(a.default);return k!==void 0&&O.push(r.h("div",{class:`q-${e}__label q-anchor--skip`},k)),r.h("div",{ref:u,class:S.value,...E.value,onClick:C,onKeydown:H,onKeyup:q},O)}}var sy=()=>r.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[r.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[r.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),r.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),ka=ie({name:"QCheckbox",props:ef,emits:tf,setup(e){const t=sy();function n(a,o){const l=r.computed(()=>(a.value===!0?e.checkedIcon:o.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>l.value!==null?[r.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[r.h(Xe,{class:"q-checkbox__icon",name:l.value})])]:[t]}return nf("checkbox",n)}}),uy={xs:8,sm:10,md:14,lg:20,xl:24},rf=ie({name:"QChip",props:{...Ye,...Tn,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=Ge(e,a),l=qn(e,uy),i=r.computed(()=>e.selected===!0||e.icon!==void 0),s=r.computed(()=>e.selected===!0?e.iconSelected||a.iconSet.chip.selected:e.icon),u=r.computed(()=>e.iconRemove||a.iconSet.chip.remove),d=r.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),c=r.computed(()=>{const p=e.outline===!0&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(e.outline===!1&&e.color!==void 0?` bg-${e.color}`:"")+(p?` text-${p} q-chip--colored`:"")+(e.disable===!0?" disabled":"")+(e.dense===!0?" q-chip--dense":"")+(e.outline===!0?" q-chip--outline":"")+(e.selected===!0?" q-chip--selected":"")+(d.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(o.value===!0?" q-chip--dark q-dark":"")}),g=r.computed(()=>{const p=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},b={...p,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||a.lang.label.remove};return{chip:p,remove:b}});function v(p){p.keyCode===13&&h(p)}function h(p){e.disable||(n("update:selected",!e.selected),n("click",p))}function f(p){(p.keyCode===void 0||p.keyCode===13)&&(Fe(p),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function _(){const p=[];d.value===!0&&p.push(r.h("div",{class:"q-focus-helper"})),i.value===!0&&p.push(r.h(Xe,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const b=e.label!==void 0?[r.h("div",{class:"ellipsis"},[e.label])]:void 0;return p.push(r.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},pi(t.default,b))),e.iconRight&&p.push(r.h(Xe,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&p.push(r.h(Xe,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:u.value,...g.value.remove,onClick:f,onKeyup:f})),p}return()=>{if(e.modelValue===!1)return;const p={class:c.value,style:l.value};return d.value===!0&&Object.assign(p,g.value.chip,{onClick:h,onKeyup:v}),en("div",p,_(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[So,e.ripple]])}}}),Yi={...Tn,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,rounded:Boolean,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean},Gi=50,af=2*Gi,of=af*Math.PI,cy=Math.round(of*1e3)/1e3,lf=ie({name:"QCircularProgress",props:{...Yi,value:{type:Number,default:0},animationSpeed:{type:[String,Number],default:600},indeterminate:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=qn(e),o=r.computed(()=>{const h=(n.lang.rtl===!0?-1:1)*e.angle;return{transform:e.reverse!==(n.lang.rtl===!0)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-h}deg)`:`rotate3d(0, 0, 1, ${h-90}deg)`}}),l=r.computed(()=>e.instantFeedback!==!0&&e.indeterminate!==!0?{transition:`stroke-dashoffset ${e.animationSpeed}ms ease 0s, stroke ${e.animationSpeed}ms ease`}:""),i=r.computed(()=>af/(1-e.thickness/2)),s=r.computed(()=>`${i.value/2} ${i.value/2} ${i.value} ${i.value}`),u=r.computed(()=>at(e.value,e.min,e.max)),d=r.computed(()=>e.max-e.min),c=r.computed(()=>e.thickness/2*i.value),g=r.computed(()=>{const h=(e.max-u.value)/d.value,f=e.rounded===!0&&u.value<e.max&&h<.25?c.value/2*(1-h/.25):0;return of*h+f});function v({thickness:h,offset:f,color:_,cls:p,rounded:b}){return r.h("circle",{class:"q-circular-progress__"+p+(_!==void 0?` text-${_}`:""),style:l.value,fill:"transparent",stroke:"currentColor","stroke-width":h,"stroke-dasharray":cy,"stroke-dashoffset":f,"stroke-linecap":b,cx:i.value,cy:i.value,r:Gi})}return()=>{const h=[];e.centerColor!==void 0&&e.centerColor!=="transparent"&&h.push(r.h("circle",{class:`q-circular-progress__center text-${e.centerColor}`,fill:"currentColor",r:Gi-c.value/2,cx:i.value,cy:i.value})),e.trackColor!==void 0&&e.trackColor!=="transparent"&&h.push(v({cls:"track",thickness:c.value,offset:0,color:e.trackColor})),h.push(v({cls:"circle",thickness:c.value,offset:g.value,color:e.color,rounded:e.rounded===!0?"round":void 0}));const f=[r.h("svg",{class:"q-circular-progress__svg",style:o.value,viewBox:s.value,"aria-hidden":"true"},h)];return e.showValue===!0&&f.push(r.h("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:e.fontSize}},t.default!==void 0?t.default():[r.h("div",u.value)])),r.h("div",{class:`q-circular-progress q-circular-progress--${e.indeterminate===!0?"in":""}determinate`,style:a.value,role:"progressbar","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.indeterminate===!0?void 0:u.value},pi(t.internal,f))}}});function Xi(e,t,n){const a=zt(e);let o,l=a.left-t.event.x,i=a.top-t.event.y,s=Math.abs(l),u=Math.abs(i);const d=t.direction;d.horizontal===!0&&d.vertical!==!0?o=l<0?"left":"right":d.horizontal!==!0&&d.vertical===!0?o=i<0?"up":"down":d.up===!0&&i<0?(o="up",s>u&&(d.left===!0&&l<0?o="left":d.right===!0&&l>0&&(o="right"))):d.down===!0&&i>0?(o="down",s>u&&(d.left===!0&&l<0?o="left":d.right===!0&&l>0&&(o="right"))):d.left===!0&&l<0?(o="left",s<u&&(d.up===!0&&i<0?o="up":d.down===!0&&i>0&&(o="down"))):d.right===!0&&l>0&&(o="right",s<u&&(d.up===!0&&i<0?o="up":d.down===!0&&i>0&&(o="down")));let c=!1;if(o===void 0&&n===!1){if(t.event.isFirst===!0||t.event.lastDir===void 0)return{};o=t.event.lastDir,c=!0,o==="left"||o==="right"?(a.left-=l,s=0,l=0):(a.top-=i,u=0,i=0)}return{synthetic:c,payload:{evt:e,touch:t.event.mouse!==!0,mouse:t.event.mouse===!0,position:a,direction:o,isFirst:t.event.isFirst,isFinal:n===!0,duration:Date.now()-t.event.time,distance:{x:s,y:u},offset:{x:l,y:i},delta:{x:a.left-t.event.lastX,y:a.top-t.event.lastY}}}}var dy=0,rn=sn({name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(n.mouse!==!0&&He.has.touch!==!0)return;function a(l,i){n.mouse===!0&&i===!0?Fe(l):(n.stop===!0&&ft(l),n.prevent===!0&&Et(l))}const o={uid:"qvtp_"+dy++,handler:t,modifiers:n,direction:Do(n),noop:wt,mouseStart(l){$o(l,o)&&ho(l)&&(mt(o,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),o.start(l,!0))},touchStart(l){if($o(l,o)){const i=l.target;mt(o,"temp",[[i,"touchmove","move","notPassiveCapture"],[i,"touchcancel","end","passiveCapture"],[i,"touchend","end","passiveCapture"]]),o.start(l)}},start(l,i){if(He.is.firefox===!0&&Mr(e,!0),o.lastEvt=l,i===!0||n.stop===!0){if(o.direction.all!==!0&&(i!==!0||o.modifiers.mouseAllDir!==!0&&o.modifiers.mousealldir!==!0)){const d=l.type.indexOf("mouse")!==-1?new MouseEvent(l.type,l):new TouchEvent(l.type,l);l.defaultPrevented===!0&&Et(d),l.cancelBubble===!0&&ft(d),Object.assign(d,{qKeyEvent:l.qKeyEvent,qClickOutside:l.qClickOutside,qAnchorHandled:l.qAnchorHandled,qClonedBy:l.qClonedBy===void 0?[o.uid]:l.qClonedBy.concat(o.uid)}),o.initialEvent={target:l.target,event:d}}ft(l)}const{left:s,top:u}=zt(l);o.event={x:s,y:u,time:Date.now(),mouse:i===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:s,lastY:u}},move(l){if(o.event===void 0)return;const i=zt(l),s=i.left-o.event.x,u=i.top-o.event.y;if(s===0&&u===0)return;o.lastEvt=l;const d=o.event.mouse===!0,c=()=>{a(l,d);let h;n.preserveCursor!==!0&&n.preservecursor!==!0&&(h=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),d===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),dn(),o.styleCleanup=f=>{if(o.styleCleanup=void 0,h!==void 0&&(document.documentElement.style.cursor=h),document.body.classList.remove("non-selectable"),d===!0){const _=()=>{document.body.classList.remove("no-pointer-events--children")};f!==void 0?setTimeout(()=>{_(),f()},50):_()}else f!==void 0&&f()}};if(o.event.detected===!0){o.event.isFirst!==!0&&a(l,o.event.mouse);const{payload:h,synthetic:f}=Xi(l,o,!1);h!==void 0&&(o.handler(h)===!1?o.end(l):(o.styleCleanup===void 0&&o.event.isFirst===!0&&c(),o.event.lastX=h.position.left,o.event.lastY=h.position.top,o.event.lastDir=f===!0?void 0:h.direction,o.event.isFirst=!1));return}if(o.direction.all===!0||d===!0&&(o.modifiers.mouseAllDir===!0||o.modifiers.mousealldir===!0)){c(),o.event.detected=!0,o.move(l);return}const g=Math.abs(s),v=Math.abs(u);g!==v&&(o.direction.horizontal===!0&&g>v||o.direction.vertical===!0&&g<v||o.direction.up===!0&&g<v&&u<0||o.direction.down===!0&&g<v&&u>0||o.direction.left===!0&&g>v&&s<0||o.direction.right===!0&&g>v&&s>0?(o.event.detected=!0,o.move(l)):o.end(l,!0))},end(l,i){if(o.event!==void 0){if(Dt(o,"temp"),He.is.firefox===!0&&Mr(e,!1),i===!0)o.styleCleanup?.(),o.event.detected!==!0&&o.initialEvent!==void 0&&o.initialEvent.target.dispatchEvent(o.initialEvent.event);else if(o.event.detected===!0){o.event.isFirst===!0&&o.handler(Xi(l===void 0?o.lastEvt:l,o).payload);const{payload:s}=Xi(l===void 0?o.lastEvt:l,o,!0),u=()=>{o.handler(s)};o.styleCleanup!==void 0?o.styleCleanup(u):u()}o.event=void 0,o.initialEvent=void 0,o.lastEvt=void 0}}};if(e.__qtouchpan=o,n.mouse===!0){const l=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";mt(o,"main",[[e,"mousedown","mouseStart",`passive${l}`]])}He.has.touch===!0&&mt(o,"main",[[e,"touchstart","touchStart",`passive${n.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchpan;n!==void 0&&(t.oldValue!==t.value&&(typeof value!="function"&&n.end(),n.handler=t.value),n.direction=Do(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;t!==void 0&&(t.event!==void 0&&t.end(),Dt(t,"main"),Dt(t,"temp"),He.is.firefox===!0&&Mr(e,!1),t.styleCleanup?.(),delete e.__qtouchpan)}}),sf="q-slider__marker-labels",fy=e=>({value:e}),vy=({marker:e})=>r.h("div",{key:e.value,style:e.style,class:e.classes},e.label),Ji=[34,37,40,33,39,38],uf={...Ye,...nn,min:{type:Number,default:0},max:{type:Number,default:100},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:e=>e>=0},snap:Boolean,vertical:Boolean,reverse:Boolean,color:String,markerLabelsClass:String,label:Boolean,labelColor:String,labelTextColor:String,labelAlways:Boolean,switchLabelSide:Boolean,markers:[Boolean,Number],markerLabels:[Boolean,Array,Object,Function],switchMarkerLabelsSide:Boolean,trackImg:String,trackColor:String,innerTrackImg:String,innerTrackColor:String,selectionColor:String,selectionImg:String,thumbSize:{type:String,default:"20px"},trackSize:{type:String,default:"4px"},disable:Boolean,readonly:Boolean,dense:Boolean,tabindex:[String,Number],thumbColor:String,thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},cf=["pan","update:modelValue","change"];function df({updateValue:e,updatePosition:t,getDragging:n,formAttrs:a}){const{props:o,emit:l,slots:i,proxy:{$q:s}}=r.getCurrentInstance(),u=Ge(o,s),d=zn(a),c=r.ref(!1),g=r.ref(!1),v=r.ref(!1),h=r.ref(!1),f=r.computed(()=>o.vertical===!0?"--v":"--h"),_=r.computed(()=>"-"+(o.switchLabelSide===!0?"switched":"standard")),p=r.computed(()=>o.vertical===!0?o.reverse===!0:o.reverse!==(s.lang.rtl===!0)),b=r.computed(()=>isNaN(o.innerMin)===!0||o.innerMin<o.min?o.min:o.innerMin),S=r.computed(()=>isNaN(o.innerMax)===!0||o.innerMax>o.max?o.max:o.innerMax),y=r.computed(()=>o.disable!==!0&&o.readonly!==!0&&b.value<S.value),m=r.computed(()=>{if(o.step===0)return de=>de;const V=(String(o.step).trim().split(".")[1]||"").length;return de=>parseFloat(de.toFixed(V))}),w=r.computed(()=>o.step===0?1:o.step),E=r.computed(()=>y.value===!0?o.tabindex||0:-1),C=r.computed(()=>o.max-o.min),R=r.computed(()=>S.value-b.value),H=r.computed(()=>_e(b.value)),q=r.computed(()=>_e(S.value)),T=r.computed(()=>o.vertical===!0?p.value===!0?"bottom":"top":p.value===!0?"right":"left"),M=r.computed(()=>o.vertical===!0?"height":"width"),O=r.computed(()=>o.vertical===!0?"width":"height"),k=r.computed(()=>o.vertical===!0?"vertical":"horizontal"),A=r.computed(()=>{const V={role:"slider","aria-valuemin":b.value,"aria-valuemax":S.value,"aria-orientation":k.value,"data-step":o.step};return o.disable===!0?V["aria-disabled"]="true":o.readonly===!0&&(V["aria-readonly"]="true"),V}),D=r.computed(()=>`q-slider q-slider${f.value} q-slider--${c.value===!0?"":"in"}active inline no-wrap `+(o.vertical===!0?"row":"column")+(o.disable===!0?" disabled":" q-slider--enabled"+(y.value===!0?" q-slider--editable":""))+(v.value==="both"?" q-slider--focus":"")+(o.label||o.labelAlways===!0?" q-slider--label":"")+(o.labelAlways===!0?" q-slider--label-always":"")+(u.value===!0?" q-slider--dark":"")+(o.dense===!0?" q-slider--dense q-slider--dense"+f.value:""));function z(V){const de="q-slider__"+V;return`${de} ${de}${f.value} ${de}${f.value}${_.value}`}function F(V){const de="q-slider__"+V;return`${de} ${de}${f.value}`}const Z=r.computed(()=>{const V=o.selectionColor||o.color;return"q-slider__selection absolute"+(V!==void 0?` text-${V}`:"")}),he=r.computed(()=>F("markers")+" absolute overflow-hidden"),$=r.computed(()=>F("track-container")),x=r.computed(()=>z("pin")),Y=r.computed(()=>z("label")),B=r.computed(()=>z("text-container")),le=r.computed(()=>z("marker-labels-container")+(o.markerLabelsClass!==void 0?` ${o.markerLabelsClass}`:"")),N=r.computed(()=>"q-slider__track relative-position no-outline"+(o.trackColor!==void 0?` bg-${o.trackColor}`:"")),U=r.computed(()=>{const V={[O.value]:o.trackSize};return o.trackImg!==void 0&&(V.backgroundImage=`url(${o.trackImg}) !important`),V}),ue=r.computed(()=>"q-slider__inner absolute"+(o.innerTrackColor!==void 0?` bg-${o.innerTrackColor}`:"")),W=r.computed(()=>{const V=q.value-H.value,de={[T.value]:`${100*H.value}%`,[M.value]:V===0?"2px":`${100*V}%`};return o.innerTrackImg!==void 0&&(de.backgroundImage=`url(${o.innerTrackImg}) !important`),de});function ve(V){const{min:de,max:xe,step:Be}=o;let Le=de+V*(xe-de);if(Be>0){const Ue=(Le-b.value)%Be;Le+=(Math.abs(Ue)>=Be/2?(Ue<0?-1:1)*Be:0)-Ue}return Le=m.value(Le),at(Le,b.value,S.value)}function _e(V){return C.value===0?0:(V-o.min)/C.value}function G(V,de){const xe=zt(V),Be=o.vertical===!0?at((xe.top-de.top)/de.height,0,1):at((xe.left-de.left)/de.width,0,1);return at(p.value===!0?1-Be:Be,H.value,q.value)}const ge=r.computed(()=>ma(o.markers)===!0?o.markers:w.value),pe=r.computed(()=>{const V=[],de=ge.value,xe=o.max;let Be=o.min;do V.push(Be),Be+=de;while(Be<xe);return V.push(xe),V}),we=r.computed(()=>{const V=` ${sf}${f.value}-`;return sf+`${V}${o.switchMarkerLabelsSide===!0?"switched":"standard"}${V}${p.value===!0?"rtl":"ltr"}`}),Ae=r.computed(()=>o.markerLabels===!1?null:I(o.markerLabels).map((V,de)=>({index:de,value:V.value,label:V.label||V.value,classes:we.value+(V.classes!==void 0?" "+V.classes:""),style:{...te(V.value),...V.style||{}}}))),fe=r.computed(()=>({markerList:Ae.value,markerMap:K.value,classes:we.value,getStyle:te})),L=r.computed(()=>{const V=R.value===0?"2px":100*ge.value/R.value;return{...W.value,backgroundSize:o.vertical===!0?`2px ${V}%`:`${V}% 2px`}});function I(V){if(V===!1)return null;if(V===!0)return pe.value.map(fy);if(typeof V=="function")return pe.value.map(xe=>{const Be=V(xe);return $t(Be)===!0?{...Be,value:xe}:{value:xe,label:Be}});const de=({value:xe})=>xe>=o.min&&xe<=o.max;return Array.isArray(V)===!0?V.map(xe=>$t(xe)===!0?xe:{value:xe}).filter(de):Object.keys(V).map(xe=>{const Be=V[xe],Le=Number(xe);return $t(Be)===!0?{...Be,value:Le}:{value:Le,label:Be}}).filter(de)}function te(V){return{[T.value]:`${100*(V-o.min)/C.value}%`}}const K=r.computed(()=>{if(o.markerLabels===!1)return null;const V={};return Ae.value.forEach(de=>{V[de.value]=de}),V});function X(){if(i["marker-label-group"]!==void 0)return i["marker-label-group"](fe.value);const V=i["marker-label"]||vy;return Ae.value.map(de=>V({marker:de,...fe.value}))}const se=r.computed(()=>[[rn,me,void 0,{[k.value]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]);function me(V){V.isFinal===!0?(h.value!==void 0&&(t(V.evt),V.touch===!0&&e(!0),h.value=void 0,l("pan","end")),c.value=!1,v.value=!1):V.isFirst===!0?(h.value=n(V.evt),t(V.evt),e(),c.value=!0,l("pan","start")):(t(V.evt),e())}function J(){v.value=!1}function ae(V){t(V,n(V)),e(),g.value=!0,c.value=!0,document.addEventListener("mouseup",be,!0)}function be(){g.value=!1,c.value=!1,e(!0),J(),document.removeEventListener("mouseup",be,!0)}function ke(V){t(V,n(V)),e(!0)}function Qe(V){Ji.includes(V.keyCode)&&e(!0)}function je(V){if(o.vertical===!0)return null;const de=s.lang.rtl!==o.reverse?1-V:V;return{transform:`translateX(calc(${2*de-1} * ${o.thumbSize} / 2 + ${50-100*de}%))`}}function ee(V){const de=r.computed(()=>g.value===!1&&(v.value===V.focusValue||v.value==="both")?" q-slider--focus":""),xe=r.computed(()=>`q-slider__thumb q-slider__thumb${f.value} q-slider__thumb${f.value}-${p.value===!0?"rtl":"ltr"} absolute non-selectable`+de.value+(V.thumbColor.value!==void 0?` text-${V.thumbColor.value}`:"")),Be=r.computed(()=>({width:o.thumbSize,height:o.thumbSize,[T.value]:`${100*V.ratio.value}%`,zIndex:v.value===V.focusValue?2:void 0})),Le=r.computed(()=>V.labelColor.value!==void 0?` text-${V.labelColor.value}`:""),Ue=r.computed(()=>je(V.ratio.value)),nt=r.computed(()=>"q-slider__text"+(V.labelTextColor.value!==void 0?` text-${V.labelTextColor.value}`:""));return()=>{const pt=[r.h("svg",{class:"q-slider__thumb-shape absolute-full",viewBox:"0 0 20 20","aria-hidden":"true"},[r.h("path",{d:o.thumbPath})]),r.h("div",{class:"q-slider__focus-ring fit"})];return(o.label===!0||o.labelAlways===!0)&&(pt.push(r.h("div",{class:x.value+" absolute fit no-pointer-events"+Le.value},[r.h("div",{class:Y.value,style:{minWidth:o.thumbSize}},[r.h("div",{class:B.value,style:Ue.value},[r.h("span",{class:nt.value},V.label.value)])])])),o.name!==void 0&&o.disable!==!0&&d(pt,"push")),r.h("div",{class:xe.value,style:Be.value,...V.getNodeData()},pt)}}function ce(V,de,xe,Be){const Le=[];o.innerTrackColor!=="transparent"&&Le.push(r.h("div",{key:"inner",class:ue.value,style:W.value})),o.selectionColor!=="transparent"&&Le.push(r.h("div",{key:"selection",class:Z.value,style:V.value})),o.markers!==!1&&Le.push(r.h("div",{key:"marker",class:he.value,style:L.value})),Be(Le);const Ue=[en("div",{key:"trackC",class:$.value,tabindex:de.value,...xe.value},[r.h("div",{class:N.value,style:U.value},Le)],"slide",y.value,()=>se.value)];if(o.markerLabels!==!1){const nt=o.switchMarkerLabelsSide===!0?"unshift":"push";Ue[nt](r.h("div",{key:"markerL",class:le.value},X()))}return Ue}return r.onBeforeUnmount(()=>{document.removeEventListener("mouseup",be,!0)}),{state:{active:c,focus:v,preventFocus:g,dragging:h,editable:y,classes:D,tabindex:E,attributes:A,roundValueFn:m,keyStep:w,trackLen:C,innerMin:b,innerMinRatio:H,innerMax:S,innerMaxRatio:q,positionProp:T,sizeProp:M,isReversed:p},methods:{onActivate:ae,onMobileClick:ke,onBlur:J,onKeyup:Qe,getContent:ce,getThumbRenderFn:ee,convertRatioToModel:ve,convertModelToRatio:_e,getDraggingRatio:G}}}var my=()=>({}),Qr=ie({name:"QSlider",props:{...uf,modelValue:{required:!0,default:null,validator:e=>typeof e=="number"||e===null},labelValue:[String,Number]},emits:cf,setup(e,{emit:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),{state:a,methods:o}=df({updateValue:f,updatePosition:p,getDragging:_,formAttrs:Sa(e)}),l=r.ref(null),i=r.ref(0),s=r.ref(0);function u(){s.value=e.modelValue===null?a.innerMin.value:at(e.modelValue,a.innerMin.value,a.innerMax.value)}r.watch(()=>`${e.modelValue}|${a.innerMin.value}|${a.innerMax.value}`,u),u();const d=r.computed(()=>o.convertModelToRatio(s.value)),c=r.computed(()=>a.active.value===!0?i.value:d.value),g=r.computed(()=>{const y={[a.positionProp.value]:`${100*a.innerMinRatio.value}%`,[a.sizeProp.value]:`${100*(c.value-a.innerMinRatio.value)}%`};return e.selectionImg!==void 0&&(y.backgroundImage=`url(${e.selectionImg}) !important`),y}),v=o.getThumbRenderFn({focusValue:!0,getNodeData:my,ratio:c,label:r.computed(()=>e.labelValue!==void 0?e.labelValue:s.value),thumbColor:r.computed(()=>e.thumbColor||e.color),labelColor:r.computed(()=>e.labelColor),labelTextColor:r.computed(()=>e.labelTextColor)}),h=r.computed(()=>a.editable.value!==!0?{}:n.platform.is.mobile===!0?{onClick:o.onMobileClick}:{onMousedown:o.onActivate,onFocus:b,onBlur:o.onBlur,onKeydown:S,onKeyup:o.onKeyup});function f(y){s.value!==e.modelValue&&t("update:modelValue",s.value),y===!0&&t("change",s.value)}function _(){return l.value.getBoundingClientRect()}function p(y,m=a.dragging.value){const w=o.getDraggingRatio(y,m);s.value=o.convertRatioToModel(w),i.value=e.snap!==!0||e.step===0?w:o.convertModelToRatio(s.value)}function b(){a.focus.value=!0}function S(y){if(Ji.includes(y.keyCode)===!1)return;Fe(y);const m=([34,33].includes(y.keyCode)?10:1)*a.keyStep.value,w=([34,37,40].includes(y.keyCode)?-1:1)*(a.isReversed.value===!0?-1:1)*(e.vertical===!0?-1:1)*m;s.value=at(a.roundValueFn.value(s.value+w),a.innerMin.value,a.innerMax.value),f()}return()=>{const y=o.getContent(g,a.tabindex,h,m=>{m.push(v())});return r.h("div",{ref:l,class:a.classes.value+(e.modelValue===null?" q-slider--no-value":""),...a.attributes.value,"aria-valuenow":e.modelValue},y)}}});function ff(){const e=r.ref(!Zt.value);return e.value===!1&&r.onMounted(()=>{e.value=!0}),{isHydrated:e}}var vf=typeof ResizeObserver<"u",mf=vf===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},vr=ie({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n=null,a,o={width:-1,height:-1};function l(u){u===!0||e.debounce===0||e.debounce==="0"?i():n===null&&(n=setTimeout(i,e.debounce))}function i(){if(n!==null&&(clearTimeout(n),n=null),a){const{offsetWidth:u,offsetHeight:d}=a;(u!==o.width||d!==o.height)&&(o={width:u,height:d},t("resize",o))}}const{proxy:s}=r.getCurrentInstance();if(s.trigger=l,vf===!0){let u;const d=c=>{a=s.$el.parentNode,a?(u=new ResizeObserver(l),u.observe(a),i()):c!==!0&&r.nextTick(()=>{d(!0)})};return r.onMounted(()=>{d()}),r.onBeforeUnmount(()=>{n!==null&&clearTimeout(n),u!==void 0&&(u.disconnect!==void 0?u.disconnect():a&&u.unobserve(a))}),wt}else{let u=function(){n!==null&&(clearTimeout(n),n=null),g!==void 0&&(g.removeEventListener!==void 0&&g.removeEventListener("resize",l,lt.passive),g=void 0)},d=function(){u(),a?.contentDocument&&(g=a.contentDocument.defaultView,g.addEventListener("resize",l,lt.passive),i())};const{isHydrated:c}=ff();let g;return r.onMounted(()=>{r.nextTick(()=>{a=s.$el,a&&d()})}),r.onBeforeUnmount(u),()=>{if(c.value===!0)return r.h("object",{class:"q--avoid-card-border",style:mf.style,tabindex:-1,type:"text/html",data:mf.url,"aria-hidden":"true",onLoad:d})}}}}),xa=!1;if(!__QUASAR_SSR__){const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,xa=e.scrollLeft>=0,e.remove()}function hy(e,t,n){const a=n===!0?["left","right"]:["top","bottom"];return`absolute-${t===!0?a[0]:a[1]}${e?` text-${e}`:""}`}var gy=["left","center","right","justify"],hf=ie({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:e=>gy.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,{registerTick:l}=Hr(),{registerTick:i}=Hr(),{registerTick:s}=Hr(),{registerTimeout:u,removeTimeout:d}=On(),{registerTimeout:c,removeTimeout:g}=On(),v=r.ref(null),h=r.ref(null),f=r.ref(e.modelValue),_=r.ref(!1),p=r.ref(!0),b=r.ref(!1),S=r.ref(!1),y=[],m=r.ref(0),w=r.ref(!1);let E=null,C=null,R;const H=r.computed(()=>({activeClass:e.activeClass,activeColor:e.activeColor,activeBgColor:e.activeBgColor,indicatorClass:hy(e.indicatorColor,e.switchIndicator,e.vertical),narrowIndicator:e.narrowIndicator,inlineLabel:e.inlineLabel,noCaps:e.noCaps})),q=r.computed(()=>{const X=m.value,se=f.value;for(let me=0;me<X;me++)if(y[me].name.value===se)return!0;return!1}),T=r.computed(()=>`q-tabs__content--align-${_.value===!0?"left":S.value===!0?"justify":e.align}`),M=r.computed(()=>`q-tabs row no-wrap items-center q-tabs--${_.value===!0?"":"not-"}scrollable q-tabs--${e.vertical===!0?"vertical":"horizontal"} q-tabs__arrows--${e.outsideArrows===!0?"outside":"inside"} q-tabs--mobile-with${e.mobileArrows===!0?"":"out"}-arrows`+(e.dense===!0?" q-tabs--dense":"")+(e.shrink===!0?" col-shrink":"")+(e.stretch===!0?" self-stretch":"")),O=r.computed(()=>"q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position "+T.value+(e.contentClass!==void 0?` ${e.contentClass}`:"")),k=r.computed(()=>e.vertical===!0?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}),A=r.computed(()=>e.vertical!==!0&&o.lang.rtl===!0),D=r.computed(()=>xa===!1&&A.value===!0);r.watch(A,x),r.watch(()=>e.modelValue,X=>{z({name:X,setCurrent:!0,skipEmit:!0})}),r.watch(()=>e.outsideArrows,F);function z({name:X,setCurrent:se,skipEmit:me}){f.value!==X&&(me!==!0&&e["onUpdate:modelValue"]!==void 0&&n("update:modelValue",X),(se===!0||e["onUpdate:modelValue"]===void 0)&&(he(f.value,X),f.value=X))}function F(){l(()=>{v.value&&Z({width:v.value.offsetWidth,height:v.value.offsetHeight})})}function Z(X){if(k.value===void 0||h.value===null)return;const se=X[k.value.container],me=Math.min(h.value[k.value.scroll],Array.prototype.reduce.call(h.value.children,(ae,be)=>ae+(be[k.value.content]||0),0)),J=se>0&&me>se;_.value=J,J===!0&&i(x),S.value=se<parseInt(e.breakpoint,10)}function he(X,se){const me=X!=null&&X!==""?y.find(ae=>ae.name.value===X):null,J=se!=null&&se!==""?y.find(ae=>ae.name.value===se):null;if(K===!0)K=!1;else if(me&&J){const ae=me.tabIndicatorRef.value,be=J.tabIndicatorRef.value;E!==null&&(clearTimeout(E),E=null),ae.style.transition="none",ae.style.transform="none",be.style.transition="none",be.style.transform="none";const ke=ae.getBoundingClientRect(),Qe=be.getBoundingClientRect();be.style.transform=e.vertical===!0?`translate3d(0,${ke.top-Qe.top}px,0) scale3d(1,${Qe.height?ke.height/Qe.height:1},1)`:`translate3d(${ke.left-Qe.left}px,0,0) scale3d(${Qe.width?ke.width/Qe.width:1},1,1)`,s(()=>{E=setTimeout(()=>{E=null,be.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",be.style.transform="none"},70)})}J&&_.value===!0&&$(J.rootRef.value)}function $(X){const{left:se,width:me,top:J,height:ae}=h.value.getBoundingClientRect(),be=X.getBoundingClientRect();let ke=e.vertical===!0?be.top-J:be.left-se;if(ke<0){h.value[e.vertical===!0?"scrollTop":"scrollLeft"]+=Math.floor(ke),x();return}ke+=e.vertical===!0?be.height-ae:be.width-me,ke>0&&(h.value[e.vertical===!0?"scrollTop":"scrollLeft"]+=Math.ceil(ke),x())}function x(){const X=h.value;if(X===null)return;const se=X.getBoundingClientRect(),me=e.vertical===!0?X.scrollTop:Math.abs(X.scrollLeft);A.value===!0?(p.value=Math.ceil(me+se.width)<X.scrollWidth-1,b.value=me>0):(p.value=me>0,b.value=e.vertical===!0?Math.ceil(me+se.height)<X.scrollHeight:Math.ceil(me+se.width)<X.scrollWidth)}function Y(X){C!==null&&clearInterval(C),C=setInterval(()=>{W(X)===!0&&N()},5)}function B(){Y(D.value===!0?Number.MAX_SAFE_INTEGER:0)}function le(){Y(D.value===!0?0:Number.MAX_SAFE_INTEGER)}function N(){C!==null&&(clearInterval(C),C=null)}function U(X,se){const me=Array.prototype.filter.call(h.value.children,Qe=>Qe===se||Qe.matches&&Qe.matches(".q-tab.q-focusable")===!0),J=me.length;if(J===0)return;if(X===36)return $(me[0]),me[0].focus(),!0;if(X===35)return $(me[J-1]),me[J-1].focus(),!0;const ae=X===(e.vertical===!0?38:37),be=X===(e.vertical===!0?40:39),ke=ae===!0?-1:be===!0?1:void 0;if(ke!==void 0){const Qe=A.value===!0?-1:1,je=me.indexOf(se)+ke*Qe;return je>=0&&je<J&&($(me[je]),me[je].focus({preventScroll:!0})),!0}}const ue=r.computed(()=>D.value===!0?{get:X=>Math.abs(X.scrollLeft),set:(X,se)=>{X.scrollLeft=-se}}:e.vertical===!0?{get:X=>X.scrollTop,set:(X,se)=>{X.scrollTop=se}}:{get:X=>X.scrollLeft,set:(X,se)=>{X.scrollLeft=se}});function W(X){const se=h.value,{get:me,set:J}=ue.value;let ae=!1,be=me(se);const ke=X<be?-1:1;return be+=ke*5,be<0?(ae=!0,be=0):(ke===-1&&be<=X||ke===1&&be>=X)&&(ae=!0,be=X),J(se,be),x(),ae}function ve(X,se){for(const me in X)if(X[me]!==se[me])return!1;return!0}function _e(){let X=null,se={matchedLen:0,queryDiff:9999,hrefLen:0};const me=y.filter(ke=>ke.routeData?.hasRouterLink.value===!0),{hash:J,query:ae}=a.$route,be=Object.keys(ae).length;for(const ke of me){const Qe=ke.routeData.exact.value===!0;if(ke.routeData[Qe===!0?"linkIsExactActive":"linkIsActive"].value!==!0)continue;const{hash:je,query:ee,matched:ce,href:V}=ke.routeData.resolvedLink.value,de=Object.keys(ee).length;if(Qe===!0){if(je!==J||de!==be||ve(ae,ee)===!1)continue;X=ke.name.value;break}if(je!==""&&je!==J||de!==0&&ve(ee,ae)===!1)continue;const xe={matchedLen:ce.length,queryDiff:be-de,hrefLen:V.length-je.length};if(xe.matchedLen>se.matchedLen){X=ke.name.value,se=xe;continue}else if(xe.matchedLen!==se.matchedLen)continue;if(xe.queryDiff<se.queryDiff)X=ke.name.value,se=xe;else if(xe.queryDiff!==se.queryDiff)continue;xe.hrefLen>se.hrefLen&&(X=ke.name.value,se=xe)}if(X===null&&y.some(ke=>ke.routeData===void 0&&ke.name.value===f.value)===!0){K=!1;return}z({name:X,setCurrent:!0})}function G(X){if(d(),w.value!==!0&&v.value!==null&&X.target&&typeof X.target.closest=="function"){const se=X.target.closest(".q-tab");se&&v.value.contains(se)===!0&&(w.value=!0,_.value===!0&&$(se))}}function ge(){u(()=>{w.value=!1},30)}function pe(){L.avoidRouteWatcher===!1?c(_e):g()}function we(){if(R===void 0){const X=r.watch(()=>a.$route.fullPath,pe);R=()=>{X(),R=void 0}}}function Ae(X){y.push(X),m.value++,F(),X.routeData===void 0||a.$route===void 0?c(()=>{if(_.value===!0){const se=f.value,me=se!=null&&se!==""?y.find(J=>J.name.value===se):null;me&&$(me.rootRef.value)}}):(we(),X.routeData.hasRouterLink.value===!0&&pe())}function fe(X){y.splice(y.indexOf(X),1),m.value--,F(),R!==void 0&&X.routeData!==void 0&&(y.every(se=>se.routeData===void 0)===!0&&R(),pe())}const L={currentModel:f,tabProps:H,hasFocus:w,hasActiveTab:q,registerTab:Ae,unregisterTab:fe,verifyRouteModel:pe,updateModel:z,onKbdNavigate:U,avoidRouteWatcher:!1};r.provide(ld,L);function I(){E!==null&&clearTimeout(E),N(),R?.()}let te,K;return r.onBeforeUnmount(I),r.onDeactivated(()=>{te=R!==void 0,I()}),r.onActivated(()=>{te===!0&&(we(),K=!0,pe()),F()}),()=>r.h("div",{ref:v,class:M.value,role:"tablist",onFocusin:G,onFocusout:ge},[r.h(vr,{onResize:Z}),r.h("div",{ref:h,class:O.value,onScroll:x},Te(t.default)),r.h(Xe,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(p.value===!0?"":" q-tabs__arrow--faded"),name:e.leftIcon||o.iconSet.tabs[e.vertical===!0?"up":"left"],onMousedownPassive:B,onTouchstartPassive:B,onMouseupPassive:N,onMouseleavePassive:N,onTouchendPassive:N}),r.h(Xe,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(b.value===!0?"":" q-tabs__arrow--faded"),name:e.rightIcon||o.iconSet.tabs[e.vertical===!0?"down":"right"],onMousedownPassive:le,onTouchstartPassive:le,onMouseupPassive:N,onMouseleavePassive:N,onTouchendPassive:N})])}}),by=0,gf=["click","keydown"],bf={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${by++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function pf(e,t,n,a){const o=r.inject(ld,et);if(o===et)return console.error("QTab/QRouteTab component needs to be child of QTabs"),et;const{proxy:l}=r.getCurrentInstance(),i=r.ref(null),s=r.ref(null),u=r.ref(null),d=r.computed(()=>e.disable===!0||e.ripple===!1?!1:Object.assign({keyCodes:[13,32],early:!0},e.ripple===!0?{}:e.ripple)),c=r.computed(()=>o.currentModel.value===e.name),g=r.computed(()=>"q-tab relative-position self-stretch flex flex-center text-center"+(c.value===!0?" q-tab--active"+(o.tabProps.value.activeClass?" "+o.tabProps.value.activeClass:"")+(o.tabProps.value.activeColor?` text-${o.tabProps.value.activeColor}`:"")+(o.tabProps.value.activeBgColor?` bg-${o.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(e.icon&&e.label&&o.tabProps.value.inlineLabel===!1?" q-tab--full":"")+(e.noCaps===!0||o.tabProps.value.noCaps===!0?" q-tab--no-caps":"")+(e.disable===!0?" disabled":" q-focusable q-hoverable cursor-pointer")+(a!==void 0?a.linkClass.value:"")),v=r.computed(()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(o.tabProps.value.inlineLabel===!0?"row no-wrap q-tab__content--inline":"column")+(e.contentClass!==void 0?` ${e.contentClass}`:"")),h=r.computed(()=>e.disable===!0||o.hasFocus.value===!0||c.value===!1&&o.hasActiveTab.value===!0?-1:e.tabindex||0);function f(y,m){if(m!==!0&&y?.qAvoidFocus!==!0&&i.value?.focus(),e.disable===!0){a?.hasRouterLink.value===!0&&Fe(y);return}if(a===void 0){o.updateModel({name:e.name}),n("click",y);return}if(a.hasRouterLink.value===!0){const w=(E={})=>{let C;const R=E.to===void 0||un(E.to,e.to)===!0?o.avoidRouteWatcher=_a():null;return a.navigateToRouterLink(y,{...E,returnRouterError:!0}).catch(H=>{C=H}).then(H=>{if(R===o.avoidRouteWatcher&&(o.avoidRouteWatcher=!1,C===void 0&&(H===void 0||H.message?.startsWith("Avoided redundant navigation")===!0)&&o.updateModel({name:e.name})),E.returnRouterError===!0)return C!==void 0?Promise.reject(C):H})};n("click",y,w),y.defaultPrevented!==!0&&w();return}n("click",y)}function _(y){Vt(y,[13,32])?f(y,!0):rr(y)!==!0&&y.keyCode>=35&&y.keyCode<=40&&y.altKey!==!0&&y.metaKey!==!0&&o.onKbdNavigate(y.keyCode,l.$el)===!0&&Fe(y),n("keydown",y)}function p(){const y=o.tabProps.value.narrowIndicator,m=[],w=r.h("div",{ref:u,class:["q-tab__indicator",o.tabProps.value.indicatorClass]});e.icon!==void 0&&m.push(r.h(Xe,{class:"q-tab__icon",name:e.icon})),e.label!==void 0&&m.push(r.h("div",{class:"q-tab__label"},e.label)),e.alert!==!1&&m.push(e.alertIcon!==void 0?r.h(Xe,{class:"q-tab__alert-icon",color:e.alert!==!0?e.alert:void 0,name:e.alertIcon}):r.h("div",{class:"q-tab__alert"+(e.alert!==!0?` text-${e.alert}`:"")})),y===!0&&m.push(w);const E=[r.h("div",{class:"q-focus-helper",tabindex:-1,ref:i}),r.h("div",{class:v.value},ht(t.default,m))];return y===!1&&E.push(w),E}const b={name:r.computed(()=>e.name),rootRef:s,tabIndicatorRef:u,routeData:a};r.onBeforeUnmount(()=>{o.unregisterTab(b)}),r.onMounted(()=>{o.registerTab(b)});function S(y,m){const w={ref:s,class:g.value,tabindex:h.value,role:"tab","aria-selected":c.value===!0?"true":"false","aria-disabled":e.disable===!0?"true":void 0,onClick:f,onKeydown:_,...m};return r.withDirectives(r.h(y,w,p()),[[So,d.value]])}return{renderTab:S,$tabs:o}}var Ea=ie({name:"QTab",props:bf,emits:gf,setup(e,{slots:t,emit:n}){const{renderTab:a}=pf(e,t,n);return()=>a("div")}}),py=ie({name:"QTabPanels",props:{...Hi,...Ye},emits:ji,setup(e,{slots:t}){const n=r.getCurrentInstance(),a=Ge(e,n.proxy.$q),{updatePanelsList:o,getPanelContent:l,panelDirectives:i}=Ui(),s=r.computed(()=>"q-tab-panels q-panel-parent"+(a.value===!0?" q-tab-panels--dark q-dark":""));return()=>(o(t),en("div",{class:s.value},l(),"pan",e.swipeable,()=>i.value))}}),Zi=ie({name:"QTabPanel",props:zi,setup(e,{slots:t}){return()=>r.h("div",{class:"q-tab-panel",role:"tabpanel"},Te(t.default))}}),yf=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,_f=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Sf=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Bo=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,Fo=/^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)\)$/,zo={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>yf.test(e),hexaColor:e=>_f.test(e),hexOrHexaColor:e=>Sf.test(e),rgbColor:e=>Bo.test(e),rgbaColor:e=>Fo.test(e),rgbOrRgbaColor:e=>Bo.test(e)||Fo.test(e),hexOrRgbColor:e=>yf.test(e)||Bo.test(e),hexaOrRgbaColor:e=>_f.test(e)||Fo.test(e),anyColor:e=>Sf.test(e)||Bo.test(e)||Fo.test(e)},yy=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function wf({r:e,g:t,b:n,a}){const o=a!==void 0;if(e=Math.round(e),t=Math.round(t),n=Math.round(n),e>255||t>255||n>255||o&&a>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return a=o?(Math.round(255*a/100)|256).toString(16).slice(1):"","#"+(n|t<<8|e<<16|1<<24).toString(16).slice(1)+a}function Cf({r:e,g:t,b:n,a}){return`rgb${a!==void 0?"a":""}(${e},${t},${n}${a!==void 0?","+a/100:""})`}function kf(e){if(typeof e!="string")throw new TypeError("Expected a string");e=e.replace(/^#/,""),e.length===3?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e.length===4&&(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((t&255)/2.55)}:{r:t>>16,g:t>>8&255,b:t&255}}function xf({h:e,s:t,v:n,a}){let o,l,i;t=t/100,n=n/100,e=e/360;const s=Math.floor(e*6),u=e*6-s,d=n*(1-t),c=n*(1-u*t),g=n*(1-(1-u)*t);switch(s%6){case 0:o=n,l=g,i=d;break;case 1:o=c,l=n,i=d;break;case 2:o=d,l=n,i=g;break;case 3:o=d,l=c,i=n;break;case 4:o=g,l=d,i=n;break;case 5:o=n,l=d,i=c;break}return{r:Math.round(o*255),g:Math.round(l*255),b:Math.round(i*255),a}}function Vi({r:e,g:t,b:n,a}){const o=Math.max(e,t,n),l=Math.min(e,t,n),i=o-l,s=o===0?0:i/o,u=o/255;let d;switch(o){case l:d=0;break;case e:d=t-n+i*(t<n?6:0),d/=6*i;break;case t:d=n-e+i*2,d/=6*i;break;case n:d=e-t+i*4,d/=6*i;break}return{h:Math.round(d*360),s:Math.round(s*100),v:Math.round(u*100),a}}function Ef(e){if(typeof e!="string")throw new TypeError("Expected a string");const t=e.replace(/ /g,""),n=yy.exec(t);if(n===null)return kf(t);const a={r:Math.min(255,parseInt(n[2],10)),g:Math.min(255,parseInt(n[3],10)),b:Math.min(255,parseInt(n[4],10))};if(n[1]){const o=parseFloat(n[5]);a.a=Math.min(1,isNaN(o)===!0?1:o)*100}return a}function _y(e){if(typeof e!="string"&&(!e||e.r===void 0))throw new TypeError("Expected a string or a {r, g, b} object as color");const t=typeof e=="string"?Ef(e):e,n=t.r/255,a=t.g/255,o=t.b/255,l=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),i=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),s=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4);return .2126*l+.7152*i+.0722*s}var Sy=["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)"],Tf="M5 5 h10 v10 h-10 v-10 z",wy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAH0lEQVQoU2NkYGAwZkAFZ5G5jPRRgOYEVDeB3EBjBQBOZwTVugIGyAAAAABJRU5ErkJggg==";ie({name:"QColor",props:{...Ye,...nn,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(e,{emit:t}){const{proxy:n}=r.getCurrentInstance(),{$q:a}=n,o=Ge(e,a),{getCache:l}=wa(),i=r.ref(null),s=r.ref(null),u=r.computed(()=>e.formatModel==="auto"?null:e.formatModel.indexOf("hex")!==-1),d=r.computed(()=>e.formatModel==="auto"?null:e.formatModel.indexOf("a")!==-1),c=r.ref(e.formatModel==="auto"?e.modelValue===void 0||e.modelValue===null||e.modelValue===""||e.modelValue.startsWith("#")?"hex":"rgb":e.formatModel.startsWith("hex")?"hex":"rgb"),g=r.ref(e.defaultView),v=r.ref(M(e.modelValue||e.defaultValue)),h=r.computed(()=>e.disable!==!0&&e.readonly!==!0),f=r.computed(()=>e.modelValue===void 0||e.modelValue===null||e.modelValue===""||e.modelValue.startsWith("#")),_=r.computed(()=>u.value!==null?u.value:f.value),p=r.computed(()=>({type:"hidden",name:e.name,value:v.value[_.value===!0?"hex":"rgb"]})),b=zn(p),S=r.computed(()=>d.value!==null?d.value:v.value.a!==void 0),y=r.computed(()=>({backgroundColor:v.value.rgb||"#000"})),m=r.computed(()=>`q-color-picker__header-content q-color-picker__header-content--${(v.value.a!==void 0&&v.value.a<65?!0:_y(v.value)>.4)?"light":"dark"}`),w=r.computed(()=>({background:`hsl(${v.value.h},100%,50%)`})),E=r.computed(()=>({top:`${100-v.value.v}%`,[a.lang.rtl===!0?"right":"left"]:`${v.value.s}%`})),C=r.computed(()=>e.palette!==void 0&&e.palette.length!==0?e.palette:Sy),R=r.computed(()=>"q-color-picker"+(e.bordered===!0?" q-color-picker--bordered":"")+(e.square===!0?" q-color-picker--square no-border-radius":"")+(e.flat===!0?" q-color-picker--flat no-shadow":"")+(e.disable===!0?" disabled":"")+(o.value===!0?" q-color-picker--dark q-dark":"")),H=r.computed(()=>e.disable===!0?{"aria-disabled":"true"}:{}),q=r.computed(()=>[[rn,Z,void 0,{prevent:!0,stop:!0,mouse:!0}]]);r.watch(()=>e.modelValue,G=>{const ge=M(G||e.defaultValue);ge.hex!==v.value.hex&&(v.value=ge)}),r.watch(()=>e.defaultValue,G=>{if(!e.modelValue&&G){const ge=M(G);ge.hex!==v.value.hex&&(v.value=ge)}});function T(G,ge){v.value.hex=wf(G),v.value.rgb=Cf(G),v.value.r=G.r,v.value.g=G.g,v.value.b=G.b,v.value.a=G.a;const pe=v.value[_.value===!0?"hex":"rgb"];t("update:modelValue",pe),ge===!0&&t("change",pe)}function M(G){const ge=d.value!==void 0?d.value:e.formatModel==="auto"?null:e.formatModel.indexOf("a")!==-1;if(typeof G!="string"||G.length===0||zo.anyColor(G.replace(/ /g,""))!==!0)return{h:0,s:0,v:0,r:0,g:0,b:0,a:ge===!0?100:void 0,hex:void 0,rgb:void 0};const pe=Ef(G);return ge===!0&&pe.a===void 0&&(pe.a=100),pe.hex=wf(pe),pe.rgb=Cf(pe),Object.assign(pe,Vi(pe))}function O(G,ge,pe){const we=i.value;if(we===null)return;const Ae=we.clientWidth,fe=we.clientHeight,L=we.getBoundingClientRect();let I=Math.min(Ae,Math.max(0,G-L.left));a.lang.rtl===!0&&(I=Ae-I);const te=Math.min(fe,Math.max(0,ge-L.top)),K=Math.round(100*I/Ae),X=Math.round(100*Math.max(0,Math.min(1,-(te/fe)+1))),se=xf({h:v.value.h,s:K,v:X,a:S.value===!0?v.value.a:void 0});v.value.s=K,v.value.v=X,T(se,pe)}function k(G,ge){const pe=Math.round(G),we=xf({h:pe,s:v.value.s,v:v.value.v,a:S.value===!0?v.value.a:void 0});v.value.h=pe,T(we,ge)}function A(G){k(G,!0)}function D(G,ge,pe,we,Ae){if(we!==void 0&&ft(we),!/^[0-9]+$/.test(G)){Ae===!0&&n.$forceUpdate();return}const fe=Math.floor(Number(G));if(fe<0||fe>pe){Ae===!0&&n.$forceUpdate();return}const L={r:ge==="r"?fe:v.value.r,g:ge==="g"?fe:v.value.g,b:ge==="b"?fe:v.value.b,a:S.value===!0?ge==="a"?fe:v.value.a:void 0};if(ge!=="a"){const I=Vi(L);v.value.h=I.h,v.value.s=I.s,v.value.v=I.v}if(T(L,Ae),Ae!==!0&&we?.target.selectionEnd!==void 0){const I=we.target.selectionEnd;r.nextTick(()=>{we.target.setSelectionRange(I,I)})}}function z(G,ge){let pe;const we=G.target.value;if(ft(G),c.value==="hex"){if(we.length!==(S.value===!0?9:7)||!/^#[0-9A-Fa-f]+$/.test(we))return!0;pe=kf(we)}else{let fe;if(we.endsWith(")"))if(S.value!==!0&&we.startsWith("rgb(")){if(fe=we.substring(4,we.length-1).split(",").map(L=>parseInt(L,10)),fe.length!==3||!/^rgb\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3}\)$/.test(we))return!0}else if(S.value===!0&&we.startsWith("rgba(")){if(fe=we.substring(5,we.length-1).split(","),fe.length!==4||!/^rgba\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/.test(we))return!0;for(let I=0;I<3;I++){const te=parseInt(fe[I],10);if(te<0||te>255)return!0;fe[I]=te}const L=parseFloat(fe[3]);if(L<0||L>1)return!0;fe[3]=L}else return!0;else return!0;if(fe[0]<0||fe[0]>255||fe[1]<0||fe[1]>255||fe[2]<0||fe[2]>255||S.value===!0&&(fe[3]<0||fe[3]>1))return!0;pe={r:fe[0],g:fe[1],b:fe[2],a:S.value===!0?fe[3]*100:void 0}}const Ae=Vi(pe);if(v.value.h=Ae.h,v.value.s=Ae.s,v.value.v=Ae.v,T(pe,ge),ge!==!0){const fe=G.target.selectionEnd;r.nextTick(()=>{G.target.setSelectionRange(fe,fe)})}}function F(G){const ge=M(G),pe={r:ge.r,g:ge.g,b:ge.b,a:ge.a};pe.a===void 0&&(pe.a=v.value.a),v.value.h=ge.h,v.value.s=ge.s,v.value.v=ge.v,T(pe,!0)}function Z(G){G.isFinal?O(G.position.left,G.position.top,!0):he(G)}const he=kd(G=>{O(G.position.left,G.position.top)},20);function $(G){O(G.pageX-window.pageXOffset,G.pageY-window.pageYOffset,!0)}function x(G){O(G.pageX-window.pageXOffset,G.pageY-window.pageYOffset)}function Y(G){s.value!==null&&(s.value.$el.style.opacity=G?1:0)}function B(G){c.value=G}function le(){const G=[];return e.noHeaderTabs!==!0&&G.push(r.h(hf,{class:"q-color-picker__header-tabs",modelValue:c.value,dense:!0,align:"justify","onUpdate:modelValue":B},()=>[r.h(Ea,{label:"HEX"+(S.value===!0?"A":""),name:"hex",ripple:!1}),r.h(Ea,{label:"RGB"+(S.value===!0?"A":""),name:"rgb",ripple:!1})])),G.push(r.h("div",{class:"q-color-picker__header-banner row flex-center no-wrap"},[r.h("input",{class:"fit",value:v.value[c.value],...h.value!==!0?{readonly:!0}:{},...l("topIn",{onInput:ge=>{Y(z(ge)===!0)},onChange:ft,onBlur:ge=>{z(ge,!0)===!0&&n.$forceUpdate(),Y(!1)}})}),r.h(Xe,{ref:s,class:"q-color-picker__error-icon absolute no-pointer-events",name:a.iconSet.type.negative})])),r.h("div",{class:"q-color-picker__header relative-position overflow-hidden"},[r.h("div",{class:"q-color-picker__header-bg absolute-full"}),r.h("div",{class:m.value,style:y.value},G)])}function N(){return r.h(py,{modelValue:g.value,animated:!0},()=>[r.h(Zi,{class:"q-color-picker__spectrum-tab overflow-hidden",name:"spectrum"},W),r.h(Zi,{class:"q-pa-md q-color-picker__tune-tab",name:"tune"},ve),r.h(Zi,{class:"q-color-picker__palette-tab",name:"palette"},_e)])}function U(G){g.value=G}function ue(){return r.h("div",{class:"q-color-picker__footer relative-position overflow-hidden"},[r.h(hf,{class:"absolute-full",modelValue:g.value,dense:!0,align:"justify","onUpdate:modelValue":U},()=>[r.h(Ea,{icon:a.iconSet.colorPicker.spectrum,name:"spectrum",ripple:!1}),r.h(Ea,{icon:a.iconSet.colorPicker.tune,name:"tune",ripple:!1}),r.h(Ea,{icon:a.iconSet.colorPicker.palette,name:"palette",ripple:!1})])])}function W(){const G={ref:i,class:"q-color-picker__spectrum non-selectable relative-position cursor-pointer"+(h.value!==!0?" readonly":""),style:w.value,...h.value===!0?{onClick:$,onMousedown:x}:{}},ge=[r.h("div",{style:{paddingBottom:"100%"}}),r.h("div",{class:"q-color-picker__spectrum-white absolute-full"}),r.h("div",{class:"q-color-picker__spectrum-black absolute-full"}),r.h("div",{class:"absolute",style:E.value},[v.value.hex!==void 0?r.h("div",{class:"q-color-picker__spectrum-circle"}):null])],pe=[r.h(Qr,{class:"q-color-picker__hue non-selectable",modelValue:v.value.h,min:0,max:360,trackSize:"8px",innerTrackColor:"transparent",selectionColor:"transparent",readonly:h.value!==!0,thumbPath:Tf,"onUpdate:modelValue":k,onChange:A})];return S.value===!0&&pe.push(r.h(Qr,{class:"q-color-picker__alpha non-selectable",modelValue:v.value.a,min:0,max:100,trackSize:"8px",trackColor:"white",innerTrackColor:"transparent",selectionColor:"transparent",trackImg:wy,readonly:h.value!==!0,hideSelection:!0,thumbPath:Tf,...l("alphaSlide",{"onUpdate:modelValue":we=>D(we,"a",100),onChange:we=>D(we,"a",100,void 0,!0)})})),[en("div",G,ge,"spec",h.value,()=>q.value),r.h("div",{class:"q-color-picker__sliders"},pe)]}function ve(){return[r.h("div",{class:"row items-center no-wrap"},[r.h("div","R"),r.h(Qr,{modelValue:v.value.r,min:0,max:255,color:"red",dark:o.value,readonly:h.value!==!0,...l("rSlide",{"onUpdate:modelValue":G=>D(G,"r",255),onChange:G=>D(G,"r",255,void 0,!0)})}),r.h("input",{value:v.value.r,maxlength:3,readonly:h.value!==!0,onChange:ft,...l("rIn",{onInput:G=>D(G.target.value,"r",255,G),onBlur:G=>D(G.target.value,"r",255,G,!0)})})]),r.h("div",{class:"row items-center no-wrap"},[r.h("div","G"),r.h(Qr,{modelValue:v.value.g,min:0,max:255,color:"green",dark:o.value,readonly:h.value!==!0,...l("gSlide",{"onUpdate:modelValue":G=>D(G,"g",255),onChange:G=>D(G,"g",255,void 0,!0)})}),r.h("input",{value:v.value.g,maxlength:3,readonly:h.value!==!0,onChange:ft,...l("gIn",{onInput:G=>D(G.target.value,"g",255,G),onBlur:G=>D(G.target.value,"g",255,G,!0)})})]),r.h("div",{class:"row items-center no-wrap"},[r.h("div","B"),r.h(Qr,{modelValue:v.value.b,min:0,max:255,color:"blue",readonly:h.value!==!0,dark:o.value,...l("bSlide",{"onUpdate:modelValue":G=>D(G,"b",255),onChange:G=>D(G,"b",255,void 0,!0)})}),r.h("input",{value:v.value.b,maxlength:3,readonly:h.value!==!0,onChange:ft,...l("bIn",{onInput:G=>D(G.target.value,"b",255,G),onBlur:G=>D(G.target.value,"b",255,G,!0)})})]),S.value===!0?r.h("div",{class:"row items-center no-wrap"},[r.h("div","A"),r.h(Qr,{modelValue:v.value.a,color:"grey",readonly:h.value!==!0,dark:o.value,...l("aSlide",{"onUpdate:modelValue":G=>D(G,"a",100),onChange:G=>D(G,"a",100,void 0,!0)})}),r.h("input",{value:v.value.a,maxlength:3,readonly:h.value!==!0,onChange:ft,...l("aIn",{onInput:G=>D(G.target.value,"a",100,G),onBlur:G=>D(G.target.value,"a",100,G,!0)})})]):null]}function _e(){const G=ge=>r.h("div",{class:"q-color-picker__cube col-auto",style:{backgroundColor:ge},...h.value===!0?l("palette#"+ge,{onClick:()=>{F(ge)}}):{}});return[r.h("div",{class:"row items-center q-color-picker__palette-rows"+(h.value===!0?" q-color-picker__palette-rows--editable":"")},C.value.map(G))]}return()=>{const G=[N()];return e.name!==void 0&&e.disable!==!0&&b(G,"push"),e.noHeader!==!0&&G.unshift(le()),e.noFooter!==!0&&G.push(ue()),r.h("div",{class:R.value,...H.value},G)}}});var Hn=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function Cy(e,t,n){return Object.prototype.toString.call(e)==="[object Date]"&&(n=e.getDate(),t=e.getMonth()+1,e=e.getFullYear()),Ty(es(e,t,n))}function qf(e,t,n){return Mf(Ey(e,t,n))}function ky(e){return xy(e)===0}function Ho(e,t){return t<=6?31:t<=11||ky(e)?30:29}function xy(e){const t=Hn.length;let n=Hn[0],a,o,l,i,s;if(e<n||e>=Hn[t-1])throw new Error("Invalid Jalaali year "+e);for(s=1;s<t&&(a=Hn[s],o=a-n,!(e<a));s+=1)n=a;return i=e-n,o-i<6&&(i=i-o+ct(o+4,33)*33),l=Wt(Wt(i+1,33)-1,4),l===-1&&(l=4),l}function Of(e,t){const n=Hn.length,a=e+621;let o=-14,l=Hn[0],i,s,u,d,c;if(e<l||e>=Hn[n-1])throw new Error("Invalid Jalaali year "+e);for(c=1;c<n&&(i=Hn[c],s=i-l,!(e<i));c+=1)o=o+ct(s,33)*8+ct(Wt(s,33),4),l=i;d=e-l,o=o+ct(d,33)*8+ct(Wt(d,33)+3,4),Wt(s,33)===4&&s-d===4&&(o+=1);const g=ct(a,4)-ct((ct(a,100)+1)*3,4)-150,v=20+o-g;return t||(s-d<6&&(d=d-s+ct(s+4,33)*33),u=Wt(Wt(d+1,33)-1,4),u===-1&&(u=4)),{leap:u,gy:a,march:v}}function Ey(e,t,n){const a=Of(e,!0);return es(a.gy,3,a.march)+(t-1)*31-ct(t,7)*(t-7)+n-1}function Ty(e){const t=Mf(e).gy;let n=t-621,a,o,l;const i=Of(n,!1),s=es(t,3,i.march);if(l=e-s,l>=0){if(l<=185)return o=1+ct(l,31),a=Wt(l,31)+1,{jy:n,jm:o,jd:a};l-=186}else n-=1,l+=179,i.leap===1&&(l+=1);return o=7+ct(l,30),a=Wt(l,30)+1,{jy:n,jm:o,jd:a}}function es(e,t,n){let a=ct((e+ct(t-8,6)+100100)*1461,4)+ct(153*Wt(t+9,12)+2,5)+n-34840408;return a=a-ct(ct(e+100100+ct(t-8,6),100)*3,4)+752,a}function Mf(e){let t=4*e+139361631;t=t+ct(ct(4*e+183187720,146097)*3,4)*4-3908;const n=ct(Wt(t,1461),4)*5+308,a=ct(Wt(n,153),5)+1,o=Wt(ct(n,153),12)+1;return{gy:ct(t,1461)-100100+ct(8-o,6),gm:o,gd:a}}function ct(e,t){return~~(e/t)}function Wt(e,t){return e-~~(e/t)*t}var qy=["gregorian","persian"],jo={mask:{type:String},locale:Object,calendar:{type:String,validator:e=>qy.includes(e),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},Lf=["update:modelValue"];function Mn(e){return e.year+"/"+Je(e.month)+"/"+Je(e.day)}function Af(e,t){const n=r.computed(()=>e.disable!==!0&&e.readonly!==!0),a=r.computed(()=>n.value===!0?0:-1),o=r.computed(()=>{const s=[];return e.color!==void 0&&s.push(`bg-${e.color}`),e.textColor!==void 0&&s.push(`text-${e.textColor}`),s.join(" ")});function l(){return e.locale!==void 0?{...t.lang.date,...e.locale}:t.lang.date}function i(s){const u=new Date,d=s===!0?null:0;if(e.calendar==="persian"){const c=Cy(u);return{year:c.jy,month:c.jm,day:c.jd}}return{year:u.getFullYear(),month:u.getMonth()+1,day:u.getDate(),hour:d,minute:d,second:d,millisecond:d}}return{editable:n,tabindex:a,headerClass:o,getLocale:l,getCurrentDate:i}}var Rf=864e5,Oy=36e5,ts=6e4,Pf="YYYY-MM-DDTHH:mm:ss.SSSZ",My=/\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|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,Ly=/(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|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,ns={};function Ay(e,t){const n="("+t.days.join("|")+")",a=e+n;if(ns[a]!==void 0)return ns[a];const o="("+t.daysShort.join("|")+")",l="("+t.months.join("|")+")",i="("+t.monthsShort.join("|")+")",s={};let u=0;const d=e.replace(Ly,g=>{switch(u++,g){case"YY":return s.YY=u,"(-?\\d{1,2})";case"YYYY":return s.YYYY=u,"(-?\\d{1,4})";case"M":return s.M=u,"(\\d{1,2})";case"Mo":return s.M=u++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return s.M=u,"(\\d{2})";case"MMM":return s.MMM=u,i;case"MMMM":return s.MMMM=u,l;case"D":return s.D=u,"(\\d{1,2})";case"Do":return s.D=u++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return s.D=u,"(\\d{2})";case"H":return s.H=u,"(\\d{1,2})";case"HH":return s.H=u,"(\\d{2})";case"h":return s.h=u,"(\\d{1,2})";case"hh":return s.h=u,"(\\d{2})";case"m":return s.m=u,"(\\d{1,2})";case"mm":return s.m=u,"(\\d{2})";case"s":return s.s=u,"(\\d{1,2})";case"ss":return s.s=u,"(\\d{2})";case"S":return s.S=u,"(\\d{1})";case"SS":return s.S=u,"(\\d{2})";case"SSS":return s.S=u,"(\\d{3})";case"A":return s.A=u,"(AM|PM)";case"a":return s.a=u,"(am|pm)";case"aa":return s.aa=u,"(a\\.m\\.|p\\.m\\.)";case"ddd":return o;case"dddd":return n;case"Q":case"d":case"E":return"(\\d{1})";case"do":return u++,"(\\d{1}(st|nd|rd|th))";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"DDDo":return u++,"(\\d{1,3}(st|nd|rd|th))";case"w":return"(\\d{1,2})";case"wo":return u++,"(\\d{1,2}(st|nd|rd|th))";case"ww":return"(\\d{2})";case"Z":return s.Z=u,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return s.ZZ=u,"(Z|[+-]\\d{2}\\d{2})";case"X":return s.X=u,"(-?\\d+)";case"x":return s.x=u,"(-?\\d{4,})";default:return u--,g[0]==="["&&(g=g.substring(1,g.length-1)),g.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),c={map:s,regex:new RegExp("^"+d)};return ns[a]=c,c}function Nf(e,t){return e!==void 0?e:t!==void 0?t.date:mi.date}function If(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),o=Math.floor(a/60),l=a%60;return n+Je(o)+t+Je(l)}function Ry(e,t,n){let a=e.getFullYear(),o=e.getMonth();const l=e.getDate();return t.year!==void 0&&(a+=n*t.year,delete t.year),t.month!==void 0&&(o+=n*t.month,delete t.month),e.setDate(1),e.setMonth(2),e.setFullYear(a),e.setMonth(o),e.setDate(Math.min(l,ls(e))),t.date!==void 0&&(e.setDate(e.getDate()+n*t.date),delete t.date),e}function Py(e,t,n){const a=t.year!==void 0?t.year:e[`get${n}FullYear`](),o=t.month!==void 0?t.month-1:e[`get${n}Month`](),l=new Date(a,o+1,0).getDate(),i=Math.min(l,t.date!==void 0?t.date:e[`get${n}Date`]());return e[`set${n}Date`](1),e[`set${n}Month`](2),e[`set${n}FullYear`](a),e[`set${n}Month`](o),e[`set${n}Date`](i),delete t.year,delete t.month,delete t.date,e}function rs(e,t,n){const a=Df(t),o=new Date(e),l=a.year!==void 0||a.month!==void 0||a.date!==void 0?Ry(o,a,n):o;for(const i in a){const s=s0(i);l[`set${s}`](l[`get${s}`]()+n*a[i])}return l}function Df(e){const t={...e};return e.years!==void 0&&(t.year=e.years,delete t.years),e.months!==void 0&&(t.month=e.months,delete t.months),e.days!==void 0&&(t.date=e.days,delete t.days),e.day!==void 0&&(t.date=e.day,delete t.day),e.hour!==void 0&&(t.hours=e.hour,delete t.hour),e.minute!==void 0&&(t.minutes=e.minute,delete t.minute),e.second!==void 0&&(t.seconds=e.second,delete t.second),e.millisecond!==void 0&&(t.milliseconds=e.millisecond,delete t.millisecond),t}function $f(e,t,n){const a=Df(t),o=n===!0?"UTC":"",l=new Date(e),i=a.year!==void 0||a.month!==void 0||a.date!==void 0?Py(l,a,o):l;for(const s in a){const u=s.charAt(0).toUpperCase()+s.slice(1);i[`set${o}${u}`](a[s])}return i}function Ny(e,t,n){const a=Wr(e,t,n),o=new Date(a.year,a.month===null?null:a.month-1,a.day===null?1:a.day,a.hour,a.minute,a.second,a.millisecond),l=o.getTimezoneOffset();return a.timezoneOffset===null||a.timezoneOffset===l?o:rs(o,{minutes:a.timezoneOffset-l},1)}function Wr(e,t,n,a,o){const l={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(o!==void 0&&Object.assign(l,o),e==null||e===""||typeof e!="string")return l;t===void 0&&(t=Pf);const i=Nf(n,Vc.props),s=i.months,u=i.monthsShort,{regex:d,map:c}=Ay(t,i),g=e.match(d);if(g===null)return l;let v="";if(c.X!==void 0||c.x!==void 0){const h=parseInt(g[c.X!==void 0?c.X:c.x],10);if(isNaN(h)===!0||h<0)return l;const f=new Date(h*(c.X!==void 0?1e3:1));l.year=f.getFullYear(),l.month=f.getMonth()+1,l.day=f.getDate(),l.hour=f.getHours(),l.minute=f.getMinutes(),l.second=f.getSeconds(),l.millisecond=f.getMilliseconds()}else{if(c.YYYY!==void 0)l.year=parseInt(g[c.YYYY],10);else if(c.YY!==void 0){const h=parseInt(g[c.YY],10);l.year=h<0?h:2e3+h}if(c.M!==void 0){if(l.month=parseInt(g[c.M],10),l.month<1||l.month>12)return l}else c.MMM!==void 0?l.month=u.indexOf(g[c.MMM])+1:c.MMMM!==void 0&&(l.month=s.indexOf(g[c.MMMM])+1);if(c.D!==void 0){if(l.day=parseInt(g[c.D],10),l.year===null||l.month===null||l.day<1)return l;const h=a!=="persian"?new Date(l.year,l.month,0).getDate():Ho(l.year,l.month);if(l.day>h)return l}c.H!==void 0?l.hour=parseInt(g[c.H],10)%24:c.h!==void 0&&(l.hour=parseInt(g[c.h],10)%12,(c.A&&g[c.A]==="PM"||c.a&&g[c.a]==="pm"||c.aa&&g[c.aa]==="p.m.")&&(l.hour+=12),l.hour=l.hour%24),c.m!==void 0&&(l.minute=parseInt(g[c.m],10)%60),c.s!==void 0&&(l.second=parseInt(g[c.s],10)%60),c.S!==void 0&&(l.millisecond=parseInt(g[c.S],10)*10**(3-g[c.S].length)),(c.Z!==void 0||c.ZZ!==void 0)&&(v=c.Z!==void 0?g[c.Z].replace(":",""):g[c.ZZ],l.timezoneOffset=(v[0]==="+"?-1:1)*(60*v.slice(1,3)+1*v.slice(3,5)))}return l.dateHash=Je(l.year,4)+"/"+Je(l.month)+"/"+Je(l.day),l.timeHash=Je(l.hour)+":"+Je(l.minute)+":"+Je(l.second)+v,l}function Iy(e){return typeof e=="number"?!0:isNaN(Date.parse(e))===!1}function Dy(e,t){return $f(new Date,e,t)}function $y(e){const t=new Date(e).getDay();return t===0?7:t}function Uo(e){const t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);const n=new Date(t.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);const a=t.getTimezoneOffset()-n.getTimezoneOffset();t.setHours(t.getHours()-a);const o=(t-n)/(Rf*7);return 1+Math.floor(o)}function By(e){return e.getFullYear()*1e4+e.getMonth()*100+e.getDate()}function as(e,t){const n=new Date(e);return t===!0?By(n):n.getTime()}function Fy(e,t,n,a={}){const o=as(t,a.onlyDate),l=as(n,a.onlyDate),i=as(e,a.onlyDate);return(i>o||a.inclusiveFrom===!0&&i===o)&&(i<l||a.inclusiveTo===!0&&i===l)}function zy(e,t){return rs(e,t,1)}function Hy(e,t){return rs(e,t,-1)}function yn(e,t,n){const a=new Date(e),o=`set${n===!0?"UTC":""}`;switch(t){case"year":case"years":a[`${o}Month`](0);case"month":case"months":a[`${o}Date`](1);case"day":case"days":case"date":a[`${o}Hours`](0);case"hour":case"hours":a[`${o}Minutes`](0);case"minute":case"minutes":a[`${o}Seconds`](0);case"second":case"seconds":a[`${o}Milliseconds`](0)}return a}function jy(e,t,n){const a=new Date(e),o=`set${n===!0?"UTC":""}`;switch(t){case"year":case"years":a[`${o}Month`](11);case"month":case"months":a[`${o}Date`](ls(a));case"day":case"days":case"date":a[`${o}Hours`](23);case"hour":case"hours":a[`${o}Minutes`](59);case"minute":case"minutes":a[`${o}Seconds`](59);case"second":case"seconds":a[`${o}Milliseconds`](999)}return a}function Uy(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(n=>{t=Math.max(t,new Date(n))}),t}function Qy(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(n=>{t=Math.min(t,new Date(n))}),t}function Qo(e,t,n){return(e.getTime()-e.getTimezoneOffset()*ts-(t.getTime()-t.getTimezoneOffset()*ts))/n}function os(e,t,n="days"){const a=new Date(e),o=new Date(t);switch(n){case"years":case"year":return a.getFullYear()-o.getFullYear();case"months":case"month":return(a.getFullYear()-o.getFullYear())*12+a.getMonth()-o.getMonth();case"days":case"day":case"date":return Qo(yn(a,"day"),yn(o,"day"),Rf);case"hours":case"hour":return Qo(yn(a,"hour"),yn(o,"hour"),Oy);case"minutes":case"minute":return Qo(yn(a,"minute"),yn(o,"minute"),ts);case"seconds":case"second":return Qo(yn(a,"second"),yn(o,"second"),1e3)}}function Wo(e){return os(e,yn(e,"year"),"days")+1}function Wy(e){return va(e)===!0?"date":typeof e=="number"?"number":"string"}function Ky(e,t,n){const a=new Date(e);if(t){const o=new Date(t);if(a<o)return o}if(n){const o=new Date(n);if(a>o)return o}return a}function Yy(e,t,n){const a=new Date(e),o=new Date(t);if(n===void 0)return a.getTime()===o.getTime();switch(n){case"second":case"seconds":if(a.getSeconds()!==o.getSeconds())return!1;case"minute":case"minutes":if(a.getMinutes()!==o.getMinutes())return!1;case"hour":case"hours":if(a.getHours()!==o.getHours())return!1;case"day":case"days":case"date":if(a.getDate()!==o.getDate())return!1;case"month":case"months":if(a.getMonth()!==o.getMonth())return!1;case"year":case"years":if(a.getFullYear()!==o.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${n}`)}return!0}function ls(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function Kr(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`}var Bf={YY(e,t,n){const a=this.YYYY(e,t,n)%100;return a>=0?Je(a):"-"+Je(Math.abs(a))},YYYY(e,t,n){return n??e.getFullYear()},M(e){return e.getMonth()+1},Mo(e){return Kr(e.getMonth()+1)},MM(e){return Je(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 Kr(this.Q(e))},D(e){return e.getDate()},Do(e){return Kr(e.getDate())},DD(e){return Je(e.getDate())},DDD(e){return Wo(e)},DDDo(e){return Kr(Wo(e))},DDDD(e){return Je(Wo(e),3)},d(e){return e.getDay()},do(e){return Kr(e.getDay())},dd(e,t){return t.days[e.getDay()].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 Uo(e)},wo(e){return Kr(Uo(e))},ww(e){return Je(Uo(e))},H(e){return e.getHours()},HH(e){return Je(e.getHours())},h(e){const t=e.getHours();return t===0?12:t>12?t%12:t},hh(e){return Je(this.h(e))},m(e){return e.getMinutes()},mm(e){return Je(e.getMinutes())},s(e){return e.getSeconds()},ss(e){return Je(e.getSeconds())},S(e){return Math.floor(e.getMilliseconds()/100)},SS(e){return Je(Math.floor(e.getMilliseconds()/10))},SSS(e){return Je(e.getMilliseconds(),3)},A(e){return e.getHours()<12?"AM":"PM"},a(e){return e.getHours()<12?"am":"pm"},aa(e){return e.getHours()<12?"a.m.":"p.m."},Z(e,t,n,a){const o=a??e.getTimezoneOffset();return If(o,":")},ZZ(e,t,n,a){const o=a??e.getTimezoneOffset();return If(o)},X(e){return Math.floor(e.getTime()/1e3)},x(e){return e.getTime()}};function is(e,t,n,a,o){if(e!==0&&!e||e===1/0||e===-1/0)return;const l=new Date(e);if(isNaN(l))return;t===void 0&&(t=Pf);const i=Nf(n,Vc.props);return t.replace(My,(s,u)=>s in Bf?Bf[s](l,i,a,o):u===void 0?s:u.split("\\]").join("]"))}function Gy(e){return va(e)===!0?new Date(e.getTime()):e}var ss={isValid:Iy,extractDate:Ny,buildDate:Dy,getDayOfWeek:$y,getWeekOfYear:Uo,isBetweenDates:Fy,addToDate:zy,subtractFromDate:Hy,adjustDate:$f,startOfDate:yn,endOfDate:jy,getMaxDate:Uy,getMinDate:Qy,getDateDiff:os,getDayOfYear:Wo,inferDateFormat:Wy,getDateBetween:Ky,isSameDate:Yy,daysInMonth:ls,formatDate:is,clone:Gy},Ln=20,Xy=["Calendar","Years","Months"],Ff=e=>Xy.includes(e),us=e=>/^-?[\d]+\/[0-1]\d$/.test(e),Yr=" — ";function jn(e){return e.year+"/"+Je(e.month)}ie({name:"QDate",props:{...jo,...nn,...Ye,modelValue:{required:!0,validator:e=>typeof e=="string"||Array.isArray(e)===!0||Object(e)===e||e===null},multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{...jo.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:us},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:us},navigationMaxYearMonth:{type:String,validator:us},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:Ff}},emits:[...Lf,"rangeStart","rangeEnd","navigation"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=Ge(e,o),{getCache:i}=wa(),{tabindex:s,headerClass:u,getLocale:d,getCurrentDate:c}=Af(e,o);let g;const v=Sa(e),h=zn(v),f=r.ref(null),_=r.ref(Qe()),p=r.ref(d()),b=r.computed(()=>Qe()),S=r.computed(()=>d()),y=r.computed(()=>c()),m=r.ref(ee(_.value,p.value)),w=r.ref(e.defaultView),E=r.computed(()=>o.lang.rtl===!0?"right":"left"),C=r.ref(E.value),R=r.ref(E.value),H=m.value.year,q=r.ref(H-H%Ln-(H<0?Ln:0)),T=r.ref(null),M=r.computed(()=>{const P=e.landscape===!0?"landscape":"portrait";return`q-date q-date--${P} q-date--${P}-${e.minimal===!0?"minimal":"standard"}`+(l.value===!0?" q-date--dark q-dark":"")+(e.bordered===!0?" q-date--bordered":"")+(e.square===!0?" q-date--square no-border-radius":"")+(e.flat===!0?" q-date--flat no-shadow":"")+(e.disable===!0?" disabled":e.readonly===!0?" q-date--readonly":"")}),O=r.computed(()=>e.color||"primary"),k=r.computed(()=>e.textColor||"white"),A=r.computed(()=>e.emitImmediately===!0&&e.multiple!==!0&&e.range!==!0),D=r.computed(()=>Array.isArray(e.modelValue)===!0?e.modelValue:e.modelValue!==null&&e.modelValue!==void 0?[e.modelValue]:[]),z=r.computed(()=>D.value.filter(P=>typeof P=="string").map(P=>je(P,_.value,p.value)).filter(P=>P.dateHash!==null&&P.day!==null&&P.month!==null&&P.year!==null)),F=r.computed(()=>{const P=j=>je(j,_.value,p.value);return D.value.filter(j=>$t(j)===!0&&j.from!==void 0&&j.to!==void 0).map(j=>({from:P(j.from),to:P(j.to)})).filter(j=>j.from.dateHash!==null&&j.to.dateHash!==null&&j.from.dateHash<j.to.dateHash)}),Z=r.computed(()=>e.calendar!=="persian"?P=>new Date(P.year,P.month-1,P.day):P=>{const j=qf(P.year,P.month,P.day);return new Date(j.gy,j.gm-1,j.gd)}),he=r.computed(()=>e.calendar==="persian"?Mn:(P,j,oe)=>is(new Date(P.year,P.month-1,P.day,P.hour,P.minute,P.second,P.millisecond),j===void 0?_.value:j,oe===void 0?p.value:oe,P.year,P.timezoneOffset)),$=r.computed(()=>z.value.length+F.value.reduce((P,j)=>P+1+os(Z.value(j.to),Z.value(j.from)),0)),x=r.computed(()=>{if(e.title!==void 0&&e.title!==null&&e.title.length!==0)return e.title;if(T.value!==null){const oe=T.value.init,Se=Z.value(oe);return p.value.daysShort[Se.getDay()]+", "+p.value.monthsShort[oe.month-1]+" "+oe.day+Yr+"?"}if($.value===0)return Yr;if($.value>1)return`${$.value} ${p.value.pluralDay}`;const P=z.value[0],j=Z.value(P);return isNaN(j.valueOf())===!0?Yr:p.value.headerTitle!==void 0?p.value.headerTitle(j,P):p.value.daysShort[j.getDay()]+", "+p.value.monthsShort[P.month-1]+" "+P.day}),Y=r.computed(()=>z.value.concat(F.value.map(j=>j.from)).sort((j,oe)=>j.year-oe.year||j.month-oe.month)[0]),B=r.computed(()=>z.value.concat(F.value.map(j=>j.to)).sort((j,oe)=>oe.year-j.year||oe.month-j.month)[0]),le=r.computed(()=>{if(e.subtitle!==void 0&&e.subtitle!==null&&e.subtitle.length!==0)return e.subtitle;if($.value===0)return Yr;if($.value>1){const P=Y.value,j=B.value,oe=p.value.monthsShort;return oe[P.month-1]+(P.year!==j.year?" "+P.year+Yr+oe[j.month-1]+" ":P.month!==j.month?Yr+oe[j.month-1]:"")+" "+j.year}return z.value[0].year}),N=r.computed(()=>{const P=[o.iconSet.datetime.arrowLeft,o.iconSet.datetime.arrowRight];return o.lang.rtl===!0?P.reverse():P}),U=r.computed(()=>e.firstDayOfWeek!==void 0?Number(e.firstDayOfWeek):p.value.firstDayOfWeek),ue=r.computed(()=>{const P=p.value.daysShort,j=U.value;return j>0?P.slice(j,7).concat(P.slice(0,j)):P}),W=r.computed(()=>{const P=m.value;return e.calendar!=="persian"?new Date(P.year,P.month,0).getDate():Ho(P.year,P.month)}),ve=r.computed(()=>typeof e.eventColor=="function"?e.eventColor:()=>e.eventColor),_e=r.computed(()=>{if(e.navigationMinYearMonth===void 0)return null;const P=e.navigationMinYearMonth.split("/");return{year:parseInt(P[0],10),month:parseInt(P[1],10)}}),G=r.computed(()=>{if(e.navigationMaxYearMonth===void 0)return null;const P=e.navigationMaxYearMonth.split("/");return{year:parseInt(P[0],10),month:parseInt(P[1],10)}}),ge=r.computed(()=>{const P={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return _e.value!==null&&_e.value.year>=m.value.year&&(P.year.prev=!1,_e.value.year===m.value.year&&_e.value.month>=m.value.month&&(P.month.prev=!1)),G.value!==null&&G.value.year<=m.value.year&&(P.year.next=!1,G.value.year===m.value.year&&G.value.month<=m.value.month&&(P.month.next=!1)),P}),pe=r.computed(()=>{const P={};return z.value.forEach(j=>{const oe=jn(j);P[oe]===void 0&&(P[oe]=[]),P[oe].push(j.day)}),P}),we=r.computed(()=>{const P={};return F.value.forEach(j=>{const oe=jn(j.from),Se=jn(j.to);if(P[oe]===void 0&&(P[oe]=[]),P[oe].push({from:j.from.day,to:oe===Se?j.to.day:void 0,range:j}),oe<Se){let Ce;const{year:We,month:Me}=j.from,$e=Me<12?{year:We,month:Me+1}:{year:We+1,month:1};for(;(Ce=jn($e))<=Se;)P[Ce]===void 0&&(P[Ce]=[]),P[Ce].push({from:void 0,to:Ce===Se?j.to.day:void 0,range:j}),$e.month++,$e.month>12&&($e.year++,$e.month=1)}}),P}),Ae=r.computed(()=>{if(T.value===null)return;const{init:P,initHash:j,final:oe,finalHash:Se}=T.value,[Ce,We]=j<=Se?[P,oe]:[oe,P],Me=jn(Ce),$e=jn(We);if(Me!==fe.value&&$e!==fe.value)return;const Ve={};return Me===fe.value?(Ve.from=Ce.day,Ve.includeFrom=!0):Ve.from=1,$e===fe.value?(Ve.to=We.day,Ve.includeTo=!0):Ve.to=W.value,Ve}),fe=r.computed(()=>jn(m.value)),L=r.computed(()=>{const P={};if(e.options===void 0){for(let oe=1;oe<=W.value;oe++)P[oe]=!0;return P}const j=typeof e.options=="function"?e.options:oe=>e.options.includes(oe);for(let oe=1;oe<=W.value;oe++){const Se=fe.value+"/"+Je(oe);P[oe]=j(Se)}return P}),I=r.computed(()=>{const P={};if(e.events===void 0)for(let j=1;j<=W.value;j++)P[j]=!1;else{const j=typeof e.events=="function"?e.events:oe=>e.events.includes(oe);for(let oe=1;oe<=W.value;oe++){const Se=fe.value+"/"+Je(oe);P[oe]=j(Se)===!0&&ve.value(Se)}}return P}),te=r.computed(()=>{let P,j;const{year:oe,month:Se}=m.value;if(e.calendar!=="persian")P=new Date(oe,Se-1,1),j=new Date(oe,Se-1,0).getDate();else{const Ce=qf(oe,Se,1);P=new Date(Ce.gy,Ce.gm-1,Ce.gd);let We=Se-1,Me=oe;We===0&&(We=12,Me--),j=Ho(Me,We)}return{days:P.getDay()-U.value-1,endDay:j}}),K=r.computed(()=>{const P=[],{days:j,endDay:oe}=te.value,Se=j<0?j+7:j;if(Se<6)for(let Me=oe-Se;Me<=oe;Me++)P.push({i:Me,fill:!0});const Ce=P.length;for(let Me=1;Me<=W.value;Me++){const $e={i:Me,event:I.value[Me],classes:[]};L.value[Me]===!0&&($e.in=!0,$e.flat=!0),P.push($e)}if(pe.value[fe.value]!==void 0&&pe.value[fe.value].forEach(Me=>{const $e=Ce+Me-1;Object.assign(P[$e],{selected:!0,unelevated:!0,flat:!1,color:O.value,textColor:k.value})}),we.value[fe.value]!==void 0&&we.value[fe.value].forEach(Me=>{if(Me.from!==void 0){const $e=Ce+Me.from-1,Ve=Ce+(Me.to||W.value)-1;for(let an=$e;an<=Ve;an++)Object.assign(P[an],{range:Me.range,unelevated:!0,color:O.value,textColor:k.value});Object.assign(P[$e],{rangeFrom:!0,flat:!1}),Me.to!==void 0&&Object.assign(P[Ve],{rangeTo:!0,flat:!1})}else if(Me.to!==void 0){const $e=Ce+Me.to-1;for(let Ve=Ce;Ve<=$e;Ve++)Object.assign(P[Ve],{range:Me.range,unelevated:!0,color:O.value,textColor:k.value});Object.assign(P[$e],{flat:!1,rangeTo:!0})}else{const $e=Ce+W.value-1;for(let Ve=Ce;Ve<=$e;Ve++)Object.assign(P[Ve],{range:Me.range,unelevated:!0,color:O.value,textColor:k.value})}}),Ae.value!==void 0){const Me=Ce+Ae.value.from-1,$e=Ce+Ae.value.to-1;for(let Ve=Me;Ve<=$e;Ve++)P[Ve].color=O.value,P[Ve].editRange=!0;Ae.value.includeFrom===!0&&(P[Me].editRangeFrom=!0),Ae.value.includeTo===!0&&(P[$e].editRangeTo=!0)}m.value.year===y.value.year&&m.value.month===y.value.month&&(P[Ce+y.value.day-1].today=!0);const We=P.length%7;if(We>0){const Me=7-We;for(let $e=1;$e<=Me;$e++)P.push({i:$e,fill:!0})}return P.forEach(Me=>{let $e="q-date__calendar-item ";Me.fill===!0?$e+="q-date__calendar-item--fill":($e+=`q-date__calendar-item--${Me.in===!0?"in":"out"}`,Me.range!==void 0&&($e+=` q-date__range${Me.rangeTo===!0?"-to":Me.rangeFrom===!0?"-from":""}`),Me.editRange===!0&&($e+=` q-date__edit-range${Me.editRangeFrom===!0?"-from":""}${Me.editRangeTo===!0?"-to":""}`),(Me.range!==void 0||Me.editRange===!0)&&($e+=` text-${Me.color}`)),Me.classes=$e}),P}),X=r.computed(()=>e.disable===!0?{"aria-disabled":"true"}:{});r.watch(()=>e.modelValue,P=>{if(g===JSON.stringify(P))g=0;else{const j=ee(_.value,p.value);nt(j.year,j.month,j)}}),r.watch(w,()=>{f.value!==null&&a.$el.contains(document.activeElement)===!0&&f.value.focus()}),r.watch(()=>m.value.year+"|"+m.value.month,()=>{n("navigation",{year:m.value.year,month:m.value.month})}),r.watch(b,P=>{ye(P,p.value,"mask"),_.value=P}),r.watch(S,P=>{ye(_.value,P,"locale"),p.value=P});function se(P){g=JSON.stringify(P)}function me(){const{year:P,month:j,day:oe}=y.value,Se={...m.value,year:P,month:j,day:oe},Ce=pe.value[jn(Se)];(Ce===void 0||Ce.includes(Se.day)===!1)&&Pn(Se),be(Se.year,Se.month)}function J(P){Ff(P)===!0&&(w.value=P)}function ae(P,j){["month","year"].includes(P)&&(P==="month"?V:de)(j===!0?-1:1)}function be(P,j){w.value="Calendar",nt(P,j)}function ke(P,j){if(e.range===!1||!P){T.value=null;return}const oe=Object.assign({...m.value},P),Se=j!==void 0?Object.assign({...m.value},j):oe;T.value={init:oe,initHash:Mn(oe),final:Se,finalHash:Mn(Se)},be(oe.year,oe.month)}function Qe(){return e.calendar==="persian"?"YYYY/MM/DD":e.mask}function je(P,j,oe){return Wr(P,j,oe,e.calendar,{hour:0,minute:0,second:0,millisecond:0})}function ee(P,j){const oe=Array.isArray(e.modelValue)===!0?e.modelValue:e.modelValue?[e.modelValue]:[];if(oe.length===0)return ce();const Se=oe[oe.length-1],Ce=je(Se.from!==void 0?Se.from:Se,P,j);return Ce.dateHash===null?ce():Ce}function ce(){let P,j;if(e.defaultYearMonth!==void 0){const oe=e.defaultYearMonth.split("/");P=parseInt(oe[0],10),j=parseInt(oe[1],10)}else{const oe=y.value!==void 0?y.value:c();P=oe.year,j=oe.month}return{year:P,month:j,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:P+"/"+Je(j)+"/01"}}function V(P){let j=m.value.year,oe=Number(m.value.month)+P;oe===13?(oe=1,j++):oe===0&&(oe=12,j--),nt(j,oe),A.value===!0&&Ft("month")}function de(P){const j=Number(m.value.year)+P;nt(j,m.value.month),A.value===!0&&Ft("year")}function xe(P){nt(P,m.value.month),w.value=e.defaultView==="Years"?"Months":"Calendar",A.value===!0&&Ft("year")}function Be(P){nt(m.value.year,P),w.value="Calendar",A.value===!0&&Ft("month")}function Le(P,j){(pe.value[j]?.includes(P.day)===!0?re:Pn)(P)}function Ue(P){return{year:P.year,month:P.month,day:P.day}}function nt(P,j,oe){if(_e.value!==null&&P<=_e.value.year&&((j<_e.value.month||P<_e.value.year)&&(j=_e.value.month),P=_e.value.year),G.value!==null&&P>=G.value.year&&((j>G.value.month||P>G.value.year)&&(j=G.value.month),P=G.value.year),oe!==void 0){const{hour:Ce,minute:We,second:Me,millisecond:$e,timezoneOffset:Ve,timeHash:an}=oe;Object.assign(m.value,{hour:Ce,minute:We,second:Me,millisecond:$e,timezoneOffset:Ve,timeHash:an})}const Se=P+"/"+Je(j)+"/01";Se!==m.value.dateHash&&(C.value=m.value.dateHash<Se==(o.lang.rtl!==!0)?"left":"right",P!==m.value.year&&(R.value=C.value),r.nextTick(()=>{q.value=P-P%Ln-(P<0?Ln:0),Object.assign(m.value,{year:P,month:j,day:1,dateHash:Se})}))}function pt(P,j,oe){const Se=P!==null&&P.length===1&&e.multiple===!1?P[0]:P,{reason:Ce,details:We}=Wn(j,oe);se(Se),n("update:modelValue",Se,Ce,We)}function Ft(P){const j=z.value[0]!==void 0&&z.value[0].dateHash!==null?{...z.value[0]}:{...m.value};r.nextTick(()=>{j.year=m.value.year,j.month=m.value.month;const oe=e.calendar!=="persian"?new Date(j.year,j.month,0).getDate():Ho(j.year,j.month);j.day=Math.min(Math.max(1,j.day),oe);const Se=Kt(j),{details:Ce}=Wn("",j);se(Se),n("update:modelValue",Se,P,Ce)})}function Wn(P,j){return j.from!==void 0?{reason:`${P}-range`,details:{...Ue(j.target),from:Ue(j.from),to:Ue(j.to)}}:{reason:`${P}-day`,details:Ue(j)}}function Kt(P,j,oe){return P.from!==void 0?{from:he.value(P.from,j,oe),to:he.value(P.to,j,oe)}:he.value(P,j,oe)}function Pn(P){let j;if(e.multiple===!0)if(P.from!==void 0){const oe=Mn(P.from),Se=Mn(P.to),Ce=z.value.filter(Me=>Me.dateHash<oe||Me.dateHash>Se),We=F.value.filter(({from:Me,to:$e})=>$e.dateHash<oe||Me.dateHash>Se);j=Ce.concat(We).concat(P).map(Me=>Kt(Me))}else{const oe=D.value.slice();oe.push(Kt(P)),j=oe}else j=Kt(P);pt(j,"add",P)}function re(P){if(e.noUnset===!0)return;let j=null;if(e.multiple===!0&&Array.isArray(e.modelValue)===!0){const oe=Kt(P);P.from!==void 0?j=e.modelValue.filter(Se=>Se.from!==void 0?Se.from!==oe.from&&Se.to!==oe.to:!0):j=e.modelValue.filter(Se=>Se!==oe),j.length===0&&(j=null)}pt(j,"remove",P)}function ye(P,j,oe){const Se=z.value.concat(F.value).map(We=>Kt(We,P,j)).filter(We=>We.from!==void 0?We.from.dateHash!==null&&We.to.dateHash!==null:We.dateHash!==null),Ce=(e.multiple===!0?Se:Se[0])||null;se(Ce),n("update:modelValue",Ce,oe)}function Pe(){if(e.minimal!==!0)return r.h("div",{class:"q-date__header "+u.value},[r.h("div",{class:"relative-position"},[r.h(r.Transition,{name:"q-transition--fade"},()=>r.h("div",{key:"h-yr-"+le.value,class:"q-date__header-subtitle q-date__header-link "+(w.value==="Years"?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...i("vY",{onClick(){w.value="Years"},onKeyup(P){P.keyCode===13&&(w.value="Years")}})},[le.value]))]),r.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[r.h("div",{class:"relative-position col"},[r.h(r.Transition,{name:"q-transition--fade"},()=>r.h("div",{key:"h-sub"+x.value,class:"q-date__header-title-label q-date__header-link "+(w.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...i("vC",{onClick(){w.value="Calendar"},onKeyup(P){P.keyCode===13&&(w.value="Calendar")}})},[x.value]))]),e.todayBtn===!0?r.h(Ze,{class:"q-date__header-today self-start",icon:o.iconSet.datetime.today,"aria-label":o.lang.date.today,flat:!0,size:"sm",round:!0,tabindex:s.value,onClick:me}):null])])}function Re({label:P,type:j,key:oe,dir:Se,goTo:Ce,boundaries:We,cls:Me}){return[r.h("div",{class:"row items-center q-date__arrow"},[r.h(Ze,{round:!0,dense:!0,size:"sm",flat:!0,icon:N.value[0],"aria-label":j==="Years"?o.lang.date.prevYear:o.lang.date.prevMonth,tabindex:s.value,disable:We.prev===!1,...i("go-#"+j,{onClick(){Ce(-1)}})})]),r.h("div",{class:"relative-position overflow-hidden flex flex-center"+Me},[r.h(r.Transition,{name:"q-transition--jump-"+Se},()=>r.h("div",{key:oe},[r.h(Ze,{flat:!0,dense:!0,noCaps:!0,label:P,tabindex:s.value,...i("view#"+j,{onClick:()=>{w.value=j}})})]))]),r.h("div",{class:"row items-center q-date__arrow"},[r.h(Ze,{round:!0,dense:!0,size:"sm",flat:!0,icon:N.value[1],"aria-label":j==="Years"?o.lang.date.nextYear:o.lang.date.nextMonth,tabindex:s.value,disable:We.next===!1,...i("go+#"+j,{onClick(){Ce(1)}})})])]}const ze={Calendar:()=>[r.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[r.h("div",{class:"q-date__navigation row items-center no-wrap"},Re({label:p.value.months[m.value.month-1],type:"Months",key:m.value.month,dir:C.value,goTo:V,boundaries:ge.value.month,cls:" col"}).concat(Re({label:m.value.year,type:"Years",key:m.value.year,dir:R.value,goTo:de,boundaries:ge.value.year,cls:""}))),r.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},ue.value.map(P=>r.h("div",{class:"q-date__calendar-item"},[r.h("div",P)]))),r.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[r.h(r.Transition,{name:"q-transition--slide-"+C.value},()=>r.h("div",{key:fe.value,class:"q-date__calendar-days fit"},K.value.map(P=>r.h("div",{class:P.classes},[P.in===!0?r.h(Ze,{class:P.today===!0?"q-date__today":"",dense:!0,flat:P.flat,unelevated:P.unelevated,color:P.color,textColor:P.textColor,label:P.i,tabindex:s.value,...i("day#"+P.i,{onClick:()=>{dt(P.i)},onMouseover:()=>{st(P.i)}})},P.event!==!1?()=>r.h("div",{class:"q-date__event bg-"+P.event}):null):r.h("div",""+P.i)]))))])])],Months(){const P=m.value.year===y.value.year,j=Se=>_e.value!==null&&m.value.year===_e.value.year&&_e.value.month>Se||G.value!==null&&m.value.year===G.value.year&&G.value.month<Se,oe=p.value.monthsShort.map((Se,Ce)=>{const We=m.value.month===Ce+1;return r.h("div",{class:"q-date__months-item flex flex-center"},[r.h(Ze,{class:P===!0&&y.value.month===Ce+1?"q-date__today":null,flat:We!==!0,label:Se,unelevated:We,color:We===!0?O.value:null,textColor:We===!0?k.value:null,tabindex:s.value,disable:j(Ce+1),...i("month#"+Ce,{onClick:()=>{Be(Ce+1)}})})])});return e.yearsInMonthView===!0&&oe.unshift(r.h("div",{class:"row no-wrap full-width"},[Re({label:m.value.year,type:"Years",key:m.value.year,dir:R.value,goTo:de,boundaries:ge.value.year,cls:" col"})])),r.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},oe)},Years(){const P=q.value,j=P+Ln,oe=[],Se=Ce=>_e.value!==null&&_e.value.year>Ce||G.value!==null&&G.value.year<Ce;for(let Ce=P;Ce<=j;Ce++){const We=m.value.year===Ce;oe.push(r.h("div",{class:"q-date__years-item flex flex-center"},[r.h(Ze,{key:"yr"+Ce,class:y.value.year===Ce?"q-date__today":null,flat:!We,label:Ce,dense:!0,unelevated:We,color:We===!0?O.value:null,textColor:We===!0?k.value:null,tabindex:s.value,disable:Se(Ce),...i("yr#"+Ce,{onClick:()=>{xe(Ce)}})})]))}return r.h("div",{class:"q-date__view q-date__years flex flex-center"},[r.h("div",{class:"col-auto"},[r.h(Ze,{round:!0,dense:!0,flat:!0,icon:N.value[0],"aria-label":o.lang.date.prevRangeYears(Ln),tabindex:s.value,disable:Se(P),...i("y-",{onClick:()=>{q.value-=Ln}})})]),r.h("div",{class:"q-date__years-content col self-stretch row items-center"},oe),r.h("div",{class:"col-auto"},[r.h(Ze,{round:!0,dense:!0,flat:!0,icon:N.value[1],"aria-label":o.lang.date.nextRangeYears(Ln),tabindex:s.value,disable:Se(j),...i("y+",{onClick:()=>{q.value+=Ln}})})])])}};function dt(P){const j={...m.value,day:P};if(e.range===!1){Le(j,fe.value);return}if(T.value===null){const oe=K.value.find(Ce=>Ce.fill!==!0&&Ce.i===P);if(e.noUnset!==!0&&oe.range!==void 0){re({target:j,from:oe.range.from,to:oe.range.to});return}if(oe.selected===!0){re(j);return}const Se=Mn(j);T.value={init:j,initHash:Se,final:j,finalHash:Se},n("rangeStart",Ue(j))}else{const oe=T.value.initHash,Se=Mn(j),Ce=oe<=Se?{from:T.value.init,to:j}:{from:j,to:T.value.init};T.value=null,Pn(oe===Se?j:{target:j,...Ce}),n("rangeEnd",{from:Ue(Ce.from),to:Ue(Ce.to)})}}function st(P){if(T.value!==null){const j={...m.value,day:P};Object.assign(T.value,{final:j,finalHash:Mn(j)})}}return Object.assign(a,{setToday:me,setView:J,offsetCalendar:ae,setCalendarTo:be,setEditingRange:ke}),()=>{const P=[r.h("div",{class:"q-date__content col relative-position"},[r.h(r.Transition,{name:"q-transition--fade"},ze[w.value])])],j=Te(t.default);return j!==void 0&&P.push(r.h("div",{class:"q-date__actions"},j)),e.name!==void 0&&e.disable!==!0&&h(P,"push"),r.h("div",{class:M.value,...X.value},[Pe(),r.h("div",{ref:f,class:"q-date__main col column",tabindex:-1},P)])}}});function zf(e,t,n){function a(){}return r.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:a,addToHistory(){}}}var Ta=0,cs,ds,qa,fs=!1,Hf,jf,Uf,mr=null;function Jy(e){Zy(e)&&Fe(e)}function Zy(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=o0(e),n=e.shiftKey&&!e.deltaX,a=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),o=n||a?e.deltaY:e.deltaX;for(let l=0;l<t.length;l++){const i=t[l];if(j0(i,a))return a?o<0&&i.scrollTop===0?!0:o>0&&i.scrollTop+i.clientHeight===i.scrollHeight:o<0&&i.scrollLeft===0?!0:o>0&&i.scrollLeft+i.clientWidth===i.scrollWidth}return!0}function Qf(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Ko(e){fs!==!0&&(fs=!0,requestAnimationFrame(()=>{fs=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:a}=document.scrollingElement;(qa===void 0||t!==window.innerHeight)&&(qa=n-t,document.scrollingElement.scrollTop=a),a>qa&&(document.scrollingElement.scrollTop-=Math.ceil((a-qa)/8))}))}function Wf(e){const t=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:a,overflowX:o}=window.getComputedStyle(t);cs=xo(window),ds=Fn(window),Hf=t.style.left,jf=t.style.top,Uf=window.location.href,t.style.left=`-${cs}px`,t.style.top=`-${ds}px`,o!=="hidden"&&(o==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),a!=="hidden"&&(a==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,He.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Ko,lt.passiveCapture),window.visualViewport.addEventListener("scroll",Ko,lt.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",Qf,lt.passiveCapture))}He.is.desktop===!0&&He.is.mac===!0&&window[`${e}EventListener`]("wheel",Jy,lt.notPassive),e==="remove"&&(He.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",Ko,lt.passiveCapture),window.visualViewport.removeEventListener("scroll",Ko,lt.passiveCapture)):window.removeEventListener("scroll",Qf,lt.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=Hf,t.style.top=jf,window.location.href===Uf&&window.scrollTo(cs,ds),qa=void 0)}function vs(e){let t="add";if(e===!0){if(Ta++,mr!==null){clearTimeout(mr),mr=null;return}if(Ta>1)return}else{if(Ta===0||(Ta--,Ta>0))return;if(t="remove",He.is.ios===!0&&He.is.nativeMobile===!0){mr!==null&&clearTimeout(mr),mr=setTimeout(()=>{Wf(t),mr=null},100);return}}Wf(t)}function Kf(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,vs(t))}}}var Yo=0,Vy={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"},Yf={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Go=ie({name:"QDialog",inheritAttrs:!1,props:{...Ir,...ir,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...Dr,"shake","click","escapeKey"],setup(e,{slots:t,emit:n,attrs:a}){const o=r.getCurrentInstance(),l=r.ref(null),i=r.ref(!1),s=r.ref(!1);let u=null,d=null,c,g;const v=r.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:h}=Kf(),{registerTimeout:f}=On(),{registerTick:_,removeTick:p}=Hr(),{transitionProps:b,transitionStyle:S}=Co(e,()=>Yf[e.position][0],()=>Yf[e.position][1]),y=r.computed(()=>S.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:m,hidePortal:w,portalIsAccessible:E,renderPortal:C}=Mi(o,l,Y,"dialog"),{hide:R}=$r({showing:i,hideOnRouteChange:v,handleShow:O,handleHide:k,processOnMount:!0});zf(i);const H=r.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${Vy[e.position]}`+(s.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),q=r.computed(()=>i.value===!0&&e.seamless!==!0),T=r.computed(()=>e.autoClose===!0?{onClick:he}:{}),M=r.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${q.value===!0?"modal":"seamless"}`,a.class]);r.watch(()=>e.maximized,B=>{i.value===!0&&Z(B)}),r.watch(q,B=>{h(B),B===!0?(Hd(x),Fd(z)):(Pi(x),qo(z))});function O(B){d=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,Z(e.maximized),m(),s.value=!0,e.noFocus!==!0?(document.activeElement?.blur(),_(A)):p(),f(()=>{if(o.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:le,bottom:N}=document.activeElement.getBoundingClientRect(),{innerHeight:U}=window,ue=window.visualViewport!==void 0?window.visualViewport.height:U;le>0&&N>ue/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-ue,N>=U?1/0:Math.ceil(document.scrollingElement.scrollTop+N-ue/2))),document.activeElement.scrollIntoView()}g=!0,l.value.click(),g=!1}m(!0),s.value=!1,n("show",B)},e.transitionDuration)}function k(B){p(),F(!0),s.value=!0,w(),d!==null&&(((B?.type.indexOf("key")===0?d.closest('[tabindex]:not([tabindex^="-"])'):void 0)||d).focus(),d=null),f(()=>{w(!0),s.value=!1,n("hide",B)},e.transitionDuration)}function A(B){Br(()=>{let le=l.value;if(le!==null){if(B!==void 0){const N=le.querySelector(B);if(N!==null){N.focus({preventScroll:!0});return}}le.contains(document.activeElement)!==!0&&(le=le.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||le.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||le.querySelector("[autofocus], [data-autofocus]")||le,le.focus({preventScroll:!0}))}})}function D(B){B&&typeof B.focus=="function"?B.focus({preventScroll:!0}):A(),n("shake");const le=l.value;le!==null&&(le.classList.remove("q-animate--scale"),le.classList.add("q-animate--scale"),u!==null&&clearTimeout(u),u=setTimeout(()=>{u=null,l.value!==null&&(le.classList.remove("q-animate--scale"),A())},170))}function z(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&D():(n("escapeKey"),R()))}function F(B){u!==null&&(clearTimeout(u),u=null),(B===!0||i.value===!0)&&(Z(!1),e.seamless!==!0&&(h(!1),Pi(x),qo(z))),B!==!0&&(d=null)}function Z(B){B===!0?c!==!0&&(Yo<1&&document.body.classList.add("q-body--dialog"),Yo++,c=!0):c===!0&&(Yo<2&&document.body.classList.remove("q-body--dialog"),Yo--,c=!1)}function he(B){g!==!0&&(R(B),n("click",B))}function $(B){e.persistent!==!0&&e.noBackdropDismiss!==!0?R(B):e.noShake!==!0&&D()}function x(B){e.allowFocusOutside!==!0&&E.value===!0&&Cd(l.value,B.target)!==!0&&A('[tabindex]:not([tabindex="-1"])')}Object.assign(o.proxy,{focus:A,shake:D,__updateRefocusTarget(B){d=B||null}}),r.onBeforeUnmount(F);function Y(){return r.h("div",{role:"dialog","aria-modal":q.value===!0?"true":"false",...a,class:M.value},[r.h(r.Transition,{name:"q-transition--fade",appear:!0},()=>q.value===!0?r.h("div",{class:"q-dialog__backdrop fixed-full",style:y.value,"aria-hidden":"true",tabindex:-1,onClick:$}):null),r.h(r.Transition,b.value,()=>i.value===!0?r.h("div",{ref:l,class:H.value,style:S.value,tabindex:-1,...T.value},Te(t.default)):null)])}return C}}),Gf=150;ie({name:"QDrawer",inheritAttrs:!1,props:{...Ir,...Ye,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},noMiniAnimation:Boolean,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:[...Dr,"onLayout","miniState"],setup(e,{slots:t,emit:n,attrs:a}){const o=r.getCurrentInstance(),{proxy:{$q:l}}=o,i=Ge(e,l),{preventBodyScroll:s}=Kf(),{registerTimeout:u,removeTimeout:d}=On(),c=r.inject(or,et);if(c===et)return console.error("QDrawer needs to be child of QLayout"),et;let g,v=null,h;const f=r.ref(e.behavior==="mobile"||e.behavior!=="desktop"&&c.totalWidth.value<=e.breakpoint),_=r.computed(()=>e.mini===!0&&f.value!==!0),p=r.computed(()=>_.value===!0?e.miniWidth:e.width),b=r.ref(e.showIfAbove===!0&&f.value===!1?!0:e.modelValue===!0),S=r.computed(()=>e.persistent!==!0&&(f.value===!0||F.value===!0));function y(K,X){if(K!==!1&&c.animate(),_e(0),f.value===!0){const se=c.instances[k.value];se?.belowBreakpoint===!0&&se.hide(!1),G(1),c.isContainer.value!==!0&&s(!0)}else G(0),K!==!1&&ge(!1);u(()=>{K!==!1&&ge(!0),X!==!0&&n("show",K)},Gf)}function m(K,X){K!==!1&&c.animate(),G(0),_e(H.value*p.value),fe(),X!==!0?u(()=>{n("hide",K)},Gf):d()}const{show:w,hide:E}=$r({showing:b,hideOnRouteChange:S,handleShow:y,handleHide:m});zf(b);const C={belowBreakpoint:f,hide:E},R=r.computed(()=>e.side==="right"),H=r.computed(()=>(l.lang.rtl===!0?-1:1)*(R.value===!0?1:-1)),q=r.ref(0),T=r.ref(!1),M=r.ref(!1),O=r.ref(p.value*H.value),k=r.computed(()=>R.value===!0?"left":"right"),A=r.computed(()=>b.value===!0&&f.value===!1&&e.overlay===!1?e.miniToOverlay===!0?e.miniWidth:p.value:0),D=r.computed(()=>e.overlay===!0||e.miniToOverlay===!0||c.view.value.indexOf(R.value?"R":"L")!==-1||l.platform.is.ios===!0&&c.isContainer.value===!0),z=r.computed(()=>e.overlay===!1&&b.value===!0&&f.value===!1),F=r.computed(()=>e.overlay===!0&&b.value===!0&&f.value===!1),Z=r.computed(()=>"fullscreen q-drawer__backdrop"+(b.value===!1&&T.value===!1?" hidden":"")),he=r.computed(()=>({backgroundColor:`rgba(0,0,0,${q.value*.4})`})),$=r.computed(()=>R.value===!0?c.rows.value.top[2]==="r":c.rows.value.top[0]==="l"),x=r.computed(()=>R.value===!0?c.rows.value.bottom[2]==="r":c.rows.value.bottom[0]==="l"),Y=r.computed(()=>{const K={};return c.header.space===!0&&$.value===!1&&(D.value===!0?K.top=`${c.header.offset}px`:c.header.space===!0&&(K.top=`${c.header.size}px`)),c.footer.space===!0&&x.value===!1&&(D.value===!0?K.bottom=`${c.footer.offset}px`:c.footer.space===!0&&(K.bottom=`${c.footer.size}px`)),K}),B=r.computed(()=>{const K={width:`${p.value}px`,transform:`translateX(${O.value}px)`};return f.value===!0?K:Object.assign(K,Y.value)}),le=r.computed(()=>"q-drawer__content fit "+(c.isContainer.value!==!0?"scroll":"overflow-auto")),N=r.computed(()=>`q-drawer q-drawer--${e.side}`+(M.value===!0?" q-drawer--mini-animate":"")+(e.bordered===!0?" q-drawer--bordered":"")+(i.value===!0?" q-drawer--dark q-dark":"")+(T.value===!0?" no-transition":b.value===!0?"":" q-layout--prevent-focus")+(f.value===!0?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${_.value===!0?"mini":"standard"}`+(D.value===!0||z.value!==!0?" fixed":"")+(e.overlay===!0||e.miniToOverlay===!0?" q-drawer--on-top":"")+($.value===!0?" q-drawer--top-padding":""))),U=r.computed(()=>{const K=l.lang.rtl===!0?e.side:k.value;return[[rn,we,void 0,{[K]:!0,mouse:!0}]]}),ue=r.computed(()=>{const K=l.lang.rtl===!0?k.value:e.side;return[[rn,Ae,void 0,{[K]:!0,mouse:!0}]]}),W=r.computed(()=>{const K=l.lang.rtl===!0?k.value:e.side;return[[rn,Ae,void 0,{[K]:!0,mouse:!0,mouseAllDir:!0}]]});function ve(){I(f,e.behavior==="mobile"||e.behavior!=="desktop"&&c.totalWidth.value<=e.breakpoint)}r.watch(f,K=>{K===!0?(g=b.value,b.value===!0&&E(!1)):e.overlay===!1&&e.behavior!=="mobile"&&g!==!1&&(b.value===!0?(_e(0),G(0),fe()):w(!1))}),r.watch(()=>e.side,(K,X)=>{c.instances[X]===C&&(c.instances[X]=void 0,c[X].space=!1,c[X].offset=0),c.instances[K]=C,c[K].size=p.value,c[K].space=z.value,c[K].offset=A.value}),r.watch(c.totalWidth,()=>{(c.isContainer.value===!0||document.qScrollPrevented!==!0)&&ve()}),r.watch(()=>e.behavior+e.breakpoint,ve),r.watch(c.isContainer,K=>{b.value===!0&&s(K!==!0),K===!0&&ve()}),r.watch(c.scrollbarWidth,()=>{_e(b.value===!0?0:void 0)}),r.watch(A,K=>{L("offset",K)}),r.watch(z,K=>{n("onLayout",K),L("space",K)}),r.watch(R,()=>{_e()}),r.watch(p,K=>{_e(),te(e.miniToOverlay,K)}),r.watch(()=>e.miniToOverlay,K=>{te(K,p.value)}),r.watch(()=>l.lang.rtl,()=>{_e()}),r.watch(()=>e.mini,()=>{e.noMiniAnimation||e.modelValue===!0&&(pe(),c.animate())}),r.watch(_,K=>{n("miniState",K)});function _e(K){K===void 0?r.nextTick(()=>{K=b.value===!0?0:p.value,_e(H.value*K)}):(c.isContainer.value===!0&&R.value===!0&&(f.value===!0||Math.abs(K)===p.value)&&(K+=H.value*c.scrollbarWidth.value),O.value=K)}function G(K){q.value=K}function ge(K){const X=K===!0?"remove":c.isContainer.value!==!0?"add":"";X!==""&&document.body.classList[X]("q-body--drawer-toggle")}function pe(){v!==null&&clearTimeout(v),o.proxy&&o.proxy.$el&&o.proxy.$el.classList.add("q-drawer--mini-animate"),M.value=!0,v=setTimeout(()=>{v=null,M.value=!1,o?.proxy?.$el?.classList.remove("q-drawer--mini-animate")},150)}function we(K){if(b.value!==!1)return;const X=p.value,se=at(K.distance.x,0,X);if(K.isFinal===!0){se>=Math.min(75,X)===!0?w():(c.animate(),G(0),_e(H.value*X)),T.value=!1;return}_e((l.lang.rtl===!0?R.value!==!0:R.value)?Math.max(X-se,0):Math.min(0,se-X)),G(at(se/X,0,1)),K.isFirst===!0&&(T.value=!0)}function Ae(K){if(b.value!==!0)return;const X=p.value,se=K.direction===e.side,me=(l.lang.rtl===!0?se!==!0:se)?at(K.distance.x,0,X):0;if(K.isFinal===!0){Math.abs(me)<Math.min(75,X)===!0?(c.animate(),G(1),_e(0)):E(),T.value=!1;return}_e(H.value*me),G(at(1-me/X,0,1)),K.isFirst===!0&&(T.value=!0)}function fe(){s(!1),ge(!0)}function L(K,X){c.update(e.side,K,X)}function I(K,X){K.value!==X&&(K.value=X)}function te(K,X){L("size",K===!0?e.miniWidth:X)}return c.instances[e.side]=C,te(e.miniToOverlay,p.value),L("space",z.value),L("offset",A.value),e.showIfAbove===!0&&e.modelValue!==!0&&b.value===!0&&e["onUpdate:modelValue"]!==void 0&&n("update:modelValue",!0),r.onMounted(()=>{n("onLayout",z.value),n("miniState",_.value),g=e.showIfAbove===!0;const K=()=>{(b.value===!0?y:m)(!1,!0)};if(c.totalWidth.value!==0){r.nextTick(K);return}h=r.watch(c.totalWidth,()=>{h(),h=void 0,b.value===!1&&e.showIfAbove===!0&&f.value===!1?w(!1):K()})}),r.onBeforeUnmount(()=>{h?.(),v!==null&&(clearTimeout(v),v=null),b.value===!0&&fe(),c.instances[e.side]===C&&(c.instances[e.side]=void 0,L("size",0),L("offset",0),L("space",!1))}),()=>{const K=[];f.value===!0&&(e.noSwipeOpen===!1&&K.push(r.withDirectives(r.h("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),U.value)),K.push(en("div",{ref:"backdrop",class:Z.value,style:he.value,"aria-hidden":"true",onClick:E},void 0,"backdrop",e.noSwipeBackdrop!==!0&&b.value===!0,()=>W.value)));const X=_.value===!0&&t.mini!==void 0,se=[r.h("div",{...a,key:""+X,class:[le.value,a.class]},X===!0?t.mini():Te(t.default))];return e.elevated===!0&&b.value===!0&&se.push(r.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),K.push(en("aside",{ref:"content",class:N.value,style:B.value},se,"contentclose",e.noSwipeClose!==!0&&f.value===!0,()=>ue.value)),r.h("div",{class:"q-drawer-container"},K)}}});function Xf(e,t){if(t&&e===t)return null;const n=e.nodeName.toLowerCase();if(["div","li","ul","ol","blockquote"].includes(n)===!0)return e;const a=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,o=a.display;return o==="block"||o==="table"?e:Xf(e.parentNode)}function ms(e,t,n){return!e||e===document.body?!1:n===!0&&e===t||(t===document?document.body:t).contains(e.parentNode)}function Jf(e,t,n){if(n||(n=document.createRange(),n.selectNode(e),n.setStart(e,0)),t.count===0)n.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:(n.setEnd(e,t.count),t.count=0);else for(let a=0;t.count!==0&&a<e.childNodes.length;a++)n=Jf(e.childNodes[a],t,n);return n}var e_=/^https?:\/\//,t_=class{constructor(e,t){this.el=e,this.eVm=t,this._range=null}get selection(){if(this.el){const e=document.getSelection();if(ms(e.anchorNode,this.el,!0)&&ms(e.focusNode,this.el,!0))return e}return null}get hasSelection(){return this.selection!==null?this.selection.toString().length!==0:!1}get range(){const e=this.selection;return e?.rangeCount?e.getRangeAt(0):this._range}get parent(){const e=this.range;if(e!==null){const t=e.startContainer;return t.nodeType===document.ELEMENT_NODE?t:t.parentNode}return null}get blockParent(){const e=this.parent;return e!==null?Xf(e,this.el):null}save(e=this.range){e!==null&&(this._range=e)}restore(e=this._range){const t=document.createRange(),n=document.getSelection();e!==null?(t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),n.removeAllRanges(),n.addRange(t)):(n.selectAllChildren(this.el),n.collapseToEnd())}savePosition(){let e=-1,t;const n=document.getSelection(),a=this.el.parentNode;if(n.focusNode&&ms(n.focusNode,a))for(t=n.focusNode,e=n.focusOffset;t&&t!==a;)t!==this.el&&t.previousSibling?(t=t.previousSibling,e+=t.textContent.length):t=t.parentNode;this.savedPos=e}restorePosition(e=0){if(this.savedPos>0&&this.savedPos<e){const t=window.getSelection(),n=Jf(this.el,{count:this.savedPos});n&&(n.collapse(!1),t.removeAllRanges(),t.addRange(n))}}hasParent(e,t){const n=t?this.parent:this.blockParent;return n!==null?n.nodeName.toLowerCase()===e.toLowerCase():!1}hasParents(e,t,n=this.parent){return n===null?!1:e.includes(n.nodeName.toLowerCase())===!0?!0:t===!0?this.hasParents(e,t,n.parentNode):!1}is(e,t){if(this.selection===null)return!1;switch(e){case"formatBlock":return t==="DIV"&&this.parent===this.el||this.hasParent(t,t==="PRE");case"link":return this.hasParent("A",!0);case"fontSize":return document.queryCommandValue(e)===t;case"fontName":const n=document.queryCommandValue(e);return n===`"${t}"`||n===t;case"fullscreen":return this.eVm.inFullscreen.value;case"viewsource":return this.eVm.isViewingSource.value;case void 0:return!1;default:const a=document.queryCommandState(e);return t!==void 0?a===t:a}}getParentAttribute(e){return this.parent!==null?this.parent.getAttribute(e):null}can(e){if(e==="outdent")return this.hasParents(["blockquote","li"],!0);if(e==="indent")return this.hasParents(["li"],!0);if(e==="link")return this.selection!==null||this.is("link")}apply(e,t,n=wt){if(e==="formatBlock")["BLOCKQUOTE","H1","H2","H3","H4","H5","H6"].includes(t)&&this.is(e,t)&&(e="outdent",t=null),t==="PRE"&&this.is(e,"PRE")&&(t="P");else if(e==="print"){n();const a=window.open();a.document.write(`
|
|
5
|
+
This will fail in production.`);l=Er,l._s.has(e)||(a?pl(e,t,o,l):Zu(e,o,l),process.env.NODE_ENV!=="production"&&(i._pinia=l));const m=l._s.get(e);if(process.env.NODE_ENV!=="production"&&s){const v="__hot:"+e,b=a?pl(v,t,o,l,!0):Zu(v,xn({},o),l,!0);s._hotUpdate(b),delete l.state.value[v],l._s.delete(v)}if(process.env.NODE_ENV!=="production"&&to){const v=r.getCurrentInstance();if(v&&v.proxy&&!s){const b=v.proxy,p="_pStores"in b?b._pStores:b._pStores={};p[e]=m}}return m}return i.$id=e,i}let Ta=null;function wg(e){if(Ta!==null){console.warn("[LinID CoreLib] Pinia store has already been initialized. Re-initialization is ignored.");return}Ta=e}function Bo(){if(Ta===null)throw new Error("[LinID CoreLib] Pinia store is not initialized. Call setPiniaStore() first.");return Ta}const Vu=()=>Cg(Bo()),Cg=Ea("linidZoneStore",{state:()=>({zones:{}}),actions:{register(e,t){this.zones[e]||(this.zones[e]=[]),this.zones[e].push(t)},registerOnce(e,t){this.zones[e]?.some(({plugin:n})=>n===t.plugin)||this.register(e,t)}}}),xg=r.defineComponent({inheritAttrs:!1,__name:"LinidZoneRenderer",props:{zone:{}},setup(e){const t=e,o=(Vu().zones[t.zone]||[]).map(a=>({...a,component:Wu(a.plugin)}));return(a,i)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(o),(l,s)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(l.component),r.mergeProps({key:l.plugin+s},{ref_for:!0},{...a.$attrs,...l.props}),null,16))),128)),r.unref(o).length===0?r.renderSlot(a.$slots,"default",{key:0}):r.createCommentVNode("",!0)],64))}});let Oa=null;function kg(e){if(Oa!==null){console.warn("[LinID CoreLib] Dayjs instance has already been initialized. Re-initialization is ignored.");return}Oa=e}function ec(){if(Oa===null)throw new Error("[LinID CoreLib] Dayjs instance is not initialized. Call setDayjsInstance() first.");return Oa}const Or="YYYY-MM-DD";function tc(){const e=ec();function t(a,i){return typeof a=="string"?e(a,i||Or,!0):e(a)}function n(a,i){const l=a.map(s=>t(s,i)).filter(s=>s.isValid());return l.length===0?null:l.reduce((s,d)=>d.isAfter(s)?d:s)}function o(a,i){const l=a.map(s=>t(s,i)).filter(s=>s.isValid());return l.length===0?null:l.reduce((s,d)=>d.isBefore(s)?d:s)}return{maxDate:n,minDate:o,toDayjs:t}}function Eg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zo={exports:{}},Tg=zo.exports,nc;function Og(){return nc||(nc=1,(function(e,t){(function(n,o){e.exports=o()})(Tg,(function(){function n(c,u){var f=Object.keys(c);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(c);u&&(h=h.filter((function(S){return Object.getOwnPropertyDescriptor(c,S).enumerable}))),f.push.apply(f,h)}return f}function o(c){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?n(Object(f),!0).forEach((function(h){d(c,h,f[h])})):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(f)):n(Object(f)).forEach((function(h){Object.defineProperty(c,h,Object.getOwnPropertyDescriptor(f,h))}))}return c}function a(c){return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},a(c)}function i(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}function l(c,u){for(var f=0;f<u.length;f++){var h=u[f];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(c,E(h.key),h)}}function s(c,u,f){return u&&l(c.prototype,u),Object.defineProperty(c,"prototype",{writable:!1}),c}function d(c,u,f){return(u=E(u))in c?Object.defineProperty(c,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[u]=f,c}function m(c,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(u&&u.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),u&&b(c,u)}function v(c){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},v(c)}function b(c,u){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,h){return f.__proto__=h,f},b(c,u)}function p(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function _(c){var u=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}})();return function(){var f,h=v(c);if(u){var S=v(this).constructor;f=Reflect.construct(h,arguments,S)}else f=h.apply(this,arguments);return(function(O,M){if(M&&(typeof M=="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(O)})(this,f)}}function g(){return g=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(c,u,f){var h=(function(O,M){for(;!Object.prototype.hasOwnProperty.call(O,M)&&(O=v(O))!==null;);return O})(c,u);if(h){var S=Object.getOwnPropertyDescriptor(h,u);return S.get?S.get.call(arguments.length<3?c:f):S.value}},g.apply(this,arguments)}function E(c){var u=(function(f,h){if(typeof f!="object"||f===null)return f;var S=f[Symbol.toPrimitive];if(S!==void 0){var O=S.call(f,h);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)})(c,"string");return typeof u=="symbol"?u:u+""}var C=function(c){return!(!c||!c.Window)&&c instanceof c.Window},w=void 0,T=void 0;function x(c){w=c;var u=c.document.createTextNode("");u.ownerDocument!==c.document&&typeof c.wrap=="function"&&c.wrap(u)===u&&(c=c.wrap(c)),T=c}function y(c){return C(c)?c:(c.ownerDocument||c).defaultView||T.window}typeof window<"u"&&window&&x(window);var q=function(c){return!!c&&a(c)==="object"},L=function(c){return typeof c=="function"},k={window:function(c){return c===T||C(c)},docFrag:function(c){return q(c)&&c.nodeType===11},object:q,func:L,number:function(c){return typeof c=="number"},bool:function(c){return typeof c=="boolean"},string:function(c){return typeof c=="string"},element:function(c){if(!c||a(c)!=="object")return!1;var u=y(c)||T;return/object|function/.test(typeof Element>"u"?"undefined":a(Element))?c instanceof Element||c instanceof u.Element:c.nodeType===1&&typeof c.nodeName=="string"},plainObject:function(c){return q(c)&&!!c.constructor&&/function Object\b/.test(c.constructor.toString())},array:function(c){return q(c)&&c.length!==void 0&&L(c.splice)}};function H(c){var u=c.interaction;if(u.prepared.name==="drag"){var f=u.prepared.axis;f==="x"?(u.coords.cur.page.y=u.coords.start.page.y,u.coords.cur.client.y=u.coords.start.client.y,u.coords.velocity.client.y=0,u.coords.velocity.page.y=0):f==="y"&&(u.coords.cur.page.x=u.coords.start.page.x,u.coords.cur.client.x=u.coords.start.client.x,u.coords.velocity.client.x=0,u.coords.velocity.page.x=0)}}function ee(c){var u=c.iEvent,f=c.interaction;if(f.prepared.name==="drag"){var h=f.prepared.axis;if(h==="x"||h==="y"){var S=h==="x"?"y":"x";u.page[S]=f.coords.start.page[S],u.client[S]=f.coords.start.client[S],u.delta[S]=0}}}var N={id:"actions/drag",install:function(c){var u=c.actions,f=c.Interactable,h=c.defaults;f.prototype.draggable=N.draggable,u.map.drag=N,u.methodDict.drag="draggable",h.actions.drag=N.defaults},listeners:{"interactions:before-action-move":H,"interactions:action-resume":H,"interactions:action-move":ee,"auto-start:check":function(c){var u=c.interaction,f=c.interactable,h=c.buttons,S=f.options.drag;if(S&&S.enabled&&(!u.pointerIsDown||!/mouse|pointer/.test(u.pointerType)||(h&f.options.drag.mouseButtons)!=0))return c.action={name:"drag",axis:S.lockAxis==="start"?S.startAxis:S.lockAxis},!1}},draggable:function(c){return k.object(c)?(this.options.drag.enabled=c.enabled!==!1,this.setPerAction("drag",c),this.setOnEvents("drag",c),/^(xy|x|y|start)$/.test(c.lockAxis)&&(this.options.drag.lockAxis=c.lockAxis),/^(xy|x|y)$/.test(c.startAxis)&&(this.options.drag.startAxis=c.startAxis),this):k.bool(c)?(this.options.drag.enabled=c,this):this.options.drag},beforeMove:H,move:ee,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(c){return c.search("drag")===0}},I=N,$={init:function(c){var u=c;$.document=u.document,$.DocumentFragment=u.DocumentFragment||D,$.SVGElement=u.SVGElement||D,$.SVGSVGElement=u.SVGSVGElement||D,$.SVGElementInstance=u.SVGElementInstance||D,$.Element=u.Element||D,$.HTMLElement=u.HTMLElement||$.Element,$.Event=u.Event,$.Touch=u.Touch||D,$.PointerEvent=u.PointerEvent||u.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function D(){}var P=$,F={init:function(c){var u=P.Element,f=c.navigator||{};F.supportsTouch="ontouchstart"in c||k.func(c.DocumentTouch)&&P.document instanceof c.DocumentTouch,F.supportsPointerEvent=f.pointerEnabled!==!1&&!!P.PointerEvent,F.isIOS=/iP(hone|od|ad)/.test(f.platform),F.isIOS7=/iP(hone|od|ad)/.test(f.platform)&&/OS 7[^\d]/.test(f.appVersion),F.isIe9=/MSIE 9/.test(f.userAgent),F.isOperaMobile=f.appName==="Opera"&&F.supportsTouch&&/Presto/.test(f.userAgent),F.prefixedMatchesSelector="matches"in u.prototype?"matches":"webkitMatchesSelector"in u.prototype?"webkitMatchesSelector":"mozMatchesSelector"in u.prototype?"mozMatchesSelector":"oMatchesSelector"in u.prototype?"oMatchesSelector":"msMatchesSelector",F.pEventTypes=F.supportsPointerEvent?P.PointerEvent===c.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,F.wheelEvent=P.document&&"onmousewheel"in P.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},Y=F;function X(c,u){if(c.contains)return c.contains(u);for(;u;){if(u===c)return!0;u=u.parentNode}return!1}function Z(c,u){for(;k.element(c);){if(Ee(c,u))return c;c=ce(c)}return null}function ce(c){var u=c.parentNode;if(k.docFrag(u)){for(;(u=u.host)&&k.docFrag(u););return u}return u}function Ee(c,u){return T!==w&&(u=u.replace(/\/deep\//g," ")),c[Y.prefixedMatchesSelector](u)}var G=function(c){return c.parentNode||c.host};function R(c,u){for(var f,h=[],S=c;(f=G(S))&&S!==u&&f!==S.ownerDocument;)h.unshift(S),S=f;return h}function ae(c,u,f){for(;k.element(c);){if(Ee(c,u))return!0;if((c=ce(c))===f)return Ee(c,u)}return!1}function J(c){return c.correspondingUseElement||c}function be(c){var u=c instanceof P.SVGElement?c.getBoundingClientRect():c.getClientRects()[0];return u&&{left:u.left,right:u.right,top:u.top,bottom:u.bottom,width:u.width||u.right-u.left,height:u.height||u.bottom-u.top}}function W(c){var u,f=be(c);if(!Y.isIOS7&&f){var h={x:(u=(u=y(c))||T).scrollX||u.document.documentElement.scrollLeft,y:u.scrollY||u.document.documentElement.scrollTop};f.left+=h.x,f.right+=h.x,f.top+=h.y,f.bottom+=h.y}return f}function ne(c){for(var u=[];c;)u.push(c),c=ce(c);return u}function we(c){return!!k.string(c)&&(P.document.querySelector(c),!0)}function Q(c,u){for(var f in u)c[f]=u[f];return c}function Oe(c,u,f){return c==="parent"?ce(f):c==="self"?u.getRect(f):Z(f,c)}function Le(c,u,f,h){var S=c;return k.string(S)?S=Oe(S,u,f):k.func(S)&&(S=S.apply(void 0,h)),k.element(S)&&(S=W(S)),S}function le(c){return c&&{x:"x"in c?c.x:c.left,y:"y"in c?c.y:c.top}}function qe(c){return!c||"x"in c&&"y"in c||((c=Q({},c)).x=c.left||0,c.y=c.top||0,c.width=c.width||(c.right||0)-c.x,c.height=c.height||(c.bottom||0)-c.y),c}function Re(c,u,f){c.left&&(u.left+=f.x),c.right&&(u.right+=f.x),c.top&&(u.top+=f.y),c.bottom&&(u.bottom+=f.y),u.width=u.right-u.left,u.height=u.bottom-u.top}function Fe(c,u,f){var h=f&&c.options[f];return le(Le(h&&h.origin||c.options.origin,c,u,[c&&u]))||{x:0,y:0}}function He(c,u){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(B){return!0},h=arguments.length>3?arguments[3]:void 0;if(h=h||{},k.string(c)&&c.search(" ")!==-1&&(c=ke(c)),k.array(c))return c.forEach((function(B){return He(B,u,f,h)})),h;if(k.object(c)&&(u=c,c=""),k.func(u)&&f(c))h[c]=h[c]||[],h[c].push(u);else if(k.array(u))for(var S=0,O=u;S<O.length;S++){var M=O[S];He(c,M,f,h)}else if(k.object(u))for(var A in u)He(ke(A).map((function(B){return"".concat(c).concat(B)})),u[A],f,h);return h}function ke(c){return c.trim().split(/ +/)}var z=function(c,u){return Math.sqrt(c*c+u*u)},K=["webkit","moz"];function ve(c,u){c.__set||(c.__set={});var f=function(S){if(K.some((function(O){return S.indexOf(O)===0})))return 1;typeof c[S]!="function"&&S!=="__set"&&Object.defineProperty(c,S,{get:function(){return S in c.__set?c.__set[S]:c.__set[S]=u[S]},set:function(O){c.__set[S]=O},configurable:!0})};for(var h in u)f(h);return c}function oe(c,u){c.page=c.page||{},c.page.x=u.page.x,c.page.y=u.page.y,c.client=c.client||{},c.client.x=u.client.x,c.client.y=u.client.y,c.timeStamp=u.timeStamp}function se(c){c.page.x=0,c.page.y=0,c.client.x=0,c.client.y=0}function Se(c){return c instanceof P.Event||c instanceof P.Touch}function Te(c,u,f){return c=c||"page",(f=f||{}).x=u[c+"X"],f.y=u[c+"Y"],f}function ue(c,u){return u=u||{x:0,y:0},Y.isOperaMobile&&Se(c)?(Te("screen",c,u),u.x+=window.scrollX,u.y+=window.scrollY):Te("page",c,u),u}function ge(c){return k.number(c.pointerId)?c.pointerId:c.identifier}function Ne(c,u,f){var h=u.length>1?dt(u):u[0];ue(h,c.page),(function(S,O){O=O||{},Y.isOperaMobile&&Se(S)?Te("screen",S,O):Te("client",S,O)})(h,c.client),c.timeStamp=f}function Be(c){var u=[];return k.array(c)?(u[0]=c[0],u[1]=c[1]):c.type==="touchend"?c.touches.length===1?(u[0]=c.touches[0],u[1]=c.changedTouches[0]):c.touches.length===0&&(u[0]=c.changedTouches[0],u[1]=c.changedTouches[1]):(u[0]=c.touches[0],u[1]=c.touches[1]),u}function dt(c){for(var u={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},f=0;f<c.length;f++){var h=c[f];for(var S in u)u[S]+=h[S]}for(var O in u)u[O]/=c.length;return u}function ut(c){if(!c.length)return null;var u=Be(c),f=Math.min(u[0].pageX,u[1].pageX),h=Math.min(u[0].pageY,u[1].pageY),S=Math.max(u[0].pageX,u[1].pageX),O=Math.max(u[0].pageY,u[1].pageY);return{x:f,y:h,left:f,top:h,right:S,bottom:O,width:S-f,height:O-h}}function fe(c,u){var f=u+"X",h=u+"Y",S=Be(c),O=S[0][f]-S[1][f],M=S[0][h]-S[1][h];return z(O,M)}function Ce(c,u){var f=u+"X",h=u+"Y",S=Be(c),O=S[1][f]-S[0][f],M=S[1][h]-S[0][h];return 180*Math.atan2(M,O)/Math.PI}function de(c){return k.string(c.pointerType)?c.pointerType:k.number(c.pointerType)?[void 0,void 0,"touch","pen","mouse"][c.pointerType]:/touch/.test(c.type||"")||c instanceof P.Touch?"touch":"mouse"}function xe(c){var u=k.func(c.composedPath)?c.composedPath():c.path;return[J(u?u[0]:c.target),J(c.currentTarget)]}var ze=(function(){function c(u){i(this,c),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=u}return s(c,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),c})();Object.defineProperty(ze.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var rt=function(c,u){for(var f=0;f<u.length;f++){var h=u[f];c.push(h)}return c},Ge=function(c){return rt([],c)},st=function(c,u){for(var f=0;f<c.length;f++)if(u(c[f],f,c))return f;return-1},_t=function(c,u){return c[st(c,u)]},Tt=(function(c){m(f,c);var u=_(f);function f(h,S,O){var M;i(this,f),(M=u.call(this,S._interaction)).dropzone=void 0,M.dragEvent=void 0,M.relatedTarget=void 0,M.draggable=void 0,M.propagationStopped=!1,M.immediatePropagationStopped=!1;var A=O==="dragleave"?h.prev:h.cur,B=A.element,V=A.dropzone;return M.type=O,M.target=B,M.currentTarget=B,M.dropzone=V,M.dragEvent=S,M.relatedTarget=S.target,M.draggable=S.interactable,M.timeStamp=S.timeStamp,M}return s(f,[{key:"reject",value:function(){var h=this,S=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&S.cur.dropzone===this.dropzone&&S.cur.element===this.target)if(S.prev.dropzone=this.dropzone,S.prev.element=this.target,S.rejected=!0,S.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var O=S.activeDrops,M=st(O,(function(B){var V=B.dropzone,j=B.element;return V===h.dropzone&&j===h.target}));S.activeDrops.splice(M,1);var A=new f(S,this.dragEvent,"dropdeactivate");A.dropzone=this.dropzone,A.target=this.target,this.dropzone.fire(A)}else this.dropzone.fire(new f(S,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),f})(ze);function Vt(c,u){for(var f=0,h=c.slice();f<h.length;f++){var S=h[f],O=S.dropzone,M=S.element;u.dropzone=O,u.target=M,O.fire(u),u.propagationStopped=u.immediatePropagationStopped=!1}}function Ln(c,u){for(var f=(function(O,M){for(var A=[],B=0,V=O.interactables.list;B<V.length;B++){var j=V[B];if(j.options.drop.enabled){var ie=j.options.drop.accept;if(!(k.element(ie)&&ie!==M||k.string(ie)&&!Ee(M,ie)||k.func(ie)&&!ie({dropzone:j,draggableElement:M})))for(var ye=0,Pe=j.getAllElements();ye<Pe.length;ye++){var Me=Pe[ye];Me!==M&&A.push({dropzone:j,element:Me,rect:j.getRect(Me)})}}}return A})(c,u),h=0;h<f.length;h++){var S=f[h];S.rect=S.dropzone.getRect(S.element)}return f}function vn(c,u,f){for(var h=c.dropState,S=c.interactable,O=c.element,M=[],A=0,B=h.activeDrops;A<B.length;A++){var V=B[A],j=V.dropzone,ie=V.element,ye=V.rect,Pe=j.dropCheck(u,f,S,O,ie,ye);M.push(Pe?ie:null)}var Me=(function(Ae){for(var Xe,je,tt,ht=[],St=0;St<Ae.length;St++){var lt=Ae[St],gt=Ae[Xe];if(lt&&St!==Xe)if(gt){var pn=G(lt),Ft=G(gt);if(pn!==lt.ownerDocument)if(Ft!==lt.ownerDocument)if(pn!==Ft){ht=ht.length?ht:R(gt);var Cn=void 0;if(gt instanceof P.HTMLElement&< instanceof P.SVGElement&&!(lt instanceof P.SVGSVGElement)){if(lt===Ft)continue;Cn=lt.ownerSVGElement}else Cn=lt;for(var Hn=R(Cn,gt.ownerDocument),cr=0;Hn[cr]&&Hn[cr]===ht[cr];)cr++;var fl=[Hn[cr-1],Hn[cr],ht[cr]];if(fl[0])for(var Ca=fl[0].lastChild;Ca;){if(Ca===fl[1]){Xe=St,ht=Hn;break}if(Ca===fl[2])break;Ca=Ca.previousSibling}}else tt=gt,(parseInt(y(je=lt).getComputedStyle(je).zIndex,10)||0)>=(parseInt(y(tt).getComputedStyle(tt).zIndex,10)||0)&&(Xe=St);else Xe=St}else Xe=St}return Xe})(M);return h.activeDrops[Me]||null}function wn(c,u,f){var h=c.dropState,S={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return f.type==="dragstart"&&(S.activate=new Tt(h,f,"dropactivate"),S.activate.target=null,S.activate.dropzone=null),f.type==="dragend"&&(S.deactivate=new Tt(h,f,"dropdeactivate"),S.deactivate.target=null,S.deactivate.dropzone=null),h.rejected||(h.cur.element!==h.prev.element&&(h.prev.dropzone&&(S.leave=new Tt(h,f,"dragleave"),f.dragLeave=S.leave.target=h.prev.element,f.prevDropzone=S.leave.dropzone=h.prev.dropzone),h.cur.dropzone&&(S.enter=new Tt(h,f,"dragenter"),f.dragEnter=h.cur.element,f.dropzone=h.cur.dropzone)),f.type==="dragend"&&h.cur.dropzone&&(S.drop=new Tt(h,f,"drop"),f.dropzone=h.cur.dropzone,f.relatedTarget=h.cur.element),f.type==="dragmove"&&h.cur.dropzone&&(S.move=new Tt(h,f,"dropmove"),f.dropzone=h.cur.dropzone)),S}function pe(c,u){var f=c.dropState,h=f.activeDrops,S=f.cur,O=f.prev;u.leave&&O.dropzone.fire(u.leave),u.enter&&S.dropzone.fire(u.enter),u.move&&S.dropzone.fire(u.move),u.drop&&S.dropzone.fire(u.drop),u.deactivate&&Vt(h,u.deactivate),f.prev.dropzone=S.dropzone,f.prev.element=S.element}function De(c,u){var f=c.interaction,h=c.iEvent,S=c.event;if(h.type==="dragmove"||h.type==="dragend"){var O=f.dropState;u.dynamicDrop&&(O.activeDrops=Ln(u,f.element));var M=h,A=vn(f,M,S);O.rejected=O.rejected&&!!A&&A.dropzone===O.cur.dropzone&&A.element===O.cur.element,O.cur.dropzone=A&&A.dropzone,O.cur.element=A&&A.element,O.events=wn(f,0,M)}}var Je={id:"actions/drop",install:function(c){var u=c.actions,f=c.interactStatic,h=c.Interactable,S=c.defaults;c.usePlugin(I),h.prototype.dropzone=function(O){return(function(M,A){if(k.object(A)){if(M.options.drop.enabled=A.enabled!==!1,A.listeners){var B=He(A.listeners),V=Object.keys(B).reduce((function(ie,ye){return ie[/^(enter|leave)/.test(ye)?"drag".concat(ye):/^(activate|deactivate|move)/.test(ye)?"drop".concat(ye):ye]=B[ye],ie}),{}),j=M.options.drop.listeners;j&&M.off(j),M.on(V),M.options.drop.listeners=V}return k.func(A.ondrop)&&M.on("drop",A.ondrop),k.func(A.ondropactivate)&&M.on("dropactivate",A.ondropactivate),k.func(A.ondropdeactivate)&&M.on("dropdeactivate",A.ondropdeactivate),k.func(A.ondragenter)&&M.on("dragenter",A.ondragenter),k.func(A.ondragleave)&&M.on("dragleave",A.ondragleave),k.func(A.ondropmove)&&M.on("dropmove",A.ondropmove),/^(pointer|center)$/.test(A.overlap)?M.options.drop.overlap=A.overlap:k.number(A.overlap)&&(M.options.drop.overlap=Math.max(Math.min(1,A.overlap),0)),"accept"in A&&(M.options.drop.accept=A.accept),"checker"in A&&(M.options.drop.checker=A.checker),M}return k.bool(A)?(M.options.drop.enabled=A,M):M.options.drop})(this,O)},h.prototype.dropCheck=function(O,M,A,B,V,j){return(function(ie,ye,Pe,Me,Ae,Xe,je){var tt=!1;if(!(je=je||ie.getRect(Xe)))return!!ie.options.drop.checker&&ie.options.drop.checker(ye,Pe,tt,ie,Xe,Me,Ae);var ht=ie.options.drop.overlap;if(ht==="pointer"){var St=Fe(Me,Ae,"drag"),lt=ue(ye);lt.x+=St.x,lt.y+=St.y;var gt=lt.x>je.left&<.x<je.right,pn=lt.y>je.top&<.y<je.bottom;tt=gt&&pn}var Ft=Me.getRect(Ae);if(Ft&&ht==="center"){var Cn=Ft.left+Ft.width/2,Hn=Ft.top+Ft.height/2;tt=Cn>=je.left&&Cn<=je.right&&Hn>=je.top&&Hn<=je.bottom}return Ft&&k.number(ht)&&(tt=Math.max(0,Math.min(je.right,Ft.right)-Math.max(je.left,Ft.left))*Math.max(0,Math.min(je.bottom,Ft.bottom)-Math.max(je.top,Ft.top))/(Ft.width*Ft.height)>=ht),ie.options.drop.checker&&(tt=ie.options.drop.checker(ye,Pe,tt,ie,Xe,Me,Ae)),tt})(this,O,M,A,B,V,j)},f.dynamicDrop=function(O){return k.bool(O)?(c.dynamicDrop=O,f):c.dynamicDrop},Q(u.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),u.methodDict.drop="dropzone",c.dynamicDrop=!1,S.actions.drop=Je.defaults},listeners:{"interactions:before-action-start":function(c){var u=c.interaction;u.prepared.name==="drag"&&(u.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(c,u){var f=c.interaction,h=(c.event,c.iEvent);if(f.prepared.name==="drag"){var S=f.dropState;S.activeDrops=[],S.events={},S.activeDrops=Ln(u,f.element),S.events=wn(f,0,h),S.events.activate&&(Vt(S.activeDrops,S.events.activate),u.fire("actions/drop:start",{interaction:f,dragEvent:h}))}},"interactions:action-move":De,"interactions:after-action-move":function(c,u){var f=c.interaction,h=c.iEvent;if(f.prepared.name==="drag"){var S=f.dropState;pe(f,S.events),u.fire("actions/drop:move",{interaction:f,dragEvent:h}),S.events={}}},"interactions:action-end":function(c,u){if(c.interaction.prepared.name==="drag"){var f=c.interaction,h=c.iEvent;De(c,u),pe(f,f.dropState.events),u.fire("actions/drop:end",{interaction:f,dragEvent:h})}},"interactions:stop":function(c){var u=c.interaction;if(u.prepared.name==="drag"){var f=u.dropState;f&&(f.activeDrops=null,f.events=null,f.cur.dropzone=null,f.cur.element=null,f.prev.dropzone=null,f.prev.element=null,f.rejected=!1)}}},getActiveDrops:Ln,getDrop:vn,getDropEvents:wn,fireDropEvents:pe,filterEventType:function(c){return c.search("drag")===0||c.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Ze=Je;function it(c){var u=c.interaction,f=c.iEvent,h=c.phase;if(u.prepared.name==="gesture"){var S=u.pointers.map((function(V){return V.pointer})),O=h==="start",M=h==="end",A=u.interactable.options.deltaSource;if(f.touches=[S[0],S[1]],O)f.distance=fe(S,A),f.box=ut(S),f.scale=1,f.ds=0,f.angle=Ce(S,A),f.da=0,u.gesture.startDistance=f.distance,u.gesture.startAngle=f.angle;else if(M||u.pointers.length<2){var B=u.prevEvent;f.distance=B.distance,f.box=B.box,f.scale=B.scale,f.ds=0,f.angle=B.angle,f.da=0}else f.distance=fe(S,A),f.box=ut(S),f.scale=f.distance/u.gesture.startDistance,f.angle=Ce(S,A),f.ds=f.scale-u.gesture.scale,f.da=f.angle-u.gesture.angle;u.gesture.distance=f.distance,u.gesture.angle=f.angle,k.number(f.scale)&&f.scale!==1/0&&!isNaN(f.scale)&&(u.gesture.scale=f.scale)}}var Pt={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(c){var u=c.actions,f=c.Interactable,h=c.defaults;f.prototype.gesturable=function(S){return k.object(S)?(this.options.gesture.enabled=S.enabled!==!1,this.setPerAction("gesture",S),this.setOnEvents("gesture",S),this):k.bool(S)?(this.options.gesture.enabled=S,this):this.options.gesture},u.map.gesture=Pt,u.methodDict.gesture="gesturable",h.actions.gesture=Pt.defaults},listeners:{"interactions:action-start":it,"interactions:action-move":it,"interactions:action-end":it,"interactions:new":function(c){c.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(c){if(!(c.interaction.pointers.length<2)){var u=c.interactable.options.gesture;if(u&&u.enabled)return c.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(c){return c.search("gesture")===0}},Lt=Pt;function U(c,u,f,h,S,O,M){if(!u)return!1;if(u===!0){var A=k.number(O.width)?O.width:O.right-O.left,B=k.number(O.height)?O.height:O.bottom-O.top;if(M=Math.min(M,Math.abs((c==="left"||c==="right"?A:B)/2)),A<0&&(c==="left"?c="right":c==="right"&&(c="left")),B<0&&(c==="top"?c="bottom":c==="bottom"&&(c="top")),c==="left"){var V=A>=0?O.left:O.right;return f.x<V+M}if(c==="top"){var j=B>=0?O.top:O.bottom;return f.y<j+M}if(c==="right")return f.x>(A>=0?O.right:O.left)-M;if(c==="bottom")return f.y>(B>=0?O.bottom:O.top)-M}return!!k.element(h)&&(k.element(u)?u===h:ae(h,u,S))}function te(c){var u=c.iEvent,f=c.interaction;if(f.prepared.name==="resize"&&f.resizeAxes){var h=u;f.interactable.options.resize.square?(f.resizeAxes==="y"?h.delta.x=h.delta.y:h.delta.y=h.delta.x,h.axes="xy"):(h.axes=f.resizeAxes,f.resizeAxes==="x"?h.delta.y=0:f.resizeAxes==="y"&&(h.delta.x=0))}}var he,Ie,$e={id:"actions/resize",before:["actions/drag"],install:function(c){var u=c.actions,f=c.browser,h=c.Interactable,S=c.defaults;$e.cursors=(function(O){return O.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}})(f),$e.defaultMargin=f.supportsTouch||f.supportsPointerEvent?20:10,h.prototype.resizable=function(O){return(function(M,A,B){return k.object(A)?(M.options.resize.enabled=A.enabled!==!1,M.setPerAction("resize",A),M.setOnEvents("resize",A),k.string(A.axis)&&/^x$|^y$|^xy$/.test(A.axis)?M.options.resize.axis=A.axis:A.axis===null&&(M.options.resize.axis=B.defaults.actions.resize.axis),k.bool(A.preserveAspectRatio)?M.options.resize.preserveAspectRatio=A.preserveAspectRatio:k.bool(A.square)&&(M.options.resize.square=A.square),M):k.bool(A)?(M.options.resize.enabled=A,M):M.options.resize})(this,O,c)},u.map.resize=$e,u.methodDict.resize="resizable",S.actions.resize=$e.defaults},listeners:{"interactions:new":function(c){c.interaction.resizeAxes="xy"},"interactions:action-start":function(c){(function(u){var f=u.iEvent,h=u.interaction;if(h.prepared.name==="resize"&&h.prepared.edges){var S=f,O=h.rect;h._rects={start:Q({},O),corrected:Q({},O),previous:Q({},O),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},S.edges=h.prepared.edges,S.rect=h._rects.corrected,S.deltaRect=h._rects.delta}})(c),te(c)},"interactions:action-move":function(c){(function(u){var f=u.iEvent,h=u.interaction;if(h.prepared.name==="resize"&&h.prepared.edges){var S=f,O=h.interactable.options.resize.invert,M=O==="reposition"||O==="negate",A=h.rect,B=h._rects,V=B.start,j=B.corrected,ie=B.delta,ye=B.previous;if(Q(ye,j),M){if(Q(j,A),O==="reposition"){if(j.top>j.bottom){var Pe=j.top;j.top=j.bottom,j.bottom=Pe}if(j.left>j.right){var Me=j.left;j.left=j.right,j.right=Me}}}else j.top=Math.min(A.top,V.bottom),j.bottom=Math.max(A.bottom,V.top),j.left=Math.min(A.left,V.right),j.right=Math.max(A.right,V.left);for(var Ae in j.width=j.right-j.left,j.height=j.bottom-j.top,j)ie[Ae]=j[Ae]-ye[Ae];S.edges=h.prepared.edges,S.rect=j,S.deltaRect=ie}})(c),te(c)},"interactions:action-end":function(c){var u=c.iEvent,f=c.interaction;if(f.prepared.name==="resize"&&f.prepared.edges){var h=u;h.edges=f.prepared.edges,h.rect=f._rects.corrected,h.deltaRect=f._rects.delta}},"auto-start:check":function(c){var u=c.interaction,f=c.interactable,h=c.element,S=c.rect,O=c.buttons;if(S){var M=Q({},u.coords.cur.page),A=f.options.resize;if(A&&A.enabled&&(!u.pointerIsDown||!/mouse|pointer/.test(u.pointerType)||(O&A.mouseButtons)!=0)){if(k.object(A.edges)){var B={left:!1,right:!1,top:!1,bottom:!1};for(var V in B)B[V]=U(V,A.edges[V],M,u._latestPointer.eventTarget,h,S,A.margin||$e.defaultMargin);B.left=B.left&&!B.right,B.top=B.top&&!B.bottom,(B.left||B.right||B.top||B.bottom)&&(c.action={name:"resize",edges:B})}else{var j=A.axis!=="y"&&M.x>S.right-$e.defaultMargin,ie=A.axis!=="x"&&M.y>S.bottom-$e.defaultMargin;(j||ie)&&(c.action={name:"resize",axes:(j?"x":"")+(ie?"y":"")})}return!c.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(c){var u=c.edges,f=c.axis,h=c.name,S=$e.cursors,O=null;if(f)O=S[h+f];else if(u){for(var M="",A=0,B=["top","bottom","left","right"];A<B.length;A++){var V=B[A];u[V]&&(M+=V)}O=S[M]}return O},filterEventType:function(c){return c.search("resize")===0},defaultMargin:null},vt=$e,We={id:"actions",install:function(c){c.usePlugin(Lt),c.usePlugin(vt),c.usePlugin(I),c.usePlugin(Ze)}},nt=0,mt={request:function(c){return he(c)},cancel:function(c){return Ie(c)},init:function(c){if(he=c.requestAnimationFrame,Ie=c.cancelAnimationFrame,!he)for(var u=["ms","moz","webkit","o"],f=0;f<u.length;f++){var h=u[f];he=c["".concat(h,"RequestAnimationFrame")],Ie=c["".concat(h,"CancelAnimationFrame")]||c["".concat(h,"CancelRequestAnimationFrame")]}he=he&&he.bind(c),Ie=Ie&&Ie.bind(c),he||(he=function(S){var O=Date.now(),M=Math.max(0,16-(O-nt)),A=c.setTimeout((function(){S(O+M)}),M);return nt=O+M,A},Ie=function(S){return clearTimeout(S)})}},Ve={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(c){Ve.isScrolling=!0,mt.cancel(Ve.i),c.autoScroll=Ve,Ve.interaction=c,Ve.prevTime=Ve.now(),Ve.i=mt.request(Ve.scroll)},stop:function(){Ve.isScrolling=!1,Ve.interaction&&(Ve.interaction.autoScroll=null),mt.cancel(Ve.i)},scroll:function(){var c=Ve.interaction,u=c.interactable,f=c.element,h=c.prepared.name,S=u.options[h].autoScroll,O=Io(S.container,u,f),M=Ve.now(),A=(M-Ve.prevTime)/1e3,B=S.speed*A;if(B>=1){var V={x:Ve.x*B,y:Ve.y*B};if(V.x||V.y){var j=nl(O);k.window(O)?O.scrollBy(V.x,V.y):O&&(O.scrollLeft+=V.x,O.scrollTop+=V.y);var ie=nl(O),ye={x:ie.x-j.x,y:ie.y-j.y};(ye.x||ye.y)&&u.fire({type:"autoscroll",target:f,interactable:u,delta:ye,interaction:c,container:O})}Ve.prevTime=M}Ve.isScrolling&&(mt.cancel(Ve.i),Ve.i=mt.request(Ve.scroll))},check:function(c,u){var f;return(f=c.options[u].autoScroll)==null?void 0:f.enabled},onInteractionMove:function(c){var u=c.interaction,f=c.pointer;if(u.interacting()&&Ve.check(u.interactable,u.prepared.name))if(u.simulation)Ve.x=Ve.y=0;else{var h,S,O,M,A=u.interactable,B=u.element,V=u.prepared.name,j=A.options[V].autoScroll,ie=Io(j.container,A,B);if(k.window(ie))M=f.clientX<Ve.margin,h=f.clientY<Ve.margin,S=f.clientX>ie.innerWidth-Ve.margin,O=f.clientY>ie.innerHeight-Ve.margin;else{var ye=be(ie);M=f.clientX<ye.left+Ve.margin,h=f.clientY<ye.top+Ve.margin,S=f.clientX>ye.right-Ve.margin,O=f.clientY>ye.bottom-Ve.margin}Ve.x=S?1:M?-1:0,Ve.y=O?1:h?-1:0,Ve.isScrolling||(Ve.margin=j.margin,Ve.speed=j.speed,Ve.start(u))}}};function Io(c,u,f){return(k.string(c)?Oe(c,u,f):c)||y(f)}function nl(c){return k.window(c)&&(c=window.document.body),{x:c.scrollLeft,y:c.scrollTop}}var rl={id:"auto-scroll",install:function(c){var u=c.defaults,f=c.actions;c.autoScroll=Ve,Ve.now=function(){return c.now()},f.phaselessTypes.autoscroll=!0,u.perAction.autoScroll=Ve.defaults},listeners:{"interactions:new":function(c){c.interaction.autoScroll=null},"interactions:destroy":function(c){c.interaction.autoScroll=null,Ve.stop(),Ve.interaction&&(Ve.interaction=null)},"interactions:stop":Ve.stop,"interactions:action-move":function(c){return Ve.onInteractionMove(c)}}},ol=rl;function wr(c,u){var f=!1;return function(){return f||(T.console.warn(u),f=!0),c.apply(this,arguments)}}function No(c,u){return c.name=u.name,c.axis=u.axis,c.edges=u.edges,c}function re(c){return k.bool(c)?(this.options.styleCursor=c,this):c===null?(delete this.options.styleCursor,this):this.options.styleCursor}function Ue(c){return k.func(c)?(this.options.actionChecker=c,this):c===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Qe={id:"auto-start/interactableMethods",install:function(c){var u=c.Interactable;u.prototype.getAction=function(f,h,S,O){var M=(function(A,B,V,j,ie){var ye=A.getRect(j),Pe=B.buttons||{0:1,1:4,3:8,4:16}[B.button],Me={action:null,interactable:A,interaction:V,element:j,rect:ye,buttons:Pe};return ie.fire("auto-start:check",Me),Me.action})(this,h,S,O,c);return this.options.actionChecker?this.options.actionChecker(f,h,M,this,O,S):M},u.prototype.ignoreFrom=wr((function(f){return this._backCompatOption("ignoreFrom",f)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),u.prototype.allowFrom=wr((function(f){return this._backCompatOption("allowFrom",f)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),u.prototype.actionChecker=Ue,u.prototype.styleCursor=re}};function pt(c,u,f,h,S){return u.testIgnoreAllow(u.options[c.name],f,h)&&u.options[c.name].enabled&&Nt(u,f,c,S)?c:null}function It(c,u,f,h,S,O,M){for(var A=0,B=h.length;A<B;A++){var V=h[A],j=S[A],ie=V.getAction(u,f,c,j);if(ie){var ye=pt(ie,V,j,O,M);if(ye)return{action:ye,interactable:V,element:j}}}return{action:null,interactable:null,element:null}}function Ot(c,u,f,h,S){var O=[],M=[],A=h;function B(j){O.push(j),M.push(A)}for(;k.element(A);){O=[],M=[],S.interactables.forEachMatch(A,B);var V=It(c,u,f,O,M,h,S);if(V.action&&!V.interactable.options[V.action.name].manualStart)return V;A=ce(A)}return{action:null,interactable:null,element:null}}function Xt(c,u,f){var h=u.action,S=u.interactable,O=u.element;h=h||{name:null},c.interactable=S,c.element=O,No(c.prepared,h),c.rect=S&&h.name?S.getRect(O):null,Wh(c,f),f.fire("autoStart:prepared",{interaction:c})}function Nt(c,u,f,h){var S=c.options,O=S[f.name].max,M=S[f.name].maxPerElement,A=h.autoStart.maxInteractions,B=0,V=0,j=0;if(!(O&&M&&A))return!1;for(var ie=0,ye=h.interactions.list;ie<ye.length;ie++){var Pe=ye[ie],Me=Pe.prepared.name;if(Pe.interacting()&&(++B>=A||Pe.interactable===c&&((V+=Me===f.name?1:0)>=O||Pe.element===u&&(j++,Me===f.name&&j>=M))))return!1}return A>0}function Do(c,u){return k.number(c)?(u.autoStart.maxInteractions=c,this):u.autoStart.maxInteractions}function Ru(c,u,f){var h=f.autoStart.cursorElement;h&&h!==c&&(h.style.cursor=""),c.ownerDocument.documentElement.style.cursor=u,c.style.cursor=u,f.autoStart.cursorElement=u?c:null}function Wh(c,u){var f=c.interactable,h=c.element,S=c.prepared;if(c.pointerType==="mouse"&&f&&f.options.styleCursor){var O="";if(S.name){var M=f.options[S.name].cursorChecker;O=k.func(M)?M(S,f,h,c._interacting):u.actions.map[S.name].getCursor(S)}Ru(c.element,O||"",u)}else u.autoStart.cursorElement&&Ru(u.autoStart.cursorElement,"",u)}var PC={id:"auto-start/base",before:["actions"],install:function(c){var u=c.interactStatic,f=c.defaults;c.usePlugin(Qe),f.base.actionChecker=null,f.base.styleCursor=!0,Q(f.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),u.maxInteractions=function(h){return Do(h,c)},c.autoStart={maxInteractions:1/0,withinInteractionLimit:Nt,cursorElement:null}},listeners:{"interactions:down":function(c,u){var f=c.interaction,h=c.pointer,S=c.event,O=c.eventTarget;f.interacting()||Xt(f,Ot(f,h,S,O,u),u)},"interactions:move":function(c,u){(function(f,h){var S=f.interaction,O=f.pointer,M=f.event,A=f.eventTarget;S.pointerType!=="mouse"||S.pointerIsDown||S.interacting()||Xt(S,Ot(S,O,M,A,h),h)})(c,u),(function(f,h){var S=f.interaction;if(S.pointerIsDown&&!S.interacting()&&S.pointerWasMoved&&S.prepared.name){h.fire("autoStart:before-start",f);var O=S.interactable,M=S.prepared.name;M&&O&&(O.options[M].manualStart||!Nt(O,S.element,S.prepared,h)?S.stop():(S.start(S.prepared,O,S.element),Wh(S,h)))}})(c,u)},"interactions:stop":function(c,u){var f=c.interaction,h=f.interactable;h&&h.options.styleCursor&&Ru(f.element,"",u)}},maxInteractions:Do,withinInteractionLimit:Nt,validateAction:pt},Lu=PC,AC={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(c,u){var f=c.interaction,h=c.eventTarget,S=c.dx,O=c.dy;if(f.prepared.name==="drag"){var M=Math.abs(S),A=Math.abs(O),B=f.interactable.options.drag,V=B.startAxis,j=M>A?"x":M<A?"y":"xy";if(f.prepared.axis=B.lockAxis==="start"?j[0]:B.lockAxis,j!=="xy"&&V!=="xy"&&V!==j){f.prepared.name=null;for(var ie=h,ye=function(Me){if(Me!==f.interactable){var Ae=f.interactable.options.drag;if(!Ae.manualStart&&Me.testIgnoreAllow(Ae,ie,h)){var Xe=Me.getAction(f.downPointer,f.downEvent,f,ie);if(Xe&&Xe.name==="drag"&&(function(je,tt){if(!tt)return!1;var ht=tt.options.drag.startAxis;return je==="xy"||ht==="xy"||ht===je})(j,Me)&&Lu.validateAction(Xe,Me,ie,h,u))return Me}}};k.element(ie);){var Pe=u.interactables.forEachMatch(ie,ye);if(Pe){f.prepared.name="drag",f.interactable=Pe,f.element=ie;break}ie=ce(ie)}}}}}};function Iu(c){var u=c.prepared&&c.prepared.name;if(!u)return null;var f=c.interactable.options;return f[u].hold||f[u].delay}var RC={id:"auto-start/hold",install:function(c){var u=c.defaults;c.usePlugin(Lu),u.perAction.hold=0,u.perAction.delay=0},listeners:{"interactions:new":function(c){c.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(c){var u=c.interaction,f=Iu(u);f>0&&(u.autoStartHoldTimer=setTimeout((function(){u.start(u.prepared,u.interactable,u.element)}),f))},"interactions:move":function(c){var u=c.interaction,f=c.duplicate;u.autoStartHoldTimer&&u.pointerWasMoved&&!f&&(clearTimeout(u.autoStartHoldTimer),u.autoStartHoldTimer=null)},"autoStart:before-start":function(c){var u=c.interaction;Iu(u)>0&&(u.prepared.name=null)}},getHoldDuration:Iu},LC=RC,IC={id:"auto-start",install:function(c){c.usePlugin(Lu),c.usePlugin(LC),c.usePlugin(AC)}},NC=function(c){return/^(always|never|auto)$/.test(c)?(this.options.preventDefault=c,this):k.bool(c)?(this.options.preventDefault=c?"always":"never",this):this.options.preventDefault};function DC(c){var u=c.interaction,f=c.event;u.interactable&&u.interactable.checkAndPreventDefault(f)}var Yh={id:"core/interactablePreventDefault",install:function(c){var u=c.Interactable;u.prototype.preventDefault=NC,u.prototype.checkAndPreventDefault=function(f){return(function(h,S,O){var M=h.options.preventDefault;if(M!=="never")if(M!=="always"){if(S.events.supportsPassive&&/^touch(start|move)$/.test(O.type)){var A=y(O.target).document,B=S.getDocOptions(A);if(!B||!B.events||B.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(O.type)||k.element(O.target)&&Ee(O.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||O.preventDefault()}else O.preventDefault()})(this,c,f)},c.interactions.docEvents.push({type:"dragstart",listener:function(f){for(var h=0,S=c.interactions.list;h<S.length;h++){var O=S[h];if(O.element&&(O.element===f.target||X(O.element,f.target)))return void O.interactable.checkAndPreventDefault(f)}}})},listeners:["down","move","up","cancel"].reduce((function(c,u){return c["interactions:".concat(u)]=DC,c}),{})};function al(c,u){if(u.phaselessTypes[c])return!0;for(var f in u.map)if(c.indexOf(f)===0&&c.substr(f.length)in u.phases)return!0;return!1}function $o(c){var u={};for(var f in c){var h=c[f];k.plainObject(h)?u[f]=$o(h):k.array(h)?u[f]=Ge(h):u[f]=h}return u}var Nu=(function(){function c(u){i(this,c),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=u,this.result=il(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return s(c,[{key:"start",value:function(u,f){var h,S,O=u.phase,M=this.interaction,A=(function(V){var j=V.interactable.options[V.prepared.name],ie=j.modifiers;return ie&&ie.length?ie:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(ye){var Pe=j[ye];return Pe&&Pe.enabled&&{options:Pe,methods:Pe._methods}})).filter((function(ye){return!!ye}))})(M);this.prepareStates(A),this.startEdges=Q({},M.edges),this.edges=Q({},this.startEdges),this.startOffset=(h=M.rect,S=f,h?{left:S.x-h.left,top:S.y-h.top,right:h.right-S.x,bottom:h.bottom-S.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var B=this.fillArg({phase:O,pageCoords:f,preEnd:!1});return this.result=il(),this.startAll(B),this.result=this.setAll(B)}},{key:"fillArg",value:function(u){var f=this.interaction;return u.interaction=f,u.interactable=f.interactable,u.element=f.element,u.rect||(u.rect=f.rect),u.edges||(u.edges=this.startEdges),u.startOffset=this.startOffset,u}},{key:"startAll",value:function(u){for(var f=0,h=this.states;f<h.length;f++){var S=h[f];S.methods.start&&(u.state=S,S.methods.start(u))}}},{key:"setAll",value:function(u){var f=u.phase,h=u.preEnd,S=u.skipModifiers,O=u.rect,M=u.edges;u.coords=Q({},u.pageCoords),u.rect=Q({},O),u.edges=Q({},M);for(var A=S?this.states.slice(S):this.states,B=il(u.coords,u.rect),V=0;V<A.length;V++){var j,ie=A[V],ye=ie.options,Pe=Q({},u.coords),Me=null;(j=ie.methods)!=null&&j.set&&this.shouldDo(ye,h,f)&&(u.state=ie,Me=ie.methods.set(u),Re(u.edges,u.rect,{x:u.coords.x-Pe.x,y:u.coords.y-Pe.y})),B.eventProps.push(Me)}Q(this.edges,u.edges),B.delta.x=u.coords.x-u.pageCoords.x,B.delta.y=u.coords.y-u.pageCoords.y,B.rectDelta.left=u.rect.left-O.left,B.rectDelta.right=u.rect.right-O.right,B.rectDelta.top=u.rect.top-O.top,B.rectDelta.bottom=u.rect.bottom-O.bottom;var Ae=this.result.coords,Xe=this.result.rect;if(Ae&&Xe){var je=B.rect.left!==Xe.left||B.rect.right!==Xe.right||B.rect.top!==Xe.top||B.rect.bottom!==Xe.bottom;B.changed=je||Ae.x!==B.coords.x||Ae.y!==B.coords.y}return B}},{key:"applyToInteraction",value:function(u){var f=this.interaction,h=u.phase,S=f.coords.cur,O=f.coords.start,M=this.result,A=this.startDelta,B=M.delta;h==="start"&&Q(this.startDelta,M.delta);for(var V=0,j=[[O,A],[S,B]];V<j.length;V++){var ie=j[V],ye=ie[0],Pe=ie[1];ye.page.x+=Pe.x,ye.page.y+=Pe.y,ye.client.x+=Pe.x,ye.client.y+=Pe.y}var Me=this.result.rectDelta,Ae=u.rect||f.rect;Ae.left+=Me.left,Ae.right+=Me.right,Ae.top+=Me.top,Ae.bottom+=Me.bottom,Ae.width=Ae.right-Ae.left,Ae.height=Ae.bottom-Ae.top}},{key:"setAndApply",value:function(u){var f=this.interaction,h=u.phase,S=u.preEnd,O=u.skipModifiers,M=this.setAll(this.fillArg({preEnd:S,phase:h,pageCoords:u.modifiedCoords||f.coords.cur.page}));if(this.result=M,!M.changed&&(!O||O<this.states.length)&&f.interacting())return!1;if(u.modifiedCoords){var A=f.coords.cur.page,B={x:u.modifiedCoords.x-A.x,y:u.modifiedCoords.y-A.y};M.coords.x+=B.x,M.coords.y+=B.y,M.delta.x+=B.x,M.delta.y+=B.y}this.applyToInteraction(u)}},{key:"beforeEnd",value:function(u){var f=u.interaction,h=u.event,S=this.states;if(S&&S.length){for(var O=!1,M=0;M<S.length;M++){var A=S[M];u.state=A;var B=A.options,V=A.methods,j=V.beforeEnd&&V.beforeEnd(u);if(j)return this.endResult=j,!1;O=O||!O&&this.shouldDo(B,!0,u.phase,!0)}O&&f.move({event:h,preEnd:!0})}}},{key:"stop",value:function(u){var f=u.interaction;if(this.states&&this.states.length){var h=Q({states:this.states,interactable:f.interactable,element:f.element,rect:null},u);this.fillArg(h);for(var S=0,O=this.states;S<O.length;S++){var M=O[S];h.state=M,M.methods.stop&&M.methods.stop(h)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(u){this.states=[];for(var f=0;f<u.length;f++){var h=u[f],S=h.options,O=h.methods,M=h.name;this.states.push({options:S,methods:O,index:f,name:M})}return this.states}},{key:"restoreInteractionCoords",value:function(u){var f=u.interaction,h=f.coords,S=f.rect,O=f.modification;if(O.result){for(var M=O.startDelta,A=O.result,B=A.delta,V=A.rectDelta,j=0,ie=[[h.start,M],[h.cur,B]];j<ie.length;j++){var ye=ie[j],Pe=ye[0],Me=ye[1];Pe.page.x-=Me.x,Pe.page.y-=Me.y,Pe.client.x-=Me.x,Pe.client.y-=Me.y}S.left-=V.left,S.right-=V.right,S.top-=V.top,S.bottom-=V.bottom}}},{key:"shouldDo",value:function(u,f,h,S){return!(!u||u.enabled===!1||S&&!u.endOnly||u.endOnly&&!f||h==="start"&&!u.setStart)}},{key:"copyFrom",value:function(u){this.startOffset=u.startOffset,this.startDelta=u.startDelta,this.startEdges=u.startEdges,this.edges=u.edges,this.states=u.states.map((function(f){return $o(f)})),this.result=il(Q({},u.result.coords),Q({},u.result.rect))}},{key:"destroy",value:function(){for(var u in this)this[u]=null}}]),c})();function il(c,u){return{rect:u,coords:c,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Cr(c,u){var f=c.defaults,h={start:c.start,set:c.set,beforeEnd:c.beforeEnd,stop:c.stop},S=function(O){var M=O||{};for(var A in M.enabled=M.enabled!==!1,f)A in M||(M[A]=f[A]);var B={options:M,methods:h,name:u,enable:function(){return M.enabled=!0,B},disable:function(){return M.enabled=!1,B}};return B};return u&&typeof u=="string"&&(S._defaults=f,S._methods=h),S}function ya(c){var u=c.iEvent,f=c.interaction.modification.result;f&&(u.modifiers=f.eventProps)}var $C={id:"modifiers/base",before:["actions"],install:function(c){c.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(c){var u=c.interaction;u.modification=new Nu(u)},"interactions:before-action-start":function(c){var u=c.interaction,f=c.interaction.modification;f.start(c,u.coords.start.page),u.edges=f.edges,f.applyToInteraction(c)},"interactions:before-action-move":function(c){var u=c.interaction,f=u.modification,h=f.setAndApply(c);return u.edges=f.edges,h},"interactions:before-action-end":function(c){var u=c.interaction,f=u.modification,h=f.beforeEnd(c);return u.edges=f.startEdges,h},"interactions:action-start":ya,"interactions:action-move":ya,"interactions:action-end":ya,"interactions:after-action-start":function(c){return c.interaction.modification.restoreInteractionCoords(c)},"interactions:after-action-move":function(c){return c.interaction.modification.restoreInteractionCoords(c)},"interactions:stop":function(c){return c.interaction.modification.stop(c)}}},Kh=$C,Gh={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Du=(function(c){m(f,c);var u=_(f);function f(h,S,O,M,A,B,V){var j;i(this,f),(j=u.call(this,h)).relatedTarget=null,j.screenX=void 0,j.screenY=void 0,j.button=void 0,j.buttons=void 0,j.ctrlKey=void 0,j.shiftKey=void 0,j.altKey=void 0,j.metaKey=void 0,j.page=void 0,j.client=void 0,j.delta=void 0,j.rect=void 0,j.x0=void 0,j.y0=void 0,j.t0=void 0,j.dt=void 0,j.duration=void 0,j.clientX0=void 0,j.clientY0=void 0,j.velocity=void 0,j.speed=void 0,j.swipe=void 0,j.axes=void 0,j.preEnd=void 0,A=A||h.element;var ie=h.interactable,ye=(ie&&ie.options||Gh).deltaSource,Pe=Fe(ie,A,O),Me=M==="start",Ae=M==="end",Xe=Me?p(j):h.prevEvent,je=Me?h.coords.start:Ae?{page:Xe.page,client:Xe.client,timeStamp:h.coords.cur.timeStamp}:h.coords.cur;return j.page=Q({},je.page),j.client=Q({},je.client),j.rect=Q({},h.rect),j.timeStamp=je.timeStamp,Ae||(j.page.x-=Pe.x,j.page.y-=Pe.y,j.client.x-=Pe.x,j.client.y-=Pe.y),j.ctrlKey=S.ctrlKey,j.altKey=S.altKey,j.shiftKey=S.shiftKey,j.metaKey=S.metaKey,j.button=S.button,j.buttons=S.buttons,j.target=A,j.currentTarget=A,j.preEnd=B,j.type=V||O+(M||""),j.interactable=ie,j.t0=Me?h.pointers[h.pointers.length-1].downTime:Xe.t0,j.x0=h.coords.start.page.x-Pe.x,j.y0=h.coords.start.page.y-Pe.y,j.clientX0=h.coords.start.client.x-Pe.x,j.clientY0=h.coords.start.client.y-Pe.y,j.delta=Me||Ae?{x:0,y:0}:{x:j[ye].x-Xe[ye].x,y:j[ye].y-Xe[ye].y},j.dt=h.coords.delta.timeStamp,j.duration=j.timeStamp-j.t0,j.velocity=Q({},h.coords.velocity[ye]),j.speed=z(j.velocity.x,j.velocity.y),j.swipe=Ae||M==="inertiastart"?j.getSwipe():null,j}return s(f,[{key:"getSwipe",value:function(){var h=this._interaction;if(h.prevEvent.speed<600||this.timeStamp-h.prevEvent.timeStamp>150)return null;var S=180*Math.atan2(h.prevEvent.velocityY,h.prevEvent.velocityX)/Math.PI;S<0&&(S+=360);var O=112.5<=S&&S<247.5,M=202.5<=S&&S<337.5;return{up:M,down:!M&&22.5<=S&&S<157.5,left:O,right:!O&&(292.5<=S||S<67.5),angle:S,speed:h.prevEvent.speed,velocity:{x:h.prevEvent.velocityX,y:h.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),f})(ze);Object.defineProperties(Du.prototype,{pageX:{get:function(){return this.page.x},set:function(c){this.page.x=c}},pageY:{get:function(){return this.page.y},set:function(c){this.page.y=c}},clientX:{get:function(){return this.client.x},set:function(c){this.client.x=c}},clientY:{get:function(){return this.client.y},set:function(c){this.client.y=c}},dx:{get:function(){return this.delta.x},set:function(c){this.delta.x=c}},dy:{get:function(){return this.delta.y},set:function(c){this.delta.y=c}},velocityX:{get:function(){return this.velocity.x},set:function(c){this.velocity.x=c}},velocityY:{get:function(){return this.velocity.y},set:function(c){this.velocity.y=c}}});var FC=s((function c(u,f,h,S,O){i(this,c),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=u,this.pointer=f,this.event=h,this.downTime=S,this.downTarget=O})),BC=(function(c){return c.interactable="",c.element="",c.prepared="",c.pointerIsDown="",c.pointerWasMoved="",c._proxy="",c})({}),Xh=(function(c){return c.start="",c.move="",c.end="",c.stop="",c.interacting="",c})({}),zC=0,HC=(function(){function c(u){var f=this,h=u.pointerType,S=u.scopeFire;i(this,c),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=wr((function(j){this.move(j)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=zC++,this._scopeFire=S,this.pointerType=h;var O=this;this._proxy={};var M=function(j){Object.defineProperty(f._proxy,j,{get:function(){return O[j]}})};for(var A in BC)M(A);var B=function(j){Object.defineProperty(f._proxy,j,{value:function(){return O[j].apply(O,arguments)}})};for(var V in Xh)B(V);this._scopeFire("interactions:new",{interaction:this})}return s(c,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(u,f,h){var S=this.updatePointer(u,f,h,!0),O=this.pointers[S];this._scopeFire("interactions:down",{pointer:u,event:f,eventTarget:h,pointerIndex:S,pointerInfo:O,type:"down",interaction:this})}},{key:"start",value:function(u,f,h){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(u.name==="gesture"?2:1)||!f.options[u.name].enabled)&&(No(this.prepared,u),this.interactable=f,this.element=h,this.rect=f.getRect(h),this.edges=this.prepared.edges?Q({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(u,f,h){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(u,f,h,!1);var S,O,M=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(S=this.coords.cur.client.x-this.coords.start.client.x,O=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=z(S,O)>this.pointerMoveTolerance);var A,B,V,j=this.getPointerIndex(u),ie={pointer:u,pointerIndex:j,pointerInfo:this.pointers[j],event:f,type:"move",eventTarget:h,dx:S,dy:O,duplicate:M,interaction:this};M||(A=this.coords.velocity,B=this.coords.delta,V=Math.max(B.timeStamp/1e3,.001),A.page.x=B.page.x/V,A.page.y=B.page.y/V,A.client.x=B.client.x/V,A.client.y=B.client.y/V,A.timeStamp=V),this._scopeFire("interactions:move",ie),M||this.simulation||(this.interacting()&&(ie.type=null,this.move(ie)),this.pointerWasMoved&&oe(this.coords.prev,this.coords.cur))}},{key:"move",value:function(u){u&&u.event||se(this.coords.delta),(u=Q({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},u||{})).phase="move",this._doPhase(u)}},{key:"pointerUp",value:function(u,f,h,S){var O=this.getPointerIndex(u);O===-1&&(O=this.updatePointer(u,f,h,!1));var M=/cancel$/i.test(f.type)?"cancel":"up";this._scopeFire("interactions:".concat(M),{pointer:u,pointerIndex:O,pointerInfo:this.pointers[O],event:f,eventTarget:h,type:M,curEventTarget:S,interaction:this}),this.simulation||this.end(f),this.removePointer(u,f)}},{key:"documentBlur",value:function(u){this.end(u),this._scopeFire("interactions:blur",{event:u,type:"blur",interaction:this})}},{key:"end",value:function(u){var f;this._ending=!0,u=u||this._latestPointer.event,this.interacting()&&(f=this._doPhase({event:u,interaction:this,phase:"end"})),this._ending=!1,f===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(u){var f=ge(u);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:st(this.pointers,(function(h){return h.id===f}))}},{key:"getPointerInfo",value:function(u){return this.pointers[this.getPointerIndex(u)]}},{key:"updatePointer",value:function(u,f,h,S){var O,M,A,B=ge(u),V=this.getPointerIndex(u),j=this.pointers[V];return S=S!==!1&&(S||/(down|start)$/i.test(f.type)),j?j.pointer=u:(j=new FC(B,u,f,null,null),V=this.pointers.length,this.pointers.push(j)),Ne(this.coords.cur,this.pointers.map((function(ie){return ie.pointer})),this._now()),O=this.coords.delta,M=this.coords.prev,A=this.coords.cur,O.page.x=A.page.x-M.page.x,O.page.y=A.page.y-M.page.y,O.client.x=A.client.x-M.client.x,O.client.y=A.client.y-M.client.y,O.timeStamp=A.timeStamp-M.timeStamp,S&&(this.pointerIsDown=!0,j.downTime=this.coords.cur.timeStamp,j.downTarget=h,ve(this.downPointer,u),this.interacting()||(oe(this.coords.start,this.coords.cur),oe(this.coords.prev,this.coords.cur),this.downEvent=f,this.pointerWasMoved=!1)),this._updateLatestPointer(u,f,h),this._scopeFire("interactions:update-pointer",{pointer:u,event:f,eventTarget:h,down:S,pointerInfo:j,pointerIndex:V,interaction:this}),V}},{key:"removePointer",value:function(u,f){var h=this.getPointerIndex(u);if(h!==-1){var S=this.pointers[h];this._scopeFire("interactions:remove-pointer",{pointer:u,event:f,eventTarget:null,pointerIndex:h,pointerInfo:S,interaction:this}),this.pointers.splice(h,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(u,f,h){this._latestPointer.pointer=u,this._latestPointer.event=f,this._latestPointer.eventTarget=h}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(u,f,h,S){return new Du(this,u,this.prepared.name,f,this.element,h,S)}},{key:"_fireEvent",value:function(u){var f;(f=this.interactable)==null||f.fire(u),(!this.prevEvent||u.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=u)}},{key:"_doPhase",value:function(u){var f=u.event,h=u.phase,S=u.preEnd,O=u.type,M=this.rect;if(M&&h==="move"&&(Re(this.edges,M,this.coords.delta[this.interactable.options.deltaSource]),M.width=M.right-M.left,M.height=M.bottom-M.top),this._scopeFire("interactions:before-action-".concat(h),u)===!1)return!1;var A=u.iEvent=this._createPreparedEvent(f,h,S,O);return this._scopeFire("interactions:action-".concat(h),u),h==="start"&&(this.prevEvent=A),this._fireEvent(A),this._scopeFire("interactions:after-action-".concat(h),u),!0}},{key:"_now",value:function(){return Date.now()}}]),c})();function Jh(c){Zh(c.interaction)}function Zh(c){if(!(function(f){return!(!f.offset.pending.x&&!f.offset.pending.y)})(c))return!1;var u=c.offset.pending;return $u(c.coords.cur,u),$u(c.coords.delta,u),Re(c.edges,c.rect,u),u.x=0,u.y=0,!0}function jC(c){var u=c.x,f=c.y;this.offset.pending.x+=u,this.offset.pending.y+=f,this.offset.total.x+=u,this.offset.total.y+=f}function $u(c,u){var f=c.page,h=c.client,S=u.x,O=u.y;f.x+=S,f.y+=O,h.x+=S,h.y+=O}Xh.offsetBy="";var UC={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(c){c.Interaction.prototype.offsetBy=jC},listeners:{"interactions:new":function(c){c.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(c){return(function(u){u.pointerIsDown&&($u(u.coords.cur,u.offset.total),u.offset.pending.x=0,u.offset.pending.y=0)})(c.interaction)},"interactions:before-action-start":Jh,"interactions:before-action-move":Jh,"interactions:before-action-end":function(c){var u=c.interaction;if(Zh(u))return u.move({offset:!0}),u.end(),!1},"interactions:stop":function(c){var u=c.interaction;u.offset.total.x=0,u.offset.total.y=0,u.offset.pending.x=0,u.offset.pending.y=0}}},Vh=UC,QC=(function(){function c(u){i(this,c),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=u}return s(c,[{key:"start",value:function(u){var f=this.interaction,h=ll(f);if(!h||!h.enabled)return!1;var S=f.coords.velocity.client,O=z(S.x,S.y),M=this.modification||(this.modification=new Nu(f));if(M.copyFrom(f.modification),this.t0=f._now(),this.allowResume=h.allowResume,this.v0=O,this.currentOffset={x:0,y:0},this.startCoords=f.coords.cur.page,this.modifierArg=M.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-f.coords.cur.timeStamp<50&&O>h.minSpeed&&O>h.endSpeed)this.startInertia();else{if(M.result=M.setAll(this.modifierArg),!M.result.changed)return!1;this.startSmoothEnd()}return f.modification.result.rect=null,f.offsetBy(this.targetOffset),f._doPhase({interaction:f,event:u,phase:"inertiastart"}),f.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),f.modification.result.rect=null,this.active=!0,f.simulation=this,!0}},{key:"startInertia",value:function(){var u=this,f=this.interaction.coords.velocity.client,h=ll(this.interaction),S=h.resistance,O=-Math.log(h.endSpeed/this.v0)/S;this.targetOffset={x:(f.x-O)/S,y:(f.y-O)/S},this.te=O,this.lambda_v0=S/this.v0,this.one_ve_v0=1-h.endSpeed/this.v0;var M=this.modification,A=this.modifierArg;A.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},M.result=M.setAll(A),M.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+M.result.delta.x,y:this.targetOffset.y+M.result.delta.y}),this.onNextFrame((function(){return u.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var u=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return u.smoothEndTick()}))}},{key:"onNextFrame",value:function(u){var f=this;this.timeout=mt.request((function(){f.active&&u()}))}},{key:"inertiaTick",value:function(){var u,f,h,S,O,M,A,B=this,V=this.interaction,j=ll(V).resistance,ie=(V._now()-this.t0)/1e3;if(ie<this.te){var ye,Pe=1-(Math.exp(-j*ie)-this.lambda_v0)/this.one_ve_v0;this.isModified?(u=0,f=0,h=this.targetOffset.x,S=this.targetOffset.y,O=this.modifiedOffset.x,M=this.modifiedOffset.y,ye={x:eg(A=Pe,u,h,O),y:eg(A,f,S,M)}):ye={x:this.targetOffset.x*Pe,y:this.targetOffset.y*Pe};var Me={x:ye.x-this.currentOffset.x,y:ye.y-this.currentOffset.y};this.currentOffset.x+=Me.x,this.currentOffset.y+=Me.y,V.offsetBy(Me),V.move(),this.onNextFrame((function(){return B.inertiaTick()}))}else V.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var u=this,f=this.interaction,h=f._now()-this.t0,S=ll(f).smoothEndDuration;if(h<S){var O={x:tg(h,0,this.targetOffset.x,S),y:tg(h,0,this.targetOffset.y,S)},M={x:O.x-this.currentOffset.x,y:O.y-this.currentOffset.y};this.currentOffset.x+=M.x,this.currentOffset.y+=M.y,f.offsetBy(M),f.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return u.smoothEndTick()}))}else f.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(u){var f=u.pointer,h=u.event,S=u.eventTarget,O=this.interaction;O.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),O.updatePointer(f,h,S,!0),O._doPhase({interaction:O,event:h,phase:"resume"}),oe(O.coords.prev,O.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,mt.cancel(this.timeout)}}]),c})();function ll(c){var u=c.interactable,f=c.prepared;return u&&u.options&&f.name&&u.options[f.name].inertia}var WC={id:"inertia",before:["modifiers","actions"],install:function(c){var u=c.defaults;c.usePlugin(Vh),c.usePlugin(Kh),c.actions.phases.inertiastart=!0,c.actions.phases.resume=!0,u.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(c){var u=c.interaction;u.inertia=new QC(u)},"interactions:before-action-end":function(c){var u=c.interaction,f=c.event;return(!u._interacting||u.simulation||!u.inertia.start(f))&&null},"interactions:down":function(c){var u=c.interaction,f=c.eventTarget,h=u.inertia;if(h.active)for(var S=f;k.element(S);){if(S===u.element){h.resume(c);break}S=ce(S)}},"interactions:stop":function(c){var u=c.interaction.inertia;u.active&&u.stop()},"interactions:before-action-resume":function(c){var u=c.interaction.modification;u.stop(c),u.start(c,c.interaction.coords.cur.page),u.applyToInteraction(c)},"interactions:before-action-inertiastart":function(c){return c.interaction.modification.setAndApply(c)},"interactions:action-resume":ya,"interactions:action-inertiastart":ya,"interactions:after-action-inertiastart":function(c){return c.interaction.modification.restoreInteractionCoords(c)},"interactions:after-action-resume":function(c){return c.interaction.modification.restoreInteractionCoords(c)}}};function eg(c,u,f,h){var S=1-c;return S*S*u+2*S*c*f+c*c*h}function tg(c,u,f,h){return-f*(c/=h)*(c-2)+u}var YC=WC;function ng(c,u){for(var f=0;f<u.length;f++){var h=u[f];if(c.immediatePropagationStopped)break;h(c)}}var rg=(function(){function c(u){i(this,c),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=Q({},u||{})}return s(c,[{key:"fire",value:function(u){var f,h=this.global;(f=this.types[u.type])&&ng(u,f),!u.propagationStopped&&h&&(f=h[u.type])&&ng(u,f)}},{key:"on",value:function(u,f){var h=He(u,f);for(u in h)this.types[u]=rt(this.types[u]||[],h[u])}},{key:"off",value:function(u,f){var h=He(u,f);for(u in h){var S=this.types[u];if(S&&S.length)for(var O=0,M=h[u];O<M.length;O++){var A=M[O],B=S.indexOf(A);B!==-1&&S.splice(B,1)}}}},{key:"getRect",value:function(u){return null}}]),c})(),KC=(function(){function c(u){i(this,c),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=u,ve(this,u)}return s(c,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),c})();function _a(c){return k.object(c)?{capture:!!c.capture,passive:!!c.passive}:{capture:!!c,passive:!1}}function sl(c,u){return c===u||(typeof c=="boolean"?!!u.capture===c&&!u.passive:!!c.capture==!!u.capture&&!!c.passive==!!u.passive)}var GC={id:"events",install:function(c){var u,f=[],h={},S=[],O={add:M,remove:A,addDelegate:function(j,ie,ye,Pe,Me){var Ae=_a(Me);if(!h[ye]){h[ye]=[];for(var Xe=0;Xe<S.length;Xe++){var je=S[Xe];M(je,ye,B),M(je,ye,V,!0)}}var tt=h[ye],ht=_t(tt,(function(St){return St.selector===j&&St.context===ie}));ht||(ht={selector:j,context:ie,listeners:[]},tt.push(ht)),ht.listeners.push({func:Pe,options:Ae})},removeDelegate:function(j,ie,ye,Pe,Me){var Ae,Xe=_a(Me),je=h[ye],tt=!1;if(je)for(Ae=je.length-1;Ae>=0;Ae--){var ht=je[Ae];if(ht.selector===j&&ht.context===ie){for(var St=ht.listeners,lt=St.length-1;lt>=0;lt--){var gt=St[lt];if(gt.func===Pe&&sl(gt.options,Xe)){St.splice(lt,1),St.length||(je.splice(Ae,1),A(ie,ye,B),A(ie,ye,V,!0)),tt=!0;break}}if(tt)break}}},delegateListener:B,delegateUseCapture:V,delegatedEvents:h,documents:S,targets:f,supportsOptions:!1,supportsPassive:!1};function M(j,ie,ye,Pe){if(j.addEventListener){var Me=_a(Pe),Ae=_t(f,(function(Xe){return Xe.eventTarget===j}));Ae||(Ae={eventTarget:j,events:{}},f.push(Ae)),Ae.events[ie]||(Ae.events[ie]=[]),_t(Ae.events[ie],(function(Xe){return Xe.func===ye&&sl(Xe.options,Me)}))||(j.addEventListener(ie,ye,O.supportsOptions?Me:Me.capture),Ae.events[ie].push({func:ye,options:Me}))}}function A(j,ie,ye,Pe){if(j.addEventListener&&j.removeEventListener){var Me=st(f,(function(pn){return pn.eventTarget===j})),Ae=f[Me];if(Ae&&Ae.events)if(ie!=="all"){var Xe=!1,je=Ae.events[ie];if(je){if(ye==="all"){for(var tt=je.length-1;tt>=0;tt--){var ht=je[tt];A(j,ie,ht.func,ht.options)}return}for(var St=_a(Pe),lt=0;lt<je.length;lt++){var gt=je[lt];if(gt.func===ye&&sl(gt.options,St)){j.removeEventListener(ie,ye,O.supportsOptions?St:St.capture),je.splice(lt,1),je.length===0&&(delete Ae.events[ie],Xe=!0);break}}}Xe&&!Object.keys(Ae.events).length&&f.splice(Me,1)}else for(ie in Ae.events)Ae.events.hasOwnProperty(ie)&&A(j,ie,"all")}}function B(j,ie){for(var ye=_a(ie),Pe=new KC(j),Me=h[j.type],Ae=xe(j)[0],Xe=Ae;k.element(Xe);){for(var je=0;je<Me.length;je++){var tt=Me[je],ht=tt.selector,St=tt.context;if(Ee(Xe,ht)&&X(St,Ae)&&X(St,Xe)){var lt=tt.listeners;Pe.currentTarget=Xe;for(var gt=0;gt<lt.length;gt++){var pn=lt[gt];sl(pn.options,ye)&&pn.func(Pe)}}}Xe=ce(Xe)}}function V(j){return B(j,!0)}return(u=c.document)==null||u.createElement("div").addEventListener("test",null,{get capture(){return O.supportsOptions=!0},get passive(){return O.supportsPassive=!0}}),c.events=O,O}},Fu={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(c){for(var u=0,f=Fu.methodOrder;u<f.length;u++){var h=f[u],S=Fu[h](c);if(S)return S}return null},simulationResume:function(c){var u=c.pointerType,f=c.eventType,h=c.eventTarget,S=c.scope;if(!/down|start/i.test(f))return null;for(var O=0,M=S.interactions.list;O<M.length;O++){var A=M[O],B=h;if(A.simulation&&A.simulation.allowResume&&A.pointerType===u)for(;B;){if(B===A.element)return A;B=ce(B)}}return null},mouseOrPen:function(c){var u,f=c.pointerId,h=c.pointerType,S=c.eventType,O=c.scope;if(h!=="mouse"&&h!=="pen")return null;for(var M=0,A=O.interactions.list;M<A.length;M++){var B=A[M];if(B.pointerType===h){if(B.simulation&&!og(B,f))continue;if(B.interacting())return B;u||(u=B)}}if(u)return u;for(var V=0,j=O.interactions.list;V<j.length;V++){var ie=j[V];if(!(ie.pointerType!==h||/down/i.test(S)&&ie.simulation))return ie}return null},hasPointer:function(c){for(var u=c.pointerId,f=0,h=c.scope.interactions.list;f<h.length;f++){var S=h[f];if(og(S,u))return S}return null},idle:function(c){for(var u=c.pointerType,f=0,h=c.scope.interactions.list;f<h.length;f++){var S=h[f];if(S.pointers.length===1){var O=S.interactable;if(O&&(!O.options.gesture||!O.options.gesture.enabled))continue}else if(S.pointers.length>=2)continue;if(!S.interacting()&&u===S.pointerType)return S}return null}};function og(c,u){return c.pointers.some((function(f){return f.id===u}))}var XC=Fu,Bu=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function ag(c,u){return function(f){var h=u.interactions.list,S=de(f),O=xe(f),M=O[0],A=O[1],B=[];if(/^touch/.test(f.type)){u.prevTouchTime=u.now();for(var V=0,j=f.changedTouches;V<j.length;V++){var ie=j[V],ye={pointer:ie,pointerId:ge(ie),pointerType:S,eventType:f.type,eventTarget:M,curEventTarget:A,scope:u},Pe=ig(ye);B.push([ye.pointer,ye.eventTarget,ye.curEventTarget,Pe])}}else{var Me=!1;if(!Y.supportsPointerEvent&&/mouse/.test(f.type)){for(var Ae=0;Ae<h.length&&!Me;Ae++)Me=h[Ae].pointerType!=="mouse"&&h[Ae].pointerIsDown;Me=Me||u.now()-u.prevTouchTime<500||f.timeStamp===0}if(!Me){var Xe={pointer:f,pointerId:ge(f),pointerType:S,eventType:f.type,curEventTarget:A,eventTarget:M,scope:u},je=ig(Xe);B.push([Xe.pointer,Xe.eventTarget,Xe.curEventTarget,je])}}for(var tt=0;tt<B.length;tt++){var ht=B[tt],St=ht[0],lt=ht[1],gt=ht[2];ht[3][c](St,f,lt,gt)}}}function ig(c){var u=c.pointerType,f=c.scope,h={interaction:XC.search(c),searchDetails:c};return f.fire("interactions:find",h),h.interaction||f.interactions.new({pointerType:u})}function zu(c,u){var f=c.doc,h=c.scope,S=c.options,O=h.interactions.docEvents,M=h.events,A=M[u];for(var B in h.browser.isIOS&&!S.events&&(S.events={passive:!1}),M.delegatedEvents)A(f,B,M.delegateListener),A(f,B,M.delegateUseCapture,!0);for(var V=S&&S.events,j=0;j<O.length;j++){var ie=O[j];A(f,ie.type,ie.listener,V)}}var JC={id:"core/interactions",install:function(c){for(var u={},f=0;f<Bu.length;f++){var h=Bu[f];u[h]=ag(h,c)}var S,O=Y.pEventTypes;function M(){for(var A=0,B=c.interactions.list;A<B.length;A++){var V=B[A];if(V.pointerIsDown&&V.pointerType==="touch"&&!V._interacting)for(var j=function(){var Pe=ye[ie];c.documents.some((function(Me){return X(Me.doc,Pe.downTarget)}))||V.removePointer(Pe.pointer,Pe.event)},ie=0,ye=V.pointers;ie<ye.length;ie++)j()}}(S=P.PointerEvent?[{type:O.down,listener:M},{type:O.down,listener:u.pointerDown},{type:O.move,listener:u.pointerMove},{type:O.up,listener:u.pointerUp},{type:O.cancel,listener:u.pointerUp}]:[{type:"mousedown",listener:u.pointerDown},{type:"mousemove",listener:u.pointerMove},{type:"mouseup",listener:u.pointerUp},{type:"touchstart",listener:M},{type:"touchstart",listener:u.pointerDown},{type:"touchmove",listener:u.pointerMove},{type:"touchend",listener:u.pointerUp},{type:"touchcancel",listener:u.pointerUp}]).push({type:"blur",listener:function(A){for(var B=0,V=c.interactions.list;B<V.length;B++)V[B].documentBlur(A)}}),c.prevTouchTime=0,c.Interaction=(function(A){m(V,A);var B=_(V);function V(){return i(this,V),B.apply(this,arguments)}return s(V,[{key:"pointerMoveTolerance",get:function(){return c.interactions.pointerMoveTolerance},set:function(j){c.interactions.pointerMoveTolerance=j}},{key:"_now",value:function(){return c.now()}}]),V})(HC),c.interactions={list:[],new:function(A){A.scopeFire=function(V,j){return c.fire(V,j)};var B=new c.Interaction(A);return c.interactions.list.push(B),B},listeners:u,docEvents:S,pointerMoveTolerance:1},c.usePlugin(Yh)},listeners:{"scope:add-document":function(c){return zu(c,"add")},"scope:remove-document":function(c){return zu(c,"remove")},"interactable:unset":function(c,u){for(var f=c.interactable,h=u.interactions.list.length-1;h>=0;h--){var S=u.interactions.list[h];S.interactable===f&&(S.stop(),u.fire("interactions:destroy",{interaction:S}),S.destroy(),u.interactions.list.length>2&&u.interactions.list.splice(h,1))}}},onDocSignal:zu,doOnInteractions:ag,methodNames:Bu},ZC=JC,xr=(function(c){return c[c.On=0]="On",c[c.Off=1]="Off",c})(xr||{}),VC=(function(){function c(u,f,h,S){i(this,c),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new rg,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=f.actions,this.target=u,this._context=f.context||h,this._win=y(we(u)?this._context:u),this._doc=this._win.document,this._scopeEvents=S,this.set(f)}return s(c,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(u,f){return k.func(f.onstart)&&this.on("".concat(u,"start"),f.onstart),k.func(f.onmove)&&this.on("".concat(u,"move"),f.onmove),k.func(f.onend)&&this.on("".concat(u,"end"),f.onend),k.func(f.oninertiastart)&&this.on("".concat(u,"inertiastart"),f.oninertiastart),this}},{key:"updatePerActionListeners",value:function(u,f,h){var S,O=this,M=(S=this._actions.map[u])==null?void 0:S.filterEventType,A=function(B){return(M==null||M(B))&&al(B,O._actions)};(k.array(f)||k.object(f))&&this._onOff(xr.Off,u,f,void 0,A),(k.array(h)||k.object(h))&&this._onOff(xr.On,u,h,void 0,A)}},{key:"setPerAction",value:function(u,f){var h=this._defaults;for(var S in f){var O=S,M=this.options[u],A=f[O];O==="listeners"&&this.updatePerActionListeners(u,M.listeners,A),k.array(A)?M[O]=Ge(A):k.plainObject(A)?(M[O]=Q(M[O]||{},$o(A)),k.object(h.perAction[O])&&"enabled"in h.perAction[O]&&(M[O].enabled=A.enabled!==!1)):k.bool(A)&&k.object(h.perAction[O])?M[O].enabled=A:M[O]=A}}},{key:"getRect",value:function(u){return u=u||(k.element(this.target)?this.target:null),k.string(this.target)&&(u=u||this._context.querySelector(this.target)),W(u)}},{key:"rectChecker",value:function(u){var f=this;return k.func(u)?(this.getRect=function(h){var S=Q({},u.apply(f,h));return"width"in S||(S.width=S.right-S.left,S.height=S.bottom-S.top),S},this):u===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(u,f){if(we(f)||k.object(f)){for(var h in this.options[u]=f,this._actions.map)this.options[h][u]=f;return this}return this.options[u]}},{key:"origin",value:function(u){return this._backCompatOption("origin",u)}},{key:"deltaSource",value:function(u){return u==="page"||u==="client"?(this.options.deltaSource=u,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var u=this.target;return k.string(u)?Array.from(this._context.querySelectorAll(u)):k.func(u)&&u.getAllElements?u.getAllElements():k.element(u)?[u]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(u){return this._context===u.ownerDocument||X(this._context,u)}},{key:"testIgnoreAllow",value:function(u,f,h){return!this.testIgnore(u.ignoreFrom,f,h)&&this.testAllow(u.allowFrom,f,h)}},{key:"testAllow",value:function(u,f,h){return!u||!!k.element(h)&&(k.string(u)?ae(h,u,f):!!k.element(u)&&X(u,h))}},{key:"testIgnore",value:function(u,f,h){return!(!u||!k.element(h))&&(k.string(u)?ae(h,u,f):!!k.element(u)&&X(u,h))}},{key:"fire",value:function(u){return this.events.fire(u),this}},{key:"_onOff",value:function(u,f,h,S,O){k.object(f)&&!k.array(f)&&(S=h,h=null);var M=He(f,h,O);for(var A in M){A==="wheel"&&(A=Y.wheelEvent);for(var B=0,V=M[A];B<V.length;B++){var j=V[B];al(A,this._actions)?this.events[u===xr.On?"on":"off"](A,j):k.string(this.target)?this._scopeEvents[u===xr.On?"addDelegate":"removeDelegate"](this.target,this._context,A,j,S):this._scopeEvents[u===xr.On?"add":"remove"](this.target,A,j,S)}}return this}},{key:"on",value:function(u,f,h){return this._onOff(xr.On,u,f,h)}},{key:"off",value:function(u,f,h){return this._onOff(xr.Off,u,f,h)}},{key:"set",value:function(u){var f=this._defaults;for(var h in k.object(u)||(u={}),this.options=$o(f.base),this._actions.methodDict){var S=h,O=this._actions.methodDict[S];this.options[S]={},this.setPerAction(S,Q(Q({},f.perAction),f.actions[S])),this[O](u[S])}for(var M in u)M!=="getRect"?k.func(this[M])&&this[M](u[M]):this.rectChecker(u.getRect);return this}},{key:"unset",value:function(){if(k.string(this.target))for(var u in this._scopeEvents.delegatedEvents)for(var f=this._scopeEvents.delegatedEvents[u],h=f.length-1;h>=0;h--){var S=f[h],O=S.selector,M=S.context,A=S.listeners;O===this.target&&M===this._context&&f.splice(h,1);for(var B=A.length-1;B>=0;B--)this._scopeEvents.removeDelegate(this.target,this._context,u,A[B][0],A[B][1])}else this._scopeEvents.remove(this.target,"all")}}]),c})(),ex=(function(){function c(u){var f=this;i(this,c),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=u,u.addListeners({"interactable:unset":function(h){var S=h.interactable,O=S.target,M=k.string(O)?f.selectorMap[O]:O[f.scope.id],A=st(M,(function(B){return B===S}));M.splice(A,1)}})}return s(c,[{key:"new",value:function(u,f){f=Q(f||{},{actions:this.scope.actions});var h=new this.scope.Interactable(u,f,this.scope.document,this.scope.events);return this.scope.addDocument(h._doc),this.list.push(h),k.string(u)?(this.selectorMap[u]||(this.selectorMap[u]=[]),this.selectorMap[u].push(h)):(h.target[this.scope.id]||Object.defineProperty(u,this.scope.id,{value:[],configurable:!0}),u[this.scope.id].push(h)),this.scope.fire("interactable:new",{target:u,options:f,interactable:h,win:this.scope._win}),h}},{key:"getExisting",value:function(u,f){var h=f&&f.context||this.scope.document,S=k.string(u),O=S?this.selectorMap[u]:u[this.scope.id];if(O)return _t(O,(function(M){return M._context===h&&(S||M.inContext(u))}))}},{key:"forEachMatch",value:function(u,f){for(var h=0,S=this.list;h<S.length;h++){var O=S[h],M=void 0;if((k.string(O.target)?k.element(u)&&Ee(u,O.target):u===O.target)&&O.inContext(u)&&(M=f(O)),M!==void 0)return M}}}]),c})(),tx=(function(){function c(){var u=this;i(this,c),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=Y,this.defaults=$o(Gh),this.Eventable=rg,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=(function(h){var S=function O(M,A){var B=h.interactables.getExisting(M,A);return B||((B=h.interactables.new(M,A)).events.global=O.globalEvents),B};return S.getPointerAverage=dt,S.getTouchBBox=ut,S.getTouchDistance=fe,S.getTouchAngle=Ce,S.getElementRect=W,S.getElementClientRect=be,S.matchesSelector=Ee,S.closest=Z,S.globalEvents={},S.version="1.10.27",S.scope=h,S.use=function(O,M){return this.scope.usePlugin(O,M),this},S.isSet=function(O,M){return!!this.scope.interactables.get(O,M&&M.context)},S.on=wr((function(O,M,A){if(k.string(O)&&O.search(" ")!==-1&&(O=O.trim().split(/ +/)),k.array(O)){for(var B=0,V=O;B<V.length;B++){var j=V[B];this.on(j,M,A)}return this}if(k.object(O)){for(var ie in O)this.on(ie,O[ie],M);return this}return al(O,this.scope.actions)?this.globalEvents[O]?this.globalEvents[O].push(M):this.globalEvents[O]=[M]:this.scope.events.add(this.scope.document,O,M,{options:A}),this}),"The interact.on() method is being deprecated"),S.off=wr((function(O,M,A){if(k.string(O)&&O.search(" ")!==-1&&(O=O.trim().split(/ +/)),k.array(O)){for(var B=0,V=O;B<V.length;B++){var j=V[B];this.off(j,M,A)}return this}if(k.object(O)){for(var ie in O)this.off(ie,O[ie],M);return this}var ye;return al(O,this.scope.actions)?O in this.globalEvents&&(ye=this.globalEvents[O].indexOf(M))!==-1&&this.globalEvents[O].splice(ye,1):this.scope.events.remove(this.scope.document,O,M,A),this}),"The interact.off() method is being deprecated"),S.debug=function(){return this.scope},S.supportsTouch=function(){return Y.supportsTouch},S.supportsPointerEvent=function(){return Y.supportsPointerEvent},S.stop=function(){for(var O=0,M=this.scope.interactions.list;O<M.length;O++)M[O].stop();return this},S.pointerMoveTolerance=function(O){return k.number(O)?(this.scope.interactions.pointerMoveTolerance=O,this):this.scope.interactions.pointerMoveTolerance},S.addDocument=function(O,M){this.scope.addDocument(O,M)},S.removeDocument=function(O){this.scope.removeDocument(O)},S})(this),this.InteractEvent=Du,this.Interactable=void 0,this.interactables=new ex(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(h){return u.removeDocument(h.target)};var f=this;this.Interactable=(function(h){m(O,h);var S=_(O);function O(){return i(this,O),S.apply(this,arguments)}return s(O,[{key:"_defaults",get:function(){return f.defaults}},{key:"set",value:function(M){return g(v(O.prototype),"set",this).call(this,M),f.fire("interactable:set",{options:M,interactable:this}),this}},{key:"unset",value:function(){g(v(O.prototype),"unset",this).call(this);var M=f.interactables.list.indexOf(this);M<0||(f.interactables.list.splice(M,1),f.fire("interactable:unset",{interactable:this}))}}]),O})(VC)}return s(c,[{key:"addListeners",value:function(u,f){this.listenerMaps.push({id:f,map:u})}},{key:"fire",value:function(u,f){for(var h=0,S=this.listenerMaps;h<S.length;h++){var O=S[h].map[u];if(O&&O(f,this,u)===!1)return!1}}},{key:"init",value:function(u){return this.isInitialized?this:(function(f,h){return f.isInitialized=!0,k.window(h)&&x(h),P.init(h),Y.init(h),mt.init(h),f.window=h,f.document=h.document,f.usePlugin(ZC),f.usePlugin(GC),f})(this,u)}},{key:"pluginIsInstalled",value:function(u){var f=u.id;return f?!!this._plugins.map[f]:this._plugins.list.indexOf(u)!==-1}},{key:"usePlugin",value:function(u,f){if(!this.isInitialized)return this;if(this.pluginIsInstalled(u))return this;if(u.id&&(this._plugins.map[u.id]=u),this._plugins.list.push(u),u.install&&u.install(this,f),u.listeners&&u.before){for(var h=0,S=this.listenerMaps.length,O=u.before.reduce((function(A,B){return A[B]=!0,A[lg(B)]=!0,A}),{});h<S;h++){var M=this.listenerMaps[h].id;if(M&&(O[M]||O[lg(M)]))break}this.listenerMaps.splice(h,0,{id:u.id,map:u.listeners})}else u.listeners&&this.listenerMaps.push({id:u.id,map:u.listeners});return this}},{key:"addDocument",value:function(u,f){if(this.getDocIndex(u)!==-1)return!1;var h=y(u);f=f?Q({},f):{},this.documents.push({doc:u,options:f}),this.events.documents.push(u),u!==this.document&&this.events.add(h,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:u,window:h,scope:this,options:f})}},{key:"removeDocument",value:function(u){var f=this.getDocIndex(u),h=y(u),S=this.documents[f].options;this.events.remove(h,"unload",this.onWindowUnload),this.documents.splice(f,1),this.events.documents.splice(f,1),this.fire("scope:remove-document",{doc:u,window:h,scope:this,options:S})}},{key:"getDocIndex",value:function(u){for(var f=0;f<this.documents.length;f++)if(this.documents[f].doc===u)return f;return-1}},{key:"getDocOptions",value:function(u){var f=this.getDocIndex(u);return f===-1?null:this.documents[f].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),c})();function lg(c){return c&&c.replace(/\/.*$/,"")}var sg=new tx,gn=sg.interactStatic,nx=typeof globalThis<"u"?globalThis:window;sg.init(nx);var rx=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(c){var u=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(h){var S=h[0],O=h[1];return S in c||O in c})),f=function(h,S){for(var O=c.range,M=c.limits,A=M===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:M,B=c.offset,V=B===void 0?{x:0,y:0}:B,j={range:O,grid:c,x:null,y:null},ie=0;ie<u.length;ie++){var ye=u[ie],Pe=ye[0],Me=ye[1],Ae=Math.round((h-V.x)/c[Pe]),Xe=Math.round((S-V.y)/c[Me]);j[Pe]=Math.max(A.left,Math.min(A.right,Ae*c[Pe]+V.x)),j[Me]=Math.max(A.top,Math.min(A.bottom,Xe*c[Me]+V.y))}return j};return f.grid=c,f.coordFields=u,f}}),ox={id:"snappers",install:function(c){var u=c.interactStatic;u.snappers=Q(u.snappers||{},rx),u.createSnapGrid=u.snappers.grid}},ax=ox,ix={start:function(c){var u=c.state,f=c.rect,h=c.edges,S=c.pageCoords,O=u.options,M=O.ratio,A=O.enabled,B=u.options,V=B.equalDelta,j=B.modifiers;M==="preserve"&&(M=f.width/f.height),u.startCoords=Q({},S),u.startRect=Q({},f),u.ratio=M,u.equalDelta=V;var ie=u.linkedEdges={top:h.top||h.left&&!h.bottom,left:h.left||h.top&&!h.right,bottom:h.bottom||h.right&&!h.top,right:h.right||h.bottom&&!h.left};if(u.xIsPrimaryAxis=!(!h.left&&!h.right),u.equalDelta){var ye=(ie.left?1:-1)*(ie.top?1:-1);u.edgeSign={x:ye,y:ye}}else u.edgeSign={x:ie.left?-1:1,y:ie.top?-1:1};if(A!==!1&&Q(h,ie),j!=null&&j.length){var Pe=new Nu(c.interaction);Pe.copyFrom(c.interaction.modification),Pe.prepareStates(j),u.subModification=Pe,Pe.startAll(o({},c))}},set:function(c){var u=c.state,f=c.rect,h=c.coords,S=u.linkedEdges,O=Q({},h),M=u.equalDelta?lx:sx;if(Q(c.edges,S),M(u,u.xIsPrimaryAxis,h,f),!u.subModification)return null;var A=Q({},f);Re(S,A,{x:h.x-O.x,y:h.y-O.y});var B=u.subModification.setAll(o(o({},c),{},{rect:A,edges:S,pageCoords:h,prevCoords:h,prevRect:A})),V=B.delta;return B.changed&&(M(u,Math.abs(V.x)>Math.abs(V.y),B.coords,B.rect),Q(h,B.coords)),B.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function lx(c,u,f){var h=c.startCoords,S=c.edgeSign;u?f.y=h.y+(f.x-h.x)*S.y:f.x=h.x+(f.y-h.y)*S.x}function sx(c,u,f,h){var S=c.startRect,O=c.startCoords,M=c.ratio,A=c.edgeSign;if(u){var B=h.width/M;f.y=O.y+(B-S.height)*A.y}else{var V=h.height*M;f.x=O.x+(V-S.width)*A.x}}var ux=Cr(ix,"aspectRatio"),ug=function(){};ug._defaults={};var ul=ug;function eo(c,u,f){return k.func(c)?Le(c,u.interactable,u.element,[f.x,f.y,u]):Le(c,u.interactable,u.element)}var cl={start:function(c){var u=c.rect,f=c.startOffset,h=c.state,S=c.interaction,O=c.pageCoords,M=h.options,A=M.elementRect,B=Q({left:0,top:0,right:0,bottom:0},M.offset||{});if(u&&A){var V=eo(M.restriction,S,O);if(V){var j=V.right-V.left-u.width,ie=V.bottom-V.top-u.height;j<0&&(B.left+=j,B.right+=j),ie<0&&(B.top+=ie,B.bottom+=ie)}B.left+=f.left-u.width*A.left,B.top+=f.top-u.height*A.top,B.right+=f.right-u.width*(1-A.right),B.bottom+=f.bottom-u.height*(1-A.bottom)}h.offset=B},set:function(c){var u=c.coords,f=c.interaction,h=c.state,S=h.options,O=h.offset,M=eo(S.restriction,f,u);if(M){var A=(function(B){return!B||"left"in B&&"top"in B||((B=Q({},B)).left=B.x||0,B.top=B.y||0,B.right=B.right||B.left+B.width,B.bottom=B.bottom||B.top+B.height),B})(M);u.x=Math.max(Math.min(A.right-O.right,u.x),A.left+O.left),u.y=Math.max(Math.min(A.bottom-O.bottom,u.y),A.top+O.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},cx=Cr(cl,"restrict"),cg={top:1/0,left:1/0,bottom:-1/0,right:-1/0},dg={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function fg(c,u){for(var f=0,h=["top","left","bottom","right"];f<h.length;f++){var S=h[f];S in c||(c[S]=u[S])}return c}var Sa={noInner:cg,noOuter:dg,start:function(c){var u,f=c.interaction,h=c.startOffset,S=c.state,O=S.options;O&&(u=le(eo(O.offset,f,f.coords.start.page))),u=u||{x:0,y:0},S.offset={top:u.y+h.top,left:u.x+h.left,bottom:u.y-h.bottom,right:u.x-h.right}},set:function(c){var u=c.coords,f=c.edges,h=c.interaction,S=c.state,O=S.offset,M=S.options;if(f){var A=Q({},u),B=eo(M.inner,h,A)||{},V=eo(M.outer,h,A)||{};fg(B,cg),fg(V,dg),f.top?u.y=Math.min(Math.max(V.top+O.top,A.y),B.top+O.top):f.bottom&&(u.y=Math.max(Math.min(V.bottom+O.bottom,A.y),B.bottom+O.bottom)),f.left?u.x=Math.min(Math.max(V.left+O.left,A.x),B.left+O.left):f.right&&(u.x=Math.max(Math.min(V.right+O.right,A.x),B.right+O.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},dx=Cr(Sa,"restrictEdges"),fx=Q({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(c){}},cl.defaults),vx=Cr({start:cl.start,set:cl.set,defaults:fx},"restrictRect"),mx={width:-1/0,height:-1/0},hx={width:1/0,height:1/0},gx=Cr({start:function(c){return Sa.start(c)},set:function(c){var u=c.interaction,f=c.state,h=c.rect,S=c.edges,O=f.options;if(S){var M=qe(eo(O.min,u,c.coords))||mx,A=qe(eo(O.max,u,c.coords))||hx;f.options={endOnly:O.endOnly,inner:Q({},Sa.noInner),outer:Q({},Sa.noOuter)},S.top?(f.options.inner.top=h.bottom-M.height,f.options.outer.top=h.bottom-A.height):S.bottom&&(f.options.inner.bottom=h.top+M.height,f.options.outer.bottom=h.top+A.height),S.left?(f.options.inner.left=h.right-M.width,f.options.outer.left=h.right-A.width):S.right&&(f.options.inner.right=h.left+M.width,f.options.outer.right=h.left+A.width),Sa.set(c),f.options=O}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Hu={start:function(c){var u,f=c.interaction,h=c.interactable,S=c.element,O=c.rect,M=c.state,A=c.startOffset,B=M.options,V=B.offsetWithOrigin?(function(ye){var Pe=ye.interaction.element,Me=le(Le(ye.state.options.origin,null,null,[Pe])),Ae=Me||Fe(ye.interactable,Pe,ye.interaction.prepared.name);return Ae})(c):{x:0,y:0};if(B.offset==="startCoords")u={x:f.coords.start.page.x,y:f.coords.start.page.y};else{var j=Le(B.offset,h,S,[f]);(u=le(j)||{x:0,y:0}).x+=V.x,u.y+=V.y}var ie=B.relativePoints;M.offsets=O&&ie&&ie.length?ie.map((function(ye,Pe){return{index:Pe,relativePoint:ye,x:A.left-O.width*ye.x+u.x,y:A.top-O.height*ye.y+u.y}})):[{index:0,relativePoint:null,x:u.x,y:u.y}]},set:function(c){var u=c.interaction,f=c.coords,h=c.state,S=h.options,O=h.offsets,M=Fe(u.interactable,u.element,u.prepared.name),A=Q({},f),B=[];S.offsetWithOrigin||(A.x-=M.x,A.y-=M.y);for(var V=0,j=O;V<j.length;V++)for(var ie=j[V],ye=A.x-ie.x,Pe=A.y-ie.y,Me=0,Ae=S.targets.length;Me<Ae;Me++){var Xe=S.targets[Me],je=void 0;(je=k.func(Xe)?Xe(ye,Pe,u._proxy,ie,Me):Xe)&&B.push({x:(k.number(je.x)?je.x:ye)+ie.x,y:(k.number(je.y)?je.y:Pe)+ie.y,range:k.number(je.range)?je.range:S.range,source:Xe,index:Me,offset:ie})}for(var tt={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},ht=0;ht<B.length;ht++){var St=B[ht],lt=St.range,gt=St.x-A.x,pn=St.y-A.y,Ft=z(gt,pn),Cn=Ft<=lt;lt===1/0&&tt.inRange&&tt.range!==1/0&&(Cn=!1),tt.target&&!(Cn?tt.inRange&<!==1/0?Ft/lt<tt.distance/tt.range:lt===1/0&&tt.range!==1/0||Ft<tt.distance:!tt.inRange&&Ft<tt.distance)||(tt.target=St,tt.distance=Ft,tt.range=lt,tt.inRange=Cn,tt.delta.x=gt,tt.delta.y=pn)}return tt.inRange&&(f.x=tt.target.x,f.y=tt.target.y),h.closest=tt,tt},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},px=Cr(Hu,"snap"),dl={start:function(c){var u=c.state,f=c.edges,h=u.options;if(!f)return null;c.state={options:{targets:null,relativePoints:[{x:f.left?0:1,y:f.top?0:1}],offset:h.offset||"self",origin:{x:0,y:0},range:h.range}},u.targetFields=u.targetFields||[["width","height"],["x","y"]],Hu.start(c),u.offsets=c.state.offsets,c.state=u},set:function(c){var u=c.interaction,f=c.state,h=c.coords,S=f.options,O=f.offsets,M={x:h.x-O[0].x,y:h.y-O[0].y};f.options=Q({},S),f.options.targets=[];for(var A=0,B=S.targets||[];A<B.length;A++){var V=B[A],j=void 0;if(j=k.func(V)?V(M.x,M.y,u):V){for(var ie=0,ye=f.targetFields;ie<ye.length;ie++){var Pe=ye[ie],Me=Pe[0],Ae=Pe[1];if(Me in j||Ae in j){j.x=j[Me],j.y=j[Ae];break}}f.options.targets.push(j)}}var Xe=Hu.set(c);return f.options=S,Xe},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},bx=Cr(dl,"snapSize"),ju={aspectRatio:ux,restrictEdges:dx,restrict:cx,restrictRect:vx,restrictSize:gx,snapEdges:Cr({start:function(c){var u=c.edges;return u?(c.state.targetFields=c.state.targetFields||[[u.left?"left":"right",u.top?"top":"bottom"]],dl.start(c)):null},set:dl.set,defaults:Q($o(dl.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:px,snapSize:bx,spring:ul,avoid:ul,transform:ul,rubberband:ul},yx={id:"modifiers",install:function(c){var u=c.interactStatic;for(var f in c.usePlugin(Kh),c.usePlugin(ax),u.modifiers=ju,ju){var h=ju[f],S=h._defaults,O=h._methods;S._methods=O,c.defaults.perAction[f]=S}}},_x=yx,vg=(function(c){m(f,c);var u=_(f);function f(h,S,O,M,A,B){var V;if(i(this,f),ve(p(V=u.call(this,A)),O),O!==S&&ve(p(V),S),V.timeStamp=B,V.originalEvent=O,V.type=h,V.pointerId=ge(S),V.pointerType=de(S),V.target=M,V.currentTarget=null,h==="tap"){var j=A.getPointerIndex(S);V.dt=V.timeStamp-A.pointers[j].downTime;var ie=V.timeStamp-A.tapTime;V.double=!!A.prevTap&&A.prevTap.type!=="doubletap"&&A.prevTap.target===V.target&&ie<500}else h==="doubletap"&&(V.dt=S.timeStamp-A.tapTime,V.double=!0);return V}return s(f,[{key:"_subtractOrigin",value:function(h){var S=h.x,O=h.y;return this.pageX-=S,this.pageY-=O,this.clientX-=S,this.clientY-=O,this}},{key:"_addOrigin",value:function(h){var S=h.x,O=h.y;return this.pageX+=S,this.pageY+=O,this.clientX+=S,this.clientY+=O,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),f})(ze),wa={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(c){c.pointerEvents=wa,c.defaults.actions.pointerEvents=wa.defaults,Q(c.actions.phaselessTypes,wa.types)},listeners:{"interactions:new":function(c){var u=c.interaction;u.prevTap=null,u.tapTime=0},"interactions:update-pointer":function(c){var u=c.down,f=c.pointerInfo;!u&&f.hold||(f.hold={duration:1/0,timeout:null})},"interactions:move":function(c,u){var f=c.interaction,h=c.pointer,S=c.event,O=c.eventTarget;c.duplicate||f.pointerIsDown&&!f.pointerWasMoved||(f.pointerIsDown&&Uu(c),kr({interaction:f,pointer:h,event:S,eventTarget:O,type:"move"},u))},"interactions:down":function(c,u){(function(f,h){for(var S=f.interaction,O=f.pointer,M=f.event,A=f.eventTarget,B=f.pointerIndex,V=S.pointers[B].hold,j=ne(A),ie={interaction:S,pointer:O,event:M,eventTarget:A,type:"hold",targets:[],path:j,node:null},ye=0;ye<j.length;ye++){var Pe=j[ye];ie.node=Pe,h.fire("pointerEvents:collect-targets",ie)}if(ie.targets.length){for(var Me=1/0,Ae=0,Xe=ie.targets;Ae<Xe.length;Ae++){var je=Xe[Ae].eventable.options.holdDuration;je<Me&&(Me=je)}V.duration=Me,V.timeout=setTimeout((function(){kr({interaction:S,eventTarget:A,pointer:O,event:M,type:"hold"},h)}),Me)}})(c,u),kr(c,u)},"interactions:up":function(c,u){Uu(c),kr(c,u),(function(f,h){var S=f.interaction,O=f.pointer,M=f.event,A=f.eventTarget;S.pointerWasMoved||kr({interaction:S,eventTarget:A,pointer:O,event:M,type:"tap"},h)})(c,u)},"interactions:cancel":function(c,u){Uu(c),kr(c,u)}},PointerEvent:vg,fire:kr,collectEventTargets:mg,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function kr(c,u){var f=c.interaction,h=c.pointer,S=c.event,O=c.eventTarget,M=c.type,A=c.targets,B=A===void 0?mg(c,u):A,V=new vg(M,h,S,O,f,u.now());u.fire("pointerEvents:new",{pointerEvent:V});for(var j={interaction:f,pointer:h,event:S,eventTarget:O,targets:B,type:M,pointerEvent:V},ie=0;ie<B.length;ie++){var ye=B[ie];for(var Pe in ye.props||{})V[Pe]=ye.props[Pe];var Me=Fe(ye.eventable,ye.node);if(V._subtractOrigin(Me),V.eventable=ye.eventable,V.currentTarget=ye.node,ye.eventable.fire(V),V._addOrigin(Me),V.immediatePropagationStopped||V.propagationStopped&&ie+1<B.length&&B[ie+1].node!==V.currentTarget)break}if(u.fire("pointerEvents:fired",j),M==="tap"){var Ae=V.double?kr({interaction:f,pointer:h,event:S,eventTarget:O,type:"doubletap"},u):V;f.prevTap=Ae,f.tapTime=Ae.timeStamp}return V}function mg(c,u){var f=c.interaction,h=c.pointer,S=c.event,O=c.eventTarget,M=c.type,A=f.getPointerIndex(h),B=f.pointers[A];if(M==="tap"&&(f.pointerWasMoved||!B||B.downTarget!==O))return[];for(var V=ne(O),j={interaction:f,pointer:h,event:S,eventTarget:O,type:M,path:V,targets:[],node:null},ie=0;ie<V.length;ie++){var ye=V[ie];j.node=ye,u.fire("pointerEvents:collect-targets",j)}return M==="hold"&&(j.targets=j.targets.filter((function(Pe){var Me,Ae;return Pe.eventable.options.holdDuration===((Me=f.pointers[A])==null||(Ae=Me.hold)==null?void 0:Ae.duration)}))),j.targets}function Uu(c){var u=c.interaction,f=c.pointerIndex,h=u.pointers[f].hold;h&&h.timeout&&(clearTimeout(h.timeout),h.timeout=null)}var Sx=Object.freeze({__proto__:null,default:wa});function wx(c){var u=c.interaction;u.holdIntervalHandle&&(clearInterval(u.holdIntervalHandle),u.holdIntervalHandle=null)}var Cx={id:"pointer-events/holdRepeat",install:function(c){c.usePlugin(wa);var u=c.pointerEvents;u.defaults.holdRepeatInterval=0,u.types.holdrepeat=c.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(c,u){return c["pointerEvents:".concat(u)]=wx,c}),{"pointerEvents:new":function(c){var u=c.pointerEvent;u.type==="hold"&&(u.count=(u.count||0)+1)},"pointerEvents:fired":function(c,u){var f=c.interaction,h=c.pointerEvent,S=c.eventTarget,O=c.targets;if(h.type==="hold"&&O.length){var M=O[0].eventable.options.holdRepeatInterval;M<=0||(f.holdIntervalHandle=setTimeout((function(){u.pointerEvents.fire({interaction:f,eventTarget:S,type:"hold",pointer:h,event:h},u)}),M))}}})},xx=Cx,kx={id:"pointer-events/interactableTargets",install:function(c){var u=c.Interactable;u.prototype.pointerEvents=function(h){return Q(this.events.options,h),this};var f=u.prototype._backCompatOption;u.prototype._backCompatOption=function(h,S){var O=f.call(this,h,S);return O===this&&(this.events.options[h]=S),O}},listeners:{"pointerEvents:collect-targets":function(c,u){var f=c.targets,h=c.node,S=c.type,O=c.eventTarget;u.interactables.forEachMatch(h,(function(M){var A=M.events,B=A.options;A.types[S]&&A.types[S].length&&M.testIgnoreAllow(B,h,O)&&f.push({node:h,eventable:A,props:{interactable:M}})}))},"interactable:new":function(c){var u=c.interactable;u.events.getRect=function(f){return u.getRect(f)}},"interactable:set":function(c,u){var f=c.interactable,h=c.options;Q(f.events.options,u.pointerEvents.defaults),Q(f.events.options,h.pointerEvents||{})}}},Ex=kx,Tx={id:"pointer-events",install:function(c){c.usePlugin(Sx),c.usePlugin(xx),c.usePlugin(Ex)}},Ox=Tx,qx={id:"reflow",install:function(c){var u=c.Interactable;c.actions.phases.reflow=!0,u.prototype.reflow=function(f){return(function(h,S,O){for(var M=h.getAllElements(),A=O.window.Promise,B=A?[]:null,V=function(){var ie=M[j],ye=h.getRect(ie);if(!ye)return 1;var Pe,Me=_t(O.interactions.list,(function(je){return je.interacting()&&je.interactable===h&&je.element===ie&&je.prepared.name===S.name}));if(Me)Me.move(),B&&(Pe=Me._reflowPromise||new A((function(je){Me._reflowResolve=je})));else{var Ae=qe(ye),Xe=(function(je){return{coords:je,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}})({page:{x:Ae.x,y:Ae.y},client:{x:Ae.x,y:Ae.y},timeStamp:O.now()});Pe=(function(je,tt,ht,St,lt){var gt=je.interactions.new({pointerType:"reflow"}),pn={interaction:gt,event:lt,pointer:lt,eventTarget:ht,phase:"reflow"};gt.interactable=tt,gt.element=ht,gt.prevEvent=lt,gt.updatePointer(lt,lt,ht,!0),se(gt.coords.delta),No(gt.prepared,St),gt._doPhase(pn);var Ft=je.window,Cn=Ft.Promise,Hn=Cn?new Cn((function(cr){gt._reflowResolve=cr})):void 0;return gt._reflowPromise=Hn,gt.start(St,tt,ht),gt._interacting?(gt.move(pn),gt.end(lt)):(gt.stop(),gt._reflowResolve()),gt.removePointer(lt,lt),Hn})(O,h,ie,S,Xe)}B&&B.push(Pe)},j=0;j<M.length&&!V();j++);return B&&A.all(B).then((function(){return h}))})(this,f,c)}},listeners:{"interactions:stop":function(c,u){var f=c.interaction;f.pointerType==="reflow"&&(f._reflowResolve&&f._reflowResolve(),(function(h,S){h.splice(h.indexOf(S),1)})(u.interactions.list,f))}}},Mx=qx;if(gn.use(Yh),gn.use(Vh),gn.use(Ox),gn.use(YC),gn.use(_x),gn.use(IC),gn.use(We),gn.use(ol),gn.use(Mx),gn.default=gn,a(e)==="object"&&e)try{e.exports=gn}catch{}return gn.default=gn,gn}))})(zo,zo.exports)),zo.exports}var qg=Og();const rc=Eg(qg);var bl=function(e,t){return bl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},bl(e,t)};function qa(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");bl(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function yl(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _l(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),a,i=[],l;try{for(;(t===void 0||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(s){l={error:s}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(l)throw l.error}}return i}function Sl(e,t,n){if(n||arguments.length===2)for(var o=0,a=t.length,i;o<a;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Jn(e){return typeof e=="function"}function oc(e){var t=function(o){Error.call(o),o.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var wl=oc(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
6
|
+
`+n.map(function(o,a){return a+1+") "+o.toString()}).join(`
|
|
7
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function Cl(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Ma=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,o,a,i;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var s=yl(l),d=s.next();!d.done;d=s.next()){var m=d.value;m.remove(this)}}catch(E){t={error:E}}finally{try{d&&!d.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}else l.remove(this);var v=this.initialTeardown;if(Jn(v))try{v()}catch(E){i=E instanceof wl?E.errors:[E]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var p=yl(b),_=p.next();!_.done;_=p.next()){var g=_.value;try{lc(g)}catch(E){i=i??[],E instanceof wl?i=Sl(Sl([],_l(i)),_l(E.errors)):i.push(E)}}}catch(E){o={error:E}}finally{try{_&&!_.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}}if(i)throw new wl(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)lc(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Cl(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Cl(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),ac=Ma.EMPTY;function ic(e){return e instanceof Ma||e&&"closed"in e&&Jn(e.remove)&&Jn(e.add)&&Jn(e.unsubscribe)}function lc(e){Jn(e)?e():e.unsubscribe()}var Mg={Promise:void 0},Pg={setTimeout:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return setTimeout.apply(void 0,Sl([e,t],_l(n)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Ag(e){Pg.setTimeout(function(){throw e})}function sc(){}function Pa(e){e()}var uc=(function(e){qa(t,e);function t(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,ic(n)&&n.add(o)):o.destination=Ig,o}return t.create=function(n,o,a){return new xl(n,o,a)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Ma),Rg=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(o){Aa(o)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(o){Aa(o)}else Aa(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Aa(n)}},e})(),xl=(function(e){qa(t,e);function t(n,o,a){var i=e.call(this)||this,l;return Jn(n)||!n?l={next:n??void 0,error:o??void 0,complete:a??void 0}:l=n,i.destination=new Rg(l),i}return t})(uc);function Aa(e){Ag(e)}function Lg(e){throw e}var Ig={closed:!0,next:sc,error:Lg,complete:sc},Ng=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Dg(e){return e}function $g(e){return e.length===0?Dg:e.length===1?e[0]:function(n){return e.reduce(function(o,a){return a(o)},n)}}var cc=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,o){var a=this,i=Bg(t)?t:new xl(t,n,o);return Pa(function(){var l=a,s=l.operator,d=l.source;i.add(s?s.call(i,d):d?a._subscribe(i):a._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var o=this;return n=dc(n),new n(function(a,i){var l=new xl({next:function(s){try{t(s)}catch(d){i(d),l.unsubscribe()}},error:i,complete:a});o.subscribe(l)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Ng]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return $g(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=dc(t),new t(function(o,a){var i;n.subscribe(function(l){return i=l},function(l){return a(l)},function(){return o(i)})})},e.create=function(t){return new e(t)},e})();function dc(e){var t;return(t=e??Mg.Promise)!==null&&t!==void 0?t:Promise}function Fg(e){return e&&Jn(e.next)&&Jn(e.error)&&Jn(e.complete)}function Bg(e){return e&&e instanceof uc||Fg(e)&&ic(e)}var zg=oc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),fc=(function(e){qa(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var o=new vc(this,this);return o.operator=n,o},t.prototype._throwIfClosed=function(){if(this.closed)throw new zg},t.prototype.next=function(n){var o=this;Pa(function(){var a,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=yl(o.currentObservers),s=l.next();!s.done;s=l.next()){var d=s.value;d.next(n)}}catch(m){a={error:m}}finally{try{s&&!s.done&&(i=l.return)&&i.call(l)}finally{if(a)throw a.error}}}})},t.prototype.error=function(n){var o=this;Pa(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=n;for(var a=o.observers;a.length;)a.shift().error(n)}})},t.prototype.complete=function(){var n=this;Pa(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var o=n.observers;o.length;)o.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var o=this,a=this,i=a.hasError,l=a.isStopped,s=a.observers;return i||l?ac:(this.currentObservers=null,s.push(n),new Ma(function(){o.currentObservers=null,Cl(s,n)}))},t.prototype._checkFinalizedStatuses=function(n){var o=this,a=o.hasError,i=o.thrownError,l=o.isStopped;a?n.error(i):l&&n.complete()},t.prototype.asObservable=function(){var n=new cc;return n.source=this,n},t.create=function(n,o){return new vc(n,o)},t})(cc),vc=(function(e){qa(t,e);function t(n,o){var a=e.call(this)||this;return a.destination=n,a.source=o,a}return t.prototype.next=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.next)===null||a===void 0||a.call(o,n)},t.prototype.error=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.error)===null||a===void 0||a.call(o,n)},t.prototype.complete=function(){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||o===void 0||o.call(n)},t.prototype._subscribe=function(n){var o,a;return(a=(o=this.source)===null||o===void 0?void 0:o.subscribe(n))!==null&&a!==void 0?a:ac},t})(fc);const kl=new fc;function Hg(e,t){const n=r.ref(!1),o=r.ref(null);let a,i=null;function l(v){if(v.key!==e)return;const b=v.data;if(b.type==="close"){n.value=!1;return}n.value=!0,t?.(b)}r.watch(o,v=>{m(),v?.$el&&s(v.$el)},{flush:"post"});function s(v){i=rc(v).draggable({allowFrom:".drag-handle",listeners:{move(b){const p=b.target;if(!(p instanceof HTMLElement||p instanceof SVGElement))return;const _=d(p.getAttribute("data-x"))+b.dx,g=d(p.getAttribute("data-y"))+b.dy;p.style.transform=`translate(${_}px, ${g}px)`,p.setAttribute("data-x",String(_)),p.setAttribute("data-y",String(g))}},modifiers:[rc.modifiers.restrictRect({restriction:"parent",endOnly:!0})]})}function d(v){const b=parseFloat(v??"");return Number.isNaN(b)?0:b}function m(){i?.unset(),i=null}return r.onMounted(()=>{a=kl.subscribe(l)}),r.onUnmounted(()=>{m(),a?.unsubscribe()}),{show:n,dialogRef:o}}function mc(e,t){return function(){return e.apply(t,arguments)}}const{toString:jg}=Object.prototype,{getPrototypeOf:El}=Object,{iterator:Ra,toStringTag:hc}=Symbol,La=(e=>t=>{const n=jg.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),In=e=>(e=e.toLowerCase(),t=>La(t)===e),Ia=e=>t=>typeof t===e,{isArray:ro}=Array,oo=Ia("undefined");function Ho(e){return e!==null&&!oo(e)&&e.constructor!==null&&!oo(e.constructor)&&bn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gc=In("ArrayBuffer");function Ug(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gc(e.buffer),t}const Qg=Ia("string"),bn=Ia("function"),pc=Ia("number"),jo=e=>e!==null&&typeof e=="object",Wg=e=>e===!0||e===!1,Na=e=>{if(La(e)!=="object")return!1;const t=El(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(hc in e)&&!(Ra in e)},Yg=e=>{if(!jo(e)||Ho(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Kg=In("Date"),Gg=In("File"),Xg=e=>!!(e&&typeof e.uri<"u"),Jg=e=>e&&typeof e.getParts<"u",Zg=In("Blob"),Vg=In("FileList"),ep=e=>jo(e)&&bn(e.pipe);function tp(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const bc=tp(),yc=typeof bc.FormData<"u"?bc.FormData:void 0,np=e=>{let t;return e&&(yc&&e instanceof yc||bn(e.append)&&((t=La(e))==="formdata"||t==="object"&&bn(e.toString)&&e.toString()==="[object FormData]"))},rp=In("URLSearchParams"),[op,ap,ip,lp]=["ReadableStream","Request","Response","Headers"].map(In),sp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Uo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,a;if(typeof e!="object"&&(e=[e]),ro(e))for(o=0,a=e.length;o<a;o++)t.call(null,e[o],o,e);else{if(Ho(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let s;for(o=0;o<l;o++)s=i[o],t.call(null,e[s],s,e)}}function _c(e,t){if(Ho(e))return null;t=t.toLowerCase();const n=Object.keys(e);let o=n.length,a;for(;o-- >0;)if(a=n[o],t===a.toLowerCase())return a;return null}const qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Sc=e=>!oo(e)&&e!==qr;function Tl(){const{caseless:e,skipUndefined:t}=Sc(this)&&this||{},n={},o=(a,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const l=e&&_c(n,i)||i;Na(n[l])&&Na(a)?n[l]=Tl(n[l],a):Na(a)?n[l]=Tl({},a):ro(a)?n[l]=a.slice():(!t||!oo(a))&&(n[l]=a)};for(let a=0,i=arguments.length;a<i;a++)arguments[a]&&Uo(arguments[a],o);return n}const up=(e,t,n,{allOwnKeys:o}={})=>(Uo(t,(a,i)=>{n&&bn(a)?Object.defineProperty(e,i,{value:mc(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),cp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),dp=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},fp=(e,t,n,o)=>{let a,i,l;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)l=a[i],(!o||o(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=n!==!1&&El(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},vp=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},mp=e=>{if(!e)return null;if(ro(e))return e;let t=e.length;if(!pc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},hp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&El(Uint8Array)),gp=(e,t)=>{const o=(e&&e[Ra]).call(e);let a;for(;(a=o.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},pp=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},bp=In("HTMLFormElement"),yp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,a){return o.toUpperCase()+a}),wc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_p=In("RegExp"),Cc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Uo(n,(a,i)=>{let l;(l=t(a,i,e))!==!1&&(o[i]=l||a)}),Object.defineProperties(e,o)},Sp=e=>{Cc(e,(t,n)=>{if(bn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(bn(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},wp=(e,t)=>{const n={},o=a=>{a.forEach(i=>{n[i]=!0})};return ro(e)?o(e):o(String(e).split(t)),n},Cp=()=>{},xp=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function kp(e){return!!(e&&bn(e.append)&&e[hc]==="FormData"&&e[Ra])}const Ep=e=>{const t=new Array(10),n=(o,a)=>{if(jo(o)){if(t.indexOf(o)>=0)return;if(Ho(o))return o;if(!("toJSON"in o)){t[a]=o;const i=ro(o)?[]:{};return Uo(o,(l,s)=>{const d=n(l,a+1);!oo(d)&&(i[s]=d)}),t[a]=void 0,i}}return o};return n(e,0)},Tp=In("AsyncFunction"),Op=e=>e&&(jo(e)||bn(e))&&bn(e.then)&&bn(e.catch),xc=((e,t)=>e?setImmediate:t?((n,o)=>(qr.addEventListener("message",({source:a,data:i})=>{a===qr&&i===n&&o.length&&o.shift()()},!1),a=>{o.push(a),qr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",bn(qr.postMessage)),qp=typeof queueMicrotask<"u"?queueMicrotask.bind(qr):typeof process<"u"&&process.nextTick||xc,me={isArray:ro,isArrayBuffer:gc,isBuffer:Ho,isFormData:np,isArrayBufferView:Ug,isString:Qg,isNumber:pc,isBoolean:Wg,isObject:jo,isPlainObject:Na,isEmptyObject:Yg,isReadableStream:op,isRequest:ap,isResponse:ip,isHeaders:lp,isUndefined:oo,isDate:Kg,isFile:Gg,isReactNativeBlob:Xg,isReactNative:Jg,isBlob:Zg,isRegExp:_p,isFunction:bn,isStream:ep,isURLSearchParams:rp,isTypedArray:hp,isFileList:Vg,forEach:Uo,merge:Tl,extend:up,trim:sp,stripBOM:cp,inherits:dp,toFlatObject:fp,kindOf:La,kindOfTest:In,endsWith:vp,toArray:mp,forEachEntry:gp,matchAll:pp,isHTMLForm:bp,hasOwnProperty:wc,hasOwnProp:wc,reduceDescriptors:Cc,freezeMethods:Sp,toObjectSet:wp,toCamelCase:yp,noop:Cp,toFiniteNumber:xp,findKey:_c,global:qr,isContextDefined:Sc,isSpecCompliantForm:kp,toJSONObject:Ep,isAsyncFn:Tp,isThenable:Op,setImmediate:xc,asap:qp,isIterable:e=>e!=null&&bn(e[Ra])};let ot=class hg extends Error{static from(t,n,o,a,i,l){const s=new hg(t.message,n||t.code,o,a,i);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),l&&Object.assign(s,l),s}constructor(t,n,o,a,i){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),o&&(this.config=o),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:me.toJSONObject(this.config),code:this.code,status:this.status}}};ot.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ot.ERR_BAD_OPTION="ERR_BAD_OPTION",ot.ECONNABORTED="ECONNABORTED",ot.ETIMEDOUT="ETIMEDOUT",ot.ERR_NETWORK="ERR_NETWORK",ot.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ot.ERR_DEPRECATED="ERR_DEPRECATED",ot.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ot.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ot.ERR_CANCELED="ERR_CANCELED",ot.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ot.ERR_INVALID_URL="ERR_INVALID_URL";const Mp=null;function Ol(e){return me.isPlainObject(e)||me.isArray(e)}function kc(e){return me.endsWith(e,"[]")?e.slice(0,-2):e}function ql(e,t,n){return e?e.concat(t).map(function(a,i){return a=kc(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function Pp(e){return me.isArray(e)&&!e.some(Ol)}const Ap=me.toFlatObject(me,{},null,function(t){return/^is[A-Z]/.test(t)});function Da(e,t,n){if(!me.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=me.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,C){return!me.isUndefined(C[E])});const o=n.metaTokens,a=n.visitor||v,i=n.dots,l=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&me.isSpecCompliantForm(t);if(!me.isFunction(a))throw new TypeError("visitor must be a function");function m(g){if(g===null)return"";if(me.isDate(g))return g.toISOString();if(me.isBoolean(g))return g.toString();if(!d&&me.isBlob(g))throw new ot("Blob is not supported. Use a Buffer instead.");return me.isArrayBuffer(g)||me.isTypedArray(g)?d&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function v(g,E,C){let w=g;if(me.isReactNative(t)&&me.isReactNativeBlob(g))return t.append(ql(C,E,i),m(g)),!1;if(g&&!C&&typeof g=="object"){if(me.endsWith(E,"{}"))E=o?E:E.slice(0,-2),g=JSON.stringify(g);else if(me.isArray(g)&&Pp(g)||(me.isFileList(g)||me.endsWith(E,"[]"))&&(w=me.toArray(g)))return E=kc(E),w.forEach(function(x,y){!(me.isUndefined(x)||x===null)&&t.append(l===!0?ql([E],y,i):l===null?E:E+"[]",m(x))}),!1}return Ol(g)?!0:(t.append(ql(C,E,i),m(g)),!1)}const b=[],p=Object.assign(Ap,{defaultVisitor:v,convertValue:m,isVisitable:Ol});function _(g,E){if(!me.isUndefined(g)){if(b.indexOf(g)!==-1)throw Error("Circular reference detected in "+E.join("."));b.push(g),me.forEach(g,function(w,T){(!(me.isUndefined(w)||w===null)&&a.call(t,w,me.isString(T)?T.trim():T,E,p))===!0&&_(w,E?E.concat(T):[T])}),b.pop()}}if(!me.isObject(e))throw new TypeError("data must be an object");return _(e),t}function Ec(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Ml(e,t){this._pairs=[],e&&Da(e,this,t)}const Tc=Ml.prototype;Tc.append=function(t,n){this._pairs.push([t,n])},Tc.toString=function(t){const n=t?function(o){return t.call(this,o,Ec)}:Ec;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function Rp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Oc(e,t,n){if(!t)return e;const o=n&&n.encode||Rp,a=me.isFunction(n)?{serialize:n}:n,i=a&&a.serialize;let l;if(i?l=i(t,a):l=me.isURLSearchParams(t)?t.toString():new Ml(t,a).toString(o),l){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class qc{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){me.forEach(this.handlers,function(o){o!==null&&t(o)})}}const Pl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Lp={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ml,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Al=typeof window<"u"&&typeof document<"u",Rl=typeof navigator=="object"&&navigator||void 0,Ip=Al&&(!Rl||["ReactNative","NativeScript","NS"].indexOf(Rl.product)<0),Np=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Dp=Al&&window.location.href||"http://localhost",ln={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Al,hasStandardBrowserEnv:Ip,hasStandardBrowserWebWorkerEnv:Np,navigator:Rl,origin:Dp},Symbol.toStringTag,{value:"Module"})),...Lp};function $p(e,t){return Da(e,new ln.classes.URLSearchParams,{visitor:function(n,o,a,i){return ln.isNode&&me.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Fp(e){return me.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Bp(e){const t={},n=Object.keys(e);let o;const a=n.length;let i;for(o=0;o<a;o++)i=n[o],t[i]=e[i];return t}function Mc(e){function t(n,o,a,i){let l=n[i++];if(l==="__proto__")return!0;const s=Number.isFinite(+l),d=i>=n.length;return l=!l&&me.isArray(a)?a.length:l,d?(me.hasOwnProp(a,l)?a[l]=[a[l],o]:a[l]=o,!s):((!a[l]||!me.isObject(a[l]))&&(a[l]=[]),t(n,o,a[l],i)&&me.isArray(a[l])&&(a[l]=Bp(a[l])),!s)}if(me.isFormData(e)&&me.isFunction(e.entries)){const n={};return me.forEachEntry(e,(o,a)=>{t(Fp(o),a,n,0)}),n}return null}function zp(e,t,n){if(me.isString(e))try{return(t||JSON.parse)(e),me.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Qo={transitional:Pl,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",a=o.indexOf("application/json")>-1,i=me.isObject(t);if(i&&me.isHTMLForm(t)&&(t=new FormData(t)),me.isFormData(t))return a?JSON.stringify(Mc(t)):t;if(me.isArrayBuffer(t)||me.isBuffer(t)||me.isStream(t)||me.isFile(t)||me.isBlob(t)||me.isReadableStream(t))return t;if(me.isArrayBufferView(t))return t.buffer;if(me.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return $p(t,this.formSerializer).toString();if((s=me.isFileList(t))||o.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Da(s?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),zp(t)):t}],transformResponse:[function(t){const n=this.transitional||Qo.transitional,o=n&&n.forcedJSONParsing,a=this.responseType==="json";if(me.isResponse(t)||me.isReadableStream(t))return t;if(t&&me.isString(t)&&(o&&!this.responseType||a)){const l=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(s){if(l)throw s.name==="SyntaxError"?ot.from(s,ot.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ln.classes.FormData,Blob:ln.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};me.forEach(["delete","get","head","post","put","patch"],e=>{Qo.headers[e]={}});const Hp=me.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),jp=e=>{const t={};let n,o,a;return e&&e.split(`
|
|
8
|
+
`).forEach(function(l){a=l.indexOf(":"),n=l.substring(0,a).trim().toLowerCase(),o=l.substring(a+1).trim(),!(!n||t[n]&&Hp[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},Pc=Symbol("internals");function Wo(e){return e&&String(e).trim().toLowerCase()}function $a(e){return e===!1||e==null?e:me.isArray(e)?e.map($a):String(e)}function Up(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const Qp=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ll(e,t,n,o,a){if(me.isFunction(o))return o.call(this,t,n);if(a&&(t=n),!!me.isString(t)){if(me.isString(o))return t.indexOf(o)!==-1;if(me.isRegExp(o))return o.test(t)}}function Wp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function Yp(e,t){const n=me.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(a,i,l){return this[o].call(this,t,a,i,l)},configurable:!0})})}let yn=class{constructor(t){t&&this.set(t)}set(t,n,o){const a=this;function i(s,d,m){const v=Wo(d);if(!v)throw new Error("header name must be a non-empty string");const b=me.findKey(a,v);(!b||a[b]===void 0||m===!0||m===void 0&&a[b]!==!1)&&(a[b||d]=$a(s))}const l=(s,d)=>me.forEach(s,(m,v)=>i(m,v,d));if(me.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(me.isString(t)&&(t=t.trim())&&!Qp(t))l(jp(t),n);else if(me.isObject(t)&&me.isIterable(t)){let s={},d,m;for(const v of t){if(!me.isArray(v))throw TypeError("Object iterator must return a key-value pair");s[m=v[0]]=(d=s[m])?me.isArray(d)?[...d,v[1]]:[d,v[1]]:v[1]}l(s,n)}else t!=null&&i(n,t,o);return this}get(t,n){if(t=Wo(t),t){const o=me.findKey(this,t);if(o){const a=this[o];if(!n)return a;if(n===!0)return Up(a);if(me.isFunction(n))return n.call(this,a,o);if(me.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Wo(t),t){const o=me.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||Ll(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let a=!1;function i(l){if(l=Wo(l),l){const s=me.findKey(o,l);s&&(!n||Ll(o,o[s],s,n))&&(delete o[s],a=!0)}}return me.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let o=n.length,a=!1;for(;o--;){const i=n[o];(!t||Ll(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,o={};return me.forEach(this,(a,i)=>{const l=me.findKey(o,i);if(l){n[l]=$a(a),delete n[i];return}const s=t?Wp(i):String(i).trim();s!==i&&delete n[i],n[s]=$a(a),o[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return me.forEach(this,(o,a)=>{o!=null&&o!==!1&&(n[a]=t&&me.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
9
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(a=>o.set(a)),o}static accessor(t){const o=(this[Pc]=this[Pc]={accessors:{}}).accessors,a=this.prototype;function i(l){const s=Wo(l);o[s]||(Yp(a,l),o[s]=!0)}return me.isArray(t)?t.forEach(i):i(t),this}};yn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),me.reduceDescriptors(yn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}}),me.freezeMethods(yn);function Il(e,t){const n=this||Qo,o=t||n,a=yn.from(o.headers);let i=o.data;return me.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function Ac(e){return!!(e&&e.__CANCEL__)}let Yo=class extends ot{constructor(t,n,o){super(t??"canceled",ot.ERR_CANCELED,n,o),this.name="CanceledError",this.__CANCEL__=!0}};function Rc(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new ot("Request failed with status code "+n.status,[ot.ERR_BAD_REQUEST,ot.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Kp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Gp(e,t){e=e||10;const n=new Array(e),o=new Array(e);let a=0,i=0,l;return t=t!==void 0?t:1e3,function(d){const m=Date.now(),v=o[i];l||(l=m),n[a]=d,o[a]=m;let b=i,p=0;for(;b!==a;)p+=n[b++],b=b%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),m-l<t)return;const _=v&&m-v;return _?Math.round(p*1e3/_):void 0}}function Xp(e,t){let n=0,o=1e3/t,a,i;const l=(m,v=Date.now())=>{n=v,a=null,i&&(clearTimeout(i),i=null),e(...m)};return[(...m)=>{const v=Date.now(),b=v-n;b>=o?l(m,v):(a=m,i||(i=setTimeout(()=>{i=null,l(a)},o-b)))},()=>a&&l(a)]}const Fa=(e,t,n=3)=>{let o=0;const a=Gp(50,250);return Xp(i=>{const l=i.loaded,s=i.lengthComputable?i.total:void 0,d=l-o,m=a(d),v=l<=s;o=l;const b={loaded:l,total:s,progress:s?l/s:void 0,bytes:d,rate:m||void 0,estimated:m&&s&&v?(s-l)/m:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(b)},n)},Lc=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Ic=e=>(...t)=>me.asap(()=>e(...t)),Jp=ln.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ln.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ln.origin),ln.navigator&&/(msie|trident)/i.test(ln.navigator.userAgent)):()=>!0,Zp=ln.hasStandardBrowserEnv?{write(e,t,n,o,a,i,l){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];me.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),me.isString(o)&&s.push(`path=${o}`),me.isString(a)&&s.push(`domain=${a}`),i===!0&&s.push("secure"),me.isString(l)&&s.push(`SameSite=${l}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Vp(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function eb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Nc(e,t,n){let o=!Vp(t);return e&&(o||n==!1)?eb(e,t):t}const Dc=e=>e instanceof yn?{...e}:e;function Mr(e,t){t=t||{};const n={};function o(m,v,b,p){return me.isPlainObject(m)&&me.isPlainObject(v)?me.merge.call({caseless:p},m,v):me.isPlainObject(v)?me.merge({},v):me.isArray(v)?v.slice():v}function a(m,v,b,p){if(me.isUndefined(v)){if(!me.isUndefined(m))return o(void 0,m,b,p)}else return o(m,v,b,p)}function i(m,v){if(!me.isUndefined(v))return o(void 0,v)}function l(m,v){if(me.isUndefined(v)){if(!me.isUndefined(m))return o(void 0,m)}else return o(void 0,v)}function s(m,v,b){if(b in t)return o(m,v);if(b in e)return o(void 0,m)}const d={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s,headers:(m,v,b)=>a(Dc(m),Dc(v),b,!0)};return me.forEach(Object.keys({...e,...t}),function(v){if(v==="__proto__"||v==="constructor"||v==="prototype")return;const b=me.hasOwnProp(d,v)?d[v]:a,p=b(e[v],t[v],v);me.isUndefined(p)&&b!==s||(n[v]=p)}),n}const $c=e=>{const t=Mr({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:l,auth:s}=t;if(t.headers=l=yn.from(l),t.url=Oc(Nc(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&l.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),me.isFormData(n)){if(ln.hasStandardBrowserEnv||ln.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(me.isFunction(n.getHeaders)){const d=n.getHeaders(),m=["content-type","content-length"];Object.entries(d).forEach(([v,b])=>{m.includes(v.toLowerCase())&&l.set(v,b)})}}if(ln.hasStandardBrowserEnv&&(o&&me.isFunction(o)&&(o=o(t)),o||o!==!1&&Jp(t.url))){const d=a&&i&&Zp.read(i);d&&l.set(a,d)}return t},tb=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){const a=$c(e);let i=a.data;const l=yn.from(a.headers).normalize();let{responseType:s,onUploadProgress:d,onDownloadProgress:m}=a,v,b,p,_,g;function E(){_&&_(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(v),a.signal&&a.signal.removeEventListener("abort",v)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function w(){if(!C)return;const x=yn.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),q={data:!s||s==="text"||s==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:x,config:e,request:C};Rc(function(k){n(k),E()},function(k){o(k),E()},q),C=null}"onloadend"in C?C.onloadend=w:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(w)},C.onabort=function(){C&&(o(new ot("Request aborted",ot.ECONNABORTED,e,C)),C=null)},C.onerror=function(y){const q=y&&y.message?y.message:"Network Error",L=new ot(q,ot.ERR_NETWORK,e,C);L.event=y||null,o(L),C=null},C.ontimeout=function(){let y=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const q=a.transitional||Pl;a.timeoutErrorMessage&&(y=a.timeoutErrorMessage),o(new ot(y,q.clarifyTimeoutError?ot.ETIMEDOUT:ot.ECONNABORTED,e,C)),C=null},i===void 0&&l.setContentType(null),"setRequestHeader"in C&&me.forEach(l.toJSON(),function(y,q){C.setRequestHeader(q,y)}),me.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),s&&s!=="json"&&(C.responseType=a.responseType),m&&([p,g]=Fa(m,!0),C.addEventListener("progress",p)),d&&C.upload&&([b,_]=Fa(d),C.upload.addEventListener("progress",b),C.upload.addEventListener("loadend",_)),(a.cancelToken||a.signal)&&(v=x=>{C&&(o(!x||x.type?new Yo(null,e,C):x),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(v),a.signal&&(a.signal.aborted?v():a.signal.addEventListener("abort",v)));const T=Kp(a.url);if(T&&ln.protocols.indexOf(T)===-1){o(new ot("Unsupported protocol "+T+":",ot.ERR_BAD_REQUEST,e));return}C.send(i||null)})},nb=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let o=new AbortController,a;const i=function(m){if(!a){a=!0,s();const v=m instanceof Error?m:this.reason;o.abort(v instanceof ot?v:new Yo(v instanceof Error?v.message:v))}};let l=t&&setTimeout(()=>{l=null,i(new ot(`timeout of ${t}ms exceeded`,ot.ETIMEDOUT))},t);const s=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(m=>{m.unsubscribe?m.unsubscribe(i):m.removeEventListener("abort",i)}),e=null)};e.forEach(m=>m.addEventListener("abort",i));const{signal:d}=o;return d.unsubscribe=()=>me.asap(s),d}},rb=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0,a;for(;o<n;)a=o+t,yield e.slice(o,a),o=a},ob=async function*(e,t){for await(const n of ab(e))yield*rb(n,t)},ab=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:o}=await t.read();if(n)break;yield o}}finally{await t.cancel()}},Fc=(e,t,n,o)=>{const a=ob(e,t);let i=0,l,s=d=>{l||(l=!0,o&&o(d))};return new ReadableStream({async pull(d){try{const{done:m,value:v}=await a.next();if(m){s(),d.close();return}let b=v.byteLength;if(n){let p=i+=b;n(p)}d.enqueue(new Uint8Array(v))}catch(m){throw s(m),m}},cancel(d){return s(d),a.return()}},{highWaterMark:2})},Bc=64*1024,{isFunction:Ba}=me,ib=(({Request:e,Response:t})=>({Request:e,Response:t}))(me.global),{ReadableStream:zc,TextEncoder:Hc}=me.global,jc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},lb=e=>{e=me.merge.call({skipUndefined:!0},ib,e);const{fetch:t,Request:n,Response:o}=e,a=t?Ba(t):typeof fetch=="function",i=Ba(n),l=Ba(o);if(!a)return!1;const s=a&&Ba(zc),d=a&&(typeof Hc=="function"?(g=>E=>g.encode(E))(new Hc):async g=>new Uint8Array(await new n(g).arrayBuffer())),m=i&&s&&jc(()=>{let g=!1;const E=new n(ln.origin,{body:new zc,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!E}),v=l&&s&&jc(()=>me.isReadableStream(new o("").body)),b={stream:v&&(g=>g.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!b[g]&&(b[g]=(E,C)=>{let w=E&&E[g];if(w)return w.call(E);throw new ot(`Response type '${g}' is not supported`,ot.ERR_NOT_SUPPORT,C)})});const p=async g=>{if(g==null)return 0;if(me.isBlob(g))return g.size;if(me.isSpecCompliantForm(g))return(await new n(ln.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(me.isArrayBufferView(g)||me.isArrayBuffer(g))return g.byteLength;if(me.isURLSearchParams(g)&&(g=g+""),me.isString(g))return(await d(g)).byteLength},_=async(g,E)=>{const C=me.toFiniteNumber(g.getContentLength());return C??p(E)};return async g=>{let{url:E,method:C,data:w,signal:T,cancelToken:x,timeout:y,onDownloadProgress:q,onUploadProgress:L,responseType:k,headers:H,withCredentials:ee="same-origin",fetchOptions:N}=$c(g),I=t||fetch;k=k?(k+"").toLowerCase():"text";let $=nb([T,x&&x.toAbortSignal()],y),D=null;const P=$&&$.unsubscribe&&(()=>{$.unsubscribe()});let F;try{if(L&&m&&C!=="get"&&C!=="head"&&(F=await _(H,w))!==0){let G=new n(E,{method:"POST",body:w,duplex:"half"}),R;if(me.isFormData(w)&&(R=G.headers.get("content-type"))&&H.setContentType(R),G.body){const[ae,J]=Lc(F,Fa(Ic(L)));w=Fc(G.body,Bc,ae,J)}}me.isString(ee)||(ee=ee?"include":"omit");const Y=i&&"credentials"in n.prototype,X={...N,signal:$,method:C.toUpperCase(),headers:H.normalize().toJSON(),body:w,duplex:"half",credentials:Y?ee:void 0};D=i&&new n(E,X);let Z=await(i?I(D,N):I(E,X));const ce=v&&(k==="stream"||k==="response");if(v&&(q||ce&&P)){const G={};["status","statusText","headers"].forEach(be=>{G[be]=Z[be]});const R=me.toFiniteNumber(Z.headers.get("content-length")),[ae,J]=q&&Lc(R,Fa(Ic(q),!0))||[];Z=new o(Fc(Z.body,Bc,ae,()=>{J&&J(),P&&P()}),G)}k=k||"text";let Ee=await b[me.findKey(b,k)||"text"](Z,g);return!ce&&P&&P(),await new Promise((G,R)=>{Rc(G,R,{data:Ee,headers:yn.from(Z.headers),status:Z.status,statusText:Z.statusText,config:g,request:D})})}catch(Y){throw P&&P(),Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)?Object.assign(new ot("Network Error",ot.ERR_NETWORK,g,D,Y&&Y.response),{cause:Y.cause||Y}):ot.from(Y,Y&&Y.code,g,D,Y&&Y.response)}}},sb=new Map,Uc=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:a}=t,i=[o,a,n];let l=i.length,s=l,d,m,v=sb;for(;s--;)d=i[s],m=v.get(d),m===void 0&&v.set(d,m=s?new Map:lb(t)),v=m;return m};Uc();const Nl={http:Mp,xhr:tb,fetch:{get:Uc}};me.forEach(Nl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Qc=e=>`- ${e}`,ub=e=>me.isFunction(e)||e===null||e===!1;function cb(e,t){e=me.isArray(e)?e:[e];const{length:n}=e;let o,a;const i={};for(let l=0;l<n;l++){o=e[l];let s;if(a=o,!ub(o)&&(a=Nl[(s=String(o)).toLowerCase()],a===void 0))throw new ot(`Unknown adapter '${s}'`);if(a&&(me.isFunction(a)||(a=a.get(t))))break;i[s||"#"+l]=a}if(!a){const l=Object.entries(i).map(([d,m])=>`adapter ${d} `+(m===!1?"is not supported by the environment":"is not available in the build"));let s=n?l.length>1?`since :
|
|
10
|
+
`+l.map(Qc).join(`
|
|
11
|
+
`):" "+Qc(l[0]):"as no adapter specified";throw new ot("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a}const Wc={getAdapter:cb,adapters:Nl};function Dl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yo(null,e)}function Yc(e){return Dl(e),e.headers=yn.from(e.headers),e.data=Il.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Wc.getAdapter(e.adapter||Qo.adapter,e)(e).then(function(o){return Dl(e),o.data=Il.call(e,e.transformResponse,o),o.headers=yn.from(o.headers),o},function(o){return Ac(o)||(Dl(e),o&&o.response&&(o.response.data=Il.call(e,e.transformResponse,o.response),o.response.headers=yn.from(o.response.headers))),Promise.reject(o)})}const Kc="1.13.6",za={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{za[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Gc={};za.transitional=function(t,n,o){function a(i,l){return"[Axios v"+Kc+"] Transitional option '"+i+"'"+l+(o?". "+o:"")}return(i,l,s)=>{if(t===!1)throw new ot(a(l," has been removed"+(n?" in "+n:"")),ot.ERR_DEPRECATED);return n&&!Gc[l]&&(Gc[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,s):!0}},za.spelling=function(t){return(n,o)=>(console.warn(`${o} is likely a misspelling of ${t}`),!0)};function db(e,t,n){if(typeof e!="object")throw new ot("options must be an object",ot.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let a=o.length;for(;a-- >0;){const i=o[a],l=t[i];if(l){const s=e[i],d=s===void 0||l(s,i,e);if(d!==!0)throw new ot("option "+i+" must be "+d,ot.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ot("Unknown option "+i,ot.ERR_BAD_OPTION)}}const Ha={assertOptions:db,validators:za},kn=Ha.validators;let Pr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new qc,response:new qc}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{o.stack?i&&!String(o.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
|
12
|
+
`+i):o.stack=i}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mr(this.defaults,n);const{transitional:o,paramsSerializer:a,headers:i}=n;o!==void 0&&Ha.assertOptions(o,{silentJSONParsing:kn.transitional(kn.boolean),forcedJSONParsing:kn.transitional(kn.boolean),clarifyTimeoutError:kn.transitional(kn.boolean),legacyInterceptorReqResOrdering:kn.transitional(kn.boolean)},!1),a!=null&&(me.isFunction(a)?n.paramsSerializer={serialize:a}:Ha.assertOptions(a,{encode:kn.function,serialize:kn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ha.assertOptions(n,{baseUrl:kn.spelling("baseURL"),withXsrfToken:kn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&me.merge(i.common,i[n.method]);i&&me.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=yn.concat(l,i);const s=[];let d=!0;this.interceptors.request.forEach(function(E){if(typeof E.runWhen=="function"&&E.runWhen(n)===!1)return;d=d&&E.synchronous;const C=n.transitional||Pl;C&&C.legacyInterceptorReqResOrdering?s.unshift(E.fulfilled,E.rejected):s.push(E.fulfilled,E.rejected)});const m=[];this.interceptors.response.forEach(function(E){m.push(E.fulfilled,E.rejected)});let v,b=0,p;if(!d){const g=[Yc.bind(this),void 0];for(g.unshift(...s),g.push(...m),p=g.length,v=Promise.resolve(n);b<p;)v=v.then(g[b++],g[b++]);return v}p=s.length;let _=n;for(;b<p;){const g=s[b++],E=s[b++];try{_=g(_)}catch(C){E.call(this,C);break}}try{v=Yc.call(this,_)}catch(g){return Promise.reject(g)}for(b=0,p=m.length;b<p;)v=v.then(m[b++],m[b++]);return v}getUri(t){t=Mr(this.defaults,t);const n=Nc(t.baseURL,t.url,t.allowAbsoluteUrls);return Oc(n,t.params,t.paramsSerializer)}};me.forEach(["delete","get","head","options"],function(t){Pr.prototype[t]=function(n,o){return this.request(Mr(o||{},{method:t,url:n,data:(o||{}).data}))}}),me.forEach(["post","put","patch"],function(t){function n(o){return function(i,l,s){return this.request(Mr(s||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}Pr.prototype[t]=n(),Pr.prototype[t+"Form"]=n(!0)});let fb=class gg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const o=this;this.promise.then(a=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](a);o._listeners=null}),this.promise.then=a=>{let i;const l=new Promise(s=>{o.subscribe(s),i=s}).then(a);return l.cancel=function(){o.unsubscribe(i)},l},t(function(i,l,s){o.reason||(o.reason=new Yo(i,l,s),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new gg(function(a){t=a}),cancel:t}}};function vb(e){return function(n){return e.apply(null,n)}}function mb(e){return me.isObject(e)&&e.isAxiosError===!0}const $l={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries($l).forEach(([e,t])=>{$l[t]=e});function Xc(e){const t=new Pr(e),n=mc(Pr.prototype.request,t);return me.extend(n,Pr.prototype,t,{allOwnKeys:!0}),me.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Xc(Mr(e,a))},n}const Qt=Xc(Qo);Qt.Axios=Pr,Qt.CanceledError=Yo,Qt.CancelToken=fb,Qt.isCancel=Ac,Qt.VERSION=Kc,Qt.toFormData=Da,Qt.AxiosError=ot,Qt.Cancel=Qt.CanceledError,Qt.all=function(t){return Promise.all(t)},Qt.spread=vb,Qt.isAxiosError=mb,Qt.mergeConfig=Mr,Qt.AxiosHeaders=yn,Qt.formToJSON=e=>Mc(me.isHTMLForm(e)?new FormData(e):e),Qt.getAdapter=Wc.getAdapter,Qt.HttpStatusCode=$l,Qt.default=Qt;const{Axios:Dx,AxiosError:$x,CanceledError:Fx,isCancel:Bx,CancelToken:zx,VERSION:Hx,all:jx,Cancel:Ux,isAxiosError:Qx,spread:Wx,toFormData:Yx,AxiosHeaders:Kx,HttpStatusCode:Jc,formToJSON:Gx,getAdapter:Xx,mergeConfig:Jx}=Qt;let ja=null;function hb(e){if(ja!==null){console.warn("[LinID CoreLib] HTTP client has already been initialized. Re-initialization is ignored.");return}ja=e}function jn(){if(ja===null)throw new Error("[LinID CoreLib] HTTP client is not initialized. Call setHttpClient() first.");return ja}const Zc=new Map;function gb(e){Zc.set(e.instanceId,e)}function Ar(e){const t=Zc.get(e);if(!t)throw new Error(`[LinID CoreLib] No module host configuration found for instanceId: ${e}`);return t}async function pb(e,t){const n=Ar(e);return jn().post(`/${n.apiEndpoint}`,t).then(({data:o})=>o)}async function bb(e,t,n){const o=Ar(e);return jn().put(`/${o.apiEndpoint}/${t}`,n).then(({data:a})=>a)}async function yb(e,t,n){const o=Ar(e);return jn().get(`/${o.apiEndpoint}`,{params:{...t,...n}}).then(({data:a})=>a)}async function _b(e,t){const n=Ar(e);return jn().get(`/${n.apiEndpoint}/${t}`).then(({data:o})=>o)}async function Sb(e,t){const n=Ar(e);return jn().delete(`/${n.apiEndpoint}/${t}`)}async function wb(e,t,n){const o=Ar(e);await jn().post(`/${o.apiEndpoint}/validate/${t}`,n,{headers:{"Content-Type":"application/json"}})}function Vc(e,t){if(!Rr(e)||!Rr(t))return t;const n={...e};for(const o of Object.keys(t))n[o]=Vc(e[o],t[o]);return n}function Cb(e){const t={};for(const[n,o]of Object.entries(e)){const a=n.split(".");let i=t;a.forEach((l,s)=>{s===a.length-1?i[l]=o:(Rr(i[l])||(i[l]={}),i=i[l])})}return t}function Rr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function ed(e,t){return typeof e!="object"||e===null?e:Object.fromEntries(Object.entries(e).map(([n,o])=>{const a=t(n),i=Rr(o)?ed(o,t):o;return[a,i]}))}function Fl(e,t){if(e===t||typeof e=="number"&&typeof t=="number"&&Number.isNaN(e)&&Number.isNaN(t))return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object"||Array.isArray(e)!==Array.isArray(t))return!1;const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;const a=e,i=t;return n.every(l=>Object.prototype.hasOwnProperty.call(i,l)&&Fl(a[l],i[l]))}function Ua(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=new Set;return e.every(o=>{const a=t.findIndex((i,l)=>!n.has(l)&&Ua(o,i));return a===-1?!1:(n.add(a),!0)})}if(Rr(e)&&Rr(t)){const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length?!1:n.every(a=>Object.prototype.hasOwnProperty.call(t,a)&&Ua(e[a],t[a]))}return Fl(e,t)}function Un(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const td={};function xb(e){td[e]||(td[e]=!0,Un(e))}const Zn=typeof window<"u";let _n,Lr;if(process.env.NODE_ENV!=="production"){const e=Zn&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(_n=t=>{e.mark(t)},Lr=(t,n,o)=>{e.measure(t,n,o),e.clearMarks(n),e.clearMarks(o)})}const kb=/\{([0-9a-zA-Z]+)\}/g;function Qa(e,...t){return t.length===1&&Et(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(kb,(n,o)=>t.hasOwnProperty(o)?t[o]:"")}const Vn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Eb=(e,t,n)=>Tb({l:e,k:t,s:n}),Tb=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),en=e=>typeof e=="number"&&isFinite(e),nd=e=>Bl(e)==="[object Date]",Wa=e=>Bl(e)==="[object RegExp]",Ya=e=>qt(e)&&Object.keys(e).length===0,tn=Object.assign,Ob=Object.create,At=(e=null)=>Ob(e);let rd;const Ir=()=>rd||(rd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:At());function od(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function ad(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function qb(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(o,a,i)=>`${a}="${ad(i)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(o,a,i)=>`${a}='${ad(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&Un("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(o=>{e=e.replace(o,"$1javascript:")}),e}const Mb=Object.prototype.hasOwnProperty;function En(e,t){return Mb.call(e,t)}const Wt=Array.isArray,Bt=e=>typeof e=="function",Ye=e=>typeof e=="string",Yt=e=>typeof e=="boolean",Et=e=>e!==null&&typeof e=="object",Pb=e=>Et(e)&&Bt(e.then)&&Bt(e.catch),id=Object.prototype.toString,Bl=e=>id.call(e),qt=e=>Bl(e)==="[object Object]",Ab=e=>e==null?"":Wt(e)||qt(e)&&e.toString===id?JSON.stringify(e,null,2):String(e);function zl(e,t=""){return e.reduce((n,o,a)=>a===0?n+o:n+t+o,"")}const ld=2;function Rb(e,t=0,n=e.length){const o=e.split(/\r?\n/);let a=0;const i=[];for(let l=0;l<o.length;l++)if(a+=o[l].length+1,a>=t){for(let s=l-ld;s<=l+ld||n>a;s++){if(s<0||s>=o.length)continue;const d=s+1;i.push(`${d}${" ".repeat(3-String(d).length)}| ${o[s]}`);const m=o[s].length;if(s===l){const v=t-(a-m)+1,b=Math.max(1,n>a?m-v:n-t);i.push(" | "+" ".repeat(v)+"^".repeat(b))}else if(s>l){if(n>a){const v=Math.max(Math.min(n-a,m),1);i.push(" | "+"^".repeat(v))}a+=m+1}}break}return i.join(`
|
|
13
|
+
`)}function Lb(){const e=new Map;return{events:e,on(n,o){const a=e.get(n);a&&a.push(o)||e.set(n,[o])},off(n,o){const a=e.get(n);a&&a.splice(a.indexOf(o)>>>0,1)},emit(n,o){(e.get(n)||[]).slice().map(a=>a(o)),(e.get("*")||[]).slice().map(a=>a(n,o))}}}const Ka=e=>!Et(e)||Wt(e);function Ga(e,t){if(Ka(e)||Ka(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:o,des:a}=n.pop();Object.keys(o).forEach(i=>{i!=="__proto__"&&(Et(o[i])&&!Et(a[i])&&(a[i]=Array.isArray(o[i])?[]:At()),Ka(a[i])||Ka(o[i])?a[i]=o[i]:n.push({src:o[i],des:a[i]}))})}}function Ib(e,t,n){return{line:e,column:t,offset:n}}function Hl(e,t,n){return{start:e,end:t}}const at={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},Nb=17,Db={[at.EXPECTED_TOKEN]:"Expected token: '{0}'",[at.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[at.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[at.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[at.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[at.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[at.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[at.EMPTY_PLACEHOLDER]:"Empty placeholder",[at.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[at.INVALID_LINKED_FORMAT]:"Invalid linked format",[at.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[at.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[at.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[at.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[at.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[at.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function ao(e,t,n={}){const{domain:o,messages:a,args:i}=n,l=process.env.NODE_ENV!=="production"?Qa((a||Db)[e]||"",...i||[]):e,s=new SyntaxError(String(l));return s.code=e,t&&(s.location=t),s.domain=o,s}function $b(e){throw e}const Fb=/<\/?[\w\s="/.':;#-\/]+>/,Bb=e=>Fb.test(e),Qn=" ",zb="\r",sn=`
|
|
14
|
+
`,Hb="\u2028",jb="\u2029";function Ub(e){const t=e;let n=0,o=1,a=1,i=0;const l=k=>t[k]===zb&&t[k+1]===sn,s=k=>t[k]===sn,d=k=>t[k]===jb,m=k=>t[k]===Hb,v=k=>l(k)||s(k)||d(k)||m(k),b=()=>n,p=()=>o,_=()=>a,g=()=>i,E=k=>l(k)||d(k)||m(k)?sn:t[k],C=()=>E(n),w=()=>E(n+i);function T(){return i=0,v(n)&&(o++,a=0),l(n)&&n++,n++,a++,t[n]}function x(){return l(n+i)&&i++,i++,t[n+i]}function y(){n=0,o=1,a=1,i=0}function q(k=0){i=k}function L(){const k=n+i;for(;k!==n;)T();i=0}return{index:b,line:p,column:_,peekOffset:g,charAt:E,currentChar:C,currentPeek:w,next:T,peek:x,reset:y,resetPeek:q,skipToPeek:L}}const er=void 0,Qb=".",sd="'",Wb="tokenizer";function Yb(e,t={}){const n=t.location!==!1,o=Ub(e),a=()=>o.index(),i=()=>Ib(o.line(),o.column(),o.index()),l=i(),s=a(),d={currentType:13,offset:s,startLoc:l,endLoc:l,lastType:13,lastOffset:s,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},m=()=>d,{onError:v}=t;function b(z,K,ve,...oe){const se=m();if(K.column+=ve,K.offset+=ve,v){const Se=n?Hl(se.startLoc,K):null,Te=ao(z,Se,{domain:Wb,args:oe});v(Te)}}function p(z,K,ve){z.endLoc=i(),z.currentType=K;const oe={type:K};return n&&(oe.loc=Hl(z.startLoc,z.endLoc)),ve!=null&&(oe.value=ve),oe}const _=z=>p(z,13);function g(z,K){return z.currentChar()===K?(z.next(),K):(b(at.EXPECTED_TOKEN,i(),0,K),"")}function E(z){let K="";for(;z.currentPeek()===Qn||z.currentPeek()===sn;)K+=z.currentPeek(),z.peek();return K}function C(z){const K=E(z);return z.skipToPeek(),K}function w(z){if(z===er)return!1;const K=z.charCodeAt(0);return K>=97&&K<=122||K>=65&&K<=90||K===95}function T(z){if(z===er)return!1;const K=z.charCodeAt(0);return K>=48&&K<=57}function x(z,K){const{currentType:ve}=K;if(ve!==2)return!1;E(z);const oe=w(z.currentPeek());return z.resetPeek(),oe}function y(z,K){const{currentType:ve}=K;if(ve!==2)return!1;E(z);const oe=z.currentPeek()==="-"?z.peek():z.currentPeek(),se=T(oe);return z.resetPeek(),se}function q(z,K){const{currentType:ve}=K;if(ve!==2)return!1;E(z);const oe=z.currentPeek()===sd;return z.resetPeek(),oe}function L(z,K){const{currentType:ve}=K;if(ve!==7)return!1;E(z);const oe=z.currentPeek()===".";return z.resetPeek(),oe}function k(z,K){const{currentType:ve}=K;if(ve!==8)return!1;E(z);const oe=w(z.currentPeek());return z.resetPeek(),oe}function H(z,K){const{currentType:ve}=K;if(!(ve===7||ve===11))return!1;E(z);const oe=z.currentPeek()===":";return z.resetPeek(),oe}function ee(z,K){const{currentType:ve}=K;if(ve!==9)return!1;const oe=()=>{const Se=z.currentPeek();return Se==="{"?w(z.peek()):Se==="@"||Se==="|"||Se===":"||Se==="."||Se===Qn||!Se?!1:Se===sn?(z.peek(),oe()):I(z,!1)},se=oe();return z.resetPeek(),se}function N(z){E(z);const K=z.currentPeek()==="|";return z.resetPeek(),K}function I(z,K=!0){const ve=(se=!1,Se="")=>{const Te=z.currentPeek();return Te==="{"||Te==="@"||!Te?se:Te==="|"?!(Se===Qn||Se===sn):Te===Qn?(z.peek(),ve(!0,Qn)):Te===sn?(z.peek(),ve(!0,sn)):!0},oe=ve();return K&&z.resetPeek(),oe}function $(z,K){const ve=z.currentChar();return ve===er?er:K(ve)?(z.next(),ve):null}function D(z){const K=z.charCodeAt(0);return K>=97&&K<=122||K>=65&&K<=90||K>=48&&K<=57||K===95||K===36}function P(z){return $(z,D)}function F(z){const K=z.charCodeAt(0);return K>=97&&K<=122||K>=65&&K<=90||K>=48&&K<=57||K===95||K===36||K===45}function Y(z){return $(z,F)}function X(z){const K=z.charCodeAt(0);return K>=48&&K<=57}function Z(z){return $(z,X)}function ce(z){const K=z.charCodeAt(0);return K>=48&&K<=57||K>=65&&K<=70||K>=97&&K<=102}function Ee(z){return $(z,ce)}function G(z){let K="",ve="";for(;K=Z(z);)ve+=K;return ve}function R(z){let K="";for(;;){const ve=z.currentChar();if(ve==="\\"){const oe=z.peek();oe==="{"||oe==="}"||oe==="@"||oe==="|"||oe==="\\"?(K+=ve+oe,z.next(),z.next()):(z.resetPeek(),K+=ve,z.next())}else{if(ve==="{"||ve==="}"||ve==="@"||ve==="|"||!ve)break;if(ve===Qn||ve===sn)if(I(z))K+=ve,z.next();else{if(N(z))break;K+=ve,z.next()}else K+=ve,z.next()}}return K}function ae(z){C(z);let K="",ve="";for(;K=Y(z);)ve+=K;const oe=z.currentChar();if(oe&&oe!=="}"&&oe!==er&&oe!==Qn&&oe!==sn&&oe!==" "){const se=Oe(z);return b(at.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,ve+se),ve+se}return z.currentChar()===er&&b(at.UNTERMINATED_CLOSING_BRACE,i(),0),ve}function J(z){C(z);let K="";return z.currentChar()==="-"?(z.next(),K+=`-${G(z)}`):K+=G(z),z.currentChar()===er&&b(at.UNTERMINATED_CLOSING_BRACE,i(),0),K}function be(z){return z!==sd&&z!==sn}function W(z){C(z),g(z,"'");let K="",ve="";for(;K=$(z,be);)K==="\\"?ve+=ne(z):ve+=K;const oe=z.currentChar();return oe===sn||oe===er?(b(at.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),oe===sn&&(z.next(),g(z,"'")),ve):(g(z,"'"),ve)}function ne(z){const K=z.currentChar();switch(K){case"\\":case"'":return z.next(),`\\${K}`;case"u":return we(z,K,4);case"U":return we(z,K,6);default:return b(at.UNKNOWN_ESCAPE_SEQUENCE,i(),0,K),""}}function we(z,K,ve){g(z,K);let oe="";for(let se=0;se<ve;se++){const Se=Ee(z);if(!Se){b(at.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${K}${oe}${z.currentChar()}`);break}oe+=Se}return`\\${K}${oe}`}function Q(z){return z!=="{"&&z!=="}"&&z!==Qn&&z!==sn}function Oe(z){C(z);let K="",ve="";for(;K=$(z,Q);)ve+=K;return ve}function Le(z){let K="",ve="";for(;K=P(z);)ve+=K;return ve}function le(z){const K=ve=>{const oe=z.currentChar();return oe==="{"||oe==="@"||oe==="|"||oe==="("||oe===")"||!oe||oe===Qn?ve:(ve+=oe,z.next(),K(ve))};return K("")}function qe(z){C(z);const K=g(z,"|");return C(z),K}function Re(z,K){let ve=null;switch(z.currentChar()){case"{":return K.braceNest>=1&&b(at.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),z.next(),ve=p(K,2,"{"),C(z),K.braceNest++,ve;case"}":return K.braceNest>0&&K.currentType===2&&b(at.EMPTY_PLACEHOLDER,i(),0),z.next(),ve=p(K,3,"}"),K.braceNest--,K.braceNest>0&&C(z),K.inLinked&&K.braceNest===0&&(K.inLinked=!1),ve;case"@":return K.braceNest>0&&b(at.UNTERMINATED_CLOSING_BRACE,i(),0),ve=Fe(z,K)||_(K),K.braceNest=0,ve;default:{let se=!0,Se=!0,Te=!0;if(N(z))return K.braceNest>0&&b(at.UNTERMINATED_CLOSING_BRACE,i(),0),ve=p(K,1,qe(z)),K.braceNest=0,K.inLinked=!1,ve;if(K.braceNest>0&&(K.currentType===4||K.currentType===5||K.currentType===6))return b(at.UNTERMINATED_CLOSING_BRACE,i(),0),K.braceNest=0,He(z,K);if(se=x(z,K))return ve=p(K,4,ae(z)),C(z),ve;if(Se=y(z,K))return ve=p(K,5,J(z)),C(z),ve;if(Te=q(z,K))return ve=p(K,6,W(z)),C(z),ve;if(!se&&!Se&&!Te)return ve=p(K,12,Oe(z)),b(at.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,ve.value),C(z),ve;break}}return ve}function Fe(z,K){const{currentType:ve}=K;let oe=null;const se=z.currentChar();switch((ve===7||ve===8||ve===11||ve===9)&&(se===sn||se===Qn)&&b(at.INVALID_LINKED_FORMAT,i(),0),se){case"@":return z.next(),oe=p(K,7,"@"),K.inLinked=!0,oe;case".":return C(z),z.next(),p(K,8,".");case":":return C(z),z.next(),p(K,9,":");default:return N(z)?(oe=p(K,1,qe(z)),K.braceNest=0,K.inLinked=!1,oe):L(z,K)||H(z,K)?(C(z),Fe(z,K)):k(z,K)?(C(z),p(K,11,Le(z))):ee(z,K)?(C(z),se==="{"?Re(z,K)||oe:p(K,10,le(z))):(ve===7&&b(at.INVALID_LINKED_FORMAT,i(),0),K.braceNest=0,K.inLinked=!1,He(z,K))}}function He(z,K){let ve={type:13};if(K.braceNest>0)return Re(z,K)||_(K);if(K.inLinked)return Fe(z,K)||_(K);switch(z.currentChar()){case"{":return Re(z,K)||_(K);case"}":return b(at.UNBALANCED_CLOSING_BRACE,i(),0),z.next(),p(K,3,"}");case"@":return Fe(z,K)||_(K);default:{if(N(z))return ve=p(K,1,qe(z)),K.braceNest=0,K.inLinked=!1,ve;if(I(z))return p(K,0,R(z));break}}return ve}function ke(){const{currentType:z,offset:K,startLoc:ve,endLoc:oe}=d;return d.lastType=z,d.lastOffset=K,d.lastStartLoc=ve,d.lastEndLoc=oe,d.offset=a(),d.startLoc=i(),o.currentChar()===er?p(d,13):He(o,d)}return{nextToken:ke,currentOffset:a,currentPosition:i,context:m}}const Kb="parser",Gb=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,Xb=/\\([\\@{}|])/g;function Jb(e,t){return t}function Zb(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const o=parseInt(t||n,16);return o<=55295||o>=57344?String.fromCodePoint(o):"�"}}}function Vb(e={}){const t=e.location!==!1,{onError:n}=e;function o(w,T,x,y,...q){const L=w.currentPosition();if(L.offset+=y,L.column+=y,n){const k=t?Hl(x,L):null,H=ao(T,k,{domain:Kb,args:q});n(H)}}function a(w,T,x){const y={type:w};return t&&(y.start=T,y.end=T,y.loc={start:x,end:x}),y}function i(w,T,x,y){t&&(w.end=T,w.loc&&(w.loc.end=x))}function l(w,T){const x=w.context(),y=a(3,x.offset,x.startLoc);return y.value=T.replace(Xb,Jb),i(y,w.currentOffset(),w.currentPosition()),y}function s(w,T){const x=w.context(),{lastOffset:y,lastStartLoc:q}=x,L=a(5,y,q);return L.index=parseInt(T,10),w.nextToken(),i(L,w.currentOffset(),w.currentPosition()),L}function d(w,T){const x=w.context(),{lastOffset:y,lastStartLoc:q}=x,L=a(4,y,q);return L.key=T,w.nextToken(),i(L,w.currentOffset(),w.currentPosition()),L}function m(w,T){const x=w.context(),{lastOffset:y,lastStartLoc:q}=x,L=a(9,y,q);return L.value=T.replace(Gb,Zb),w.nextToken(),i(L,w.currentOffset(),w.currentPosition()),L}function v(w){const T=w.nextToken(),x=w.context(),{lastOffset:y,lastStartLoc:q}=x,L=a(8,y,q);return T.type!==11?(o(w,at.UNEXPECTED_EMPTY_LINKED_MODIFIER,x.lastStartLoc,0),L.value="",i(L,y,q),{nextConsumeToken:T,node:L}):(T.value==null&&o(w,at.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,Wn(T)),L.value=T.value||"",i(L,w.currentOffset(),w.currentPosition()),{node:L})}function b(w,T){const x=w.context(),y=a(7,x.offset,x.startLoc);return y.value=T,i(y,w.currentOffset(),w.currentPosition()),y}function p(w){const T=w.context(),x=a(6,T.offset,T.startLoc);let y=w.nextToken();if(y.type===8){const q=v(w);x.modifier=q.node,y=q.nextConsumeToken||w.nextToken()}switch(y.type!==9&&o(w,at.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Wn(y)),y=w.nextToken(),y.type===2&&(y=w.nextToken()),y.type){case 10:y.value==null&&o(w,at.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Wn(y)),x.key=b(w,y.value||"");break;case 4:y.value==null&&o(w,at.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Wn(y)),x.key=d(w,y.value||"");break;case 5:y.value==null&&o(w,at.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Wn(y)),x.key=s(w,y.value||"");break;case 6:y.value==null&&o(w,at.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Wn(y)),x.key=m(w,y.value||"");break;default:{o(w,at.UNEXPECTED_EMPTY_LINKED_KEY,T.lastStartLoc,0);const q=w.context(),L=a(7,q.offset,q.startLoc);return L.value="",i(L,q.offset,q.startLoc),x.key=L,i(x,q.offset,q.startLoc),{nextConsumeToken:y,node:x}}}return i(x,w.currentOffset(),w.currentPosition()),{node:x}}function _(w){const T=w.context(),x=T.currentType===1?w.currentOffset():T.offset,y=T.currentType===1?T.endLoc:T.startLoc,q=a(2,x,y);q.items=[];let L=null;do{const ee=L||w.nextToken();switch(L=null,ee.type){case 0:ee.value==null&&o(w,at.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Wn(ee)),q.items.push(l(w,ee.value||""));break;case 5:ee.value==null&&o(w,at.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Wn(ee)),q.items.push(s(w,ee.value||""));break;case 4:ee.value==null&&o(w,at.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Wn(ee)),q.items.push(d(w,ee.value||""));break;case 6:ee.value==null&&o(w,at.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Wn(ee)),q.items.push(m(w,ee.value||""));break;case 7:{const N=p(w);q.items.push(N.node),L=N.nextConsumeToken||null;break}}}while(T.currentType!==13&&T.currentType!==1);const k=T.currentType===1?T.lastOffset:w.currentOffset(),H=T.currentType===1?T.lastEndLoc:w.currentPosition();return i(q,k,H),q}function g(w,T,x,y){const q=w.context();let L=y.items.length===0;const k=a(1,T,x);k.cases=[],k.cases.push(y);do{const H=_(w);L||(L=H.items.length===0),k.cases.push(H)}while(q.currentType!==13);return L&&o(w,at.MUST_HAVE_MESSAGES_IN_PLURAL,x,0),i(k,w.currentOffset(),w.currentPosition()),k}function E(w){const T=w.context(),{offset:x,startLoc:y}=T,q=_(w);return T.currentType===13?q:g(w,x,y,q)}function C(w){const T=Yb(w,tn({},e)),x=T.context(),y=a(0,x.offset,x.startLoc);return t&&y.loc&&(y.loc.source=w),y.body=E(T),e.onCacheKey&&(y.cacheKey=e.onCacheKey(w)),x.currentType!==13&&o(T,at.UNEXPECTED_LEXICAL_ANALYSIS,x.lastStartLoc,0,w[x.offset]||""),i(y,T.currentOffset(),T.currentPosition()),y}return{parse:C}}function Wn(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function e0(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function ud(e,t){for(let n=0;n<e.length;n++)jl(e[n],t)}function jl(e,t){switch(e.type){case 1:ud(e.cases,t),t.helper("plural");break;case 2:ud(e.items,t);break;case 6:{jl(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function t0(e,t={}){const n=e0(e);n.helper("normalize"),e.body&&jl(e.body,n);const o=n.context();e.helpers=Array.from(o.helpers)}function n0(e){const t=e.body;return t.type===2?cd(t):t.cases.forEach(n=>cd(n)),e}function cd(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const o=e.items[n];if(!(o.type===3||o.type===9)||o.value==null)break;t.push(o.value)}if(t.length===e.items.length){e.static=zl(t);for(let n=0;n<e.items.length;n++){const o=e.items[n];(o.type===3||o.type===9)&&delete o.value}}}}const r0="minifier";function io(e){switch(e.t=e.type,e.type){case 0:{const t=e;io(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let o=0;o<n.length;o++)io(n[o]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let o=0;o<n.length;o++)io(n[o]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;io(t.key),t.k=t.key,delete t.key,t.modifier&&(io(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw ao(at.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:r0,args:[e.type]})}delete e.type}const o0="parser";function a0(e,t){const{filename:n,breakLineCode:o,needIndent:a}=t,i=t.location!==!1,l={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:a,indentLevel:0};i&&e.loc&&(l.source=e.loc.source);const s=()=>l;function d(E,C){l.code+=E}function m(E,C=!0){const w=C?o:"";d(a?w+" ".repeat(E):w)}function v(E=!0){const C=++l.indentLevel;E&&m(C)}function b(E=!0){const C=--l.indentLevel;E&&m(C)}function p(){m(l.indentLevel)}return{context:s,push:d,indent:v,deindent:b,newline:p,helper:E=>`_${E}`,needIndent:()=>l.needIndent}}function i0(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),lo(e,t.key),t.modifier?(e.push(", "),lo(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function l0(e,t){const{helper:n,needIndent:o}=e;e.push(`${n("normalize")}([`),e.indent(o());const a=t.items.length;for(let i=0;i<a&&(lo(e,t.items[i]),i!==a-1);i++)e.push(", ");e.deindent(o()),e.push("])")}function s0(e,t){const{helper:n,needIndent:o}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(o());const a=t.cases.length;for(let i=0;i<a&&(lo(e,t.cases[i]),i!==a-1);i++)e.push(", ");e.deindent(o()),e.push("])")}}function u0(e,t){t.body?lo(e,t.body):e.push("null")}function lo(e,t){const{helper:n}=e;switch(t.type){case 0:u0(e,t);break;case 1:s0(e,t);break;case 2:l0(e,t);break;case 6:i0(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw ao(at.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:o0,args:[t.type]})}}const c0=(e,t={})=>{const n=Ye(t.mode)?t.mode:"normal",o=Ye(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
15
|
+
`,i=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],s=a0(e,{filename:o,breakLineCode:a,needIndent:i});s.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(i),l.length>0&&(s.push(`const { ${zl(l.map(v=>`${v}: _${v}`),", ")} } = ctx`),s.newline()),s.push("return "),lo(s,e),s.deindent(i),s.push("}"),delete e.helpers;const{code:d,map:m}=s.context();return{ast:e,code:d,map:m?m.toJSON():void 0}};function d0(e,t={}){const n=tn({},t),o=!!n.jit,a=!!n.minify,i=n.optimize==null?!0:n.optimize,s=Vb(n).parse(e);return o?(i&&n0(s),a&&io(s),{ast:s,code:""}):(t0(s,n),c0(s,n))}function f0(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ir().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ir().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Nn(e){return Et(e)&&Ul(e)===0&&(En(e,"b")||En(e,"body"))}const dd=["b","body"];function v0(e){return dr(e,dd)}const fd=["c","cases"];function m0(e){return dr(e,fd,[])}const vd=["s","static"];function h0(e){return dr(e,vd)}const md=["i","items"];function g0(e){return dr(e,md,[])}const hd=["t","type"];function Ul(e){return dr(e,hd)}const gd=["v","value"];function Xa(e,t){const n=dr(e,gd);if(n!=null)return n;throw Ko(t)}const pd=["m","modifier"];function p0(e){return dr(e,pd)}const bd=["k","key"];function b0(e){const t=dr(e,bd);if(t)return t;throw Ko(6)}function dr(e,t,n){for(let o=0;o<t.length;o++){const a=t[o];if(En(e,a)&&e[a]!=null)return e[a]}return n}const yd=[...dd,...fd,...vd,...md,...bd,...pd,...gd,...hd];function Ko(e){return new Error(`unhandled node type: ${e}`)}function Ql(e){return n=>y0(n,e)}function y0(e,t){const n=v0(t);if(n==null)throw Ko(0);if(Ul(n)===1){const i=m0(n);return e.plural(i.reduce((l,s)=>[...l,_d(e,s)],[]))}else return _d(e,n)}function _d(e,t){const n=h0(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const o=g0(t).reduce((a,i)=>[...a,Wl(e,i)],[]);return e.normalize(o)}}function Wl(e,t){const n=Ul(t);switch(n){case 3:return Xa(t,n);case 9:return Xa(t,n);case 4:{const o=t;if(En(o,"k")&&o.k)return e.interpolate(e.named(o.k));if(En(o,"key")&&o.key)return e.interpolate(e.named(o.key));throw Ko(n)}case 5:{const o=t;if(En(o,"i")&&en(o.i))return e.interpolate(e.list(o.i));if(En(o,"index")&&en(o.index))return e.interpolate(e.list(o.index));throw Ko(n)}case 6:{const o=t,a=p0(o),i=b0(o);return e.linked(Wl(e,i),a?Wl(e,a):void 0,e.type)}case 7:return Xa(t,n);case 8:return Xa(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const _0="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function S0(e,t){t&&Bb(e)&&Un(Qa(_0,{source:e}))}const w0=e=>e;let Ja=At();function C0(e,t={}){let n=!1;const o=t.onError||$b;return t.onError=a=>{n=!0,o(a)},{...d0(e,t),detectError:n}}function x0(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ye(e)){const n=Yt(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&S0(e,n);const a=(t.onCacheKey||w0)(e),i=Ja[a];if(i)return i;const{ast:l,detectError:s}=C0(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),d=Ql(l);return s?d:Ja[a]=d}else{if(process.env.NODE_ENV!=="production"&&!Nn(e))return Un(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);const n=e.cacheKey;if(n){const o=Ja[n];return o||(Ja[n]=Ql(e))}else return Ql(e)}}let Go=null;function k0(e){Go=e}function E0(e,t,n){Go&&Go.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const T0=O0("function:translate");function O0(e){return t=>Go&&Go.emit(e,t)}const un={INVALID_ARGUMENT:Nb,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},q0=24;function tr(e){return ao(e,null,process.env.NODE_ENV!=="production"?{messages:M0}:void 0)}const M0={[un.INVALID_ARGUMENT]:"Invalid arguments",[un.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[un.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[un.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[un.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[un.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[un.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Yl(e,t){return t.locale!=null?Sd(t.locale):Sd(e.locale)}let Kl;function Sd(e){if(Ye(e))return e;if(Bt(e)){if(e.resolvedOnce&&Kl!=null)return Kl;if(e.constructor.name==="Function"){const t=e();if(Pb(t))throw tr(un.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Kl=t}else throw tr(un.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw tr(un.NOT_SUPPORT_LOCALE_TYPE)}function P0(e,t,n){return[...new Set([n,...Wt(t)?t:Et(t)?Object.keys(t):Ye(t)?[t]:[n]])]}function Gl(e,t,n){const o=Ye(n)?n:Va,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(o);if(!i){i=[];let l=[n];for(;Wt(l);)l=wd(i,l,t);const s=Wt(t)||!qt(t)?t:t.default?t.default:null;l=Ye(s)?[s]:s,Wt(l)&&wd(i,l,!1),a.__localeChainCache.set(o,i)}return i}function wd(e,t,n){let o=!0;for(let a=0;a<t.length&&Yt(o);a++){const i=t[a];Ye(i)&&(o=A0(e,t[a],n))}return o}function A0(e,t,n){let o;const a=t.split("-");do{const i=a.join("-");o=R0(e,i,n),a.splice(-1,1)}while(a.length&&o===!0);return o}function R0(e,t,n){let o=!1;if(!e.includes(t)&&(o=!0,t)){o=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(Wt(n)||qt(n))&&n[a]&&(o=n[a])}return o}const fr=[];fr[0]={w:[0],i:[3,0],"[":[4],o:[7]},fr[1]={w:[1],".":[2],"[":[4],o:[7]},fr[2]={w:[2],i:[3,0],0:[3,0]},fr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},fr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},fr[5]={"'":[4,0],o:8,l:[5,0]},fr[6]={'"':[4,0],o:8,l:[6,0]};const L0=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function I0(e){return L0.test(e)}function N0(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function D0(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function $0(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:I0(t)?N0(t):"*"+t}function F0(e){const t=[];let n=-1,o=0,a=0,i,l,s,d,m,v,b;const p=[];p[0]=()=>{l===void 0?l=s:l+=s},p[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},p[2]=()=>{p[0](),a++},p[3]=()=>{if(a>0)a--,o=4,p[0]();else{if(a=0,l===void 0||(l=$0(l),l===!1))return!1;p[1]()}};function _(){const g=e[n+1];if(o===5&&g==="'"||o===6&&g==='"')return n++,s="\\"+g,p[0](),!0}for(;o!==null;)if(n++,i=e[n],!(i==="\\"&&_())){if(d=D0(i),b=fr[o],m=b[d]||b.l||8,m===8||(o=m[0],m[1]!==void 0&&(v=p[m[1]],v&&(s=i,v()===!1))))return;if(o===7)return t}}const Cd=new Map;function B0(e,t){return Et(e)?e[t]:null}function z0(e,t){if(!Et(e))return null;let n=Cd.get(t);if(n||(n=F0(t),n&&Cd.set(t,n)),!n)return null;const o=n.length;let a=e,i=0;for(;i<o;){const l=n[i];if(yd.includes(l)&&Nn(a)||!Et(a)||!En(a,l))return null;const s=a[l];if(s===void 0||Bt(a))return null;a=s,i++}return a}const nn={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9},so=10,H0={[nn.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[nn.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[nn.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[nn.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[nn.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[nn.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[nn.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.",[nn.INVALID_NUMBER_ARGUMENT]:"Invalid argument for number formatting: expected a number but received '{value}'.",[nn.INVALID_DATE_ARGUMENT]:"Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."};function nr(e,...t){return Qa(H0[e],...t)}const j0="11.3.0",Za=-1,Va="en-US",uo="",xd=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function U0(){return{upper:(e,t)=>t==="text"&&Ye(e)?e.toUpperCase():t==="vnode"&&Et(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ye(e)?e.toLowerCase():t==="vnode"&&Et(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ye(e)?xd(e):t==="vnode"&&Et(e)&&"__v_isVNode"in e?xd(e.children):e}}let kd;function Q0(e){kd=e}let Ed;function W0(e){Ed=e}let Td;function Y0(e){Td=e}let Od=null;const K0=e=>{Od=e},G0=()=>Od;let qd=null;const Md=e=>{qd=e},X0=()=>qd;let Pd=0;function J0(e={}){const t=Bt(e.onWarn)?e.onWarn:Un,n=Ye(e.version)?e.version:j0,o=Ye(e.locale)||Bt(e.locale)?e.locale:Va,a=Bt(o)?Va:o,i=Wt(e.fallbackLocale)||qt(e.fallbackLocale)||Ye(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,l=qt(e.messages)?e.messages:Xl(a),s=qt(e.datetimeFormats)?e.datetimeFormats:Xl(a),d=qt(e.numberFormats)?e.numberFormats:Xl(a),m=tn(At(),e.modifiers,U0()),v=e.pluralRules||At(),b=Bt(e.missing)?e.missing:null,p=Yt(e.missingWarn)||Wa(e.missingWarn)?e.missingWarn:!0,_=Yt(e.fallbackWarn)||Wa(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,E=!!e.unresolving,C=Bt(e.postTranslation)?e.postTranslation:null,w=qt(e.processor)?e.processor:null,T=Yt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter,y=Bt(e.messageCompiler)?e.messageCompiler:kd;process.env.NODE_ENV!=="production"&&Bt(e.messageCompiler)&&xb(nr(nn.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const q=Bt(e.messageResolver)?e.messageResolver:Ed||B0,L=Bt(e.localeFallbacker)?e.localeFallbacker:Td||P0,k=Et(e.fallbackContext)?e.fallbackContext:void 0,H=e,ee=Et(H.__datetimeFormatters)?H.__datetimeFormatters:new Map,N=Et(H.__numberFormatters)?H.__numberFormatters:new Map,I=Et(H.__meta)?H.__meta:{};Pd++;const $={version:n,cid:Pd,locale:o,fallbackLocale:i,messages:l,modifiers:m,pluralRules:v,missing:b,missingWarn:p,fallbackWarn:_,fallbackFormat:g,unresolving:E,postTranslation:C,processor:w,warnHtmlMessage:T,escapeParameter:x,messageCompiler:y,messageResolver:q,localeFallbacker:L,fallbackContext:k,onWarn:t,__meta:I};return $.datetimeFormats=s,$.numberFormats=d,$.__datetimeFormatters=ee,$.__numberFormatters=N,process.env.NODE_ENV!=="production"&&($.__v_emitter=H.__v_emitter!=null?H.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&E0($,n,I),$}const Xl=e=>({[e]:At()});function ei(e,t){return e instanceof RegExp?e.test(t):e}function Ad(e,t){return e instanceof RegExp?e.test(t):e}function Jl(e,t,n,o,a){const{missing:i,onWarn:l}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(i!==null){const s=i(e,n,t,a);return Ye(s)?s:t}else return process.env.NODE_ENV!=="production"&&Ad(o,t)&&l(nr(nn.NOT_FOUND_KEY,{key:t,locale:n})),t}function Xo(e,t,n){const o=e;o.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Rd(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Z0(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let o=n+1;o<t.length;o++)if(Rd(e,t[o]))return!0;return!1}const Ld=typeof Intl<"u",Id={dateTimeFormat:Ld&&typeof Intl.DateTimeFormat<"u",numberFormat:Ld&&typeof Intl.NumberFormat<"u"};function Nd(e,...t){const{datetimeFormats:n,unresolving:o,fallbackLocale:a,onWarn:i,localeFallbacker:l}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Id.dateTimeFormat)return i(nr(nn.CANNOT_FORMAT_DATE)),uo;if(!Ye(t[0])&&!nd(t[0])&&!en(t[0]))return process.env.NODE_ENV!=="production"&&i(nr(nn.INVALID_DATE_ARGUMENT,{value:String(t[0])})),uo;const[d,m,v,b]=Zl(...t),p=Yt(v.missingWarn)?v.missingWarn:e.missingWarn,_=Yt(v.fallbackWarn)?v.fallbackWarn:e.fallbackWarn,g=!!v.part,E=Yl(e,v),C=l(e,a,E);if(!Ye(d)||d==="")return new Intl.DateTimeFormat(E.replace(/!/g,""),b).format(m);let w={},T,x=null,y=E,q=null;const L="datetime format";for(let ee=0;ee<C.length;ee++){if(T=q=C[ee],process.env.NODE_ENV!=="production"&&E!==T&&ei(_,d)&&i(nr(nn.FALLBACK_TO_DATE_FORMAT,{key:d,target:T})),process.env.NODE_ENV!=="production"&&E!==T){const N=e.__v_emitter;N&&N.emit("fallback",{type:L,key:d,from:y,to:q,groupId:`${L}:${d}`})}if(w=n[T]||{},x=w[d],qt(x))break;Jl(e,d,T,p,L),y=q}if(!qt(x)||!Ye(T))return o?Za:d;let k=`${T}__${d}`;Ya(b)||(k=`${k}__${JSON.stringify(b)}`);let H=s.get(k);return H||(H=new Intl.DateTimeFormat(T,tn({},x,b)),s.set(k,H)),g?H.formatToParts(m):H.format(m)}const Dd=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Zl(...e){const[t,n,o,a]=e,i=At();let l=At(),s;if(Ye(t)){const d=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!d)throw tr(un.INVALID_ISO_DATE_ARGUMENT);const m=d[3]?d[3].trim().startsWith("T")?`${d[1].trim()}${d[3].trim()}`:`${d[1].trim()}T${d[3].trim()}`:d[1].trim();s=new Date(m);try{s.toISOString()}catch{throw tr(un.INVALID_ISO_DATE_ARGUMENT)}}else if(nd(t)){if(isNaN(t.getTime()))throw tr(un.INVALID_DATE_ARGUMENT);s=t}else if(en(t))s=t;else throw tr(un.INVALID_ARGUMENT);return Ye(n)?i.key=n:qt(n)&&Object.keys(n).forEach(d=>{Dd.includes(d)?l[d]=n[d]:i[d]=n[d]}),Ye(o)?i.locale=o:qt(o)&&(l=o),qt(a)&&(l=a),[i.key||"",s,i,l]}function $d(e,t,n){const o=e;for(const a in n){const i=`${t}__${a}`;o.__datetimeFormatters.has(i)&&o.__datetimeFormatters.delete(i)}}function Fd(e,...t){const{numberFormats:n,unresolving:o,fallbackLocale:a,onWarn:i,localeFallbacker:l}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Id.numberFormat)return i(nr(nn.CANNOT_FORMAT_NUMBER)),uo;if(!en(t[0]))return process.env.NODE_ENV!=="production"&&i(nr(nn.INVALID_NUMBER_ARGUMENT,{value:String(t[0])})),uo;const[d,m,v,b]=Vl(...t),p=Yt(v.missingWarn)?v.missingWarn:e.missingWarn,_=Yt(v.fallbackWarn)?v.fallbackWarn:e.fallbackWarn,g=!!v.part,E=Yl(e,v),C=l(e,a,E);if(!Ye(d)||d==="")return new Intl.NumberFormat(E.replace(/!/g,""),b).format(m);let w={},T,x=null,y=E,q=null;const L="number format";for(let ee=0;ee<C.length;ee++){if(T=q=C[ee],process.env.NODE_ENV!=="production"&&E!==T&&ei(_,d)&&i(nr(nn.FALLBACK_TO_NUMBER_FORMAT,{key:d,target:T})),process.env.NODE_ENV!=="production"&&E!==T){const N=e.__v_emitter;N&&N.emit("fallback",{type:L,key:d,from:y,to:q,groupId:`${L}:${d}`})}if(w=n[T]||{},x=w[d],qt(x))break;Jl(e,d,T,p,L),y=q}if(!qt(x)||!Ye(T))return o?Za:d;let k=`${T}__${d}`;Ya(b)||(k=`${k}__${JSON.stringify(b)}`);let H=s.get(k);return H||(H=new Intl.NumberFormat(T,tn({},x,b)),s.set(k,H)),g?H.formatToParts(m):H.format(m)}const Bd=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Vl(...e){const[t,n,o,a]=e,i=At();let l=At();if(!en(t))throw tr(un.INVALID_ARGUMENT);const s=t;return Ye(n)?i.key=n:qt(n)&&Object.keys(n).forEach(d=>{Bd.includes(d)?l[d]=n[d]:i[d]=n[d]}),Ye(o)?i.locale=o:qt(o)&&(l=o),qt(a)&&(l=a),[i.key||"",s,i,l]}function zd(e,t,n){const o=e;for(const a in n){const i=`${t}__${a}`;o.__numberFormatters.has(i)&&o.__numberFormatters.delete(i)}}const V0=e=>e,ey=e=>"",ty="text",ny=e=>e.length===0?"":zl(e),ry=Ab;function es(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function oy(e){const t=en(e.pluralIndex)?e.pluralIndex:-1;return en(e.named?.count)?e.named.count:en(e.named?.n)?e.named.n:t}function ay(e={}){const t=e.locale,n=oy(e),o=Ye(t)&&Bt(e.pluralRules?.[t])?e.pluralRules[t]:es,a=o===es?void 0:es,i=w=>w[o(n,w.length,a)],l=e.list||[],s=w=>l[w],d=e.named||At();en(e.pluralIndex)&&(d.count||=e.pluralIndex,d.n||=e.pluralIndex);const m=w=>d[w];function v(w,T){const x=Bt(e.messages)?e.messages(w,!!T):Et(e.messages)?e.messages[w]:!1;return x||(e.parent?e.parent.message(w):ey)}const b=w=>e.modifiers?e.modifiers[w]:V0,p=Bt(e.processor?.normalize)?e.processor.normalize:ny,_=Bt(e.processor?.interpolate)?e.processor.interpolate:ry,g=Ye(e.processor?.type)?e.processor.type:ty,C={list:s,named:m,plural:i,linked:(w,...T)=>{const[x,y]=T;let q="text",L="";T.length===1?Et(x)?(L=x.modifier||L,q=x.type||q):Ye(x)&&(L=x||L):T.length===2&&(Ye(x)&&(L=x||L),Ye(y)&&(q=y||q));const k=v(w,!0)(C),H=k===""||k===void 0?w:k,ee=q==="vnode"&&Wt(H)&&L?H[0]:H;return L?b(L)(ee,q):ee},message:v,type:g,interpolate:_,normalize:p,values:tn(At(),l,d)};return C}const Hd=()=>"",Tn=e=>Bt(e);function jd(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:a,messageCompiler:i,fallbackLocale:l,messages:s}=e,[d,m]=ts(...t),v=Yt(m.missingWarn)?m.missingWarn:e.missingWarn,b=Yt(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,p=Yt(m.escapeParameter)?m.escapeParameter:e.escapeParameter,_=!!m.resolvedMessage,g=Ye(m.default)||Yt(m.default)?Yt(m.default)?i?d:()=>d:m.default:n?i?d:()=>d:null,E=n||g!=null&&(Ye(g)||Bt(g)),C=Yl(e,m);p&&iy(m);let[w,T,x]=_?[d,C,s[C]||At()]:Ud(e,d,C,l,b,v),y=w,q=d;if(!_&&!(Ye(y)||Nn(y)||Tn(y))&&E&&(y=g,q=y),!_&&(!(Ye(y)||Nn(y)||Tn(y))||!Ye(T)))return a?Za:d;if(process.env.NODE_ENV!=="production"&&Ye(y)&&e.messageCompiler==null)return Un(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${d}'.`),d;let L=!1;const k=()=>{L=!0},H=Tn(y)?y:Qd(e,d,T,y,q,k);if(L)return y;const ee=cy(e,T,x,m),N=ay(ee),I=ly(e,H,N);let $=o?o(I,d):I;if(p&&Ye($)&&($=qb($)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const D={timestamp:Date.now(),key:Ye(d)?d:Tn(y)?y.key:"",locale:T||(Tn(y)?y.locale:""),format:Ye(y)?y:Tn(y)?y.source:"",message:$};D.meta=tn({},e.__meta,G0()||{}),T0(D)}return $}function iy(e){Wt(e.list)?e.list=e.list.map(t=>Ye(t)?od(t):t):Et(e.named)&&Object.keys(e.named).forEach(t=>{Ye(e.named[t])&&(e.named[t]=od(e.named[t]))})}function Ud(e,t,n,o,a,i){const{messages:l,onWarn:s,messageResolver:d,localeFallbacker:m}=e,v=m(e,o,n);let b=At(),p,_=null,g=n,E=null;const C="translate";for(let w=0;w<v.length;w++){if(p=E=v[w],process.env.NODE_ENV!=="production"&&n!==p&&!Rd(n,p)&&ei(a,t)&&s(nr(nn.FALLBACK_TO_TRANSLATE,{key:t,target:p})),process.env.NODE_ENV!=="production"&&n!==p){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:t,from:g,to:E,groupId:`${C}:${t}`})}b=l[p]||At();let T=null,x,y;if(process.env.NODE_ENV!=="production"&&Zn&&(T=window.performance.now(),x="intlify-message-resolve-start",y="intlify-message-resolve-end",_n&&_n(x)),(_=d(b,t))===null&&(_=b[t]),process.env.NODE_ENV!=="production"&&Zn){const q=window.performance.now(),L=e.__v_emitter;L&&T&&_&&L.emit("message-resolve",{type:"message-resolve",key:t,message:_,time:q-T,groupId:`${C}:${t}`}),x&&y&&_n&&Lr&&(_n(y),Lr("intlify message resolve",x,y))}if(Ye(_)||Nn(_)||Tn(_))break;if(!Z0(p,v)){const q=Jl(e,t,p,i,C);q!==t&&(_=q)}g=E}return[_,p,b]}function Qd(e,t,n,o,a,i){const{messageCompiler:l,warnHtmlMessage:s}=e;if(Tn(o)){const p=o;return p.locale=p.locale||n,p.key=p.key||t,p}if(l==null){const p=(()=>o);return p.locale=n,p.key=t,p}let d=null,m,v;process.env.NODE_ENV!=="production"&&Zn&&(d=window.performance.now(),m="intlify-message-compilation-start",v="intlify-message-compilation-end",_n&&_n(m));const b=l(o,sy(e,n,a,o,s,i));if(process.env.NODE_ENV!=="production"&&Zn){const p=window.performance.now(),_=e.__v_emitter;_&&d&&_.emit("message-compilation",{type:"message-compilation",message:o,time:p-d,groupId:`translate:${t}`}),m&&v&&_n&&Lr&&(_n(v),Lr("intlify message compilation",m,v))}return b.locale=n,b.key=t,b.source=o,b}function ly(e,t,n){let o=null,a,i;process.env.NODE_ENV!=="production"&&Zn&&(o=window.performance.now(),a="intlify-message-evaluation-start",i="intlify-message-evaluation-end",_n&&_n(a));const l=t(n);if(process.env.NODE_ENV!=="production"&&Zn){const s=window.performance.now(),d=e.__v_emitter;d&&o&&d.emit("message-evaluation",{type:"message-evaluation",value:l,time:s-o,groupId:`translate:${t.key}`}),a&&i&&_n&&Lr&&(_n(i),Lr("intlify message evaluation",a,i))}return l}function ts(...e){const[t,n,o]=e,a=At();if(!Ye(t)&&!en(t)&&!Tn(t)&&!Nn(t))throw tr(un.INVALID_ARGUMENT);const i=en(t)?String(t):(Tn(t),t);return en(n)?a.plural=n:Ye(n)?a.default=n:qt(n)&&!Ya(n)?a.named=n:Wt(n)&&(a.list=n),en(o)?a.plural=o:Ye(o)?a.default=o:qt(o)&&tn(a,o),[i,a]}function sy(e,t,n,o,a,i){return{locale:t,key:n,warnHtmlMessage:a,onError:l=>{if(i&&i(l),process.env.NODE_ENV!=="production"){const s=uy(o),d=l.location&&s&&Rb(s,l.location.start.offset,l.location.end.offset),m=e.__v_emitter;m&&s&&m.emit("compile-error",{message:s,error:l.message,start:l.location&&l.location.start.offset,end:l.location&&l.location.end.offset,groupId:`translate:${n}`});const v=`Message compilation error: ${l.message}`;throw new SyntaxError(d?`${v}
|
|
16
|
+
${d}`:v)}throw l},onCacheKey:l=>Eb(t,n,l)}}function uy(e){if(Ye(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function cy(e,t,n,o){const{modifiers:a,pluralRules:i,messageResolver:l,fallbackLocale:s,fallbackWarn:d,missingWarn:m,fallbackContext:v}=e,p={locale:t,modifiers:a,pluralRules:i,messages:(_,g)=>{let E=l(n,_);if(E==null&&(v||g)){const[,,C]=Ud(v||e,_,t,s,d,m);E=l(C,_)}if(Ye(E)||Nn(E)){let C=!1;const T=Qd(e,_,t,E,_,()=>{C=!0});return C?Hd:T}else return Tn(E)?E:Hd}};return e.processor&&(p.processor=e.processor),o.list&&(p.list=o.list),o.named&&(p.named=o.named),en(o.plural)&&(p.pluralIndex=o.plural),p}f0();const dy="11.3.0";function fy(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ir().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ir().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ir().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ir().__INTLIFY_PROD_DEVTOOLS__=!1)}const on={UNEXPECTED_RETURN_TYPE:q0,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Jo(e,...t){return ao(e,null,process.env.NODE_ENV!=="production"?{messages:vy,args:t}:void 0)}const vy={[on.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[on.INVALID_ARGUMENT]:"Invalid argument",[on.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[on.NOT_INSTALLED]:"Need to install with `app.use` function",[on.UNEXPECTED_ERROR]:"Unexpected error",[on.REQUIRED_VALUE]:"Required in value: {0}",[on.INVALID_VALUE]:"Invalid value",[on.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[on.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[on.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[on.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},ns=Vn("__translateVNode"),rs=Vn("__datetimeParts"),os=Vn("__numberParts"),as=Vn("__enableEmitter"),is=Vn("__disableEmitter"),my=Vn("__setPluralRules"),Wd=Vn("__injectWithOption"),ls=Vn("__dispose"),Yn={FALLBACK_TO_ROOT:so,NOT_FOUND_PARENT_SCOPE:so+1,IGNORE_OBJ_FLATTEN:so+2,DEPRECATE_LEGACY_MODE:so+3,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:so+4,DUPLICATE_USE_I18N_CALLING:so+5},hy={[Yn.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Yn.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Yn.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Yn.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
|
|
17
|
+
About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[Yn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[Yn.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function ti(e,...t){return Qa(hy[e],...t)}function Zo(e){if(!Et(e)||Nn(e))return e;for(const t in e)if(En(e,t))if(!t.includes("."))Et(e[t])&&Zo(e[t]);else{const n=t.split("."),o=n.length-1;let a=e,i=!1;for(let l=0;l<o;l++){if(n[l]==="__proto__")throw new Error(`unsafe key: ${n[l]}`);if(n[l]in a||(a[n[l]]=At()),!Et(a[n[l]])){process.env.NODE_ENV!=="production"&&Un(ti(Yn.IGNORE_OBJ_FLATTEN,{key:n[l]})),i=!0;break}a=a[n[l]]}if(i||(Nn(a)?yd.includes(n[o])||delete e[t]:(a[n[o]]=e[t],delete e[t])),!Nn(a)){const l=a[n[o]];Et(l)&&Zo(l)}}return e}function Yd(e,t){const{messages:n,__i18n:o,messageResolver:a,flatJson:i}=t,l=qt(n)?n:Wt(o)?At():{[e]:At()};if(Wt(o)&&o.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:d,resource:m}=s;d?(l[d]=l[d]||At(),Ga(m,l[d])):Ga(m,l)}else Ye(s)&&Ga(JSON.parse(s),l)}),a==null&&i)for(const s in l)En(l,s)&&Zo(l[s]);return l}function Kd(e){return e.type}function gy(e,t,n){let o=Et(t.messages)?t.messages:At();"__i18nGlobal"in n&&(o=Yd(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const a=Object.keys(o);a.length&&a.forEach(i=>{e.mergeLocaleMessage(i,o[i])});{if(Et(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(Et(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function Gd(e){return r.createVNode(r.Text,null,e,0)}function ss(){const e="currentInstance";return e in vl?vl[e]:vl.getCurrentInstance()}const Xd="__INTLIFY_META__",Jd=()=>[],py=()=>!1;let Zd=0;function Vd(e){return((t,n,o,a)=>e(n,o,ss()||void 0,a))}const by=()=>{const e=ss();let t=null;return e&&(t=Kd(e)[Xd])?{[Xd]:t}:null};function yy(e={}){const{__root:t,__injectWithOption:n}=e,o=t===void 0,a=e.flatJson,i=Zn?r.ref:r.shallowRef;let l=Yt(e.inheritLocale)?e.inheritLocale:!0;const s=i(t&&l?t.locale.value:Ye(e.locale)?e.locale:Va),d=i(t&&l?t.fallbackLocale.value:Ye(e.fallbackLocale)||Wt(e.fallbackLocale)||qt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),m=i(Yd(s.value,e)),v=i(qt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),b=i(qt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let p=t?t.missingWarn:Yt(e.missingWarn)||Wa(e.missingWarn)?e.missingWarn:!0,_=t?t.fallbackWarn:Yt(e.fallbackWarn)||Wa(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:Yt(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,C=Bt(e.missing)?e.missing:null,w=Bt(e.missing)?Vd(e.missing):null,T=Bt(e.postTranslation)?e.postTranslation:null,x=t?t.warnHtmlMessage:Yt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const q=t?t.modifiers:qt(e.modifiers)?e.modifiers:{};let L=e.pluralRules||t&&t.pluralRules,k;k=(()=>{o&&Md(null);const ue={version:dy,locale:s.value,fallbackLocale:d.value,messages:m.value,modifiers:q,pluralRules:L,missing:w===null?void 0:w,missingWarn:p,fallbackWarn:_,fallbackFormat:E,unresolving:!0,postTranslation:T===null?void 0:T,warnHtmlMessage:x,escapeParameter:y,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};ue.datetimeFormats=v.value,ue.numberFormats=b.value,ue.__datetimeFormatters=qt(k)?k.__datetimeFormatters:void 0,ue.__numberFormatters=qt(k)?k.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(ue.__v_emitter=qt(k)?k.__v_emitter:void 0);const ge=J0(ue);return o&&Md(ge),ge})(),Xo(k,s.value,d.value);function ee(){return[s.value,d.value,m.value,v.value,b.value]}const N=r.computed({get:()=>s.value,set:ue=>{k.locale=ue,s.value=ue}}),I=r.computed({get:()=>d.value,set:ue=>{k.fallbackLocale=ue,d.value=ue,Xo(k,s.value,ue)}}),$=r.computed(()=>m.value),D=r.computed(()=>v.value),P=r.computed(()=>b.value);function F(){return Bt(T)?T:null}function Y(ue){T=ue,k.postTranslation=ue}function X(){return C}function Z(ue){ue!==null&&(w=Vd(ue)),C=ue,k.missing=w}function ce(ue,ge){return ue!=="translate"||!ge.resolvedMessage}const Ee=(ue,ge,Ne,Be,dt,ut)=>{ee();let fe;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(k.fallbackContext=t?X0():void 0),fe=ue(k)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(k.fallbackContext=void 0)}if(Ne!=="translate exists"&&en(fe)&&fe===Za||Ne==="translate exists"&&!fe){const[Ce,de]=ge();if(process.env.NODE_ENV!=="production"&&t&&Ye(Ce)&&ce(Ne,de)&&(g&&(ei(_,Ce)||Ad(p,Ce))&&Un(ti(Yn.FALLBACK_TO_ROOT,{key:Ce,type:Ne})),process.env.NODE_ENV!=="production")){const{__v_emitter:xe}=k;xe&&g&&xe.emit("fallback",{type:Ne,key:Ce,to:"global",groupId:`${Ne}:${Ce}`})}return t&&g?Be(t):dt(Ce)}else{if(ut(fe))return fe;throw Jo(on.UNEXPECTED_RETURN_TYPE)}};function G(...ue){return Ee(ge=>Reflect.apply(jd,null,[ge,...ue]),()=>ts(...ue),"translate",ge=>Reflect.apply(ge.t,ge,[...ue]),ge=>ge,ge=>Ye(ge))}function R(...ue){const[ge,Ne,Be]=ue;if(Be&&!Et(Be))throw Jo(on.INVALID_ARGUMENT);return G(ge,Ne,tn({resolvedMessage:!0},Be||{}))}function ae(...ue){return Ee(ge=>Reflect.apply(Nd,null,[ge,...ue]),()=>Zl(...ue),"datetime format",ge=>Reflect.apply(ge.d,ge,[...ue]),()=>uo,ge=>Ye(ge)||Wt(ge))}function J(...ue){return Ee(ge=>Reflect.apply(Fd,null,[ge,...ue]),()=>Vl(...ue),"number format",ge=>Reflect.apply(ge.n,ge,[...ue]),()=>uo,ge=>Ye(ge)||Wt(ge))}function be(ue){return ue.map(ge=>Ye(ge)||en(ge)||Yt(ge)?Gd(String(ge)):ge)}const ne={normalize:be,interpolate:ue=>ue,type:"vnode"};function we(...ue){return Ee(ge=>{let Ne;const Be=ge;try{Be.processor=ne,Ne=Reflect.apply(jd,null,[Be,...ue])}finally{Be.processor=null}return Ne},()=>ts(...ue),"translate",ge=>ge[ns](...ue),ge=>[Gd(ge)],ge=>Wt(ge))}function Q(...ue){return Ee(ge=>Reflect.apply(Fd,null,[ge,...ue]),()=>Vl(...ue),"number format",ge=>ge[os](...ue),Jd,ge=>Ye(ge)||Wt(ge))}function Oe(...ue){return Ee(ge=>Reflect.apply(Nd,null,[ge,...ue]),()=>Zl(...ue),"datetime format",ge=>ge[rs](...ue),Jd,ge=>Ye(ge)||Wt(ge))}function Le(ue){L=ue,k.pluralRules=L}function le(ue,ge){return Ee(()=>{if(!ue)return!1;const Ne=Ye(ge)?ge:s.value,Be=Ye(ge)?[Ne]:Gl(k,d.value,Ne);for(let dt=0;dt<Be.length;dt++){const ut=Fe(Be[dt]);let fe=k.messageResolver(ut,ue);if(fe===null&&(fe=ut[ue]),Nn(fe)||Tn(fe)||Ye(fe))return!0}return!1},()=>[ue],"translate exists",Ne=>Reflect.apply(Ne.te,Ne,[ue,ge]),py,Ne=>Yt(Ne))}function qe(ue){let ge=null;const Ne=Gl(k,d.value,s.value);for(let Be=0;Be<Ne.length;Be++){const dt=m.value[Ne[Be]]||{},ut=k.messageResolver(dt,ue);if(ut!=null){ge=ut;break}}return ge}function Re(ue){const ge=qe(ue);return ge??(t?t.tm(ue)||{}:{})}function Fe(ue){return m.value[ue]||{}}function He(ue,ge){if(a){const Ne={[ue]:ge};for(const Be in Ne)En(Ne,Be)&&Zo(Ne[Be]);ge=Ne[ue]}m.value[ue]=ge,k.messages=m.value}function ke(ue,ge){m.value[ue]=m.value[ue]||{};const Ne={[ue]:ge};if(a)for(const Be in Ne)En(Ne,Be)&&Zo(Ne[Be]);ge=Ne[ue],Ga(ge,m.value[ue]),k.messages=m.value}function z(ue){return v.value[ue]||{}}function K(ue,ge){v.value[ue]=ge,k.datetimeFormats=v.value,$d(k,ue,ge)}function ve(ue,ge){v.value[ue]=tn(v.value[ue]||{},ge),k.datetimeFormats=v.value,$d(k,ue,ge)}function oe(ue){return b.value[ue]||{}}function se(ue,ge){b.value[ue]=ge,k.numberFormats=b.value,zd(k,ue,ge)}function Se(ue,ge){b.value[ue]=tn(b.value[ue]||{},ge),k.numberFormats=b.value,zd(k,ue,ge)}Zd++,t&&Zn&&(r.watch(t.locale,ue=>{l&&(s.value=ue,k.locale=ue,Xo(k,s.value,d.value))}),r.watch(t.fallbackLocale,ue=>{l&&(d.value=ue,k.fallbackLocale=ue,Xo(k,s.value,d.value))}));const Te={id:Zd,locale:N,fallbackLocale:I,get inheritLocale(){return l},set inheritLocale(ue){l=ue,ue&&t&&(s.value=t.locale.value,d.value=t.fallbackLocale.value,Xo(k,s.value,d.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:$,get modifiers(){return q},get pluralRules(){return L||{}},get isGlobal(){return o},get missingWarn(){return p},set missingWarn(ue){p=ue,k.missingWarn=p},get fallbackWarn(){return _},set fallbackWarn(ue){_=ue,k.fallbackWarn=_},get fallbackRoot(){return g},set fallbackRoot(ue){g=ue},get fallbackFormat(){return E},set fallbackFormat(ue){E=ue,k.fallbackFormat=E},get warnHtmlMessage(){return x},set warnHtmlMessage(ue){x=ue,k.warnHtmlMessage=ue},get escapeParameter(){return y},set escapeParameter(ue){y=ue,k.escapeParameter=ue},t:G,getLocaleMessage:Fe,setLocaleMessage:He,mergeLocaleMessage:ke,getPostTranslationHandler:F,setPostTranslationHandler:Y,getMissingHandler:X,setMissingHandler:Z,[my]:Le};return Te.datetimeFormats=D,Te.numberFormats=P,Te.rt=R,Te.te=le,Te.tm=Re,Te.d=ae,Te.n=J,Te.getDateTimeFormat=z,Te.setDateTimeFormat=K,Te.mergeDateTimeFormat=ve,Te.getNumberFormat=oe,Te.setNumberFormat=se,Te.mergeNumberFormat=Se,Te[Wd]=n,Te[ns]=we,Te[rs]=Oe,Te[os]=Q,process.env.NODE_ENV!=="production"&&(Te[as]=ue=>{k.__v_emitter=ue},Te[is]=()=>{k.__v_emitter=void 0}),Te}function ef(e,t){}const us={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function _y({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((o,a)=>[...o,...a.type===r.Fragment?a.children:[a]],[]):t.reduce((n,o)=>{const a=e[o];return a&&(n[o]=a()),n},At())}function tf(){return r.Fragment}tn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>en(e)||!isNaN(e)}},us);function Sy(e){return Wt(e)&&!Ye(e[0])}function nf(e,t,n,o){const{slots:a,attrs:i}=t;return()=>{const l={part:!0};let s=At();e.locale&&(l.locale=e.locale),Ye(e.format)?l.key=e.format:Et(e.format)&&(Ye(e.format.key)&&(l.key=e.format.key),s=Object.keys(e.format).reduce((p,_)=>n.includes(_)?tn(At(),p,{[_]:e.format[_]}):p,At()));const d=o(e.value,l,s);let m=[l.key];Wt(d)?m=d.map((p,_)=>{const g=a[p.type],E=g?g({[p.type]:p.value,index:_,parts:d}):[p.value];return Sy(E)&&(E[0].key=`${p.type}-${_}`),E}):Ye(d)&&(m=[d]);const v=tn(At(),i),b=Ye(e.tag)||Et(e.tag)?e.tag:tf();return r.h(b,v,m)}}tn({value:{type:Number,required:!0},format:{type:[String,Object]}},us);const wy=Vn("global-vue-i18n");function ni(e={}){const t=ss();if(t==null)throw Jo(on.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Jo(on.NOT_INSTALLED);const n=Cy(t),o=ky(n),a=Kd(t),i=xy(e,a);if(i==="global")return gy(o,e,a),o;if(i==="parent"){let d=Ey(n,t,e.__useComponent);return d==null&&(process.env.NODE_ENV!=="production"&&Un(ti(Yn.NOT_FOUND_PARENT_SCOPE)),d=o),d}const l=n;let s=l.__getInstance(t);if(s==null){const d=tn({},e);"__i18n"in a&&(d.__i18n=a.__i18n),o&&(d.__root=o),s=yy(d),l.__composerExtend&&(s[ls]=l.__composerExtend(s)),Oy(l,t,s),l.__setInstance(t,s)}else process.env.NODE_ENV!=="production"&&i==="local"&&Un(ti(Yn.DUPLICATE_USE_I18N_CALLING));return s}function Cy(e){const t=r.inject(e.isCE?wy:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Jo(e.isCE?on.NOT_INSTALLED_WITH_PROVIDE:on.UNEXPECTED_ERROR);return t}function xy(e,t){return Ya(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function ky(e){return e.mode==="composition"?e.global:e.global.__composer}function Ey(e,t,n=!1){let o=null;const a=t.root;let i=Ty(t,n);for(;i!=null;){const l=e;if(e.mode==="composition")o=l.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const s=l.__getInstance(i);s!=null&&(o=s.__composer,n&&o&&!o[Wd]&&(o=null))}if(o!=null||a===i)break;i=i.parent}return o}function Ty(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Oy(e,t,n){let o=null;r.onMounted(()=>{if(process.env.NODE_ENV!=="production"){t.__VUE_I18N__=n,o=Lb();const a=n;a[as]&&a[as](o),o.on("*",ef)}},t),r.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&(o&&o.off("*",ef),a[is]&&a[is](),delete t.__VUE_I18N__),e.__deleteInstance(t);const i=a[ls];i&&(i(),delete a[ls])},t)}if(tn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},us),fy(),Q0(x0),W0(z0),Y0(Gl),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ir();e.__INTLIFY__=!0,k0(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;let ri=null;function qy(e){if(ri!==null){console.warn("[LinID CoreLib] I18n has already been initialized. Re-initialization is ignored.");return}ri=e}function rf(){if(ri===null)throw new Error("[LinID CoreLib] I18n is not initialized. Call setI18nInstance() first.");return ri}function of(e){const{t,te:n,tm:o}=ni({useScope:"global",__i18n:rf().global});function a(...d){const[m,v,b]=d;return t(typeof v=="number"?`${e}.${m}`:`${e}.${m}`,v,b)}function i(d){return n(`${e}.${d}`)}function l(d){return o(`${e}.${d}`)}function s(d,...m){return i(m[0])?a(...m):d}return{t:a,te:i,tm:l,translateOrDefault:s}}const My=new Set([Jc.BadRequest,Jc.NotFound]);function Py(e){return Qt.isAxiosError(e)&&e.response?.status!=null&&My.has(e.response.status)}function af(e){const{t}=of(e),{toDayjs:n}=tc();async function o(w,T,x){try{return await wb(w,T,x),!0}catch(y){return Py(y)?y.response.data.error:t("validation.unknownError")}}function a(w){return w==null||w===""?t("validation.required"):!0}function i(w){return typeof w!="string"||!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(w)?t("validation.email"):!0}function l(w,T){return w!=null&&w.length<T?t("validation.minLength",{min:T}):!0}function s(w,T){return w!=null&&w.length>T?t("validation.maxLength",{max:T}):!0}function d(w,T){return T>w?t("validation.min",{min:T}):!0}function m(w,T){return w>T?t("validation.max",{max:T}):!0}function v(w,T){return new RegExp(T).test(w)?!0:t("validation.pattern",{pattern:T.toString()})}function b(w,T){return w==null?!0:(typeof w=="object"?T.some(y=>Ua(w,y)):T.some(y=>y!=null&&String(y)===String(w)))?t("validation.unique"):!0}function p(w,T){return w==null||w===""||n(w,T).isValid()?!0:t("validation.invalidDate",{format:T||Or})}function _(w,T,x){if(w==null||w==="")return!0;const y=n(w,x),q=n(T,x);return!y.isValid()||!q.isValid()||y.isAfter(q,"day")?!0:t("validation.afterDate",{compareTo:q.format(x||Or)})}function g(w,T,x){if(w==null||w==="")return!0;const y=n(w,x),q=n(T,x);return!y.isValid()||!q.isValid()||y.isBefore(q,"day")?!0:t("validation.beforeDate",{compareTo:q.format(x||Or)})}function E(w,T,x){if(w==null||w==="")return!0;const y=n(w,x),q=n(T,x);return!y.isValid()||!q.isValid()?!0:y.isBefore(q,"day")?t("validation.fromDate",{compareTo:q.format(x||Or)}):!0}function C(w,T,x){if(w==null||w==="")return!0;const y=n(w,x),q=n(T,x);return!y.isValid()||!q.isValid()?!0:y.isAfter(q,"day")?t("validation.upToDate",{compareTo:q.format(x||Or)}):!0}return{validateFromApi:o,required:a,email:i,minLength:l,maxLength:s,min:d,max:m,pattern:v,unique:b,validDate:p,afterDate:_,beforeDate:g,fromDate:E,upToDate:C}}function Ay(){function e(t){kl.next({key:"notify",data:t})}return{Notify:e}}let oi=null;function Ry(e){if(oi!==null){console.warn("[LinID CoreLib] Nunjucks environment has already been initialized. Re-initialization is ignored.");return}oi=e}function lf(){if(oi===null)throw new Error("[LinID CoreLib] Nunjucks environment is not initialized. Call setNunjucksEnv() first.");return oi}function Ly(){const e=lf();function t(n,o){return typeof n=="string"?e.renderString(n,o):Array.isArray(n)?n.map(a=>t(a,o)):n!==null&&typeof n=="object"&&Object.getPrototypeOf(n)===Object.prototype?Object.fromEntries(Object.entries(n).map(([a,i])=>[a,t(i,o)])):n}return{render:t}}function Iy(){function e(n){return{page:(n.page||1)-1,size:n.rowsPerPage||5,sort:n.sortBy||"updateDate",direction:n.descending?"desc":"asc"}}function t(n){return{page:n.number+1,rowsPerPage:n.size,rowsNumber:n.totalElements}}return{toPagination:e,toQuasarPagination:t}}var cs=null;function ds(){return cs!==null?cs:cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}typeof __QUASAR_SSR__!="boolean"&&(ds().__QUASAR_SSR__=!1),typeof __QUASAR_SSR_CLIENT__!="boolean"&&(ds().__QUASAR_SSR_CLIENT__=!1),typeof __QUASAR_SSR_PWA__!="boolean"&&(ds().__QUASAR_SSR_PWA__=!1);function Jt(e,t,n,o){return Object.defineProperty(e,t,{get:n,set:o,enumerable:!0}),e}function sf(e,t){for(const n in t)Jt(e,n,t[n]);return e}var On=r.ref(__QUASAR_SSR_CLIENT__&&(__QUASAR_SSR_PWA__?document.body.getAttribute("data-server-rendered")!==null:!0)),fs;function Ny(e,t){const n=/(edg|edge|edga|edgios)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(vivaldi)[\/]([\w.]+)/.exec(e)||/(chrome|crios)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e)||/(firefox|fxios)[\/]([\w.]+)/.exec(e)||/(webkit)[\/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[\/]([\w.]+)/.exec(e)||[];return{browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0",platform:t[0]||""}}function Dy(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)||[]}var uf="ontouchstart"in window||window.navigator.maxTouchPoints>0;function $y(e){const t=e.toLowerCase(),n=Dy(t),o=Ny(t,n),a={mobile:!1,desktop:!1,cordova:!1,capacitor:!1,nativeMobile:!1,electron:!1,bex:!1,linux:!1,mac:!1,win:!1,cros:!1,chrome:!1,firefox:!1,opera:!1,safari:!1,vivaldi:!1,edge:!1,edgeChromium:!1,ie:!1,webkit:!1,android:!1,ios:!1,ipad:!1,iphone:!1,ipod:!1,kindle:!1,winphone:!1,blackberry:!1,playbook:!1,silk:!1};o.browser&&(a[o.browser]=!0,a.version=o.version,a.versionNumber=parseInt(o.version,10)),o.platform&&(a[o.platform]=!0);const i=a.android||a.ios||a.bb||a.blackberry||a.ipad||a.iphone||a.ipod||a.kindle||a.playbook||a.silk||a["windows phone"];if(i===!0||t.indexOf("mobile")!==-1?a.mobile=!0:a.desktop=!0,a["windows phone"]&&(a.winphone=!0,delete a["windows phone"]),a.edga||a.edgios||a.edg?(a.edge=!0,o.browser="edge"):a.crios?(a.chrome=!0,o.browser="chrome"):a.fxios&&(a.firefox=!0,o.browser="firefox"),(a.ipod||a.ipad||a.iphone)&&(a.ios=!0),a.vivaldi&&(o.browser="vivaldi",a.vivaldi=!0),(a.chrome||a.opr||a.safari||a.vivaldi||a.mobile===!0&&a.ios!==!0&&i!==!0)&&(a.webkit=!0),a.opr&&(o.browser="opera",a.opera=!0),a.safari&&(a.blackberry||a.bb?(o.browser="blackberry",a.blackberry=!0):a.playbook?(o.browser="playbook",a.playbook=!0):a.android?(o.browser="android",a.android=!0):a.kindle?(o.browser="kindle",a.kindle=!0):a.silk&&(o.browser="silk",a.silk=!0)),a.name=o.browser,a.platform=o.platform,t.indexOf("electron")!==-1)a.electron=!0;else if(document.location.href.indexOf("-extension://")!==-1)a.bex=!0;else{if(window.Capacitor!==void 0?(a.capacitor=!0,a.nativeMobile=!0,a.nativeMobileWrapper="capacitor"):(window._cordovaNative!==void 0||window.cordova!==void 0)&&(a.cordova=!0,a.nativeMobile=!0,a.nativeMobileWrapper="cordova"),On.value===!0&&(fs={is:{...a}}),uf===!0&&a.mac===!0&&(a.desktop===!0&&a.safari===!0||a.nativeMobile===!0&&a.android!==!0&&a.ios!==!0&&a.ipad!==!0)){delete a.mac,delete a.desktop;const l=Math.min(window.innerHeight,window.innerWidth)>414?"ipad":"iphone";Object.assign(a,{mobile:!0,ios:!0,platform:l,[l]:!0})}a.mobile!==!0&&window.navigator.userAgentData&&window.navigator.userAgentData.mobile&&(delete a.desktop,a.mobile=!0)}return a}var cf=navigator.userAgent||navigator.vendor||window.opera,Fy={has:{touch:!1,webStorage:!1},within:{iframe:!1}},ft={userAgent:cf,is:$y(cf),has:{touch:uf},within:{iframe:window.self!==window.top}},vs={install(e){const{$q:t}=e;On.value===!0?(e.onSSRHydrated.push(()=>{Object.assign(t.platform,ft),On.value=!1}),t.platform=r.reactive(this)):t.platform=this}};{let e;Jt(ft.has,"webStorage",()=>{if(e!==void 0)return e;try{if(window.localStorage)return e=!0,!0}catch{}return e=!1,!1}),Object.assign(vs,ft),On.value===!0&&(Object.assign(vs,fs,Fy),fs=null)}var By=vs;function _e(e){return r.markRaw(r.defineComponent(e))}function Dn(e){return r.markRaw(e)}var vr=(e,t)=>{const n=r.reactive(e);for(const o in e)Jt(t,o,()=>n[o],a=>{n[o]=a});return t},Rt={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(Rt,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function Kt(){}function ai(e){return e.button===0}function mn(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 zy(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;for(;n;){if(t.push(n),n.tagName==="HTML")return t.push(document),t.push(window),t;n=n.parentElement}}function $t(e){e.stopPropagation()}function Zt(e){e.cancelable!==!1&&e.preventDefault()}function ct(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function co(e,t){if(e===void 0||t===!0&&e.__dragPrevented===!0)return;const n=t===!0?o=>{o.__dragPrevented=!0,o.addEventListener("dragstart",Zt,Rt.notPassiveCapture)}:o=>{delete o.__dragPrevented,o.removeEventListener("dragstart",Zt,Rt.notPassiveCapture)};e.querySelectorAll("a, img").forEach(n)}function zt(e,t,n){const o=`__q_${t}_evt`;e[o]=e[o]!==void 0?e[o].concat(n):n,n.forEach(a=>{a[0].addEventListener(a[1],e[a[2]],Rt[a[3]])})}function cn(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(o=>{o[0].removeEventListener(o[1],e[o[2]],Rt[o[3]])}),e[n]=void 0)}function fo(e,t=250,n){let o=null;function a(){const i=arguments,l=()=>{o=null,e.apply(this,i)};o!==null&&clearTimeout(o),o=setTimeout(l,t)}return a.cancel=()=>{o!==null&&clearTimeout(o)},a}var ms=["sm","md","lg","xl"],{passive:df}=Rt;vr({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:Kt,setDebounce:Kt,install({$q:e,onSSRHydrated:t}){if(e.screen=this,this.__installed===!0){e.config.screen!==void 0&&(e.config.screen.bodyClasses===!1?document.body.classList.remove(`screen--${this.name}`):this.__update(!0));return}const{visualViewport:n}=window,o=n||window,a=document.scrollingElement||document.documentElement,i=n===void 0||ft.is.mobile===!0?()=>[Math.max(window.innerWidth,a.clientWidth),Math.max(window.innerHeight,a.clientHeight)]:()=>[n.width*n.scale+window.innerWidth-a.clientWidth,n.height*n.scale+window.innerHeight-a.clientHeight],l=e.config.screen?.bodyClasses===!0;this.__update=b=>{const[p,_]=i();if(_!==this.height&&(this.height=_),p!==this.width)this.width=p;else if(b!==!0)return;let g=this.sizes;this.gt.xs=p>=g.sm,this.gt.sm=p>=g.md,this.gt.md=p>=g.lg,this.gt.lg=p>=g.xl,this.lt.sm=p<g.sm,this.lt.md=p<g.md,this.lt.lg=p<g.lg,this.lt.xl=p<g.xl,this.xs=this.lt.sm,this.sm=this.gt.xs===!0&&this.lt.md===!0,this.md=this.gt.sm===!0&&this.lt.lg===!0,this.lg=this.gt.md===!0&&this.lt.xl===!0,this.xl=this.gt.lg,g=this.xs===!0&&"xs"||this.sm===!0&&"sm"||this.md===!0&&"md"||this.lg===!0&&"lg"||"xl",g!==this.name&&(l===!0&&(document.body.classList.remove(`screen--${this.name}`),document.body.classList.add(`screen--${g}`)),this.name=g)};let s,d={},m=16;this.setSizes=b=>{ms.forEach(p=>{b[p]!==void 0&&(d[p]=b[p])})},this.setDebounce=b=>{m=b};const v=()=>{const b=getComputedStyle(document.body);b.getPropertyValue("--q-size-sm")&&ms.forEach(p=>{this.sizes[p]=parseInt(b.getPropertyValue(`--q-size-${p}`),10)}),this.setSizes=p=>{ms.forEach(_=>{p[_]&&(this.sizes[_]=p[_])}),this.__update(!0)},this.setDebounce=p=>{s!==void 0&&o.removeEventListener("resize",s,df),s=p>0?fo(this.__update,p):this.__update,o.addEventListener("resize",s,df)},this.setDebounce(m),Object.keys(d).length!==0?(this.setSizes(d),d=void 0):this.__update(),l===!0&&this.name==="xs"&&document.body.classList.add("screen--xs")};On.value===!0?t.push(v):v()}});var hn=vr({isActive:!1,mode:!1},{__media:void 0,set(e){hn.mode=e,e==="auto"?(hn.__media===void 0&&(hn.__media=window.matchMedia("(prefers-color-scheme: dark)"),hn.__updateMedia=()=>{hn.set("auto")},hn.__media.addListener(hn.__updateMedia)),e=hn.__media.matches):hn.__media!==void 0&&(hn.__media.removeListener(hn.__updateMedia),hn.__media=void 0),hn.isActive=e===!0,document.body.classList.remove(`body--${e===!0?"light":"dark"}`),document.body.classList.add(`body--${e===!0?"dark":"light"}`)},toggle(){hn.set(hn.isActive===!1)},install({$q:e,ssrContext:t}){const n=__QUASAR_SSR_CLIENT__?document.body.classList.contains("body--dark"):e.config.dark;e.dark=this,this.__installed!==!0&&this.set(n!==void 0?n:!1)}});function Nr(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function qn(e,t){return Nr(e)===!0?!1:[].concat(t).includes(e.keyCode)}var hs={isoName:"en-US",nativeName:"English (US)",label:{clear:"Clear",ok:"OK",cancel:"Cancel",close:"Close",set:"Set",select:"Select",reset:"Reset",remove:"Remove",update:"Update",create:"Create",search:"Search",filter:"Filter",refresh:"Refresh",expand:e=>e?`Expand "${e}"`:"Expand",collapse:e=>e?`Collapse "${e}"`:"Collapse"},date:{days:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),daysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),firstDayOfWeek:0,format24h:!1,pluralDay:"days",prevMonth:"Previous month",nextMonth:"Next month",prevYear:"Previous year",nextYear:"Next year",today:"Today",prevRangeYears:e=>`Previous ${e} years`,nextRangeYears:e=>`Next ${e} years`},table:{noData:"No data available",noResults:"No matching records found",loading:"Loading...",selectedRecords:e=>e===1?"1 record selected.":(e===0?"No":e)+" records selected.",recordsPerPage:"Records per page:",allRows:"All",pagination:(e,t,n)=>e+"-"+t+" of "+n,columns:"Columns"},pagination:{first:"First page",prev:"Previous page",next:"Next page",last:"Last page"},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 ff(){const e=Array.isArray(navigator.languages)===!0&&navigator.languages.length!==0?navigator.languages[0]:navigator.language;if(typeof e=="string")return e.split(/[-_]/).map((t,n)=>n===0?t.toLowerCase():n>1||t.length<4?t.toUpperCase():t[0].toUpperCase()+t.slice(1).toLowerCase()).join("-")}var Dr=vr({__qLang:{}},{getLocale:ff,set(e=hs,t){const n={...e,rtl:e.rtl===!0,getLocale:ff};{if(n.set=Dr.set,Dr.__langConfig===void 0||Dr.__langConfig.noHtmlAttrs!==!0){const o=document.documentElement;o.setAttribute("dir",n.rtl===!0?"rtl":"ltr"),o.setAttribute("lang",n.isoName)}Object.assign(Dr.__qLang,n)}},install({$q:e,lang:t,ssrContext:n}){e.lang=Dr.__qLang,Dr.__langConfig=e.config.lang,this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qLang,{get(){return Reflect.get(...arguments)},ownKeys(o){return Reflect.ownKeys(o).filter(a=>a!=="set"&&a!=="getLocale")}}),this.set(t||hs))}}),vf=Dr,Hy={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"}},mf=vr({iconMapFn:null,__qIconSet:{}},{set(e,t){const n={...e};n.set=mf.set,Object.assign(mf.__qIconSet,n)},install({$q:e,iconSet:t,ssrContext:n}){e.config.iconMapFn!==void 0&&(this.iconMapFn=e.config.iconMapFn),e.iconSet=this.__qIconSet,Jt(e,"iconMapFn",()=>this.iconMapFn,o=>{this.iconMapFn=o}),this.__installed===!0?t!==void 0&&this.set(t):(this.props=new Proxy(this.__qIconSet,{get(){return Reflect.get(...arguments)},ownKeys(o){return Reflect.ownKeys(o).filter(a=>a!=="set")}}),this.set(t||Hy))}}),hf="_q_t_",gf="_q_s_",$r="_q_l_",pf="_q_pc_",bf="_q_f_",yf="_q_fo_",_f="_q_tabs_",Sf="_q_u_";function kt(){}var wf={};function $n(e,t){if(e===t)return!0;if(e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,o;if(e.constructor===Array){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if($n(e[o],t[o])!==!0)return!1;return!0}if(e.constructor===Map){if(e.size!==t.size)return!1;let i=e.entries();for(o=i.next();o.done!==!0;){if(t.has(o.value[0])!==!0)return!1;o=i.next()}for(i=e.entries(),o=i.next();o.done!==!0;){if($n(o.value[1],t.get(o.value[0]))!==!0)return!1;o=i.next()}return!0}if(e.constructor===Set){if(e.size!==t.size)return!1;const i=e.entries();for(o=i.next();o.done!==!0;){if(t.has(o.value[0])!==!0)return!1;o=i.next()}return!0}if(e.buffer!=null&&e.buffer.constructor===ArrayBuffer){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const a=Object.keys(e).filter(i=>e[i]!==void 0);if(n=a.length,n!==Object.keys(t).filter(i=>t[i]!==void 0).length)return!1;for(o=n;o--!==0;){const i=a[o];if($n(e[i],t[i])!==!0)return!1}return!0}return e!==e&&t!==t}function dn(e){return e!==null&&typeof e=="object"&&Array.isArray(e)!==!0}function Vo(e){return Object.prototype.toString.call(e)==="[object Date]"}function jy(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function ea(e){return typeof e=="number"&&isFinite(e)}function Cf(e,t){const n=r.createApp(e);n.config.globalProperties=t.config.globalProperties;const{reload:o,...a}=t._context;return Object.assign(n._context,a),n}var xf=["B","KB","MB","GB","TB","PB"];function gs(e,t=1){let n=0;for(;parseInt(e,10)>=1024&&n<xf.length-1;)e/=1024,++n;return`${e.toFixed(t)}${xf[n]}`}function Uy(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Mt(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function ii(e,t,n){if(n<=t)return t;const o=n-t+1;let a=t+(e-t)%o;return a<t&&(a=o+a),a===0?0:a}function Ct(e,t=2,n="0"){if(e==null)return e;const o=""+e;return o.length>=t?o:new Array(t-o.length+1).join(n)+o}var ps=XMLHttpRequest,kf=ps.prototype.open,Qy=["top","right","bottom","left"],li=[],ta=0;function Wy({p:e,pos:t,active:n,horiz:o,reverse:a,dir:i}){let l=1,s=1;return o===!0?(a===!0&&(l=-1),t==="bottom"&&(s=-1),{transform:`translate3d(${l*(e-100)}%,${n?0:s*-200}%,0)`}):(a===!0&&(s=-1),t==="right"&&(l=-1),{transform:`translate3d(${n?0:i*l*-200}%,${s*(e-100)}%,0)`})}function Yy(e,t){return typeof t!="number"&&(e<25?t=Math.random()*3+3:e<65?t=Math.random()*3:e<85?t=Math.random()*2:e<99?t=.6:t=0),Mt(e+t,0,100)}function Ky(e){ta++,li.push(e),!(ta>1)&&(ps.prototype.open=function(t,n){const o=[],a=()=>{li.forEach(l=>{(l.hijackFilter.value===null||l.hijackFilter.value(n)===!0)&&(l.start(),o.push(l.stop))})},i=()=>{o.forEach(l=>{l()})};this.addEventListener("loadstart",a,{once:!0}),this.addEventListener("loadend",i,{once:!0}),kf.apply(this,arguments)})}function Gy(e){li=li.filter(t=>t.start!==e),ta=Math.max(0,ta-1),ta===0&&(ps.prototype.open=kf)}var Xy=_e({name:"QAjaxBar",props:{position:{type:String,default:"top",validator:e=>Qy.includes(e)},size:{type:String,default:"2px"},color:String,skipHijack:Boolean,reverse:Boolean,hijackFilter:Function},emits:["start","stop"],setup(e,{emit:t}){const{proxy:n}=r.getCurrentInstance(),o=r.ref(0),a=r.ref(!1),i=r.ref(!0);let l=0,s=null,d;const m=r.computed(()=>`q-loading-bar q-loading-bar--${e.position}`+(e.color!==void 0?` bg-${e.color}`:"")+(i.value===!0?"":" no-transition")),v=r.computed(()=>e.position==="top"||e.position==="bottom"),b=r.computed(()=>v.value===!0?"height":"width"),p=r.computed(()=>{const x=a.value,y=Wy({p:o.value,pos:e.position,active:x,horiz:v.value,reverse:n.$q.lang.rtl===!0&&["top","bottom"].includes(e.position)?e.reverse===!1:e.reverse,dir:n.$q.lang.rtl===!0?-1:1});return y[b.value]=e.size,y.opacity=x?1:0,y}),_=r.computed(()=>a.value===!0?{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o.value}:{"aria-hidden":"true"});function g(x=300){const y=d;return d=Math.max(0,x)||0,l++,l>1?(y===0&&x>0?w():s!==null&&y>0&&x<=0&&(clearTimeout(s),s=null),l):(s!==null&&clearTimeout(s),t("start"),o.value=0,s=setTimeout(()=>{s=null,i.value=!0,x>0&&w()},a._value===!0?500:1),a._value!==!0&&(a.value=!0,i.value=!1),l)}function E(x){return l>0&&(o.value=Yy(o.value,x)),l}function C(){if(l=Math.max(0,l-1),l>0)return l;s!==null&&(clearTimeout(s),s=null),t("stop");const x=()=>{i.value=!0,o.value=100,s=setTimeout(()=>{s=null,a.value=!1},1e3)};return o.value===0?s=setTimeout(x,1):x(),l}function w(){o.value<100&&(s=setTimeout(()=>{s=null,E(),w()},d))}let T;return r.onMounted(()=>{e.skipHijack!==!0&&(T=!0,Ky({start:g,stop:C,hijackFilter:r.computed(()=>e.hijackFilter||null)}))}),r.onBeforeUnmount(()=>{s!==null&&clearTimeout(s),T===!0&&Gy(g)}),Object.assign(n,{start:g,stop:C,increment:E}),()=>r.h("div",{class:m.value,style:p.value,..._.value})}}),bs={xs:18,sm:24,md:32,lg:38,xl:46},rr={size:String};function or(e,t=bs){return r.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function Ke(e,t){return e!==void 0&&e()||t}function na(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function Ht(e,t){return e!==void 0?t.concat(e()):t}function ys(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function Mn(e,t,n,o,a,i){t.key=o+a;const l=r.h(e,t,n);return a===!0?r.withDirectives(l,i()):l}var Ef="0 0 24 24",_s=e=>e,Ss=e=>`ionicons ${e}`,Tf={"mdi-":e=>`mdi ${e}`,"icon-":_s,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":Ss,"ion-ios":Ss,"ion-logo":Ss,"iconfont ":_s,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`,"i-":_s},Of={o_:"-outlined",r_:"-round",s_:"-sharp"},qf={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},Jy=new RegExp("^("+Object.keys(Tf).join("|")+")"),Zy=new RegExp("^("+Object.keys(Of).join("|")+")"),Mf=new RegExp("^("+Object.keys(qf).join("|")+")"),Vy=/^[Mm]\s?[-+]?\.?\d/,e_=/^img:/,t_=/^svguse:/,n_=/^ion-/,r_=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,wt=_e({name:"QIcon",props:{...rr,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),o=or(e),a=r.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),i=r.computed(()=>{let l,s=e.name;if(s==="none"||!s)return{none:!0};if(n.iconMapFn!==null){const v=n.iconMapFn(s);if(v!==void 0)if(v.icon!==void 0){if(s=v.icon,s==="none"||!s)return{none:!0}}else return{cls:v.cls,content:v.content!==void 0?v.content:" "}}if(Vy.test(s)===!0){const[v,b=Ef]=s.split("|");return{svg:!0,viewBox:b,nodes:v.split("&&").map(p=>{const[_,g,E]=p.split("@@");return r.h("path",{style:g,d:_,transform:E})})}}if(e_.test(s)===!0)return{img:!0,src:s.substring(4)};if(t_.test(s)===!0){const[v,b=Ef]=s.split("|");return{svguse:!0,src:v.substring(7),viewBox:b}}let d=" ";const m=s.match(Jy);if(m!==null)l=Tf[m[1]](s);else if(r_.test(s)===!0)l=s;else if(n_.test(s)===!0)l=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${s.substring(3)}`;else if(Mf.test(s)===!0){l="notranslate material-symbols";const v=s.match(Mf);v!==null&&(s=s.substring(6),l+=qf[v[1]]),d=s}else{l="notranslate material-icons";const v=s.match(Zy);v!==null&&(s=s.substring(2),l+=Of[v[1]]),d=s}return{cls:l,content:d}});return()=>{const l={class:a.value,style:o.value,"aria-hidden":"true"};return i.value.none===!0?r.h(e.tag,l,Ke(t.default)):i.value.img===!0?r.h(e.tag,l,Ht(t.default,[r.h("img",{src:i.value.src})])):i.value.svg===!0?r.h(e.tag,l,Ht(t.default,[r.h("svg",{viewBox:i.value.viewBox||"0 0 24 24"},i.value.nodes)])):i.value.svguse===!0?r.h(e.tag,l,Ht(t.default,[r.h("svg",{viewBox:i.value.viewBox},[r.h("use",{"xlink:href":i.value.src})])])):(i.value.cls!==void 0&&(l.class+=" "+i.value.cls),r.h(e.tag,l,Ht(t.default,[i.value.content])))}}});_e({name:"QAvatar",props:{...rr,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(e,{slots:t}){const n=or(e),o=r.computed(()=>"q-avatar"+(e.color?` bg-${e.color}`:"")+(e.textColor?` text-${e.textColor} q-chip--colored`:"")+(e.square===!0?" q-avatar--square":e.rounded===!0?" rounded-borders":"")),a=r.computed(()=>e.fontSize?{fontSize:e.fontSize}:null);return()=>{const i=e.icon!==void 0?[r.h(wt,{name:e.icon})]:void 0;return r.h("div",{class:o.value,style:n.value},[r.h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:a.value},ys(t.default,i))])}}});var o_=["top","middle","bottom"];_e({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=>o_.includes(e)}},setup(e,{slots:t}){const n=r.computed(()=>e.align!==void 0?{verticalAlign:e.align}:null),o=r.computed(()=>{const a=e.outline===!0&&e.color||e.textColor;return`q-badge flex inline items-center no-wrap q-badge--${e.multiLine===!0?"multi":"single"}-line`+(e.outline===!0?" q-badge--outline":e.color!==void 0?` bg-${e.color}`:"")+(a!==void 0?` text-${a}`:"")+(e.floating===!0?" q-badge--floating":"")+(e.rounded===!0?" q-badge--rounded":"")+(e.transparent===!0?" q-badge--transparent":"")});return()=>r.h("div",{class:o.value,style:n.value,role:"status","aria-label":e.label},Ht(t.default,e.label!==void 0?[e.label]:[]))}});var bt={dark:{type:Boolean,default:null}};function yt(e,t){return r.computed(()=>e.dark===null?t.dark.isActive:e.dark)}_e({name:"QBanner",props:{...bt,inlineActions:Boolean,dense:Boolean,rounded:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),o=yt(e,n),a=r.computed(()=>"q-banner row items-center"+(e.dense===!0?" q-banner--dense":"")+(o.value===!0?" q-banner--dark q-dark":"")+(e.rounded===!0?" rounded-borders":"")),i=r.computed(()=>`q-banner__actions row items-center justify-end col-${e.inlineActions===!0?"auto":"all"}`);return()=>{const l=[r.h("div",{class:"q-banner__avatar col-auto row items-center self-start"},Ke(t.avatar)),r.h("div",{class:"q-banner__content col text-body2"},Ke(t.default))],s=Ke(t.action);return s!==void 0&&l.push(r.h("div",{class:i.value},s)),r.h("div",{class:a.value+(e.inlineActions===!1&&s!==void 0?" q-banner--top-padding":""),role:"alert"},l)}}}),_e({name:"QBar",props:{...bt,dense:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),o=yt(e,n),a=r.computed(()=>`q-bar row no-wrap items-center q-bar--${e.dense===!0?"dense":"standard"} q-bar--${o.value===!0?"dark":"light"}`);return()=>r.h("div",{class:a.value,role:"toolbar"},Ke(t.default))}});var Pf={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},a_=Object.keys(Pf),ws={align:{type:String,validator:e=>a_.includes(e)}};function Cs(e){return r.computed(()=>{const t=e.align===void 0?e.vertical===!0?"stretch":"left":e.align;return`${e.vertical===!0?"items":"justify"}-${Pf[t]}`})}function si(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function Af(e,t){typeof t.type=="symbol"?Array.isArray(t.children)===!0&&t.children.forEach(n=>{Af(e,n)}):e.add(t)}function xs(e){const t=new Set;return e.forEach(n=>{Af(t,n)}),Array.from(t)}function ks(e){return e.appContext.config.globalProperties.$router!==void 0}function mr(e){return e.isUnmounted===!0||e.isDeactivated===!0}var i_=["",!0];_e({name:"QBreadcrumbs",props:{...ws,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(e,{slots:t}){const n=Cs(e),o=r.computed(()=>`flex items-center ${n.value}${e.gutter==="none"?"":` q-gutter-${e.gutter}`}`),a=r.computed(()=>e.separatorColor?` text-${e.separatorColor}`:""),i=r.computed(()=>` text-${e.activeColor}`);return()=>{if(t.default===void 0)return;const l=xs(Ke(t.default));if(l.length===0)return;let s=1;const d=[],m=l.filter(b=>b.type?.name==="QBreadcrumbsEl").length,v=t.separator!==void 0?t.separator:()=>e.separator;return l.forEach(b=>{if(b.type?.name==="QBreadcrumbsEl"){const p=s<m,_=b.props!==null&&i_.includes(b.props.disable),g=(p===!0?"":" q-breadcrumbs--last")+(_!==!0&&p===!0?i.value:"");s++,d.push(r.h("div",{class:`flex items-center${g}`},[b])),p===!0&&d.push(r.h("div",{class:"q-breadcrumbs__separator"+a.value},v()))}else d.push(b)}),r.h("div",{class:"q-breadcrumbs"},[r.h("div",{class:o.value},d)])}}});function Rf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function Lf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function l_(e,t){for(const n in t){const o=t[n],a=e[n];if(typeof o=="string"){if(o!==a)return!1}else if(Array.isArray(a)===!1||a.length!==o.length||o.some((i,l)=>i!==a[l]))return!1}return!0}function If(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function s_(e,t){return Array.isArray(e)===!0?If(e,t):Array.isArray(t)===!0?If(t,e):e===t}function u_(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(s_(e[n],t[n])===!1)return!1;return!0}var Nf={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},ra={...Nf,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function ui({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=r.getCurrentInstance(),{props:o,proxy:a,emit:i}=n,l=ks(n),s=r.computed(()=>o.disable!==!0&&o.href!==void 0),d=t===!0?r.computed(()=>l===!0&&o.disable!==!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""):r.computed(()=>l===!0&&s.value!==!0&&o.to!==void 0&&o.to!==null&&o.to!==""),m=r.computed(()=>d.value===!0?T(o.to):null),v=r.computed(()=>m.value!==null),b=r.computed(()=>s.value===!0||v.value===!0),p=r.computed(()=>o.type==="a"||b.value===!0?"a":o.tag||e||"div"),_=r.computed(()=>s.value===!0?{href:o.href,target:o.target}:v.value===!0?{href:m.value.href,target:o.target}:{}),g=r.computed(()=>{if(v.value===!1)return-1;const{matched:q}=m.value,{length:L}=q,k=q[L-1];if(k===void 0)return-1;const H=a.$route.matched;if(H.length===0)return-1;const ee=H.findIndex(Lf.bind(null,k));if(ee!==-1)return ee;const N=Rf(q[L-2]);return L>1&&Rf(k)===N&&H[H.length-1].path!==N?H.findIndex(Lf.bind(null,q[L-2])):ee}),E=r.computed(()=>v.value===!0&&g.value!==-1&&l_(a.$route.params,m.value.params)),C=r.computed(()=>E.value===!0&&g.value===a.$route.matched.length-1&&u_(a.$route.params,m.value.params)),w=r.computed(()=>v.value===!0?C.value===!0?` ${o.exactActiveClass} ${o.activeClass}`:o.exact===!0?"":E.value===!0?` ${o.activeClass}`:"":"");function T(q){try{return a.$router.resolve(q)}catch{}return null}function x(q,{returnRouterError:L,to:k=o.to,replace:H=o.replace}={}){if(o.disable===!0)return q.preventDefault(),Promise.resolve(!1);if(q.metaKey||q.altKey||q.ctrlKey||q.shiftKey||q.button!==void 0&&q.button!==0||o.target==="_blank")return Promise.resolve(!1);q.preventDefault();const ee=a.$router[H===!0?"replace":"push"](k);return L===!0?ee:ee.then(()=>{}).catch(()=>{})}function y(q){if(v.value===!0){const L=k=>x(q,k);i("click",q,L),q.defaultPrevented!==!0&&L()}else i("click",q)}return{hasRouterLink:v,hasHrefLink:s,hasLink:b,linkTag:p,resolvedLink:m,linkIsActive:E,linkIsExactActive:C,linkClass:w,linkAttrs:_,getLink:T,navigateToRouterLink:x,navigateOnClick:y}}_e({name:"QBreadcrumbsEl",props:{...ra,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(e,{slots:t}){const{linkTag:n,linkAttrs:o,linkClass:a,navigateOnClick:i}=ui(),l=r.computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(e.disable!==!0?"q-link--focusable"+a.value:"q-breadcrumbs__el--disable"),...o.value,onClick:i})),s=r.computed(()=>"q-breadcrumbs__el-icon"+(e.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const d=[];return e.icon!==void 0&&d.push(r.h(wt,{class:s.value,name:e.icon})),e.label!==void 0&&d.push(e.label),r.h(n.value,{...l.value},Ht(t.default,d))}}});var jt={size:{type:[String,Number],default:"1em"},color:String};function Ut(e){return{cSize:r.computed(()=>e.size in bs?`${bs[e.size]}px`:e.size),classes:r.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}var Fn=_e({name:"QSpinner",props:{...jt,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[r.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function ci(e){if(e===window)return{top:0,left:0};const{top:t,left:n}=e.getBoundingClientRect();return{top:t,left:n}}function vo(e){return e===window?window.innerHeight:e.getBoundingClientRect().height}function Es(e,t){const n=e.style;for(const o in t)n[o]=t[o]}function c_(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=r.unref(e);if(t)return t.$el||t}function Df(e,t){if(e==null||e.contains(t)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}function $f(e,t=250){let n=!1,o;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),o=e.apply(this,arguments)),o}}function Ff(e,t,n,o){n.modifiers.stop===!0&&$t(e);const a=n.modifiers.color;let i=n.modifiers.center;i=i===!0||o===!0;const l=document.createElement("span"),s=document.createElement("span"),d=mn(e),{left:m,top:v,width:b,height:p}=t.getBoundingClientRect(),_=Math.sqrt(b*b+p*p),g=_/2,E=`${(b-_)/2}px`,C=i?E:`${d.left-m-g}px`,w=`${(p-_)/2}px`,T=i?w:`${d.top-v-g}px`;s.className="q-ripple__inner",Es(s,{height:`${_}px`,width:`${_}px`,transform:`translate3d(${C},${T},0) scale3d(.2,.2,1)`,opacity:0}),l.className=`q-ripple${a?" text-"+a:""}`,l.setAttribute("dir","ltr"),l.appendChild(s),t.appendChild(l);const x=()=>{l.remove(),clearTimeout(y)};n.abort.push(x);let y=setTimeout(()=>{s.classList.add("q-ripple__inner--enter"),s.style.transform=`translate3d(${E},${w},0) scale3d(1,1,1)`,s.style.opacity=.2,y=setTimeout(()=>{s.classList.remove("q-ripple__inner--enter"),s.classList.add("q-ripple__inner--leave"),s.style.opacity=0,y=setTimeout(()=>{l.remove(),n.abort.splice(n.abort.indexOf(x),1)},275)},250)},50)}function Bf(e,{modifiers:t,value:n,arg:o}){const a=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:a.early===!0,stop:a.stop===!0,center:a.center===!0,color:a.color||o,keyCodes:[].concat(a.keyCodes||13)}}var di=Dn({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const o={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(a){o.enabled===!0&&a.qSkipRipple!==!0&&a.type===(o.modifiers.early===!0?"pointerdown":"click")&&Ff(a,e,o,a.qKeyEvent===!0)},keystart:$f(a=>{o.enabled===!0&&a.qSkipRipple!==!0&&qn(a,o.modifiers.keyCodes)===!0&&a.type===`key${o.modifiers.early===!0?"down":"up"}`&&Ff(a,e,o,!0)},300)};Bf(o,t),e.__qripple=o,zt(o,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n!==void 0&&(n.enabled=t.value!==!1,n.enabled===!0&&Object(t.value)===t.value&&Bf(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),cn(t,"main"),delete e._qripple)}}),fi={none:0,xs:4,sm:8,md:16,lg:24,xl:32},d_={xs:8,sm:10,md:14,lg:20,xl:24},f_=["button","submit","reset"],v_=/[^\s]\/[^\s]/,zf=["flat","outline","push","unelevated"];function Ts(e,t){return e.flat===!0?"flat":e.outline===!0?"outline":e.push===!0?"push":e.unelevated===!0?"unelevated":t}function Hf(e){const t=Ts(e);return t!==void 0?{[t]:!0}:{}}var Os={...rr,...Nf,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...zf.reduce((e,t)=>(e[t]=Boolean)&&e,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...ws.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},m_={...Os,round:Boolean};function h_(e){const t=or(e,d_),n=Cs(e),{hasRouterLink:o,hasLink:a,linkTag:i,linkAttrs:l,navigateOnClick:s}=ui({fallbackTag:"button"}),d=r.computed(()=>{const C=e.fab===!1&&e.fabMini===!1?t.value:{};return e.padding!==void 0?Object.assign({},C,{padding:e.padding.split(/\s+/).map(w=>w in fi?fi[w]+"px":w).join(" "),minWidth:"0",minHeight:"0"}):C}),m=r.computed(()=>e.rounded===!0||e.fab===!0||e.fabMini===!0),v=r.computed(()=>e.disable!==!0&&e.loading!==!0),b=r.computed(()=>v.value===!0?e.tabindex||0:-1),p=r.computed(()=>Ts(e,"standard")),_=r.computed(()=>{const C={tabindex:b.value};return a.value===!0?Object.assign(C,l.value):f_.includes(e.type)===!0&&(C.type=e.type),i.value==="a"?(e.disable===!0?C["aria-disabled"]="true":C.href===void 0&&(C.role="button"),o.value!==!0&&v_.test(e.type)===!0&&(C.type=e.type)):e.disable===!0&&(C.disabled="",C["aria-disabled"]="true"),e.loading===!0&&e.percentage!==void 0&&Object.assign(C,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.percentage}),C}),g=r.computed(()=>{let C;e.color!==void 0?e.flat===!0||e.outline===!0?C=`text-${e.textColor||e.color}`:C=`bg-${e.color} text-${e.textColor||"white"}`:e.textColor&&(C=`text-${e.textColor}`);const w=e.round===!0?"round":`rectangle${m.value===!0?" q-btn--rounded":e.square===!0?" q-btn--square":""}`;return`q-btn--${p.value} q-btn--${w}`+(C!==void 0?" "+C:"")+(v.value===!0?" q-btn--actionable q-focusable q-hoverable":e.disable===!0?" disabled":"")+(e.fab===!0?" q-btn--fab":e.fabMini===!0?" q-btn--fab-mini":"")+(e.noCaps===!0?" q-btn--no-uppercase":"")+(e.dense===!0?" q-btn--dense":"")+(e.stretch===!0?" no-border-radius self-stretch":"")+(e.glossy===!0?" glossy":"")+(e.square?" q-btn--square":"")}),E=r.computed(()=>n.value+(e.stack===!0?" column":" row")+(e.noWrap===!0?" no-wrap text-no-wrap":"")+(e.loading===!0?" q-btn__content--hidden":""));return{classes:g,style:d,innerClasses:E,attributes:_,hasLink:a,linkTag:i,navigateOnClick:s,isActionable:v}}var{passiveCapture:Pn}=Rt,mo=null,ho=null,go=null,xt=_e({name:"QBtn",props:{...m_,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),{classes:a,style:i,innerClasses:l,attributes:s,hasLink:d,linkTag:m,navigateOnClick:v,isActionable:b}=h_(e),p=r.ref(null),_=r.ref(null);let g=null,E,C=null;const w=r.computed(()=>e.label!==void 0&&e.label!==null&&e.label!==""),T=r.computed(()=>e.disable===!0||e.ripple===!1?!1:{keyCodes:d.value===!0?[13,32]:[13],...e.ripple===!0?{}:e.ripple}),x=r.computed(()=>({center:e.round})),y=r.computed(()=>{const P=Math.max(0,Math.min(100,e.percentage));return P>0?{transition:"transform 0.6s",transform:`translateX(${P-100}%)`}:{}}),q=r.computed(()=>{if(e.loading===!0)return{onMousedown:D,onTouchstart:D,onClick:D,onKeydown:D,onKeyup:D};if(b.value===!0){const P={onClick:k,onKeydown:H,onMousedown:N};if(o.$q.platform.has.touch===!0){const F=e.onTouchstart!==void 0?"":"Passive";P[`onTouchstart${F}`]=ee}return P}return{onClick:ct}}),L=r.computed(()=>({ref:p,class:"q-btn q-btn-item non-selectable no-outline "+a.value,style:i.value,...s.value,...q.value}));function k(P){if(p.value!==null){if(P!==void 0){if(P.defaultPrevented===!0)return;const F=document.activeElement;if(e.type==="submit"&&F!==document.body&&p.value.contains(F)===!1&&F.contains(p.value)===!1){P.qAvoidFocus!==!0&&p.value.focus();const Y=()=>{document.removeEventListener("keydown",ct,!0),document.removeEventListener("keyup",Y,Pn),p.value?.removeEventListener("blur",Y,Pn)};document.addEventListener("keydown",ct,!0),document.addEventListener("keyup",Y,Pn),p.value.addEventListener("blur",Y,Pn)}}v(P)}}function H(P){p.value!==null&&(n("keydown",P),qn(P,[13,32])===!0&&ho!==p.value&&(ho!==null&&$(),P.defaultPrevented!==!0&&(P.qAvoidFocus!==!0&&p.value.focus(),ho=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("keyup",I,!0),p.value.addEventListener("blur",I,Pn)),ct(P)))}function ee(P){p.value!==null&&(n("touchstart",P),P.defaultPrevented!==!0&&(mo!==p.value&&(mo!==null&&$(),mo=p.value,g=P.target,g.addEventListener("touchcancel",I,Pn),g.addEventListener("touchend",I,Pn)),E=!0,C!==null&&clearTimeout(C),C=setTimeout(()=>{C=null,E=!1},200)))}function N(P){p.value!==null&&(P.qSkipRipple=E===!0,n("mousedown",P),P.defaultPrevented!==!0&&go!==p.value&&(go!==null&&$(),go=p.value,p.value.classList.add("q-btn--active"),document.addEventListener("mouseup",I,Pn)))}function I(P){if(p.value!==null&&!(P?.type==="blur"&&document.activeElement===p.value)){if(P?.type==="keyup"){if(ho===p.value&&qn(P,[13,32])===!0){const F=new MouseEvent("click",P);F.qKeyEvent=!0,P.defaultPrevented===!0&&Zt(F),P.cancelBubble===!0&&$t(F),p.value.dispatchEvent(F),ct(P),P.qKeyEvent=!0}n("keyup",P)}$()}}function $(P){const F=_.value;P!==!0&&(mo===p.value||go===p.value)&&F!==null&&F!==document.activeElement&&(F.setAttribute("tabindex",-1),F.focus()),mo===p.value&&(g!==null&&(g.removeEventListener("touchcancel",I,Pn),g.removeEventListener("touchend",I,Pn)),mo=g=null),go===p.value&&(document.removeEventListener("mouseup",I,Pn),go=null),ho===p.value&&(document.removeEventListener("keyup",I,!0),p.value?.removeEventListener("blur",I,Pn),ho=null),p.value?.classList.remove("q-btn--active")}function D(P){ct(P),P.qSkipRipple=!0}return r.onBeforeUnmount(()=>{$(!0)}),Object.assign(o,{click:P=>{b.value===!0&&k(P)}}),()=>{let P=[];e.icon!==void 0&&P.push(r.h(wt,{name:e.icon,left:e.stack!==!0&&w.value===!0,role:"img"})),w.value===!0&&P.push(r.h("span",{class:"block"},[e.label])),P=Ht(t.default,P),e.iconRight!==void 0&&e.round===!1&&P.push(r.h(wt,{name:e.iconRight,right:e.stack!==!0&&w.value===!0,role:"img"}));const F=[r.h("span",{class:"q-focus-helper",ref:_})];return e.loading===!0&&e.percentage!==void 0&&F.push(r.h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(e.darkPercentage===!0?" q-btn__progress--dark":"")},[r.h("span",{class:"q-btn__progress-indicator fit block",style:y.value})])),F.push(r.h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+l.value},P)),e.loading!==null&&F.push(r.h(r.Transition,{name:"q-transition--fade"},()=>e.loading===!0?[r.h("span",{key:"loading",class:"absolute-full flex flex-center"},t.loading!==void 0?t.loading():[r.h(Fn)])]:null)),r.withDirectives(r.h(m.value,L.value,F),[[di,T.value,void 0,x.value]])}}}),jf=_e({name:"QBtnGroup",props:{unelevated:Boolean,outline:Boolean,flat:Boolean,rounded:Boolean,square:Boolean,push:Boolean,stretch:Boolean,glossy:Boolean,spread:Boolean},setup(e,{slots:t}){const n=r.computed(()=>{const o=["unelevated","outline","flat","rounded","square","push","stretch","glossy"].filter(a=>e[a]===!0).map(a=>`q-btn-group--${a}`).join(" ");return`q-btn-group row no-wrap${o.length!==0?" "+o:""}`+(e.spread===!0?" q-btn-group--spread":" inline")});return()=>r.h("div",{class:n.value},Ke(t.default))}});function Bn(){if(window.getSelection!==void 0){const e=window.getSelection();e.empty!==void 0?e.empty():e.removeAllRanges!==void 0&&(e.removeAllRanges(),By.is.mobile!==!0&&e.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}var Uf={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},Qf={...Uf,contextMenu:Boolean};function qs({showing:e,avoidEmit:t,configureAnchorEl:n}){const{props:o,proxy:a,emit:i}=r.getCurrentInstance(),l=r.ref(null);let s=null;function d(_){return l.value===null?!1:_===void 0||_.touches===void 0||_.touches.length<=1}const m={};n===void 0&&(Object.assign(m,{hide(_){a.hide(_)},toggle(_){a.toggle(_),_.qAnchorHandled=!0},toggleKey(_){qn(_,13)===!0&&m.toggle(_)},contextClick(_){a.hide(_),Zt(_),r.nextTick(()=>{a.show(_),_.qAnchorHandled=!0})},prevent:Zt,mobileTouch(_){if(m.mobileCleanup(_),d(_)!==!0)return;a.hide(_),l.value.classList.add("non-selectable");const g=_.target;zt(m,"anchor",[[g,"touchmove","mobileCleanup","passive"],[g,"touchend","mobileCleanup","passive"],[g,"touchcancel","mobileCleanup","passive"],[l.value,"contextmenu","prevent","notPassive"]]),s=setTimeout(()=>{s=null,a.show(_),_.qAnchorHandled=!0},300)},mobileCleanup(_){l.value.classList.remove("non-selectable"),s!==null&&(clearTimeout(s),s=null),e.value===!0&&_!==void 0&&Bn()}}),n=function(_=o.contextMenu){if(o.noParentEvent===!0||l.value===null)return;let g;_===!0?a.$q.platform.is.mobile===!0?g=[[l.value,"touchstart","mobileTouch","passive"]]:g=[[l.value,"mousedown","hide","passive"],[l.value,"contextmenu","contextClick","notPassive"]]:g=[[l.value,"click","toggle","passive"],[l.value,"keyup","toggleKey","passive"]],zt(m,"anchor",g)});function v(){cn(m,"anchor")}function b(_){for(l.value=_;l.value.classList.contains("q-anchor--skip");)l.value=l.value.parentNode;n()}function p(){if(o.target===!1||o.target===""||a.$el.parentNode===null)l.value=null;else if(o.target===!0)b(a.$el.parentNode);else{let _=o.target;if(typeof o.target=="string")try{_=document.querySelector(o.target)}catch{_=void 0}_!=null?(l.value=_.$el||_,n()):(l.value=null,console.error(`Anchor: target "${o.target}" not found`))}}return r.watch(()=>o.contextMenu,_=>{l.value!==null&&(v(),n(_))}),r.watch(()=>o.target,()=>{l.value!==null&&v(),p()}),r.watch(()=>o.noParentEvent,_=>{l.value!==null&&(_===!0?v():n())}),r.onMounted(()=>{p(),t!==!0&&o.modelValue===!0&&l.value===null&&i("update:modelValue",!1)}),r.onBeforeUnmount(()=>{s!==null&&clearTimeout(s),v()}),{anchorEl:l,canShow:d,anchorEvents:m}}function Wf(e,t){const n=r.ref(null);let o;function a(s,d){const m=`${d!==void 0?"add":"remove"}EventListener`,v=d!==void 0?d:o;s!==window&&s[m]("scroll",v,Rt.passive),window[m]("scroll",v,Rt.passive),o=d}function i(){n.value!==null&&(a(n.value),n.value=null)}const l=r.watch(()=>e.noParentEvent,()=>{n.value!==null&&(i(),t())});return r.onBeforeUnmount(l),{localScrollTarget:n,unconfigureScrollTarget:i,changeScrollEvent:a}}var po={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},bo=["beforeShow","show","beforeHide","hide"];function yo({showing:e,canShow:t,hideOnRouteChange:n,handleShow:o,handleHide:a,processOnMount:i}){const l=r.getCurrentInstance(),{props:s,emit:d,proxy:m}=l;let v;function b(T){e.value===!0?g(T):p(T)}function p(T){if(s.disable===!0||T?.qAnchorHandled===!0||t!==void 0&&t(T)!==!0)return;const x=s["onUpdate:modelValue"]!==void 0;x===!0&&(d("update:modelValue",!0),v=T,r.nextTick(()=>{v===T&&(v=void 0)})),(s.modelValue===null||x===!1)&&_(T)}function _(T){e.value!==!0&&(e.value=!0,d("beforeShow",T),o!==void 0?o(T):d("show",T))}function g(T){if(s.disable===!0)return;const x=s["onUpdate:modelValue"]!==void 0;x===!0&&(d("update:modelValue",!1),v=T,r.nextTick(()=>{v===T&&(v=void 0)})),(s.modelValue===null||x===!1)&&E(T)}function E(T){e.value!==!1&&(e.value=!1,d("beforeHide",T),a!==void 0?a(T):d("hide",T))}function C(T){s.disable===!0&&T===!0?s["onUpdate:modelValue"]!==void 0&&d("update:modelValue",!1):T===!0!==e.value&&(T===!0?_:E)(v)}r.watch(()=>s.modelValue,C),n!==void 0&&ks(l)===!0&&r.watch(()=>m.$route.fullPath,()=>{n.value===!0&&e.value===!0&&g()}),i===!0&&r.onMounted(()=>{C(s.modelValue)});const w={show:p,hide:g,toggle:b};return Object.assign(m,w),w}var Fr=[],oa=[];function Yf(e){oa=oa.filter(t=>t!==e)}function g_(e){Yf(e),oa.push(e)}function Kf(e){Yf(e),oa.length===0&&Fr.length!==0&&(Fr[Fr.length-1](),Fr=[])}function _o(e){oa.length===0?e():Fr.push(e)}function p_(e){Fr=Fr.filter(t=>t!==e)}var So=[],aa=[],b_=1,hr=document.body;function Ms(e,t){const n=document.createElement("div");if(n.id=t!==void 0?`q-portal--${t}--${b_++}`:e,wf.globalNodes!==void 0){const o=wf.globalNodes.class;o!==void 0&&(n.className=o)}return hr.appendChild(n),So.push(n),aa.push(t),n}function Gf(e){const t=So.indexOf(e);So.splice(t,1),aa.splice(t,1),e.remove()}function y_(e){if(e===hr)return;if(hr=e,hr===document.body||aa.reduce((n,o)=>o==="dialog"?n+1:n,0)<2){So.forEach(n=>{n.contains(hr)===!1&&hr.appendChild(n)});return}const t=aa.lastIndexOf("dialog");for(let n=0;n<So.length;n++){const o=So[n];(n===t||aa[n]!=="dialog")&&o.contains(hr)===!1&&hr.appendChild(o)}}var wo=[];function __(e){return wo.find(t=>t.contentEl!==null&&t.contentEl.contains(e))}function Xf(e,t){do{if(e.$options.name==="QMenu"){if(e.hide(t),e.$props.separateClosePopup===!0)return si(e)}else if(e.__qPortal===!0){const n=si(e);return n?.$options.name==="QPopupProxy"?(e.hide(t),n):e}e=si(e)}while(e!=null)}function S_(e,t,n){for(;n!==0&&e!==void 0&&e!==null;){if(e.__qPortal===!0){if(n--,e.$options.name==="QMenu"){e=Xf(e,t);continue}e.hide(t)}e=si(e)}}var w_=_e({name:"QPortal",setup(e,{slots:t}){return()=>t.default()}});function C_(e){for(e=e.parent;e!=null;){if(e.type.name==="QGlobalDialog")return!0;if(e.type.name==="QDialog"||e.type.name==="QMenu")return!1;e=e.parent}return!1}function Ps(e,t,n,o){const a=r.ref(!1),i=r.ref(!1);let l=null;const s={},d=o==="dialog"&&C_(e);function m(b){if(b===!0){Kf(s),i.value=!0;return}i.value=!1,a.value===!1&&(d===!1&&l===null&&(l=Ms(!1,o)),a.value=!0,wo.push(e.proxy),g_(s))}function v(b){if(i.value=!1,b!==!0)return;Kf(s),a.value=!1;const p=wo.indexOf(e.proxy);p!==-1&&wo.splice(p,1),l!==null&&(Gf(l),l=null)}return r.onUnmounted(()=>{v(!0)}),e.proxy.__qPortal=!0,Jt(e.proxy,"contentEl",()=>t.value),{showPortal:m,hidePortal:v,portalIsActive:a,portalIsAccessible:i,renderPortal:()=>d===!0?n():a.value===!0?[r.h(r.Teleport,{to:l},r.h(w_,n))]:void 0}}var Br={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function vi(e,t=()=>{},n=()=>{}){return{transitionProps:r.computed(()=>{const o=`q-transition--${e.transitionShow||t()}`,a=`q-transition--${e.transitionHide||n()}`;return{appear:!0,enterFromClass:`${o}-enter-from`,enterActiveClass:`${o}-enter-active`,enterToClass:`${o}-enter-to`,leaveFromClass:`${a}-leave-from`,leaveActiveClass:`${a}-leave-active`,leaveToClass:`${a}-leave-to`}}),transitionStyle:r.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`)}}function Co(){let e;const t=r.getCurrentInstance();function n(){e=void 0}return r.onDeactivated(n),r.onBeforeUnmount(n),{removeTick:n,registerTick(o){e=o,r.nextTick(()=>{e===o&&(mr(t)===!1&&e(),e=void 0)})}}}function ar(){let e=null;const t=r.getCurrentInstance();function n(){e!==null&&(clearTimeout(e),e=null)}return r.onDeactivated(n),r.onBeforeUnmount(n),{removeTimeout:n,registerTimeout(o,a){n(),mr(t)===!1&&(e=setTimeout(()=>{e=null,o()},a))}}}var zr=[Element,String],x_=[null,document,document.body,document.scrollingElement,document.documentElement];function Kn(e,t){let n=c_(t);if(n===void 0){if(e==null)return window;n=e.closest(".scroll,.scroll-y,.overflow-auto")}return x_.includes(n)?window:n}function mi(e){return(e===window?document.body:e).scrollHeight}function gr(e){return e===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:e.scrollTop}function hi(e){return e===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:e.scrollLeft}function Jf(e,t,n=0){const o=arguments[3]===void 0?performance.now():arguments[3],a=gr(e);if(n<=0){a!==t&&As(e,t);return}requestAnimationFrame(i=>{const l=i-o,s=a+(t-a)/Math.max(l,n)*l;As(e,s),s!==t&&Jf(e,t,n-l,i)})}function Zf(e,t,n=0){const o=arguments[3]===void 0?performance.now():arguments[3],a=hi(e);if(n<=0){a!==t&&Rs(e,t);return}requestAnimationFrame(i=>{const l=i-o,s=a+(t-a)/Math.max(l,n)*l;Rs(e,s),s!==t&&Zf(e,t,n-l,i)})}function As(e,t){if(e===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t);return}e.scrollTop=t}function Rs(e,t){if(e===window){window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0);return}e.scrollLeft=t}function xo(e,t,n){if(n){Jf(e,t,n);return}As(e,t)}function Ls(e,t,n){if(n){Zf(e,t,n);return}Rs(e,t)}var gi;function pi(){if(gi!==void 0)return gi;const e=document.createElement("p"),t=document.createElement("div");Es(e,{width:"100%",height:"200px"}),Es(t,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let o=e.offsetWidth;return n===o&&(o=t.clientWidth),t.remove(),gi=n-o,gi}function k_(e,t=!0){return!e||e.nodeType!==Node.ELEMENT_NODE?!1:t?e.scrollHeight>e.clientHeight&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-y"])):e.scrollWidth>e.clientWidth&&(e.classList.contains("scroll")||e.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(e)["overflow-x"]))}var Hr=[],ko;function E_(e){ko=e.keyCode===27}function T_(){ko===!0&&(ko=!1)}function O_(e){ko===!0&&(ko=!1,qn(e,27)===!0&&Hr[Hr.length-1](e))}function Vf(e){window[e]("keydown",E_),window[e]("blur",T_),window[e]("keyup",O_),ko=!1}function ev(e){ft.is.desktop===!0&&(Hr.push(e),Hr.length===1&&Vf("addEventListener"))}function bi(e){const t=Hr.indexOf(e);t!==-1&&(Hr.splice(t,1),Hr.length===0&&Vf("removeEventListener"))}var jr=[];function tv(e){jr[jr.length-1](e)}function nv(e){ft.is.desktop===!0&&(jr.push(e),jr.length===1&&document.body.addEventListener("focusin",tv))}function Is(e){const t=jr.indexOf(e);t!==-1&&(jr.splice(t,1),jr.length===0&&document.body.removeEventListener("focusin",tv))}var{notPassiveCapture:yi}=Rt,Ur=[];function _i(e){const t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains("no-pointer-events")===!0)return;let n=wo.length-1;for(;n>=0;){const o=wo[n].$;if(o.type.name==="QTooltip"){n--;continue}if(o.type.name!=="QDialog")break;if(o.props.seamless!==!0)return;n--}for(let o=Ur.length-1;o>=0;o--){const a=Ur[o];if((a.anchorEl.value===null||a.anchorEl.value.contains(t)===!1)&&(t===document.body||a.innerRef.value!==null&&a.innerRef.value.contains(t)===!1))e.qClickOutside=!0,a.onClickOutside(e);else return}}function rv(e){Ur.push(e),Ur.length===1&&(document.addEventListener("mousedown",_i,yi),document.addEventListener("touchstart",_i,yi))}function Si(e){const t=Ur.findIndex(n=>n===e);t!==-1&&(Ur.splice(t,1),Ur.length===0&&(document.removeEventListener("mousedown",_i,yi),document.removeEventListener("touchstart",_i,yi)))}var ov,av;function wi(e){const t=e.split(" ");return t.length!==2?!1:["top","center","bottom"].includes(t[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(t[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function iv(e){return e?!(e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"):!0}var Ns={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(e=>{Ns[`${e}#ltr`]=e,Ns[`${e}#rtl`]=e});function Ci(e,t){const n=e.split(" ");return{vertical:n[0],horizontal:Ns[`${n[1]}#${t===!0?"rtl":"ltr"}`]}}function q_(e,t){let{top:n,left:o,right:a,bottom:i,width:l,height:s}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],o-=t[0],i+=t[1],a+=t[0],l+=t[0],s+=t[1]),{top:n,bottom:i,height:s,left:o,right:a,width:l,middle:o+(a-o)/2,center:n+(i-n)/2}}function M_(e,t,n){let{top:o,left:a}=e.getBoundingClientRect();return o+=t.top,a+=t.left,n!==void 0&&(o+=n[1],a+=n[0]),{top:o,bottom:o+1,height:1,left:a,right:a+1,width:1,middle:a,center:o}}function P_(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function lv(e,t,n,o){return{top:e[n.vertical]-t[o.vertical],left:e[n.horizontal]-t[o.horizontal]}}function Ds(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Ds(e,t+1)},10);return}const{targetEl:n,offset:o,anchorEl:a,anchorOrigin:i,selfOrigin:l,absoluteOffset:s,fit:d,cover:m,maxHeight:v,maxWidth:b}=e;if(ft.is.ios===!0&&window.visualViewport!==void 0){const L=document.body.style,{offsetLeft:k,offsetTop:H}=window.visualViewport;k!==ov&&(L.setProperty("--q-pe-left",k+"px"),ov=k),H!==av&&(L.setProperty("--q-pe-top",H+"px"),av=H)}const{scrollLeft:p,scrollTop:_}=n,g=s===void 0?q_(a,m===!0?[0,0]:o):M_(a,s,o);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:b,maxHeight:v,visibility:"visible"});const{offsetWidth:E,offsetHeight:C}=n,{elWidth:w,elHeight:T}=d===!0||m===!0?{elWidth:Math.max(g.width,E),elHeight:m===!0?Math.max(g.height,C):C}:{elWidth:E,elHeight:C};let x={maxWidth:b,maxHeight:v};(d===!0||m===!0)&&(x.minWidth=g.width+"px",m===!0&&(x.minHeight=g.height+"px")),Object.assign(n.style,x);const y=P_(w,T);let q=lv(g,y,i,l);if(s===void 0||o===void 0)$s(q,g,y,i,l);else{const{top:L,left:k}=q;$s(q,g,y,i,l);let H=!1;if(q.top!==L){H=!0;const ee=2*o[1];g.center=g.top-=ee,g.bottom-=ee+2}if(q.left!==k){H=!0;const ee=2*o[0];g.middle=g.left-=ee,g.right-=ee+2}H===!0&&(q=lv(g,y,i,l),$s(q,g,y,i,l))}x={top:q.top+"px",left:q.left+"px"},q.maxHeight!==void 0&&(x.maxHeight=q.maxHeight+"px",g.height>q.maxHeight&&(x.minHeight=x.maxHeight)),q.maxWidth!==void 0&&(x.maxWidth=q.maxWidth+"px",g.width>q.maxWidth&&(x.minWidth=x.maxWidth)),Object.assign(n.style,x),n.scrollTop!==_&&(n.scrollTop=_),n.scrollLeft!==p&&(n.scrollLeft=p)}function $s(e,t,n,o,a){const i=n.bottom,l=n.right,s=pi(),d=window.innerHeight-s,m=document.body.clientWidth;if(e.top<0||e.top+i>d)if(a.vertical==="center")e.top=t[o.vertical]>d/2?Math.max(0,d-i):0,e.maxHeight=Math.min(i,d);else if(t[o.vertical]>d/2){const v=Math.min(d,o.vertical==="center"?t.center:o.vertical===a.vertical?t.bottom:t.top);e.maxHeight=Math.min(i,v),e.top=Math.max(0,v-i)}else e.top=Math.max(0,o.vertical==="center"?t.center:o.vertical===a.vertical?t.top:t.bottom),e.maxHeight=Math.min(i,d-e.top);if(e.left<0||e.left+l>m)if(e.maxWidth=Math.min(l,m),a.horizontal==="middle")e.left=t[o.horizontal]>m/2?Math.max(0,m-l):0;else if(t[o.horizontal]>m/2){const v=Math.min(m,o.horizontal==="middle"?t.middle:o.horizontal===a.horizontal?t.right:t.left);e.maxWidth=Math.min(l,v),e.left=Math.max(0,v-e.maxWidth)}else e.left=Math.max(0,o.horizontal==="middle"?t.middle:o.horizontal===a.horizontal?t.left:t.right),e.maxWidth=Math.min(l,m-e.left)}var xi=_e({name:"QMenu",inheritAttrs:!1,props:{...Qf,...po,...bt,...Br,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:wi},self:{type:String,validator:wi},offset:{type:Array,validator:iv},scrollTarget:zr,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...bo,"click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){let a=null,i,l,s;const d=r.getCurrentInstance(),{proxy:m}=d,{$q:v}=m,b=r.ref(null),p=r.ref(!1),_=r.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0),g=yt(e,v),{registerTick:E,removeTick:C}=Co(),{registerTimeout:w}=ar(),{transitionProps:T,transitionStyle:x}=vi(e),{localScrollTarget:y,changeScrollEvent:q,unconfigureScrollTarget:L}=Wf(e,ae),{anchorEl:k,canShow:H}=qs({showing:p}),{hide:ee}=yo({showing:p,canShow:H,handleShow:Ee,handleHide:G,hideOnRouteChange:_,processOnMount:!0}),{showPortal:N,hidePortal:I,renderPortal:$}=Ps(d,b,we,"menu"),D={anchorEl:k,innerRef:b,onClickOutside(Q){if(e.persistent!==!0&&p.value===!0)return ee(Q),(Q.type==="touchstart"||Q.target.classList.contains("q-dialog__backdrop"))&&ct(Q),!0}},P=r.computed(()=>Ci(e.anchor||(e.cover===!0?"center middle":"bottom start"),v.lang.rtl)),F=r.computed(()=>e.cover===!0?P.value:Ci(e.self||"top start",v.lang.rtl)),Y=r.computed(()=>(e.square===!0?" q-menu--square":"")+(g.value===!0?" q-menu--dark q-dark":"")),X=r.computed(()=>e.autoClose===!0?{onClick:J}:{}),Z=r.computed(()=>p.value===!0&&e.persistent!==!0);r.watch(Z,Q=>{Q===!0?(ev(W),rv(D)):(bi(W),Si(D))});function ce(){_o(()=>{let Q=b.value;Q&&Q.contains(document.activeElement)!==!0&&(Q=Q.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||Q.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||Q.querySelector("[autofocus], [data-autofocus]")||Q,Q.focus({preventScroll:!0}))})}function Ee(Q){if(a=e.noRefocus===!1?document.activeElement:null,nv(be),N(),ae(),i=void 0,Q!==void 0&&(e.touchPosition||e.contextMenu)){const Oe=mn(Q);if(Oe.left!==void 0){const{top:Le,left:le}=k.value.getBoundingClientRect();i={left:Oe.left-le,top:Oe.top-Le}}}l===void 0&&(l=r.watch(()=>v.screen.width+"|"+v.screen.height+"|"+e.self+"|"+e.anchor+"|"+v.lang.rtl,ne)),e.noFocus!==!0&&document.activeElement.blur(),E(()=>{ne(),e.noFocus!==!0&&ce()}),w(()=>{v.platform.is.ios===!0&&(s=e.autoClose,b.value.click()),ne(),N(!0),n("show",Q)},e.transitionDuration)}function G(Q){C(),I(),R(!0),a!==null&&(Q===void 0||Q.qClickOutside!==!0)&&(((Q?.type.indexOf("key")===0?a.closest('[tabindex]:not([tabindex^="-"])'):void 0)||a).focus(),a=null),w(()=>{I(!0),n("hide",Q)},e.transitionDuration)}function R(Q){i=void 0,l!==void 0&&(l(),l=void 0),(Q===!0||p.value===!0)&&(Is(be),L(),Si(D),bi(W)),Q!==!0&&(a=null)}function ae(){(k.value!==null||e.scrollTarget!==void 0)&&(y.value=Kn(k.value,e.scrollTarget),q(y.value,ne))}function J(Q){s!==!0?(Xf(m,Q),n("click",Q)):s=!1}function be(Q){Z.value===!0&&e.noFocus!==!0&&Df(b.value,Q.target)!==!0&&ce()}function W(Q){e.noEscDismiss!==!0&&(n("escapeKey"),ee(Q))}function ne(){Ds({targetEl:b.value,offset:e.offset,anchorEl:k.value,anchorOrigin:P.value,selfOrigin:F.value,absoluteOffset:i,fit:e.fit,cover:e.cover,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function we(){return r.h(r.Transition,T.value,()=>p.value===!0?r.h("div",{role:"menu",...o,ref:b,tabindex:-1,class:["q-menu q-position-engine scroll"+Y.value,o.class],style:[o.style,x.value],...X.value},Ke(t.default)):null)}return r.onBeforeUnmount(R),Object.assign(m,{focus:ce,updatePosition:ne}),$}}),Fs,ki=0,an=new Array(256);for(let e=0;e<256;e++)an[e]=(e+256).toString(16).substring(1);var A_=(()=>{const e=typeof crypto<"u"?crypto:typeof window<"u"?window.crypto||window.msCrypto:void 0;if(e!==void 0){if(e.randomBytes!==void 0)return e.randomBytes;if(e.getRandomValues!==void 0)return t=>{const n=new Uint8Array(t);return e.getRandomValues(n),n}}return t=>{const n=[];for(let o=t;o>0;o--)n.push(Math.floor(Math.random()*256));return n}})(),sv=4096;function ia(){(Fs===void 0||ki+16>sv)&&(ki=0,Fs=A_(sv));const e=Array.prototype.slice.call(Fs,ki,ki+=16);return e[6]=e[6]&15|64,e[8]=e[8]&63|128,an[e[0]]+an[e[1]]+an[e[2]]+an[e[3]]+"-"+an[e[4]]+an[e[5]]+"-"+an[e[6]]+an[e[7]]+"-"+an[e[8]]+an[e[9]]+"-"+an[e[10]]+an[e[11]]+an[e[12]]+an[e[13]]+an[e[14]]+an[e[15]]}function R_(e){return e??null}function uv(e,t){return e??(t===!0?`f_${ia()}`:null)}function Ei({getValue:e,required:t=!0}={}){if(On.value===!0){const n=e!==void 0?r.ref(R_(e())):r.ref(null);return t===!0&&n.value===null&&r.onMounted(()=>{n.value=`f_${ia()}`}),e!==void 0&&r.watch(e,o=>{n.value=uv(o,t)}),n}return e!==void 0?r.computed(()=>uv(e(),t)):r.ref(`f_${ia()}`)}var L_=Object.keys(Os);function I_(e){return L_.reduce((t,n)=>{const o=e[n];return o!==void 0&&(t[n]=o),t},{})}var N_=_e({name:"QBtnDropdown",props:{...Os,...Br,modelValue:Boolean,split:Boolean,dropdownIcon:String,contentClass:[Array,String,Object],contentStyle:[Array,String,Object],cover:Boolean,persistent:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,autoClose:Boolean,noRefocus:Boolean,noFocus:Boolean,menuAnchor:{type:String,default:"bottom end"},menuSelf:{type:String,default:"top end"},menuOffset:Array,disableMainBtn:Boolean,disableDropdown:Boolean,noIconAnimation:Boolean,toggleAriaLabel:String},emits:["update:modelValue","click","beforeShow","show","beforeHide","hide"],setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),a=r.ref(e.modelValue),i=r.ref(null),l=Ei(),s=r.computed(()=>{const y={"aria-expanded":a.value===!0?"true":"false","aria-haspopup":"true","aria-controls":l.value,"aria-label":e.toggleAriaLabel||o.$q.lang.label[a.value===!0?"collapse":"expand"](e.label)};return(e.disable===!0||e.split===!1&&e.disableMainBtn===!0||e.disableDropdown===!0)&&(y["aria-disabled"]="true"),y}),d=r.computed(()=>"q-btn-dropdown__arrow"+(a.value===!0&&e.noIconAnimation===!1?" rotate-180":"")+(e.split===!1?" q-btn-dropdown__arrow-container":"")),m=r.computed(()=>Hf(e)),v=r.computed(()=>I_(e));r.watch(()=>e.modelValue,y=>{i.value?.[y?"show":"hide"]()}),r.watch(()=>e.split,x);function b(y){a.value=!0,n("beforeShow",y)}function p(y){n("show",y),n("update:modelValue",!0)}function _(y){a.value=!1,n("beforeHide",y)}function g(y){n("hide",y),n("update:modelValue",!1)}function E(y){n("click",y)}function C(y){$t(y),x(),n("click",y)}function w(y){i.value?.toggle(y)}function T(y){i.value?.show(y)}function x(y){i.value?.hide(y)}return Object.assign(o,{show:T,hide:x,toggle:w}),r.onMounted(()=>{e.modelValue===!0&&T()}),()=>{const y=[r.h(wt,{class:d.value,name:e.dropdownIcon||o.$q.iconSet.arrow.dropdown})];return e.disableDropdown!==!0&&y.push(r.h(xi,{ref:i,id:l.value,class:e.contentClass,style:e.contentStyle,cover:e.cover,fit:!0,persistent:e.persistent,noEscDismiss:e.noEscDismiss,noRouteDismiss:e.noRouteDismiss,autoClose:e.autoClose,noFocus:e.noFocus,noRefocus:e.noRefocus,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,separateClosePopup:!0,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,onBeforeShow:b,onShow:p,onBeforeHide:_,onHide:g},t.default)),e.split===!1?r.h(xt,{class:"q-btn-dropdown q-btn-dropdown--simple",...v.value,...s.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:E},{default:()=>Ke(t.label,[]).concat(y),loading:t.loading}):r.h(jf,{class:"q-btn-dropdown q-btn-dropdown--split no-wrap q-btn-item",rounded:e.rounded,square:e.square,...m.value,glossy:e.glossy,stretch:e.stretch},()=>[r.h(xt,{class:"q-btn-dropdown--current",...v.value,disable:e.disable===!0||e.disableMainBtn===!0,noWrap:!0,round:!1,onClick:C},{default:t.label,loading:t.loading}),r.h(xt,{class:"q-btn-dropdown__arrow-container q-anchor--skip",...s.value,...m.value,disable:e.disable===!0||e.disableDropdown===!0,rounded:e.rounded,color:e.color,textColor:e.textColor,dense:e.dense,size:e.size,padding:e.padding,ripple:e.ripple},()=>y)])}}}),An={name:String};function la(e){return r.computed(()=>({type:"hidden",name:e.name,value:e.modelValue}))}function pr(e={}){return(t,n,o)=>{t[n](r.h("input",{class:"hidden"+(o||""),...e.value}))}}function Bs(e){return r.computed(()=>e.name||e.for)}_e({name:"QBtnToggle",props:{...An,modelValue:{required:!0},options:{type:Array,required:!0,validator:e=>e.every(t=>("label"in t||"icon"in t||"slot"in t)&&"value"in t)},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(e,{slots:t,emit:n}){const o=r.computed(()=>e.options.find(p=>p.value===e.modelValue)!==void 0),a=r.computed(()=>({type:"hidden",name:e.name,value:e.modelValue})),i=pr(a),l=r.computed(()=>Hf(e)),s=r.computed(()=>({rounded:e.rounded,dense:e.dense,...l.value})),d=r.computed(()=>e.options.map((p,_)=>{const{attrs:g,value:E,slot:C,...w}=p;return{slot:C,props:{key:_,"aria-pressed":E===e.modelValue?"true":"false",...g,...w,...s.value,disable:e.disable===!0||w.disable===!0,color:E===e.modelValue?v(w,"toggleColor"):v(w,"color"),textColor:E===e.modelValue?v(w,"toggleTextColor"):v(w,"textColor"),noCaps:v(w,"noCaps")===!0,noWrap:v(w,"noWrap")===!0,size:v(w,"size"),padding:v(w,"padding"),ripple:v(w,"ripple"),stack:v(w,"stack")===!0,stretch:v(w,"stretch")===!0,onClick(T){m(E,p,T)}}}}));function m(p,_,g){e.readonly!==!0&&(e.modelValue===p?e.clearable===!0&&(n("update:modelValue",null,null),n("clear")):n("update:modelValue",p,_),n("click",g))}function v(p,_){return p[_]===void 0?e[_]:p[_]}function b(){const p=d.value.map(_=>r.h(xt,_.props,_.slot!==void 0?t[_.slot]:void 0));return e.name!==void 0&&e.disable!==!0&&o.value===!0&&i(p,"push"),Ht(t.default,p)}return()=>r.h(jf,{class:"q-btn-toggle",...l.value,rounded:e.rounded,stretch:e.stretch,glossy:e.glossy,spread:e.spread},b)}});var cv=_e({name:"QCard",props:{...bt,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),o=yt(e,n),a=r.computed(()=>"q-card"+(o.value===!0?" q-card--dark q-dark":"")+(e.bordered===!0?" q-card--bordered":"")+(e.square===!0?" q-card--square no-border-radius":"")+(e.flat===!0?" q-card--flat no-shadow":""));return()=>r.h(e.tag,{class:a.value},Ke(t.default))}}),Qr=_e({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(e,{slots:t}){const n=r.computed(()=>`q-card__section q-card__section--${e.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>r.h(e.tag,{class:n.value},Ke(t.default))}}),D_=_e({name:"QCardActions",props:{...ws,vertical:Boolean},setup(e,{slots:t}){const n=Cs(e),o=r.computed(()=>`q-card__actions ${n.value} q-card__actions--${e.vertical===!0?"vert column":"horiz row"}`);return()=>r.h("div",{class:o.value},Ke(t.default))}}),zs={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},$_=Object.keys(zs);zs.all=!0;function Ti(e){const t={};for(const n of $_)e[n]===!0&&(t[n]=!0);return Object.keys(t).length===0?zs:(t.horizontal===!0?t.left=t.right=!0:t.left===!0&&t.right===!0&&(t.horizontal=!0),t.vertical===!0?t.up=t.down=!0:t.up===!0&&t.down===!0&&(t.vertical=!0),t.horizontal===!0&&t.vertical===!0&&(t.all=!0),t)}var F_=["INPUT","TEXTAREA"];function Oi(e,t){return t.event===void 0&&e.target!==void 0&&e.target.draggable!==!0&&typeof t.handler=="function"&&F_.includes(e.target.nodeName.toUpperCase())===!1&&(e.qClonedBy===void 0||e.qClonedBy.indexOf(t.uid)===-1)}function B_(e){const t=[.06,6,50];return typeof e=="string"&&e.length&&e.split(":").forEach((n,o)=>{const a=parseFloat(n);a&&(t[o]=a)}),t}var z_=Dn({name:"touch-swipe",beforeMount(e,{value:t,arg:n,modifiers:o}){if(o.mouse!==!0&&ft.has.touch!==!0)return;const a=o.mouseCapture===!0?"Capture":"",i={handler:t,sensitivity:B_(n),direction:Ti(o),noop:Kt,mouseStart(l){Oi(l,i)&&ai(l)&&(zt(i,"temp",[[document,"mousemove","move",`notPassive${a}`],[document,"mouseup","end","notPassiveCapture"]]),i.start(l,!0))},touchStart(l){if(Oi(l,i)){const s=l.target;zt(i,"temp",[[s,"touchmove","move","notPassiveCapture"],[s,"touchcancel","end","notPassiveCapture"],[s,"touchend","end","notPassiveCapture"]]),i.start(l)}},start(l,s){ft.is.firefox===!0&&co(e,!0);const d=mn(l);i.event={x:d.left,y:d.top,time:Date.now(),mouse:s===!0,dir:!1}},move(l){if(i.event===void 0)return;if(i.event.dir!==!1){ct(l);return}const s=Date.now()-i.event.time;if(s===0)return;const d=mn(l),m=d.left-i.event.x,v=Math.abs(m),b=d.top-i.event.y,p=Math.abs(b);if(i.event.mouse!==!0){if(v<i.sensitivity[1]&&p<i.sensitivity[1]){i.end(l);return}}else if(window.getSelection().toString()!==""){i.end(l);return}else if(v<i.sensitivity[2]&&p<i.sensitivity[2])return;const _=v/s,g=p/s;i.direction.vertical===!0&&v<p&&v<100&&g>i.sensitivity[0]&&(i.event.dir=b<0?"up":"down"),i.direction.horizontal===!0&&v>p&&p<100&&_>i.sensitivity[0]&&(i.event.dir=m<0?"left":"right"),i.direction.up===!0&&v<p&&b<0&&v<100&&g>i.sensitivity[0]&&(i.event.dir="up"),i.direction.down===!0&&v<p&&b>0&&v<100&&g>i.sensitivity[0]&&(i.event.dir="down"),i.direction.left===!0&&v>p&&m<0&&p<100&&_>i.sensitivity[0]&&(i.event.dir="left"),i.direction.right===!0&&v>p&&m>0&&p<100&&_>i.sensitivity[0]&&(i.event.dir="right"),i.event.dir!==!1?(ct(l),i.event.mouse===!0&&(document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),Bn(),i.styleCleanup=E=>{i.styleCleanup=void 0,document.body.classList.remove("non-selectable");const C=()=>{document.body.classList.remove("no-pointer-events--children")};E===!0?setTimeout(C,50):C()}),i.handler({evt:l,touch:i.event.mouse!==!0,mouse:i.event.mouse,direction:i.event.dir,duration:s,distance:{x:v,y:p}})):i.end(l)},end(l){i.event!==void 0&&(cn(i,"temp"),ft.is.firefox===!0&&co(e,!1),i.styleCleanup?.(!0),l!==void 0&&i.event.dir!==!1&&ct(l),i.event=void 0)}};if(e.__qtouchswipe=i,o.mouse===!0){const l=o.mouseCapture===!0||o.mousecapture===!0?"Capture":"";zt(i,"main",[[e,"mousedown","mouseStart",`passive${l}`]])}ft.has.touch===!0&&zt(i,"main",[[e,"touchstart","touchStart",`passive${o.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchswipe;n!==void 0&&(t.oldValue!==t.value&&(typeof t.value!="function"&&n.end(),n.handler=t.value),n.direction=Ti(t.modifiers))},beforeUnmount(e){const t=e.__qtouchswipe;t!==void 0&&(cn(t,"main"),cn(t,"temp"),ft.is.firefox===!0&&co(e,!1),t.styleCleanup?.(),delete e.__qtouchswipe)}});function sa(){let e=Object.create(null);return{getCache:(t,n)=>e[t]===void 0?e[t]=typeof n=="function"?n():n:e[t],setCache(t,n){e[t]=n},hasCache(t){return Object.hasOwnProperty.call(e,t)},clearCache(t){t!==void 0?delete e[t]:e=Object.create(null)}}}var Hs={name:{required:!0},disable:Boolean},dv={setup(e,{slots:t}){return()=>r.h("div",{class:"q-panel scroll",role:"tabpanel"},Ke(t.default))}},js={modelValue:{required:!0},animated:Boolean,infinite:Boolean,swipeable:Boolean,vertical:Boolean,transitionPrev:String,transitionNext:String,transitionDuration:{type:[String,Number],default:300},keepAlive:Boolean,keepAliveInclude:[String,Array,RegExp],keepAliveExclude:[String,Array,RegExp],keepAliveMax:Number},Us=["update:modelValue","beforeTransition","transition"];function Qs(){const{props:e,emit:t,proxy:n}=r.getCurrentInstance(),{getCache:o}=sa(),{registerTimeout:a}=ar();let i,l;const s=r.ref(null),d={value:null};function m(P){const F=e.vertical===!0?"up":"left";H((n.$q.lang.rtl===!0?-1:1)*(P.direction===F?1:-1))}const v=r.computed(()=>[[z_,m,void 0,{horizontal:e.vertical!==!0,vertical:e.vertical,mouse:!0}]]),b=r.computed(()=>e.transitionPrev||`slide-${e.vertical===!0?"down":"right"}`),p=r.computed(()=>e.transitionNext||`slide-${e.vertical===!0?"up":"left"}`),_=r.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`),g=r.computed(()=>typeof e.modelValue=="string"||typeof e.modelValue=="number"?e.modelValue:String(e.modelValue)),E=r.computed(()=>({include:e.keepAliveInclude,exclude:e.keepAliveExclude,max:e.keepAliveMax})),C=r.computed(()=>e.keepAliveInclude!==void 0||e.keepAliveExclude!==void 0);r.watch(()=>e.modelValue,(P,F)=>{const Y=y(P)===!0?q(P):-1;l!==!0&&k(Y===-1?0:Y<q(F)?-1:1),d.value!==Y&&(d.value=Y,t("beforeTransition",P,F),a(()=>{t("transition",P,F)},e.transitionDuration))});function w(){H(1)}function T(){H(-1)}function x(P){t("update:modelValue",P)}function y(P){return P!=null&&P!==""}function q(P){return i.findIndex(F=>F.props.name===P&&F.props.disable!==""&&F.props.disable!==!0)}function L(){return i.filter(P=>P.props.disable!==""&&P.props.disable!==!0)}function k(P){const F=P!==0&&e.animated===!0&&d.value!==-1?"q-transition--"+(P===-1?b.value:p.value):null;s.value!==F&&(s.value=F)}function H(P,F=d.value){let Y=F+P;for(;Y!==-1&&Y<i.length;){const X=i[Y];if(X!==void 0&&X.props.disable!==""&&X.props.disable!==!0){k(P),l=!0,t("update:modelValue",X.props.name),setTimeout(()=>{l=!1});return}Y+=P}e.infinite===!0&&i.length!==0&&F!==-1&&F!==i.length&&H(P,P===-1?i.length:-1)}function ee(){const P=q(e.modelValue);return d.value!==P&&(d.value=P),!0}function N(){const P=y(e.modelValue)===!0&&ee()&&i[d.value];return e.keepAlive===!0?[r.h(r.KeepAlive,E.value,[r.h(C.value===!0?o(g.value,()=>({...dv,name:g.value})):dv,{key:g.value,style:_.value},()=>P)])]:[r.h("div",{class:"q-panel scroll",style:_.value,key:g.value,role:"tabpanel"},[P])]}function I(){if(i.length!==0)return e.animated===!0?[r.h(r.Transition,{name:s.value},N)]:N()}function $(P){return i=xs(Ke(P.default,[])).filter(F=>F.props!==null&&F.props.slot===void 0&&y(F.props.name)===!0),i.length}function D(){return i}return Object.assign(n,{next:w,previous:T,goTo:x}),{panelIndex:d,panelDirectives:v,updatePanelsList:$,updatePanelIndex:ee,getPanelContent:I,getEnabledPanels:L,getPanels:D,isValidPanelName:y,keepAliveProps:E,needsUniqueKeepAliveWrapper:C,goToPanelByOffset:H,goToPanel:x,nextPanel:w,previousPanel:T}}var ua=0,Ws={fullscreen:Boolean,noRouteFullscreenExit:Boolean},Ys=["update:fullscreen","fullscreen"];function Ks(){const e=r.getCurrentInstance(),{props:t,emit:n,proxy:o}=e;let a,i;const l=r.ref(!1);ks(e)===!0&&r.watch(()=>o.$route.fullPath,()=>{t.noRouteFullscreenExit!==!0&&m()}),r.watch(()=>t.fullscreen,v=>{l.value!==v&&s()}),r.watch(l,v=>{n("update:fullscreen",v),n("fullscreen",v)});function s(){l.value===!0?m():d()}function d(){l.value!==!0&&(l.value=!0,i=o.$el.parentNode,i.replaceChild(a,o.$el),document.body.appendChild(o.$el),ua++,ua===1&&document.body.classList.add("q-body--fullscreen-mixin"))}function m(){l.value===!0&&(i.replaceChild(o.$el,a),l.value=!1,ua=Math.max(0,ua-1),ua===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),o.$el.scrollIntoView!==void 0&&setTimeout(()=>{o.$el.scrollIntoView()})))}return r.onBeforeMount(()=>{a=document.createElement("span")}),r.onMounted(()=>{t.fullscreen===!0&&d()}),r.onBeforeUnmount(m),Object.assign(o,{toggleFullscreen:s,setFullscreen:d,exitFullscreen:m}),{inFullscreen:l,toggleFullscreen:s}}var H_=["top","right","bottom","left"],j_=["regular","flat","outline","push","unelevated"];_e({name:"QCarousel",props:{...bt,...js,...Ws,transitionPrev:{type:String,default:"fade"},transitionNext:{type:String,default:"fade"},height:String,padding:Boolean,controlColor:String,controlTextColor:String,controlType:{type:String,validator:e=>j_.includes(e),default:"flat"},autoplay:[Number,Boolean],arrows:Boolean,prevIcon:String,nextIcon:String,navigation:Boolean,navigationPosition:{type:String,validator:e=>H_.includes(e)},navigationIcon:String,navigationActiveIcon:String,thumbnails:Boolean},emits:[...Ys,...Us],setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),o=yt(e,n);let a=null,i;const{updatePanelsList:l,getPanelContent:s,panelDirectives:d,goToPanel:m,previousPanel:v,nextPanel:b,getEnabledPanels:p,panelIndex:_}=Qs(),{inFullscreen:g}=Ks(),E=r.computed(()=>g.value!==!0&&e.height!==void 0?{height:e.height}:{}),C=r.computed(()=>e.vertical===!0?"vertical":"horizontal"),w=r.computed(()=>e.navigationPosition||(e.vertical===!0?"right":"bottom")),T=r.computed(()=>`q-carousel q-panel-parent q-carousel--with${e.padding===!0?"":"out"}-padding`+(g.value===!0?" fullscreen":"")+(o.value===!0?" q-carousel--dark q-dark":"")+(e.arrows===!0?` q-carousel--arrows-${C.value}`:"")+(e.navigation===!0?` q-carousel--navigation-${w.value}`:"")),x=r.computed(()=>{const N=[e.prevIcon||n.iconSet.carousel[e.vertical===!0?"up":"left"],e.nextIcon||n.iconSet.carousel[e.vertical===!0?"down":"right"]];return e.vertical===!1&&n.lang.rtl===!0?N.reverse():N}),y=r.computed(()=>e.navigationIcon||n.iconSet.carousel.navigationIcon),q=r.computed(()=>e.navigationActiveIcon||y.value),L=r.computed(()=>({color:e.controlColor,textColor:e.controlTextColor,round:!0,[e.controlType]:!0,dense:!0}));r.watch(()=>e.modelValue,()=>{e.autoplay&&k()}),r.watch(()=>e.autoplay,N=>{N?k():a!==null&&(clearTimeout(a),a=null)});function k(){const N=ea(e.autoplay)===!0?Math.abs(e.autoplay):5e3;a!==null&&clearTimeout(a),a=setTimeout(()=>{a=null,N>=0?b():v()},N)}r.onMounted(()=>{e.autoplay&&k()}),r.onBeforeUnmount(()=>{a!==null&&clearTimeout(a)});function H(N,I){return r.h("div",{class:`q-carousel__control q-carousel__navigation no-wrap absolute flex q-carousel__navigation--${N} q-carousel__navigation--${w.value}`+(e.controlColor!==void 0?` text-${e.controlColor}`:"")},[r.h("div",{class:"q-carousel__navigation-inner flex flex-center no-wrap"},p().map(I))])}function ee(){const N=[];if(e.navigation===!0){const I=t["navigation-icon"]!==void 0?t["navigation-icon"]:D=>r.h(xt,{key:"nav"+D.name,class:`q-carousel__navigation-icon q-carousel__navigation-icon--${D.active===!0?"":"in"}active`,...D.btnProps,onClick:D.onClick}),$=i-1;N.push(H("buttons",(D,P)=>{const F=D.props.name,Y=_.value===P;return I({index:P,maxIndex:$,name:F,active:Y,btnProps:{icon:Y===!0?q.value:y.value,size:"sm",...L.value},onClick:()=>{m(F)}})}))}else if(e.thumbnails===!0){const I=e.controlColor!==void 0?` text-${e.controlColor}`:"";N.push(H("thumbnails",$=>{const D=$.props;return r.h("img",{key:"tmb#"+D.name,class:`q-carousel__thumbnail q-carousel__thumbnail--${D.name===e.modelValue?"":"in"}active`+I,src:D.imgSrc||D["img-src"],onClick:()=>{m(D.name)}})}))}return e.arrows===!0&&_.value>=0&&((e.infinite===!0||_.value>0)&&N.push(r.h("div",{key:"prev",class:`q-carousel__control q-carousel__arrow q-carousel__prev-arrow q-carousel__prev-arrow--${C.value} absolute flex flex-center`},[r.h(xt,{icon:x.value[0],...L.value,onClick:v})])),(e.infinite===!0||_.value<i-1)&&N.push(r.h("div",{key:"next",class:`q-carousel__control q-carousel__arrow q-carousel__next-arrow q-carousel__next-arrow--${C.value} absolute flex flex-center`},[r.h(xt,{icon:x.value[1],...L.value,onClick:b})]))),Ht(t.control,N)}return()=>(i=l(t),r.h("div",{class:T.value,style:E.value},[Mn("div",{class:"q-carousel__slides-container"},s(),"sl-cont",e.swipeable,()=>d.value)].concat(ee())))}}),_e({name:"QCarouselSlide",props:{...Hs,imgSrc:String},setup(e,{slots:t}){const n=r.computed(()=>e.imgSrc?{backgroundImage:`url("${e.imgSrc}")`}:{});return()=>r.h("div",{class:"q-carousel__slide",style:n.value},Ke(t.default))}}),_e({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=>e.length===2}},setup(e,{slots:t}){const n=r.computed(()=>`q-carousel__control absolute absolute-${e.position}`),o=r.computed(()=>({margin:`${e.offset[1]}px ${e.offset[0]}px`}));return()=>r.h("div",{class:n.value,style:o.value},Ke(t.default))}}),_e({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(e,{slots:t}){const n=r.computed(()=>e.sent===!0?"sent":"received"),o=r.computed(()=>`q-message-text-content q-message-text-content--${n.value}`+(e.textColor!==void 0?` text-${e.textColor}`:"")),a=r.computed(()=>`q-message-text q-message-text--${n.value}`+(e.bgColor!==void 0?` text-${e.bgColor}`:"")),i=r.computed(()=>"q-message-container row items-end no-wrap"+(e.sent===!0?" reverse":"")),l=r.computed(()=>e.size!==void 0?`col-${e.size}`:""),s=r.computed(()=>({msg:e.textHtml===!0?"innerHTML":"textContent",stamp:e.stampHtml===!0?"innerHTML":"textContent",name:e.nameHtml===!0?"innerHTML":"textContent",label:e.labelHtml===!0?"innerHTML":"textContent"}));function d(v){return t.stamp!==void 0?[v,r.h("div",{class:"q-message-stamp"},t.stamp())]:e.stamp?[v,r.h("div",{class:"q-message-stamp",[s.value.stamp]:e.stamp})]:[v]}function m(v,b){const p=b===!0?v.length>1?_=>_:_=>r.h("div",[_]):_=>r.h("div",{[s.value.msg]:_});return v.map((_,g)=>r.h("div",{key:g,class:a.value},[r.h("div",{class:o.value},d(p(_)))]))}return()=>{const v=[];t.avatar!==void 0?v.push(t.avatar()):e.avatar!==void 0&&v.push(r.h("img",{class:`q-message-avatar q-message-avatar--${n.value}`,src:e.avatar,"aria-hidden":"true"}));const b=[];t.name!==void 0?b.push(r.h("div",{class:`q-message-name q-message-name--${n.value}`},t.name())):e.name!==void 0&&b.push(r.h("div",{class:`q-message-name q-message-name--${n.value}`,[s.value.name]:e.name})),t.default!==void 0?b.push(m(xs(t.default()),!0)):e.text!==void 0&&b.push(m(e.text)),v.push(r.h("div",{class:l.value},b));const p=[];return t.label!==void 0?p.push(r.h("div",{class:"q-message-label"},t.label())):e.label!==void 0&&p.push(r.h("div",{class:"q-message-label",[s.value.label]:e.label})),p.push(r.h("div",{class:i.value},v)),r.h("div",{class:`q-message q-message-${n.value}`},p)}}});function fv(e,t){const n=r.ref(null),o=r.computed(()=>e.disable===!0?null:r.h("span",{ref:n,class:"no-outline",tabindex:-1}));function a(i){const l=t.value;i?.qAvoidFocus!==!0&&(i?.type.indexOf("key")===0?document.activeElement!==l&&l?.contains(document.activeElement)===!0&&l.focus():n.value!==null&&(i===void 0||l?.contains(i.target)===!0)&&n.value.focus())}return{refocusTargetEl:o,refocusTarget:a}}var vv={xs:30,sm:35,md:40,lg:50,xl:60},mv={...bt,...rr,...An,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:e=>e==="tf"||e==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},hv=["update:modelValue"];function gv(e,t){const{props:n,slots:o,emit:a,proxy:i}=r.getCurrentInstance(),{$q:l}=i,s=yt(n,l),d=r.ref(null),{refocusTargetEl:m,refocusTarget:v}=fv(n,d),b=or(n,vv),p=r.computed(()=>n.val!==void 0&&Array.isArray(n.modelValue)),_=r.computed(()=>{const $=r.toRaw(n.val);return p.value===!0?n.modelValue.findIndex(D=>r.toRaw(D)===$):-1}),g=r.computed(()=>p.value===!0?_.value!==-1:r.toRaw(n.modelValue)===r.toRaw(n.trueValue)),E=r.computed(()=>p.value===!0?_.value===-1:r.toRaw(n.modelValue)===r.toRaw(n.falseValue)),C=r.computed(()=>g.value===!1&&E.value===!1),w=r.computed(()=>n.disable===!0?-1:n.tabindex||0),T=r.computed(()=>`q-${e} cursor-pointer no-outline row inline no-wrap items-center`+(n.disable===!0?" disabled":"")+(s.value===!0?` q-${e}--dark`:"")+(n.dense===!0?` q-${e}--dense`:"")+(n.leftLabel===!0?" reverse":"")),x=r.computed(()=>{const $=g.value===!0?"truthy":E.value===!0?"falsy":"indet",D=n.color!==void 0&&(n.keepColor===!0||(e==="toggle"?g.value===!0:E.value!==!0))?` text-${n.color}`:"";return`q-${e}__inner relative-position non-selectable q-${e}__inner--${$}${D}`}),y=r.computed(()=>{const $={type:"checkbox"};return n.name!==void 0&&Object.assign($,{".checked":g.value,"^checked":g.value===!0?"checked":void 0,name:n.name,value:p.value===!0?n.val:n.trueValue}),$}),q=pr(y),L=r.computed(()=>{const $={tabindex:w.value,role:e==="toggle"?"switch":"checkbox","aria-label":n.label,"aria-checked":C.value===!0?"mixed":g.value===!0?"true":"false"};return n.disable===!0&&($["aria-disabled"]="true"),$});function k($){$!==void 0&&(ct($),v($)),n.disable!==!0&&a("update:modelValue",H(),$)}function H(){if(p.value===!0){if(g.value===!0){const $=n.modelValue.slice();return $.splice(_.value,1),$}return n.modelValue.concat([n.val])}if(g.value===!0){if(n.toggleOrder!=="ft"||n.toggleIndeterminate===!1)return n.falseValue}else if(E.value===!0){if(n.toggleOrder==="ft"||n.toggleIndeterminate===!1)return n.trueValue}else return n.toggleOrder!=="ft"?n.trueValue:n.falseValue;return n.indeterminateValue}function ee($){($.keyCode===13||$.keyCode===32)&&ct($)}function N($){($.keyCode===13||$.keyCode===32)&&k($)}const I=t(g,C);return Object.assign(i,{toggle:k}),()=>{const $=I();n.disable!==!0&&q($,"unshift",` q-${e}__native absolute q-ma-none q-pa-none`);const D=[r.h("div",{class:x.value,style:b.value,"aria-hidden":"true"},$)];m.value!==null&&D.push(m.value);const P=n.label!==void 0?Ht(o.default,[n.label]):Ke(o.default);return P!==void 0&&D.push(r.h("div",{class:`q-${e}__label q-anchor--skip`},P)),r.h("div",{ref:d,class:T.value,...L.value,onClick:k,onKeydown:ee,onKeyup:N},D)}}var U_=()=>r.h("div",{key:"svg",class:"q-checkbox__bg absolute"},[r.h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[r.h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),r.h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]),ca=_e({name:"QCheckbox",props:mv,emits:hv,setup(e){const t=U_();function n(o,a){const i=r.computed(()=>(o.value===!0?e.checkedIcon:a.value===!0?e.indeterminateIcon:e.uncheckedIcon)||null);return()=>i.value!==null?[r.h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[r.h(wt,{class:"q-checkbox__icon",name:i.value})])]:[t]}return gv("checkbox",n)}}),Q_={xs:8,sm:10,md:14,lg:20,xl:24},pv=_e({name:"QChip",props:{...bt,...rr,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),a=yt(e,o),i=or(e,Q_),l=r.computed(()=>e.selected===!0||e.icon!==void 0),s=r.computed(()=>e.selected===!0?e.iconSelected||o.iconSet.chip.selected:e.icon),d=r.computed(()=>e.iconRemove||o.iconSet.chip.remove),m=r.computed(()=>e.disable===!1&&(e.clickable===!0||e.selected!==null)),v=r.computed(()=>{const C=e.outline===!0&&e.color||e.textColor;return"q-chip row inline no-wrap items-center"+(e.outline===!1&&e.color!==void 0?` bg-${e.color}`:"")+(C?` text-${C} q-chip--colored`:"")+(e.disable===!0?" disabled":"")+(e.dense===!0?" q-chip--dense":"")+(e.outline===!0?" q-chip--outline":"")+(e.selected===!0?" q-chip--selected":"")+(m.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(e.square===!0?" q-chip--square":"")+(a.value===!0?" q-chip--dark q-dark":"")}),b=r.computed(()=>{const C=e.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:e.tabindex||0},w={...C,role:"button","aria-hidden":"false","aria-label":e.removeAriaLabel||o.lang.label.remove};return{chip:C,remove:w}});function p(C){C.keyCode===13&&_(C)}function _(C){e.disable||(n("update:selected",!e.selected),n("click",C))}function g(C){(C.keyCode===void 0||C.keyCode===13)&&(ct(C),e.disable===!1&&(n("update:modelValue",!1),n("remove")))}function E(){const C=[];m.value===!0&&C.push(r.h("div",{class:"q-focus-helper"})),l.value===!0&&C.push(r.h(wt,{class:"q-chip__icon q-chip__icon--left",name:s.value}));const w=e.label!==void 0?[r.h("div",{class:"ellipsis"},[e.label])]:void 0;return C.push(r.h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},ys(t.default,w))),e.iconRight&&C.push(r.h(wt,{class:"q-chip__icon q-chip__icon--right",name:e.iconRight})),e.removable===!0&&C.push(r.h(wt,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:d.value,...b.value.remove,onClick:g,onKeyup:g})),C}return()=>{if(e.modelValue===!1)return;const C={class:v.value,style:i.value};return m.value===!0&&Object.assign(C,b.value.chip,{onClick:_,onKeyup:p}),Mn("div",C,E(),"ripple",e.ripple!==!1&&e.disable!==!0,()=>[[di,e.ripple]])}}}),Gs={...rr,min:{type:Number,default:0},max:{type:Number,default:100},color:String,centerColor:String,trackColor:String,fontSize:String,rounded:Boolean,thickness:{type:Number,default:.2,validator:e=>e>=0&&e<=1},angle:{type:Number,default:0},showValue:Boolean,reverse:Boolean,instantFeedback:Boolean},Xs=50,bv=2*Xs,yv=bv*Math.PI,W_=Math.round(yv*1e3)/1e3,_v=_e({name:"QCircularProgress",props:{...Gs,value:{type:Number,default:0},animationSpeed:{type:[String,Number],default:600},indeterminate:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),o=or(e),a=r.computed(()=>{const _=(n.lang.rtl===!0?-1:1)*e.angle;return{transform:e.reverse!==(n.lang.rtl===!0)?`scale3d(-1, 1, 1) rotate3d(0, 0, 1, ${-90-_}deg)`:`rotate3d(0, 0, 1, ${_-90}deg)`}}),i=r.computed(()=>e.instantFeedback!==!0&&e.indeterminate!==!0?{transition:`stroke-dashoffset ${e.animationSpeed}ms ease 0s, stroke ${e.animationSpeed}ms ease`}:""),l=r.computed(()=>bv/(1-e.thickness/2)),s=r.computed(()=>`${l.value/2} ${l.value/2} ${l.value} ${l.value}`),d=r.computed(()=>Mt(e.value,e.min,e.max)),m=r.computed(()=>e.max-e.min),v=r.computed(()=>e.thickness/2*l.value),b=r.computed(()=>{const _=(e.max-d.value)/m.value,g=e.rounded===!0&&d.value<e.max&&_<.25?v.value/2*(1-_/.25):0;return yv*_+g});function p({thickness:_,offset:g,color:E,cls:C,rounded:w}){return r.h("circle",{class:"q-circular-progress__"+C+(E!==void 0?` text-${E}`:""),style:i.value,fill:"transparent",stroke:"currentColor","stroke-width":_,"stroke-dasharray":W_,"stroke-dashoffset":g,"stroke-linecap":w,cx:l.value,cy:l.value,r:Xs})}return()=>{const _=[];e.centerColor!==void 0&&e.centerColor!=="transparent"&&_.push(r.h("circle",{class:`q-circular-progress__center text-${e.centerColor}`,fill:"currentColor",r:Xs-v.value/2,cx:l.value,cy:l.value})),e.trackColor!==void 0&&e.trackColor!=="transparent"&&_.push(p({cls:"track",thickness:v.value,offset:0,color:e.trackColor})),_.push(p({cls:"circle",thickness:v.value,offset:b.value,color:e.color,rounded:e.rounded===!0?"round":void 0}));const g=[r.h("svg",{class:"q-circular-progress__svg",style:a.value,viewBox:s.value,"aria-hidden":"true"},_)];return e.showValue===!0&&g.push(r.h("div",{class:"q-circular-progress__text absolute-full row flex-center content-center",style:{fontSize:e.fontSize}},t.default!==void 0?t.default():[r.h("div",d.value)])),r.h("div",{class:`q-circular-progress q-circular-progress--${e.indeterminate===!0?"in":""}determinate`,style:o.value,role:"progressbar","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.indeterminate===!0?void 0:d.value},ys(t.internal,g))}}});function Js(e,t,n){const o=mn(e);let a,i=o.left-t.event.x,l=o.top-t.event.y,s=Math.abs(i),d=Math.abs(l);const m=t.direction;m.horizontal===!0&&m.vertical!==!0?a=i<0?"left":"right":m.horizontal!==!0&&m.vertical===!0?a=l<0?"up":"down":m.up===!0&&l<0?(a="up",s>d&&(m.left===!0&&i<0?a="left":m.right===!0&&i>0&&(a="right"))):m.down===!0&&l>0?(a="down",s>d&&(m.left===!0&&i<0?a="left":m.right===!0&&i>0&&(a="right"))):m.left===!0&&i<0?(a="left",s<d&&(m.up===!0&&l<0?a="up":m.down===!0&&l>0&&(a="down"))):m.right===!0&&i>0&&(a="right",s<d&&(m.up===!0&&l<0?a="up":m.down===!0&&l>0&&(a="down")));let v=!1;if(a===void 0&&n===!1){if(t.event.isFirst===!0||t.event.lastDir===void 0)return{};a=t.event.lastDir,v=!0,a==="left"||a==="right"?(o.left-=i,s=0,i=0):(o.top-=l,d=0,l=0)}return{synthetic:v,payload:{evt:e,touch:t.event.mouse!==!0,mouse:t.event.mouse===!0,position:o,direction:a,isFirst:t.event.isFirst,isFinal:n===!0,duration:Date.now()-t.event.time,distance:{x:s,y:d},offset:{x:i,y:l},delta:{x:o.left-t.event.lastX,y:o.top-t.event.lastY}}}}var Y_=0,Rn=Dn({name:"touch-pan",beforeMount(e,{value:t,modifiers:n}){if(n.mouse!==!0&&ft.has.touch!==!0)return;function o(i,l){n.mouse===!0&&l===!0?ct(i):(n.stop===!0&&$t(i),n.prevent===!0&&Zt(i))}const a={uid:"qvtp_"+Y_++,handler:t,modifiers:n,direction:Ti(n),noop:Kt,mouseStart(i){Oi(i,a)&&ai(i)&&(zt(a,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),a.start(i,!0))},touchStart(i){if(Oi(i,a)){const l=i.target;zt(a,"temp",[[l,"touchmove","move","notPassiveCapture"],[l,"touchcancel","end","passiveCapture"],[l,"touchend","end","passiveCapture"]]),a.start(i)}},start(i,l){if(ft.is.firefox===!0&&co(e,!0),a.lastEvt=i,l===!0||n.stop===!0){if(a.direction.all!==!0&&(l!==!0||a.modifiers.mouseAllDir!==!0&&a.modifiers.mousealldir!==!0)){const m=i.type.indexOf("mouse")!==-1?new MouseEvent(i.type,i):new TouchEvent(i.type,i);i.defaultPrevented===!0&&Zt(m),i.cancelBubble===!0&&$t(m),Object.assign(m,{qKeyEvent:i.qKeyEvent,qClickOutside:i.qClickOutside,qAnchorHandled:i.qAnchorHandled,qClonedBy:i.qClonedBy===void 0?[a.uid]:i.qClonedBy.concat(a.uid)}),a.initialEvent={target:i.target,event:m}}$t(i)}const{left:s,top:d}=mn(i);a.event={x:s,y:d,time:Date.now(),mouse:l===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:s,lastY:d}},move(i){if(a.event===void 0)return;const l=mn(i),s=l.left-a.event.x,d=l.top-a.event.y;if(s===0&&d===0)return;a.lastEvt=i;const m=a.event.mouse===!0,v=()=>{o(i,m);let _;n.preserveCursor!==!0&&n.preservecursor!==!0&&(_=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),m===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),Bn(),a.styleCleanup=g=>{if(a.styleCleanup=void 0,_!==void 0&&(document.documentElement.style.cursor=_),document.body.classList.remove("non-selectable"),m===!0){const E=()=>{document.body.classList.remove("no-pointer-events--children")};g!==void 0?setTimeout(()=>{E(),g()},50):E()}else g!==void 0&&g()}};if(a.event.detected===!0){a.event.isFirst!==!0&&o(i,a.event.mouse);const{payload:_,synthetic:g}=Js(i,a,!1);_!==void 0&&(a.handler(_)===!1?a.end(i):(a.styleCleanup===void 0&&a.event.isFirst===!0&&v(),a.event.lastX=_.position.left,a.event.lastY=_.position.top,a.event.lastDir=g===!0?void 0:_.direction,a.event.isFirst=!1));return}if(a.direction.all===!0||m===!0&&(a.modifiers.mouseAllDir===!0||a.modifiers.mousealldir===!0)){v(),a.event.detected=!0,a.move(i);return}const b=Math.abs(s),p=Math.abs(d);b!==p&&(a.direction.horizontal===!0&&b>p||a.direction.vertical===!0&&b<p||a.direction.up===!0&&b<p&&d<0||a.direction.down===!0&&b<p&&d>0||a.direction.left===!0&&b>p&&s<0||a.direction.right===!0&&b>p&&s>0?(a.event.detected=!0,a.move(i)):a.end(i,!0))},end(i,l){if(a.event!==void 0){if(cn(a,"temp"),ft.is.firefox===!0&&co(e,!1),l===!0)a.styleCleanup?.(),a.event.detected!==!0&&a.initialEvent!==void 0&&a.initialEvent.target.dispatchEvent(a.initialEvent.event);else if(a.event.detected===!0){a.event.isFirst===!0&&a.handler(Js(i===void 0?a.lastEvt:i,a).payload);const{payload:s}=Js(i===void 0?a.lastEvt:i,a,!0),d=()=>{a.handler(s)};a.styleCleanup!==void 0?a.styleCleanup(d):d()}a.event=void 0,a.initialEvent=void 0,a.lastEvt=void 0}}};if(e.__qtouchpan=a,n.mouse===!0){const i=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";zt(a,"main",[[e,"mousedown","mouseStart",`passive${i}`]])}ft.has.touch===!0&&zt(a,"main",[[e,"touchstart","touchStart",`passive${n.capture===!0?"Capture":""}`],[e,"touchmove","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchpan;n!==void 0&&(t.oldValue!==t.value&&(typeof value!="function"&&n.end(),n.handler=t.value),n.direction=Ti(t.modifiers))},beforeUnmount(e){const t=e.__qtouchpan;t!==void 0&&(t.event!==void 0&&t.end(),cn(t,"main"),cn(t,"temp"),ft.is.firefox===!0&&co(e,!1),t.styleCleanup?.(),delete e.__qtouchpan)}}),Sv="q-slider__marker-labels",K_=e=>({value:e}),G_=({marker:e})=>r.h("div",{key:e.value,style:e.style,class:e.classes},e.label),Zs=[34,37,40,33,39,38],wv={...bt,...An,min:{type:Number,default:0},max:{type:Number,default:100},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:e=>e>=0},snap:Boolean,vertical:Boolean,reverse:Boolean,color:String,markerLabelsClass:String,label:Boolean,labelColor:String,labelTextColor:String,labelAlways:Boolean,switchLabelSide:Boolean,markers:[Boolean,Number],markerLabels:[Boolean,Array,Object,Function],switchMarkerLabelsSide:Boolean,trackImg:String,trackColor:String,innerTrackImg:String,innerTrackColor:String,selectionColor:String,selectionImg:String,thumbSize:{type:String,default:"20px"},trackSize:{type:String,default:"4px"},disable:Boolean,readonly:Boolean,dense:Boolean,tabindex:[String,Number],thumbColor:String,thumbPath:{type:String,default:"M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"}},Cv=["pan","update:modelValue","change"];function xv({updateValue:e,updatePosition:t,getDragging:n,formAttrs:o}){const{props:a,emit:i,slots:l,proxy:{$q:s}}=r.getCurrentInstance(),d=yt(a,s),m=pr(o),v=r.ref(!1),b=r.ref(!1),p=r.ref(!1),_=r.ref(!1),g=r.computed(()=>a.vertical===!0?"--v":"--h"),E=r.computed(()=>"-"+(a.switchLabelSide===!0?"switched":"standard")),C=r.computed(()=>a.vertical===!0?a.reverse===!0:a.reverse!==(s.lang.rtl===!0)),w=r.computed(()=>isNaN(a.innerMin)===!0||a.innerMin<a.min?a.min:a.innerMin),T=r.computed(()=>isNaN(a.innerMax)===!0||a.innerMax>a.max?a.max:a.innerMax),x=r.computed(()=>a.disable!==!0&&a.readonly!==!0&&w.value<T.value),y=r.computed(()=>{if(a.step===0)return xe=>xe;const de=(String(a.step).trim().split(".")[1]||"").length;return xe=>parseFloat(xe.toFixed(de))}),q=r.computed(()=>a.step===0?1:a.step),L=r.computed(()=>x.value===!0?a.tabindex||0:-1),k=r.computed(()=>a.max-a.min),H=r.computed(()=>T.value-w.value),ee=r.computed(()=>Le(w.value)),N=r.computed(()=>Le(T.value)),I=r.computed(()=>a.vertical===!0?C.value===!0?"bottom":"top":C.value===!0?"right":"left"),$=r.computed(()=>a.vertical===!0?"height":"width"),D=r.computed(()=>a.vertical===!0?"width":"height"),P=r.computed(()=>a.vertical===!0?"vertical":"horizontal"),F=r.computed(()=>{const de={role:"slider","aria-valuemin":w.value,"aria-valuemax":T.value,"aria-orientation":P.value,"data-step":a.step};return a.disable===!0?de["aria-disabled"]="true":a.readonly===!0&&(de["aria-readonly"]="true"),de}),Y=r.computed(()=>`q-slider q-slider${g.value} q-slider--${v.value===!0?"":"in"}active inline no-wrap `+(a.vertical===!0?"row":"column")+(a.disable===!0?" disabled":" q-slider--enabled"+(x.value===!0?" q-slider--editable":""))+(p.value==="both"?" q-slider--focus":"")+(a.label||a.labelAlways===!0?" q-slider--label":"")+(a.labelAlways===!0?" q-slider--label-always":"")+(d.value===!0?" q-slider--dark":"")+(a.dense===!0?" q-slider--dense q-slider--dense"+g.value:""));function X(de){const xe="q-slider__"+de;return`${xe} ${xe}${g.value} ${xe}${g.value}${E.value}`}function Z(de){const xe="q-slider__"+de;return`${xe} ${xe}${g.value}`}const ce=r.computed(()=>{const de=a.selectionColor||a.color;return"q-slider__selection absolute"+(de!==void 0?` text-${de}`:"")}),Ee=r.computed(()=>Z("markers")+" absolute overflow-hidden"),G=r.computed(()=>Z("track-container")),R=r.computed(()=>X("pin")),ae=r.computed(()=>X("label")),J=r.computed(()=>X("text-container")),be=r.computed(()=>X("marker-labels-container")+(a.markerLabelsClass!==void 0?` ${a.markerLabelsClass}`:"")),W=r.computed(()=>"q-slider__track relative-position no-outline"+(a.trackColor!==void 0?` bg-${a.trackColor}`:"")),ne=r.computed(()=>{const de={[D.value]:a.trackSize};return a.trackImg!==void 0&&(de.backgroundImage=`url(${a.trackImg}) !important`),de}),we=r.computed(()=>"q-slider__inner absolute"+(a.innerTrackColor!==void 0?` bg-${a.innerTrackColor}`:"")),Q=r.computed(()=>{const de=N.value-ee.value,xe={[I.value]:`${100*ee.value}%`,[$.value]:de===0?"2px":`${100*de}%`};return a.innerTrackImg!==void 0&&(xe.backgroundImage=`url(${a.innerTrackImg}) !important`),xe});function Oe(de){const{min:xe,max:ze,step:rt}=a;let Ge=xe+de*(ze-xe);if(rt>0){const st=(Ge-w.value)%rt;Ge+=(Math.abs(st)>=rt/2?(st<0?-1:1)*rt:0)-st}return Ge=y.value(Ge),Mt(Ge,w.value,T.value)}function Le(de){return k.value===0?0:(de-a.min)/k.value}function le(de,xe){const ze=mn(de),rt=a.vertical===!0?Mt((ze.top-xe.top)/xe.height,0,1):Mt((ze.left-xe.left)/xe.width,0,1);return Mt(C.value===!0?1-rt:rt,ee.value,N.value)}const qe=r.computed(()=>ea(a.markers)===!0?a.markers:q.value),Re=r.computed(()=>{const de=[],xe=qe.value,ze=a.max;let rt=a.min;do de.push(rt),rt+=xe;while(rt<ze);return de.push(ze),de}),Fe=r.computed(()=>{const de=` ${Sv}${g.value}-`;return Sv+`${de}${a.switchMarkerLabelsSide===!0?"switched":"standard"}${de}${C.value===!0?"rtl":"ltr"}`}),He=r.computed(()=>a.markerLabels===!1?null:K(a.markerLabels).map((de,xe)=>({index:xe,value:de.value,label:de.label||de.value,classes:Fe.value+(de.classes!==void 0?" "+de.classes:""),style:{...ve(de.value),...de.style||{}}}))),ke=r.computed(()=>({markerList:He.value,markerMap:oe.value,classes:Fe.value,getStyle:ve})),z=r.computed(()=>{const de=H.value===0?"2px":100*qe.value/H.value;return{...Q.value,backgroundSize:a.vertical===!0?`2px ${de}%`:`${de}% 2px`}});function K(de){if(de===!1)return null;if(de===!0)return Re.value.map(K_);if(typeof de=="function")return Re.value.map(ze=>{const rt=de(ze);return dn(rt)===!0?{...rt,value:ze}:{value:ze,label:rt}});const xe=({value:ze})=>ze>=a.min&&ze<=a.max;return Array.isArray(de)===!0?de.map(ze=>dn(ze)===!0?ze:{value:ze}).filter(xe):Object.keys(de).map(ze=>{const rt=de[ze],Ge=Number(ze);return dn(rt)===!0?{...rt,value:Ge}:{value:Ge,label:rt}}).filter(xe)}function ve(de){return{[I.value]:`${100*(de-a.min)/k.value}%`}}const oe=r.computed(()=>{if(a.markerLabels===!1)return null;const de={};return He.value.forEach(xe=>{de[xe.value]=xe}),de});function se(){if(l["marker-label-group"]!==void 0)return l["marker-label-group"](ke.value);const de=l["marker-label"]||G_;return He.value.map(xe=>de({marker:xe,...ke.value}))}const Se=r.computed(()=>[[Rn,Te,void 0,{[P.value]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]);function Te(de){de.isFinal===!0?(_.value!==void 0&&(t(de.evt),de.touch===!0&&e(!0),_.value=void 0,i("pan","end")),v.value=!1,p.value=!1):de.isFirst===!0?(_.value=n(de.evt),t(de.evt),e(),v.value=!0,i("pan","start")):(t(de.evt),e())}function ue(){p.value=!1}function ge(de){t(de,n(de)),e(),b.value=!0,v.value=!0,document.addEventListener("mouseup",Ne,!0)}function Ne(){b.value=!1,v.value=!1,e(!0),ue(),document.removeEventListener("mouseup",Ne,!0)}function Be(de){t(de,n(de)),e(!0)}function dt(de){Zs.includes(de.keyCode)&&e(!0)}function ut(de){if(a.vertical===!0)return null;const xe=s.lang.rtl!==a.reverse?1-de:de;return{transform:`translateX(calc(${2*xe-1} * ${a.thumbSize} / 2 + ${50-100*xe}%))`}}function fe(de){const xe=r.computed(()=>b.value===!1&&(p.value===de.focusValue||p.value==="both")?" q-slider--focus":""),ze=r.computed(()=>`q-slider__thumb q-slider__thumb${g.value} q-slider__thumb${g.value}-${C.value===!0?"rtl":"ltr"} absolute non-selectable`+xe.value+(de.thumbColor.value!==void 0?` text-${de.thumbColor.value}`:"")),rt=r.computed(()=>({width:a.thumbSize,height:a.thumbSize,[I.value]:`${100*de.ratio.value}%`,zIndex:p.value===de.focusValue?2:void 0})),Ge=r.computed(()=>de.labelColor.value!==void 0?` text-${de.labelColor.value}`:""),st=r.computed(()=>ut(de.ratio.value)),_t=r.computed(()=>"q-slider__text"+(de.labelTextColor.value!==void 0?` text-${de.labelTextColor.value}`:""));return()=>{const Tt=[r.h("svg",{class:"q-slider__thumb-shape absolute-full",viewBox:"0 0 20 20","aria-hidden":"true"},[r.h("path",{d:a.thumbPath})]),r.h("div",{class:"q-slider__focus-ring fit"})];return(a.label===!0||a.labelAlways===!0)&&(Tt.push(r.h("div",{class:R.value+" absolute fit no-pointer-events"+Ge.value},[r.h("div",{class:ae.value,style:{minWidth:a.thumbSize}},[r.h("div",{class:J.value,style:st.value},[r.h("span",{class:_t.value},de.label.value)])])])),a.name!==void 0&&a.disable!==!0&&m(Tt,"push")),r.h("div",{class:ze.value,style:rt.value,...de.getNodeData()},Tt)}}function Ce(de,xe,ze,rt){const Ge=[];a.innerTrackColor!=="transparent"&&Ge.push(r.h("div",{key:"inner",class:we.value,style:Q.value})),a.selectionColor!=="transparent"&&Ge.push(r.h("div",{key:"selection",class:ce.value,style:de.value})),a.markers!==!1&&Ge.push(r.h("div",{key:"marker",class:Ee.value,style:z.value})),rt(Ge);const st=[Mn("div",{key:"trackC",class:G.value,tabindex:xe.value,...ze.value},[r.h("div",{class:W.value,style:ne.value},Ge)],"slide",x.value,()=>Se.value)];if(a.markerLabels!==!1){const _t=a.switchMarkerLabelsSide===!0?"unshift":"push";st[_t](r.h("div",{key:"markerL",class:be.value},se()))}return st}return r.onBeforeUnmount(()=>{document.removeEventListener("mouseup",Ne,!0)}),{state:{active:v,focus:p,preventFocus:b,dragging:_,editable:x,classes:Y,tabindex:L,attributes:F,roundValueFn:y,keyStep:q,trackLen:k,innerMin:w,innerMinRatio:ee,innerMax:T,innerMaxRatio:N,positionProp:I,sizeProp:$,isReversed:C},methods:{onActivate:ge,onMobileClick:Be,onBlur:ue,onKeyup:dt,getContent:Ce,getThumbRenderFn:fe,convertRatioToModel:Oe,convertModelToRatio:Le,getDraggingRatio:le}}}var X_=()=>({}),Eo=_e({name:"QSlider",props:{...wv,modelValue:{required:!0,default:null,validator:e=>typeof e=="number"||e===null},labelValue:[String,Number]},emits:Cv,setup(e,{emit:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),{state:o,methods:a}=xv({updateValue:g,updatePosition:C,getDragging:E,formAttrs:la(e)}),i=r.ref(null),l=r.ref(0),s=r.ref(0);function d(){s.value=e.modelValue===null?o.innerMin.value:Mt(e.modelValue,o.innerMin.value,o.innerMax.value)}r.watch(()=>`${e.modelValue}|${o.innerMin.value}|${o.innerMax.value}`,d),d();const m=r.computed(()=>a.convertModelToRatio(s.value)),v=r.computed(()=>o.active.value===!0?l.value:m.value),b=r.computed(()=>{const x={[o.positionProp.value]:`${100*o.innerMinRatio.value}%`,[o.sizeProp.value]:`${100*(v.value-o.innerMinRatio.value)}%`};return e.selectionImg!==void 0&&(x.backgroundImage=`url(${e.selectionImg}) !important`),x}),p=a.getThumbRenderFn({focusValue:!0,getNodeData:X_,ratio:v,label:r.computed(()=>e.labelValue!==void 0?e.labelValue:s.value),thumbColor:r.computed(()=>e.thumbColor||e.color),labelColor:r.computed(()=>e.labelColor),labelTextColor:r.computed(()=>e.labelTextColor)}),_=r.computed(()=>o.editable.value!==!0?{}:n.platform.is.mobile===!0?{onClick:a.onMobileClick}:{onMousedown:a.onActivate,onFocus:w,onBlur:a.onBlur,onKeydown:T,onKeyup:a.onKeyup});function g(x){s.value!==e.modelValue&&t("update:modelValue",s.value),x===!0&&t("change",s.value)}function E(){return i.value.getBoundingClientRect()}function C(x,y=o.dragging.value){const q=a.getDraggingRatio(x,y);s.value=a.convertRatioToModel(q),l.value=e.snap!==!0||e.step===0?q:a.convertModelToRatio(s.value)}function w(){o.focus.value=!0}function T(x){if(Zs.includes(x.keyCode)===!1)return;ct(x);const y=([34,33].includes(x.keyCode)?10:1)*o.keyStep.value,q=([34,37,40].includes(x.keyCode)?-1:1)*(o.isReversed.value===!0?-1:1)*(e.vertical===!0?-1:1)*y;s.value=Mt(o.roundValueFn.value(s.value+q),o.innerMin.value,o.innerMax.value),g()}return()=>{const x=a.getContent(b,o.tabindex,_,y=>{y.push(p())});return r.h("div",{ref:i,class:o.classes.value+(e.modelValue===null?" q-slider--no-value":""),...o.attributes.value,"aria-valuenow":e.modelValue},x)}}});function kv(){const e=r.ref(!On.value);return e.value===!1&&r.onMounted(()=>{e.value=!0}),{isHydrated:e}}var Ev=typeof ResizeObserver<"u",Tv=Ev===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"},Wr=_e({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(e,{emit:t}){let n=null,o,a={width:-1,height:-1};function i(d){d===!0||e.debounce===0||e.debounce==="0"?l():n===null&&(n=setTimeout(l,e.debounce))}function l(){if(n!==null&&(clearTimeout(n),n=null),o){const{offsetWidth:d,offsetHeight:m}=o;(d!==a.width||m!==a.height)&&(a={width:d,height:m},t("resize",a))}}const{proxy:s}=r.getCurrentInstance();if(s.trigger=i,Ev===!0){let d;const m=v=>{o=s.$el.parentNode,o?(d=new ResizeObserver(i),d.observe(o),l()):v!==!0&&r.nextTick(()=>{m(!0)})};return r.onMounted(()=>{m()}),r.onBeforeUnmount(()=>{n!==null&&clearTimeout(n),d!==void 0&&(d.disconnect!==void 0?d.disconnect():o&&d.unobserve(o))}),Kt}else{let d=function(){n!==null&&(clearTimeout(n),n=null),b!==void 0&&(b.removeEventListener!==void 0&&b.removeEventListener("resize",i,Rt.passive),b=void 0)},m=function(){d(),o?.contentDocument&&(b=o.contentDocument.defaultView,b.addEventListener("resize",i,Rt.passive),l())};const{isHydrated:v}=kv();let b;return r.onMounted(()=>{r.nextTick(()=>{o=s.$el,o&&m()})}),r.onBeforeUnmount(d),()=>{if(v.value===!0)return r.h("object",{class:"q--avoid-card-border",style:Tv.style,tabindex:-1,type:"text/html",data:Tv.url,"aria-hidden":"true",onLoad:m})}}}}),da=!1;if(!__QUASAR_SSR__){const e=document.createElement("div");e.setAttribute("dir","rtl"),Object.assign(e.style,{width:"1px",height:"1px",overflow:"auto"});const t=document.createElement("div");Object.assign(t.style,{width:"1000px",height:"1px"}),document.body.appendChild(e),e.appendChild(t),e.scrollLeft=-1e3,da=e.scrollLeft>=0,e.remove()}function J_(e,t,n){const o=n===!0?["left","right"]:["top","bottom"];return`absolute-${t===!0?o[0]:o[1]}${e?` text-${e}`:""}`}var Z_=["left","center","right","justify"],Ov=_e({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:e=>Z_.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),{$q:a}=o,{registerTick:i}=Co(),{registerTick:l}=Co(),{registerTick:s}=Co(),{registerTimeout:d,removeTimeout:m}=ar(),{registerTimeout:v,removeTimeout:b}=ar(),p=r.ref(null),_=r.ref(null),g=r.ref(e.modelValue),E=r.ref(!1),C=r.ref(!0),w=r.ref(!1),T=r.ref(!1),x=[],y=r.ref(0),q=r.ref(!1);let L=null,k=null,H;const ee=r.computed(()=>({activeClass:e.activeClass,activeColor:e.activeColor,activeBgColor:e.activeBgColor,indicatorClass:J_(e.indicatorColor,e.switchIndicator,e.vertical),narrowIndicator:e.narrowIndicator,inlineLabel:e.inlineLabel,noCaps:e.noCaps})),N=r.computed(()=>{const se=y.value,Se=g.value;for(let Te=0;Te<se;Te++)if(x[Te].name.value===Se)return!0;return!1}),I=r.computed(()=>`q-tabs__content--align-${E.value===!0?"left":T.value===!0?"justify":e.align}`),$=r.computed(()=>`q-tabs row no-wrap items-center q-tabs--${E.value===!0?"":"not-"}scrollable q-tabs--${e.vertical===!0?"vertical":"horizontal"} q-tabs__arrows--${e.outsideArrows===!0?"outside":"inside"} q-tabs--mobile-with${e.mobileArrows===!0?"":"out"}-arrows`+(e.dense===!0?" q-tabs--dense":"")+(e.shrink===!0?" col-shrink":"")+(e.stretch===!0?" self-stretch":"")),D=r.computed(()=>"q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position "+I.value+(e.contentClass!==void 0?` ${e.contentClass}`:"")),P=r.computed(()=>e.vertical===!0?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}),F=r.computed(()=>e.vertical!==!0&&a.lang.rtl===!0),Y=r.computed(()=>da===!1&&F.value===!0);r.watch(F,R),r.watch(()=>e.modelValue,se=>{X({name:se,setCurrent:!0,skipEmit:!0})}),r.watch(()=>e.outsideArrows,Z);function X({name:se,setCurrent:Se,skipEmit:Te}){g.value!==se&&(Te!==!0&&e["onUpdate:modelValue"]!==void 0&&n("update:modelValue",se),(Se===!0||e["onUpdate:modelValue"]===void 0)&&(Ee(g.value,se),g.value=se))}function Z(){i(()=>{p.value&&ce({width:p.value.offsetWidth,height:p.value.offsetHeight})})}function ce(se){if(P.value===void 0||_.value===null)return;const Se=se[P.value.container],Te=Math.min(_.value[P.value.scroll],Array.prototype.reduce.call(_.value.children,(ge,Ne)=>ge+(Ne[P.value.content]||0),0)),ue=Se>0&&Te>Se;E.value=ue,ue===!0&&l(R),T.value=Se<parseInt(e.breakpoint,10)}function Ee(se,Se){const Te=se!=null&&se!==""?x.find(ge=>ge.name.value===se):null,ue=Se!=null&&Se!==""?x.find(ge=>ge.name.value===Se):null;if(oe===!0)oe=!1;else if(Te&&ue){const ge=Te.tabIndicatorRef.value,Ne=ue.tabIndicatorRef.value;L!==null&&(clearTimeout(L),L=null),ge.style.transition="none",ge.style.transform="none",Ne.style.transition="none",Ne.style.transform="none";const Be=ge.getBoundingClientRect(),dt=Ne.getBoundingClientRect();Ne.style.transform=e.vertical===!0?`translate3d(0,${Be.top-dt.top}px,0) scale3d(1,${dt.height?Be.height/dt.height:1},1)`:`translate3d(${Be.left-dt.left}px,0,0) scale3d(${dt.width?Be.width/dt.width:1},1,1)`,s(()=>{L=setTimeout(()=>{L=null,Ne.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",Ne.style.transform="none"},70)})}ue&&E.value===!0&&G(ue.rootRef.value)}function G(se){const{left:Se,width:Te,top:ue,height:ge}=_.value.getBoundingClientRect(),Ne=se.getBoundingClientRect();let Be=e.vertical===!0?Ne.top-ue:Ne.left-Se;if(Be<0){_.value[e.vertical===!0?"scrollTop":"scrollLeft"]+=Math.floor(Be),R();return}Be+=e.vertical===!0?Ne.height-ge:Ne.width-Te,Be>0&&(_.value[e.vertical===!0?"scrollTop":"scrollLeft"]+=Math.ceil(Be),R())}function R(){const se=_.value;if(se===null)return;const Se=se.getBoundingClientRect(),Te=e.vertical===!0?se.scrollTop:Math.abs(se.scrollLeft);F.value===!0?(C.value=Math.ceil(Te+Se.width)<se.scrollWidth-1,w.value=Te>0):(C.value=Te>0,w.value=e.vertical===!0?Math.ceil(Te+Se.height)<se.scrollHeight:Math.ceil(Te+Se.width)<se.scrollWidth)}function ae(se){k!==null&&clearInterval(k),k=setInterval(()=>{Q(se)===!0&&W()},5)}function J(){ae(Y.value===!0?Number.MAX_SAFE_INTEGER:0)}function be(){ae(Y.value===!0?0:Number.MAX_SAFE_INTEGER)}function W(){k!==null&&(clearInterval(k),k=null)}function ne(se,Se){const Te=Array.prototype.filter.call(_.value.children,dt=>dt===Se||dt.matches&&dt.matches(".q-tab.q-focusable")===!0),ue=Te.length;if(ue===0)return;if(se===36)return G(Te[0]),Te[0].focus(),!0;if(se===35)return G(Te[ue-1]),Te[ue-1].focus(),!0;const ge=se===(e.vertical===!0?38:37),Ne=se===(e.vertical===!0?40:39),Be=ge===!0?-1:Ne===!0?1:void 0;if(Be!==void 0){const dt=F.value===!0?-1:1,ut=Te.indexOf(Se)+Be*dt;return ut>=0&&ut<ue&&(G(Te[ut]),Te[ut].focus({preventScroll:!0})),!0}}const we=r.computed(()=>Y.value===!0?{get:se=>Math.abs(se.scrollLeft),set:(se,Se)=>{se.scrollLeft=-Se}}:e.vertical===!0?{get:se=>se.scrollTop,set:(se,Se)=>{se.scrollTop=Se}}:{get:se=>se.scrollLeft,set:(se,Se)=>{se.scrollLeft=Se}});function Q(se){const Se=_.value,{get:Te,set:ue}=we.value;let ge=!1,Ne=Te(Se);const Be=se<Ne?-1:1;return Ne+=Be*5,Ne<0?(ge=!0,Ne=0):(Be===-1&&Ne<=se||Be===1&&Ne>=se)&&(ge=!0,Ne=se),ue(Se,Ne),R(),ge}function Oe(se,Se){for(const Te in se)if(se[Te]!==Se[Te])return!1;return!0}function Le(){let se=null,Se={matchedLen:0,queryDiff:9999,hrefLen:0};const Te=x.filter(Be=>Be.routeData?.hasRouterLink.value===!0),{hash:ue,query:ge}=o.$route,Ne=Object.keys(ge).length;for(const Be of Te){const dt=Be.routeData.exact.value===!0;if(Be.routeData[dt===!0?"linkIsExactActive":"linkIsActive"].value!==!0)continue;const{hash:ut,query:fe,matched:Ce,href:de}=Be.routeData.resolvedLink.value,xe=Object.keys(fe).length;if(dt===!0){if(ut!==ue||xe!==Ne||Oe(ge,fe)===!1)continue;se=Be.name.value;break}if(ut!==""&&ut!==ue||xe!==0&&Oe(fe,ge)===!1)continue;const ze={matchedLen:Ce.length,queryDiff:Ne-xe,hrefLen:de.length-ut.length};if(ze.matchedLen>Se.matchedLen){se=Be.name.value,Se=ze;continue}else if(ze.matchedLen!==Se.matchedLen)continue;if(ze.queryDiff<Se.queryDiff)se=Be.name.value,Se=ze;else if(ze.queryDiff!==Se.queryDiff)continue;ze.hrefLen>Se.hrefLen&&(se=Be.name.value,Se=ze)}if(se===null&&x.some(Be=>Be.routeData===void 0&&Be.name.value===g.value)===!0){oe=!1;return}X({name:se,setCurrent:!0})}function le(se){if(m(),q.value!==!0&&p.value!==null&&se.target&&typeof se.target.closest=="function"){const Se=se.target.closest(".q-tab");Se&&p.value.contains(Se)===!0&&(q.value=!0,E.value===!0&&G(Se))}}function qe(){d(()=>{q.value=!1},30)}function Re(){z.avoidRouteWatcher===!1?v(Le):b()}function Fe(){if(H===void 0){const se=r.watch(()=>o.$route.fullPath,Re);H=()=>{se(),H=void 0}}}function He(se){x.push(se),y.value++,Z(),se.routeData===void 0||o.$route===void 0?v(()=>{if(E.value===!0){const Se=g.value,Te=Se!=null&&Se!==""?x.find(ue=>ue.name.value===Se):null;Te&&G(Te.rootRef.value)}}):(Fe(),se.routeData.hasRouterLink.value===!0&&Re())}function ke(se){x.splice(x.indexOf(se),1),y.value--,Z(),H!==void 0&&se.routeData!==void 0&&(x.every(Se=>Se.routeData===void 0)===!0&&H(),Re())}const z={currentModel:g,tabProps:ee,hasFocus:q,hasActiveTab:N,registerTab:He,unregisterTab:ke,verifyRouteModel:Re,updateModel:X,onKbdNavigate:ne,avoidRouteWatcher:!1};r.provide(_f,z);function K(){L!==null&&clearTimeout(L),W(),H?.()}let ve,oe;return r.onBeforeUnmount(K),r.onDeactivated(()=>{ve=H!==void 0,K()}),r.onActivated(()=>{ve===!0&&(Fe(),oe=!0,Re()),Z()}),()=>r.h("div",{ref:p,class:$.value,role:"tablist",onFocusin:le,onFocusout:qe},[r.h(Wr,{onResize:ce}),r.h("div",{ref:_,class:D.value,onScroll:R},Ke(t.default)),r.h(wt,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(C.value===!0?"":" q-tabs__arrow--faded"),name:e.leftIcon||a.iconSet.tabs[e.vertical===!0?"up":"left"],onMousedownPassive:J,onTouchstartPassive:J,onMouseupPassive:W,onMouseleavePassive:W,onTouchendPassive:W}),r.h(wt,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(w.value===!0?"":" q-tabs__arrow--faded"),name:e.rightIcon||a.iconSet.tabs[e.vertical===!0?"down":"right"],onMousedownPassive:be,onTouchstartPassive:be,onMouseupPassive:W,onMouseleavePassive:W,onTouchendPassive:W})])}}),V_=0,qv=["click","keydown"],Mv={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${V_++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function Pv(e,t,n,o){const a=r.inject(_f,kt);if(a===kt)return console.error("QTab/QRouteTab component needs to be child of QTabs"),kt;const{proxy:i}=r.getCurrentInstance(),l=r.ref(null),s=r.ref(null),d=r.ref(null),m=r.computed(()=>e.disable===!0||e.ripple===!1?!1:Object.assign({keyCodes:[13,32],early:!0},e.ripple===!0?{}:e.ripple)),v=r.computed(()=>a.currentModel.value===e.name),b=r.computed(()=>"q-tab relative-position self-stretch flex flex-center text-center"+(v.value===!0?" q-tab--active"+(a.tabProps.value.activeClass?" "+a.tabProps.value.activeClass:"")+(a.tabProps.value.activeColor?` text-${a.tabProps.value.activeColor}`:"")+(a.tabProps.value.activeBgColor?` bg-${a.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(e.icon&&e.label&&a.tabProps.value.inlineLabel===!1?" q-tab--full":"")+(e.noCaps===!0||a.tabProps.value.noCaps===!0?" q-tab--no-caps":"")+(e.disable===!0?" disabled":" q-focusable q-hoverable cursor-pointer")+(o!==void 0?o.linkClass.value:"")),p=r.computed(()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(a.tabProps.value.inlineLabel===!0?"row no-wrap q-tab__content--inline":"column")+(e.contentClass!==void 0?` ${e.contentClass}`:"")),_=r.computed(()=>e.disable===!0||a.hasFocus.value===!0||v.value===!1&&a.hasActiveTab.value===!0?-1:e.tabindex||0);function g(x,y){if(y!==!0&&x?.qAvoidFocus!==!0&&l.value?.focus(),e.disable===!0){o?.hasRouterLink.value===!0&&ct(x);return}if(o===void 0){a.updateModel({name:e.name}),n("click",x);return}if(o.hasRouterLink.value===!0){const q=(L={})=>{let k;const H=L.to===void 0||$n(L.to,e.to)===!0?a.avoidRouteWatcher=ia():null;return o.navigateToRouterLink(x,{...L,returnRouterError:!0}).catch(ee=>{k=ee}).then(ee=>{if(H===a.avoidRouteWatcher&&(a.avoidRouteWatcher=!1,k===void 0&&(ee===void 0||ee.message?.startsWith("Avoided redundant navigation")===!0)&&a.updateModel({name:e.name})),L.returnRouterError===!0)return k!==void 0?Promise.reject(k):ee})};n("click",x,q),x.defaultPrevented!==!0&&q();return}n("click",x)}function E(x){qn(x,[13,32])?g(x,!0):Nr(x)!==!0&&x.keyCode>=35&&x.keyCode<=40&&x.altKey!==!0&&x.metaKey!==!0&&a.onKbdNavigate(x.keyCode,i.$el)===!0&&ct(x),n("keydown",x)}function C(){const x=a.tabProps.value.narrowIndicator,y=[],q=r.h("div",{ref:d,class:["q-tab__indicator",a.tabProps.value.indicatorClass]});e.icon!==void 0&&y.push(r.h(wt,{class:"q-tab__icon",name:e.icon})),e.label!==void 0&&y.push(r.h("div",{class:"q-tab__label"},e.label)),e.alert!==!1&&y.push(e.alertIcon!==void 0?r.h(wt,{class:"q-tab__alert-icon",color:e.alert!==!0?e.alert:void 0,name:e.alertIcon}):r.h("div",{class:"q-tab__alert"+(e.alert!==!0?` text-${e.alert}`:"")})),x===!0&&y.push(q);const L=[r.h("div",{class:"q-focus-helper",tabindex:-1,ref:l}),r.h("div",{class:p.value},Ht(t.default,y))];return x===!1&&L.push(q),L}const w={name:r.computed(()=>e.name),rootRef:s,tabIndicatorRef:d,routeData:o};r.onBeforeUnmount(()=>{a.unregisterTab(w)}),r.onMounted(()=>{a.registerTab(w)});function T(x,y){const q={ref:s,class:b.value,tabindex:_.value,role:"tab","aria-selected":v.value===!0?"true":"false","aria-disabled":e.disable===!0?"true":void 0,onClick:g,onKeydown:E,...y};return r.withDirectives(r.h(x,q,C()),[[di,m.value]])}return{renderTab:T,$tabs:a}}var fa=_e({name:"QTab",props:Mv,emits:qv,setup(e,{slots:t,emit:n}){const{renderTab:o}=Pv(e,t,n);return()=>o("div")}}),eS=_e({name:"QTabPanels",props:{...js,...bt},emits:Us,setup(e,{slots:t}){const n=r.getCurrentInstance(),o=yt(e,n.proxy.$q),{updatePanelsList:a,getPanelContent:i,panelDirectives:l}=Qs(),s=r.computed(()=>"q-tab-panels q-panel-parent"+(o.value===!0?" q-tab-panels--dark q-dark":""));return()=>(a(t),Mn("div",{class:s.value},i(),"pan",e.swipeable,()=>l.value))}}),Vs=_e({name:"QTabPanel",props:Hs,setup(e,{slots:t}){return()=>r.h("div",{class:"q-tab-panel",role:"tabpanel"},Ke(t.default))}}),Av=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,Rv=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,Lv=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,qi=/^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])\)$/,Mi=/^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)\)$/,Pi={date:e=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(e),time:e=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(e),fulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(e),timeOrFulltime:e=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(e),email:e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),hexColor:e=>Av.test(e),hexaColor:e=>Rv.test(e),hexOrHexaColor:e=>Lv.test(e),rgbColor:e=>qi.test(e),rgbaColor:e=>Mi.test(e),rgbOrRgbaColor:e=>qi.test(e)||Mi.test(e),hexOrRgbColor:e=>Av.test(e)||qi.test(e),hexaOrRgbaColor:e=>Rv.test(e)||Mi.test(e),anyColor:e=>Lv.test(e)||qi.test(e)||Mi.test(e)},tS=/^rgb(a)?\((\d{1,3}),(\d{1,3}),(\d{1,3}),?([01]?\.?\d*?)?\)$/;function Iv({r:e,g:t,b:n,a:o}){const a=o!==void 0;if(e=Math.round(e),t=Math.round(t),n=Math.round(n),e>255||t>255||n>255||a&&o>100)throw new TypeError("Expected 3 numbers below 256 (and optionally one below 100)");return o=a?(Math.round(255*o/100)|256).toString(16).slice(1):"","#"+(n|t<<8|e<<16|1<<24).toString(16).slice(1)+o}function Nv({r:e,g:t,b:n,a:o}){return`rgb${o!==void 0?"a":""}(${e},${t},${n}${o!==void 0?","+o/100:""})`}function Dv(e){if(typeof e!="string")throw new TypeError("Expected a string");e=e.replace(/^#/,""),e.length===3?e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e.length===4&&(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((t&255)/2.55)}:{r:t>>16,g:t>>8&255,b:t&255}}function $v({h:e,s:t,v:n,a:o}){let a,i,l;t=t/100,n=n/100,e=e/360;const s=Math.floor(e*6),d=e*6-s,m=n*(1-t),v=n*(1-d*t),b=n*(1-(1-d)*t);switch(s%6){case 0:a=n,i=b,l=m;break;case 1:a=v,i=n,l=m;break;case 2:a=m,i=n,l=b;break;case 3:a=m,i=v,l=n;break;case 4:a=b,i=m,l=n;break;case 5:a=n,i=m,l=v;break}return{r:Math.round(a*255),g:Math.round(i*255),b:Math.round(l*255),a:o}}function eu({r:e,g:t,b:n,a:o}){const a=Math.max(e,t,n),i=Math.min(e,t,n),l=a-i,s=a===0?0:l/a,d=a/255;let m;switch(a){case i:m=0;break;case e:m=t-n+l*(t<n?6:0),m/=6*l;break;case t:m=n-e+l*2,m/=6*l;break;case n:m=e-t+l*4,m/=6*l;break}return{h:Math.round(m*360),s:Math.round(s*100),v:Math.round(d*100),a:o}}function Fv(e){if(typeof e!="string")throw new TypeError("Expected a string");const t=e.replace(/ /g,""),n=tS.exec(t);if(n===null)return Dv(t);const o={r:Math.min(255,parseInt(n[2],10)),g:Math.min(255,parseInt(n[3],10)),b:Math.min(255,parseInt(n[4],10))};if(n[1]){const a=parseFloat(n[5]);o.a=Math.min(1,isNaN(a)===!0?1:a)*100}return o}function nS(e){if(typeof e!="string"&&(!e||e.r===void 0))throw new TypeError("Expected a string or a {r, g, b} object as color");const t=typeof e=="string"?Fv(e):e,n=t.r/255,o=t.g/255,a=t.b/255,i=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4),l=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),s=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4);return .2126*i+.7152*l+.0722*s}var rS=["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)"],Bv="M5 5 h10 v10 h-10 v-10 z",oS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAH0lEQVQoU2NkYGAwZkAFZ5G5jPRRgOYEVDeB3EBjBQBOZwTVugIGyAAAAABJRU5ErkJggg==";_e({name:"QColor",props:{...bt,...An,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(e,{emit:t}){const{proxy:n}=r.getCurrentInstance(),{$q:o}=n,a=yt(e,o),{getCache:i}=sa(),l=r.ref(null),s=r.ref(null),d=r.computed(()=>e.formatModel==="auto"?null:e.formatModel.indexOf("hex")!==-1),m=r.computed(()=>e.formatModel==="auto"?null:e.formatModel.indexOf("a")!==-1),v=r.ref(e.formatModel==="auto"?e.modelValue===void 0||e.modelValue===null||e.modelValue===""||e.modelValue.startsWith("#")?"hex":"rgb":e.formatModel.startsWith("hex")?"hex":"rgb"),b=r.ref(e.defaultView),p=r.ref($(e.modelValue||e.defaultValue)),_=r.computed(()=>e.disable!==!0&&e.readonly!==!0),g=r.computed(()=>e.modelValue===void 0||e.modelValue===null||e.modelValue===""||e.modelValue.startsWith("#")),E=r.computed(()=>d.value!==null?d.value:g.value),C=r.computed(()=>({type:"hidden",name:e.name,value:p.value[E.value===!0?"hex":"rgb"]})),w=pr(C),T=r.computed(()=>m.value!==null?m.value:p.value.a!==void 0),x=r.computed(()=>({backgroundColor:p.value.rgb||"#000"})),y=r.computed(()=>`q-color-picker__header-content q-color-picker__header-content--${(p.value.a!==void 0&&p.value.a<65?!0:nS(p.value)>.4)?"light":"dark"}`),q=r.computed(()=>({background:`hsl(${p.value.h},100%,50%)`})),L=r.computed(()=>({top:`${100-p.value.v}%`,[o.lang.rtl===!0?"right":"left"]:`${p.value.s}%`})),k=r.computed(()=>e.palette!==void 0&&e.palette.length!==0?e.palette:rS),H=r.computed(()=>"q-color-picker"+(e.bordered===!0?" q-color-picker--bordered":"")+(e.square===!0?" q-color-picker--square no-border-radius":"")+(e.flat===!0?" q-color-picker--flat no-shadow":"")+(e.disable===!0?" disabled":"")+(a.value===!0?" q-color-picker--dark q-dark":"")),ee=r.computed(()=>e.disable===!0?{"aria-disabled":"true"}:{}),N=r.computed(()=>[[Rn,ce,void 0,{prevent:!0,stop:!0,mouse:!0}]]);r.watch(()=>e.modelValue,le=>{const qe=$(le||e.defaultValue);qe.hex!==p.value.hex&&(p.value=qe)}),r.watch(()=>e.defaultValue,le=>{if(!e.modelValue&&le){const qe=$(le);qe.hex!==p.value.hex&&(p.value=qe)}});function I(le,qe){p.value.hex=Iv(le),p.value.rgb=Nv(le),p.value.r=le.r,p.value.g=le.g,p.value.b=le.b,p.value.a=le.a;const Re=p.value[E.value===!0?"hex":"rgb"];t("update:modelValue",Re),qe===!0&&t("change",Re)}function $(le){const qe=m.value!==void 0?m.value:e.formatModel==="auto"?null:e.formatModel.indexOf("a")!==-1;if(typeof le!="string"||le.length===0||Pi.anyColor(le.replace(/ /g,""))!==!0)return{h:0,s:0,v:0,r:0,g:0,b:0,a:qe===!0?100:void 0,hex:void 0,rgb:void 0};const Re=Fv(le);return qe===!0&&Re.a===void 0&&(Re.a=100),Re.hex=Iv(Re),Re.rgb=Nv(Re),Object.assign(Re,eu(Re))}function D(le,qe,Re){const Fe=l.value;if(Fe===null)return;const He=Fe.clientWidth,ke=Fe.clientHeight,z=Fe.getBoundingClientRect();let K=Math.min(He,Math.max(0,le-z.left));o.lang.rtl===!0&&(K=He-K);const ve=Math.min(ke,Math.max(0,qe-z.top)),oe=Math.round(100*K/He),se=Math.round(100*Math.max(0,Math.min(1,-(ve/ke)+1))),Se=$v({h:p.value.h,s:oe,v:se,a:T.value===!0?p.value.a:void 0});p.value.s=oe,p.value.v=se,I(Se,Re)}function P(le,qe){const Re=Math.round(le),Fe=$v({h:Re,s:p.value.s,v:p.value.v,a:T.value===!0?p.value.a:void 0});p.value.h=Re,I(Fe,qe)}function F(le){P(le,!0)}function Y(le,qe,Re,Fe,He){if(Fe!==void 0&&$t(Fe),!/^[0-9]+$/.test(le)){He===!0&&n.$forceUpdate();return}const ke=Math.floor(Number(le));if(ke<0||ke>Re){He===!0&&n.$forceUpdate();return}const z={r:qe==="r"?ke:p.value.r,g:qe==="g"?ke:p.value.g,b:qe==="b"?ke:p.value.b,a:T.value===!0?qe==="a"?ke:p.value.a:void 0};if(qe!=="a"){const K=eu(z);p.value.h=K.h,p.value.s=K.s,p.value.v=K.v}if(I(z,He),He!==!0&&Fe?.target.selectionEnd!==void 0){const K=Fe.target.selectionEnd;r.nextTick(()=>{Fe.target.setSelectionRange(K,K)})}}function X(le,qe){let Re;const Fe=le.target.value;if($t(le),v.value==="hex"){if(Fe.length!==(T.value===!0?9:7)||!/^#[0-9A-Fa-f]+$/.test(Fe))return!0;Re=Dv(Fe)}else{let ke;if(Fe.endsWith(")"))if(T.value!==!0&&Fe.startsWith("rgb(")){if(ke=Fe.substring(4,Fe.length-1).split(",").map(z=>parseInt(z,10)),ke.length!==3||!/^rgb\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3}\)$/.test(Fe))return!0}else if(T.value===!0&&Fe.startsWith("rgba(")){if(ke=Fe.substring(5,Fe.length-1).split(","),ke.length!==4||!/^rgba\([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/.test(Fe))return!0;for(let K=0;K<3;K++){const ve=parseInt(ke[K],10);if(ve<0||ve>255)return!0;ke[K]=ve}const z=parseFloat(ke[3]);if(z<0||z>1)return!0;ke[3]=z}else return!0;else return!0;if(ke[0]<0||ke[0]>255||ke[1]<0||ke[1]>255||ke[2]<0||ke[2]>255||T.value===!0&&(ke[3]<0||ke[3]>1))return!0;Re={r:ke[0],g:ke[1],b:ke[2],a:T.value===!0?ke[3]*100:void 0}}const He=eu(Re);if(p.value.h=He.h,p.value.s=He.s,p.value.v=He.v,I(Re,qe),qe!==!0){const ke=le.target.selectionEnd;r.nextTick(()=>{le.target.setSelectionRange(ke,ke)})}}function Z(le){const qe=$(le),Re={r:qe.r,g:qe.g,b:qe.b,a:qe.a};Re.a===void 0&&(Re.a=p.value.a),p.value.h=qe.h,p.value.s=qe.s,p.value.v=qe.v,I(Re,!0)}function ce(le){le.isFinal?D(le.position.left,le.position.top,!0):Ee(le)}const Ee=$f(le=>{D(le.position.left,le.position.top)},20);function G(le){D(le.pageX-window.pageXOffset,le.pageY-window.pageYOffset,!0)}function R(le){D(le.pageX-window.pageXOffset,le.pageY-window.pageYOffset)}function ae(le){s.value!==null&&(s.value.$el.style.opacity=le?1:0)}function J(le){v.value=le}function be(){const le=[];return e.noHeaderTabs!==!0&&le.push(r.h(Ov,{class:"q-color-picker__header-tabs",modelValue:v.value,dense:!0,align:"justify","onUpdate:modelValue":J},()=>[r.h(fa,{label:"HEX"+(T.value===!0?"A":""),name:"hex",ripple:!1}),r.h(fa,{label:"RGB"+(T.value===!0?"A":""),name:"rgb",ripple:!1})])),le.push(r.h("div",{class:"q-color-picker__header-banner row flex-center no-wrap"},[r.h("input",{class:"fit",value:p.value[v.value],..._.value!==!0?{readonly:!0}:{},...i("topIn",{onInput:qe=>{ae(X(qe)===!0)},onChange:$t,onBlur:qe=>{X(qe,!0)===!0&&n.$forceUpdate(),ae(!1)}})}),r.h(wt,{ref:s,class:"q-color-picker__error-icon absolute no-pointer-events",name:o.iconSet.type.negative})])),r.h("div",{class:"q-color-picker__header relative-position overflow-hidden"},[r.h("div",{class:"q-color-picker__header-bg absolute-full"}),r.h("div",{class:y.value,style:x.value},le)])}function W(){return r.h(eS,{modelValue:b.value,animated:!0},()=>[r.h(Vs,{class:"q-color-picker__spectrum-tab overflow-hidden",name:"spectrum"},Q),r.h(Vs,{class:"q-pa-md q-color-picker__tune-tab",name:"tune"},Oe),r.h(Vs,{class:"q-color-picker__palette-tab",name:"palette"},Le)])}function ne(le){b.value=le}function we(){return r.h("div",{class:"q-color-picker__footer relative-position overflow-hidden"},[r.h(Ov,{class:"absolute-full",modelValue:b.value,dense:!0,align:"justify","onUpdate:modelValue":ne},()=>[r.h(fa,{icon:o.iconSet.colorPicker.spectrum,name:"spectrum",ripple:!1}),r.h(fa,{icon:o.iconSet.colorPicker.tune,name:"tune",ripple:!1}),r.h(fa,{icon:o.iconSet.colorPicker.palette,name:"palette",ripple:!1})])])}function Q(){const le={ref:l,class:"q-color-picker__spectrum non-selectable relative-position cursor-pointer"+(_.value!==!0?" readonly":""),style:q.value,..._.value===!0?{onClick:G,onMousedown:R}:{}},qe=[r.h("div",{style:{paddingBottom:"100%"}}),r.h("div",{class:"q-color-picker__spectrum-white absolute-full"}),r.h("div",{class:"q-color-picker__spectrum-black absolute-full"}),r.h("div",{class:"absolute",style:L.value},[p.value.hex!==void 0?r.h("div",{class:"q-color-picker__spectrum-circle"}):null])],Re=[r.h(Eo,{class:"q-color-picker__hue non-selectable",modelValue:p.value.h,min:0,max:360,trackSize:"8px",innerTrackColor:"transparent",selectionColor:"transparent",readonly:_.value!==!0,thumbPath:Bv,"onUpdate:modelValue":P,onChange:F})];return T.value===!0&&Re.push(r.h(Eo,{class:"q-color-picker__alpha non-selectable",modelValue:p.value.a,min:0,max:100,trackSize:"8px",trackColor:"white",innerTrackColor:"transparent",selectionColor:"transparent",trackImg:oS,readonly:_.value!==!0,hideSelection:!0,thumbPath:Bv,...i("alphaSlide",{"onUpdate:modelValue":Fe=>Y(Fe,"a",100),onChange:Fe=>Y(Fe,"a",100,void 0,!0)})})),[Mn("div",le,qe,"spec",_.value,()=>N.value),r.h("div",{class:"q-color-picker__sliders"},Re)]}function Oe(){return[r.h("div",{class:"row items-center no-wrap"},[r.h("div","R"),r.h(Eo,{modelValue:p.value.r,min:0,max:255,color:"red",dark:a.value,readonly:_.value!==!0,...i("rSlide",{"onUpdate:modelValue":le=>Y(le,"r",255),onChange:le=>Y(le,"r",255,void 0,!0)})}),r.h("input",{value:p.value.r,maxlength:3,readonly:_.value!==!0,onChange:$t,...i("rIn",{onInput:le=>Y(le.target.value,"r",255,le),onBlur:le=>Y(le.target.value,"r",255,le,!0)})})]),r.h("div",{class:"row items-center no-wrap"},[r.h("div","G"),r.h(Eo,{modelValue:p.value.g,min:0,max:255,color:"green",dark:a.value,readonly:_.value!==!0,...i("gSlide",{"onUpdate:modelValue":le=>Y(le,"g",255),onChange:le=>Y(le,"g",255,void 0,!0)})}),r.h("input",{value:p.value.g,maxlength:3,readonly:_.value!==!0,onChange:$t,...i("gIn",{onInput:le=>Y(le.target.value,"g",255,le),onBlur:le=>Y(le.target.value,"g",255,le,!0)})})]),r.h("div",{class:"row items-center no-wrap"},[r.h("div","B"),r.h(Eo,{modelValue:p.value.b,min:0,max:255,color:"blue",readonly:_.value!==!0,dark:a.value,...i("bSlide",{"onUpdate:modelValue":le=>Y(le,"b",255),onChange:le=>Y(le,"b",255,void 0,!0)})}),r.h("input",{value:p.value.b,maxlength:3,readonly:_.value!==!0,onChange:$t,...i("bIn",{onInput:le=>Y(le.target.value,"b",255,le),onBlur:le=>Y(le.target.value,"b",255,le,!0)})})]),T.value===!0?r.h("div",{class:"row items-center no-wrap"},[r.h("div","A"),r.h(Eo,{modelValue:p.value.a,color:"grey",readonly:_.value!==!0,dark:a.value,...i("aSlide",{"onUpdate:modelValue":le=>Y(le,"a",100),onChange:le=>Y(le,"a",100,void 0,!0)})}),r.h("input",{value:p.value.a,maxlength:3,readonly:_.value!==!0,onChange:$t,...i("aIn",{onInput:le=>Y(le.target.value,"a",100,le),onBlur:le=>Y(le.target.value,"a",100,le,!0)})})]):null]}function Le(){const le=qe=>r.h("div",{class:"q-color-picker__cube col-auto",style:{backgroundColor:qe},..._.value===!0?i("palette#"+qe,{onClick:()=>{Z(qe)}}):{}});return[r.h("div",{class:"row items-center q-color-picker__palette-rows"+(_.value===!0?" q-color-picker__palette-rows--editable":"")},k.value.map(le))]}return()=>{const le=[W()];return e.name!==void 0&&e.disable!==!0&&w(le,"push"),e.noHeader!==!0&&le.unshift(be()),e.noFooter!==!0&&le.push(we()),r.h("div",{class:H.value,...ee.value},le)}}});var br=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];function aS(e,t,n){return Object.prototype.toString.call(e)==="[object Date]"&&(n=e.getDate(),t=e.getMonth()+1,e=e.getFullYear()),uS(tu(e,t,n))}function zv(e,t,n){return jv(sS(e,t,n))}function iS(e){return lS(e)===0}function Ai(e,t){return t<=6?31:t<=11||iS(e)?30:29}function lS(e){const t=br.length;let n=br[0],o,a,i,l,s;if(e<n||e>=br[t-1])throw new Error("Invalid Jalaali year "+e);for(s=1;s<t&&(o=br[s],a=o-n,!(e<o));s+=1)n=o;return l=e-n,a-l<6&&(l=l-a+Dt(a+4,33)*33),i=Sn(Sn(l+1,33)-1,4),i===-1&&(i=4),i}function Hv(e,t){const n=br.length,o=e+621;let a=-14,i=br[0],l,s,d,m,v;if(e<i||e>=br[n-1])throw new Error("Invalid Jalaali year "+e);for(v=1;v<n&&(l=br[v],s=l-i,!(e<l));v+=1)a=a+Dt(s,33)*8+Dt(Sn(s,33),4),i=l;m=e-i,a=a+Dt(m,33)*8+Dt(Sn(m,33)+3,4),Sn(s,33)===4&&s-m===4&&(a+=1);const b=Dt(o,4)-Dt((Dt(o,100)+1)*3,4)-150,p=20+a-b;return t||(s-m<6&&(m=m-s+Dt(s+4,33)*33),d=Sn(Sn(m+1,33)-1,4),d===-1&&(d=4)),{leap:d,gy:o,march:p}}function sS(e,t,n){const o=Hv(e,!0);return tu(o.gy,3,o.march)+(t-1)*31-Dt(t,7)*(t-7)+n-1}function uS(e){const t=jv(e).gy;let n=t-621,o,a,i;const l=Hv(n,!1),s=tu(t,3,l.march);if(i=e-s,i>=0){if(i<=185)return a=1+Dt(i,31),o=Sn(i,31)+1,{jy:n,jm:a,jd:o};i-=186}else n-=1,i+=179,l.leap===1&&(i+=1);return a=7+Dt(i,30),o=Sn(i,30)+1,{jy:n,jm:a,jd:o}}function tu(e,t,n){let o=Dt((e+Dt(t-8,6)+100100)*1461,4)+Dt(153*Sn(t+9,12)+2,5)+n-34840408;return o=o-Dt(Dt(e+100100+Dt(t-8,6),100)*3,4)+752,o}function jv(e){let t=4*e+139361631;t=t+Dt(Dt(4*e+183187720,146097)*3,4)*4-3908;const n=Dt(Sn(t,1461),4)*5+308,o=Dt(Sn(n,153),5)+1,a=Sn(Dt(n,153),12)+1;return{gy:Dt(t,1461)-100100+Dt(8-a,6),gm:a,gd:o}}function Dt(e,t){return~~(e/t)}function Sn(e,t){return e-~~(e/t)*t}var cS=["gregorian","persian"],Ri={mask:{type:String},locale:Object,calendar:{type:String,validator:e=>cS.includes(e),default:"gregorian"},landscape:Boolean,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,readonly:Boolean,disable:Boolean},Uv=["update:modelValue"];function ir(e){return e.year+"/"+Ct(e.month)+"/"+Ct(e.day)}function Qv(e,t){const n=r.computed(()=>e.disable!==!0&&e.readonly!==!0),o=r.computed(()=>n.value===!0?0:-1),a=r.computed(()=>{const s=[];return e.color!==void 0&&s.push(`bg-${e.color}`),e.textColor!==void 0&&s.push(`text-${e.textColor}`),s.join(" ")});function i(){return e.locale!==void 0?{...t.lang.date,...e.locale}:t.lang.date}function l(s){const d=new Date,m=s===!0?null:0;if(e.calendar==="persian"){const v=aS(d);return{year:v.jy,month:v.jm,day:v.jd}}return{year:d.getFullYear(),month:d.getMonth()+1,day:d.getDate(),hour:m,minute:m,second:m,millisecond:m}}return{editable:n,tabindex:o,headerClass:a,getLocale:i,getCurrentDate:l}}var Wv=864e5,dS=36e5,nu=6e4,Yv="YYYY-MM-DDTHH:mm:ss.SSSZ",fS=/\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|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,vS=/(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|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,ru={};function mS(e,t){const n="("+t.days.join("|")+")",o=e+n;if(ru[o]!==void 0)return ru[o];const a="("+t.daysShort.join("|")+")",i="("+t.months.join("|")+")",l="("+t.monthsShort.join("|")+")",s={};let d=0;const m=e.replace(vS,b=>{switch(d++,b){case"YY":return s.YY=d,"(-?\\d{1,2})";case"YYYY":return s.YYYY=d,"(-?\\d{1,4})";case"M":return s.M=d,"(\\d{1,2})";case"Mo":return s.M=d++,"(\\d{1,2}(st|nd|rd|th))";case"MM":return s.M=d,"(\\d{2})";case"MMM":return s.MMM=d,l;case"MMMM":return s.MMMM=d,i;case"D":return s.D=d,"(\\d{1,2})";case"Do":return s.D=d++,"(\\d{1,2}(st|nd|rd|th))";case"DD":return s.D=d,"(\\d{2})";case"H":return s.H=d,"(\\d{1,2})";case"HH":return s.H=d,"(\\d{2})";case"h":return s.h=d,"(\\d{1,2})";case"hh":return s.h=d,"(\\d{2})";case"m":return s.m=d,"(\\d{1,2})";case"mm":return s.m=d,"(\\d{2})";case"s":return s.s=d,"(\\d{1,2})";case"ss":return s.s=d,"(\\d{2})";case"S":return s.S=d,"(\\d{1})";case"SS":return s.S=d,"(\\d{2})";case"SSS":return s.S=d,"(\\d{3})";case"A":return s.A=d,"(AM|PM)";case"a":return s.a=d,"(am|pm)";case"aa":return s.aa=d,"(a\\.m\\.|p\\.m\\.)";case"ddd":return a;case"dddd":return n;case"Q":case"d":case"E":return"(\\d{1})";case"do":return d++,"(\\d{1}(st|nd|rd|th))";case"Qo":return"(1st|2nd|3rd|4th)";case"DDD":case"DDDD":return"(\\d{1,3})";case"DDDo":return d++,"(\\d{1,3}(st|nd|rd|th))";case"w":return"(\\d{1,2})";case"wo":return d++,"(\\d{1,2}(st|nd|rd|th))";case"ww":return"(\\d{2})";case"Z":return s.Z=d,"(Z|[+-]\\d{2}:\\d{2})";case"ZZ":return s.ZZ=d,"(Z|[+-]\\d{2}\\d{2})";case"X":return s.X=d,"(-?\\d+)";case"x":return s.x=d,"(-?\\d{4,})";default:return d--,b[0]==="["&&(b=b.substring(1,b.length-1)),b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}),v={map:s,regex:new RegExp("^"+m)};return ru[o]=v,v}function Kv(e,t){return e!==void 0?e:t!==void 0?t.date:hs.date}function Gv(e,t=""){const n=e>0?"-":"+",o=Math.abs(e),a=Math.floor(o/60),i=o%60;return n+Ct(a)+t+Ct(i)}function hS(e,t,n){let o=e.getFullYear(),a=e.getMonth();const i=e.getDate();return t.year!==void 0&&(o+=n*t.year,delete t.year),t.month!==void 0&&(a+=n*t.month,delete t.month),e.setDate(1),e.setMonth(2),e.setFullYear(o),e.setMonth(a),e.setDate(Math.min(i,lu(e))),t.date!==void 0&&(e.setDate(e.getDate()+n*t.date),delete t.date),e}function gS(e,t,n){const o=t.year!==void 0?t.year:e[`get${n}FullYear`](),a=t.month!==void 0?t.month-1:e[`get${n}Month`](),i=new Date(o,a+1,0).getDate(),l=Math.min(i,t.date!==void 0?t.date:e[`get${n}Date`]());return e[`set${n}Date`](1),e[`set${n}Month`](2),e[`set${n}FullYear`](o),e[`set${n}Month`](a),e[`set${n}Date`](l),delete t.year,delete t.month,delete t.date,e}function ou(e,t,n){const o=Xv(t),a=new Date(e),i=o.year!==void 0||o.month!==void 0||o.date!==void 0?hS(a,o,n):a;for(const l in o){const s=Uy(l);i[`set${s}`](i[`get${s}`]()+n*o[l])}return i}function Xv(e){const t={...e};return e.years!==void 0&&(t.year=e.years,delete t.years),e.months!==void 0&&(t.month=e.months,delete t.months),e.days!==void 0&&(t.date=e.days,delete t.days),e.day!==void 0&&(t.date=e.day,delete t.day),e.hour!==void 0&&(t.hours=e.hour,delete t.hour),e.minute!==void 0&&(t.minutes=e.minute,delete t.minute),e.second!==void 0&&(t.seconds=e.second,delete t.second),e.millisecond!==void 0&&(t.milliseconds=e.millisecond,delete t.millisecond),t}function Jv(e,t,n){const o=Xv(t),a=n===!0?"UTC":"",i=new Date(e),l=o.year!==void 0||o.month!==void 0||o.date!==void 0?gS(i,o,a):i;for(const s in o){const d=s.charAt(0).toUpperCase()+s.slice(1);l[`set${a}${d}`](o[s])}return l}function pS(e,t,n){const o=To(e,t,n),a=new Date(o.year,o.month===null?null:o.month-1,o.day===null?1:o.day,o.hour,o.minute,o.second,o.millisecond),i=a.getTimezoneOffset();return o.timezoneOffset===null||o.timezoneOffset===i?a:ou(a,{minutes:o.timezoneOffset-i},1)}function To(e,t,n,o,a){const i={year:null,month:null,day:null,hour:null,minute:null,second:null,millisecond:null,timezoneOffset:null,dateHash:null,timeHash:null};if(a!==void 0&&Object.assign(i,a),e==null||e===""||typeof e!="string")return i;t===void 0&&(t=Yv);const l=Kv(n,vf.props),s=l.months,d=l.monthsShort,{regex:m,map:v}=mS(t,l),b=e.match(m);if(b===null)return i;let p="";if(v.X!==void 0||v.x!==void 0){const _=parseInt(b[v.X!==void 0?v.X:v.x],10);if(isNaN(_)===!0||_<0)return i;const g=new Date(_*(v.X!==void 0?1e3:1));i.year=g.getFullYear(),i.month=g.getMonth()+1,i.day=g.getDate(),i.hour=g.getHours(),i.minute=g.getMinutes(),i.second=g.getSeconds(),i.millisecond=g.getMilliseconds()}else{if(v.YYYY!==void 0)i.year=parseInt(b[v.YYYY],10);else if(v.YY!==void 0){const _=parseInt(b[v.YY],10);i.year=_<0?_:2e3+_}if(v.M!==void 0){if(i.month=parseInt(b[v.M],10),i.month<1||i.month>12)return i}else v.MMM!==void 0?i.month=d.indexOf(b[v.MMM])+1:v.MMMM!==void 0&&(i.month=s.indexOf(b[v.MMMM])+1);if(v.D!==void 0){if(i.day=parseInt(b[v.D],10),i.year===null||i.month===null||i.day<1)return i;const _=o!=="persian"?new Date(i.year,i.month,0).getDate():Ai(i.year,i.month);if(i.day>_)return i}v.H!==void 0?i.hour=parseInt(b[v.H],10)%24:v.h!==void 0&&(i.hour=parseInt(b[v.h],10)%12,(v.A&&b[v.A]==="PM"||v.a&&b[v.a]==="pm"||v.aa&&b[v.aa]==="p.m.")&&(i.hour+=12),i.hour=i.hour%24),v.m!==void 0&&(i.minute=parseInt(b[v.m],10)%60),v.s!==void 0&&(i.second=parseInt(b[v.s],10)%60),v.S!==void 0&&(i.millisecond=parseInt(b[v.S],10)*10**(3-b[v.S].length)),(v.Z!==void 0||v.ZZ!==void 0)&&(p=v.Z!==void 0?b[v.Z].replace(":",""):b[v.ZZ],i.timezoneOffset=(p[0]==="+"?-1:1)*(60*p.slice(1,3)+1*p.slice(3,5)))}return i.dateHash=Ct(i.year,4)+"/"+Ct(i.month)+"/"+Ct(i.day),i.timeHash=Ct(i.hour)+":"+Ct(i.minute)+":"+Ct(i.second)+p,i}function bS(e){return typeof e=="number"?!0:isNaN(Date.parse(e))===!1}function yS(e,t){return Jv(new Date,e,t)}function _S(e){const t=new Date(e).getDay();return t===0?7:t}function Li(e){const t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);const n=new Date(t.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);const o=t.getTimezoneOffset()-n.getTimezoneOffset();t.setHours(t.getHours()-o);const a=(t-n)/(Wv*7);return 1+Math.floor(a)}function SS(e){return e.getFullYear()*1e4+e.getMonth()*100+e.getDate()}function au(e,t){const n=new Date(e);return t===!0?SS(n):n.getTime()}function wS(e,t,n,o={}){const a=au(t,o.onlyDate),i=au(n,o.onlyDate),l=au(e,o.onlyDate);return(l>a||o.inclusiveFrom===!0&&l===a)&&(l<i||o.inclusiveTo===!0&&l===i)}function CS(e,t){return ou(e,t,1)}function xS(e,t){return ou(e,t,-1)}function Gn(e,t,n){const o=new Date(e),a=`set${n===!0?"UTC":""}`;switch(t){case"year":case"years":o[`${a}Month`](0);case"month":case"months":o[`${a}Date`](1);case"day":case"days":case"date":o[`${a}Hours`](0);case"hour":case"hours":o[`${a}Minutes`](0);case"minute":case"minutes":o[`${a}Seconds`](0);case"second":case"seconds":o[`${a}Milliseconds`](0)}return o}function kS(e,t,n){const o=new Date(e),a=`set${n===!0?"UTC":""}`;switch(t){case"year":case"years":o[`${a}Month`](11);case"month":case"months":o[`${a}Date`](lu(o));case"day":case"days":case"date":o[`${a}Hours`](23);case"hour":case"hours":o[`${a}Minutes`](59);case"minute":case"minutes":o[`${a}Seconds`](59);case"second":case"seconds":o[`${a}Milliseconds`](999)}return o}function ES(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(n=>{t=Math.max(t,new Date(n))}),t}function TS(e){let t=new Date(e);return Array.prototype.slice.call(arguments,1).forEach(n=>{t=Math.min(t,new Date(n))}),t}function Ii(e,t,n){return(e.getTime()-e.getTimezoneOffset()*nu-(t.getTime()-t.getTimezoneOffset()*nu))/n}function iu(e,t,n="days"){const o=new Date(e),a=new Date(t);switch(n){case"years":case"year":return o.getFullYear()-a.getFullYear();case"months":case"month":return(o.getFullYear()-a.getFullYear())*12+o.getMonth()-a.getMonth();case"days":case"day":case"date":return Ii(Gn(o,"day"),Gn(a,"day"),Wv);case"hours":case"hour":return Ii(Gn(o,"hour"),Gn(a,"hour"),dS);case"minutes":case"minute":return Ii(Gn(o,"minute"),Gn(a,"minute"),nu);case"seconds":case"second":return Ii(Gn(o,"second"),Gn(a,"second"),1e3)}}function Ni(e){return iu(e,Gn(e,"year"),"days")+1}function OS(e){return Vo(e)===!0?"date":typeof e=="number"?"number":"string"}function qS(e,t,n){const o=new Date(e);if(t){const a=new Date(t);if(o<a)return a}if(n){const a=new Date(n);if(o>a)return a}return o}function MS(e,t,n){const o=new Date(e),a=new Date(t);if(n===void 0)return o.getTime()===a.getTime();switch(n){case"second":case"seconds":if(o.getSeconds()!==a.getSeconds())return!1;case"minute":case"minutes":if(o.getMinutes()!==a.getMinutes())return!1;case"hour":case"hours":if(o.getHours()!==a.getHours())return!1;case"day":case"days":case"date":if(o.getDate()!==a.getDate())return!1;case"month":case"months":if(o.getMonth()!==a.getMonth())return!1;case"year":case"years":if(o.getFullYear()!==a.getFullYear())return!1;break;default:throw new Error(`date isSameDate unknown unit ${n}`)}return!0}function lu(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function Oo(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`}var Zv={YY(e,t,n){const o=this.YYYY(e,t,n)%100;return o>=0?Ct(o):"-"+Ct(Math.abs(o))},YYYY(e,t,n){return n??e.getFullYear()},M(e){return e.getMonth()+1},Mo(e){return Oo(e.getMonth()+1)},MM(e){return Ct(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 Oo(this.Q(e))},D(e){return e.getDate()},Do(e){return Oo(e.getDate())},DD(e){return Ct(e.getDate())},DDD(e){return Ni(e)},DDDo(e){return Oo(Ni(e))},DDDD(e){return Ct(Ni(e),3)},d(e){return e.getDay()},do(e){return Oo(e.getDay())},dd(e,t){return t.days[e.getDay()].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 Li(e)},wo(e){return Oo(Li(e))},ww(e){return Ct(Li(e))},H(e){return e.getHours()},HH(e){return Ct(e.getHours())},h(e){const t=e.getHours();return t===0?12:t>12?t%12:t},hh(e){return Ct(this.h(e))},m(e){return e.getMinutes()},mm(e){return Ct(e.getMinutes())},s(e){return e.getSeconds()},ss(e){return Ct(e.getSeconds())},S(e){return Math.floor(e.getMilliseconds()/100)},SS(e){return Ct(Math.floor(e.getMilliseconds()/10))},SSS(e){return Ct(e.getMilliseconds(),3)},A(e){return e.getHours()<12?"AM":"PM"},a(e){return e.getHours()<12?"am":"pm"},aa(e){return e.getHours()<12?"a.m.":"p.m."},Z(e,t,n,o){const a=o??e.getTimezoneOffset();return Gv(a,":")},ZZ(e,t,n,o){const a=o??e.getTimezoneOffset();return Gv(a)},X(e){return Math.floor(e.getTime()/1e3)},x(e){return e.getTime()}};function su(e,t,n,o,a){if(e!==0&&!e||e===1/0||e===-1/0)return;const i=new Date(e);if(isNaN(i))return;t===void 0&&(t=Yv);const l=Kv(n,vf.props);return t.replace(fS,(s,d)=>s in Zv?Zv[s](i,l,o,a):d===void 0?s:d.split("\\]").join("]"))}function PS(e){return Vo(e)===!0?new Date(e.getTime()):e}var uu={isValid:bS,extractDate:pS,buildDate:yS,getDayOfWeek:_S,getWeekOfYear:Li,isBetweenDates:wS,addToDate:CS,subtractFromDate:xS,adjustDate:Jv,startOfDate:Gn,endOfDate:kS,getMaxDate:ES,getMinDate:TS,getDateDiff:iu,getDayOfYear:Ni,inferDateFormat:OS,getDateBetween:qS,isSameDate:MS,daysInMonth:lu,formatDate:su,clone:PS},lr=20,AS=["Calendar","Years","Months"],Vv=e=>AS.includes(e),cu=e=>/^-?[\d]+\/[0-1]\d$/.test(e),qo=" — ";function yr(e){return e.year+"/"+Ct(e.month)}_e({name:"QDate",props:{...Ri,...An,...bt,modelValue:{required:!0,validator:e=>typeof e=="string"||Array.isArray(e)===!0||Object(e)===e||e===null},multiple:Boolean,range:Boolean,title:String,subtitle:String,mask:{...Ri.mask,default:"YYYY/MM/DD"},defaultYearMonth:{type:String,validator:cu},yearsInMonthView:Boolean,events:[Array,Function],eventColor:[String,Function],emitImmediately:Boolean,options:[Array,Function],navigationMinYearMonth:{type:String,validator:cu},navigationMaxYearMonth:{type:String,validator:cu},noUnset:Boolean,firstDayOfWeek:[String,Number],todayBtn:Boolean,minimal:Boolean,defaultView:{type:String,default:"Calendar",validator:Vv}},emits:[...Uv,"rangeStart","rangeEnd","navigation"],setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),{$q:a}=o,i=yt(e,a),{getCache:l}=sa(),{tabindex:s,headerClass:d,getLocale:m,getCurrentDate:v}=Qv(e,a);let b;const p=la(e),_=pr(p),g=r.ref(null),E=r.ref(dt()),C=r.ref(m()),w=r.computed(()=>dt()),T=r.computed(()=>m()),x=r.computed(()=>v()),y=r.ref(fe(E.value,C.value)),q=r.ref(e.defaultView),L=r.computed(()=>a.lang.rtl===!0?"right":"left"),k=r.ref(L.value),H=r.ref(L.value),ee=y.value.year,N=r.ref(ee-ee%lr-(ee<0?lr:0)),I=r.ref(null),$=r.computed(()=>{const U=e.landscape===!0?"landscape":"portrait";return`q-date q-date--${U} q-date--${U}-${e.minimal===!0?"minimal":"standard"}`+(i.value===!0?" q-date--dark q-dark":"")+(e.bordered===!0?" q-date--bordered":"")+(e.square===!0?" q-date--square no-border-radius":"")+(e.flat===!0?" q-date--flat no-shadow":"")+(e.disable===!0?" disabled":e.readonly===!0?" q-date--readonly":"")}),D=r.computed(()=>e.color||"primary"),P=r.computed(()=>e.textColor||"white"),F=r.computed(()=>e.emitImmediately===!0&&e.multiple!==!0&&e.range!==!0),Y=r.computed(()=>Array.isArray(e.modelValue)===!0?e.modelValue:e.modelValue!==null&&e.modelValue!==void 0?[e.modelValue]:[]),X=r.computed(()=>Y.value.filter(U=>typeof U=="string").map(U=>ut(U,E.value,C.value)).filter(U=>U.dateHash!==null&&U.day!==null&&U.month!==null&&U.year!==null)),Z=r.computed(()=>{const U=te=>ut(te,E.value,C.value);return Y.value.filter(te=>dn(te)===!0&&te.from!==void 0&&te.to!==void 0).map(te=>({from:U(te.from),to:U(te.to)})).filter(te=>te.from.dateHash!==null&&te.to.dateHash!==null&&te.from.dateHash<te.to.dateHash)}),ce=r.computed(()=>e.calendar!=="persian"?U=>new Date(U.year,U.month-1,U.day):U=>{const te=zv(U.year,U.month,U.day);return new Date(te.gy,te.gm-1,te.gd)}),Ee=r.computed(()=>e.calendar==="persian"?ir:(U,te,he)=>su(new Date(U.year,U.month-1,U.day,U.hour,U.minute,U.second,U.millisecond),te===void 0?E.value:te,he===void 0?C.value:he,U.year,U.timezoneOffset)),G=r.computed(()=>X.value.length+Z.value.reduce((U,te)=>U+1+iu(ce.value(te.to),ce.value(te.from)),0)),R=r.computed(()=>{if(e.title!==void 0&&e.title!==null&&e.title.length!==0)return e.title;if(I.value!==null){const he=I.value.init,Ie=ce.value(he);return C.value.daysShort[Ie.getDay()]+", "+C.value.monthsShort[he.month-1]+" "+he.day+qo+"?"}if(G.value===0)return qo;if(G.value>1)return`${G.value} ${C.value.pluralDay}`;const U=X.value[0],te=ce.value(U);return isNaN(te.valueOf())===!0?qo:C.value.headerTitle!==void 0?C.value.headerTitle(te,U):C.value.daysShort[te.getDay()]+", "+C.value.monthsShort[U.month-1]+" "+U.day}),ae=r.computed(()=>X.value.concat(Z.value.map(te=>te.from)).sort((te,he)=>te.year-he.year||te.month-he.month)[0]),J=r.computed(()=>X.value.concat(Z.value.map(te=>te.to)).sort((te,he)=>he.year-te.year||he.month-te.month)[0]),be=r.computed(()=>{if(e.subtitle!==void 0&&e.subtitle!==null&&e.subtitle.length!==0)return e.subtitle;if(G.value===0)return qo;if(G.value>1){const U=ae.value,te=J.value,he=C.value.monthsShort;return he[U.month-1]+(U.year!==te.year?" "+U.year+qo+he[te.month-1]+" ":U.month!==te.month?qo+he[te.month-1]:"")+" "+te.year}return X.value[0].year}),W=r.computed(()=>{const U=[a.iconSet.datetime.arrowLeft,a.iconSet.datetime.arrowRight];return a.lang.rtl===!0?U.reverse():U}),ne=r.computed(()=>e.firstDayOfWeek!==void 0?Number(e.firstDayOfWeek):C.value.firstDayOfWeek),we=r.computed(()=>{const U=C.value.daysShort,te=ne.value;return te>0?U.slice(te,7).concat(U.slice(0,te)):U}),Q=r.computed(()=>{const U=y.value;return e.calendar!=="persian"?new Date(U.year,U.month,0).getDate():Ai(U.year,U.month)}),Oe=r.computed(()=>typeof e.eventColor=="function"?e.eventColor:()=>e.eventColor),Le=r.computed(()=>{if(e.navigationMinYearMonth===void 0)return null;const U=e.navigationMinYearMonth.split("/");return{year:parseInt(U[0],10),month:parseInt(U[1],10)}}),le=r.computed(()=>{if(e.navigationMaxYearMonth===void 0)return null;const U=e.navigationMaxYearMonth.split("/");return{year:parseInt(U[0],10),month:parseInt(U[1],10)}}),qe=r.computed(()=>{const U={month:{prev:!0,next:!0},year:{prev:!0,next:!0}};return Le.value!==null&&Le.value.year>=y.value.year&&(U.year.prev=!1,Le.value.year===y.value.year&&Le.value.month>=y.value.month&&(U.month.prev=!1)),le.value!==null&&le.value.year<=y.value.year&&(U.year.next=!1,le.value.year===y.value.year&&le.value.month<=y.value.month&&(U.month.next=!1)),U}),Re=r.computed(()=>{const U={};return X.value.forEach(te=>{const he=yr(te);U[he]===void 0&&(U[he]=[]),U[he].push(te.day)}),U}),Fe=r.computed(()=>{const U={};return Z.value.forEach(te=>{const he=yr(te.from),Ie=yr(te.to);if(U[he]===void 0&&(U[he]=[]),U[he].push({from:te.from.day,to:he===Ie?te.to.day:void 0,range:te}),he<Ie){let $e;const{year:vt,month:We}=te.from,nt=We<12?{year:vt,month:We+1}:{year:vt+1,month:1};for(;($e=yr(nt))<=Ie;)U[$e]===void 0&&(U[$e]=[]),U[$e].push({from:void 0,to:$e===Ie?te.to.day:void 0,range:te}),nt.month++,nt.month>12&&(nt.year++,nt.month=1)}}),U}),He=r.computed(()=>{if(I.value===null)return;const{init:U,initHash:te,final:he,finalHash:Ie}=I.value,[$e,vt]=te<=Ie?[U,he]:[he,U],We=yr($e),nt=yr(vt);if(We!==ke.value&&nt!==ke.value)return;const mt={};return We===ke.value?(mt.from=$e.day,mt.includeFrom=!0):mt.from=1,nt===ke.value?(mt.to=vt.day,mt.includeTo=!0):mt.to=Q.value,mt}),ke=r.computed(()=>yr(y.value)),z=r.computed(()=>{const U={};if(e.options===void 0){for(let he=1;he<=Q.value;he++)U[he]=!0;return U}const te=typeof e.options=="function"?e.options:he=>e.options.includes(he);for(let he=1;he<=Q.value;he++){const Ie=ke.value+"/"+Ct(he);U[he]=te(Ie)}return U}),K=r.computed(()=>{const U={};if(e.events===void 0)for(let te=1;te<=Q.value;te++)U[te]=!1;else{const te=typeof e.events=="function"?e.events:he=>e.events.includes(he);for(let he=1;he<=Q.value;he++){const Ie=ke.value+"/"+Ct(he);U[he]=te(Ie)===!0&&Oe.value(Ie)}}return U}),ve=r.computed(()=>{let U,te;const{year:he,month:Ie}=y.value;if(e.calendar!=="persian")U=new Date(he,Ie-1,1),te=new Date(he,Ie-1,0).getDate();else{const $e=zv(he,Ie,1);U=new Date($e.gy,$e.gm-1,$e.gd);let vt=Ie-1,We=he;vt===0&&(vt=12,We--),te=Ai(We,vt)}return{days:U.getDay()-ne.value-1,endDay:te}}),oe=r.computed(()=>{const U=[],{days:te,endDay:he}=ve.value,Ie=te<0?te+7:te;if(Ie<6)for(let We=he-Ie;We<=he;We++)U.push({i:We,fill:!0});const $e=U.length;for(let We=1;We<=Q.value;We++){const nt={i:We,event:K.value[We],classes:[]};z.value[We]===!0&&(nt.in=!0,nt.flat=!0),U.push(nt)}if(Re.value[ke.value]!==void 0&&Re.value[ke.value].forEach(We=>{const nt=$e+We-1;Object.assign(U[nt],{selected:!0,unelevated:!0,flat:!1,color:D.value,textColor:P.value})}),Fe.value[ke.value]!==void 0&&Fe.value[ke.value].forEach(We=>{if(We.from!==void 0){const nt=$e+We.from-1,mt=$e+(We.to||Q.value)-1;for(let Ve=nt;Ve<=mt;Ve++)Object.assign(U[Ve],{range:We.range,unelevated:!0,color:D.value,textColor:P.value});Object.assign(U[nt],{rangeFrom:!0,flat:!1}),We.to!==void 0&&Object.assign(U[mt],{rangeTo:!0,flat:!1})}else if(We.to!==void 0){const nt=$e+We.to-1;for(let mt=$e;mt<=nt;mt++)Object.assign(U[mt],{range:We.range,unelevated:!0,color:D.value,textColor:P.value});Object.assign(U[nt],{flat:!1,rangeTo:!0})}else{const nt=$e+Q.value-1;for(let mt=$e;mt<=nt;mt++)Object.assign(U[mt],{range:We.range,unelevated:!0,color:D.value,textColor:P.value})}}),He.value!==void 0){const We=$e+He.value.from-1,nt=$e+He.value.to-1;for(let mt=We;mt<=nt;mt++)U[mt].color=D.value,U[mt].editRange=!0;He.value.includeFrom===!0&&(U[We].editRangeFrom=!0),He.value.includeTo===!0&&(U[nt].editRangeTo=!0)}y.value.year===x.value.year&&y.value.month===x.value.month&&(U[$e+x.value.day-1].today=!0);const vt=U.length%7;if(vt>0){const We=7-vt;for(let nt=1;nt<=We;nt++)U.push({i:nt,fill:!0})}return U.forEach(We=>{let nt="q-date__calendar-item ";We.fill===!0?nt+="q-date__calendar-item--fill":(nt+=`q-date__calendar-item--${We.in===!0?"in":"out"}`,We.range!==void 0&&(nt+=` q-date__range${We.rangeTo===!0?"-to":We.rangeFrom===!0?"-from":""}`),We.editRange===!0&&(nt+=` q-date__edit-range${We.editRangeFrom===!0?"-from":""}${We.editRangeTo===!0?"-to":""}`),(We.range!==void 0||We.editRange===!0)&&(nt+=` text-${We.color}`)),We.classes=nt}),U}),se=r.computed(()=>e.disable===!0?{"aria-disabled":"true"}:{});r.watch(()=>e.modelValue,U=>{if(b===JSON.stringify(U))b=0;else{const te=fe(E.value,C.value);_t(te.year,te.month,te)}}),r.watch(q,()=>{g.value!==null&&o.$el.contains(document.activeElement)===!0&&g.value.focus()}),r.watch(()=>y.value.year+"|"+y.value.month,()=>{n("navigation",{year:y.value.year,month:y.value.month})}),r.watch(w,U=>{De(U,C.value,"mask"),E.value=U}),r.watch(T,U=>{De(E.value,U,"locale"),C.value=U});function Se(U){b=JSON.stringify(U)}function Te(){const{year:U,month:te,day:he}=x.value,Ie={...y.value,year:U,month:te,day:he},$e=Re.value[yr(Ie)];($e===void 0||$e.includes(Ie.day)===!1)&&wn(Ie),Ne(Ie.year,Ie.month)}function ue(U){Vv(U)===!0&&(q.value=U)}function ge(U,te){["month","year"].includes(U)&&(U==="month"?de:xe)(te===!0?-1:1)}function Ne(U,te){q.value="Calendar",_t(U,te)}function Be(U,te){if(e.range===!1||!U){I.value=null;return}const he=Object.assign({...y.value},U),Ie=te!==void 0?Object.assign({...y.value},te):he;I.value={init:he,initHash:ir(he),final:Ie,finalHash:ir(Ie)},Ne(he.year,he.month)}function dt(){return e.calendar==="persian"?"YYYY/MM/DD":e.mask}function ut(U,te,he){return To(U,te,he,e.calendar,{hour:0,minute:0,second:0,millisecond:0})}function fe(U,te){const he=Array.isArray(e.modelValue)===!0?e.modelValue:e.modelValue?[e.modelValue]:[];if(he.length===0)return Ce();const Ie=he[he.length-1],$e=ut(Ie.from!==void 0?Ie.from:Ie,U,te);return $e.dateHash===null?Ce():$e}function Ce(){let U,te;if(e.defaultYearMonth!==void 0){const he=e.defaultYearMonth.split("/");U=parseInt(he[0],10),te=parseInt(he[1],10)}else{const he=x.value!==void 0?x.value:v();U=he.year,te=he.month}return{year:U,month:te,day:1,hour:0,minute:0,second:0,millisecond:0,dateHash:U+"/"+Ct(te)+"/01"}}function de(U){let te=y.value.year,he=Number(y.value.month)+U;he===13?(he=1,te++):he===0&&(he=12,te--),_t(te,he),F.value===!0&&Vt("month")}function xe(U){const te=Number(y.value.year)+U;_t(te,y.value.month),F.value===!0&&Vt("year")}function ze(U){_t(U,y.value.month),q.value=e.defaultView==="Years"?"Months":"Calendar",F.value===!0&&Vt("year")}function rt(U){_t(y.value.year,U),q.value="Calendar",F.value===!0&&Vt("month")}function Ge(U,te){(Re.value[te]?.includes(U.day)===!0?pe:wn)(U)}function st(U){return{year:U.year,month:U.month,day:U.day}}function _t(U,te,he){if(Le.value!==null&&U<=Le.value.year&&((te<Le.value.month||U<Le.value.year)&&(te=Le.value.month),U=Le.value.year),le.value!==null&&U>=le.value.year&&((te>le.value.month||U>le.value.year)&&(te=le.value.month),U=le.value.year),he!==void 0){const{hour:$e,minute:vt,second:We,millisecond:nt,timezoneOffset:mt,timeHash:Ve}=he;Object.assign(y.value,{hour:$e,minute:vt,second:We,millisecond:nt,timezoneOffset:mt,timeHash:Ve})}const Ie=U+"/"+Ct(te)+"/01";Ie!==y.value.dateHash&&(k.value=y.value.dateHash<Ie==(a.lang.rtl!==!0)?"left":"right",U!==y.value.year&&(H.value=k.value),r.nextTick(()=>{N.value=U-U%lr-(U<0?lr:0),Object.assign(y.value,{year:U,month:te,day:1,dateHash:Ie})}))}function Tt(U,te,he){const Ie=U!==null&&U.length===1&&e.multiple===!1?U[0]:U,{reason:$e,details:vt}=Ln(te,he);Se(Ie),n("update:modelValue",Ie,$e,vt)}function Vt(U){const te=X.value[0]!==void 0&&X.value[0].dateHash!==null?{...X.value[0]}:{...y.value};r.nextTick(()=>{te.year=y.value.year,te.month=y.value.month;const he=e.calendar!=="persian"?new Date(te.year,te.month,0).getDate():Ai(te.year,te.month);te.day=Math.min(Math.max(1,te.day),he);const Ie=vn(te),{details:$e}=Ln("",te);Se(Ie),n("update:modelValue",Ie,U,$e)})}function Ln(U,te){return te.from!==void 0?{reason:`${U}-range`,details:{...st(te.target),from:st(te.from),to:st(te.to)}}:{reason:`${U}-day`,details:st(te)}}function vn(U,te,he){return U.from!==void 0?{from:Ee.value(U.from,te,he),to:Ee.value(U.to,te,he)}:Ee.value(U,te,he)}function wn(U){let te;if(e.multiple===!0)if(U.from!==void 0){const he=ir(U.from),Ie=ir(U.to),$e=X.value.filter(We=>We.dateHash<he||We.dateHash>Ie),vt=Z.value.filter(({from:We,to:nt})=>nt.dateHash<he||We.dateHash>Ie);te=$e.concat(vt).concat(U).map(We=>vn(We))}else{const he=Y.value.slice();he.push(vn(U)),te=he}else te=vn(U);Tt(te,"add",U)}function pe(U){if(e.noUnset===!0)return;let te=null;if(e.multiple===!0&&Array.isArray(e.modelValue)===!0){const he=vn(U);U.from!==void 0?te=e.modelValue.filter(Ie=>Ie.from!==void 0?Ie.from!==he.from&&Ie.to!==he.to:!0):te=e.modelValue.filter(Ie=>Ie!==he),te.length===0&&(te=null)}Tt(te,"remove",U)}function De(U,te,he){const Ie=X.value.concat(Z.value).map(vt=>vn(vt,U,te)).filter(vt=>vt.from!==void 0?vt.from.dateHash!==null&&vt.to.dateHash!==null:vt.dateHash!==null),$e=(e.multiple===!0?Ie:Ie[0])||null;Se($e),n("update:modelValue",$e,he)}function Je(){if(e.minimal!==!0)return r.h("div",{class:"q-date__header "+d.value},[r.h("div",{class:"relative-position"},[r.h(r.Transition,{name:"q-transition--fade"},()=>r.h("div",{key:"h-yr-"+be.value,class:"q-date__header-subtitle q-date__header-link "+(q.value==="Years"?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...l("vY",{onClick(){q.value="Years"},onKeyup(U){U.keyCode===13&&(q.value="Years")}})},[be.value]))]),r.h("div",{class:"q-date__header-title relative-position flex no-wrap"},[r.h("div",{class:"relative-position col"},[r.h(r.Transition,{name:"q-transition--fade"},()=>r.h("div",{key:"h-sub"+R.value,class:"q-date__header-title-label q-date__header-link "+(q.value==="Calendar"?"q-date__header-link--active":"cursor-pointer"),tabindex:s.value,...l("vC",{onClick(){q.value="Calendar"},onKeyup(U){U.keyCode===13&&(q.value="Calendar")}})},[R.value]))]),e.todayBtn===!0?r.h(xt,{class:"q-date__header-today self-start",icon:a.iconSet.datetime.today,"aria-label":a.lang.date.today,flat:!0,size:"sm",round:!0,tabindex:s.value,onClick:Te}):null])])}function Ze({label:U,type:te,key:he,dir:Ie,goTo:$e,boundaries:vt,cls:We}){return[r.h("div",{class:"row items-center q-date__arrow"},[r.h(xt,{round:!0,dense:!0,size:"sm",flat:!0,icon:W.value[0],"aria-label":te==="Years"?a.lang.date.prevYear:a.lang.date.prevMonth,tabindex:s.value,disable:vt.prev===!1,...l("go-#"+te,{onClick(){$e(-1)}})})]),r.h("div",{class:"relative-position overflow-hidden flex flex-center"+We},[r.h(r.Transition,{name:"q-transition--jump-"+Ie},()=>r.h("div",{key:he},[r.h(xt,{flat:!0,dense:!0,noCaps:!0,label:U,tabindex:s.value,...l("view#"+te,{onClick:()=>{q.value=te}})})]))]),r.h("div",{class:"row items-center q-date__arrow"},[r.h(xt,{round:!0,dense:!0,size:"sm",flat:!0,icon:W.value[1],"aria-label":te==="Years"?a.lang.date.nextYear:a.lang.date.nextMonth,tabindex:s.value,disable:vt.next===!1,...l("go+#"+te,{onClick(){$e(1)}})})])]}const it={Calendar:()=>[r.h("div",{key:"calendar-view",class:"q-date__view q-date__calendar"},[r.h("div",{class:"q-date__navigation row items-center no-wrap"},Ze({label:C.value.months[y.value.month-1],type:"Months",key:y.value.month,dir:k.value,goTo:de,boundaries:qe.value.month,cls:" col"}).concat(Ze({label:y.value.year,type:"Years",key:y.value.year,dir:H.value,goTo:xe,boundaries:qe.value.year,cls:""}))),r.h("div",{class:"q-date__calendar-weekdays row items-center no-wrap"},we.value.map(U=>r.h("div",{class:"q-date__calendar-item"},[r.h("div",U)]))),r.h("div",{class:"q-date__calendar-days-container relative-position overflow-hidden"},[r.h(r.Transition,{name:"q-transition--slide-"+k.value},()=>r.h("div",{key:ke.value,class:"q-date__calendar-days fit"},oe.value.map(U=>r.h("div",{class:U.classes},[U.in===!0?r.h(xt,{class:U.today===!0?"q-date__today":"",dense:!0,flat:U.flat,unelevated:U.unelevated,color:U.color,textColor:U.textColor,label:U.i,tabindex:s.value,...l("day#"+U.i,{onClick:()=>{Pt(U.i)},onMouseover:()=>{Lt(U.i)}})},U.event!==!1?()=>r.h("div",{class:"q-date__event bg-"+U.event}):null):r.h("div",""+U.i)]))))])])],Months(){const U=y.value.year===x.value.year,te=Ie=>Le.value!==null&&y.value.year===Le.value.year&&Le.value.month>Ie||le.value!==null&&y.value.year===le.value.year&&le.value.month<Ie,he=C.value.monthsShort.map((Ie,$e)=>{const vt=y.value.month===$e+1;return r.h("div",{class:"q-date__months-item flex flex-center"},[r.h(xt,{class:U===!0&&x.value.month===$e+1?"q-date__today":null,flat:vt!==!0,label:Ie,unelevated:vt,color:vt===!0?D.value:null,textColor:vt===!0?P.value:null,tabindex:s.value,disable:te($e+1),...l("month#"+$e,{onClick:()=>{rt($e+1)}})})])});return e.yearsInMonthView===!0&&he.unshift(r.h("div",{class:"row no-wrap full-width"},[Ze({label:y.value.year,type:"Years",key:y.value.year,dir:H.value,goTo:xe,boundaries:qe.value.year,cls:" col"})])),r.h("div",{key:"months-view",class:"q-date__view q-date__months flex flex-center"},he)},Years(){const U=N.value,te=U+lr,he=[],Ie=$e=>Le.value!==null&&Le.value.year>$e||le.value!==null&&le.value.year<$e;for(let $e=U;$e<=te;$e++){const vt=y.value.year===$e;he.push(r.h("div",{class:"q-date__years-item flex flex-center"},[r.h(xt,{key:"yr"+$e,class:x.value.year===$e?"q-date__today":null,flat:!vt,label:$e,dense:!0,unelevated:vt,color:vt===!0?D.value:null,textColor:vt===!0?P.value:null,tabindex:s.value,disable:Ie($e),...l("yr#"+$e,{onClick:()=>{ze($e)}})})]))}return r.h("div",{class:"q-date__view q-date__years flex flex-center"},[r.h("div",{class:"col-auto"},[r.h(xt,{round:!0,dense:!0,flat:!0,icon:W.value[0],"aria-label":a.lang.date.prevRangeYears(lr),tabindex:s.value,disable:Ie(U),...l("y-",{onClick:()=>{N.value-=lr}})})]),r.h("div",{class:"q-date__years-content col self-stretch row items-center"},he),r.h("div",{class:"col-auto"},[r.h(xt,{round:!0,dense:!0,flat:!0,icon:W.value[1],"aria-label":a.lang.date.nextRangeYears(lr),tabindex:s.value,disable:Ie(te),...l("y+",{onClick:()=>{N.value+=lr}})})])])}};function Pt(U){const te={...y.value,day:U};if(e.range===!1){Ge(te,ke.value);return}if(I.value===null){const he=oe.value.find($e=>$e.fill!==!0&&$e.i===U);if(e.noUnset!==!0&&he.range!==void 0){pe({target:te,from:he.range.from,to:he.range.to});return}if(he.selected===!0){pe(te);return}const Ie=ir(te);I.value={init:te,initHash:Ie,final:te,finalHash:Ie},n("rangeStart",st(te))}else{const he=I.value.initHash,Ie=ir(te),$e=he<=Ie?{from:I.value.init,to:te}:{from:te,to:I.value.init};I.value=null,wn(he===Ie?te:{target:te,...$e}),n("rangeEnd",{from:st($e.from),to:st($e.to)})}}function Lt(U){if(I.value!==null){const te={...y.value,day:U};Object.assign(I.value,{final:te,finalHash:ir(te)})}}return Object.assign(o,{setToday:Te,setView:ue,offsetCalendar:ge,setCalendarTo:Ne,setEditingRange:Be}),()=>{const U=[r.h("div",{class:"q-date__content col relative-position"},[r.h(r.Transition,{name:"q-transition--fade"},it[q.value])])],te=Ke(t.default);return te!==void 0&&U.push(r.h("div",{class:"q-date__actions"},te)),e.name!==void 0&&e.disable!==!0&&_(U,"push"),r.h("div",{class:$.value,...se.value},[Je(),r.h("div",{ref:g,class:"q-date__main col column",tabindex:-1},U)])}}});function em(e,t,n){function o(){}return r.onBeforeUnmount(()=>{e.value===!0&&void 0}),{removeFromHistory:o,addToHistory(){}}}var va=0,du,fu,ma,vu=!1,tm,nm,rm,Yr=null;function RS(e){LS(e)&&ct(e)}function LS(e){if(e.target===document.body||e.target.classList.contains("q-layout__backdrop"))return!0;const t=zy(e),n=e.shiftKey&&!e.deltaX,o=!n&&Math.abs(e.deltaX)<=Math.abs(e.deltaY),a=n||o?e.deltaY:e.deltaX;for(let i=0;i<t.length;i++){const l=t[i];if(k_(l,o))return o?a<0&&l.scrollTop===0?!0:a>0&&l.scrollTop+l.clientHeight===l.scrollHeight:a<0&&l.scrollLeft===0?!0:a>0&&l.scrollLeft+l.clientWidth===l.scrollWidth}return!0}function om(e){e.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function Di(e){vu!==!0&&(vu=!0,requestAnimationFrame(()=>{vu=!1;const{height:t}=e.target,{clientHeight:n,scrollTop:o}=document.scrollingElement;(ma===void 0||t!==window.innerHeight)&&(ma=n-t,document.scrollingElement.scrollTop=o),o>ma&&(document.scrollingElement.scrollTop-=Math.ceil((o-ma)/8))}))}function am(e){const t=document.body,n=window.visualViewport!==void 0;if(e==="add"){const{overflowY:o,overflowX:a}=window.getComputedStyle(t);du=hi(window),fu=gr(window),tm=t.style.left,nm=t.style.top,rm=window.location.href,t.style.left=`-${du}px`,t.style.top=`-${fu}px`,a!=="hidden"&&(a==="scroll"||t.scrollWidth>window.innerWidth)&&t.classList.add("q-body--force-scrollbar-x"),o!=="hidden"&&(o==="scroll"||t.scrollHeight>window.innerHeight)&&t.classList.add("q-body--force-scrollbar-y"),t.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,ft.is.ios===!0&&(n===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",Di,Rt.passiveCapture),window.visualViewport.addEventListener("scroll",Di,Rt.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",om,Rt.passiveCapture))}ft.is.desktop===!0&&ft.is.mac===!0&&window[`${e}EventListener`]("wheel",RS,Rt.notPassive),e==="remove"&&(ft.is.ios===!0&&(n===!0?(window.visualViewport.removeEventListener("resize",Di,Rt.passiveCapture),window.visualViewport.removeEventListener("scroll",Di,Rt.passiveCapture)):window.removeEventListener("scroll",om,Rt.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=tm,t.style.top=nm,window.location.href===rm&&window.scrollTo(du,fu),ma=void 0)}function mu(e){let t="add";if(e===!0){if(va++,Yr!==null){clearTimeout(Yr),Yr=null;return}if(va>1)return}else{if(va===0||(va--,va>0))return;if(t="remove",ft.is.ios===!0&&ft.is.nativeMobile===!0){Yr!==null&&clearTimeout(Yr),Yr=setTimeout(()=>{am(t),Yr=null},100);return}}am(t)}function im(){let e;return{preventBodyScroll(t){t!==e&&(e!==void 0||t===!0)&&(e=t,mu(t))}}}var $i=0,IS={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"},lm={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]},Fi=_e({name:"QDialog",inheritAttrs:!1,props:{...po,...Br,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:e=>["standard","top","bottom","left","right"].includes(e)}},emits:[...bo,"shake","click","escapeKey"],setup(e,{slots:t,emit:n,attrs:o}){const a=r.getCurrentInstance(),i=r.ref(null),l=r.ref(!1),s=r.ref(!1);let d=null,m=null,v,b;const p=r.computed(()=>e.persistent!==!0&&e.noRouteDismiss!==!0&&e.seamless!==!0),{preventBodyScroll:_}=im(),{registerTimeout:g}=ar(),{registerTick:E,removeTick:C}=Co(),{transitionProps:w,transitionStyle:T}=vi(e,()=>lm[e.position][0],()=>lm[e.position][1]),x=r.computed(()=>T.value+(e.backdropFilter!==void 0?`;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}`:"")),{showPortal:y,hidePortal:q,portalIsAccessible:L,renderPortal:k}=Ps(a,i,ae,"dialog"),{hide:H}=yo({showing:l,hideOnRouteChange:p,handleShow:D,handleHide:P,processOnMount:!0});em(l);const ee=r.computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized===!0?"maximized":"minimized"} q-dialog__inner--${e.position} ${IS[e.position]}`+(s.value===!0?" q-dialog__inner--animating":"")+(e.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(e.fullHeight===!0?" q-dialog__inner--fullheight":"")+(e.square===!0?" q-dialog__inner--square":"")),N=r.computed(()=>l.value===!0&&e.seamless!==!0),I=r.computed(()=>e.autoClose===!0?{onClick:Ee}:{}),$=r.computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${N.value===!0?"modal":"seamless"}`,o.class]);r.watch(()=>e.maximized,J=>{l.value===!0&&ce(J)}),r.watch(N,J=>{_(J),J===!0?(nv(R),ev(X)):(Is(R),bi(X))});function D(J){m=e.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,ce(e.maximized),y(),s.value=!0,e.noFocus!==!0?(document.activeElement?.blur(),E(F)):C(),g(()=>{if(a.proxy.$q.platform.is.ios===!0){if(e.seamless!==!0&&document.activeElement){const{top:be,bottom:W}=document.activeElement.getBoundingClientRect(),{innerHeight:ne}=window,we=window.visualViewport!==void 0?window.visualViewport.height:ne;be>0&&W>we/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-we,W>=ne?1/0:Math.ceil(document.scrollingElement.scrollTop+W-we/2))),document.activeElement.scrollIntoView()}b=!0,i.value.click(),b=!1}y(!0),s.value=!1,n("show",J)},e.transitionDuration)}function P(J){C(),Z(!0),s.value=!0,q(),m!==null&&(((J?.type.indexOf("key")===0?m.closest('[tabindex]:not([tabindex^="-"])'):void 0)||m).focus(),m=null),g(()=>{q(!0),s.value=!1,n("hide",J)},e.transitionDuration)}function F(J){_o(()=>{let be=i.value;if(be!==null){if(J!==void 0){const W=be.querySelector(J);if(W!==null){W.focus({preventScroll:!0});return}}be.contains(document.activeElement)!==!0&&(be=be.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||be.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||be.querySelector("[autofocus], [data-autofocus]")||be,be.focus({preventScroll:!0}))}})}function Y(J){J&&typeof J.focus=="function"?J.focus({preventScroll:!0}):F(),n("shake");const be=i.value;be!==null&&(be.classList.remove("q-animate--scale"),be.classList.add("q-animate--scale"),d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,i.value!==null&&(be.classList.remove("q-animate--scale"),F())},170))}function X(){e.seamless!==!0&&(e.persistent===!0||e.noEscDismiss===!0?e.maximized!==!0&&e.noShake!==!0&&Y():(n("escapeKey"),H()))}function Z(J){d!==null&&(clearTimeout(d),d=null),(J===!0||l.value===!0)&&(ce(!1),e.seamless!==!0&&(_(!1),Is(R),bi(X))),J!==!0&&(m=null)}function ce(J){J===!0?v!==!0&&($i<1&&document.body.classList.add("q-body--dialog"),$i++,v=!0):v===!0&&($i<2&&document.body.classList.remove("q-body--dialog"),$i--,v=!1)}function Ee(J){b!==!0&&(H(J),n("click",J))}function G(J){e.persistent!==!0&&e.noBackdropDismiss!==!0?H(J):e.noShake!==!0&&Y()}function R(J){e.allowFocusOutside!==!0&&L.value===!0&&Df(i.value,J.target)!==!0&&F('[tabindex]:not([tabindex="-1"])')}Object.assign(a.proxy,{focus:F,shake:Y,__updateRefocusTarget(J){m=J||null}}),r.onBeforeUnmount(Z);function ae(){return r.h("div",{role:"dialog","aria-modal":N.value===!0?"true":"false",...o,class:$.value},[r.h(r.Transition,{name:"q-transition--fade",appear:!0},()=>N.value===!0?r.h("div",{class:"q-dialog__backdrop fixed-full",style:x.value,"aria-hidden":"true",tabindex:-1,onClick:G}):null),r.h(r.Transition,w.value,()=>l.value===!0?r.h("div",{ref:i,class:ee.value,style:T.value,tabindex:-1,...I.value},Ke(t.default)):null)])}return k}}),sm=150;_e({name:"QDrawer",inheritAttrs:!1,props:{...po,...bt,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},noMiniAnimation:Boolean,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:[...bo,"onLayout","miniState"],setup(e,{slots:t,emit:n,attrs:o}){const a=r.getCurrentInstance(),{proxy:{$q:i}}=a,l=yt(e,i),{preventBodyScroll:s}=im(),{registerTimeout:d,removeTimeout:m}=ar(),v=r.inject($r,kt);if(v===kt)return console.error("QDrawer needs to be child of QLayout"),kt;let b,p=null,_;const g=r.ref(e.behavior==="mobile"||e.behavior!=="desktop"&&v.totalWidth.value<=e.breakpoint),E=r.computed(()=>e.mini===!0&&g.value!==!0),C=r.computed(()=>E.value===!0?e.miniWidth:e.width),w=r.ref(e.showIfAbove===!0&&g.value===!1?!0:e.modelValue===!0),T=r.computed(()=>e.persistent!==!0&&(g.value===!0||Z.value===!0));function x(oe,se){if(oe!==!1&&v.animate(),Le(0),g.value===!0){const Se=v.instances[P.value];Se?.belowBreakpoint===!0&&Se.hide(!1),le(1),v.isContainer.value!==!0&&s(!0)}else le(0),oe!==!1&&qe(!1);d(()=>{oe!==!1&&qe(!0),se!==!0&&n("show",oe)},sm)}function y(oe,se){oe!==!1&&v.animate(),le(0),Le(ee.value*C.value),ke(),se!==!0?d(()=>{n("hide",oe)},sm):m()}const{show:q,hide:L}=yo({showing:w,hideOnRouteChange:T,handleShow:x,handleHide:y});em(w);const k={belowBreakpoint:g,hide:L},H=r.computed(()=>e.side==="right"),ee=r.computed(()=>(i.lang.rtl===!0?-1:1)*(H.value===!0?1:-1)),N=r.ref(0),I=r.ref(!1),$=r.ref(!1),D=r.ref(C.value*ee.value),P=r.computed(()=>H.value===!0?"left":"right"),F=r.computed(()=>w.value===!0&&g.value===!1&&e.overlay===!1?e.miniToOverlay===!0?e.miniWidth:C.value:0),Y=r.computed(()=>e.overlay===!0||e.miniToOverlay===!0||v.view.value.indexOf(H.value?"R":"L")!==-1||i.platform.is.ios===!0&&v.isContainer.value===!0),X=r.computed(()=>e.overlay===!1&&w.value===!0&&g.value===!1),Z=r.computed(()=>e.overlay===!0&&w.value===!0&&g.value===!1),ce=r.computed(()=>"fullscreen q-drawer__backdrop"+(w.value===!1&&I.value===!1?" hidden":"")),Ee=r.computed(()=>({backgroundColor:`rgba(0,0,0,${N.value*.4})`})),G=r.computed(()=>H.value===!0?v.rows.value.top[2]==="r":v.rows.value.top[0]==="l"),R=r.computed(()=>H.value===!0?v.rows.value.bottom[2]==="r":v.rows.value.bottom[0]==="l"),ae=r.computed(()=>{const oe={};return v.header.space===!0&&G.value===!1&&(Y.value===!0?oe.top=`${v.header.offset}px`:v.header.space===!0&&(oe.top=`${v.header.size}px`)),v.footer.space===!0&&R.value===!1&&(Y.value===!0?oe.bottom=`${v.footer.offset}px`:v.footer.space===!0&&(oe.bottom=`${v.footer.size}px`)),oe}),J=r.computed(()=>{const oe={width:`${C.value}px`,transform:`translateX(${D.value}px)`};return g.value===!0?oe:Object.assign(oe,ae.value)}),be=r.computed(()=>"q-drawer__content fit "+(v.isContainer.value!==!0?"scroll":"overflow-auto")),W=r.computed(()=>`q-drawer q-drawer--${e.side}`+($.value===!0?" q-drawer--mini-animate":"")+(e.bordered===!0?" q-drawer--bordered":"")+(l.value===!0?" q-drawer--dark q-dark":"")+(I.value===!0?" no-transition":w.value===!0?"":" q-layout--prevent-focus")+(g.value===!0?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${E.value===!0?"mini":"standard"}`+(Y.value===!0||X.value!==!0?" fixed":"")+(e.overlay===!0||e.miniToOverlay===!0?" q-drawer--on-top":"")+(G.value===!0?" q-drawer--top-padding":""))),ne=r.computed(()=>{const oe=i.lang.rtl===!0?e.side:P.value;return[[Rn,Fe,void 0,{[oe]:!0,mouse:!0}]]}),we=r.computed(()=>{const oe=i.lang.rtl===!0?P.value:e.side;return[[Rn,He,void 0,{[oe]:!0,mouse:!0}]]}),Q=r.computed(()=>{const oe=i.lang.rtl===!0?P.value:e.side;return[[Rn,He,void 0,{[oe]:!0,mouse:!0,mouseAllDir:!0}]]});function Oe(){K(g,e.behavior==="mobile"||e.behavior!=="desktop"&&v.totalWidth.value<=e.breakpoint)}r.watch(g,oe=>{oe===!0?(b=w.value,w.value===!0&&L(!1)):e.overlay===!1&&e.behavior!=="mobile"&&b!==!1&&(w.value===!0?(Le(0),le(0),ke()):q(!1))}),r.watch(()=>e.side,(oe,se)=>{v.instances[se]===k&&(v.instances[se]=void 0,v[se].space=!1,v[se].offset=0),v.instances[oe]=k,v[oe].size=C.value,v[oe].space=X.value,v[oe].offset=F.value}),r.watch(v.totalWidth,()=>{(v.isContainer.value===!0||document.qScrollPrevented!==!0)&&Oe()}),r.watch(()=>e.behavior+e.breakpoint,Oe),r.watch(v.isContainer,oe=>{w.value===!0&&s(oe!==!0),oe===!0&&Oe()}),r.watch(v.scrollbarWidth,()=>{Le(w.value===!0?0:void 0)}),r.watch(F,oe=>{z("offset",oe)}),r.watch(X,oe=>{n("onLayout",oe),z("space",oe)}),r.watch(H,()=>{Le()}),r.watch(C,oe=>{Le(),ve(e.miniToOverlay,oe)}),r.watch(()=>e.miniToOverlay,oe=>{ve(oe,C.value)}),r.watch(()=>i.lang.rtl,()=>{Le()}),r.watch(()=>e.mini,()=>{e.noMiniAnimation||e.modelValue===!0&&(Re(),v.animate())}),r.watch(E,oe=>{n("miniState",oe)});function Le(oe){oe===void 0?r.nextTick(()=>{oe=w.value===!0?0:C.value,Le(ee.value*oe)}):(v.isContainer.value===!0&&H.value===!0&&(g.value===!0||Math.abs(oe)===C.value)&&(oe+=ee.value*v.scrollbarWidth.value),D.value=oe)}function le(oe){N.value=oe}function qe(oe){const se=oe===!0?"remove":v.isContainer.value!==!0?"add":"";se!==""&&document.body.classList[se]("q-body--drawer-toggle")}function Re(){p!==null&&clearTimeout(p),a.proxy&&a.proxy.$el&&a.proxy.$el.classList.add("q-drawer--mini-animate"),$.value=!0,p=setTimeout(()=>{p=null,$.value=!1,a?.proxy?.$el?.classList.remove("q-drawer--mini-animate")},150)}function Fe(oe){if(w.value!==!1)return;const se=C.value,Se=Mt(oe.distance.x,0,se);if(oe.isFinal===!0){Se>=Math.min(75,se)===!0?q():(v.animate(),le(0),Le(ee.value*se)),I.value=!1;return}Le((i.lang.rtl===!0?H.value!==!0:H.value)?Math.max(se-Se,0):Math.min(0,Se-se)),le(Mt(Se/se,0,1)),oe.isFirst===!0&&(I.value=!0)}function He(oe){if(w.value!==!0)return;const se=C.value,Se=oe.direction===e.side,Te=(i.lang.rtl===!0?Se!==!0:Se)?Mt(oe.distance.x,0,se):0;if(oe.isFinal===!0){Math.abs(Te)<Math.min(75,se)===!0?(v.animate(),le(1),Le(0)):L(),I.value=!1;return}Le(ee.value*Te),le(Mt(1-Te/se,0,1)),oe.isFirst===!0&&(I.value=!0)}function ke(){s(!1),qe(!0)}function z(oe,se){v.update(e.side,oe,se)}function K(oe,se){oe.value!==se&&(oe.value=se)}function ve(oe,se){z("size",oe===!0?e.miniWidth:se)}return v.instances[e.side]=k,ve(e.miniToOverlay,C.value),z("space",X.value),z("offset",F.value),e.showIfAbove===!0&&e.modelValue!==!0&&w.value===!0&&e["onUpdate:modelValue"]!==void 0&&n("update:modelValue",!0),r.onMounted(()=>{n("onLayout",X.value),n("miniState",E.value),b=e.showIfAbove===!0;const oe=()=>{(w.value===!0?x:y)(!1,!0)};if(v.totalWidth.value!==0){r.nextTick(oe);return}_=r.watch(v.totalWidth,()=>{_(),_=void 0,w.value===!1&&e.showIfAbove===!0&&g.value===!1?q(!1):oe()})}),r.onBeforeUnmount(()=>{_?.(),p!==null&&(clearTimeout(p),p=null),w.value===!0&&ke(),v.instances[e.side]===k&&(v.instances[e.side]=void 0,z("size",0),z("offset",0),z("space",!1))}),()=>{const oe=[];g.value===!0&&(e.noSwipeOpen===!1&&oe.push(r.withDirectives(r.h("div",{key:"open",class:`q-drawer__opener fixed-${e.side}`,"aria-hidden":"true"}),ne.value)),oe.push(Mn("div",{ref:"backdrop",class:ce.value,style:Ee.value,"aria-hidden":"true",onClick:L},void 0,"backdrop",e.noSwipeBackdrop!==!0&&w.value===!0,()=>Q.value)));const se=E.value===!0&&t.mini!==void 0,Se=[r.h("div",{...o,key:""+se,class:[be.value,o.class]},se===!0?t.mini():Ke(t.default))];return e.elevated===!0&&w.value===!0&&Se.push(r.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),oe.push(Mn("aside",{ref:"content",class:W.value,style:J.value},Se,"contentclose",e.noSwipeClose!==!0&&g.value===!0,()=>we.value)),r.h("div",{class:"q-drawer-container"},oe)}}});function um(e,t){if(t&&e===t)return null;const n=e.nodeName.toLowerCase();if(["div","li","ul","ol","blockquote"].includes(n)===!0)return e;const o=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,a=o.display;return a==="block"||a==="table"?e:um(e.parentNode)}function hu(e,t,n){return!e||e===document.body?!1:n===!0&&e===t||(t===document?document.body:t).contains(e.parentNode)}function cm(e,t,n){if(n||(n=document.createRange(),n.selectNode(e),n.setStart(e,0)),t.count===0)n.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:(n.setEnd(e,t.count),t.count=0);else for(let o=0;t.count!==0&&o<e.childNodes.length;o++)n=cm(e.childNodes[o],t,n);return n}var NS=/^https?:\/\//,DS=class{constructor(e,t){this.el=e,this.eVm=t,this._range=null}get selection(){if(this.el){const e=document.getSelection();if(hu(e.anchorNode,this.el,!0)&&hu(e.focusNode,this.el,!0))return e}return null}get hasSelection(){return this.selection!==null?this.selection.toString().length!==0:!1}get range(){const e=this.selection;return e?.rangeCount?e.getRangeAt(0):this._range}get parent(){const e=this.range;if(e!==null){const t=e.startContainer;return t.nodeType===document.ELEMENT_NODE?t:t.parentNode}return null}get blockParent(){const e=this.parent;return e!==null?um(e,this.el):null}save(e=this.range){e!==null&&(this._range=e)}restore(e=this._range){const t=document.createRange(),n=document.getSelection();e!==null?(t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),n.removeAllRanges(),n.addRange(t)):(n.selectAllChildren(this.el),n.collapseToEnd())}savePosition(){let e=-1,t;const n=document.getSelection(),o=this.el.parentNode;if(n.focusNode&&hu(n.focusNode,o))for(t=n.focusNode,e=n.focusOffset;t&&t!==o;)t!==this.el&&t.previousSibling?(t=t.previousSibling,e+=t.textContent.length):t=t.parentNode;this.savedPos=e}restorePosition(e=0){if(this.savedPos>0&&this.savedPos<e){const t=window.getSelection(),n=cm(this.el,{count:this.savedPos});n&&(n.collapse(!1),t.removeAllRanges(),t.addRange(n))}}hasParent(e,t){const n=t?this.parent:this.blockParent;return n!==null?n.nodeName.toLowerCase()===e.toLowerCase():!1}hasParents(e,t,n=this.parent){return n===null?!1:e.includes(n.nodeName.toLowerCase())===!0?!0:t===!0?this.hasParents(e,t,n.parentNode):!1}is(e,t){if(this.selection===null)return!1;switch(e){case"formatBlock":return t==="DIV"&&this.parent===this.el||this.hasParent(t,t==="PRE");case"link":return this.hasParent("A",!0);case"fontSize":return document.queryCommandValue(e)===t;case"fontName":const n=document.queryCommandValue(e);return n===`"${t}"`||n===t;case"fullscreen":return this.eVm.inFullscreen.value;case"viewsource":return this.eVm.isViewingSource.value;case void 0:return!1;default:const o=document.queryCommandState(e);return t!==void 0?o===t:o}}getParentAttribute(e){return this.parent!==null?this.parent.getAttribute(e):null}can(e){if(e==="outdent")return this.hasParents(["blockquote","li"],!0);if(e==="indent")return this.hasParents(["li"],!0);if(e==="link")return this.selection!==null||this.is("link")}apply(e,t,n=Kt){if(e==="formatBlock")["BLOCKQUOTE","H1","H2","H3","H4","H5","H6"].includes(t)&&this.is(e,t)&&(e="outdent",t=null),t==="PRE"&&this.is(e,"PRE")&&(t="P");else if(e==="print"){n();const o=window.open();o.document.write(`
|
|
18
18
|
<!doctype html>
|
|
19
19
|
<html>
|
|
20
20
|
<head>
|
|
@@ -24,53 +24,53 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
24
24
|
<div>${this.el.innerHTML}</div>
|
|
25
25
|
</body>
|
|
26
26
|
</html>
|
|
27
|
-
`),a.print(),a.close();return}else if(e==="link"){const a=this.getParentAttribute("href");if(a===null){const o=this.selectWord(this.selection),l=o?o.toString():"";if(!l.length&&(!this.range||!this.range.cloneContents().querySelector("img")))return;this.eVm.editLinkUrl.value=e_.test(l)?l:"https://",document.execCommand("createLink",!1,this.eVm.editLinkUrl.value),this.save(o.getRangeAt(0))}else this.eVm.editLinkUrl.value=a,this.range.selectNodeContents(this.parent),this.save();return}else if(e==="fullscreen"){this.eVm.toggleFullscreen(),n();return}else if(e==="viewsource"){this.eVm.isViewingSource.value=this.eVm.isViewingSource.value===!1,this.eVm.setContent(this.eVm.props.modelValue),n();return}document.execCommand(e,!1,t),n()}selectWord(e){if(e===null||e.isCollapsed!==!0||e.modify===void 0)return e;const t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);const n=t.collapsed?["backward","forward"]:["forward","backward"];t.detach();const a=e.focusNode,o=e.focusOffset;return e.collapse(e.anchorNode,e.anchorOffset),e.modify("move",n[0],"character"),e.modify("move",n[1],"word"),e.extend(a,o),e.modify("extend",n[1],"character"),e.modify("extend",n[0],"word"),e}},n_=ie({name:"QTooltip",inheritAttrs:!1,props:{...Md,...Ir,...ir,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...ir.transitionShow,default:"jump-down"},transitionHide:{...ir.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:Ao},self:{type:String,default:"top middle",validator:Ao},offset:{type:Array,default:()=>[14,14],validator:Wd},scrollTarget:sr,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...Dr],setup(e,{slots:t,emit:n,attrs:a}){let o,l;const i=r.getCurrentInstance(),{proxy:{$q:s}}=i,u=r.ref(null),d=r.ref(!1),c=r.computed(()=>Ro(e.anchor,s.lang.rtl)),g=r.computed(()=>Ro(e.self,s.lang.rtl)),v=r.computed(()=>e.persistent!==!0),{registerTick:h,removeTick:f}=Hr(),{registerTimeout:_}=On(),{transitionProps:p,transitionStyle:b}=Co(e),{localScrollTarget:S,changeScrollEvent:y,unconfigureScrollTarget:m}=Ad(e,he),{anchorEl:w,canShow:E,anchorEvents:C}=qi({showing:d,configureAnchorEl:Z}),{show:R,hide:H}=$r({showing:d,canShow:E,handleShow:O,handleHide:k,hideOnRouteChange:v,processOnMount:!0});Object.assign(C,{delayShow:z,delayHide:F});const{showPortal:q,hidePortal:T,renderPortal:M}=Mi(i,u,x,"tooltip");if(s.platform.is.mobile===!0){const Y={anchorEl:w,innerRef:u,onClickOutside(le){return H(le),le.target.classList.contains("q-dialog__backdrop")&&Fe(le),!0}},B=r.computed(()=>e.modelValue===null&&e.persistent!==!0&&d.value===!0);r.watch(B,le=>{(le===!0?jd:Lo)(Y)}),r.onBeforeUnmount(()=>{Lo(Y)})}function O(Y){q(),h(()=>{l=new MutationObserver(()=>D()),l.observe(u.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),D(),he()}),o===void 0&&(o=r.watch(()=>s.screen.width+"|"+s.screen.height+"|"+e.self+"|"+e.anchor+"|"+s.lang.rtl,D)),_(()=>{q(!0),n("show",Y)},e.transitionDuration)}function k(Y){f(),T(),A(),_(()=>{T(!0),n("hide",Y)},e.transitionDuration)}function A(){l!==void 0&&(l.disconnect(),l=void 0),o!==void 0&&(o(),o=void 0),m(),Dt(C,"tooltipTemp")}function D(){Ii({targetEl:u.value,offset:e.offset,anchorEl:w.value,anchorOrigin:c.value,selfOrigin:g.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function z(Y){if(s.platform.is.mobile===!0){dn(),document.body.classList.add("non-selectable");const B=w.value,le=["touchmove","touchcancel","touchend","click"].map(N=>[B,N,"delayHide","passiveCapture"]);mt(C,"tooltipTemp",le)}_(()=>{R(Y)},e.delay)}function F(Y){s.platform.is.mobile===!0&&(Dt(C,"tooltipTemp"),dn(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),_(()=>{H(Y)},e.hideDelay)}function Z(){if(e.noParentEvent===!0||w.value===null)return;const Y=s.platform.is.mobile===!0?[[w.value,"touchstart","delayShow","passive"]]:[[w.value,"mouseenter","delayShow","passive"],[w.value,"mouseleave","delayHide","passive"]];mt(C,"anchor",Y)}function he(){if(w.value!==null||e.scrollTarget!==void 0){S.value=pn(w.value,e.scrollTarget);const Y=e.noParentEvent===!0?D:H;y(S.value,Y)}}function $(){return d.value===!0?r.h("div",{...a,ref:u,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",a.class],style:[a.style,b.value],role:"tooltip"},Te(t.default)):null}function x(){return r.h(r.Transition,p.value,$)}return r.onBeforeUnmount(A),Object.assign(i.proxy,{updatePosition:D}),M}}),Xo=ie({name:"QItem",props:{...Ye,...ba,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=Ge(e,a),{hasLink:l,linkAttrs:i,linkClass:s,linkTag:u,navigateOnClick:d}=yo(),c=r.ref(null),g=r.ref(null),v=r.computed(()=>e.clickable===!0||l.value===!0||e.tag==="label"),h=r.computed(()=>e.disable!==!0&&v.value===!0),f=r.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(o.value===!0?" q-item--dark":"")+(l.value===!0&&e.active===null?s.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(h.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),_=r.computed(()=>e.insetLevel===void 0?null:{["padding"+(a.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function p(y){h.value===!0&&(g.value!==null&&y.qAvoidFocus!==!0&&(y.qKeyEvent!==!0&&document.activeElement===c.value?g.value.focus():document.activeElement===g.value&&c.value.focus()),d(y))}function b(y){if(h.value===!0&&Vt(y,[13,32])===!0){Fe(y),y.qKeyEvent=!0;const m=new MouseEvent("click",y);m.qKeyEvent=!0,c.value.dispatchEvent(m)}n("keyup",y)}function S(){const y=ga(t.default,[]);return h.value===!0&&y.unshift(r.h("div",{class:"q-focus-helper",tabindex:-1,ref:g})),y}return()=>{const y={ref:c,class:f.value,style:_.value,role:"listitem",onClick:p,onKeyup:b};return h.value===!0?(y.tabindex=e.tabindex||"0",Object.assign(y,i.value)):v.value===!0&&(y["aria-disabled"]="true"),r.h(u.value,y,S())}}}),Un=ie({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=r.computed(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>r.h("div",{class:n.value},Te(t.default))}});function Zf(e,t,n){t.handler?t.handler(e,n,n.caret):n.runCmd(t.cmd,t.param)}function hs(e){return r.h("div",{class:"q-editor__toolbar-group"},e)}function Vf(e,t,n,a=!1){const o=a||(t.type==="toggle"?t.toggled?t.toggled(e):t.cmd&&e.caret.is(t.cmd,t.param):!1),l=[];if(e.$q.platform.is.desktop&&(t.tip||t.htmlTip)){const i=t.key?r.h("div",[r.h("small",`(CTRL + ${String.fromCharCode(t.key)})`)]):null;l.push(r.h(n_,{delay:1e3},()=>[r.h("div",t.htmlTip?{innerHTML:t.htmlTip}:t.tip),i]))}return r.h(Ze,{...e.buttonProps.value,icon:t.icon!==null?t.icon:void 0,color:o?t.toggleColor||e.props.toolbarToggleColor:t.color||e.props.toolbarColor,textColor:o&&!e.props.toolbarPush?null:t.textColor||e.props.toolbarTextColor,label:t.label,"aria-label":t.label==null?t.tip:void 0,disable:t.disable?typeof t.disable=="function"?t.disable(e):!0:!1,size:"sm",onClick(i){n?.(),Zf(i,t,e)}},()=>l)}function r_(e,t){const n=t.list==="only-icons";let a=t.label,o=t.icon!==null?t.icon:void 0,l,i;function s(){d.component.proxy.hide()}if(n)i=t.options.map(c=>{const g=c.type===void 0?e.caret.is(c.cmd,c.param):!1;return g&&(a=c.tip,o=c.icon!==null?c.icon:void 0),Vf(e,c,s,g)}),l=e.toolbarBackgroundClass.value,i=[hs(i)];else{const c=e.props.toolbarToggleColor!==void 0?`text-${e.props.toolbarToggleColor}`:null,g=e.props.toolbarTextColor!==void 0?`text-${e.props.toolbarTextColor}`:null,v=t.list==="no-icons";i=t.options.map(h=>{const f=h.disable?h.disable(e):!1,_=h.type===void 0?e.caret.is(h.cmd,h.param):!1;_&&(a=h.tip,o=h.icon!==null?h.icon:void 0);const p=h.htmlTip;return r.h(Xo,{active:_,activeClass:c,clickable:!0,disable:f,dense:!0,onClick(b){s(),b?.qAvoidFocus!==!0&&e.contentRef.value?.focus(),e.caret.restore(),Zf(b,h,e)}},()=>[v===!0?null:r.h(Un,{class:_?c:g,side:!0},()=>r.h(Xe,{name:h.icon!==null?h.icon:void 0})),r.h(Un,p?()=>r.h("div",{class:"text-no-wrap",innerHTML:h.htmlTip}):h.tip?()=>r.h("div",{class:"text-no-wrap"},h.tip):void 0)])}),l=[e.toolbarBackgroundClass.value,g]}const u=t.highlight&&a!==t.label,d=r.h(ey,{...e.buttonProps.value,noCaps:!0,noWrap:!0,color:u?e.props.toolbarToggleColor:e.props.toolbarColor,textColor:u&&!e.props.toolbarPush?null:e.props.toolbarTextColor,label:t.fixedLabel?t.label:a,icon:t.fixedIcon?t.icon!==null?t.icon:void 0:o,contentClass:l,onShow:c=>e.emit("dropdownShow",c),onHide:c=>e.emit("dropdownHide",c),onBeforeShow:c=>e.emit("dropdownBeforeShow",c),onBeforeHide:c=>e.emit("dropdownBeforeHide",c)},()=>i);return d}function a_(e){if(e.caret)return e.buttons.value.filter(t=>!e.isViewingSource.value||t.find(n=>n.cmd==="viewsource")).map(t=>hs(t.map(n=>e.isViewingSource.value&&n.cmd!=="viewsource"?!1:n.type==="slot"?Te(e.slots[n.slot]):n.type==="dropdown"?r_(e,n):Vf(e,n))))}function o_(e,t,n,a={}){const o=Object.keys(a);if(o.length===0)return{};const l={default_font:{cmd:"fontName",param:e,icon:n,tip:t}};return o.forEach(i=>{const s=a[i];l[i]={cmd:"fontName",param:s,icon:n,tip:s,htmlTip:`<font face="${s}">${s}</font>`}}),l}function l_(e){if(e.caret){const t=e.props.toolbarColor||e.props.toolbarTextColor;let n=e.editLinkUrl.value;const a=()=>{e.caret.restore(),n!==e.editLinkUrl.value&&document.execCommand("createLink",!1,n===""?" ":n),e.editLinkUrl.value=null};return[r.h("div",{class:`q-mx-xs text-${t}`},`${e.$q.lang.editor.url}: `),r.h("input",{key:"qedt_btm_input",class:"col q-editor__link-input",value:n,onInput:o=>{ft(o),n=o.target.value},onKeydown:o=>{if(rr(o)!==!0)switch(o.keyCode){case 13:return Et(o),a();case 27:Et(o),e.caret.restore(),(!e.editLinkUrl.value||e.editLinkUrl.value==="https://")&&document.execCommand("unlink"),e.editLinkUrl.value=null;break}}}),hs([r.h(Ze,{key:"qedt_btm_rem",...e.buttonProps.value,label:e.$q.lang.label.remove,noCaps:!0,onClick:()=>{e.caret.restore(),document.execCommand("unlink"),e.editLinkUrl.value=null}}),r.h(Ze,{key:"qedt_btm_upd",...e.buttonProps.value,label:e.$q.lang.label.update,noCaps:!0,onClick:a})])]}}var ev=/^on[A-Z]/;function tv(){const{attrs:e,vnode:t}=r.getCurrentInstance(),n={listeners:r.ref({}),attributes:r.ref({})};function a(){const o={},l={};for(const i in e)i!=="class"&&i!=="style"&&ev.test(i)===!1&&(o[i]=e[i]);for(const i in t.props)ev.test(i)===!0&&(l[i]=t.props[i]);n.attributes.value=o,n.listeners.value=l}return r.onBeforeUpdate(a),a(),n}var i_=Object.prototype.toString,gs=Object.prototype.hasOwnProperty,s_=new Set(["Boolean","Number","String","Function","Array","Date","RegExp"].map(e=>"[object "+e+"]"));function nv(e){if(e!==Object(e)||s_.has(i_.call(e))===!0||e.constructor&&gs.call(e,"constructor")===!1&&gs.call(e.constructor.prototype,"isPrototypeOf")===!1)return!1;let t;for(t in e);return t===void 0||gs.call(e,t)}function rv(){let e,t,n,a,o,l,i=arguments[0]||{},s=1,u=!1;const d=arguments.length;for(typeof i=="boolean"&&(u=i,i=arguments[1]||{},s=2),Object(i)!==i&&typeof i!="function"&&(i={}),d===s&&(i=this,s--);s<d;s++)if((e=arguments[s])!==null)for(t in e)n=i[t],a=e[t],i!==a&&(u===!0&&a&&((o=Array.isArray(a))||nv(a)===!0)?(o===!0?l=Array.isArray(n)===!0?n:[]:l=nv(n)===!0?n:{},i[t]=rv(u,l,a)):a!==void 0&&(i[t]=a));return i}ie({name:"QEditor",props:{...Ye,...Qi,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=>e.length===0||e.every(t=>t.length),default:()=>[["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:[...Wi,"update:modelValue","keydown","click","focus","blur","dropdownShow","dropdownHide","dropdownBeforeShow","dropdownBeforeHide","linkShow","linkHide"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=Ge(e,o),{inFullscreen:i,toggleFullscreen:s}=Ki(),u=tv(),d=r.ref(null),c=r.ref(null),g=r.ref(null),v=r.ref(!1),h=r.computed(()=>!e.readonly&&!e.disable);let f,_,p=e.modelValue;document.execCommand("defaultParagraphSeparator",!1,e.paragraphTag),f=window.getComputedStyle(document.body).fontFamily;const b=r.computed(()=>e.toolbarBg?` bg-${e.toolbarBg}`:""),S=r.computed(()=>({type:"a",flat:e.toolbarOutline!==!0&&e.toolbarPush!==!0,noWrap:!0,outline:e.toolbarOutline,push:e.toolbarPush,rounded:e.toolbarRounded,dense:!0,color:e.toolbarColor,disable:!h.value,size:"sm"})),y=r.computed(()=>{const N=o.lang.editor,U=o.iconSet.editor;return{bold:{cmd:"bold",icon:U.bold,tip:N.bold,key:66},italic:{cmd:"italic",icon:U.italic,tip:N.italic,key:73},strike:{cmd:"strikeThrough",icon:U.strikethrough,tip:N.strikethrough,key:83},underline:{cmd:"underline",icon:U.underline,tip:N.underline,key:85},unordered:{cmd:"insertUnorderedList",icon:U.unorderedList,tip:N.unorderedList},ordered:{cmd:"insertOrderedList",icon:U.orderedList,tip:N.orderedList},subscript:{cmd:"subscript",icon:U.subscript,tip:N.subscript,htmlTip:"x<subscript>2</subscript>"},superscript:{cmd:"superscript",icon:U.superscript,tip:N.superscript,htmlTip:"x<superscript>2</superscript>"},link:{cmd:"link",disable:ue=>ue.caret&&!ue.caret.can("link"),icon:U.hyperlink,tip:N.hyperlink,key:76},fullscreen:{cmd:"fullscreen",icon:U.toggleFullscreen,tip:N.toggleFullscreen,key:70},viewsource:{cmd:"viewsource",icon:U.viewSource,tip:N.viewSource},quote:{cmd:"formatBlock",param:"BLOCKQUOTE",icon:U.quote,tip:N.quote,key:81},left:{cmd:"justifyLeft",icon:U.left,tip:N.left},center:{cmd:"justifyCenter",icon:U.center,tip:N.center},right:{cmd:"justifyRight",icon:U.right,tip:N.right},justify:{cmd:"justifyFull",icon:U.justify,tip:N.justify},print:{type:"no-state",cmd:"print",icon:U.print,tip:N.print,key:80},outdent:{type:"no-state",disable:ue=>ue.caret&&!ue.caret.can("outdent"),cmd:"outdent",icon:U.outdent,tip:N.outdent},indent:{type:"no-state",disable:ue=>ue.caret&&!ue.caret.can("indent"),cmd:"indent",icon:U.indent,tip:N.indent},removeFormat:{type:"no-state",cmd:"removeFormat",icon:U.removeFormat,tip:N.removeFormat},hr:{type:"no-state",cmd:"insertHorizontalRule",icon:U.hr,tip:N.hr},undo:{type:"no-state",cmd:"undo",icon:U.undo,tip:N.undo,key:90},redo:{type:"no-state",cmd:"redo",icon:U.redo,tip:N.redo,key:89},h1:{cmd:"formatBlock",param:"H1",icon:U.heading1||U.heading,tip:N.heading1,htmlTip:`<h1 class="q-ma-none">${N.heading1}</h1>`},h2:{cmd:"formatBlock",param:"H2",icon:U.heading2||U.heading,tip:N.heading2,htmlTip:`<h2 class="q-ma-none">${N.heading2}</h2>`},h3:{cmd:"formatBlock",param:"H3",icon:U.heading3||U.heading,tip:N.heading3,htmlTip:`<h3 class="q-ma-none">${N.heading3}</h3>`},h4:{cmd:"formatBlock",param:"H4",icon:U.heading4||U.heading,tip:N.heading4,htmlTip:`<h4 class="q-ma-none">${N.heading4}</h4>`},h5:{cmd:"formatBlock",param:"H5",icon:U.heading5||U.heading,tip:N.heading5,htmlTip:`<h5 class="q-ma-none">${N.heading5}</h5>`},h6:{cmd:"formatBlock",param:"H6",icon:U.heading6||U.heading,tip:N.heading6,htmlTip:`<h6 class="q-ma-none">${N.heading6}</h6>`},p:{cmd:"formatBlock",param:e.paragraphTag,icon:U.heading,tip:N.paragraph},code:{cmd:"formatBlock",param:"PRE",icon:U.code,htmlTip:`<code>${N.code}</code>`},"size-1":{cmd:"fontSize",param:"1",icon:U.size1||U.size,tip:N.size1,htmlTip:`<font size="1">${N.size1}</font>`},"size-2":{cmd:"fontSize",param:"2",icon:U.size2||U.size,tip:N.size2,htmlTip:`<font size="2">${N.size2}</font>`},"size-3":{cmd:"fontSize",param:"3",icon:U.size3||U.size,tip:N.size3,htmlTip:`<font size="3">${N.size3}</font>`},"size-4":{cmd:"fontSize",param:"4",icon:U.size4||U.size,tip:N.size4,htmlTip:`<font size="4">${N.size4}</font>`},"size-5":{cmd:"fontSize",param:"5",icon:U.size5||U.size,tip:N.size5,htmlTip:`<font size="5">${N.size5}</font>`},"size-6":{cmd:"fontSize",param:"6",icon:U.size6||U.size,tip:N.size6,htmlTip:`<font size="6">${N.size6}</font>`},"size-7":{cmd:"fontSize",param:"7",icon:U.size7||U.size,tip:N.size7,htmlTip:`<font size="7">${N.size7}</font>`}}}),m=r.computed(()=>{const N=e.definitions||{},U=e.definitions||e.fonts?rv(!0,{},y.value,N,o_(f,o.lang.editor.defaultFont,o.iconSet.editor.font,e.fonts)):y.value;return e.toolbar.map(ue=>ue.map(W=>{if(W.options)return{type:"dropdown",icon:W.icon,label:W.label,size:"sm",dense:!0,fixedLabel:W.fixedLabel,fixedIcon:W.fixedIcon,highlight:W.highlight,list:W.list,options:W.options.map(_e=>U[_e])};const ve=U[W];return ve?ve.type==="no-state"||N[W]&&(ve.cmd===void 0||y.value[ve.cmd]&&y.value[ve.cmd].type==="no-state")?ve:Object.assign({type:"toggle"},ve):{type:"slot",slot:W}}))}),w={$q:o,props:e,slots:t,emit:n,inFullscreen:i,toggleFullscreen:s,runCmd:x,isViewingSource:v,editLinkUrl:g,toolbarBackgroundClass:b,buttonProps:S,contentRef:c,buttons:m,setContent:$};r.watch(()=>e.modelValue,N=>{p!==N&&(p=N,$(N,!0))}),r.watch(g,N=>{n(`link${N?"Show":"Hide"}`)});const E=r.computed(()=>e.toolbar&&e.toolbar.length!==0),C=r.computed(()=>{const N={},U=ue=>{ue.key&&(N[ue.key]={cmd:ue.cmd,param:ue.param})};return m.value.forEach(ue=>{ue.forEach(W=>{W.options?W.options.forEach(U):U(W)})}),N}),R=r.computed(()=>i.value?e.contentStyle:[{minHeight:e.minHeight,height:e.height,maxHeight:e.maxHeight},e.contentStyle]),H=r.computed(()=>`q-editor q-editor--${v.value===!0?"source":"default"}`+(e.disable===!0?" disabled":"")+(i.value===!0?" fullscreen column":"")+(e.square===!0?" q-editor--square no-border-radius":"")+(e.flat===!0?" q-editor--flat":"")+(e.dense===!0?" q-editor--dense":"")+(l.value===!0?" q-editor--dark q-dark":"")),q=r.computed(()=>[e.contentClass,"q-editor__content",{col:i.value,"overflow-auto":i.value||e.maxHeight}]),T=r.computed(()=>e.disable===!0?{"aria-disabled":"true"}:{});function M(){if(c.value!==null){const N=`inner${v.value===!0?"Text":"HTML"}`,U=c.value[N];U!==e.modelValue&&(p=U,n("update:modelValue",U))}}function O(N){if(n("keydown",N),N.ctrlKey!==!0||rr(N)===!0){Y();return}const U=N.keyCode,ue=C.value[U];if(ue!==void 0){const{cmd:W,param:ve}=ue;Fe(N),x(W,ve,!1)}}function k(N){Y(),n("click",N)}function A(N){if(c.value!==null){const{scrollTop:U,scrollHeight:ue}=c.value;_=ue-U}w.caret.save(),n("blur",N)}function D(N){r.nextTick(()=>{c.value!==null&&_!==void 0&&(c.value.scrollTop=c.value.scrollHeight-_)}),n("focus",N)}function z(N){const U=d.value;if(U!==null&&U.contains(N.target)===!0&&(N.relatedTarget===null||U.contains(N.relatedTarget)!==!0)){const ue=`inner${v.value===!0?"Text":"HTML"}`;w.caret.restorePosition(c.value[ue].length),Y()}}function F(N){const U=d.value;U!==null&&U.contains(N.target)===!0&&(N.relatedTarget===null||U.contains(N.relatedTarget)!==!0)&&(w.caret.savePosition(),Y())}function Z(){_=void 0}function he(N){w.caret.save()}function $(N,U){if(c.value!==null){U===!0&&w.caret.savePosition();const ue=`inner${v.value===!0?"Text":"HTML"}`;c.value[ue]=N,U===!0&&(w.caret.restorePosition(c.value[ue].length),Y())}}function x(N,U,ue=!0){B(),w.caret.restore(),w.caret.apply(N,U,()=>{B(),w.caret.save(),ue&&Y()})}function Y(){setTimeout(()=>{g.value=null,a.$forceUpdate()},1)}function B(){Br(()=>{c.value?.focus({preventScroll:!0})})}function le(){return c.value}return r.onMounted(()=>{w.caret=a.caret=new t_(c.value,w),$(e.modelValue),Y(),document.addEventListener("selectionchange",he)}),r.onBeforeUnmount(()=>{document.removeEventListener("selectionchange",he)}),Object.assign(a,{runCmd:x,refreshToolbar:Y,focus:B,getContentEl:le}),()=>{let N;if(E.value){const U=[r.h("div",{key:"qedt_top",class:"q-editor__toolbar row no-wrap scroll-x"+b.value},a_(w))];g.value!==null&&U.push(r.h("div",{key:"qedt_btm",class:"q-editor__toolbar row no-wrap items-center scroll-x"+b.value},l_(w))),N=r.h("div",{key:"toolbar_ctainer",class:"q-editor__toolbars-container"},U)}return r.h("div",{ref:d,class:H.value,style:{height:i.value===!0?"100%":null},...T.value,onFocusin:z,onFocusout:F},[N,r.h("div",{ref:c,style:R.value,class:q.value,contenteditable:h.value,placeholder:e.placeholder,...u.listeners.value,onInput:M,onKeydown:O,onClick:k,onBlur:A,onFocus:D,onMousedown:Z,onTouchstartPassive:Z})])}}});var bs=ie({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=r.computed(()=>parseInt(e.lines,10)),a=r.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(n.value===1?" ellipsis":"")),o=r.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>r.h("div",{style:o.value,class:a.value},Te(t.default))}}),ps=ie({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},emits:["show","hide"],setup(e,{slots:t,emit:n}){let a=!1,o,l,i=null,s=null,u,d;function c(){o?.(),o=null,a=!1,i!==null&&(clearTimeout(i),i=null),s!==null&&(clearTimeout(s),s=null),l?.removeEventListener("transitionend",u),u=null}function g(_,p,b){p!==void 0&&(_.style.height=`${p}px`),_.style.transition=`height ${e.duration}ms cubic-bezier(.25, .8, .50, 1)`,a=!0,o=b}function v(_,p){_.style.overflowY=null,_.style.height=null,_.style.transition=null,c(),p!==d&&n(p)}function h(_,p){let b=0;l=_,a===!0?(c(),b=_.offsetHeight===_.scrollHeight?0:void 0):(d="hide",_.style.overflowY="hidden"),g(_,b,p),i=setTimeout(()=>{i=null,_.style.height=`${_.scrollHeight}px`,u=S=>{s=null,(Object(S)!==S||S.target===_)&&v(_,"show")},_.addEventListener("transitionend",u),s=setTimeout(u,e.duration*1.1)},100)}function f(_,p){let b;l=_,a===!0?c():(d="show",_.style.overflowY="hidden",b=_.scrollHeight),g(_,b,p),i=setTimeout(()=>{i=null,_.style.height=0,u=S=>{s=null,(Object(S)!==S||S.target===_)&&v(_,"hide")},_.addEventListener("transitionend",u),s=setTimeout(u,e.duration*1.1)},100)}return r.onBeforeUnmount(()=>{a===!0&&c()}),()=>r.h(r.Transition,{css:!1,appear:e.appear,onEnter:h,onLeave:f},t.default)}}),u_={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},ys={xs:2,sm:4,md:8,lg:16,xl:24},hr=ie({name:"QSeparator",props:{...Ye,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=r.getCurrentInstance(),n=Ge(e,t.proxy.$q),a=r.computed(()=>e.vertical===!0?"vertical":"horizontal"),o=r.computed(()=>` q-separator--${a.value}`),l=r.computed(()=>e.inset!==!1?`${o.value}-${u_[e.inset]}`:""),i=r.computed(()=>`q-separator${o.value}${l.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(n.value===!0?" q-separator--dark":"")),s=r.computed(()=>{const u={};if(e.size!==void 0&&(u[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const d=e.spaced===!0?`${ys.md}px`:e.spaced in ys?`${ys[e.spaced]}px`:e.spaced,c=e.vertical===!0?["Left","Right"]:["Top","Bottom"];u[`margin${c[0]}`]=u[`margin${c[1]}`]=d}return u});return()=>r.h("hr",{class:i.value,style:s.value,"aria-orientation":a.value})}}),gr=r.shallowReactive({}),c_=Object.keys(ba);ie({name:"QExpansionItem",props:{...ba,...Ir,...Ye,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,toggleAriaLabel:String,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:{},headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,hideExpandIcon:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},emits:[...Dr,"click","afterShow","afterHide"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=Ge(e,a),l=r.ref(e.modelValue!==null?e.modelValue:e.defaultOpened),i=r.ref(null),s=Io(),{show:u,hide:d,toggle:c}=$r({showing:l});let g,v;const h=r.computed(()=>`q-expansion-item q-item-type q-expansion-item--${l.value===!0?"expanded":"collapsed"} q-expansion-item--${e.popup===!0?"popup":"standard"}`),f=r.computed(()=>e.contentInsetLevel===void 0?null:{["padding"+(a.lang.rtl===!0?"Right":"Left")]:e.contentInsetLevel*56+"px"}),_=r.computed(()=>e.disable!==!0&&(e.href!==void 0||e.to!==void 0&&e.to!==null&&e.to!=="")),p=r.computed(()=>{const z={};return c_.forEach(F=>{z[F]=e[F]}),z}),b=r.computed(()=>_.value===!0||e.expandIconToggle!==!0),S=r.computed(()=>e.expandedIcon!==void 0&&l.value===!0?e.expandedIcon:e.expandIcon||a.iconSet.expansionItem[e.denseToggle===!0?"denseIcon":"icon"]),y=r.computed(()=>e.disable!==!0&&(_.value===!0||e.expandIconToggle===!0)),m=r.computed(()=>({expanded:l.value===!0,detailsId:s.value,toggle:c,show:u,hide:d})),w=r.computed(()=>{const z=e.toggleAriaLabel!==void 0?e.toggleAriaLabel:a.lang.label[l.value===!0?"collapse":"expand"](e.label);return{role:"button","aria-expanded":l.value===!0?"true":"false","aria-controls":s.value,"aria-label":z}});r.watch(()=>e.group,z=>{v?.(),z!==void 0&&T()});function E(z){_.value!==!0&&c(z),n("click",z)}function C(z){z.keyCode===13&&R(z,!0)}function R(z,F){F!==!0&&z.qAvoidFocus!==!0&&i.value?.focus(),c(z),Fe(z)}function H(){n("afterShow")}function q(){n("afterHide")}function T(){g===void 0&&(g=_a()),l.value===!0&&(gr[e.group]=g);const z=r.watch(l,Z=>{Z===!0?gr[e.group]=g:gr[e.group]===g&&delete gr[e.group]}),F=r.watch(()=>gr[e.group],(Z,he)=>{he===g&&Z!==void 0&&Z!==g&&d()});v=()=>{z(),F(),gr[e.group]===g&&delete gr[e.group],v=void 0}}function M(){const z={class:[`q-focusable relative-position cursor-pointer${e.denseToggle===!0&&e.switchToggleSide===!0?" items-end":""}`,e.expandIconClass],side:e.switchToggleSide!==!0,avatar:e.switchToggleSide},F=[r.h(Xe,{class:"q-expansion-item__toggle-icon"+(e.expandedIcon===void 0&&l.value===!0?" q-expansion-item__toggle-icon--rotated":""),name:S.value})];return y.value===!0&&(Object.assign(z,{tabindex:0,...w.value,onClick:R,onKeyup:C}),F.unshift(r.h("div",{ref:i,class:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",tabindex:-1}))),r.h(Un,z,()=>F)}function O(){let z;return t.header!==void 0?z=[].concat(t.header(m.value)):(z=[r.h(Un,()=>[r.h(bs,{lines:e.labelLines},()=>e.label||""),e.caption?r.h(bs,{lines:e.captionLines,caption:!0},()=>e.caption):null])],e.icon&&z[e.switchToggleSide===!0?"push":"unshift"](r.h(Un,{side:e.switchToggleSide===!0,avatar:e.switchToggleSide!==!0},()=>r.h(Xe,{name:e.icon})))),e.disable!==!0&&e.hideExpandIcon!==!0&&z[e.switchToggleSide===!0?"unshift":"push"](M()),z}function k(){const z={ref:"item",style:e.headerStyle,class:e.headerClass,dark:o.value,disable:e.disable,dense:e.dense,insetLevel:e.headerInsetLevel};return b.value===!0&&(z.clickable=!0,z.onClick=E,Object.assign(z,_.value===!0?p.value:w.value)),r.h(Xo,z,O)}function A(){return r.withDirectives(r.h("div",{key:"e-content",class:"q-expansion-item__content relative-position",style:f.value,id:s.value},Te(t.default)),[[r.vShow,l.value]])}function D(){const z=[k(),r.h(ps,{duration:e.duration,onShow:H,onHide:q},A)];return e.expandSeparator===!0&&z.push(r.h(hr,{class:"q-expansion-item__border q-expansion-item__border--top absolute-top",dark:o.value}),r.h(hr,{class:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",dark:o.value})),z}return e.group!==void 0&&T(),r.onBeforeUnmount(()=>{v?.()}),()=>r.h("div",{class:h.value},[r.h("div",{class:"q-expansion-item__container relative-position"},D())])}});var d_=["top","right","bottom","left"],_s={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=>d_.includes(e)},externalLabel:Boolean,hideLabel:{type:Boolean},labelClass:[Array,String,Object],labelStyle:[Array,String,Object],disable:Boolean,tabindex:[Number,String]};function av(e,t){return{formClass:r.computed(()=>`q-fab--form-${e.square===!0?"square":"rounded"}`),stacked:r.computed(()=>e.externalLabel===!1&&["top","bottom"].includes(e.labelPosition)),labelProps:r.computed(()=>{if(e.externalLabel===!0){const n=e.hideLabel===null?t.value===!1:e.hideLabel;return{action:"push",data:{class:[e.labelClass,`q-fab__label q-tooltip--style q-fab__label--external q-fab__label--external-${e.labelPosition}`+(n===!0?" q-fab__label--external-hidden":"")],style:e.labelStyle}}}return{action:["left","top"].includes(e.labelPosition)?"unshift":"push",data:{class:[e.labelClass,`q-fab__label q-fab__label--internal q-fab__label--internal-${e.labelPosition}`+(e.hideLabel===!0?" q-fab__label--internal-hidden":"")],style:e.labelStyle}}})}}var f_=["up","right","down","left"],v_=["left","center","right"];ie({name:"QFab",props:{..._s,...Ir,icon:String,activeIcon:String,hideIcon:Boolean,hideLabel:{..._s.hideLabel,default:null},direction:{type:String,default:"right",validator:e=>f_.includes(e)},persistent:Boolean,verticalActionsAlign:{type:String,default:"center",validator:e=>v_.includes(e)}},emits:Dr,setup(e,{slots:t}){const n=r.ref(null),a=r.ref(e.modelValue===!0),o=Io(),{proxy:{$q:l}}=r.getCurrentInstance(),{formClass:i,labelProps:s}=av(e,a),u=r.computed(()=>e.persistent!==!0),{hide:d,toggle:c}=$r({showing:a,hideOnRouteChange:u}),g=r.computed(()=>({opened:a.value})),v=r.computed(()=>`q-fab z-fab row inline justify-center q-fab--align-${e.verticalActionsAlign} ${i.value}`+(a.value===!0?" q-fab--opened":" q-fab--closed")),h=r.computed(()=>`q-fab__actions flex no-wrap inline q-fab__actions--${e.direction} q-fab__actions--${a.value===!0?"opened":"closed"}`),f=r.computed(()=>{const S={id:o.value,role:"menu"};return a.value!==!0&&(S["aria-hidden"]="true"),S}),_=r.computed(()=>`q-fab__icon-holder q-fab__icon-holder--${a.value===!0?"opened":"closed"}`);function p(S,y){const m=t[S],w=`q-fab__${S} absolute-full`;return m===void 0?r.h(Xe,{class:w,name:e[y]||l.iconSet.fab[y]}):r.h("div",{class:w},m(g.value))}function b(){const S=[];return e.hideIcon!==!0&&S.push(r.h("div",{class:_.value},[p("icon","icon"),p("active-icon","activeIcon")])),(e.label!==""||t.label!==void 0)&&S[s.value.action](r.h("div",s.value.data,t.label!==void 0?t.label(g.value):[e.label])),ht(t.tooltip,S)}return r.provide(ad,{showing:a,onChildClick(S){d(S),S?.qAvoidFocus!==!0&&n.value?.$el.focus()}}),()=>r.h("div",{class:v.value},[r.h(Ze,{ref:n,class:i.value,...e,noWrap:!0,stack:e.stacked,align:void 0,icon:void 0,label:void 0,noCaps:!0,fab:!0,"aria-expanded":a.value===!0?"true":"false","aria-haspopup":"true","aria-controls":o.value,onClick:c},b),r.h("div",{class:h.value,...f.value},Te(t.default))])}});var ov={start:"self-end",center:"self-center",end:"self-start"},m_=Object.keys(ov);ie({name:"QFabAction",props:{..._s,icon:{type:String,default:""},anchor:{type:String,validator:e=>m_.includes(e)},to:[String,Object],replace:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const a=r.inject(ad,()=>({showing:{value:!0},onChildClick:wt})),{formClass:o,labelProps:l}=av(e,a.showing),i=r.computed(()=>{const g=ov[e.anchor];return o.value+(g!==void 0?` ${g}`:"")}),s=r.computed(()=>e.disable===!0||a.showing.value!==!0);function u(g){a.onChildClick(g),n("click",g)}function d(){const g=[];return t.icon!==void 0?g.push(t.icon()):e.icon!==""&&g.push(r.h(Xe,{name:e.icon})),(e.label!==""||t.label!==void 0)&&g[l.value.action](r.h("div",l.value.data,t.label!==void 0?t.label():[e.label])),ht(t.default,g)}const c=r.getCurrentInstance();return Object.assign(c.proxy,{click:u}),()=>r.h(Ze,{class:i.value,...e,noWrap:!0,stack:e.stacked,icon:void 0,label:void 0,noCaps:!0,fabMini:!0,disable:s.value,onClick:u},d)}});function h_({validate:e,resetValidation:t,requiresQForm:n}){const a=r.inject(od,!1);if(a!==!1){const{props:o,proxy:l}=r.getCurrentInstance();Object.assign(l,{validate:e,resetValidation:t}),r.watch(()=>o.disable,i=>{i===!0?(typeof t=="function"&&t(),a.unbindComponent(l)):a.bindComponent(l)}),r.onMounted(()=>{o.disable!==!0&&a.bindComponent(l)}),r.onBeforeUnmount(()=>{o.disable!==!0&&a.unbindComponent(l)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}var g_=[!0,!1,"ondemand"],b_={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>g_.includes(e)}};function p_(e,t){const{props:n,proxy:a}=r.getCurrentInstance(),o=r.ref(!1),l=r.ref(null),i=r.ref(!1);h_({validate:_,resetValidation:f});let s=0,u;const d=r.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),c=r.computed(()=>n.disable!==!0&&d.value===!0&&t.value===!1),g=r.computed(()=>n.error===!0||o.value===!0),v=r.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:l.value);r.watch(()=>n.modelValue,()=>{i.value=!0,c.value===!0&&n.lazyRules===!1&&p()});function h(){n.lazyRules!=="ondemand"&&c.value===!0&&i.value===!0&&p()}r.watch(()=>n.reactiveRules,b=>{b===!0?u===void 0&&(u=r.watch(()=>n.rules,h,{immediate:!0,deep:!0})):u!==void 0&&(u(),u=void 0)},{immediate:!0}),r.watch(()=>n.lazyRules,h),r.watch(e,b=>{b===!0?i.value=!0:c.value===!0&&n.lazyRules!=="ondemand"&&p()});function f(){s++,t.value=!1,i.value=!1,o.value=!1,l.value=null,p.cancel()}function _(b=n.modelValue){if(n.disable===!0||d.value===!1)return!0;const S=++s,y=t.value!==!0?()=>{i.value=!0}:()=>{},m=(E,C)=>{E===!0&&y(),o.value=E,l.value=C||null,t.value=!1},w=[];for(let E=0;E<n.rules.length;E++){const C=n.rules[E];let R;if(typeof C=="function"?R=C(b,zo):typeof C=="string"&&zo[C]!==void 0&&(R=zo[C](b)),R===!1||typeof R=="string")return m(!0,R),!1;R!==!0&&R!==void 0&&w.push(R)}return w.length===0?(m(!1),!0):(t.value=!0,Promise.all(w).then(E=>{if(E===void 0||Array.isArray(E)===!1||E.length===0)return S===s&&m(!1),!0;const C=E.find(R=>R===!1||typeof R=="string");return S===s&&m(C!==void 0,C),C===void 0},E=>(S===s&&(console.error(E),m(!0)),!1)))}const p=Lr(_,0);return r.onBeforeUnmount(()=>{u?.(),p.cancel()}),Object.assign(a,{resetValidation:f,validate:_}),xt(a,"hasError",()=>g.value),{isDirtyModel:i,hasRules:d,hasError:g,errorMessage:v,validate:_,resetValidation:f}}function br(e){return e!=null&&(""+e).length!==0}var lv={...Ye,...b_,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},Jo={...lv,maxlength:[Number,String]},Zo=["update:modelValue","clear","focus","blur"];function Vo({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){const{props:a,proxy:o}=r.getCurrentInstance(),l=Ge(a,o.$q),i=Io({required:e,getValue:()=>a.for});return{requiredForAttr:e,changeEvent:n,tag:t===!0?r.computed(()=>a.tag):{value:"label"},isDark:l,editable:r.computed(()=>a.disable!==!0&&a.readonly!==!0),innerLoading:r.ref(!1),focused:r.ref(!1),hasPopupOpen:!1,splitAttrs:tv(),targetUid:i,rootRef:r.ref(null),targetRef:r.ref(null),controlRef:r.ref(null)}}function el(e){const{props:t,emit:n,slots:a,attrs:o,proxy:l}=r.getCurrentInstance(),{$q:i}=l;let s=null;e.hasValue===void 0&&(e.hasValue=r.computed(()=>br(t.modelValue))),e.emitValue===void 0&&(e.emitValue=F=>{n("update:modelValue",F)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:H,onFocusout:q}),Object.assign(e,{clearValue:T,onControlFocusin:H,onControlFocusout:q,focus:C}),e.computedCounter===void 0&&(e.computedCounter=r.computed(()=>{if(t.counter!==!1){const F=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,Z=t.maxlength!==void 0?t.maxlength:t.maxValues;return F+(Z!==void 0?" / "+Z:"")}}));const{isDirtyModel:u,hasRules:d,hasError:c,errorMessage:g,resetValidation:v}=p_(e.focused,e.innerLoading),h=e.floatingLabel!==void 0?r.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):r.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),f=r.computed(()=>t.bottomSlots===!0||t.hint!==void 0||d.value===!0||t.counter===!0||t.error!==null),_=r.computed(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),p=r.computed(()=>`q-field row no-wrap items-start q-field--${_.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(h.value===!0?" q-field--float":"")+(S.value===!0?" q-field--labeled":"")+(t.dense===!0?" q-field--dense":"")+(t.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(e.isDark.value===!0?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value===!0?" q-field--focused":"")+(c.value===!0?" q-field--error":"")+(c.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&f.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),b=r.computed(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(c.value===!0?" text-negative":typeof t.standout=="string"&&t.standout.length!==0&&e.focused.value===!0?` ${t.standout}`:t.color!==void 0?` text-${t.color}`:"")),S=r.computed(()=>t.labelSlot===!0||t.label!==void 0),y=r.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&c.value!==!0?` text-${t.labelColor}`:"")),m=r.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:h.value,modelValue:t.modelValue,emitValue:e.emitValue})),w=r.computed(()=>{const F={};return e.targetUid.value&&(F.for=e.targetUid.value),t.disable===!0&&(F["aria-disabled"]="true"),F});function E(){const F=document.activeElement;let Z=e.targetRef?.value;Z&&(F===null||F.id!==e.targetUid.value)&&(Z.hasAttribute("tabindex")===!0||(Z=Z.querySelector("[tabindex]")),Z!==F&&Z?.focus({preventScroll:!0}))}function C(){Br(E)}function R(){N0(E);const F=document.activeElement;F!==null&&e.rootRef.value.contains(F)&&F.blur()}function H(F){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",F))}function q(F,Z){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,!(document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1))&&(e.focused.value===!0&&(e.focused.value=!1,n("blur",F)),Z?.())})}function T(F){Fe(F),i.platform.is.mobile!==!0?(e.targetRef?.value||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),t.type==="file"&&(e.inputRef.value.value=null),n("update:modelValue",null),e.changeEvent===!0&&n("change",null),n("clear",t.modelValue),r.nextTick(()=>{const Z=u.value;v(),u.value=Z})}function M(F){[13,32].includes(F.keyCode)&&T(F)}function O(){const F=[];return a.prepend!==void 0&&F.push(r.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Et},a.prepend())),F.push(r.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},k())),c.value===!0&&t.noErrorIcon===!1&&F.push(D("error",[r.h(Xe,{name:i.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?F.push(D("inner-loading-append",a.loading!==void 0?a.loading():[r.h(cn,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&F.push(D("inner-clearable-append",[r.h(Xe,{class:"q-field__focusable-action",name:t.clearIcon||i.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":i.lang.label.clear,onKeyup:M,onClick:T})])),a.append!==void 0&&F.push(r.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Et},a.append())),e.getInnerAppend!==void 0&&F.push(D("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&F.push(e.getControlChild()),F}function k(){const F=[];return t.prefix!==void 0&&t.prefix!==null&&F.push(r.h("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&F.push(e.getShadowControl()),S.value===!0&&F.push(r.h("div",{class:y.value},Te(a.label,t.label))),e.getControl!==void 0?F.push(e.getControl()):a.rawControl!==void 0?F.push(a.rawControl()):a.control!==void 0&&F.push(r.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},a.control(m.value))),t.suffix!==void 0&&t.suffix!==null&&F.push(r.h("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),F.concat(Te(a.default))}function A(){let F,Z;c.value===!0?g.value!==null?(F=[r.h("div",{role:"alert"},g.value)],Z=`q--slot-error-${g.value}`):(F=Te(a.error),Z="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(F=[r.h("div",t.hint)],Z=`q--slot-hint-${t.hint}`):(F=Te(a.hint),Z="q--slot-hint"));const he=t.counter===!0||a.counter!==void 0;if(t.hideBottomSpace===!0&&he===!1&&F===void 0)return;const $=r.h("div",{key:Z,class:"q-field__messages col"},F);return r.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:Et},[t.hideBottomSpace===!0?$:r.h(r.Transition,{name:"q-transition--field-message"},()=>$),he===!0?r.h("div",{class:"q-field__counter"},a.counter!==void 0?a.counter():e.computedCounter.value):null])}function D(F,Z){return Z===null?null:r.h("div",{key:F,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},Z)}let z=!1;return r.onDeactivated(()=>{z=!0}),r.onActivated(()=>{z===!0&&t.autofocus===!0&&l.focus()}),t.autofocus===!0&&r.onMounted(()=>{l.focus()}),r.onBeforeUnmount(()=>{s!==null&&clearTimeout(s)}),Object.assign(l,{focus:C,blur:R}),function(){const Z=e.getControl===void 0&&a.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...w.value}:w.value;return r.h(e.tag.value,{ref:e.rootRef,class:[p.value,o.class],style:o.style,...Z},[a.before!==void 0?r.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Et},a.before()):null,r.h("div",{class:"q-field__inner relative-position col self-stretch"},[r.h("div",{ref:e.controlRef,class:b.value,tabindex:-1,...e.controlEvents},O()),f.value===!0?A():null]),a.after!==void 0?r.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Et},a.after()):null])}}var y_=ie({name:"QField",inheritAttrs:!1,props:{...Jo,tag:{type:String,default:"label"}},emits:Zo,setup(){return el(Vo({tagProp:!0}))}});function Gr(e,t,n,a){const o=[];return e.forEach(l=>{a(l)===!0?o.push(l):t.push({failedPropValidation:n,file:l})}),o}function tl(e){e?.dataTransfer&&(e.dataTransfer.dropEffect="copy"),Fe(e)}var iv={multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},sv=["rejected"];function uv({editable:e,dnd:t,getFileInput:n,addFilesToQueue:a}){const{props:o,emit:l,proxy:i}=r.getCurrentInstance(),s=r.ref(null),u=r.computed(()=>o.accept!==void 0?o.accept.split(",").map(S=>(S=S.trim(),S==="*"?"*/":(S.endsWith("/*")&&(S=S.slice(0,S.length-1)),S.toUpperCase()))):null),d=r.computed(()=>parseInt(o.maxFiles,10)),c=r.computed(()=>parseInt(o.maxTotalSize,10));function g(S){if(e.value)if(S!==Object(S)&&(S={target:null}),S.target?.matches('input[type="file"]')===!0)S.clientX===0&&S.clientY===0&&ft(S);else{const y=n();y!==S.target&&y?.click(S)}}function v(S){e.value&&S&&a(null,S)}function h(S,y,m,w){let E=Array.from(y||S.target.files);const C=[],R=()=>{C.length!==0&&l("rejected",C)};if(o.accept!==void 0&&u.value.indexOf("*/")===-1&&(E=Gr(E,C,"accept",H=>u.value.some(q=>H.type.toUpperCase().startsWith(q)||H.name.toUpperCase().endsWith(q))),E.length===0))return R();if(o.maxFileSize!==void 0){const H=parseInt(o.maxFileSize,10);if(E=Gr(E,C,"max-file-size",q=>q.size<=H),E.length===0)return R()}if(o.multiple!==!0&&E.length!==0&&(E=[E[0]]),E.forEach(H=>{H.__key=H.webkitRelativePath+H.lastModified+H.name+H.size}),w===!0){const H=m.map(q=>q.__key);E=Gr(E,C,"duplicate",q=>H.includes(q.__key)===!1)}if(E.length===0)return R();if(o.maxTotalSize!==void 0){let H=w===!0?m.reduce((q,T)=>q+T.size,0):0;if(E=Gr(E,C,"max-total-size",q=>(H+=q.size,H<=c.value)),E.length===0)return R()}if(typeof o.filter=="function"){const H=o.filter(E);E=Gr(E,C,"filter",q=>H.includes(q))}if(o.maxFiles!==void 0){let H=w===!0?m.length:0;if(E=Gr(E,C,"max-files",()=>(H++,H<=d.value)),E.length===0)return R()}if(R(),E.length!==0)return E}function f(S){tl(S),t.value!==!0&&(t.value=!0)}function _(S){Fe(S),(S.relatedTarget!==null||He.is.safari!==!0?S.relatedTarget!==s.value:document.elementsFromPoint(S.clientX,S.clientY).includes(s.value)===!1)===!0&&(t.value=!1)}function p(S){tl(S);const y=S.dataTransfer.files;y.length!==0&&a(null,y),t.value=!1}function b(S){if(t.value===!0)return r.h("div",{ref:s,class:`q-${S}__dnd absolute-full`,onDragenter:tl,onDragover:tl,onDragleave:_,onDrop:p})}return Object.assign(i,{pickFiles:g,addFiles:v}),{pickFiles:g,addFiles:v,onDragover:f,onDragleave:_,processFiles:h,getDndNode:b,maxFilesNumber:d,maxTotalSizeNumber:c}}function cv(e,t){function n(){const a=e.modelValue;try{const o="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(a)===a&&("length"in a?Array.from(a):[a]).forEach(l=>{o.items.add(l)}),{files:o.files}}catch{return{files:void 0}}}return t===!0?r.computed(()=>{if(e.type==="file")return n()}):r.computed(n)}ie({name:"QFile",inheritAttrs:!1,props:{...lv,...nn,...iv,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:[...Zo,...sv],setup(e,{slots:t,emit:n,attrs:a}){const{proxy:o}=r.getCurrentInstance(),l=Vo(),i=r.ref(null),s=r.ref(!1),u=Bi(e),{pickFiles:d,onDragover:c,onDragleave:g,processFiles:v,getDndNode:h}=uv({editable:l.editable,dnd:s,getFileInput:M,addFilesToQueue:O}),f=cv(e),_=r.computed(()=>Object(e.modelValue)===e.modelValue?"length"in e.modelValue?Array.from(e.modelValue):[e.modelValue]:[]),p=r.computed(()=>br(_.value)),b=r.computed(()=>_.value.map(z=>z.name).join(", ")),S=r.computed(()=>hi(_.value.reduce((z,F)=>z+F.size,0))),y=r.computed(()=>({totalSize:S.value,filesNumber:_.value.length,maxFiles:e.maxFiles})),m=r.computed(()=>({tabindex:-1,type:"file",title:"",accept:e.accept,capture:e.capture,name:u.value,...a,id:l.targetUid.value,disabled:l.editable.value!==!0})),w=r.computed(()=>"q-file q-field--auto-height"+(s.value===!0?" q-file--dnd":"")),E=r.computed(()=>e.multiple===!0&&e.append===!0);function C(z){const F=_.value.slice();F.splice(z,1),H(F)}function R(z){const F=_.value.indexOf(z);F!==-1&&C(F)}function H(z){n("update:modelValue",e.multiple===!0?z:z[0])}function q(z){z.keyCode===13&&Et(z)}function T(z){(z.keyCode===13||z.keyCode===32)&&d(z)}function M(){return i.value}function O(z,F){const Z=v(z,F,_.value,E.value),he=M();he!=null&&(he.value=""),Z!==void 0&&((e.multiple===!0?e.modelValue&&Z.every($=>_.value.includes($)):e.modelValue===Z[0])||H(E.value===!0?_.value.concat(Z):Z))}function k(){return[r.h("input",{class:[e.inputClass,"q-file__filler"],style:e.inputStyle})]}function A(){if(t.file!==void 0)return _.value.length===0?k():_.value.map((F,Z)=>t.file({index:Z,file:F,ref:this}));if(t.selected!==void 0)return _.value.length===0?k():t.selected({files:_.value,ref:this});if(e.useChips===!0)return _.value.length===0?k():_.value.map((F,Z)=>r.h(rf,{key:"file-"+Z,removable:l.editable.value,dense:!0,textColor:e.color,tabindex:e.tabindex,onRemove:()=>{C(Z)}},()=>r.h("span",{class:"ellipsis",textContent:F.name})));const z=e.displayValue!==void 0?e.displayValue:b.value;return z.length!==0?[r.h("div",{class:e.inputClass,style:e.inputStyle,textContent:z})]:k()}function D(){const z={ref:i,...m.value,...f.value,class:"q-field__input fit absolute-full cursor-pointer",onChange:O};return e.multiple===!0&&(z.multiple=!0),r.h("input",z)}return Object.assign(l,{fieldClass:w,emitValue:H,hasValue:p,inputRef:i,innerValue:_,floatingLabel:r.computed(()=>p.value===!0||br(e.displayValue)),computedCounter:r.computed(()=>{if(e.counterLabel!==void 0)return e.counterLabel(y.value);const z=e.maxFiles;return`${_.value.length}${z!==void 0?" / "+z:""} (${S.value})`}),getControlChild:()=>h("file"),getControl:()=>{const z={ref:l.targetRef,class:"q-field__native row items-center cursor-pointer",tabindex:e.tabindex};return l.editable.value===!0&&Object.assign(z,{onDragover:c,onDragleave:g,onKeydown:q,onKeyup:T}),r.h("div",z,[D()].concat(A()))}}),Object.assign(o,{removeAtIndex:C,removeFile:R,getNativeElement:()=>i.value}),xt(o,"nativeEl",()=>i.value),el(l)}}),ie({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=r.inject(or,et);if(o===et)return console.error("QFooter needs to be child of QLayout"),et;const l=r.ref(parseInt(e.heightHint,10)),i=r.ref(!0),s=r.ref(Zt.value===!0||o.isContainer.value===!0?0:window.innerHeight),u=r.computed(()=>e.reveal===!0||o.view.value.indexOf("F")!==-1||a.platform.is.ios&&o.isContainer.value===!0),d=r.computed(()=>o.isContainer.value===!0?o.containerHeight.value:s.value),c=r.computed(()=>{if(e.modelValue!==!0)return 0;if(u.value===!0)return i.value===!0?l.value:0;const w=o.scroll.value.position+d.value+l.value-o.height.value;return w>0?w:0}),g=r.computed(()=>e.modelValue!==!0||u.value===!0&&i.value!==!0),v=r.computed(()=>e.modelValue===!0&&g.value===!0&&e.reveal===!0),h=r.computed(()=>"q-footer q-layout__section--marginal "+(u.value===!0?"fixed":"absolute")+"-bottom"+(e.bordered===!0?" q-footer--bordered":"")+(g.value===!0?" q-footer--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus"+(u.value!==!0?" hidden":""):"")),f=r.computed(()=>{const w=o.rows.value.bottom,E={};return w[0]==="l"&&o.left.space===!0&&(E[a.lang.rtl===!0?"right":"left"]=`${o.left.size}px`),w[2]==="r"&&o.right.space===!0&&(E[a.lang.rtl===!0?"left":"right"]=`${o.right.size}px`),E});function _(w,E){o.update("footer",w,E)}function p(w,E){w.value!==E&&(w.value=E)}function b({height:w}){p(l,w),_("size",w)}function S(){if(e.reveal!==!0)return;const{direction:w,position:E,inflectionPoint:C}=o.scroll.value;p(i,w==="up"||E-C<100||o.height.value-d.value-E-l.value<300)}function y(w){v.value===!0&&p(i,!0),n("focusin",w)}r.watch(()=>e.modelValue,w=>{_("space",w),p(i,!0),o.animate()}),r.watch(c,w=>{_("offset",w)}),r.watch(()=>e.reveal,w=>{w===!1&&p(i,e.modelValue)}),r.watch(i,w=>{o.animate(),n("reveal",w)}),r.watch([l,o.scroll,o.height],S),r.watch(()=>a.screen.height,w=>{o.isContainer.value!==!0&&p(s,w)});const m={};return o.instances.footer=m,e.modelValue===!0&&_("size",l.value),_("space",e.modelValue),_("offset",c.value),r.onBeforeUnmount(()=>{o.instances.footer===m&&(o.instances.footer=void 0,_("size",0),_("offset",0),_("space",!1))}),()=>{const w=ht(t.default,[r.h(vr,{debounce:0,onResize:b})]);return e.elevated===!0&&w.push(r.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),r.h("footer",{class:h.value,style:f.value,onFocusin:y},w)}}}),ie({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validationSuccess","validationError"],setup(e,{slots:t,emit:n}){const a=r.getCurrentInstance(),o=r.ref(null);let l=0;const i=[];function s(h){const f=typeof h=="boolean"?h:e.noErrorFocus!==!0,_=++l,p=(y,m)=>{n(`validation${y===!0?"Success":"Error"}`,m)},b=y=>{const m=y.validate();return typeof m.then=="function"?m.then(w=>({valid:w,comp:y}),w=>({valid:!1,comp:y,err:w})):Promise.resolve({valid:m,comp:y})};return(e.greedy===!0?Promise.all(i.map(b)).then(y=>y.filter(m=>m.valid!==!0)):i.reduce((y,m)=>y.then(()=>b(m).then(w=>{if(w.valid===!1)return Promise.reject(w)})),Promise.resolve()).catch(y=>[y])).then(y=>{if(y===void 0||y.length===0)return _===l&&p(!0),!0;if(_===l){const{comp:m,err:w}=y[0];if(w!==void 0&&console.error(w),p(!1,m),f===!0){const E=y.find(({comp:C})=>typeof C.focus=="function"&&$n(C.$)===!1);E!==void 0&&E.comp.focus()}}return!1})}function u(){l++,i.forEach(h=>{typeof h.resetValidation=="function"&&h.resetValidation()})}function d(h){h!==void 0&&Fe(h);const f=l+1;s().then(_=>{f===l&&_===!0&&(e.onSubmit!==void 0?n("submit",h):h?.target!==void 0&&typeof h.target.submit=="function"&&h.target.submit())})}function c(h){h!==void 0&&Fe(h),n("reset"),r.nextTick(()=>{u(),e.autofocus===!0&&e.noResetFocus!==!0&&g()})}function g(){Br(()=>{if(o.value===null)return;(o.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||o.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||o.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(o.value.querySelectorAll("[tabindex]"),f=>f.tabIndex!==-1))?.focus({preventScroll:!0})})}r.provide(od,{bindComponent(h){i.push(h)},unbindComponent(h){const f=i.indexOf(h);f!==-1&&i.splice(f,1)}});let v=!1;return r.onDeactivated(()=>{v=!0}),r.onActivated(()=>{v===!0&&e.autofocus===!0&&g()}),r.onMounted(()=>{e.autofocus===!0&&g()}),Object.assign(a.proxy,{validate:s,resetValidation:u,submit:d,reset:c,focus:g,getValidationComponents:()=>i}),()=>r.h("form",{class:"q-form",ref:o,onSubmit:d,onReset:c},Te(t.default))}}),ie({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=r.inject(or,et);if(o===et)return console.error("QHeader needs to be child of QLayout"),et;const l=r.ref(parseInt(e.heightHint,10)),i=r.ref(!0),s=r.computed(()=>e.reveal===!0||o.view.value.indexOf("H")!==-1||a.platform.is.ios&&o.isContainer.value===!0),u=r.computed(()=>{if(e.modelValue!==!0)return 0;if(s.value===!0)return i.value===!0?l.value:0;const S=l.value-o.scroll.value.position;return S>0?S:0}),d=r.computed(()=>e.modelValue!==!0||s.value===!0&&i.value!==!0),c=r.computed(()=>e.modelValue===!0&&d.value===!0&&e.reveal===!0),g=r.computed(()=>"q-header q-layout__section--marginal "+(s.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(d.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),v=r.computed(()=>{const S=o.rows.value.top,y={};return S[0]==="l"&&o.left.space===!0&&(y[a.lang.rtl===!0?"right":"left"]=`${o.left.size}px`),S[2]==="r"&&o.right.space===!0&&(y[a.lang.rtl===!0?"left":"right"]=`${o.right.size}px`),y});function h(S,y){o.update("header",S,y)}function f(S,y){S.value!==y&&(S.value=y)}function _({height:S}){f(l,S),h("size",S)}function p(S){c.value===!0&&f(i,!0),n("focusin",S)}r.watch(()=>e.modelValue,S=>{h("space",S),f(i,!0),o.animate()}),r.watch(u,S=>{h("offset",S)}),r.watch(()=>e.reveal,S=>{S===!1&&f(i,e.modelValue)}),r.watch(i,S=>{o.animate(),n("reveal",S)}),r.watch(o.scroll,S=>{e.reveal===!0&&f(i,S.direction==="up"||S.position<=e.revealOffset||S.position-S.inflectionPoint<100)});const b={};return o.instances.header=b,e.modelValue===!0&&h("size",l.value),h("space",e.modelValue),h("offset",u.value),r.onBeforeUnmount(()=>{o.instances.header===b&&(o.instances.header=void 0,h("size",0),h("offset",0),h("space",!1))}),()=>{const S=ga(t.default,[]);return e.elevated===!0&&S.push(r.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),S.push(r.h(vr,{debounce:0,onResize:_})),r.h("header",{class:g.value,style:v.value,onFocusin:p},S)}}});var Ss={ratio:[String,Number]};function ws(e,t){return r.computed(()=>{const n=Number(e.ratio||(t!==void 0?t.value:void 0));return isNaN(n)!==!0&&n>0?{paddingBottom:`${100/n}%`}:null})}var __=1.7778;ie({name:"QImg",props:{...Ss,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:__},placeholderSrc:String,errorSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(e,{slots:t,emit:n}){const a=r.ref(e.initialRatio),o=ws(e,a),l=r.getCurrentInstance(),{registerTimeout:i,removeTimeout:s}=On(),{registerTimeout:u,removeTimeout:d}=On(),c=r.computed(()=>e.placeholderSrc!==void 0?{src:e.placeholderSrc}:null),g=r.computed(()=>e.errorSrc!==void 0?{src:e.errorSrc,__qerror:!0}:null),v=[r.ref(null),r.ref(c.value)],h=r.ref(0),f=r.ref(!1),_=r.ref(!1),p=r.computed(()=>`q-img q-img--${e.noNativeMenu===!0?"no-":""}menu`),b=r.computed(()=>({width:e.width,height:e.height})),S=r.computed(()=>`q-img__image ${e.imgClass!==void 0?e.imgClass+" ":""}q-img__image--with${e.noTransition===!0?"out":""}-transition q-img__image--`),y=r.computed(()=>({...e.imgStyle,objectFit:e.fit,objectPosition:e.position}));function m(){if(d(),e.loadingShowDelay===0){f.value=!0;return}u(()=>{f.value=!0},e.loadingShowDelay)}function w(){d(),f.value=!1}function E({target:M}){$n(l)===!1&&(s(),a.value=M.naturalHeight===0?.5:M.naturalWidth/M.naturalHeight,C(M,1))}function C(M,O){O===1e3||$n(l)===!0||(M.complete===!0?R(M):i(()=>{C(M,O+1)},50))}function R(M){$n(l)!==!0&&(h.value=h.value^1,v[h.value].value=null,w(),M.getAttribute("__qerror")!=="true"&&(_.value=!1),n("load",M.currentSrc||M.src))}function H(M){s(),w(),_.value=!0,v[h.value].value=g.value,v[h.value^1].value=c.value,n("error",M)}function q(M){const O=v[M].value,k={key:"img_"+M,class:S.value,style:y.value,alt:e.alt,crossorigin:e.crossorigin,decoding:e.decoding,referrerpolicy:e.referrerpolicy,height:e.height,width:e.width,loading:e.loading,fetchpriority:e.fetchpriority,"aria-hidden":"true",draggable:e.draggable,...O};return h.value===M?Object.assign(k,{class:k.class+"current",onLoad:E,onError:H}):k.class+="loaded",r.h("div",{class:"q-img__container absolute-full",key:"img"+M},r.h("img",k))}function T(){return f.value===!1?r.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},Te(t[_.value===!0?"error":"default"])):r.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},t.loading!==void 0?t.loading():e.noSpinner===!0?void 0:[r.h(cn,{color:e.spinnerColor,size:e.spinnerSize})])}{let M=function(){r.watch(()=>e.src||e.srcset||e.sizes?{src:e.src,srcset:e.srcset,sizes:e.sizes}:null,O=>{s(),_.value=!1,O===null?(w(),v[h.value^1].value=c.value):m(),v[h.value].value=O},{immediate:!0})};Zt.value===!0?r.onMounted(M):M()}return()=>{const M=[];return o.value!==null&&M.push(r.h("div",{key:"filler",style:o.value})),v[0].value!==null&&M.push(q(0)),v[1].value!==null&&M.push(q(1)),M.push(r.h(r.Transition,{name:"q-transition--fade"},T)),r.h("div",{key:"main",class:p.value,style:b.value,role:"img","aria-label":e.alt},M)}}});var{passive:pr}=lt;ie({name:"QInfiniteScroll",props:{offset:{type:Number,default:500},debounce:{type:[String,Number],default:100},scrollTarget:sr,initialIndex:{type:Number,default:0},disable:Boolean,reverse:Boolean},emits:["load"],setup(e,{slots:t,emit:n}){const a=r.ref(!1),o=r.ref(!0),l=r.ref(null),i=r.ref(null);let s=e.initialIndex,u,d;const c=r.computed(()=>"q-infinite-scroll__loading"+(a.value===!0?"":" invisible"));function g(){if(e.disable===!0||a.value===!0||o.value===!1)return;const C=ko(u),R=Fn(u),H=Ar(u);e.reverse===!1?Math.round(R+H+e.offset)>=Math.round(C)&&v():Math.round(R)<=e.offset&&v()}function v(){if(e.disable===!0||a.value===!0||o.value===!1)return;s++,a.value=!0;const C=ko(u);n("load",s,R=>{o.value===!0&&(a.value=!1,r.nextTick(()=>{if(e.reverse===!0){const H=ko(u),q=Fn(u),T=H-C;jr(u,q+T)}R===!0?_():l.value&&l.value.closest("body")&&d()}))})}function h(){s=0}function f(){o.value===!1&&(o.value=!0,u.addEventListener("scroll",d,pr)),g()}function _(){o.value===!0&&(o.value=!1,a.value=!1,u.removeEventListener("scroll",d,pr),d?.cancel?.())}function p(){if(u&&o.value===!0&&u.removeEventListener("scroll",d,pr),u=pn(l.value,e.scrollTarget),o.value===!0){if(u.addEventListener("scroll",d,pr),e.reverse===!0){const C=ko(u),R=Ar(u);jr(u,C-R)}g()}}function b(C){s=C}function S(C){C=parseInt(C,10);const R=d;d=C<=0?g:Lr(g,isNaN(C)===!0?100:C),u&&o.value===!0&&(R!==void 0&&u.removeEventListener("scroll",R,pr),u.addEventListener("scroll",d,pr))}function y(C){if(m.value===!0){if(i.value===null){C!==!0&&r.nextTick(()=>{y(!0)});return}const R=`${a.value===!0?"un":""}pauseAnimations`;Array.from(i.value.getElementsByTagName("svg")).forEach(H=>{H[R]()})}}const m=r.computed(()=>e.disable!==!0&&o.value===!0);r.watch([a,m],()=>{y()}),r.watch(()=>e.disable,C=>{C===!0?_():f()}),r.watch(()=>e.reverse,()=>{a.value===!1&&o.value===!0&&g()}),r.watch(()=>e.scrollTarget,p),r.watch(()=>e.debounce,S);let w=!1;r.onActivated(()=>{w!==!1&&u&&jr(u,w)}),r.onDeactivated(()=>{w=u?Fn(u):!1}),r.onBeforeUnmount(()=>{o.value===!0&&u.removeEventListener("scroll",d,pr)}),r.onMounted(()=>{S(e.debounce),p(),a.value===!1&&y()});const E=r.getCurrentInstance();return Object.assign(E.proxy,{poll:()=>{d?.()},trigger:v,stop:_,reset:h,resume:f,setIndex:b,updateScrollTarget:p}),()=>{const C=ga(t.default,[]);return m.value===!0&&C[e.reverse===!1?"push":"unshift"](r.h("div",{ref:i,class:c.value},Te(t.loading))),r.h("div",{class:"q-infinite-scroll",ref:l},C)}}}),ie({name:"QInnerLoading",props:{...Ye,...ir,showing:Boolean,color:String,size:{type:[String,Number],default:"42px"},label:String,labelClass:String,labelStyle:[String,Array,Object]},setup(e,{slots:t}){const n=r.getCurrentInstance(),a=Ge(e,n.proxy.$q),{transitionProps:o,transitionStyle:l}=Co(e),i=r.computed(()=>"q-inner-loading q--avoid-card-border absolute-full column flex-center"+(a.value===!0?" q-inner-loading--dark":"")),s=r.computed(()=>"q-inner-loading__label"+(e.labelClass!==void 0?` ${e.labelClass}`:""));function u(){const c=[r.h(cn,{size:e.size,color:e.color})];return e.label!==void 0&&c.push(r.h("div",{class:s.value,style:e.labelStyle},[e.label])),c}function d(){return e.showing===!0?r.h("div",{class:i.value,style:l.value},t.default!==void 0?t.default():u()):null}return()=>r.h(r.Transition,o.value,d)}});var dv={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},{tokenMap:fv,tokenKeys:S_}=vv({"#":{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()}});function vv(e){const t=Object.keys(e),n={};return t.forEach(a=>{const o=e[a];n[a]={...o,regex:new RegExp(o.pattern)}}),{tokenMap:n,tokenKeys:t}}function mv(e){return new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+e.join("")+"])|(.)","g")}var hv=/[.*+?^${}()|[\]\\]/g,w_=mv(S_),kt="",C_={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean,maskTokens:Object};function k_(e,t,n,a){let o,l,i,s,u,d;const c=r.computed(()=>{if(e.maskTokens===void 0||e.maskTokens===null)return{tokenMap:fv,tokenRegexMask:w_};const{tokenMap:q}=vv(e.maskTokens),T={...fv,...q};return{tokenMap:T,tokenRegexMask:mv(Object.keys(T))}}),g=r.ref(null),v=r.ref(f());function h(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}r.watch(()=>e.type+e.autogrow,p),r.watch(()=>e.mask,q=>{if(q!==void 0)b(v.value,!0);else{const T=R(v.value);p(),e.modelValue!==T&&t("update:modelValue",T)}}),r.watch(()=>e.fillMask+e.reverseFillMask,()=>{g.value===!0&&b(v.value,!0)}),r.watch(()=>e.unmaskedValue,()=>{g.value===!0&&b(v.value)});function f(){if(p(),g.value===!0){const q=E(R(e.modelValue));return e.fillMask!==!1?H(q):q}return e.modelValue}function _(q){if(q<o.length)return o.slice(-q);let T="",M=o;const O=M.indexOf(kt);if(O!==-1){for(let k=q-M.length;k>0;k--)T+=kt;M=M.slice(0,O)+T+M.slice(O)}return M}function p(){if(g.value=e.mask!==void 0&&e.mask.length!==0&&h(),g.value===!1){s=void 0,o="",l="";return}const q=dv[e.mask]===void 0?e.mask:dv[e.mask],T=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",M=T.replace(hv,"\\$&"),O=[],k=[],A=[];let D=e.reverseFillMask===!0,z="",F="";q.replace(c.value.tokenRegexMask,(x,Y,B,le,N)=>{if(le!==void 0){const U=c.value.tokenMap[le];A.push(U),F=U.negate,D===!0&&(k.push("(?:"+F+"+)?("+U.pattern+"+)?(?:"+F+"+)?("+U.pattern+"+)?"),D=!1),k.push("(?:"+F+"+)?("+U.pattern+")?")}else if(B!==void 0)z="\\"+(B==="\\"?"":B),A.push(B),O.push("([^"+z+"]+)?"+z+"?");else{const U=Y!==void 0?Y:N;z=U==="\\"?"\\\\\\\\":U.replace(hv,"\\\\$&"),A.push(U),O.push("([^"+z+"]+)?"+z+"?")}});const Z=new RegExp("^"+O.join("")+"("+(z===""?".":"[^"+z+"]")+"+)?"+(z===""?"":"["+z+"]*")+"$"),he=k.length-1,$=k.map((x,Y)=>Y===0&&e.reverseFillMask===!0?new RegExp("^"+M+"*"+x):Y===he?new RegExp("^"+x+"("+(F===""?".":F)+"+)?"+(e.reverseFillMask===!0?"$":M+"*")):new RegExp("^"+x));i=A,s=x=>{const Y=Z.exec(e.reverseFillMask===!0?x:x.slice(0,A.length+1));Y!==null&&(x=Y.slice(1).join(""));const B=[],le=$.length;for(let N=0,U=x;N<le;N++){const ue=$[N].exec(U);if(ue===null)break;U=U.slice(ue.shift().length),B.push(...ue)}return B.length!==0?B.join(""):x},o=A.map(x=>typeof x=="string"?x:kt).join(""),l=o.split(kt).join(T)}function b(q,T,M){const O=a.value,k=O.selectionEnd,A=O.value.length-k,D=R(q);T===!0&&p();const z=E(D,T),F=e.fillMask!==!1?H(z):z,Z=v.value!==F;O.value!==F&&(O.value=F),Z===!0&&(v.value=F),document.activeElement===O&&r.nextTick(()=>{if(F===l){const $=e.reverseFillMask===!0?l.length:0;O.setSelectionRange($,$,"forward");return}if(M==="insertFromPaste"&&e.reverseFillMask!==!0){const $=O.selectionEnd;let x=k-1;for(let Y=u;Y<=x&&Y<$;Y++)o[Y]!==kt&&x++;y.right(O,x);return}if(["deleteContentBackward","deleteContentForward"].indexOf(M)!==-1){const $=e.reverseFillMask===!0?k===0?F.length>z.length?1:0:Math.max(0,F.length-(F===l?0:Math.min(z.length,A)+1))+1:k;O.setSelectionRange($,$,"forward");return}if(e.reverseFillMask===!0)if(Z===!0){const $=Math.max(0,F.length-(F===l?0:Math.min(z.length,A+1)));$===1&&k===1?O.setSelectionRange($,$,"forward"):y.rightReverse(O,$)}else{const $=F.length-A;O.setSelectionRange($,$,"backward")}else if(Z===!0){const $=Math.max(0,o.indexOf(kt),Math.min(z.length,k)-1);y.right(O,$)}else{const $=k-1;y.right(O,$)}});const he=e.unmaskedValue===!0?R(F):F;String(e.modelValue)!==he&&(e.modelValue!==null||he!=="")&&n(he,!0)}function S(q,T,M){const O=E(R(q.value));T=Math.max(0,o.indexOf(kt),Math.min(O.length,T)),u=T,q.setSelectionRange(T,M,"forward")}const y={left(q,T){const M=o.slice(T-1).indexOf(kt)===-1;let O=Math.max(0,T-1);for(;O>=0;O--)if(o[O]===kt){T=O,M===!0&&T++;break}if(O<0&&o[T]!==void 0&&o[T]!==kt)return y.right(q,0);T>=0&&q.setSelectionRange(T,T,"backward")},right(q,T){const M=q.value.length;let O=Math.min(M,T+1);for(;O<=M;O++)if(o[O]===kt){T=O;break}else o[O-1]===kt&&(T=O);if(O>M&&o[T-1]!==void 0&&o[T-1]!==kt)return y.left(q,M);q.setSelectionRange(T,T,"forward")},leftReverse(q,T){const M=_(q.value.length);let O=Math.max(0,T-1);for(;O>=0;O--)if(M[O-1]===kt){T=O;break}else if(M[O]===kt&&(T=O,O===0))break;if(O<0&&M[T]!==void 0&&M[T]!==kt)return y.rightReverse(q,0);T>=0&&q.setSelectionRange(T,T,"backward")},rightReverse(q,T){const M=q.value.length,O=_(M),k=O.slice(0,T+1).indexOf(kt)===-1;let A=Math.min(M,T+1);for(;A<=M;A++)if(O[A-1]===kt){T=A,T>0&&k===!0&&T--;break}if(A>M&&O[T-1]!==void 0&&O[T-1]!==kt)return y.leftReverse(q,M);q.setSelectionRange(T,T,"forward")}};function m(q){t("click",q),d=void 0}function w(q){if(t("keydown",q),rr(q)===!0||q.altKey===!0)return;const T=a.value,M=T.selectionStart,O=T.selectionEnd;if(q.shiftKey||(d=void 0),q.keyCode===37||q.keyCode===39){q.shiftKey&&d===void 0&&(d=T.selectionDirection==="forward"?M:O);const k=y[(q.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(q.preventDefault(),k(T,d===M?O:M),q.shiftKey){const A=T.selectionStart;T.setSelectionRange(Math.min(d,A),Math.max(d,A),"forward")}}else q.keyCode===8&&e.reverseFillMask!==!0&&M===O?(y.left(T,M),T.setSelectionRange(T.selectionStart,O,"backward")):q.keyCode===46&&e.reverseFillMask===!0&&M===O&&(y.rightReverse(T,O),T.setSelectionRange(M,T.selectionEnd,"forward"))}function E(q,T){if(q==null||q==="")return"";if(e.reverseFillMask===!0)return C(q,T);const M=i;let O=0,k="";for(let A=0;A<M.length;A++){const D=q[O],z=M[A];if(typeof z=="string")k+=z,T===!0&&D===z&&O++;else if(D!==void 0&&z.regex.test(D))k+=z.transform!==void 0?z.transform(D):D,O++;else return k}return k}function C(q,T){const M=i,O=o.indexOf(kt);let k=q.length-1,A="";for(let D=M.length-1;D>=0&&k!==-1;D--){const z=M[D];let F=q[k];if(typeof z=="string")A=z+A,T===!0&&F===z&&k--;else if(F!==void 0&&z.regex.test(F))do A=(z.transform!==void 0?z.transform(F):F)+A,k--,F=q[k];while(O===D&&F!==void 0&&z.regex.test(F));else return A}return A}function R(q){return typeof q!="string"||s===void 0?typeof q=="number"?s(""+q):q:s(q)}function H(q){return l.length-q.length<=0?q:e.reverseFillMask===!0&&q.length!==0?l.slice(0,-q.length)+q:q+l.slice(q.length)}return{innerValue:v,hasMask:g,moveCursorForPaste:S,updateMaskValue:b,onMaskedKeydown:w,onMaskedClick:m}}var x_=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,E_=/[\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,T_=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,q_=/[a-z0-9_ -]$/i;function gv(e){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,e(n)}else n.type==="compositionupdate"&&n.target.qComposing!==!0&&typeof n.data=="string"&&(He.is.firefox===!0?q_.test(n.data)===!1:x_.test(n.data)===!0||E_.test(n.data)===!0||T_.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}var bv=ie({name:"QInput",inheritAttrs:!1,props:{...Jo,...C_,...nn,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Zo,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l={};let i=NaN,s,u,d=null,c;const g=r.ref(null),v=Bi(e),{innerValue:h,hasMask:f,moveCursorForPaste:_,updateMaskValue:p,onMaskedKeydown:b,onMaskedClick:S}=k_(e,t,D,g),y=cv(e,!0),m=r.computed(()=>br(h.value)),w=gv(k),E=Vo({changeEvent:!0}),C=r.computed(()=>e.type==="textarea"||e.autogrow===!0),R=r.computed(()=>C.value===!0||["text","search","url","tel","password"].includes(e.type)),H=r.computed(()=>{const x={...E.splitAttrs.listeners.value,onInput:k,onPaste:O,onChange:F,onBlur:Z,onFocus:ft};return x.onCompositionstart=x.onCompositionupdate=x.onCompositionend=w,f.value===!0&&(x.onKeydown=b,x.onClick=S),e.autogrow===!0&&(x.onAnimationend=A),x}),q=r.computed(()=>{const x={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:v.value,...E.splitAttrs.attributes.value,id:E.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return C.value===!1&&(x.type=e.type),e.autogrow===!0&&(x.rows=1),x});r.watch(()=>e.type,()=>{g.value&&(g.value.value=e.modelValue)}),r.watch(()=>e.modelValue,x=>{if(f.value===!0){if(u===!0&&(u=!1,String(x)===i))return;p(x)}else h.value!==x&&(h.value=x,e.type==="number"&&l.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete l.value));e.autogrow===!0&&r.nextTick(z)}),r.watch(()=>e.autogrow,x=>{x===!0?r.nextTick(z):g.value!==null&&n.rows>0&&(g.value.style.height="auto")}),r.watch(()=>e.dense,()=>{e.autogrow===!0&&r.nextTick(z)});function T(){Br(()=>{const x=document.activeElement;g.value!==null&&g.value!==x&&(x===null||x.id!==E.targetUid.value)&&g.value.focus({preventScroll:!0})})}function M(){g.value?.select()}function O(x){if(f.value===!0&&e.reverseFillMask!==!0){const Y=x.target;_(Y,Y.selectionStart,Y.selectionEnd)}t("paste",x)}function k(x){if(!x||!x.target)return;if(e.type==="file"){t("update:modelValue",x.target.files);return}const Y=x.target.value;if(x.target.qComposing===!0){l.value=Y;return}if(f.value===!0)p(Y,!1,x.inputType);else if(D(Y),R.value===!0&&x.target===document.activeElement){const{selectionStart:B,selectionEnd:le}=x.target;B!==void 0&&le!==void 0&&r.nextTick(()=>{x.target===document.activeElement&&Y.indexOf(x.target.value)===0&&x.target.setSelectionRange(B,le)})}e.autogrow===!0&&z()}function A(x){t("animationend",x),z()}function D(x,Y){c=()=>{d=null,e.type!=="number"&&l.hasOwnProperty("value")===!0&&delete l.value,e.modelValue!==x&&i!==x&&(i=x,Y===!0&&(u=!0),t("update:modelValue",x),r.nextTick(()=>{i===x&&(i=NaN)})),c=void 0},e.type==="number"&&(s=!0,l.value=x),e.debounce!==void 0?(d!==null&&clearTimeout(d),l.value=x,d=setTimeout(c,e.debounce)):c()}function z(){requestAnimationFrame(()=>{const x=g.value;if(x!==null){const Y=x.parentNode.style,{scrollTop:B}=x,{overflowY:le,maxHeight:N}=o.platform.is.firefox===!0?{}:window.getComputedStyle(x),U=le!==void 0&&le!=="scroll";U===!0&&(x.style.overflowY="hidden"),Y.marginBottom=x.scrollHeight-1+"px",x.style.height="1px",x.style.height=x.scrollHeight+"px",U===!0&&(x.style.overflowY=parseInt(N,10)<x.scrollHeight?"auto":"hidden"),Y.marginBottom="",x.scrollTop=B}})}function F(x){w(x),d!==null&&(clearTimeout(d),d=null),c?.(),t("change",x.target.value)}function Z(x){x!==void 0&&ft(x),d!==null&&(clearTimeout(d),d=null),c?.(),s=!1,u=!1,delete l.value,e.type!=="file"&&setTimeout(()=>{g.value!==null&&(g.value.value=h.value!==void 0?h.value:"")})}function he(){return l.hasOwnProperty("value")===!0?l.value:h.value!==void 0?h.value:""}r.onBeforeUnmount(()=>{Z()}),r.onMounted(()=>{e.autogrow===!0&&z()}),Object.assign(E,{innerValue:h,fieldClass:r.computed(()=>`q-${C.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:r.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:g,emitValue:D,hasValue:m,floatingLabel:r.computed(()=>m.value===!0&&(e.type!=="number"||isNaN(h.value)===!1)||br(e.displayValue)),getControl:()=>r.h(C.value===!0?"textarea":"input",{ref:g,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...q.value,...H.value,...e.type!=="file"?{value:he()}:y.value}),getShadowControl:()=>r.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(C.value===!0?"":" text-no-wrap")},[r.h("span",{class:"invisible"},he()),r.h("span",e.shadowText)])});const $=el(E);return Object.assign(a,{focus:T,select:M,getNativeElement:()=>g.value}),xt(a,"nativeEl",()=>g.value),$}}),pv={threshold:0,root:null,rootMargin:"0px"};function yv(e,t,n){let a,o,l;typeof n=="function"?(a=n,o=pv,l=t.cfg===void 0):(a=n.handler,o=Object.assign({},pv,n.cfg),l=t.cfg===void 0||un(t.cfg,o)===!1),t.handler!==a&&(t.handler=a),l===!0&&(t.cfg=o,t.observer?.unobserve(e),t.observer=new IntersectionObserver(([i])=>{if(typeof t.handler=="function"){if(i.rootBounds===null&&document.body.contains(e)===!0){t.observer.unobserve(e),t.observer.observe(e);return}(t.handler(i,t.observer)===!1||t.once===!0&&i.isIntersecting===!0)&&_v(e)}},o),t.observer.observe(e))}function _v(e){const t=e.__qvisible;t!==void 0&&(t.observer?.unobserve(e),delete e.__qvisible)}var O_=sn({name:"intersection",mounted(e,{modifiers:t,value:n}){const a={once:t.once===!0};yv(e,a,n),e.__qvisible=a},updated(e,t){const n=e.__qvisible;n!==void 0&&yv(e,n,t.value)},beforeUnmount:_v});ie({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,transitionDuration:{type:[String,Number],default:300},ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(e,{slots:t,emit:n}){const a=r.ref(Zt.value===!0?e.ssrPrerender:!1),o=r.computed(()=>e.root!==void 0||e.margin!==void 0||e.threshold!==void 0?{handler:u,cfg:{root:e.root,rootMargin:e.margin,threshold:e.threshold}}:u),l=r.computed(()=>e.disable!==!0&&(Zt.value!==!0||e.once!==!0||e.ssrPrerender!==!0)),i=r.computed(()=>[[O_,o.value,void 0,{once:e.once}]]),s=r.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`);function u(c){a.value!==c.isIntersecting&&(a.value=c.isIntersecting,e.onVisibility!==void 0&&n("visibility",a.value))}function d(){if(a.value===!0)return[r.h("div",{key:"content",style:s.value},Te(t.default))];if(t.hidden!==void 0)return[r.h("div",{key:"hidden",style:s.value},t.hidden())]}return()=>{const c=e.transition?[r.h(r.Transition,{name:"q-transition--"+e.transition},d)]:d();return en(e.tag,{class:"q-intersection"},c,"main",l.value,()=>i.value)}}});var M_=["ul","ol"],L_=ie({name:"QList",props:{...Ye,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const n=r.getCurrentInstance(),a=Ge(e,n.proxy.$q),o=r.computed(()=>M_.includes(e.tag)?null:"list"),l=r.computed(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(a.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>r.h(e.tag,{class:l.value,role:o.value},Te(t.default))}}),Sv=[34,37,40,33,39,38],A_=Object.keys(Yi);ie({name:"QKnob",props:{...nn,...Yi,modelValue:{type:Number,required:!0},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:e=>e>=0},tabindex:{type:[Number,String],default:0},disable:Boolean,readonly:Boolean},emits:["update:modelValue","change","dragValue"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=r.ref(e.modelValue),i=r.ref(!1),s=r.computed(()=>isNaN(e.innerMin)===!0||e.innerMin<e.min?e.min:e.innerMin),u=r.computed(()=>isNaN(e.innerMax)===!0||e.innerMax>e.max?e.max:e.innerMax);let d;function c(){l.value=e.modelValue===null?s.value:at(e.modelValue,s.value,u.value),T(!0)}r.watch(()=>`${e.modelValue}|${s.value}|${u.value}`,c),c();const g=r.computed(()=>e.disable===!1&&e.readonly===!1),v=r.computed(()=>"q-knob non-selectable"+(g.value===!0?" q-knob--editable":e.disable===!0?" disabled":"")),h=r.computed(()=>(String(e.step).trim().split(".")[1]||"").length),f=r.computed(()=>e.step===0?1:e.step),_=r.computed(()=>e.instantFeedback===!0||i.value===!0),p=o.platform.is.mobile===!0?r.computed(()=>g.value===!0?{onClick:C}:{}):r.computed(()=>g.value===!0?{onMousedown:E,onClick:C,onKeydown:R,onKeyup:q}:{}),b=r.computed(()=>g.value===!0?{tabindex:e.tabindex}:{[`aria-${e.disable===!0?"disabled":"readonly"}`]:"true"}),S=r.computed(()=>{const k={};return A_.forEach(A=>{k[A]=e[A]}),k});function y(k){k.isFinal?(H(k.evt,!0),i.value=!1):(k.isFirst&&(w(),i.value=!0),H(k.evt))}const m=r.computed(()=>[[rn,y,void 0,{prevent:!0,stop:!0,mouse:!0}]]);function w(){const{top:k,left:A,width:D,height:z}=a.$el.getBoundingClientRect();d={top:k+z/2,left:A+D/2}}function E(k){w(),H(k)}function C(k){w(),H(k,!0)}function R(k){if(Sv.includes(k.keyCode)===!1)return;Fe(k);const A=([34,33].includes(k.keyCode)?10:1)*f.value,D=[34,37,40].includes(k.keyCode)?-A:A;l.value=at(parseFloat((l.value+D).toFixed(h.value)),s.value,u.value),T()}function H(k,A){const D=zt(k),z=Math.abs(D.top-d.top),F=Math.sqrt(z**2+Math.abs(D.left-d.left)**2);let Z=Math.asin(z/F)*(180/Math.PI);D.top<d.top?Z=d.left<D.left?90-Z:270+Z:Z=d.left<D.left?Z+90:270-Z,o.lang.rtl===!0?Z=go(-Z-e.angle,0,360):e.angle&&(Z=go(Z-e.angle,0,360)),e.reverse===!0&&(Z=360-Z);let he=e.min+Z/360*(e.max-e.min);if(f.value!==0){const $=he%f.value;he=he-$+(Math.abs($)>=f.value/2?($<0?-1:1)*f.value:0),he=parseFloat(he.toFixed(h.value))}he=at(he,s.value,u.value),n("dragValue",he),l.value!==he&&(l.value=he),T(A)}function q(k){Sv.includes(k.keyCode)&&T(!0)}function T(k){e.modelValue!==l.value&&n("update:modelValue",l.value),k===!0&&n("change",l.value)}const M=Sa(e);function O(){return r.h("input",M.value)}return()=>{const k={class:v.value,role:"slider","aria-valuemin":s.value,"aria-valuemax":u.value,"aria-valuenow":e.modelValue,...b.value,...S.value,value:l.value,instantFeedback:_.value,...p.value},A={default:t.default};return g.value===!0&&e.name!==void 0&&(A.internal=O),en(lf,k,A,"knob",g.value,()=>m.value)}}});var{passive:wv}=lt,R_=["both","horizontal","vertical"],Cv=ie({name:"QScrollObserver",props:{axis:{type:String,validator:e=>R_.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:sr},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let a=null,o,l;r.watch(()=>e.scrollTarget,()=>{u(),s()});function i(){a?.();const g=Math.max(0,Fn(o)),v=xo(o),h={top:g-n.position.top,left:v-n.position.left};if(e.axis==="vertical"&&h.top===0||e.axis==="horizontal"&&h.left===0)return;const f=Math.abs(h.top)>=Math.abs(h.left)?h.top<0?"up":"down":h.left<0?"left":"right";n.position={top:g,left:v},n.directionChanged=n.direction!==f,n.delta=h,n.directionChanged===!0&&(n.direction=f,n.inflectionPoint=n.position),t("scroll",{...n})}function s(){o=pn(l,e.scrollTarget),o.addEventListener("scroll",d,wv),d(!0)}function u(){o!==void 0&&(o.removeEventListener("scroll",d,wv),o=void 0)}function d(g){if(g===!0||e.debounce===0||e.debounce==="0")i();else if(a===null){const[v,h]=e.debounce?[setTimeout(i,e.debounce),clearTimeout]:[requestAnimationFrame(i),cancelAnimationFrame];a=()=>{h(v),a=null}}}const{proxy:c}=r.getCurrentInstance();return r.watch(()=>c.$q.lang.rtl,i),r.onMounted(()=>{l=c.$el.parentNode,s()}),r.onBeforeUnmount(()=>{a?.(),u()}),Object.assign(c,{trigger:d,getPosition:()=>n}),wt}});ie({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=r.ref(null),l=r.ref(a.screen.height),i=r.ref(e.container===!0?0:a.screen.width),s=r.ref({position:0,direction:"down",inflectionPoint:0}),u=r.ref(0),d=r.ref(Zt.value===!0?0:To()),c=r.computed(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),g=r.computed(()=>e.container===!1?{minHeight:a.screen.height+"px"}:null),v=r.computed(()=>d.value!==0?{[a.lang.rtl===!0?"left":"right"]:`${d.value}px`}:null),h=r.computed(()=>d.value!==0?{[a.lang.rtl===!0?"right":"left"]:0,[a.lang.rtl===!0?"left":"right"]:`-${d.value}px`,width:`calc(100% + ${d.value}px)`}:null);function f(m){if(e.container===!0||document.qScrollPrevented!==!0){const w={position:m.position.top,direction:m.direction,directionChanged:m.directionChanged,inflectionPoint:m.inflectionPoint.top,delta:m.delta.top};s.value=w,e.onScroll!==void 0&&n("scroll",w)}}function _(m){const{height:w,width:E}=m;let C=!1;l.value!==w&&(C=!0,l.value=w,e.onScrollHeight!==void 0&&n("scrollHeight",w),b()),i.value!==E&&(C=!0,i.value=E),C===!0&&e.onResize!==void 0&&n("resize",m)}function p({height:m}){u.value!==m&&(u.value=m,b())}function b(){if(e.container===!0){const m=l.value>u.value?To():0;d.value!==m&&(d.value=m)}}let S=null;const y={instances:{},view:r.computed(()=>e.view),isContainer:r.computed(()=>e.container),rootRef:o,height:l,containerHeight:u,scrollbarWidth:d,totalWidth:r.computed(()=>i.value+d.value),rows:r.computed(()=>{const m=e.view.toLowerCase().split(" ");return{top:m[0].split(""),middle:m[1].split(""),bottom:m[2].split("")}}),header:r.reactive({size:0,offset:0,space:!1}),right:r.reactive({size:300,offset:0,space:!1}),footer:r.reactive({size:0,offset:0,space:!1}),left:r.reactive({size:300,offset:0,space:!1}),scroll:s,animate(){S!==null?clearTimeout(S):document.body.classList.add("q-body--layout-animate"),S=setTimeout(()=>{S=null,document.body.classList.remove("q-body--layout-animate")},155)},update(m,w,E){y[m][w]=E}};if(r.provide(or,y),To()>0){let m=function(){C=null,R.classList.remove("hide-scrollbar")},w=function(){if(C===null){if(R.scrollHeight>a.screen.height)return;R.classList.add("hide-scrollbar")}else clearTimeout(C);C=setTimeout(m,300)},E=function(H){C!==null&&H==="remove"&&(clearTimeout(C),m()),window[`${H}EventListener`]("resize",w)},C=null;const R=document.body;r.watch(()=>e.container!==!0?"add":"remove",E),e.container!==!0&&E("add"),r.onUnmounted(()=>{E("remove")})}return()=>{const m=ht(t.default,[r.h(Cv,{onScroll:f}),r.h(vr,{onResize:_})]),w=r.h("div",{class:c.value,style:g.value,ref:e.container===!0?void 0:o,tabindex:-1},m);return e.container===!0?r.h("div",{class:"q-layout-container overflow-hidden",ref:o},[r.h(vr,{onResize:p}),r.h("div",{class:"absolute-full",style:v.value},[r.h("div",{class:"scroll",style:h.value},[w])])]):w}}});var P_=["horizontal","vertical","cell","none"],N_=ie({name:"QMarkupTable",props:{...Ye,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>P_.includes(e)}},setup(e,{slots:t}){const n=r.getCurrentInstance(),a=Ge(e,n.proxy.$q),o=r.computed(()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(a.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(e.dense===!0?" q-table--dense":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")+(e.square===!0?" q-table--square":"")+(e.wrapCells===!1?" q-table--no-wrap":""));return()=>r.h("div",{class:o.value},[r.h("table",{class:"q-table"},Te(t.default))])}});ie({name:"QNoSsr",props:{tag:{type:String,default:"div"},placeholder:String},setup(e,{slots:t}){const{isHydrated:n}=ff();return()=>{if(n.value===!0){const l=Te(t.default);return l===void 0?l:l.length>1?r.h(e.tag,{},l):l[0]}const a={class:"q-no-ssr-placeholder"},o=Te(t.placeholder);if(o!==void 0)return o.length>1?r.h(e.tag,a,o):o[0];if(e.placeholder!==void 0)return r.h(e.tag,a,e.placeholder)}}});var I_=()=>r.h("svg",{key:"svg",class:"q-radio__bg absolute non-selectable",viewBox:"0 0 24 24"},[r.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"}),r.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"})]),D_=ie({name:"QRadio",props:{...Ye,...Tn,...nn,modelValue:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},emits:["update:modelValue"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),o=Ge(e,a.$q),l=qn(e,Vd),i=r.ref(null),{refocusTargetEl:s,refocusTarget:u}=Zd(e,i),d=r.computed(()=>r.toRaw(e.modelValue)===r.toRaw(e.val)),c=r.computed(()=>"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(e.disable===!0?" disabled":"")+(o.value===!0?" q-radio--dark":"")+(e.dense===!0?" q-radio--dense":"")+(e.leftLabel===!0?" reverse":"")),g=r.computed(()=>{const m=e.color!==void 0&&(e.keepColor===!0||d.value===!0)?` text-${e.color}`:"";return`q-radio__inner relative-position q-radio__inner--${d.value===!0?"truthy":"falsy"}${m}`}),v=r.computed(()=>(d.value===!0?e.checkedIcon:e.uncheckedIcon)||null),h=r.computed(()=>e.disable===!0?-1:e.tabindex||0),f=r.computed(()=>{const m={type:"radio"};return e.name!==void 0&&Object.assign(m,{".checked":d.value===!0,"^checked":d.value===!0?"checked":void 0,name:e.name,value:e.val}),m}),_=zn(f);function p(m){m!==void 0&&(Fe(m),u(m)),e.disable!==!0&&d.value!==!0&&n("update:modelValue",e.val,m)}function b(m){(m.keyCode===13||m.keyCode===32)&&Fe(m)}function S(m){(m.keyCode===13||m.keyCode===32)&&p(m)}Object.assign(a,{set:p});const y=I_();return()=>{const m=v.value!==null?[r.h("div",{key:"icon",class:"q-radio__icon-container absolute-full flex flex-center no-wrap"},[r.h(Xe,{class:"q-radio__icon",name:v.value})])]:[y];e.disable!==!0&&_(m,"unshift"," q-radio__native q-ma-none q-pa-none");const w=[r.h("div",{class:g.value,style:l.value,"aria-hidden":"true"},m)];s.value!==null&&w.push(s.value);const E=e.label!==void 0?ht(t.default,[e.label]):Te(t.default);return E!==void 0&&w.push(r.h("div",{class:"q-radio__label q-anchor--skip"},E)),r.h("div",{ref:i,class:c.value,tabindex:h.value,role:"radio","aria-label":e.label,"aria-checked":d.value===!0?"true":"false","aria-disabled":e.disable===!0?"true":void 0,onClick:p,onKeydown:b,onKeyup:S},w)}}}),$_=ie({name:"QToggle",props:{...ef,icon:String,iconColor:String},emits:tf,setup(e){function t(n,a){const o=r.computed(()=>(n.value===!0?e.checkedIcon:a.value===!0?e.indeterminateIcon:e.uncheckedIcon)||e.icon),l=r.computed(()=>n.value===!0?e.iconColor:null);return()=>[r.h("div",{class:"q-toggle__track"}),r.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},o.value!==void 0?[r.h(Xe,{name:o.value,color:l.value})]:void 0)]}return nf("toggle",t)}}),kv={radio:D_,checkbox:ka,toggle:$_},B_=Object.keys(kv);function Cs(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return a=>a[n]}var F_=ie({name:"QOptionGroup",props:{...Ye,modelValue:{required:!0},options:{type:Array,validator:e=>e.every($t),default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],name:String,type:{type:String,default:"radio",validator:e=>B_.includes(e)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},emits:["update:modelValue"],setup(e,{emit:t,slots:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=Array.isArray(e.modelValue);e.type==="radio"?o===!0&&console.error("q-option-group: model should not be array"):o===!1&&console.error("q-option-group: model should be array in your case");const l=Ge(e,a),i=r.computed(()=>kv[e.type]),s=r.computed(()=>Cs(e.optionValue,"value")),u=r.computed(()=>Cs(e.optionLabel,"label")),d=r.computed(()=>Cs(e.optionDisable,"disable")),c=r.computed(()=>e.options.map(f=>({val:s.value(f),name:f.name===void 0?e.name:f.name,disable:e.disable||d.value(f),leftLabel:f.leftLabel===void 0?e.leftLabel:f.leftLabel,color:f.color===void 0?e.color:f.color,checkedIcon:f.checkedIcon,uncheckedIcon:f.uncheckedIcon,dark:f.dark===void 0?l.value:f.dark,size:f.size===void 0?e.size:f.size,dense:e.dense,keepColor:f.keepColor===void 0?e.keepColor:f.keepColor}))),g=r.computed(()=>"q-option-group q-gutter-x-sm"+(e.inline===!0?" q-option-group--inline":"")),v=r.computed(()=>{const f={role:"group"};return e.type==="radio"&&(f.role="radiogroup",e.disable===!0&&(f["aria-disabled"]="true")),f});function h(f){t("update:modelValue",f)}return()=>r.h("div",{class:g.value,...v.value},e.options.map((f,_)=>{const p=n["label-"+_]!==void 0?()=>n["label-"+_](f):n.label!==void 0?()=>n.label(f):void 0;return r.h("div",[r.h(i.value,{label:p===void 0?u.value(f):null,modelValue:e.modelValue,"onUpdate:modelValue":h,...c.value[_]},p)])}))}});ie({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=r.inject(or,et);if(a===et)return console.error("QPage needs to be a deep child of QLayout"),et;if(r.inject(rd,et)===et)return console.error("QPage needs to be child of QPageContainer"),et;const l=r.computed(()=>{const s=(a.header.space===!0?a.header.size:0)+(a.footer.space===!0?a.footer.size:0);if(typeof e.styleFn=="function"){const u=a.isContainer.value===!0?a.containerHeight.value:n.screen.height;return e.styleFn(s,u)}return{minHeight:a.isContainer.value===!0?a.containerHeight.value-s+"px":n.screen.height===0?s!==0?`calc(100vh - ${s}px)`:"100vh":n.screen.height-s+"px"}}),i=r.computed(()=>`q-page${e.padding===!0?" q-layout-padding":""}`);return()=>r.h("main",{class:i.value,style:l.value},Te(t.default))}}),ie({name:"QPageContainer",setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=r.inject(or,et);if(a===et)return console.error("QPageContainer needs to be child of QLayout"),et;r.provide(rd,!0);const o=r.computed(()=>{const l={};return a.header.space===!0&&(l.paddingTop=`${a.header.size}px`),a.right.space===!0&&(l[`padding${n.lang.rtl===!0?"Left":"Right"}`]=`${a.right.size}px`),a.footer.space===!0&&(l.paddingBottom=`${a.footer.size}px`),a.left.space===!0&&(l[`padding${n.lang.rtl===!0?"Right":"Left"}`]=`${a.left.size}px`),l});return()=>r.h("div",{class:"q-page-container",style:o.value},Te(t.default))}});var ks={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=>e.length===2},expand:Boolean};function xv(){const{props:e,proxy:{$q:t}}=r.getCurrentInstance(),n=r.inject(or,et);if(n===et)return console.error("QPageSticky needs to be child of QLayout"),et;const a=r.computed(()=>{const g=e.position;return{top:g.indexOf("top")!==-1,right:g.indexOf("right")!==-1,bottom:g.indexOf("bottom")!==-1,left:g.indexOf("left")!==-1,vertical:g==="top"||g==="bottom",horizontal:g==="left"||g==="right"}}),o=r.computed(()=>n.header.offset),l=r.computed(()=>n.right.offset),i=r.computed(()=>n.footer.offset),s=r.computed(()=>n.left.offset),u=r.computed(()=>{let g=0,v=0;const h=a.value,f=t.lang.rtl===!0?-1:1;h.top===!0&&o.value!==0?v=`${o.value}px`:h.bottom===!0&&i.value!==0&&(v=`${-i.value}px`),h.left===!0&&s.value!==0?g=`${f*s.value}px`:h.right===!0&&l.value!==0&&(g=`${-f*l.value}px`);const _={transform:`translate(${g}, ${v})`};return e.offset&&(_.margin=`${e.offset[1]}px ${e.offset[0]}px`),h.vertical===!0?(s.value!==0&&(_[t.lang.rtl===!0?"right":"left"]=`${s.value}px`),l.value!==0&&(_[t.lang.rtl===!0?"left":"right"]=`${l.value}px`)):h.horizontal===!0&&(o.value!==0&&(_.top=`${o.value}px`),i.value!==0&&(_.bottom=`${i.value}px`)),_}),d=r.computed(()=>`q-page-sticky row flex-center fixed-${e.position} q-page-sticky--${e.expand===!0?"expand":"shrink"}`);function c(g){const v=Te(g.default);return r.h("div",{class:d.value,style:u.value},e.expand===!0?v:[r.h("div",v)])}return{$layout:n,getStickyContent:c}}ie({name:"QPageScroller",props:{...ks,scrollOffset:{type:Number,default:1e3},reverse:Boolean,duration:{type:Number,default:300},offset:{...ks.offset,default:()=>[18,18]}},emits:["click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),{$layout:o,getStickyContent:l}=xv(),i=r.ref(null);let s;const u=r.computed(()=>o.height.value-(o.isContainer.value===!0?o.containerHeight.value:a.screen.height));function d(){return e.reverse===!0?u.value-o.scroll.value.position>e.scrollOffset:o.scroll.value.position>e.scrollOffset}const c=r.ref(d());function g(){const p=d();c.value!==p&&(c.value=p)}function v(){e.reverse===!0?s===void 0&&(s=r.watch(u,g)):h()}r.watch(o.scroll,g),r.watch(()=>e.reverse,v);function h(){s!==void 0&&(s(),s=void 0)}function f(p){const b=pn(o.isContainer.value===!0?i.value:o.rootRef.value);jr(b,e.reverse===!0?o.height.value:0,e.duration),n("click",p)}function _(){return c.value===!0?r.h("div",{ref:i,class:"q-page-scroller",onClick:f},l(t)):null}return v(),r.onBeforeUnmount(h),()=>r.h(r.Transition,{name:"q-transition--fade"},_)}}),ie({name:"QPageSticky",props:ks,setup(e,{slots:t}){const{getStickyContent:n}=xv();return()=>n(t)}});function nl(e,t){return[!0,!1].includes(e)?e:t}ie({name:"QPagination",props:{...Ye,modelValue:{type:Number,required:!0},min:{type:[Number,String],default:1},max:{type:[Number,String],required:!0},maxPages:{type:[Number,String],default:0,validator:e=>(typeof e=="string"?parseInt(e,10):e)>=0},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},ripple:{type:[Boolean,Object],default:null},round:Boolean,rounded:Boolean,flat:Boolean,outline:Boolean,unelevated:Boolean,push:Boolean,glossy:Boolean,color:{type:String,default:"primary"},textColor:String,activeDesign:{type:String,default:"",values:e=>e===""||Td.includes(e)},activeColor:String,activeTextColor:String,gutter:String,padding:{type:String,default:"3px 2px"}},emits:["update:modelValue"],setup(e,{emit:t}){const{proxy:n}=r.getCurrentInstance(),{$q:a}=n,o=Ge(e,a),l=r.computed(()=>parseInt(e.min,10)),i=r.computed(()=>parseInt(e.max,10)),s=r.computed(()=>parseInt(e.maxPages,10)),u=r.computed(()=>f.value+" / "+i.value),d=r.computed(()=>nl(e.boundaryLinks,e.input)),c=r.computed(()=>nl(e.boundaryNumbers,!e.input)),g=r.computed(()=>nl(e.directionLinks,e.input)),v=r.computed(()=>nl(e.ellipses,!e.input)),h=r.ref(null),f=r.computed({get:()=>e.modelValue,set:A=>{if(A=parseInt(A,10),e.disable||isNaN(A))return;const D=at(A,l.value,i.value);e.modelValue!==D&&t("update:modelValue",D)}});r.watch(()=>`${l.value}|${i.value}`,()=>{f.value=e.modelValue});const _=r.computed(()=>"q-pagination row no-wrap items-center"+(e.disable===!0?" disabled":"")),p=r.computed(()=>e.gutter in wo?`${wo[e.gutter]}px`:e.gutter||null),b=r.computed(()=>p.value!==null?`--q-pagination-gutter-parent:-${p.value};--q-pagination-gutter-child:${p.value}`:null),S=r.computed(()=>{const A=[e.iconFirst||a.iconSet.pagination.first,e.iconPrev||a.iconSet.pagination.prev,e.iconNext||a.iconSet.pagination.next,e.iconLast||a.iconSet.pagination.last];return a.lang.rtl===!0?A.reverse():A}),y=r.computed(()=>({"aria-disabled":e.disable===!0?"true":"false",role:"navigation"})),m=r.computed(()=>Ei(e,"flat")),w=r.computed(()=>({[m.value]:!0,round:e.round,rounded:e.rounded,padding:e.padding,color:e.color,textColor:e.textColor,size:e.size,ripple:e.ripple!==null?e.ripple:!0})),E=r.computed(()=>{const A={[m.value]:!1};return e.activeDesign!==""&&(A[e.activeDesign]=!0),A}),C=r.computed(()=>({...E.value,color:e.activeColor||e.color,textColor:e.activeTextColor||e.textColor})),R=r.computed(()=>{let A=Math.max(s.value,1+(v.value?2:0)+(c.value?2:0));const D={pgFrom:l.value,pgTo:i.value,ellipsesStart:!1,ellipsesEnd:!1,boundaryStart:!1,boundaryEnd:!1,marginalStyle:{minWidth:`${Math.max(2,String(i.value).length)}em`}};return s.value&&A<i.value-l.value+1&&(A=1+Math.floor(A/2)*2,D.pgFrom=Math.max(l.value,Math.min(i.value-A+1,e.modelValue-Math.floor(A/2))),D.pgTo=Math.min(i.value,D.pgFrom+A-1),c.value&&(D.boundaryStart=!0,D.pgFrom++),v.value&&D.pgFrom>l.value+(c.value?1:0)&&(D.ellipsesStart=!0,D.pgFrom++),c.value&&(D.boundaryEnd=!0,D.pgTo--),v.value&&D.pgTo<i.value-(c.value?1:0)&&(D.ellipsesEnd=!0,D.pgTo--)),D});function H(A){f.value=A}function q(A){f.value=f.value+A}function T(){f.value=h.value,h.value=null,a.platform.is.mobile===!0&&document.activeElement.blur()}function M(A){h.value=A}function O(A){Vt(A,13)===!0&&T()}function k(A,D,z){const F={"aria-label":D,"aria-current":"false",...w.value,...A};return z===!0&&Object.assign(F,{"aria-current":"true",...C.value}),D!==void 0&&(e.toFn!==void 0?F.to=e.toFn(D):F.onClick=()=>{H(D)}),r.h(Ze,F)}return Object.assign(n,{set:H,setByOffset:q}),()=>{const A=[],D=[];let z;if(d.value===!0&&(A.push(k({key:"bls",disable:e.disable||e.modelValue<=l.value,icon:S.value[0],"aria-label":a.lang.pagination.first},l.value)),D.unshift(k({key:"ble",disable:e.disable||e.modelValue>=i.value,icon:S.value[3],"aria-label":a.lang.pagination.last},i.value))),g.value===!0&&(A.push(k({key:"bdp",disable:e.disable||e.modelValue<=l.value,icon:S.value[1],"aria-label":a.lang.pagination.prev},e.modelValue-1)),D.unshift(k({key:"bdn",disable:e.disable||e.modelValue>=i.value,icon:S.value[2],"aria-label":a.lang.pagination.next},e.modelValue+1))),e.input!==!0){z=[];const{pgFrom:F,pgTo:Z,marginalStyle:he}=R.value;if(R.value.boundaryStart===!0){const $=l.value===e.modelValue;A.push(k({key:"bns",style:he,disable:e.disable,label:l.value},l.value,$))}if(R.value.boundaryEnd===!0){const $=i.value===e.modelValue;D.unshift(k({key:"bne",style:he,disable:e.disable,label:i.value},i.value,$))}R.value.ellipsesStart===!0&&A.push(k({key:"bes",style:he,disable:e.disable,label:"…",ripple:!1},F-1)),R.value.ellipsesEnd===!0&&D.unshift(k({key:"bee",style:he,disable:e.disable,label:"…",ripple:!1},Z+1));for(let $=F;$<=Z;$++)z.push(k({key:`bpg${$}`,style:he,disable:e.disable,label:$},$,$===e.modelValue))}return r.h("div",{class:_.value,...y.value},[r.h("div",{class:"q-pagination__content row no-wrap items-center",style:b.value},[...A,e.input===!0?r.h(bv,{class:"inline",style:{width:`${u.value.length/1.5}em`},type:"number",dense:!0,value:h.value,disable:e.disable,dark:o.value,borderless:!0,inputClass:e.inputClass,inputStyle:e.inputStyle,placeholder:u.value,min:l.value,max:i.value,"onUpdate:modelValue":M,onKeyup:O,onBlur:T}):r.h("div",{class:"q-pagination__middle row justify-center"},z),...D])])}}});function xs(e){let t=!1,n,a;function o(){a=arguments,t!==!0&&(t=!0,n=window.requestAnimationFrame(()=>{e.apply(this,a),a=void 0,t=!1}))}return o.cancel=()=>{window.cancelAnimationFrame(n),t=!1},o}var{passive:rl}=lt;ie({name:"QParallax",props:{src:String,height:{type:Number,default:500},speed:{type:Number,default:1,validator:e=>e>=0&&e<=1},scrollTarget:sr,onScroll:Function},setup(e,{slots:t,emit:n}){const a=r.ref(0),o=r.ref(null),l=r.ref(null),i=r.ref(null);let s,u,d,c,g,v;r.watch(()=>e.height,()=>{s===!0&&f()}),r.watch(()=>e.scrollTarget,()=>{s===!0&&(S(),b())});let h=y=>{a.value=y,e.onScroll!==void 0&&n("scroll",y)};function f(){let y,m,w;v===window?(y=0,w=m=window.innerHeight):(y=_o(v).top,m=Ar(v),w=y+m);const E=_o(o.value).top,C=E+e.height;if(g!==void 0||C>y&&E<w){const R=(w-E)/(e.height+m);_((d-e.height)*R*e.speed),h(R)}}let _=y=>{u.style.transform=`translate3d(-50%,${Math.round(y)}px,0)`};function p(){d=u.naturalHeight||u.videoHeight||Ar(u),s===!0&&f()}function b(){s=!0,v=pn(o.value,e.scrollTarget),v.addEventListener("scroll",f,rl),window.addEventListener("resize",c,rl),f()}function S(){s===!0&&(s=!1,v.removeEventListener("scroll",f,rl),window.removeEventListener("resize",c,rl),v=void 0,_.cancel(),h.cancel(),c.cancel())}return r.onMounted(()=>{_=xs(_),h=xs(h),c=xs(p),u=t.media!==void 0?l.value.children[0]:i.value,u.onload=u.onloadstart=u.loadedmetadata=p,p(),u.style.display="initial",window.IntersectionObserver!==void 0?(g=new IntersectionObserver(y=>{(y[0].isIntersecting===!0?b:S)()}),g.observe(o.value)):b()}),r.onBeforeUnmount(()=>{S(),g?.disconnect(),u.onload=u.onloadstart=u.loadedmetadata=null}),()=>r.h("div",{ref:o,class:"q-parallax",style:{height:`${e.height}px`}},[r.h("div",{ref:l,class:"q-parallax__media absolute-full"},t.media!==void 0?t.media():[r.h("img",{ref:i,src:e.src})]),r.h("div",{class:"q-parallax__content absolute-full column flex-center"},t.content!==void 0?t.content({percentScrolled:a.value}):Te(t.default))])}});function Oa(e,t=new WeakMap){if(Object(e)!==e)return e;if(t.has(e))return t.get(e);const n=e instanceof Date?new Date(e):e instanceof RegExp?new RegExp(e.source,e.flags):e instanceof Set?new Set:e instanceof Map?new Map:typeof e.constructor!="function"?Object.create(null):e.prototype!==void 0&&typeof e.prototype.constructor=="function"?e:new e.constructor;if(typeof e.constructor=="function"&&typeof e.valueOf=="function"){const a=e.valueOf();if(Object(a)!==a){const o=new e.constructor(a);return t.set(e,o),o}}return t.set(e,n),e instanceof Set?e.forEach(a=>{n.add(Oa(a,t))}):e instanceof Map&&e.forEach((a,o)=>{n.set(o,Oa(a,t))}),Object.assign(n,...Object.keys(e).map(a=>({[a]:Oa(e[a],t)})))}ie({name:"QPopupEdit",props:{modelValue:{required:!0},title:String,buttons:Boolean,labelSet:String,labelCancel:String,color:{type:String,default:"primary"},validate:{type:Function,default:()=>!0},autoSave:Boolean,cover:{type:Boolean,default:!0},disable:Boolean},emits:["update:modelValue","save","cancel","beforeShow","show","beforeHide","hide"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=r.ref(null),i=r.ref(""),s=r.ref("");let u=!1;const d=r.computed(()=>xt({initialValue:i.value,validate:e.validate,set:c,cancel:g,updatePosition:v},"value",()=>s.value,m=>{s.value=m}));function c(){e.validate(s.value)!==!1&&(h()===!0&&(n("save",s.value,i.value),n("update:modelValue",s.value)),f())}function g(){h()===!0&&n("cancel",s.value,i.value),f()}function v(){r.nextTick(()=>{l.value.updatePosition()})}function h(){return un(s.value,i.value)===!1}function f(){u=!0,l.value.hide()}function _(){u=!1,i.value=Oa(e.modelValue),s.value=Oa(e.modelValue),n("beforeShow")}function p(){n("show")}function b(){u===!1&&h()===!0&&(e.autoSave===!0&&e.validate(s.value)===!0?(n("save",s.value,i.value),n("update:modelValue",s.value)):n("cancel",s.value,i.value)),n("beforeHide")}function S(){n("hide")}function y(){const m=t.default!==void 0?[].concat(t.default(d.value)):[];return e.title&&m.unshift(r.h("div",{class:"q-dialog__title q-mt-sm q-mb-sm"},e.title)),e.buttons===!0&&m.push(r.h("div",{class:"q-popup-edit__buttons row justify-center no-wrap"},[r.h(Ze,{flat:!0,color:e.color,label:e.labelCancel||o.lang.label.cancel,onClick:g}),r.h(Ze,{flat:!0,color:e.color,label:e.labelSet||o.lang.label.set,onClick:c})])),m}return Object.assign(a,{set:c,cancel:g,show(m){l.value?.show(m)},hide(m){l.value?.hide(m)},updatePosition:v}),()=>{if(e.disable!==!0)return r.h(Po,{ref:l,class:"q-popup-edit",cover:e.cover,onBeforeShow:_,onShow:p,onBeforeHide:b,onHide:S,onEscapeKey:g},y)}}}),ie({name:"QPopupProxy",props:{...Ld,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(e,{slots:t,emit:n,attrs:a}){const{proxy:o}=r.getCurrentInstance(),{$q:l}=o,i=r.ref(!1),s=r.ref(null),u=r.computed(()=>parseInt(e.breakpoint,10)),{canShow:d}=qi({showing:i});function c(){return l.screen.width<u.value||l.screen.height<u.value?"dialog":"menu"}const g=r.ref(c()),v=r.computed(()=>g.value==="menu"?{maxHeight:"99vh"}:{});r.watch(()=>c(),_=>{i.value!==!0&&(g.value=_)});function h(_){i.value=!0,n("show",_)}function f(_){i.value=!1,g.value=c(),n("hide",_)}return Object.assign(o,{show(_){d(_)===!0&&s.value.show(_)},hide(_){s.value.hide(_)},toggle(_){s.value.toggle(_)}}),xt(o,"currentComponent",()=>({type:g.value,ref:s.value})),()=>{const _={ref:s,...v.value,...a,onShow:h,onHide:f};let p;return g.value==="dialog"?p=Go:(p=Po,Object.assign(_,{target:e.target,contextMenu:e.contextMenu,noParentEvent:!0,separateClosePopup:!0})),r.h(p,_,t.default)}}});var z_={xs:2,sm:4,md:6,lg:10,xl:14};function Ev(e,t,n){return{transform:t===!0?`translateX(${n.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}var H_=ie({name:"QLinearProgress",props:{...Ye,...Tn,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:n}=r.getCurrentInstance(),a=Ge(e,n.$q),o=qn(e,z_),l=r.computed(()=>e.indeterminate===!0||e.query===!0),i=r.computed(()=>e.reverse!==e.query),s=r.computed(()=>({...o.value!==null?o.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),u=r.computed(()=>"q-linear-progress"+(e.color!==void 0?` text-${e.color}`:"")+(e.reverse===!0||e.query===!0?" q-linear-progress--reverse":"")+(e.rounded===!0?" rounded-borders":"")),d=r.computed(()=>Ev(e.buffer!==void 0?e.buffer:1,i.value,n.$q)),c=r.computed(()=>`with${e.instantFeedback===!0?"out":""}-transition`),g=r.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${c.value} q-linear-progress__track--${a.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),v=r.computed(()=>Ev(l.value===!0?1:e.value,i.value,n.$q)),h=r.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${c.value} q-linear-progress__model--${l.value===!0?"in":""}determinate`),f=r.computed(()=>({width:`${e.value*100}%`})),_=r.computed(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${c.value}`);return()=>{const p=[r.h("div",{class:g.value,style:d.value}),r.h("div",{class:h.value,style:v.value})];return e.stripe===!0&&l.value===!1&&p.push(r.h("div",{class:_.value,style:f.value})),r.h("div",{class:u.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},ht(t.default,p))}}}),Xr=40,Es=20;ie({name:"QPullToRefresh",props:{color:String,bgColor:String,icon:String,noMouse:Boolean,disable:Boolean,scrollTarget:sr},emits:["refresh"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=r.ref("pull"),i=r.ref(0),s=r.ref(!1),u=r.ref(-Xr),d=r.ref(!1),c=r.ref({}),g=r.computed(()=>({opacity:i.value,transform:`translateY(${u.value}px) rotate(${i.value*360}deg)`})),v=r.computed(()=>"q-pull-to-refresh__puller row flex-center"+(d.value===!0?" q-pull-to-refresh__puller--animating":"")+(e.bgColor!==void 0?` bg-${e.bgColor}`:""));function h(w){if(w.isFinal===!0){s.value===!0&&(s.value=!1,l.value==="pulled"?(l.value="refreshing",y({pos:Es}),p()):l.value==="pull"&&y({pos:-Xr,ratio:0}));return}if(d.value===!0||l.value==="refreshing")return!1;if(w.isFirst===!0){if(Fn(b)!==0||w.direction!=="down")return s.value===!0&&(s.value=!1,l.value="pull",y({pos:-Xr,ratio:0})),!1;s.value=!0;const{top:R,left:H}=a.$el.getBoundingClientRect();c.value={top:R+"px",left:H+"px",width:window.getComputedStyle(a.$el).getPropertyValue("width")}}Et(w.evt);const E=Math.min(140,Math.max(0,w.distance.y));u.value=E-Xr,i.value=at(E/(Es+Xr),0,1);const C=u.value>Es?"pulled":"pull";l.value!==C&&(l.value=C)}const f=r.computed(()=>{const w={down:!0};return e.noMouse!==!0&&(w.mouse=!0),[[rn,h,void 0,w]]}),_=r.computed(()=>`q-pull-to-refresh__content${s.value===!0?" no-pointer-events":""}`);function p(){n("refresh",()=>{y({pos:-Xr,ratio:0},()=>{l.value="pull"})})}let b,S=null;function y({pos:w,ratio:E},C){d.value=!0,u.value=w,E!==void 0&&(i.value=E),S!==null&&clearTimeout(S),S=setTimeout(()=>{S=null,d.value=!1,C?.()},300)}function m(){b=pn(a.$el,e.scrollTarget)}return r.watch(()=>e.scrollTarget,m),r.onMounted(m),r.onBeforeUnmount(()=>{S!==null&&clearTimeout(S)}),Object.assign(a,{trigger:p,updateScrollTarget:m}),()=>{const w=[r.h("div",{class:_.value},Te(t.default)),r.h("div",{class:"q-pull-to-refresh__puller-container fixed row flex-center no-pointer-events z-top",style:c.value},[r.h("div",{class:v.value,style:g.value},[l.value!=="refreshing"?r.h(Xe,{name:e.icon||o.iconSet.pullToRefresh.icon,color:e.color,size:"32px"}):r.h(cn,{size:"24px",color:e.color})])])];return en("div",{class:"q-pull-to-refresh"},w,"main",e.disable===!1,()=>f.value)}}});var Qn={MIN:0,RANGE:1,MAX:2};ie({name:"QRange",props:{...uf,modelValue:{type:Object,default:()=>({min:null,max:null}),validator:e=>"min"in e&&"max"in e},dragRange:Boolean,dragOnlyRange:Boolean,leftLabelColor:String,leftLabelTextColor:String,rightLabelColor:String,rightLabelTextColor:String,leftLabelValue:[String,Number],rightLabelValue:[String,Number],leftThumbColor:String,rightThumbColor:String},emits:cf,setup(e,{emit:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),{state:a,methods:o}=df({updateValue:R,updatePosition:q,getDragging:H,formAttrs:r.computed(()=>({type:"hidden",name:e.name,value:`${e.modelValue.min}|${e.modelValue.max}`}))}),l=r.ref(null),i=r.ref(0),s=r.ref(0),u=r.ref({min:0,max:0});function d(){u.value.min=e.modelValue.min===null?a.innerMin.value:at(e.modelValue.min,a.innerMin.value,a.innerMax.value),u.value.max=e.modelValue.max===null?a.innerMax.value:at(e.modelValue.max,a.innerMin.value,a.innerMax.value)}r.watch(()=>`${e.modelValue.min}|${e.modelValue.max}|${a.innerMin.value}|${a.innerMax.value}`,d),d();const c=r.computed(()=>o.convertModelToRatio(u.value.min)),g=r.computed(()=>o.convertModelToRatio(u.value.max)),v=r.computed(()=>a.active.value===!0?i.value:c.value),h=r.computed(()=>a.active.value===!0?s.value:g.value),f=r.computed(()=>{const M={[a.positionProp.value]:`${100*v.value}%`,[a.sizeProp.value]:`${100*(h.value-v.value)}%`};return e.selectionImg!==void 0&&(M.backgroundImage=`url(${e.selectionImg}) !important`),M}),_=r.computed(()=>{if(a.editable.value!==!0)return{};if(n.platform.is.mobile===!0)return{onClick:o.onMobileClick};const M={onMousedown:o.onActivate};return(e.dragRange===!0||e.dragOnlyRange===!0)&&Object.assign(M,{onFocus:()=>{a.focus.value="both"},onBlur:o.onBlur,onKeydown:T,onKeyup:o.onKeyup}),M});function p(M){return n.platform.is.mobile!==!0&&a.editable.value===!0&&e.dragOnlyRange!==!0?{onFocus:()=>{a.focus.value=M},onBlur:o.onBlur,onKeydown:T,onKeyup:o.onKeyup}:{}}const b=r.computed(()=>e.dragOnlyRange!==!0?a.tabindex.value:null),S=r.computed(()=>n.platform.is.mobile!==!0&&(e.dragRange||e.dragOnlyRange===!0)?a.tabindex.value:null),y=r.ref(null),m=r.computed(()=>p("min")),w=o.getThumbRenderFn({focusValue:"min",getNodeData:()=>({ref:y,key:"tmin",...m.value,tabindex:b.value}),ratio:v,label:r.computed(()=>e.leftLabelValue!==void 0?e.leftLabelValue:u.value.min),thumbColor:r.computed(()=>e.leftThumbColor||e.thumbColor||e.color),labelColor:r.computed(()=>e.leftLabelColor||e.labelColor),labelTextColor:r.computed(()=>e.leftLabelTextColor||e.labelTextColor)}),E=r.computed(()=>p("max")),C=o.getThumbRenderFn({focusValue:"max",getNodeData:()=>({...E.value,key:"tmax",tabindex:b.value}),ratio:h,label:r.computed(()=>e.rightLabelValue!==void 0?e.rightLabelValue:u.value.max),thumbColor:r.computed(()=>e.rightThumbColor||e.thumbColor||e.color),labelColor:r.computed(()=>e.rightLabelColor||e.labelColor),labelTextColor:r.computed(()=>e.rightLabelTextColor||e.labelTextColor)});function R(M){(u.value.min!==e.modelValue.min||u.value.max!==e.modelValue.max)&&t("update:modelValue",{...u.value}),M===!0&&t("change",{...u.value})}function H(M){const{left:O,top:k,width:A,height:D}=l.value.getBoundingClientRect(),z=e.dragOnlyRange===!0?0:e.vertical===!0?y.value.offsetHeight/(2*D):y.value.offsetWidth/(2*A),F={left:O,top:k,width:A,height:D,valueMin:u.value.min,valueMax:u.value.max,ratioMin:c.value,ratioMax:g.value},Z=o.getDraggingRatio(M,F);return e.dragOnlyRange!==!0&&Z<F.ratioMin+z?F.type=Qn.MIN:e.dragOnlyRange===!0||Z<F.ratioMax-z?e.dragRange===!0||e.dragOnlyRange===!0?(F.type=Qn.RANGE,Object.assign(F,{offsetRatio:Z,offsetModel:o.convertRatioToModel(Z),rangeValue:F.valueMax-F.valueMin,rangeRatio:F.ratioMax-F.ratioMin})):F.type=F.ratioMax-Z<Z-F.ratioMin?Qn.MAX:Qn.MIN:F.type=Qn.MAX,F}function q(M,O=a.dragging.value){let k;const A=o.getDraggingRatio(M,O),D=o.convertRatioToModel(A);switch(O.type){case Qn.MIN:A<=O.ratioMax?(k={minR:A,maxR:O.ratioMax,min:D,max:O.valueMax},a.focus.value="min"):(k={minR:O.ratioMax,maxR:A,min:O.valueMax,max:D},a.focus.value="max");break;case Qn.MAX:A>=O.ratioMin?(k={minR:O.ratioMin,maxR:A,min:O.valueMin,max:D},a.focus.value="max"):(k={minR:A,maxR:O.ratioMin,min:D,max:O.valueMin},a.focus.value="min");break;case Qn.RANGE:const z=A-O.offsetRatio,F=at(O.ratioMin+z,a.innerMinRatio.value,a.innerMaxRatio.value-O.rangeRatio),Z=D-O.offsetModel,he=at(O.valueMin+Z,a.innerMin.value,a.innerMax.value-O.rangeValue);k={minR:F,maxR:F+O.rangeRatio,min:a.roundValueFn.value(he),max:a.roundValueFn.value(he+O.rangeValue)},a.focus.value="both";break}u.value=u.value.min===null||u.value.max===null?{min:k.min||e.min,max:k.max||e.max}:{min:k.min,max:k.max},e.snap!==!0||e.step===0?(i.value=k.minR,s.value=k.maxR):(i.value=o.convertModelToRatio(u.value.min),s.value=o.convertModelToRatio(u.value.max))}function T(M){if(Ji.includes(M.keyCode)===!1)return;Fe(M);const O=([34,33].includes(M.keyCode)?10:1)*a.keyStep.value,k=([34,37,40].includes(M.keyCode)?-1:1)*(a.isReversed.value===!0?-1:1)*(e.vertical===!0?-1:1)*O;if(a.focus.value==="both"){const A=u.value.max-u.value.min,D=at(a.roundValueFn.value(u.value.min+k),a.innerMin.value,a.innerMax.value-A);u.value={min:D,max:a.roundValueFn.value(D+A)}}else{if(a.focus.value===!1)return;{const A=a.focus.value;u.value={...u.value,[A]:at(a.roundValueFn.value(u.value[A]+k),A==="min"?a.innerMin.value:u.value.min,A==="max"?a.innerMax.value:u.value.max)}}}R()}return()=>{const M=o.getContent(f,S,_,O=>{O.push(w(),C())});return r.h("div",{ref:l,class:"q-range "+a.classes.value+(e.modelValue.min===null||e.modelValue.max===null?" q-slider--no-value":""),...a.attributes.value,"aria-valuenow":e.modelValue.min+"|"+e.modelValue.max},M)}}}),ie({name:"QRating",props:{...Tn,...nn,modelValue:{type:Number,required:!0},max:{type:[String,Number],default:5},icon:[String,Array],iconHalf:[String,Array],iconSelected:[String,Array],iconAriaLabel:[String,Array],color:[String,Array],colorHalf:[String,Array],colorSelected:[String,Array],noReset:Boolean,noDimming:Boolean,readonly:Boolean,disable:Boolean},emits:["update:modelValue"],setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=qn(e),l=Sa(e),i=zn(l),s=r.ref(0);let u={};const d=r.computed(()=>e.readonly!==!0&&e.disable!==!0),c=r.computed(()=>`q-rating row inline items-center q-rating--${d.value===!0?"":"non-"}editable`+(e.noDimming===!0?" q-rating--no-dimming":"")+(e.disable===!0?" disabled":"")+(e.color!==void 0&&Array.isArray(e.color)===!1?` text-${e.color}`:"")),g=r.computed(()=>{const y=Array.isArray(e.icon)===!0?e.icon.length:0,m=Array.isArray(e.iconSelected)===!0?e.iconSelected.length:0,w=Array.isArray(e.iconHalf)===!0?e.iconHalf.length:0,E=Array.isArray(e.color)===!0?e.color.length:0,C=Array.isArray(e.colorSelected)===!0?e.colorSelected.length:0,R=Array.isArray(e.colorHalf)===!0?e.colorHalf.length:0;return{iconLen:y,icon:y>0?e.icon[y-1]:e.icon,selIconLen:m,selIcon:m>0?e.iconSelected[m-1]:e.iconSelected,halfIconLen:w,halfIcon:w>0?e.iconHalf[m-1]:e.iconHalf,colorLen:E,color:E>0?e.color[E-1]:e.color,selColorLen:C,selColor:C>0?e.colorSelected[C-1]:e.colorSelected,halfColorLen:R,halfColor:R>0?e.colorHalf[R-1]:e.colorHalf}}),v=r.computed(()=>{if(typeof e.iconAriaLabel=="string"){const y=e.iconAriaLabel.length!==0?`${e.iconAriaLabel} `:"";return m=>`${y}${m}`}if(Array.isArray(e.iconAriaLabel)===!0){const y=e.iconAriaLabel.length;if(y>0)return m=>e.iconAriaLabel[Math.min(m,y)-1]}return(y,m)=>`${m} ${y}`}),h=r.computed(()=>{const y=[],m=g.value,w=Math.ceil(e.modelValue),E=d.value===!0?0:null,C=e.iconHalf===void 0||w===e.modelValue?-1:w;for(let R=1;R<=e.max;R++){const H=s.value===0&&e.modelValue>=R||s.value>0&&s.value>=R,q=C===R&&s.value<R,T=s.value>0&&(q===!0?w:e.modelValue)>=R&&s.value<R,M=q===!0?R<=m.halfColorLen?e.colorHalf[R-1]:m.halfColor:m.selColor!==void 0&&H===!0?R<=m.selColorLen?e.colorSelected[R-1]:m.selColor:R<=m.colorLen?e.color[R-1]:m.color,O=(q===!0?R<=m.halfIconLen?e.iconHalf[R-1]:m.halfIcon:m.selIcon!==void 0&&(H===!0||T===!0)?R<=m.selIconLen?e.iconSelected[R-1]:m.selIcon:R<=m.iconLen?e.icon[R-1]:m.icon)||a.iconSet.rating.icon;y.push({name:(q===!0?R<=m.halfIconLen?e.iconHalf[R-1]:m.halfIcon:m.selIcon!==void 0&&(H===!0||T===!0)?R<=m.selIconLen?e.iconSelected[R-1]:m.selIcon:R<=m.iconLen?e.icon[R-1]:m.icon)||a.iconSet.rating.icon,attrs:{tabindex:E,role:"radio","aria-checked":e.modelValue===R?"true":"false","aria-label":v.value(R,O)},iconClass:"q-rating__icon"+(H===!0||q===!0?" q-rating__icon--active":"")+(T===!0?" q-rating__icon--exselected":"")+(s.value===R?" q-rating__icon--hovered":"")+(M!==void 0?` text-${M}`:"")})}return y}),f=r.computed(()=>{const y={role:"radiogroup"};return e.disable===!0&&(y["aria-disabled"]="true"),e.readonly===!0&&(y["aria-readonly"]="true"),y});function _(y){if(d.value===!0){const m=at(parseInt(y,10),1,parseInt(e.max,10)),w=e.noReset!==!0&&e.modelValue===m?0:m;w!==e.modelValue&&n("update:modelValue",w),s.value=0}}function p(y){d.value===!0&&(s.value=y)}function b(y,m){switch(y.keyCode){case 13:case 32:return _(m),Fe(y);case 37:case 40:return u[`rt${m-1}`]&&u[`rt${m-1}`].focus(),Fe(y);case 39:case 38:return u[`rt${m+1}`]&&u[`rt${m+1}`].focus(),Fe(y)}}function S(){s.value=0}return r.onBeforeUpdate(()=>{u={}}),()=>{const y=[];return h.value.forEach(({iconClass:m,name:w,attrs:E},C)=>{const R=C+1;y.push(r.h("div",{key:R,ref:H=>{u[`rt${R}`]=H},class:"q-rating__icon-container flex flex-center",...E,onClick(){_(R)},onMouseover(){p(R)},onMouseout:S,onFocus(){p(R)},onBlur:S,onKeyup(H){b(H,R)}},ht(t[`tip-${R}`],[r.h(Xe,{class:m,name:w})])))}),e.name!==void 0&&e.disable!==!0&&i(y,"push"),r.h("div",{class:c.value,style:o.value,...f.value},y)}}}),ie({name:"QResponsive",props:Ss,setup(e,{slots:t}){const n=ws(e);return()=>r.h("div",{class:"q-responsive"},[r.h("div",{class:"q-responsive__filler overflow-hidden"},[r.h("div",{style:n.value})]),r.h("div",{class:"q-responsive__content absolute-full fit"},Te(t.default))])}});var j_=ie({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(e){return()=>[r.h("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),r.h("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),r.withDirectives(r.h("div",{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":"true"}),e.store.thumbVertDir),r.withDirectives(r.h("div",{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":"true"}),e.store.thumbHorizDir)]}}),Tv=["vertical","horizontal"],Ts={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},qv={prevent:!0,mouse:!0,mouseAllDir:!0},Ov=e=>e>=250?50:Math.ceil(e/5);ie({name:"QScrollArea",props:{...Ye,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:[0,0]},horizontalOffset:{type:Array,default:[0,0]},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(e,{slots:t,emit:n}){const a=r.ref(!1),o=r.ref(!1),l=r.ref(!1),i={vertical:r.ref(0),horizontal:r.ref(0)},s={vertical:{ref:r.ref(null),position:r.ref(0),size:r.ref(0)},horizontal:{ref:r.ref(null),position:r.ref(0),size:r.ref(0)}},{proxy:u}=r.getCurrentInstance(),d=Ge(e,u.$q);let c=null,g;const v=r.ref(null),h=r.computed(()=>"q-scrollarea"+(d.value===!0?" q-scrollarea--dark":""));Object.assign(i,{verticalInner:r.computed(()=>i.vertical.value-e.verticalOffset[0]-e.verticalOffset[1]),horizontalInner:r.computed(()=>i.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1])}),s.vertical.percentage=r.computed(()=>{const k=s.vertical.size.value-i.vertical.value;if(k<=0)return 0;const A=at(s.vertical.position.value/k,0,1);return Math.round(A*1e4)/1e4}),s.vertical.thumbHidden=r.computed(()=>(e.visible===null?l.value:e.visible)!==!0&&a.value===!1&&o.value===!1||s.vertical.size.value<=i.vertical.value+1),s.vertical.thumbStart=r.computed(()=>e.verticalOffset[0]+s.vertical.percentage.value*(i.verticalInner.value-s.vertical.thumbSize.value)),s.vertical.thumbSize=r.computed(()=>Math.round(at(i.verticalInner.value*i.verticalInner.value/s.vertical.size.value,Ov(i.verticalInner.value),i.verticalInner.value))),s.vertical.style=r.computed(()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${s.vertical.thumbStart.value}px`,height:`${s.vertical.thumbSize.value}px`,right:`${e.horizontalOffset[1]}px`})),s.vertical.thumbClass=r.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(s.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),s.vertical.barClass=r.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(s.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),s.horizontal.percentage=r.computed(()=>{const k=s.horizontal.size.value-i.horizontal.value;if(k<=0)return 0;const A=at(Math.abs(s.horizontal.position.value)/k,0,1);return Math.round(A*1e4)/1e4}),s.horizontal.thumbHidden=r.computed(()=>(e.visible===null?l.value:e.visible)!==!0&&a.value===!1&&o.value===!1||s.horizontal.size.value<=i.horizontal.value+1),s.horizontal.thumbStart=r.computed(()=>e.horizontalOffset[0]+s.horizontal.percentage.value*(i.horizontalInner.value-s.horizontal.thumbSize.value)),s.horizontal.thumbSize=r.computed(()=>Math.round(at(i.horizontalInner.value*i.horizontalInner.value/s.horizontal.size.value,Ov(i.horizontalInner.value),i.horizontalInner.value))),s.horizontal.style=r.computed(()=>({...e.thumbStyle,...e.horizontalThumbStyle,[u.$q.lang.rtl===!0?"right":"left"]:`${s.horizontal.thumbStart.value}px`,width:`${s.horizontal.thumbSize.value}px`,bottom:`${e.verticalOffset[1]}px`})),s.horizontal.thumbClass=r.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(s.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),s.horizontal.barClass=r.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(s.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const f=r.computed(()=>s.vertical.thumbHidden.value===!0&&s.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle);function _(){const k={};return Tv.forEach(A=>{const D=s[A];Object.assign(k,{[A+"Position"]:D.position.value,[A+"Percentage"]:D.percentage.value,[A+"Size"]:D.size.value,[A+"ContainerSize"]:i[A].value,[A+"ContainerInnerSize"]:i[A+"Inner"].value})}),k}const p=Lr(()=>{const k=_();k.ref=u,n("scroll",k)},0);function b(k,A,D){if(Tv.includes(k)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(k==="vertical"?jr:Ri)(v.value,A,D)}function S({height:k,width:A}){let D=!1;i.vertical.value!==k&&(i.vertical.value=k,D=!0),i.horizontal.value!==A&&(i.horizontal.value=A,D=!0),D===!0&&C()}function y({position:k}){let A=!1;s.vertical.position.value!==k.top&&(s.vertical.position.value=k.top,A=!0),s.horizontal.position.value!==k.left&&(s.horizontal.position.value=k.left,A=!0),A===!0&&C()}function m({height:k,width:A}){s.horizontal.size.value!==A&&(s.horizontal.size.value=A,C()),s.vertical.size.value!==k&&(s.vertical.size.value=k,C())}function w(k,A){const D=s[A];if(k.isFirst===!0){if(D.thumbHidden.value===!0)return;g=D.position.value,o.value=!0}else if(o.value!==!0)return;k.isFinal===!0&&(o.value=!1);const z=Ts[A],F=(D.size.value-i[A].value)/(i[A+"Inner"].value-D.thumbSize.value),Z=k.distance[z.dist],he=g+(k.direction===z.dir?1:-1)*Z*F;R(he,A)}function E(k,A){const D=s[A];if(D.thumbHidden.value!==!0){const z=A==="vertical"?e.verticalOffset[0]:e.horizontalOffset[0],F=k[Ts[A].offset]-z,Z=D.thumbStart.value-z;if(F<Z||F>Z+D.thumbSize.value){const he=F-D.thumbSize.value/2,$=at(he/(i[A+"Inner"].value-D.thumbSize.value),0,1);R($*Math.max(0,D.size.value-i[A].value),A)}D.ref.value!==null&&D.ref.value.dispatchEvent(new MouseEvent(k.type,k))}}function C(){a.value=!0,c!==null&&clearTimeout(c),c=setTimeout(()=>{c=null,a.value=!1},e.delay),e.onScroll!==void 0&&p()}function R(k,A){v.value[Ts[A].scroll]=k}let H=null;function q(){H!==null&&clearTimeout(H),H=setTimeout(()=>{H=null,l.value=!0},u.$q.platform.is.ios?50:0)}function T(){H!==null&&(clearTimeout(H),H=null),l.value=!1}let M=null;r.watch(()=>u.$q.lang.rtl,k=>{v.value!==null&&Ri(v.value,Math.abs(s.horizontal.position.value)*(k===!0?-1:1))}),r.onDeactivated(()=>{M={top:s.vertical.position.value,left:s.horizontal.position.value}}),r.onActivated(()=>{if(M===null)return;const k=v.value;k!==null&&(Ri(k,M.left),jr(k,M.top))}),r.onBeforeUnmount(p.cancel),Object.assign(u,{getScrollTarget:()=>v.value,getScroll:_,getScrollPosition:()=>({top:s.vertical.position.value,left:s.horizontal.position.value}),getScrollPercentage:()=>({top:s.vertical.percentage.value,left:s.horizontal.percentage.value}),setScrollPosition:b,setScrollPercentage(k,A,D){b(k,A*(s[k].size.value-i[k].value)*(k==="horizontal"&&u.$q.lang.rtl===!0?-1:1),D)}});const O={scroll:s,thumbVertDir:[[rn,k=>{w(k,"vertical")},void 0,{vertical:!0,...qv}]],thumbHorizDir:[[rn,k=>{w(k,"horizontal")},void 0,{horizontal:!0,...qv}]],onVerticalMousedown(k){E(k,"vertical")},onHorizontalMousedown(k){E(k,"horizontal")}};return()=>r.h("div",{class:h.value,onMouseenter:q,onMouseleave:T},[r.h("div",{ref:v,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[r.h("div",{class:"q-scrollarea__content absolute",style:f.value},ht(t.default,[r.h(vr,{debounce:0,onResize:m})])),r.h(Cv,{axis:"both",onScroll:y})]),r.h(vr,{debounce:0,onResize:S}),r.h(j_,{store:O,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}});var fn=1e3,U_=["start","center","end","start-force","center-force","end-force"],Mv=Array.prototype.filter,Q_=__QUASAR_SSR__||window.getComputedStyle(document.body).overflowAnchor===void 0?wt:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];Mv.call(n,o=>o.dataset&&o.dataset.qVsAnchor!==void 0).forEach(o=>{delete o.dataset.qVsAnchor});const a=n[t];a?.dataset&&(a.dataset.qVsAnchor="")}))};function Jr(e,t){return e+t}function qs(e,t,n,a,o,l,i,s){const u=e===window?document.scrollingElement||document.documentElement:e,d=o===!0?"offsetWidth":"offsetHeight",c={scrollStart:0,scrollViewSize:-i-s,scrollMaxSize:0,offsetStart:-i,offsetEnd:-s};if(o===!0?(e===window?(c.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,c.scrollViewSize+=document.documentElement.clientWidth):(c.scrollStart=u.scrollLeft,c.scrollViewSize+=u.clientWidth),c.scrollMaxSize=u.scrollWidth,l===!0&&(c.scrollStart=(xa===!0?c.scrollMaxSize-c.scrollViewSize:0)-c.scrollStart)):(e===window?(c.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,c.scrollViewSize+=document.documentElement.clientHeight):(c.scrollStart=u.scrollTop,c.scrollViewSize+=u.clientHeight),c.scrollMaxSize=u.scrollHeight),n!==null)for(let g=n.previousElementSibling;g!==null;g=g.previousElementSibling)g.classList.contains("q-virtual-scroll--skip")===!1&&(c.offsetStart+=g[d]);if(a!==null)for(let g=a.nextElementSibling;g!==null;g=g.nextElementSibling)g.classList.contains("q-virtual-scroll--skip")===!1&&(c.offsetEnd+=g[d]);if(t!==e){const g=u.getBoundingClientRect(),v=t.getBoundingClientRect();o===!0?(c.offsetStart+=v.left-g.left,c.offsetEnd-=v.width):(c.offsetStart+=v.top-g.top,c.offsetEnd-=v.height),e!==window&&(c.offsetStart+=c.scrollStart),c.offsetEnd+=c.scrollMaxSize-c.offsetStart}return c}function Lv(e,t,n,a){t==="end"&&(t=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(a===!0&&(t=(xa===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):n===!0?(a===!0&&(t=(xa===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function Ma(e,t,n,a){if(n>=a)return 0;const o=t.length,l=Math.floor(n/fn),i=Math.floor((a-1)/fn)+1;let s=e.slice(l,i).reduce(Jr,0);return n%fn!==0&&(s-=t.slice(l*fn,n).reduce(Jr,0)),a%fn!==0&&a!==o&&(s-=t.slice(a,i*fn).reduce(Jr,0)),s}var Av={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},Rv=Object.keys(Av),Os={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Av};function Pv({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:a}){const o=r.getCurrentInstance(),{props:l,emit:i,proxy:s}=o,{$q:u}=s;let d,c,g,v=[],h;const f=r.ref(0),_=r.ref(0),p=r.ref({}),b=r.ref(null),S=r.ref(null),y=r.ref(null),m=r.ref({from:0,to:0}),w=r.computed(()=>l.tableColspan!==void 0?l.tableColspan:100);a===void 0&&(a=r.computed(()=>l.virtualScrollItemSize));const E=r.computed(()=>a.value+";"+l.virtualScrollHorizontal),C=r.computed(()=>E.value+";"+l.virtualScrollSliceRatioBefore+";"+l.virtualScrollSliceRatioAfter);r.watch(C,()=>{D()}),r.watch(E,R);function R(){A(c,!0)}function H($){A($===void 0?c:$)}function q($,x){const Y=t();if(Y==null||Y.nodeType===8)return;const B=qs(Y,n(),b.value,S.value,l.virtualScrollHorizontal,u.lang.rtl,l.virtualScrollStickySizeStart,l.virtualScrollStickySizeEnd);g!==B.scrollViewSize&&D(B.scrollViewSize),M(Y,B,Math.min(e.value-1,Math.max(0,parseInt($,10)||0)),0,U_.indexOf(x)!==-1?x:c!==-1&&$>c?"end":"start")}function T(){const $=t();if($==null||$.nodeType===8)return;const x=qs($,n(),b.value,S.value,l.virtualScrollHorizontal,u.lang.rtl,l.virtualScrollStickySizeStart,l.virtualScrollStickySizeEnd),Y=e.value-1,B=x.scrollMaxSize-x.offsetStart-x.offsetEnd-_.value;if(d===x.scrollStart)return;if(x.scrollMaxSize<=0){M($,x,0,0);return}g!==x.scrollViewSize&&D(x.scrollViewSize),O(m.value.from);const le=Math.floor(x.scrollMaxSize-Math.max(x.scrollViewSize,x.offsetEnd)-Math.min(h[Y],x.scrollViewSize/2));if(le>0&&Math.ceil(x.scrollStart)>=le){M($,x,Y,x.scrollMaxSize-x.offsetEnd-v.reduce(Jr,0));return}let N=0,U=x.scrollStart-x.offsetStart,ue=U;if(U<=B&&U+x.scrollViewSize>=f.value)U-=f.value,N=m.value.from,ue=U;else for(let W=0;U>=v[W]&&N<Y;W++)U-=v[W],N+=fn;for(;U>0&&N<Y;)U-=h[N],U>-x.scrollViewSize?(N++,ue=U):ue=h[N]+U;M($,x,N,ue)}function M($,x,Y,B,le){const N=typeof le=="string"&&le.indexOf("-force")!==-1,U=N===!0?le.replace("-force",""):le,ue=U!==void 0?U:"start";let W=Math.max(0,Y-p.value[ue]),ve=W+p.value.total;ve>e.value&&(ve=e.value,W=Math.max(0,ve-p.value.total)),d=x.scrollStart;const _e=W!==m.value.from||ve!==m.value.to;if(_e===!1&&U===void 0){F(Y);return}const{activeElement:G}=document,ge=y.value;_e===!0&&ge!==null&&ge!==G&&ge.contains(G)===!0&&(ge.addEventListener("focusout",k),setTimeout(()=>{ge?.removeEventListener("focusout",k)})),Q_(ge,Y-W);const pe=U!==void 0?h.slice(W,Y).reduce(Jr,0):0;if(_e===!0){const we=ve>=m.value.from&&W<=m.value.to?m.value.to:ve;m.value={from:W,to:we},f.value=Ma(v,h,0,W),_.value=Ma(v,h,ve,e.value),requestAnimationFrame(()=>{m.value.to!==ve&&d===x.scrollStart&&(m.value={from:m.value.from,to:ve},_.value=Ma(v,h,ve,e.value))})}requestAnimationFrame(()=>{if(d!==x.scrollStart)return;_e===!0&&O(W);const we=h.slice(W,Y).reduce(Jr,0),Ae=we+x.offsetStart+f.value,fe=Ae+h[Y];let L=Ae+B;if(U!==void 0){const I=we-pe,te=x.scrollStart+I;L=N!==!0&&te<Ae&&fe<te+x.scrollViewSize?te:U==="end"?fe-x.scrollViewSize:Ae-(U==="start"?0:Math.round((x.scrollViewSize-h[Y])/2))}d=L,Lv($,L,l.virtualScrollHorizontal,u.lang.rtl),F(Y)})}function O($){const x=y.value;if(x){const Y=Mv.call(x.children,W=>W.classList&&W.classList.contains("q-virtual-scroll--skip")===!1),B=Y.length,le=l.virtualScrollHorizontal===!0?W=>W.getBoundingClientRect().width:W=>W.offsetHeight;let N=$,U,ue;for(let W=0;W<B;){for(U=le(Y[W]),W++;W<B&&Y[W].classList.contains("q-virtual-scroll--with-prev")===!0;)U+=le(Y[W]),W++;ue=U-h[N],ue!==0&&(h[N]+=ue,v[Math.floor(N/fn)]+=ue),N++}}}function k(){y.value?.focus()}function A($,x){const Y=1*a.value;(x===!0||Array.isArray(h)===!1)&&(h=[]);const B=h.length;h.length=e.value;for(let N=e.value-1;N>=B;N--)h[N]=Y;const le=Math.floor((e.value-1)/fn);v=[];for(let N=0;N<=le;N++){let U=0;const ue=Math.min((N+1)*fn,e.value);for(let W=N*fn;W<ue;W++)U+=h[W];v.push(U)}c=-1,d=void 0,f.value=Ma(v,h,0,m.value.from),_.value=Ma(v,h,m.value.to,e.value),$>=0?(O(m.value.from),r.nextTick(()=>{q($)})):Z()}function D($){if($===void 0&&typeof window<"u"){const U=t();U!=null&&U.nodeType!==8&&($=qs(U,n(),b.value,S.value,l.virtualScrollHorizontal,u.lang.rtl,l.virtualScrollStickySizeStart,l.virtualScrollStickySizeEnd).scrollViewSize)}g=$;const x=parseFloat(l.virtualScrollSliceRatioBefore)||0,Y=parseFloat(l.virtualScrollSliceRatioAfter)||0,B=1+x+Y,le=$===void 0||$<=0?1:Math.ceil($/a.value),N=Math.max(1,le,Math.ceil((l.virtualScrollSliceSize>0?l.virtualScrollSliceSize:10)/B));p.value={total:Math.ceil(N*B),start:Math.ceil(N*x),center:Math.ceil(N*(.5+x)),end:Math.ceil(N*(1+x)),view:le}}function z($,x){const Y=l.virtualScrollHorizontal===!0?"width":"height",B={["--q-virtual-scroll-item-"+Y]:a.value+"px"};return[$==="tbody"?r.h($,{class:"q-virtual-scroll__padding",key:"before",ref:b},[r.h("tr",[r.h("td",{style:{[Y]:`${f.value}px`,...B},colspan:w.value})])]):r.h($,{class:"q-virtual-scroll__padding",key:"before",ref:b,style:{[Y]:`${f.value}px`,...B}}),r.h($,{class:"q-virtual-scroll__content",key:"content",ref:y,tabindex:-1},x.flat()),$==="tbody"?r.h($,{class:"q-virtual-scroll__padding",key:"after",ref:S},[r.h("tr",[r.h("td",{style:{[Y]:`${_.value}px`,...B},colspan:w.value})])]):r.h($,{class:"q-virtual-scroll__padding",key:"after",ref:S,style:{[Y]:`${_.value}px`,...B}})]}function F($){c!==$&&(l.onVirtualScroll!==void 0&&i("virtualScroll",{index:$,from:m.value.from,to:m.value.to-1,direction:$<c?"decrease":"increase",ref:s}),c=$)}D();const Z=Lr(T,u.platform.is.ios===!0?120:35);r.onBeforeMount(()=>{D()});let he=!1;return r.onDeactivated(()=>{he=!0}),r.onActivated(()=>{if(he!==!0)return;const $=t();d!==void 0&&$!==void 0&&$!==null&&$.nodeType!==8?Lv($,d,l.virtualScrollHorizontal,u.lang.rtl):q(c)}),__QUASAR_SSR__||r.onBeforeUnmount(()=>{Z.cancel()}),Object.assign(s,{scrollTo:q,reset:R,refresh:H}),{virtualScrollSliceRange:m,virtualScrollSliceSizeComputed:p,setVirtualScrollSize:D,onVirtualScrollEvt:Z,localResetVirtualScroll:A,padVirtualScroll:z,scrollTo:q,reset:R,refresh:H}}var Nv=e=>["add","add-unique","toggle"].includes(e),W_=".*+?^${}()|[]\\",K_=Object.keys(Jo);function Ms(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return a=>a!==null&&typeof a=="object"&&n in a?a[n]:a}var Y_=ie({name:"QSelect",inheritAttrs:!1,props:{...Os,...nn,...Jo,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Nv},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:Os.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Zo,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=r.ref(!1),i=r.ref(!1),s=r.ref(-1),u=r.ref(""),d=r.ref(!1),c=r.ref(!1);let g=null,v=null,h,f,_,p=null,b,S,y,m;const w=r.ref(null),E=r.ref(null),C=r.ref(null),R=r.ref(null),H=r.ref(null),q=Bi(e),T=gv(re),M=r.computed(()=>Array.isArray(e.options)?e.options.length:0),O=r.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:k,virtualScrollSliceSizeComputed:A,localResetVirtualScroll:D,padVirtualScroll:z,onVirtualScrollEvt:F,scrollTo:Z,setVirtualScrollSize:he}=Pv({virtualScrollLength:M,getVirtualScrollTarget:Ft,getVirtualScrollEl:pt,virtualScrollItemSizeComputed:O}),$=Vo(),x=r.computed(()=>{const Q=e.mapOptions===!0&&e.multiple!==!0,qe=e.modelValue!==void 0&&(e.modelValue!==null||Q===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const Oe=e.mapOptions===!0&&h!==void 0?h:[],Ke=qe.map(ut=>V(ut,Oe));return e.modelValue===null&&Q===!0?Ke.filter(ut=>ut!==null):Ke}return qe}),Y=r.computed(()=>{const Q={};return K_.forEach(qe=>{const Oe=e[qe];Oe!==void 0&&(Q[qe]=Oe)}),Q}),B=r.computed(()=>e.optionsDark===null?$.isDark.value:e.optionsDark),le=r.computed(()=>br(x.value)),N=r.computed(()=>{let Q="q-field__input q-placeholder col";return e.hideSelected===!0||x.value.length===0?[Q,e.inputClass]:(Q+=" q-field__input--padding",e.inputClass===void 0?Q:[Q,e.inputClass])}),U=r.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),ue=r.computed(()=>M.value===0),W=r.computed(()=>x.value.map(Q=>X.value(Q)).join(", ")),ve=r.computed(()=>e.displayValue!==void 0?e.displayValue:W.value),_e=r.computed(()=>e.optionsHtml===!0?()=>!0:Q=>Q?.html===!0),G=r.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||x.value.some(_e.value))),ge=r.computed(()=>$.focused.value===!0?e.tabindex:-1),pe=r.computed(()=>{const Q={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly===!0?"true":"false","aria-autocomplete":e.useInput===!0?"list":"none","aria-expanded":l.value===!0?"true":"false","aria-controls":`${$.targetUid.value}_lb`};return s.value>=0&&(Q["aria-activedescendant"]=`${$.targetUid.value}_${s.value}`),Q}),we=r.computed(()=>({id:`${$.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),Ae=r.computed(()=>x.value.map((Q,qe)=>({index:qe,opt:Q,html:_e.value(Q),selected:!0,removeAtIndex:ke,toggleOption:je,tabindex:ge.value}))),fe=r.computed(()=>{if(M.value===0)return[];const{from:Q,to:qe}=k.value;return e.options.slice(Q,qe).map((Oe,Ke)=>{const ut=se.value(Oe)===!0,it=de(Oe)===!0,Rt=Q+Ke,Ct={clickable:!0,active:it,activeClass:te.value,manualFocus:!0,focused:!1,disable:ut,tabindex:-1,dense:e.optionsDense,dark:B.value,role:"option","aria-selected":it===!0?"true":"false",id:`${$.targetUid.value}_${Rt}`,onClick:()=>{je(Oe)}};return ut!==!0&&(s.value===Rt&&(Ct.focused=!0),o.platform.is.desktop===!0&&(Ct.onMousemove=()=>{l.value===!0&&ee(Rt)})),{index:Rt,opt:Oe,html:_e.value(Oe),label:X.value(Oe),selected:Ct.active,focused:Ct.focused,toggleOption:je,setOptionIndex:ee,itemProps:Ct}})}),L=r.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:o.iconSet.arrow.dropdown),I=r.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),te=r.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),K=r.computed(()=>Ms(e.optionValue,"value")),X=r.computed(()=>Ms(e.optionLabel,"label")),se=r.computed(()=>Ms(e.optionDisable,"disable")),me=r.computed(()=>x.value.map(K.value)),J=r.computed(()=>{const Q={onInput:re,onChange:T,onKeydown:nt,onKeyup:Le,onKeypress:Ue,onFocus:xe,onClick(qe){f===!0&&ft(qe)}};return Q.onCompositionstart=Q.onCompositionupdate=Q.onCompositionend=T,Q});r.watch(x,Q=>{h=Q,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&$.innerLoading.value!==!0&&(i.value!==!0&&l.value!==!0||le.value!==!0)&&(_!==!0&&an(),(i.value===!0||l.value===!0)&&Re(""))},{immediate:!0}),r.watch(()=>e.fillInput,an),r.watch(l,As),r.watch(M,Gw);function ae(Q){return e.emitValue===!0?K.value(Q):Q}function be(Q){if(Q!==-1&&Q<x.value.length)if(e.multiple===!0){const qe=e.modelValue.slice();n("remove",{index:Q,value:qe.splice(Q,1)[0]}),n("update:modelValue",qe)}else n("update:modelValue",null)}function ke(Q){be(Q),$.focus()}function Qe(Q,qe){const Oe=ae(Q);if(e.multiple!==!0){e.fillInput===!0&&Pe(X.value(Q),!0,!0),n("update:modelValue",Oe);return}if(x.value.length===0){n("add",{index:0,value:Oe}),n("update:modelValue",e.multiple===!0?[Oe]:Oe);return}if(qe===!0&&de(Q)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const Ke=e.modelValue.slice();n("add",{index:Ke.length,value:Oe}),Ke.push(Oe),n("update:modelValue",Ke)}function je(Q,qe){if($.editable.value!==!0||Q===void 0||se.value(Q)===!0)return;const Oe=K.value(Q);if(e.multiple!==!0){qe!==!0&&(Pe(e.fillInput===!0?X.value(Q):"",!0,!0),Ve()),E.value?.focus(),(x.value.length===0||un(K.value(x.value[0]),Oe)!==!0)&&n("update:modelValue",e.emitValue===!0?Oe:Q);return}if((f!==!0||d.value===!0)&&$.focus(),xe(),x.value.length===0){const it=e.emitValue===!0?Oe:Q;n("add",{index:0,value:it}),n("update:modelValue",e.multiple===!0?[it]:it);return}const Ke=e.modelValue.slice(),ut=me.value.findIndex(it=>un(it,Oe));if(ut!==-1)n("remove",{index:ut,value:Ke.splice(ut,1)[0]});else{if(e.maxValues!==void 0&&Ke.length>=e.maxValues)return;const it=e.emitValue===!0?Oe:Q;n("add",{index:Ke.length,value:it}),Ke.push(it)}n("update:modelValue",Ke)}function ee(Q){if(o.platform.is.desktop!==!0)return;const qe=Q!==-1&&Q<M.value?Q:-1;s.value!==qe&&(s.value=qe)}function ce(Q=1,qe){if(l.value===!0){let Oe=s.value;do Oe=go(Oe+Q,-1,M.value-1);while(Oe!==-1&&Oe!==s.value&&se.value(e.options[Oe])===!0);s.value!==Oe&&(ee(Oe),Z(Oe),qe!==!0&&e.useInput===!0&&e.fillInput===!0&&ye(Oe>=0?X.value(e.options[Oe]):b,!0))}}function V(Q,qe){const Oe=Ke=>un(K.value(Ke),Q);return e.options.find(Oe)||qe.find(Oe)||Q}function de(Q){const qe=K.value(Q);return me.value.find(Oe=>un(Oe,qe))!==void 0}function xe(Q){e.useInput===!0&&E.value!==null&&(Q===void 0||E.value===Q.target&&Q.target.value===W.value)&&E.value.select()}function Be(Q){Vt(Q,27)===!0&&l.value===!0&&(ft(Q),Ve(),an()),n("keyup",Q)}function Le(Q){const{value:qe}=Q.target;if(Q.keyCode!==void 0){Be(Q);return}if(Q.target.value="",g!==null&&(clearTimeout(g),g=null),v!==null&&(clearTimeout(v),v=null),an(),typeof qe=="string"&&qe.length!==0){const Oe=qe.toLocaleLowerCase(),Ke=it=>{const Rt=e.options.find(Ct=>String(it.value(Ct)).toLocaleLowerCase()===Oe);return Rt===void 0?!1:(x.value.indexOf(Rt)===-1?je(Rt):Ve(),!0)},ut=it=>{Ke(K)!==!0&&it!==!0&&Ke(X)!==!0&&Re(qe,!0,()=>ut(!0))};ut()}else $.clearValue(Q)}function Ue(Q){n("keypress",Q)}function nt(Q){if(n("keydown",Q),rr(Q)===!0)return;const qe=u.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),Oe=Q.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(s.value!==-1||qe===!0);if(Q.keyCode===27){Et(Q);return}if(Q.keyCode===9&&Oe===!1){Me();return}if(Q.target===void 0||Q.target.id!==$.targetUid.value||$.editable.value!==!0)return;if(Q.keyCode===40&&$.innerLoading.value!==!0&&l.value===!1){Fe(Q),$e();return}if(Q.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&u.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?be(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(Q.keyCode===35||Q.keyCode===36)&&(typeof u.value!="string"||u.value.length===0)&&(Fe(Q),s.value=-1,ce(Q.keyCode===36?1:-1,e.multiple)),(Q.keyCode===33||Q.keyCode===34)&&A.value!==void 0&&(Fe(Q),s.value=Math.max(-1,Math.min(M.value,s.value+(Q.keyCode===33?-1:1)*A.value.view)),ce(Q.keyCode===33?1:-1,e.multiple)),(Q.keyCode===38||Q.keyCode===40)&&(Fe(Q),ce(Q.keyCode===38?-1:1,e.multiple));const Ke=M.value;if((y===void 0||m<Date.now())&&(y=""),Ke>0&&e.useInput!==!0&&Q.key!==void 0&&Q.key.length===1&&Q.altKey===!1&&Q.ctrlKey===!1&&Q.metaKey===!1&&(Q.keyCode!==32||y.length!==0)){l.value!==!0&&$e(Q);const ut=Q.key.toLocaleLowerCase(),it=y.length===1&&y[0]===ut;m=Date.now()+1500,it===!1&&(Fe(Q),y+=ut);const Rt=new RegExp("^"+y.split("").map(Rs=>W_.indexOf(Rs)!==-1?"\\"+Rs:Rs).join(".*"),"i");let Ct=s.value;if(it===!0||Ct<0||Rt.test(X.value(e.options[Ct]))!==!0)do Ct=go(Ct+1,-1,Ke-1);while(Ct!==s.value&&(se.value(e.options[Ct])===!0||Rt.test(X.value(e.options[Ct]))!==!0));s.value!==Ct&&r.nextTick(()=>{ee(Ct),Z(Ct),Ct>=0&&e.useInput===!0&&e.fillInput===!0&&ye(X.value(e.options[Ct]),!0)});return}if(!(Q.keyCode!==13&&(Q.keyCode!==32||e.useInput===!0||y!=="")&&(Q.keyCode!==9||Oe===!1))){if(Q.keyCode!==9&&Fe(Q),s.value!==-1&&s.value<Ke){je(e.options[s.value]);return}if(qe===!0){const ut=(it,Rt)=>{if(Rt){if(Nv(Rt)!==!0)return}else Rt=e.newValueMode;if(Pe("",e.multiple!==!0,!0),it==null)return;(Rt==="toggle"?je:Qe)(it,Rt==="add-unique"),e.multiple!==!0&&(E.value?.focus(),Ve())};if(e.onNewValue!==void 0?n("newValue",u.value,ut):ut(u.value),e.multiple!==!0)return}l.value===!0?Me():$.innerLoading.value!==!0&&$e()}}function pt(){return f===!0?H.value:C.value!==null&&C.value.contentEl!==null?C.value.contentEl:void 0}function Ft(){return pt()}function Wn(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?Ae.value.map(Q=>t["selected-item"](Q)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?Ae.value.map((Q,qe)=>r.h(rf,{key:"option-"+qe,removable:$.editable.value===!0&&se.value(Q.opt)!==!0,dense:!0,textColor:e.color,tabindex:ge.value,onRemove(){Q.removeAtIndex(qe)}},()=>r.h("span",{class:"ellipsis",[Q.html===!0?"innerHTML":"textContent"]:X.value(Q.opt)}))):[r.h("span",{class:"ellipsis",[G.value===!0?"innerHTML":"textContent"]:ve.value})]}function Kt(){if(ue.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:u.value}):void 0;const Q=t.option!==void 0?t.option:Oe=>r.h(Xo,{key:Oe.index,...Oe.itemProps},()=>r.h(Un,()=>r.h(bs,()=>r.h("span",{[Oe.html===!0?"innerHTML":"textContent"]:Oe.label}))));let qe=z("div",fe.value.map(Q));return t["before-options"]!==void 0&&(qe=t["before-options"]().concat(qe)),ht(t["after-options"],qe)}function Pn(Q,qe){const Oe=qe===!0?{...pe.value,...$.splitAttrs.attributes.value}:void 0,Ke={ref:qe===!0?E:void 0,key:"i_t",class:N.value,style:e.inputStyle,value:u.value!==void 0?u.value:"",type:"search",...Oe,id:qe===!0?$.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":Q===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...J.value};return Q!==!0&&f===!0&&(Array.isArray(Ke.class)===!0?Ke.class=[...Ke.class,"no-pointer-events"]:Ke.class+=" no-pointer-events"),r.h("input",Ke)}function re(Q){g!==null&&(clearTimeout(g),g=null),v!==null&&(clearTimeout(v),v=null),!(Q&&Q.target&&Q.target.qComposing===!0)&&(ye(Q.target.value||""),_=!0,b=u.value,$.focused.value!==!0&&(f!==!0||d.value===!0)&&$.focus(),e.onFilter!==void 0&&(g=setTimeout(()=>{g=null,Re(u.value)},e.inputDebounce)))}function ye(Q,qe){u.value!==Q&&(u.value=Q,qe===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",Q):v=setTimeout(()=>{v=null,n("inputValue",Q)},e.inputDebounce))}function Pe(Q,qe,Oe){_=Oe!==!0,e.useInput===!0&&(ye(Q,!0),(qe===!0||Oe!==!0)&&(b=Q),qe!==!0&&Re(Q))}function Re(Q,qe,Oe){if(e.onFilter===void 0||qe!==!0&&$.focused.value!==!0)return;$.innerLoading.value===!0?n("filterAbort"):($.innerLoading.value=!0,c.value=!0),Q!==""&&e.multiple!==!0&&x.value.length!==0&&_!==!0&&Q===X.value(x.value[0])&&(Q="");const Ke=setTimeout(()=>{l.value===!0&&(l.value=!1)},10);p!==null&&clearTimeout(p),p=Ke,n("filter",Q,(ut,it)=>{(qe===!0||$.focused.value===!0)&&p===Ke&&(clearTimeout(p),typeof ut=="function"&&ut(),c.value=!1,r.nextTick(()=>{$.innerLoading.value=!1,$.editable.value===!0&&(qe===!0?l.value===!0&&Ve():l.value===!0?As(!0):l.value=!0),typeof it=="function"&&r.nextTick(()=>{it(a)}),typeof Oe=="function"&&r.nextTick(()=>{Oe(a)})}))},()=>{$.focused.value===!0&&p===Ke&&(clearTimeout(p),$.innerLoading.value=!1,c.value=!1),l.value===!0&&(l.value=!1)})}function ze(){return r.h(Po,{ref:C,class:U.value,style:e.popupContentStyle,modelValue:l.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&ue.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:B.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:I.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...we.value,onScrollPassive:F,onBeforeShow:Pm,onBeforeHide:dt,onShow:st},Kt)}function dt(Q){Nm(Q),Me()}function st(){he()}function P(Q){ft(Q),E.value?.focus(),d.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function j(Q){ft(Q),r.nextTick(()=>{d.value=!1})}function oe(){const Q=[r.h(y_,{class:`col-auto ${$.fieldClass.value}`,...Y.value,for:$.targetUid.value,dark:B.value,square:!0,loading:c.value,itemAligned:!1,filled:!0,stackLabel:u.value.length!==0,...$.splitAttrs.listeners.value,onFocus:P,onBlur:j},{...t,rawControl:()=>$.getControl(!0),before:void 0,after:void 0})];return l.value===!0&&Q.push(r.h("div",{ref:H,class:U.value+" scroll",style:e.popupContentStyle,...we.value,onClick:Et,onScrollPassive:F},Kt())),r.h(Go,{ref:R,modelValue:i.value,position:e.useInput===!0?"top":void 0,transitionShow:S,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:Pm,onBeforeHide:Se,onHide:Ce,onShow:We},()=>r.h("div",{class:"q-select__dialog"+(B.value===!0?" q-select__dialog--dark q-dark":"")+(d.value===!0?" q-select__dialog--focused":"")},Q))}function Se(Q){Nm(Q),R.value!==null&&R.value.__updateRefocusTarget($.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),$.focused.value=!1}function Ce(Q){Ve(),$.focused.value===!1&&n("blur",Q),an()}function We(){const Q=document.activeElement;(Q===null||Q.id!==$.targetUid.value)&&E.value!==null&&E.value!==Q&&E.value.focus(),he()}function Me(){i.value!==!0&&(s.value=-1,l.value===!0&&(l.value=!1),$.focused.value===!1&&(p!==null&&(clearTimeout(p),p=null),$.innerLoading.value===!0&&(n("filterAbort"),$.innerLoading.value=!1,c.value=!1)))}function $e(Q){$.editable.value===!0&&(f===!0?($.onControlFocusin(Q),i.value=!0,r.nextTick(()=>{$.focus()})):$.focus(),e.onFilter!==void 0?Re(u.value):(ue.value!==!0||t["no-option"]!==void 0)&&(l.value=!0))}function Ve(){i.value=!1,Me()}function an(){e.useInput===!0&&Pe(e.multiple!==!0&&e.fillInput===!0&&x.value.length!==0&&X.value(x.value[0])||"",!0,!0)}function As(Q){let qe=-1;if(Q===!0){if(x.value.length!==0){const Oe=K.value(x.value[0]);qe=e.options.findIndex(Ke=>un(K.value(Ke),Oe))}D(qe)}ee(qe)}function Gw(Q,qe){l.value===!0&&$.innerLoading.value===!1&&(D(-1,!0),r.nextTick(()=>{l.value===!0&&$.innerLoading.value===!1&&(Q>qe?D():As(!0))}))}function Rm(){i.value===!1&&C.value!==null&&C.value.updatePosition()}function Pm(Q){Q!==void 0&&ft(Q),n("popupShow",Q),$.hasPopupOpen=!0,$.onControlFocusin(Q)}function Nm(Q){Q!==void 0&&ft(Q),n("popupHide",Q),$.hasPopupOpen=!1,$.onControlFocusout(Q)}function Im(){f=o.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||ue.value===!1:!0),S=o.platform.is.ios===!0&&f===!0&&e.useInput===!0?"fade":e.transitionShow}return r.onBeforeUpdate(Im),r.onUpdated(Rm),Im(),r.onBeforeUnmount(()=>{g!==null&&clearTimeout(g),v!==null&&clearTimeout(v)}),Object.assign(a,{showPopup:$e,hidePopup:Ve,removeAtIndex:be,add:Qe,toggleOption:je,getOptionIndex:()=>s.value,setOptionIndex:ee,moveOptionSelection:ce,filter:Re,updateMenuPosition:Rm,updateInputValue:Pe,isOptionSelected:de,getEmittingOptionValue:ae,isOptionDisabled:(...Q)=>se.value.apply(null,Q)===!0,getOptionValue:(...Q)=>K.value.apply(null,Q),getOptionLabel:(...Q)=>X.value.apply(null,Q)}),Object.assign($,{innerValue:x,fieldClass:r.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:w,targetRef:E,hasValue:le,showPopup:$e,floatingLabel:r.computed(()=>e.hideSelected!==!0&&le.value===!0||typeof u.value=="number"||u.value.length!==0||br(e.displayValue)),getControlChild:()=>{if($.editable.value!==!1&&(i.value===!0||ue.value!==!0||t["no-option"]!==void 0))return f===!0?oe():ze();$.hasPopupOpen===!0&&($.hasPopupOpen=!1)},controlEvents:{onFocusin(Q){$.onControlFocusin(Q)},onFocusout(Q){$.onControlFocusout(Q,()=>{an(),Me()})},onClick(Q){if(Et(Q),f!==!0&&l.value===!0){Me(),E.value?.focus();return}$e(Q)}},getControl:Q=>{const qe=Wn(),Oe=Q===!0||i.value!==!0||f!==!0;if(e.useInput===!0)qe.push(Pn(Q,Oe));else if($.editable.value===!0){const ut=Oe===!0?pe.value:void 0;qe.push(r.h("input",{ref:Oe===!0?E:void 0,key:"d_t",class:"q-select__focus-target",id:Oe===!0?$.targetUid.value:void 0,value:ve.value,readonly:!0,"data-autofocus":Q===!0||e.autofocus===!0||void 0,...ut,onKeydown:nt,onKeyup:Be,onKeypress:Ue})),Oe===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&qe.push(r.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:Le}))}if(q.value!==void 0&&e.disable!==!0&&me.value.length!==0){const ut=me.value.map(it=>r.h("option",{value:it,selected:!0}));qe.push(r.h("select",{class:"hidden",name:q.value,multiple:e.multiple},ut))}const Ke=e.useInput===!0||Oe!==!0?void 0:$.splitAttrs.attributes.value;return r.h("div",{class:"q-field__native row items-center",...Ke,...$.splitAttrs.listeners.value},qe)},getInnerAppend:()=>e.loading!==!0&&c.value!==!0&&e.hideDropdownIcon!==!0?[r.h(Xe,{class:"q-select__dropdown-icon"+(l.value===!0?" rotate-180":""),name:L.value})]:null}),el($)}}),G_=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],X_=["wave","pulse","pulse-x","pulse-y","fade","blink","none"];ie({name:"QSkeleton",props:{...Ye,tag:{type:String,default:"div"},type:{type:String,validator:e=>G_.includes(e),default:"rect"},animation:{type:String,validator:e=>X_.includes(e),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(e,{slots:t}){const n=r.getCurrentInstance(),a=Ge(e,n.proxy.$q),o=r.computed(()=>{const i=e.size!==void 0?[e.size,e.size]:[e.width,e.height];return{"--q-skeleton-speed":`${e.animationSpeed}ms`,width:i[0],height:i[1]}}),l=r.computed(()=>`q-skeleton q-skeleton--${a.value===!0?"dark":"light"} q-skeleton--type-${e.type}`+(e.animation!=="none"?` q-skeleton--anim q-skeleton--anim-${e.animation}`:"")+(e.square===!0?" q-skeleton--square":"")+(e.bordered===!0?" q-skeleton--bordered":""));return()=>r.h(e.tag,{class:l.value,style:o.value},Te(t.default))}});var Iv=[["left","center","start","width"],["right","center","end","width"],["top","start","center","height"],["bottom","end","center","height"]];ie({name:"QSlideItem",props:{...Ye,leftColor:String,rightColor:String,topColor:String,bottomColor:String,onSlide:Function},emits:["action","top","right","bottom","left"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=Ge(e,o),{getCache:i}=wa(),s=r.ref(null);let u=null,d={},c={},g={};const v=r.computed(()=>o.lang.rtl===!0?{left:"right",right:"left"}:{left:"left",right:"right"}),h=r.computed(()=>"q-slide-item q-item-type overflow-hidden"+(l.value===!0?" q-slide-item--dark q-dark":""));function f(){s.value.style.transform="translate(0,0)"}function _(b,S,y){e.onSlide!==void 0&&n("slide",{side:b,ratio:S,isReset:y})}function p(b){const S=s.value;if(b.isFirst)d={dir:null,size:{left:0,right:0,top:0,bottom:0},scale:0},S.classList.add("no-transition"),Iv.forEach(E=>{if(t[E[0]]!==void 0){const C=g[E[0]];C.style.transform="scale(1)",d.size[E[0]]=C.getBoundingClientRect()[E[3]]}}),d.axis=b.direction==="up"||b.direction==="down"?"Y":"X";else if(b.isFinal){S.classList.remove("no-transition"),d.scale===1?(S.style.transform=`translate${d.axis}(${d.dir*100}%)`,u!==null&&clearTimeout(u),u=setTimeout(()=>{u=null,n(d.showing,{reset:f}),n("action",{side:d.showing,reset:f})},230)):(S.style.transform="translate(0,0)",_(d.showing,0,!0));return}else b.direction=d.axis==="X"?b.offset.x<0?"left":"right":b.offset.y<0?"up":"down";if(t.left===void 0&&b.direction===v.value.right||t.right===void 0&&b.direction===v.value.left||t.top===void 0&&b.direction==="down"||t.bottom===void 0&&b.direction==="up"){S.style.transform="translate(0,0)";return}let y,m,w;d.axis==="X"?(m=b.direction==="left"?-1:1,y=m===1?v.value.left:v.value.right,w=b.distance.x):(m=b.direction==="up"?-2:2,y=m===2?"top":"bottom",w=b.distance.y),!(d.dir!==null&&Math.abs(m)!==Math.abs(d.dir))&&(d.dir!==m&&(["left","right","top","bottom"].forEach(E=>{c[E]&&(c[E].style.visibility=y===E?"visible":"hidden")}),d.showing=y,d.dir=m),d.scale=Math.max(0,Math.min(1,(w-40)/d.size[y])),S.style.transform=`translate${d.axis}(${w*m/Math.abs(m)}px)`,g[y].style.transform=`scale(${d.scale})`,_(y,d.scale,!1))}return r.onBeforeUpdate(()=>{c={},g={}}),r.onBeforeUnmount(()=>{u!==null&&clearTimeout(u)}),Object.assign(a,{reset:f}),()=>{const b=[],S={left:t[v.value.right]!==void 0,right:t[v.value.left]!==void 0,up:t.bottom!==void 0,down:t.top!==void 0},y=Object.keys(S).filter(w=>S[w]===!0);Iv.forEach(w=>{const E=w[0];t[E]!==void 0&&b.push(r.h("div",{key:E,ref:C=>{c[E]=C},class:`q-slide-item__${E} absolute-full row no-wrap items-${w[1]} justify-${w[2]}`+(e[E+"Color"]!==void 0?` bg-${e[E+"Color"]}`:"")},[r.h("div",{ref:C=>{g[E]=C}},t[E]())]))});const m=r.h("div",{key:`${y.length===0?"only-":""} content`,ref:s,class:"q-slide-item__content"},Te(t.default));return y.length===0?b.push(m):b.push(r.withDirectives(m,i("dir#"+y.join(""),()=>{const w={prevent:!0,stop:!0,mouse:!0};return y.forEach(E=>{w[E]=!0}),[[rn,p,void 0,w]]}))),r.h("div",{class:h.value},b)}}}),ie({name:"QSpace",setup(){const e=r.h("div",{class:"q-space"});return()=>e}});var J_='<g transform="matrix(1 0 0 -1 0 80)"><rect width="10" height="20" rx="3"><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"></animate></rect><rect x="15" width="10" height="80" rx="3"><animate attributeName="height" begin="0s" dur="2s" values="80;55;33;5;75;23;73;33;12;14;60;80" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="30" width="10" height="50" rx="3"><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"></animate></rect><rect x="45" width="10" height="30" rx="3"><animate attributeName="height" begin="0s" dur="2s" values="30;45;13;80;56;72;45;76;34;23;67;30" calcMode="linear" repeatCount="indefinite"></animate></rect></g>';ie({name:"QSpinnerAudio",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 55 80",xmlns:"http://www.w3.org/2000/svg",innerHTML:J_})}});var Z_='<g transform="translate(1 1)" stroke-width="2" fill="none" fill-rule="evenodd"><circle cx="5" cy="50" r="5"><animate attributeName="cy" begin="0s" dur="2.2s" values="50;5;50;50" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="cx" begin="0s" dur="2.2s" values="5;27;49;5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="27" cy="5" r="5"><animate attributeName="cy" begin="0s" dur="2.2s" from="5" to="5" values="5;50;50;5" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="cx" begin="0s" dur="2.2s" from="27" to="27" values="27;49;5;27" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="49" cy="50" r="5"><animate attributeName="cy" begin="0s" dur="2.2s" values="50;50;5;50" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="cx" from="49" to="49" begin="0s" dur="2.2s" values="49;5;27;49" calcMode="linear" repeatCount="indefinite"></animate></circle></g>';ie({name:"QSpinnerBall",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 57 57",xmlns:"http://www.w3.org/2000/svg",innerHTML:Z_})}});var V_='<rect y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.5s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.5s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="30" y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.25s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.25s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="60" width="15" height="140" rx="6"><animate attributeName="height" begin="0s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="90" y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.25s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.25s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="120" y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.5s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.5s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect>';ie({name:"QSpinnerBars",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",innerHTML:V_})}});var eS='<rect x="25" y="25" width="50" height="50" fill="none" stroke-width="4" stroke="currentColor"><animateTransform id="spinnerBox" attributeName="transform" type="rotate" from="0 50 50" to="180 50 50" dur="0.5s" begin="rectBox.end"></animateTransform></rect><rect x="27" y="27" width="46" height="50" fill="currentColor"><animate id="rectBox" attributeName="height" begin="0s;spinnerBox.end" dur="1.3s" from="50" to="0" fill="freeze"></animate></rect>';ie({name:"QSpinnerBox",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:eS})}});var tS='<circle cx="50" cy="50" r="48" fill="none" stroke-width="4" stroke-miterlimit="10" stroke="currentColor"></circle><line stroke-linecap="round" stroke-width="4" stroke-miterlimit="10" stroke="currentColor" x1="50" y1="50" x2="85" y2="50.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="2s" repeatCount="indefinite"></animateTransform></line><line stroke-linecap="round" stroke-width="4" stroke-miterlimit="10" stroke="currentColor" x1="50" y1="50" x2="49.5" y2="74"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="15s" repeatCount="indefinite"></animateTransform></line>';ie({name:"QSpinnerClock",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:tS})}});var nS='<rect x="0" y="0" width="100" height="100" fill="none"></rect><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"></path><circle cx="30" cy="47" r="5" fill="#fff"><animate attributeName="opacity" from="0" to="1" values="0;1;1" keyTimes="0;0.2;1" dur="1s" repeatCount="indefinite"></animate></circle><circle cx="50" cy="47" r="5" fill="#fff"><animate attributeName="opacity" from="0" to="1" values="0;0;1;1" keyTimes="0;0.2;0.4;1" dur="1s" repeatCount="indefinite"></animate></circle><circle cx="70" cy="47" r="5" fill="#fff"><animate attributeName="opacity" from="0" to="1" values="0;0;1;1" keyTimes="0;0.4;0.6;1" dur="1s" repeatCount="indefinite"></animate></circle>';ie({name:"QSpinnerComment",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",innerHTML:nS})}});var rS='<rect x="0" y="0" width="100" height="100" fill="none"></rect><g transform="translate(25 25)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.9"><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"></animateTransform></rect></g><g transform="translate(75 25)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.8"><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"></animateTransform></rect></g><g transform="translate(25 75)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.7"><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"></animateTransform></rect></g><g transform="translate(75 75)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.6"><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"></animateTransform></rect></g>';ie({name:"QSpinnerCube",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",innerHTML:rS})}});var aS='<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity=".3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from=".5" to=".5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>';ie({name:"QSpinnerDots",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",innerHTML:aS})}});var oS='<g transform="translate(20 50)"><rect x="-10" y="-30" width="20" height="60" fill="currentColor" opacity="0.6"><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"></animateTransform></rect></g><g transform="translate(50 50)"><rect x="-10" y="-30" width="20" height="60" fill="currentColor" opacity="0.8"><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"></animateTransform></rect></g><g transform="translate(80 50)"><rect x="-10" y="-30" width="20" height="60" fill="currentColor" opacity="0.9"><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"></animateTransform></rect></g>';ie({name:"QSpinnerFacebook",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",innerHTML:oS})}});var lS='<g transform="translate(-20,-20)"><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"><animateTransform attributeName="transform" type="rotate" from="90 50 50" to="0 50 50" dur="1s" repeatCount="indefinite"></animateTransform></path></g><g transform="translate(20,20) rotate(15 50 50)"><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"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="90 50 50" dur="1s" repeatCount="indefinite"></animateTransform></path></g>';ie({name:"QSpinnerGears",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:lS})}});var iS='<circle cx="12.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="0s" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5"><animate attributeName="fill-opacity" begin="100ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="300ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="52.5" r="12.5"><animate attributeName="fill-opacity" begin="600ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="800ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="52.5" r="12.5"><animate attributeName="fill-opacity" begin="400ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="12.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="700ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="500ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="200ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle>';ie({name:"QSpinnerGrid",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 105 105",xmlns:"http://www.w3.org/2000/svg",innerHTML:iS})}});var sS='<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"><animate attributeName="fill-opacity" begin="0s" dur="1.4s" values="0.5;1;0.5" calcMode="linear" repeatCount="indefinite"></animate></path><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"><animate attributeName="fill-opacity" begin="0.7s" dur="1.4s" values="0.5;1;0.5" calcMode="linear" repeatCount="indefinite"></animate></path><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"></path>';ie({name:"QSpinnerHearts",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 140 64",xmlns:"http://www.w3.org/2000/svg",innerHTML:sS})}});var uS='<g><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"></path><clipPath id="uil-hourglass-clip1"><rect x="15" y="20" width="70" height="25"><animate attributeName="height" from="25" to="0" dur="1s" repeatCount="indefinite" values="25;0;0" keyTimes="0;0.5;1"></animate><animate attributeName="y" from="20" to="45" dur="1s" repeatCount="indefinite" values="20;45;45" keyTimes="0;0.5;1"></animate></rect></clipPath><clipPath id="uil-hourglass-clip2"><rect x="15" y="55" width="70" height="25"><animate attributeName="height" from="0" to="25" dur="1s" repeatCount="indefinite" values="0;25;25" keyTimes="0;0.5;1"></animate><animate attributeName="y" from="80" to="55" dur="1s" repeatCount="indefinite" values="80;55;55" keyTimes="0;0.5;1"></animate></rect></clipPath><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"></path><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"></path><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"></animateTransform></g>';ie({name:"QSpinnerHourglass",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:uS})}});var cS='<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"><animate attributeName="stroke-dashoffset" from="0" to="21.382410685221355" begin="0" dur="2s" repeatCount="indefinite" fill="freeze"></animate></path>';ie({name:"QSpinnerInfinity",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",innerHTML:cS})}});var dS='<g stroke-width="4" stroke-linecap="round"><line y1="17" y2="29" transform="translate(32,32) rotate(180)"><animate attributeName="stroke-opacity" dur="750ms" values="1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(210)"><animate attributeName="stroke-opacity" dur="750ms" values="0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(240)"><animate attributeName="stroke-opacity" dur="750ms" values=".1;0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(270)"><animate attributeName="stroke-opacity" dur="750ms" values=".15;.1;0;1;.85;.7;.65;.55;.45;.35;.25;.15" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(300)"><animate attributeName="stroke-opacity" dur="750ms" values=".25;.15;.1;0;1;.85;.7;.65;.55;.45;.35;.25" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(330)"><animate attributeName="stroke-opacity" dur="750ms" values=".35;.25;.15;.1;0;1;.85;.7;.65;.55;.45;.35" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(0)"><animate attributeName="stroke-opacity" dur="750ms" values=".45;.35;.25;.15;.1;0;1;.85;.7;.65;.55;.45" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(30)"><animate attributeName="stroke-opacity" dur="750ms" values=".55;.45;.35;.25;.15;.1;0;1;.85;.7;.65;.55" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(60)"><animate attributeName="stroke-opacity" dur="750ms" values=".65;.55;.45;.35;.25;.15;.1;0;1;.85;.7;.65" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(90)"><animate attributeName="stroke-opacity" dur="750ms" values=".7;.65;.55;.45;.35;.25;.15;.1;0;1;.85;.7" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(120)"><animate attributeName="stroke-opacity" dur="750ms" values=".85;.7;.65;.55;.45;.35;.25;.15;.1;0;1;.85" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(150)"><animate attributeName="stroke-opacity" dur="750ms" values="1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1" repeatCount="indefinite"></animate></line></g>';ie({name:"QSpinnerIos",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,stroke:"currentColor",fill:"currentColor",viewBox:"0 0 64 64",innerHTML:dS})}});var fS='<circle cx="50" cy="50" r="44" fill="none" stroke-width="4" stroke-opacity=".5" stroke="currentColor"></circle><circle cx="8" cy="54" r="6" fill="currentColor" stroke-width="3" stroke="currentColor"><animateTransform attributeName="transform" type="rotate" from="0 50 48" to="360 50 52" dur="2s" repeatCount="indefinite"></animateTransform></circle>';ie({name:"QSpinnerOrbit",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:fS})}});var vS='<g transform="translate(1 1)" stroke-width="2" fill="none" fill-rule="evenodd"><circle stroke-opacity=".5" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="1s" repeatCount="indefinite"></animateTransform></path></g>';ie({name:"QSpinnerOval",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",innerHTML:vS})}});var mS='<path d="M0 50A50 50 0 0 1 50 0L50 50L0 50" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="0.8s" repeatCount="indefinite"></animateTransform></path><path d="M50 0A50 50 0 0 1 100 50L50 50L50 0" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="1.6s" repeatCount="indefinite"></animateTransform></path><path d="M100 50A50 50 0 0 1 50 100L50 50L100 50" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="2.4s" repeatCount="indefinite"></animateTransform></path><path d="M50 100A50 50 0 0 1 0 50L50 50L50 100" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="3.2s" repeatCount="indefinite"></animateTransform></path>';ie({name:"QSpinnerPie",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:mS})}});var hS='<g fill="none" fill-rule="evenodd" stroke-width="2"><circle cx="22" cy="22" r="1"><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"></animate><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"></animate></circle><circle cx="22" cy="22" r="1"><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"></animate><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"></animate></circle></g>';ie({name:"QSpinnerPuff",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg",innerHTML:hS})}});var gS='<g transform="scale(0.55)"><circle cx="30" cy="150" r="30" fill="currentColor"><animate attributeName="opacity" from="0" to="1" dur="1s" begin="0" repeatCount="indefinite" keyTimes="0;0.5;1" values="0;1;1"></animate></circle><path d="M90,150h30c0-49.7-40.3-90-90-90v30C63.1,90,90,116.9,90,150z" fill="currentColor"><animate attributeName="opacity" from="0" to="1" dur="1s" begin="0.1" repeatCount="indefinite" keyTimes="0;0.5;1" values="0;1;1"></animate></path><path d="M150,150h30C180,67.2,112.8,0,30,0v30C96.3,30,150,83.7,150,150z" fill="currentColor"><animate attributeName="opacity" from="0" to="1" dur="1s" begin="0.2" repeatCount="indefinite" keyTimes="0;0.5;1" values="0;1;1"></animate></path></g>';ie({name:"QSpinnerRadio",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:gS})}});var bS='<g fill="none" fill-rule="evenodd" transform="translate(1 1)" stroke-width="2"><circle cx="22" cy="22" r="6"><animate attributeName="r" begin="1.5s" dur="3s" values="6;22" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-opacity" begin="1.5s" dur="3s" values="1;0" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-width" begin="1.5s" dur="3s" values="2;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="22" cy="22" r="6"><animate attributeName="r" begin="3s" dur="3s" values="6;22" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-opacity" begin="3s" dur="3s" values="1;0" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-width" begin="3s" dur="3s" values="2;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="22" cy="22" r="8"><animate attributeName="r" begin="0s" dur="1.5s" values="6;1;2;3;4;5;6" calcMode="linear" repeatCount="indefinite"></animate></circle></g>';ie({name:"QSpinnerRings",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",innerHTML:bS})}});var pS='<defs><linearGradient x1="8.042%" y1="0%" x2="65.682%" y2="23.865%" id="a"><stop stop-color="currentColor" stop-opacity="0" offset="0%"></stop><stop stop-color="currentColor" stop-opacity=".631" offset="63.146%"></stop><stop stop-color="currentColor" offset="100%"></stop></linearGradient></defs><g transform="translate(1 1)" fill="none" fill-rule="evenodd"><path d="M36 18c0-9.94-8.06-18-18-18" stroke="url(#a)" stroke-width="2"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.9s" repeatCount="indefinite"></animateTransform></path><circle fill="currentColor" cx="36" cy="18" r="1"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.9s" repeatCount="indefinite"></animateTransform></circle></g>';ie({name:"QSpinnerTail",props:gt,setup(e){const{cSize:t,classes:n}=bt(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",innerHTML:pS})}}),ie({name:"QSplitter",props:{...Ye,modelValue:{type:Number,required:!0},reverse:Boolean,unit:{type:String,default:"%",validator:e=>["%","px"].includes(e)},limits:{type:Array,validator:e=>e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"?!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(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=Ge(e,a),l=r.ref(null),i={before:r.ref(null),after:r.ref(null)},s=r.computed(()=>`q-splitter no-wrap ${e.horizontal===!0?"q-splitter--horizontal column":"q-splitter--vertical row"} q-splitter--${e.disable===!0?"disabled":"workable"}`+(o.value===!0?" q-splitter--dark":"")),u=r.computed(()=>e.horizontal===!0?"height":"width"),d=r.computed(()=>e.reverse!==!0?"before":"after"),c=r.computed(()=>e.limits!==void 0?e.limits:e.unit==="%"?[10,90]:[50,1/0]);function g(w){return(e.unit==="%"?w:Math.round(w))+e.unit}const v=r.computed(()=>({[d.value]:{[u.value]:g(e.modelValue)}}));let h,f,_,p,b;function S(w){if(w.isFirst===!0){const C=l.value.getBoundingClientRect()[u.value];h=e.horizontal===!0?"up":"left",f=e.unit==="%"?100:C,_=Math.min(f,c.value[1],Math.max(c.value[0],e.modelValue)),p=(e.reverse!==!0?1:-1)*(e.horizontal===!0?1:a.lang.rtl===!0?-1:1)*(e.unit==="%"?C===0?0:100/C:1),l.value.classList.add("q-splitter--active");return}if(w.isFinal===!0){b!==e.modelValue&&n("update:modelValue",b),l.value.classList.remove("q-splitter--active");return}const E=_+p*(w.direction===h?-1:1)*w.distance[e.horizontal===!0?"y":"x"];b=Math.min(f,c.value[1],Math.max(c.value[0],E)),i[d.value].value.style[u.value]=g(b),e.emitImmediately===!0&&e.modelValue!==b&&n("update:modelValue",b)}const y=r.computed(()=>[[rn,S,void 0,{[e.horizontal===!0?"vertical":"horizontal"]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]);function m(w,E){w<E[0]?n("update:modelValue",E[0]):w>E[1]&&n("update:modelValue",E[1])}return r.watch(()=>e.modelValue,w=>{m(w,c.value)}),r.watch(()=>e.limits,()=>{r.nextTick(()=>{m(e.modelValue,c.value)})}),()=>{const w=[r.h("div",{ref:i.before,class:["q-splitter__panel q-splitter__before"+(e.reverse===!0?" col":""),e.beforeClass],style:v.value.before},Te(t.before)),r.h("div",{class:["q-splitter__separator",e.separatorClass],style:e.separatorStyle,"aria-disabled":e.disable===!0?"true":void 0},[en("div",{class:"q-splitter__separator-area absolute-full"},Te(t.separator),"sep",e.disable!==!0,()=>y.value)]),r.h("div",{ref:i.after,class:["q-splitter__panel q-splitter__after"+(e.reverse===!0?"":" col"),e.afterClass],style:v.value.after},Te(t.after))];return r.h("div",{class:s.value,ref:l},ht(t.default,w))}}});var Dv=ie({name:"StepHeader",props:{stepper:{},step:{},goToPanel:Function},setup(e,{attrs:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),a=r.ref(null),o=r.computed(()=>e.stepper.modelValue===e.step.name),l=r.computed(()=>{const p=e.step.disable;return p===!0||p===""}),i=r.computed(()=>{const p=e.step.error;return p===!0||p===""}),s=r.computed(()=>{const p=e.step.done;return l.value===!1&&(p===!0||p==="")}),u=r.computed(()=>{const p=e.step.headerNav,b=p===!0||p===""||p===void 0;return l.value===!1&&e.stepper.headerNav&&b}),d=r.computed(()=>e.step.prefix&&(o.value===!1||e.stepper.activeIcon==="none")&&(i.value===!1||e.stepper.errorIcon==="none")&&(s.value===!1||e.stepper.doneIcon==="none")),c=r.computed(()=>{const p=e.step.icon||e.stepper.inactiveIcon;if(o.value===!0){const b=e.step.activeIcon||e.stepper.activeIcon;return b==="none"?p:b||n.iconSet.stepper.active}if(i.value===!0){const b=e.step.errorIcon||e.stepper.errorIcon;return b==="none"?p:b||n.iconSet.stepper.error}if(l.value===!1&&s.value===!0){const b=e.step.doneIcon||e.stepper.doneIcon;return b==="none"?p:b||n.iconSet.stepper.done}return p}),g=r.computed(()=>{const p=i.value===!0?e.step.errorColor||e.stepper.errorColor:void 0;if(o.value===!0){const b=e.step.activeColor||e.stepper.activeColor||e.step.color;return b!==void 0?b:p}return p!==void 0?p:l.value===!1&&s.value===!0?e.step.doneColor||e.stepper.doneColor||e.step.color||e.stepper.inactiveColor:e.step.color||e.stepper.inactiveColor}),v=r.computed(()=>"q-stepper__tab col-grow flex items-center no-wrap relative-position"+(g.value!==void 0?` text-${g.value}`:"")+(i.value===!0?" q-stepper__tab--error q-stepper__tab--error-with-"+(d.value===!0?"prefix":"icon"):"")+(o.value===!0?" q-stepper__tab--active":"")+(s.value===!0?" q-stepper__tab--done":"")+(u.value===!0?" q-stepper__tab--navigation q-focusable q-hoverable":"")+(l.value===!0?" q-stepper__tab--disabled":"")),h=r.computed(()=>e.stepper.headerNav!==!0?!1:u.value);function f(){a.value?.focus(),o.value===!1&&e.goToPanel(e.step.name)}function _(p){p.keyCode===13&&o.value===!1&&e.goToPanel(e.step.name)}return()=>{const p={class:v.value};u.value===!0&&(p.onClick=f,p.onKeyup=_,Object.assign(p,l.value===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0}));const b=[r.h("div",{class:"q-focus-helper",tabindex:-1,ref:a}),r.h("div",{class:"q-stepper__dot row flex-center q-stepper__line relative-position"},[r.h("span",{class:"row flex-center"},[d.value===!0?e.step.prefix:r.h(Xe,{name:c.value})])])];if(e.step.title!==void 0&&e.step.title!==null){const S=[r.h("div",{class:"q-stepper__title"},e.step.title)];e.step.caption!==void 0&&e.step.caption!==null&&S.push(r.h("div",{class:"q-stepper__caption"},e.step.caption)),b.push(r.h("div",{class:"q-stepper__label q-stepper__line relative-position"},S))}return r.withDirectives(r.h("div",p,b),[[So,h.value]])}}});function $v(e){return r.h("div",{class:"q-stepper__step-content"},[r.h("div",{class:"q-stepper__step-inner"},Te(e.default))])}var Bv={setup(e,{slots:t}){return()=>$v(t)}};ie({name:"QStep",props:{...zi,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,onScroll:[Function,Array]},setup(e,{slots:t,emit:n}){const{proxy:{$q:a}}=r.getCurrentInstance(),o=r.inject(nd,et);if(o===et)return console.error("QStep needs to be a child of QStepper"),et;const{getCache:l}=wa(),i=r.ref(null),s=r.computed(()=>o.value.modelValue===e.name),u=r.computed(()=>a.platform.is.ios!==!0&&a.platform.is.chrome===!0||s.value!==!0||o.value.vertical!==!0?{}:{onScroll(g){const{target:v}=g;v.scrollTop>0&&(v.scrollTop=0),e.onScroll!==void 0&&n("scroll",g)}}),d=r.computed(()=>typeof e.name=="string"||typeof e.name=="number"?e.name:String(e.name));function c(){const g=o.value.vertical;return g===!0&&o.value.keepAlive===!0?r.h(r.KeepAlive,o.value.keepAliveProps.value,s.value===!0?[r.h(o.value.needsUniqueKeepAliveWrapper.value===!0?l(d.value,()=>({...Bv,name:d.value})):Bv,{key:d.value},t.default)]:void 0):g!==!0||s.value===!0?$v(t):void 0}return()=>r.h("div",{ref:i,class:"q-stepper__step",role:"tabpanel",...u.value},o.value.vertical===!0?[r.h(Dv,{stepper:o.value,step:e,goToPanel:o.value.goToPanel}),o.value.animated===!0?r.h(ps,c):c()]:[c()])}});var yS=/(-\w)/g;function _S(e){const t={};for(const n in e){const a=n.replace(yS,o=>o[1].toUpperCase());t[a]=e[n]}return t}ie({name:"QStepper",props:{...Ye,...Hi,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:ji,setup(e,{slots:t}){const n=r.getCurrentInstance(),a=Ge(e,n.proxy.$q),{updatePanelsList:o,isValidPanelName:l,updatePanelIndex:i,getPanelContent:s,getPanels:u,panelDirectives:d,goToPanel:c,keepAliveProps:g,needsUniqueKeepAliveWrapper:v}=Ui();r.provide(nd,r.computed(()=>({goToPanel:c,keepAliveProps:g,needsUniqueKeepAliveWrapper:v,...e})));const h=r.computed(()=>`q-stepper q-stepper--${e.vertical===!0?"vertical":"horizontal"}`+(e.flat===!0?" q-stepper--flat":"")+(e.bordered===!0?" q-stepper--bordered":"")+(a.value===!0?" q-stepper--dark q-dark":"")),f=r.computed(()=>`q-stepper__header row items-stretch justify-between q-stepper__header--${e.alternativeLabels===!0?"alternative":"standard"}-labels`+(e.flat===!1||e.bordered===!0?" q-stepper__header--border":"")+(e.contracted===!0?" q-stepper__header--contracted":"")+(e.headerClass!==void 0?` ${e.headerClass}`:""));function _(){const p=Te(t.message,[]);if(e.vertical===!0){l(e.modelValue)&&i();const b=r.h("div",{class:"q-stepper__content"},Te(t.default));return p===void 0?[b]:p.concat(b)}return[r.h("div",{class:f.value},u().map(b=>{const S=_S(b.props);return r.h(Dv,{key:S.name,stepper:e,step:S,goToPanel:c})})),p,en("div",{class:"q-stepper__content q-panel-parent"},s(),"cont",e.swipeable,()=>d.value)]}return()=>(o(t),r.h("div",{class:h.value},ht(t.navigation,_())))}}),ie({name:"QStepperNavigation",setup(e,{slots:t}){return()=>r.h("div",{class:"q-stepper__nav"},Te(t.default))}});var SS=ie({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const a=r.getCurrentInstance(),{proxy:{$q:o}}=a,l=i=>{n("click",i)};return()=>{if(e.props===void 0)return r.h("th",{class:e.autoWidth===!0?"q-table--col-auto-width":"",onClick:l},Te(t.default));let i,s;const u=a.vnode.key;if(u){if(i=e.props.colsMap[u],i===void 0)return}else i=e.props.col;if(i.sortable===!0){const c=i.align==="right"?"unshift":"push";s=ga(t.default,[]),s[c](r.h(Xe,{class:i.__iconClass,name:o.iconSet.table.arrowUp}))}else s=Te(t.default);const d={class:i.__thClass+(e.autoWidth===!0?" q-table--col-auto-width":""),style:i.headerStyle,onClick:c=>{i.sortable===!0&&e.props.sort(i),l(c)}};return r.h("th",d,s)}}});function Fv(e,t){return r.h("div",e,[r.h("table",{class:"q-table"},t)])}var wS={list:L_,table:N_},CS=["list","table","__qtable"],kS=ie({name:"QVirtualScroll",props:{...Os,type:{type:String,default:"list",validator:e=>CS.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:sr},setup(e,{slots:t,attrs:n}){let a;const o=r.ref(null),l=r.computed(()=>e.itemsSize>=0&&e.itemsFn!==void 0?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0),{virtualScrollSliceRange:i,localResetVirtualScroll:s,padVirtualScroll:u,onVirtualScrollEvt:d}=Pv({virtualScrollLength:l,getVirtualScrollTarget:f,getVirtualScrollEl:h}),c=r.computed(()=>{if(l.value===0)return[];const S=(y,m)=>({index:i.value.from+m,item:y});return e.itemsFn===void 0?e.items.slice(i.value.from,i.value.to).map(S):e.itemsFn(i.value.from,i.value.to-i.value.from).map(S)}),g=r.computed(()=>"q-virtual-scroll q-virtual-scroll"+(e.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(e.scrollTarget!==void 0?"":" scroll")),v=r.computed(()=>e.scrollTarget!==void 0?{}:{tabindex:0});r.watch(l,()=>{s()}),r.watch(()=>e.scrollTarget,()=>{p(),_()});function h(){return o.value.$el||o.value}function f(){return a}function _(){a=pn(h(),e.scrollTarget),a.addEventListener("scroll",d,lt.passive)}function p(){a!==void 0&&(a.removeEventListener("scroll",d,lt.passive),a=void 0)}function b(){let S=u(e.type==="list"?"div":"tbody",c.value.map(t.default));return t.before!==void 0&&(S=t.before().concat(S)),ht(t.after,S)}return r.onBeforeMount(()=>{s()}),r.onMounted(()=>{_()}),r.onActivated(()=>{_()}),r.onDeactivated(()=>{p()}),r.onBeforeUnmount(()=>{p()}),()=>{if(t.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return e.type==="__qtable"?Fv({ref:o,class:"q-table__middle "+g.value},b()):r.h(wS[e.type],{...n,ref:o,class:[n.class,g.value],...v.value},b)}}});function xS(e,t){return new Date(e)-new Date(t)}var ES={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>e==="ad"||e==="da",default:"ad"}};function TS(e,t,n,a){const o=r.computed(()=>{const{sortBy:s}=t.value;return s&&n.value.find(u=>u.name===s)||null}),l=r.computed(()=>e.sortMethod!==void 0?e.sortMethod:(s,u,d)=>{const c=n.value.find(h=>h.name===u);if(c===void 0||c.field===void 0)return s;const g=d===!0?-1:1,v=typeof c.field=="function"?h=>c.field(h):h=>h[c.field];return s.sort((h,f)=>{let _=v(h),p=v(f);return c.rawSort!==void 0?c.rawSort(_,p,h,f)*g:_==null?-1*g:p==null?1*g:c.sort!==void 0?c.sort(_,p,h,f)*g:ma(_)===!0&&ma(p)===!0?(_-p)*g:va(_)===!0&&va(p)===!0?xS(_,p)*g:typeof _=="boolean"&&typeof p=="boolean"?(_-p)*g:([_,p]=[_,p].map(b=>(b+"").toLocaleString().toLowerCase()),_<p?-1*g:_===p?0:g)})});function i(s){let u=e.columnSortOrder;if($t(s)===!0)s.sortOrder&&(u=s.sortOrder),s=s.name;else{const g=n.value.find(v=>v.name===s);g?.sortOrder&&(u=g.sortOrder)}let{sortBy:d,descending:c}=t.value;d!==s?(d=s,c=u==="da"):e.binaryStateSort===!0?c=!c:c===!0?u==="ad"?d=null:c=!1:u==="ad"?c=!0:d=null,a({sortBy:d,descending:c,page:1})}return{columnToSort:o,computedSortMethod:l,sort:i}}var qS={filter:[String,Object],filterMethod:Function};function OS(e,t){const n=r.computed(()=>e.filterMethod!==void 0?e.filterMethod:(a,o,l,i)=>{const s=o?o.toLowerCase():"";return a.filter(u=>l.some(d=>{const c=i(d,u)+"";return(c==="undefined"||c==="null"?"":c.toLowerCase()).indexOf(s)!==-1}))});return r.watch(()=>e.filter,()=>{r.nextTick(()=>{t({page:1},!0)})},{deep:!0}),{computedFilterMethod:n}}function MS(e,t){for(const n in t)if(t[n]!==e[n])return!1;return!0}function zv(e){return e.page<1&&(e.page=1),e.rowsPerPage!==void 0&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}var LS={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function AS(e,t){const{props:n,emit:a}=e,o=r.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:n.rowsPerPageOptions.length!==0?n.rowsPerPageOptions[0]:5},n.pagination)),l=r.computed(()=>{const c=n["onUpdate:pagination"]!==void 0?{...o.value,...n.pagination}:o.value;return zv(c)}),i=r.computed(()=>l.value.rowsNumber!==void 0);function s(c){u({pagination:c,filter:n.filter})}function u(c={}){r.nextTick(()=>{a("request",{pagination:c.pagination||l.value,filter:c.filter||n.filter,getCellValue:t})})}function d(c,g){const v=zv({...l.value,...c});if(MS(l.value,v)===!0){i.value===!0&&g===!0&&s(v);return}if(i.value===!0){s(v);return}n.pagination!==void 0&&n["onUpdate:pagination"]!==void 0?a("update:pagination",v):o.value=v}return{innerPagination:o,computedPagination:l,isServerSide:i,requestServerInteraction:u,setPagination:d}}function RS(e,t,n,a,o,l){const{props:i,emit:s,proxy:{$q:u}}=e,d=r.computed(()=>a.value===!0?n.value.rowsNumber||0:l.value),c=r.computed(()=>{const{page:m,rowsPerPage:w}=n.value;return(m-1)*w}),g=r.computed(()=>{const{page:m,rowsPerPage:w}=n.value;return m*w}),v=r.computed(()=>n.value.page===1),h=r.computed(()=>n.value.rowsPerPage===0?1:Math.max(1,Math.ceil(d.value/n.value.rowsPerPage))),f=r.computed(()=>g.value===0?!0:n.value.page>=h.value),_=r.computed(()=>(i.rowsPerPageOptions.includes(t.value.rowsPerPage)?i.rowsPerPageOptions:[t.value.rowsPerPage].concat(i.rowsPerPageOptions)).map(w=>({label:w===0?u.lang.table.allRows:""+w,value:w})));r.watch(h,(m,w)=>{if(m===w)return;const E=n.value.page;m&&!E?o({page:1}):m<E&&o({page:m})});function p(){o({page:1})}function b(){const{page:m}=n.value;m>1&&o({page:m-1})}function S(){const{page:m,rowsPerPage:w}=n.value;g.value>0&&m*w<d.value&&o({page:m+1})}function y(){o({page:h.value})}return i["onUpdate:pagination"]!==void 0&&s("update:pagination",{...n.value}),{firstRowIndex:c,lastRowIndex:g,isFirstPage:v,isLastPage:f,pagesNumber:h,computedRowsPerPageOptions:_,computedRowsNumber:d,firstPage:p,prevPage:b,nextPage:S,lastPage:y}}var PS={selection:{type:String,default:"none",validator:e=>["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},NS=["update:selected","selection"];function IS(e,t,n,a){const o=r.computed(()=>{const f={};return e.selected.map(a.value).forEach(_=>{f[_]=!0}),f}),l=r.computed(()=>e.selection!=="none"),i=r.computed(()=>e.selection==="single"),s=r.computed(()=>e.selection==="multiple"),u=r.computed(()=>n.value.length!==0&&n.value.every(f=>o.value[a.value(f)]===!0)),d=r.computed(()=>u.value!==!0&&n.value.some(f=>o.value[a.value(f)]===!0)),c=r.computed(()=>e.selected.length);function g(f){return o.value[f]===!0}function v(){t("update:selected",[])}function h(f,_,p,b){t("selection",{rows:_,added:p,keys:f,evt:b});const S=i.value===!0?p===!0?_:[]:p===!0?e.selected.concat(_):e.selected.filter(y=>f.includes(a.value(y))===!1);t("update:selected",S)}return{hasSelectionMode:l,singleSelection:i,multipleSelection:s,allRowsSelected:u,someRowsSelected:d,rowsSelectedNumber:c,isRowSelected:g,clearSelection:v,updateSelection:h}}function Hv(e){return Array.isArray(e)?e.slice():[]}var DS={expanded:Array},$S=["update:expanded"];function BS(e,t){const n=r.ref(Hv(e.expanded));r.watch(()=>e.expanded,i=>{n.value=Hv(i)});function a(i){return n.value.includes(i)}function o(i){e.expanded!==void 0?t("update:expanded",i):n.value=i}function l(i,s){const u=n.value.slice(),d=u.indexOf(i);s===!0?d===-1&&(u.push(i),o(u)):d!==-1&&(u.splice(d,1),o(u))}return{isRowExpanded:a,setExpanded:o,updateExpanded:l}}var FS={visibleColumns:Array};function zS(e,t,n){const a=r.computed(()=>{if(e.columns!==void 0)return e.columns;const s=e.rows[0];return s!==void 0?Object.keys(s).map(u=>({name:u,label:u.toUpperCase(),field:u,align:ma(s[u])?"right":"left",sortable:!0})):[]}),o=r.computed(()=>{const{sortBy:s,descending:u}=t.value;return(e.visibleColumns!==void 0?a.value.filter(c=>c.required===!0||e.visibleColumns.includes(c.name)===!0):a.value).map(c=>{const g=c.align||"right",v=`text-${g}`;return{...c,align:g,__iconClass:`q-table__sort-icon q-table__sort-icon--${g}`,__thClass:v+(c.headerClasses!==void 0?" "+c.headerClasses:"")+(c.sortable===!0?" sortable":"")+(c.name===s?` sorted ${u===!0?"sort-desc":""}`:""),__tdStyle:c.style!==void 0?typeof c.style!="function"?()=>c.style:c.style:()=>null,__tdClass:c.classes!==void 0?typeof c.classes!="function"?()=>v+" "+c.classes:h=>v+" "+c.classes(h):()=>v}})}),l=r.computed(()=>{const s={};return o.value.forEach(u=>{s[u.name]=u}),s}),i=r.computed(()=>e.tableColspan!==void 0?e.tableColspan:o.value.length+(n.value===!0?1:0));return{colList:a,computedCols:o,computedColsMap:l,computedColspan:i}}var al="q-table__bottom row items-center",jv={};Rv.forEach(e=>{jv[e]={}}),ie({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...jv,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],tableRowStyleFn:Function,tableRowClassFn:Function,cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],cardStyleFn:Function,cardClassFn:Function,hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...Ye,...Qi,...FS,...qS,...LS,...DS,...PS,...ES},emits:["request","virtualScroll",...Wi,...$S,...NS],setup(e,{slots:t,emit:n}){const a=r.getCurrentInstance(),{proxy:{$q:o}}=a,l=Ge(e,o),{inFullscreen:i,toggleFullscreen:s}=Ki(),u=r.computed(()=>typeof e.rowKey=="function"?e.rowKey:re=>re[e.rowKey]),d=r.ref(null),c=r.ref(null),g=r.computed(()=>e.grid!==!0&&e.virtualScroll===!0),v=r.computed(()=>" q-table__card"+(l.value===!0?" q-table__card--dark q-dark":"")+(e.square===!0?" q-table--square":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")),h=r.computed(()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(e.grid===!0?" q-table--grid":v.value)+(l.value===!0?" q-table--dark":"")+(e.dense===!0?" q-table--dense":"")+(e.wrapCells===!1?" q-table--no-wrap":"")+(i.value===!0?" fullscreen scroll":"")),f=r.computed(()=>h.value+(e.loading===!0?" q-table--loading":""));r.watch(()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+h.value,()=>{g.value===!0&&c.value?.reset()});const{innerPagination:_,computedPagination:p,isServerSide:b,requestServerInteraction:S,setPagination:y}=AS(a,ee),{computedFilterMethod:m}=OS(e,y),{isRowExpanded:w,setExpanded:E,updateExpanded:C}=BS(e,n),R=r.computed(()=>{let re=e.rows;if(b.value===!0||re.length===0)return re;const{sortBy:ye,descending:Pe}=p.value;return e.filter&&(re=m.value(re,e.filter,$.value,ee)),B.value!==null&&(re=le.value(e.rows===re?re.slice():re,ye,Pe)),re}),H=r.computed(()=>R.value.length),q=r.computed(()=>{let re=R.value;if(b.value===!0)return re;const{rowsPerPage:ye}=p.value;return ye!==0&&(U.value===0&&e.rows!==re?re.length>ue.value&&(re=re.slice(0,ue.value)):re=re.slice(U.value,ue.value)),re}),{hasSelectionMode:T,singleSelection:M,multipleSelection:O,allRowsSelected:k,someRowsSelected:A,rowsSelectedNumber:D,isRowSelected:z,clearSelection:F,updateSelection:Z}=IS(e,n,q,u),{colList:he,computedCols:$,computedColsMap:x,computedColspan:Y}=zS(e,p,T),{columnToSort:B,computedSortMethod:le,sort:N}=TS(e,p,he,y),{firstRowIndex:U,lastRowIndex:ue,isFirstPage:W,isLastPage:ve,pagesNumber:_e,computedRowsPerPageOptions:G,computedRowsNumber:ge,firstPage:pe,prevPage:we,nextPage:Ae,lastPage:fe}=RS(a,_,p,b,y,H),L=r.computed(()=>q.value.length===0),I=r.computed(()=>{const re={};return Rv.forEach(ye=>{re[ye]=e[ye]}),re.virtualScrollItemSize===void 0&&(re.virtualScrollItemSize=e.dense===!0?28:48),re});function te(){g.value===!0&&c.value.reset()}function K(){if(e.grid===!0)return Pn();const re=e.hideHeader!==!0?xe:null;if(g.value===!0){const Pe=t["top-row"],Re=t["bottom-row"],ze={default:dt=>J(dt.item,t.body,dt.index)};if(Pe!==void 0){const dt=r.h("tbody",Pe({cols:$.value}));ze.before=re===null?()=>dt:()=>[re()].concat(dt)}else re!==null&&(ze.before=re);return Re!==void 0&&(ze.after=()=>r.h("tbody",Re({cols:$.value}))),r.h(kS,{ref:c,class:e.tableClass,style:e.tableStyle,...I.value,scrollTarget:e.virtualScrollTarget,items:q.value,type:"__qtable",tableColspan:Y.value,onVirtualScroll:se},ze)}const ye=[ae()];return re!==null&&ye.unshift(re()),Fv({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},ye)}function X(re,ye){if(c.value!==null){c.value.scrollTo(re,ye);return}re=parseInt(re,10);const Pe=d.value.querySelector(`tbody tr:nth-of-type(${re+1})`);if(Pe!==null){const Re=d.value.querySelector(".q-table__middle.scroll"),ze=Pe.offsetTop-e.virtualScrollStickySizeStart,dt=ze<Re.scrollTop?"decrease":"increase";Re.scrollTop=ze,n("virtualScroll",{index:re,from:0,to:_.value.rowsPerPage-1,direction:dt})}}function se(re){n("virtualScroll",re)}function me(){return[r.h(H_,{class:"q-table__linear-progress",color:e.color,dark:l.value,indeterminate:!0,trackColor:"transparent"})]}function J(re,ye,Pe){const Re=u.value(re),ze=z(Re);if(ye!==void 0){const j={key:Re,row:re,pageIndex:Pe,__trClass:ze?"selected":""};if(e.tableRowStyleFn!==void 0&&(j.__trStyle=e.tableRowStyleFn(re)),e.tableRowClassFn!==void 0){const oe=e.tableRowClassFn(re);oe&&(j.__trClass=`${oe} ${j.__trClass}`)}return ye(be(j))}const dt=t["body-cell"],st=$.value.map(j=>{const oe=t[`body-cell-${j.name}`],Se=oe!==void 0?oe:dt;return Se!==void 0?Se(ke({key:Re,row:re,pageIndex:Pe,col:j})):r.h("td",{class:j.__tdClass(re),style:j.__tdStyle(re)},ee(j,re))});if(T.value===!0){const j=t["body-selection"],oe=j!==void 0?j(Qe({key:Re,row:re,pageIndex:Pe})):[r.h(ka,{modelValue:ze,color:e.color,dark:l.value,dense:e.dense,"onUpdate:modelValue":(Se,Ce)=>{Z([Re],[re],Se,Ce)}})];st.unshift(r.h("td",{class:"q-table--col-auto-width"},oe))}const P={key:Re,class:{selected:ze}};if(e.onRowClick!==void 0&&(P.class["cursor-pointer"]=!0,P.onClick=j=>{n("rowClick",j,re,Pe)}),e.onRowDblclick!==void 0&&(P.class["cursor-pointer"]=!0,P.onDblclick=j=>{n("rowDblclick",j,re,Pe)}),e.onRowContextmenu!==void 0&&(P.class["cursor-pointer"]=!0,P.onContextmenu=j=>{n("rowContextmenu",j,re,Pe)}),e.tableRowStyleFn!==void 0&&(P.style=e.tableRowStyleFn(re)),e.tableRowClassFn!==void 0){const j=e.tableRowClassFn(re);j&&(P.class[j]=!0)}return r.h("tr",P,st)}function ae(){const re=t.body,ye=t["top-row"],Pe=t["bottom-row"];let Re=q.value.map((ze,dt)=>J(ze,re,dt));return ye!==void 0&&(Re=ye({cols:$.value}).concat(Re)),Pe!==void 0&&(Re=Re.concat(Pe({cols:$.value}))),r.h("tbody",Re)}function be(re){return je(re),re.cols=re.cols.map(ye=>xt({...ye},"value",()=>ee(ye,re.row))),re}function ke(re){return je(re),xt(re,"value",()=>ee(re.col,re.row)),re}function Qe(re){return je(re),re}function je(re){Object.assign(re,{cols:$.value,colsMap:x.value,sort:N,rowIndex:U.value+re.pageIndex,color:e.color,dark:l.value,dense:e.dense}),T.value===!0&&xt(re,"selected",()=>z(re.key),(ye,Pe)=>{Z([re.key],[re.row],ye,Pe)}),xt(re,"expand",()=>w(re.key),ye=>{C(re.key,ye)})}function ee(re,ye){const Pe=typeof re.field=="function"?re.field(ye):ye[re.field];return re.format!==void 0?re.format(Pe,ye):Pe}const ce=r.computed(()=>({pagination:p.value,pagesNumber:_e.value,isFirstPage:W.value,isLastPage:ve.value,firstPage:pe,prevPage:we,nextPage:Ae,lastPage:fe,inFullscreen:i.value,toggleFullscreen:s}));function V(){const re=t.top,ye=t["top-left"],Pe=t["top-right"],Re=t["top-selection"],ze=T.value===!0&&Re!==void 0&&D.value>0,dt="q-table__top relative-position row items-center";if(re!==void 0)return r.h("div",{class:dt},[re(ce.value)]);let st;if(ze===!0?st=Re(ce.value).slice():(st=[],ye!==void 0?st.push(r.h("div",{class:"q-table__control"},[ye(ce.value)])):e.title&&st.push(r.h("div",{class:"q-table__control"},[r.h("div",{class:["q-table__title",e.titleClass]},e.title)]))),Pe!==void 0&&(st.push(r.h("div",{class:"q-table__separator col"})),st.push(r.h("div",{class:"q-table__control"},[Pe(ce.value)]))),st.length!==0)return r.h("div",{class:dt},st)}const de=r.computed(()=>A.value===!0?null:k.value);function xe(){const re=Be();return e.loading===!0&&t.loading===void 0&&re.push(r.h("tr",{class:"q-table__progress"},[r.h("th",{class:"relative-position",colspan:Y.value},me())])),r.h("thead",re)}function Be(){const re=t.header,ye=t["header-cell"];if(re!==void 0)return re(Le({header:!0})).slice();const Pe=$.value.map(Re=>{const ze=t[`header-cell-${Re.name}`],dt=ze!==void 0?ze:ye,st=Le({col:Re});return dt!==void 0?dt(st):r.h(SS,{key:Re.name,props:st},()=>Re.label)});if(M.value===!0&&e.grid!==!0)Pe.unshift(r.h("th",{class:"q-table--col-auto-width"}," "));else if(O.value===!0){const Re=t["header-selection"],ze=Re!==void 0?Re(Le({})):[r.h(ka,{color:e.color,modelValue:de.value,dark:l.value,dense:e.dense,"onUpdate:modelValue":Ue})];Pe.unshift(r.h("th",{class:"q-table--col-auto-width"},ze))}return[r.h("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},Pe)]}function Le(re){return Object.assign(re,{cols:$.value,sort:N,colsMap:x.value,color:e.color,dark:l.value,dense:e.dense}),O.value===!0&&xt(re,"selected",()=>de.value,Ue),re}function Ue(re){A.value===!0&&(re=!1),Z(q.value.map(u.value),q.value,re)}const nt=r.computed(()=>{const re=[e.iconFirstPage||o.iconSet.table.firstPage,e.iconPrevPage||o.iconSet.table.prevPage,e.iconNextPage||o.iconSet.table.nextPage,e.iconLastPage||o.iconSet.table.lastPage];return o.lang.rtl===!0?re.reverse():re});function pt(){if(e.hideBottom===!0)return;if(L.value===!0){if(e.hideNoData===!0)return;const Pe=e.loading===!0?e.loadingLabel||o.lang.table.loading:e.filter?e.noResultsLabel||o.lang.table.noResults:e.noDataLabel||o.lang.table.noData,Re=t["no-data"],ze=Re!==void 0?[Re({message:Pe,icon:o.iconSet.table.warning,filter:e.filter})]:[r.h(Xe,{class:"q-table__bottom-nodata-icon",name:o.iconSet.table.warning}),Pe];return r.h("div",{class:al+" q-table__bottom--nodata"},ze)}const re=t.bottom;if(re!==void 0)return r.h("div",{class:al},[re(ce.value)]);const ye=e.hideSelectedBanner!==!0&&T.value===!0&&D.value>0?[r.h("div",{class:"q-table__control"},[r.h("div",[(e.selectedRowsLabel||o.lang.table.selectedRecords)(D.value)])])]:[];if(e.hidePagination!==!0)return r.h("div",{class:al+" justify-end"},Wn(ye));if(ye.length!==0)return r.h("div",{class:al},ye)}function Ft(re){y({page:1,rowsPerPage:re.value})}function Wn(re){let ye;const{rowsPerPage:Pe}=p.value,Re=e.paginationLabel||o.lang.table.pagination,ze=t.pagination,dt=e.rowsPerPageOptions.length>1;if(re.push(r.h("div",{class:"q-table__separator col"})),dt===!0&&re.push(r.h("div",{class:"q-table__control"},[r.h("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||o.lang.table.recordsPerPage]),r.h(Y_,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:Pe,options:G.value,displayValue:Pe===0?o.lang.table.allRows:Pe,dark:l.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Ft})])),ze!==void 0)ye=ze(ce.value);else if(ye=[r.h("span",Pe!==0?{class:"q-table__bottom-item"}:{},[Pe?Re(U.value+1,Math.min(ue.value,ge.value),ge.value):Re(1,H.value,ge.value)])],Pe!==0&&_e.value>1){const st={color:e.color,round:!0,dense:!0,flat:!0};e.dense===!0&&(st.size="sm"),_e.value>2&&ye.push(r.h(Ze,{key:"pgFirst",...st,icon:nt.value[0],disable:W.value,"aria-label":o.lang.pagination.first,onClick:pe})),ye.push(r.h(Ze,{key:"pgPrev",...st,icon:nt.value[1],disable:W.value,"aria-label":o.lang.pagination.prev,onClick:we}),r.h(Ze,{key:"pgNext",...st,icon:nt.value[2],disable:ve.value,"aria-label":o.lang.pagination.next,onClick:Ae})),_e.value>2&&ye.push(r.h(Ze,{key:"pgLast",...st,icon:nt.value[3],disable:ve.value,"aria-label":o.lang.pagination.last,onClick:fe}))}return re.push(r.h("div",{class:"q-table__control"},ye)),re}function Kt(){const re=e.gridHeader===!0?[r.h("table",{class:"q-table"},[xe()])]:e.loading===!0&&t.loading===void 0?me():void 0;return r.h("div",{class:"q-table__middle"},re)}function Pn(){const re=t.item!==void 0?t.item:ye=>{const Pe=ye.cols.map(ze=>r.h("div",{class:"q-table__grid-item-row"},[r.h("div",{class:"q-table__grid-item-title"},[ze.label]),r.h("div",{class:"q-table__grid-item-value"},[ze.value])]));if(T.value===!0){const ze=t["body-selection"],dt=ze!==void 0?ze(ye):[r.h(ka,{modelValue:ye.selected,color:e.color,dark:l.value,dense:e.dense,"onUpdate:modelValue":(st,P)=>{Z([ye.key],[ye.row],st,P)}})];Pe.unshift(r.h("div",{class:"q-table__grid-item-row"},dt),r.h(hr,{dark:l.value}))}const Re={class:["q-table__grid-item-card"+v.value,e.cardClass],style:e.cardStyle};if(e.cardStyleFn!==void 0&&(Re.style=[Re.style,e.cardStyleFn(ye.row)]),e.cardClassFn!==void 0){const ze=e.cardClassFn(ye.row);ze&&(Re.class[0]+=` ${ze}`)}return(e.onRowClick!==void 0||e.onRowDblclick!==void 0||e.onRowContextmenu!==void 0)&&(Re.class[0]+=" cursor-pointer",e.onRowClick!==void 0&&(Re.onClick=ze=>{n("RowClick",ze,ye.row,ye.pageIndex)}),e.onRowDblclick!==void 0&&(Re.onDblclick=ze=>{n("RowDblclick",ze,ye.row,ye.pageIndex)}),e.onRowContextmenu!==void 0&&(Re.onContextmenu=ze=>{n("rowContextmenu",ze,ye.row,ye.pageIndex)})),r.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(ye.selected===!0?" q-table__grid-item--selected":"")},[r.h("div",Re,Pe)])};return r.h("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},q.value.map((ye,Pe)=>re(be({key:u.value(ye),row:ye,pageIndex:Pe}))))}return Object.assign(a.proxy,{requestServerInteraction:S,setPagination:y,firstPage:pe,prevPage:we,nextPage:Ae,lastPage:fe,isRowSelected:z,clearSelection:F,isRowExpanded:w,setExpanded:E,sort:N,resetVirtualScroll:te,scrollTo:X,getCellValue:ee}),Yc(a.proxy,{filteredSortedRows:()=>R.value,computedRows:()=>q.value,computedRowsNumber:()=>ge.value}),()=>{const re=[V()],ye={ref:d,class:f.value};return e.grid===!0?re.push(Kt()):Object.assign(ye,{class:[ye.class,e.cardClass],style:e.cardStyle}),re.push(K(),pt()),e.loading===!0&&t.loading!==void 0&&re.push(t.loading()),r.h("div",ye,re)}}}),ie({name:"QTr",props:{props:Object,noHover:Boolean},setup(e,{slots:t}){const n=r.computed(()=>"q-tr"+(e.props===void 0||e.props.header===!0?"":" "+e.props.__trClass)+(e.noHover===!0?" q-tr--no-hover":""));return()=>r.h("tr",{style:e.props?.__trStyle,class:n.value},Te(t.default))}}),ie({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(e,{slots:t}){const n=r.getCurrentInstance(),a=r.computed(()=>"q-td"+(e.autoWidth===!0?" q-table--col-auto-width":"")+(e.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(e.props===void 0)return r.h("td",{class:a.value},Te(t.default));const o=n.vnode.key,l=(e.props.colsMap!==void 0?e.props.colsMap[o]:null)||e.props.col;if(l===void 0)return;const{row:i}=e.props;return r.h("td",{class:a.value+l.__tdClass(i),style:l.__tdStyle(i)},Te(t.default))}}}),ie({name:"QRouteTab",props:{...ba,...bf},emits:gf,setup(e,{slots:t,emit:n}){const a=yo({useDisableForRouterLinkProps:!1}),{renderTab:o,$tabs:l}=pf(e,t,n,{exact:r.computed(()=>e.exact),...a});return r.watch(()=>`${e.name} | ${e.exact} | ${(a.resolvedLink.value||{}).href}`,l.verifyRouteModel),()=>o(a.linkTag.value,a.linkAttrs.value)}});function HS(e,t){return e.hour!==null&&e.minute===null?"minute":"hour"}function jS(){const e=new Date;return{hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()}}ie({name:"QTime",props:{...Ye,...nn,...jo,modelValue:{required:!0,validator:e=>typeof e=="string"||e===null},mask:{...jo.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:Lf,setup(e,{slots:t,emit:n}){const a=r.getCurrentInstance(),{$q:o}=a.proxy,l=Ge(e,o),{tabindex:i,headerClass:s,getLocale:u,getCurrentDate:d}=Af(e,o),c=Sa(e),g=zn(c);let v,h;const f=r.ref(null),_=r.computed(()=>le()),p=r.computed(()=>u()),b=r.computed(()=>N()),S=Wr(e.modelValue,_.value,p.value,e.calendar,b.value),y=r.ref(HS(S)),m=r.ref(S),w=r.ref(S.hour===null||S.hour<12),E=r.computed(()=>`q-time q-time--${e.landscape===!0?"landscape":"portrait"}`+(l.value===!0?" q-time--dark q-dark":"")+(e.disable===!0?" disabled":e.readonly===!0?" q-time--readonly":"")+(e.bordered===!0?" q-time--bordered":"")+(e.square===!0?" q-time--square no-border-radius":"")+(e.flat===!0?" q-time--flat no-shadow":"")),C=r.computed(()=>{const ee=m.value;return{hour:ee.hour===null?"--":R.value===!0?Je(ee.hour):String(w.value===!0?ee.hour===0?12:ee.hour:ee.hour>12?ee.hour-12:ee.hour),minute:ee.minute===null?"--":Je(ee.minute),second:ee.second===null?"--":Je(ee.second)}}),R=r.computed(()=>e.format24h!==null?e.format24h:o.lang.date.format24h),H=r.computed(()=>{const ee=y.value==="hour",ce=ee===!0?12:60,V=m.value[y.value];let xe=`rotate(${Math.round(V*(360/ce))-180}deg) translateX(-50%)`;return ee===!0&&R.value===!0&&m.value.hour>=12&&(xe+=" scale(.7)"),{transform:xe}}),q=r.computed(()=>m.value.hour!==null),T=r.computed(()=>q.value===!0&&m.value.minute!==null),M=r.computed(()=>e.hourOptions!==void 0?ee=>e.hourOptions.includes(ee):e.options!==void 0?ee=>e.options(ee,null,null):null),O=r.computed(()=>e.minuteOptions!==void 0?ee=>e.minuteOptions.includes(ee):e.options!==void 0?ee=>e.options(m.value.hour,ee,null):null),k=r.computed(()=>e.secondOptions!==void 0?ee=>e.secondOptions.includes(ee):e.options!==void 0?ee=>e.options(m.value.hour,m.value.minute,ee):null),A=r.computed(()=>{if(M.value===null)return null;const ee=x(0,11,M.value),ce=x(12,11,M.value);return{am:ee,pm:ce,values:ee.values.concat(ce.values)}}),D=r.computed(()=>O.value!==null?x(0,59,O.value):null),z=r.computed(()=>k.value!==null?x(0,59,k.value):null),F=r.computed(()=>{switch(y.value){case"hour":return A.value;case"minute":return D.value;case"second":return z.value}}),Z=r.computed(()=>{let ee,ce,V=0,de=1;const xe=F.value!==null?F.value.values:void 0;y.value==="hour"?R.value===!0?(ee=0,ce=23):(ee=0,ce=11,w.value===!1&&(V=12)):(ee=0,ce=55,de=5);const Be=[];for(let Le=ee,Ue=ee;Le<=ce;Le+=de,Ue++){const nt=Le+V,pt=xe?.includes(nt)===!1,Ft=y.value==="hour"&&Le===0?R.value===!0?"00":"12":Le;Be.push({val:nt,index:Ue,disable:pt,label:Ft})}return Be}),he=r.computed(()=>[[rn,W,void 0,{stop:!0,prevent:!0,mouse:!0}]]);r.watch(()=>e.modelValue,ee=>{const ce=Wr(ee,_.value,p.value,e.calendar,b.value);(ce.dateHash!==m.value.dateHash||ce.timeHash!==m.value.timeHash)&&(m.value=ce,ce.hour===null?y.value="hour":w.value=ce.hour<12)}),r.watch([_,p],()=>{r.nextTick(()=>{ke()})});function $(){const ee={...d(),...jS()};ke(ee),Object.assign(m.value,ee),y.value="hour"}function x(ee,ce,V){const de=Array.apply(null,{length:ce+1}).map((xe,Be)=>{const Le=Be+ee;return{index:Le,val:V(Le)===!0}}).filter(xe=>xe.val===!0).map(xe=>xe.index);return{min:de[0],max:de[de.length-1],values:de,threshold:ce+1}}function Y(ee,ce,V){const de=Math.abs(ee-ce);return Math.min(de,V-de)}function B(ee,{min:ce,max:V,values:de,threshold:xe}){if(ee===ce)return ce;if(ee<ce||ee>V)return Y(ee,ce,xe)<=Y(ee,V,xe)?ce:V;const Be=de.findIndex(nt=>ee<=nt),Le=de[Be-1],Ue=de[Be];return ee-Le<=Ue-ee?Le:Ue}function le(){return e.calendar!=="persian"&&e.mask!==null?e.mask:`HH:mm${e.withSeconds===!0?":ss":""}`}function N(){if(typeof e.defaultDate!="string"){const ee=d(!0);return ee.dateHash=Mn(ee),ee}return Wr(e.defaultDate,"YYYY/MM/DD",void 0,e.calendar)}function U(){return $n(a)===!0||F.value!==null&&(F.value.values.length===0||y.value==="hour"&&R.value!==!0&&A.value[w.value===!0?"am":"pm"].values.length===0)}function ue(){const ee=f.value,{top:ce,left:V,width:de}=ee.getBoundingClientRect(),xe=de/2;return{top:ce+xe,left:V+xe,dist:xe*.7}}function W(ee){if(U()!==!0){if(ee.isFirst===!0){v=ue(),h=_e(ee.evt,v);return}h=_e(ee.evt,v,h),ee.isFinal===!0&&(v=!1,h=null,ve())}}function ve(){y.value==="hour"?y.value="minute":e.withSeconds&&y.value==="minute"&&(y.value="second")}function _e(ee,ce,V){const de=zt(ee),xe=Math.abs(de.top-ce.top),Be=Math.sqrt(Math.pow(Math.abs(de.top-ce.top),2)+Math.pow(Math.abs(de.left-ce.left),2));let Le,Ue=Math.asin(xe/Be)*(180/Math.PI);if(de.top<ce.top?Ue=ce.left<de.left?90-Ue:270+Ue:Ue=ce.left<de.left?Ue+90:270-Ue,y.value==="hour"){if(Le=Ue/30,A.value!==null){const nt=R.value!==!0?w.value===!0:A.value.am.values.length!==0&&A.value.pm.values.length!==0?Be>=ce.dist:A.value.am.values.length!==0;Le=B(Le+(nt===!0?0:12),A.value[nt===!0?"am":"pm"])}else Le=Math.round(Le),R.value===!0?Be<ce.dist?Le<12&&(Le+=12):Le===12&&(Le=0):w.value===!0&&Le===12?Le=0:w.value===!1&&Le!==12&&(Le+=12);R.value===!0&&(w.value=Le<12)}else Le=Math.round(Ue/6)%60,y.value==="minute"&&D.value!==null?Le=B(Le,D.value):y.value==="second"&&z.value!==null&&(Le=B(Le,z.value));return V!==Le&&se[y.value](Le),Le}const G={hour(){y.value="hour"},minute(){y.value="minute"},second(){y.value="second"}};function ge(ee){ee.keyCode===13&&me()}function pe(ee){ee.keyCode===13&&J()}function we(ee){U()!==!0&&(o.platform.is.desktop!==!0&&_e(ee,ue()),ve())}function Ae(ee){U()!==!0&&_e(ee,ue())}function fe(ee){if(ee.keyCode===13)y.value="hour";else if([37,39].includes(ee.keyCode)){const ce=ee.keyCode===37?-1:1;if(A.value!==null){const V=R.value===!0?A.value.values:A.value[w.value===!0?"am":"pm"].values;if(V.length===0)return;if(m.value.hour===null)te(V[0]);else{const de=(V.length+V.indexOf(m.value.hour)+ce)%V.length;te(V[de])}}else{const V=R.value===!0?24:12,de=R.value!==!0&&w.value===!1?12:0,xe=m.value.hour===null?-ce:m.value.hour;te(de+(24+xe+ce)%V)}}}function L(ee){if(ee.keyCode===13)y.value="minute";else if([37,39].includes(ee.keyCode)){const ce=ee.keyCode===37?-1:1;if(D.value!==null){const V=D.value.values;if(V.length===0)return;if(m.value.minute===null)K(V[0]);else{const de=(V.length+V.indexOf(m.value.minute)+ce)%V.length;K(V[de])}}else{const V=m.value.minute===null?-ce:m.value.minute;K((60+V+ce)%60)}}}function I(ee){if(ee.keyCode===13)y.value="second";else if([37,39].includes(ee.keyCode)){const ce=ee.keyCode===37?-1:1;if(z.value!==null){const V=z.value.values;if(V.length===0)return;if(m.value.seconds===null)X(V[0]);else{const de=(V.length+V.indexOf(m.value.second)+ce)%V.length;X(V[de])}}else{const V=m.value.second===null?-ce:m.value.second;X((60+V+ce)%60)}}}function te(ee){m.value.hour!==ee&&(m.value.hour=ee,be())}function K(ee){m.value.minute!==ee&&(m.value.minute=ee,be())}function X(ee){m.value.second!==ee&&(m.value.second=ee,be())}const se={hour:te,minute:K,second:X};function me(){w.value===!1&&(w.value=!0,m.value.hour!==null&&(m.value.hour-=12,be()))}function J(){w.value===!0&&(w.value=!1,m.value.hour!==null&&(m.value.hour+=12,be()))}function ae(ee){const ce=e.modelValue;y.value!==ee&&ce!==void 0&&ce!==null&&ce!==""&&typeof ce!="string"&&(y.value=ee)}function be(){if(M.value!==null&&M.value(m.value.hour)!==!0){m.value=Wr(),ae("hour");return}if(O.value!==null&&O.value(m.value.minute)!==!0){m.value.minute=null,m.value.second=null,ae("minute");return}if(e.withSeconds===!0&&k.value!==null&&k.value(m.value.second)!==!0){m.value.second=null,ae("second");return}m.value.hour===null||m.value.minute===null||e.withSeconds===!0&&m.value.second===null||ke()}function ke(ee){const ce=Object.assign({...m.value},ee),V=e.calendar==="persian"?Je(ce.hour)+":"+Je(ce.minute)+(e.withSeconds===!0?":"+Je(ce.second):""):is(new Date(ce.year,ce.month===null?null:ce.month-1,ce.day,ce.hour,ce.minute,ce.second,ce.millisecond),_.value,p.value,ce.year,ce.timezoneOffset);ce.changed=V!==e.modelValue,n("update:modelValue",V,ce)}function Qe(){const ee=[r.h("div",{class:"q-time__link "+(y.value==="hour"?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:G.hour,onKeyup:fe},C.value.hour),r.h("div",":"),r.h("div",q.value===!0?{class:"q-time__link "+(y.value==="minute"?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onKeyup:L,onClick:G.minute}:{class:"q-time__link"},C.value.minute)];e.withSeconds===!0&&ee.push(r.h("div",":"),r.h("div",T.value===!0?{class:"q-time__link "+(y.value==="second"?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onKeyup:I,onClick:G.second}:{class:"q-time__link"},C.value.second));const ce=[r.h("div",{class:"q-time__header-label row items-center no-wrap",dir:"ltr"},ee)];return R.value===!1&&ce.push(r.h("div",{class:"q-time__header-ampm column items-between no-wrap"},[r.h("div",{class:"q-time__link "+(w.value===!0?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:me,onKeyup:ge},"AM"),r.h("div",{class:"q-time__link "+(w.value!==!0?"q-time__link--active":"cursor-pointer"),tabindex:i.value,onClick:J,onKeyup:pe},"PM")])),r.h("div",{class:"q-time__header flex flex-center no-wrap "+s.value},ce)}function je(){const ee=m.value[y.value];return r.h("div",{class:"q-time__content col relative-position"},[r.h(r.Transition,{name:"q-transition--scale"},()=>r.h("div",{key:"clock"+y.value,class:"q-time__container-parent absolute-full"},[r.h("div",{ref:f,class:"q-time__container-child fit overflow-hidden"},[r.withDirectives(r.h("div",{class:"q-time__clock cursor-pointer non-selectable",onClick:we,onMousedown:Ae},[r.h("div",{class:"q-time__clock-circle fit"},[r.h("div",{class:"q-time__clock-pointer"+(m.value[y.value]===null?" hidden":e.color!==void 0?` text-${e.color}`:""),style:H.value}),Z.value.map(ce=>r.h("div",{class:`q-time__clock-position row flex-center q-time__clock-pos-${ce.index}`+(ce.val===ee?" q-time__clock-position--active "+s.value:ce.disable===!0?" q-time__clock-position--disable":"")},[r.h("span",ce.label)]))])]),he.value)])])),e.nowBtn===!0?r.h(Ze,{class:"q-time__now-button absolute",icon:o.iconSet.datetime.now,unelevated:!0,size:"sm",round:!0,color:e.color,textColor:e.textColor,tabindex:i.value,onClick:$}):null])}return a.proxy.setNow=$,()=>{const ee=[je()],ce=Te(t.default);return ce!==void 0&&ee.push(r.h("div",{class:"q-time__actions"},ce)),e.name!==void 0&&e.disable!==!0&&g(ee,"push"),r.h("div",{class:E.value,tabindex:-1},[Qe(),r.h("div",{class:"q-time__main col overflow-auto"},ee)])}}}),ie({name:"QTimeline",props:{...Ye,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(e,{slots:t}){const n=r.getCurrentInstance(),a=Ge(e,n.proxy.$q);r.provide(td,e);const o=r.computed(()=>`q-timeline q-timeline--${e.layout} q-timeline--${e.layout}--${e.side}`+(a.value===!0?" q-timeline--dark":""));return()=>r.h("ul",{class:o.value},Te(t.default))}}),ie({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(e,{slots:t}){const n=r.inject(td,et);if(n===et)return console.error("QTimelineEntry needs to be child of QTimeline"),et;const a=r.computed(()=>`q-timeline__entry q-timeline__entry--${e.side}`+(e.icon!==void 0||e.avatar!==void 0?" q-timeline__entry--icon":"")),o=r.computed(()=>`q-timeline__dot text-${e.color||n.color}`),l=r.computed(()=>n.layout==="comfortable"&&n.side==="left");return()=>{const i=ga(t.default,[]);if(e.body!==void 0&&i.unshift(e.body),e.heading===!0){const d=[r.h("div"),r.h("div"),r.h(e.tag,{class:"q-timeline__heading-title"},i)];return r.h("div",{class:"q-timeline__heading"},l.value===!0?d.reverse():d)}let s;e.icon!==void 0?s=[r.h(Xe,{class:"row items-center justify-center",name:e.icon})]:e.avatar!==void 0&&(s=[r.h("img",{class:"q-timeline__dot-img",src:e.avatar})]);const u=[r.h("div",{class:"q-timeline__subtitle"},[r.h("span",{},Te(t.subtitle,[e.subtitle]))]),r.h("div",{class:o.value},s),r.h("div",{class:"q-timeline__content"},[r.h("h6",{class:"q-timeline__title"},Te(t.title,[e.title]))].concat(i))];return r.h("li",{class:a.value},l.value===!0?u.reverse():u)}}}),ie({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:t}){const n=r.computed(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>r.h("div",{class:n.value,role:"toolbar"},Te(t.default))}}),ie({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:t}){const n=r.computed(()=>"q-toolbar__title ellipsis"+(e.shrink===!0?" col-shrink":""));return()=>r.h("div",{class:n.value},Te(t.default))}});var US=["none","strict","leaf","leaf-filtered"];ie({name:"QTree",props:{...Ye,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=>US.includes(e)},ticked:Array,expanded:Array,selected:{},noSelectionUnset:Boolean,defaultExpandAll:Boolean,accordion:Boolean,filter:String,filterMethod:Function,duration:{},noConnectors:Boolean,noTransition:Boolean,noNodesLabel:String,noResultsLabel:String},emits:["update:expanded","update:ticked","update:selected","lazyLoad","afterShow","afterHide"],setup(e,{slots:t,emit:n}){const{proxy:a}=r.getCurrentInstance(),{$q:o}=a,l=Ge(e,o),i=r.ref({}),s=r.ref(e.ticked||[]),u=r.ref(e.expanded||[]);let d={};r.onBeforeUpdate(()=>{d={}});const c=r.computed(()=>`q-tree q-tree--${e.dense===!0?"dense":"standard"}`+(e.noConnectors===!0?" q-tree--no-connectors":"")+(l.value===!0?" q-tree--dark":"")+(e.color!==void 0?` text-${e.color}`:"")),g=r.computed(()=>e.selected!==void 0),v=r.computed(()=>e.icon||o.iconSet.tree.icon),h=r.computed(()=>e.controlColor||e.color),f=r.computed(()=>e.textColor!==void 0?` text-${e.textColor}`:""),_=r.computed(()=>{const x=e.selectedColor||e.color;return x?` text-${x}`:""}),p=r.computed(()=>e.filterMethod!==void 0?e.filterMethod:(x,Y)=>{const B=Y.toLowerCase();return x[e.labelKey]&&x[e.labelKey].toLowerCase().indexOf(B)!==-1}),b=r.computed(()=>{const x={},Y=(B,le)=>{const N=B.tickStrategy||(le?le.tickStrategy:e.tickStrategy),U=B[e.nodeKey],ue=B[e.childrenKey]&&Array.isArray(B[e.childrenKey])&&B[e.childrenKey].length!==0,W=B.disabled!==!0&&g.value===!0&&B.selectable!==!1,ve=B.disabled!==!0&&B.expandable!==!1,_e=N!=="none",G=N==="strict",ge=N==="leaf-filtered",pe=N==="leaf"||N==="leaf-filtered";let we=B.disabled!==!0&&B.tickable!==!1;pe===!0&&we===!0&&le&&le.tickable!==!0&&(we=!1);let Ae=B.lazy;Ae===!0&&i.value[U]!==void 0&&Array.isArray(B[e.childrenKey])===!0&&(Ae=i.value[U]);const fe={key:U,parent:le,isParent:ue,lazy:Ae,disabled:B.disabled,link:B.disabled!==!0&&(W===!0||ve===!0&&(ue===!0||Ae===!0)),children:[],matchesFilter:e.filter?p.value(B,e.filter):!0,selected:U===e.selected&&W===!0,selectable:W,expanded:ue===!0?u.value.includes(U):!1,expandable:ve,noTick:B.noTick===!0||G!==!0&&Ae&&Ae!=="loaded",tickable:we,tickStrategy:N,hasTicking:_e,strictTicking:G,leafFilteredTicking:ge,leafTicking:pe,ticked:G===!0?s.value.includes(U):ue===!0?!1:s.value.includes(U)};if(x[U]=fe,ue===!0&&(fe.children=B[e.childrenKey].map(L=>Y(L,fe)),e.filter&&(fe.matchesFilter!==!0?fe.matchesFilter=fe.children.some(L=>L.matchesFilter):fe.noTick!==!0&&fe.disabled!==!0&&fe.tickable===!0&&ge===!0&&fe.children.every(L=>L.matchesFilter!==!0||L.noTick===!0||L.tickable!==!0)===!0&&(fe.tickable=!1)),fe.matchesFilter===!0&&(fe.noTick!==!0&&G!==!0&&fe.children.every(L=>L.noTick)===!0&&(fe.noTick=!0),pe))){if(fe.ticked=!1,fe.indeterminate=fe.children.some(L=>L.indeterminate===!0),fe.tickable=fe.tickable===!0&&fe.children.some(L=>L.tickable),fe.indeterminate!==!0){const L=fe.children.reduce((I,te)=>te.ticked===!0?I+1:I,0);L===fe.children.length?fe.ticked=!0:L>0&&(fe.indeterminate=!0)}fe.indeterminate===!0&&(fe.indeterminateNextState=fe.children.every(L=>L.tickable!==!0||L.ticked!==!0))}return fe};return e.nodes.forEach(B=>Y(B,null)),x});r.watch(()=>e.ticked,x=>{s.value=x}),r.watch(()=>e.expanded,x=>{u.value=x});function S(x){const Y=[].reduce,B=(le,N)=>{if(le||!N)return le;if(Array.isArray(N)===!0)return Y.call(Object(N),B,le);if(N[e.nodeKey]===x)return N;if(N[e.childrenKey])return B(null,N[e.childrenKey])};return B(null,e.nodes)}function y(){return s.value.map(x=>S(x))}function m(){return u.value.map(x=>S(x))}function w(x){return x&&b.value[x]?b.value[x].expanded:!1}function E(){e.expanded!==void 0?n("update:expanded",[]):u.value=[]}function C(){const x=[],Y=B=>{B[e.childrenKey]&&B[e.childrenKey].length!==0&&B.expandable!==!1&&B.disabled!==!0&&(x.push(B[e.nodeKey]),B[e.childrenKey].forEach(Y))};e.nodes.forEach(Y),e.expanded!==void 0?n("update:expanded",x):u.value=x}function R(x,Y,B=S(x),le=b.value[x]){if(le.lazy&&le.lazy!=="loaded"){if(le.lazy==="loading")return;i.value[x]="loading",Array.isArray(B[e.childrenKey])!==!0&&(B[e.childrenKey]=[]),n("lazyLoad",{node:B,key:x,done:N=>{i.value[x]="loaded",B[e.childrenKey]=Array.isArray(N)===!0?N:[],r.nextTick(()=>{b.value[x]?.isParent===!0&&H(x,!0)})},fail:()=>{delete i.value[x],B[e.childrenKey].length===0&&delete B[e.childrenKey]}})}else le.isParent===!0&&le.expandable===!0&&H(x,Y)}function H(x,Y){let B=u.value;const le=e.expanded!==void 0;if(le===!0&&(B=B.slice()),Y){if(e.accordion&&b.value[x]){const N=[];b.value[x].parent?b.value[x].parent.children.forEach(U=>{U.key!==x&&U.expandable===!0&&N.push(U.key)}):e.nodes.forEach(U=>{const ue=U[e.nodeKey];ue!==x&&N.push(ue)}),N.length!==0&&(B=B.filter(U=>N.includes(U)===!1))}B=B.concat([x]).filter((N,U,ue)=>ue.indexOf(N)===U)}else B=B.filter(N=>N!==x);le===!0?n("update:expanded",B):u.value=B}function q(x){return x&&b.value[x]?b.value[x].ticked:!1}function T(x,Y){let B=s.value;const le=e.ticked!==void 0;le===!0&&(B=B.slice()),Y?B=B.concat(x).filter((N,U,ue)=>ue.indexOf(N)===U):B=B.filter(N=>x.includes(N)===!1),le===!0&&n("update:ticked",B)}function M(x,Y,B){const le={tree:a,node:x,key:B,color:e.color,dark:l.value};return xt(le,"expanded",()=>Y.expanded,N=>{N!==Y.expanded&&R(B,N)}),xt(le,"ticked",()=>Y.ticked,N=>{N!==Y.ticked&&T([B],N)}),le}function O(x){return(e.filter?x.filter(Y=>b.value[Y[e.nodeKey]].matchesFilter):x).map(Y=>z(Y))}function k(x){if(x.icon!==void 0)return r.h(Xe,{class:"q-tree__icon q-mr-sm",name:x.icon,color:x.iconColor});const Y=x.img||x.avatar;if(Y)return r.h("img",{class:`q-tree__${x.img?"img":"avatar"} q-mr-sm`,src:Y})}function A(){n("afterShow")}function D(){n("afterHide")}function z(x){const Y=x[e.nodeKey],B=b.value[Y],le=x.header&&t[`header-${x.header}`]||t["default-header"],N=B.isParent===!0?O(x[e.childrenKey]):[],U=N.length!==0||B.lazy&&B.lazy!=="loaded";let ue=x.body&&t[`body-${x.body}`]||t["default-body"];const W=le!==void 0||ue!==void 0?M(x,B,Y):null;return ue!==void 0&&(ue=r.h("div",{class:"q-tree__node-body relative-position"},[r.h("div",{class:f.value},[ue(W)])])),r.h("div",{key:Y,class:`q-tree__node relative-position q-tree__node--${U===!0?"parent":"child"}`},[r.h("div",{class:"q-tree__node-header relative-position row no-wrap items-center"+(B.link===!0?" q-tree__node--link q-hoverable q-focusable":"")+(B.selected===!0?" q-tree__node--selected":"")+(B.disabled===!0?" q-tree__node--disabled":""),tabindex:B.link===!0?0:-1,ariaExpanded:N.length>0?B.expanded:null,role:"treeitem",onClick:ve=>{Z(x,B,ve)},onKeypress(ve){rr(ve)!==!0&&(ve.keyCode===13?Z(x,B,ve,!0):ve.keyCode===32&&he(x,B,ve,!0))}},[r.h("div",{class:"q-focus-helper",tabindex:-1,ref:ve=>{d[B.key]=ve}}),B.lazy==="loading"?r.h(cn,{class:"q-tree__spinner",color:h.value}):U===!0?r.h(Xe,{class:"q-tree__arrow"+(B.expanded===!0?" q-tree__arrow--rotate":""),name:v.value,onClick(ve){he(x,B,ve)}}):null,B.hasTicking===!0&&B.noTick!==!0?r.h(ka,{class:"q-tree__tickbox",modelValue:B.indeterminate===!0?null:B.ticked,color:h.value,dark:l.value,dense:!0,keepColor:!0,disable:B.tickable!==!0,onKeydown:Fe,"onUpdate:modelValue":ve=>{$(B,ve)}}):null,r.h("div",{class:"q-tree__node-header-content col row no-wrap items-center"+(B.selected===!0?_.value:f.value)},[le?le(W):[k(x),r.h("div",x[e.labelKey])]])]),U===!0?e.noTransition===!0?B.expanded===!0?r.h("div",{class:"q-tree__node-collapsible"+f.value,key:`${Y}__q`},[ue,r.h("div",{class:"q-tree__children"+(B.disabled===!0?" q-tree__node--disabled":""),role:"group"},N)]):null:r.h(ps,{duration:e.duration,onShow:A,onHide:D},()=>r.withDirectives(r.h("div",{class:"q-tree__node-collapsible"+f.value,key:`${Y}__q`},[ue,r.h("div",{class:"q-tree__children"+(B.disabled===!0?" q-tree__node--disabled":""),role:"group"},N)]),[[r.vShow,B.expanded]])):ue])}function F(x){d[x]?.focus()}function Z(x,Y,B,le){le!==!0&&Y.selectable!==!1&&F(Y.key),g.value&&Y.selectable?e.noSelectionUnset===!1?n("update:selected",Y.key!==e.selected?Y.key:null):Y.key!==e.selected&&n("update:selected",Y.key===void 0?null:Y.key):he(x,Y,B,le),typeof x.handler=="function"&&x.handler(x)}function he(x,Y,B,le){B!==void 0&&Fe(B),le!==!0&&Y.selectable!==!1&&F(Y.key),R(Y.key,!Y.expanded,x,Y)}function $(x,Y){if(x.indeterminate===!0&&(Y=x.indeterminateNextState),x.strictTicking)T([x.key],Y);else if(x.leafTicking){const B=[],le=N=>{N.isParent?(Y!==!0&&N.noTick!==!0&&N.tickable===!0&&B.push(N.key),N.leafTicking===!0&&N.children.forEach(le)):N.noTick!==!0&&N.tickable===!0&&(N.leafFilteredTicking!==!0||N.matchesFilter===!0)&&B.push(N.key)};le(x),T(B,Y)}}return e.defaultExpandAll===!0&&C(),Object.assign(a,{getNodeByKey:S,getTickedNodes:y,getExpandedNodes:m,isExpanded:w,collapseAll:E,expandAll:C,setExpanded:R,isTicked:q,setTicked:T}),()=>{const x=O(e.nodes);return r.h("div",{class:c.value,role:"tree"},x.length===0?e.filter?e.noResultsLabel||o.lang.tree.noResults:e.noNodesLabel||o.lang.tree.noNodes:x)}}});function Uv(e){return(e*100).toFixed(2)+"%"}var QS={...Ye,...iv,label:String,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,noThumbnails:Boolean,thumbnailFit:{type:String,default:"cover"},autoUpload:Boolean,hideUploadBtn:Boolean,disable:Boolean,readonly:Boolean},Qv=[...sv,"start","finish","added","removed"];function WS(e,t){const n=r.getCurrentInstance(),{props:a,slots:o,emit:l,proxy:i}=n,{$q:s}=i,u=Ge(a,s);function d(W,ve,_e){if(W.__status=ve,ve==="idle"){W.__uploaded=0,W.__progress=0,W.__sizeLabel=hi(W.size),W.__progressLabel="0.00%";return}if(ve==="failed"){i.$forceUpdate();return}W.__uploaded=ve==="uploaded"?W.size:_e,W.__progress=ve==="uploaded"?1:Math.min(.9999,W.__uploaded/W.size),W.__progressLabel=Uv(W.__progress),i.$forceUpdate()}const c=r.computed(()=>a.disable!==!0&&a.readonly!==!0),g=r.ref(!1),v=r.ref(null),h=r.ref(null),f={files:r.ref([]),queuedFiles:r.ref([]),uploadedFiles:r.ref([]),uploadedSize:r.ref(0),updateFileStatus:d,isAlive:()=>$n(n)===!1},{pickFiles:_,addFiles:p,onDragover:b,onDragleave:S,processFiles:y,getDndNode:m,maxFilesNumber:w,maxTotalSizeNumber:E}=uv({editable:c,dnd:g,getFileInput:$,addFilesToQueue:x});Object.assign(f,e({props:a,slots:o,emit:l,helpers:f,exposeApi:W=>{Object.assign(f,W)}})),f.isBusy===void 0&&(f.isBusy=r.ref(!1));const C=r.ref(0),R=r.computed(()=>C.value===0?0:f.uploadedSize.value/C.value),H=r.computed(()=>Uv(R.value)),q=r.computed(()=>hi(C.value)),T=r.computed(()=>c.value===!0&&f.isUploading.value!==!0&&(a.multiple===!0||f.queuedFiles.value.length===0)&&(a.maxFiles===void 0||f.files.value.length<w.value)&&(a.maxTotalSize===void 0||C.value<E.value)),M=r.computed(()=>c.value===!0&&f.isBusy.value!==!0&&f.isUploading.value!==!0&&f.queuedFiles.value.length!==0);r.provide(id,le);const O=r.computed(()=>"q-uploader column no-wrap"+(u.value===!0?" q-uploader--dark q-dark":"")+(a.bordered===!0?" q-uploader--bordered":"")+(a.square===!0?" q-uploader--square no-border-radius":"")+(a.flat===!0?" q-uploader--flat no-shadow":"")+(a.disable===!0?" disabled q-uploader--disable":"")+(g.value===!0?" q-uploader--dnd":"")),k=r.computed(()=>"q-uploader__header"+(a.color!==void 0?` bg-${a.color}`:"")+(a.textColor!==void 0?` text-${a.textColor}`:""));r.watch(f.isUploading,(W,ve)=>{ve===!1&&W===!0?l("start"):ve===!0&&W===!1&&l("finish")});function A(){a.disable===!1&&(f.abort(),f.uploadedSize.value=0,C.value=0,he(),f.files.value=[],f.queuedFiles.value=[],f.uploadedFiles.value=[])}function D(){a.disable===!1&&F(["uploaded"],()=>{f.uploadedFiles.value=[]})}function z(){F(["idle","failed"],({size:W})=>{C.value-=W,f.queuedFiles.value=[]})}function F(W,ve){if(a.disable===!0)return;const _e={files:[],size:0},G=f.files.value.filter(ge=>W.indexOf(ge.__status)===-1?!0:(_e.size+=ge.size,_e.files.push(ge),ge.__img!==void 0&&window.URL.revokeObjectURL(ge.__img.src),!1));_e.files.length!==0&&(f.files.value=G,ve(_e),l("removed",_e.files))}function Z(W){a.disable||(W.__status==="uploaded"?f.uploadedFiles.value=f.uploadedFiles.value.filter(ve=>ve.__key!==W.__key):W.__status==="uploading"?W.__abort():C.value-=W.size,f.files.value=f.files.value.filter(ve=>ve.__key!==W.__key?!0:(ve.__img!==void 0&&window.URL.revokeObjectURL(ve.__img.src),!1)),f.queuedFiles.value=f.queuedFiles.value.filter(ve=>ve.__key!==W.__key),l("removed",[W]))}function he(){f.files.value.forEach(W=>{W.__img!==void 0&&window.URL.revokeObjectURL(W.__img.src)})}function $(){return h.value||v.value.getElementsByClassName("q-uploader__input")[0]}function x(W,ve){const _e=y(W,ve,f.files.value,!0),G=$();G!=null&&(G.value=""),_e!==void 0&&(_e.forEach(ge=>{if(f.updateFileStatus(ge,"idle"),C.value+=ge.size,a.noThumbnails!==!0&&ge.type.toUpperCase().startsWith("IMAGE")){const pe=new Image;pe.src=window.URL.createObjectURL(ge),ge.__img=pe}}),f.files.value=f.files.value.concat(_e),f.queuedFiles.value=f.queuedFiles.value.concat(_e),l("added",_e),a.autoUpload===!0&&f.upload())}function Y(){M.value===!0&&f.upload()}function B(W,ve,_e){if(W===!0){const G={type:"a",key:ve,icon:s.iconSet.uploader[ve],flat:!0,dense:!0};let ge;return ve==="add"?(G.onClick=_,ge=le):G.onClick=_e,r.h(Ze,G,ge)}}function le(){return r.h("input",{ref:h,class:"q-uploader__input overflow-hidden absolute-full",tabindex:-1,type:"file",title:"",accept:a.accept,multiple:a.multiple===!0?"multiple":void 0,capture:a.capture,onMousedown:ft,onClick:_,onChange:x})}function N(){return o.header!==void 0?o.header(ue):[r.h("div",{class:"q-uploader__header-content column"},[r.h("div",{class:"flex flex-center no-wrap q-gutter-xs"},[B(f.queuedFiles.value.length!==0,"removeQueue",z),B(f.uploadedFiles.value.length!==0,"removeUploaded",D),f.isUploading.value===!0?r.h(cn,{class:"q-uploader__spinner"}):null,r.h("div",{class:"col column justify-center"},[a.label!==void 0?r.h("div",{class:"q-uploader__title"},[a.label]):null,r.h("div",{class:"q-uploader__subtitle"},[q.value+" / "+H.value])]),B(T.value,"add"),B(a.hideUploadBtn===!1&&M.value===!0,"upload",f.upload),B(f.isUploading.value,"clear",f.abort)])])]}function U(){return o.list!==void 0?o.list(ue):f.files.value.map(W=>r.h("div",{key:W.__key,class:"q-uploader__file relative-position"+(a.noThumbnails!==!0&&W.__img!==void 0?" q-uploader__file--img":"")+(W.__status==="failed"?" q-uploader__file--failed":W.__status==="uploaded"?" q-uploader__file--uploaded":""),style:a.noThumbnails!==!0&&W.__img!==void 0?{backgroundImage:'url("'+W.__img.src+'")',backgroundSize:a.thumbnailFit}:null},[r.h("div",{class:"q-uploader__file-header row flex-center no-wrap"},[W.__status==="failed"?r.h(Xe,{class:"q-uploader__file-status",name:s.iconSet.type.negative,color:"negative"}):null,r.h("div",{class:"q-uploader__file-header-content col"},[r.h("div",{class:"q-uploader__title"},[W.name]),r.h("div",{class:"q-uploader__subtitle row items-center no-wrap"},[W.__sizeLabel+" / "+W.__progressLabel])]),W.__status==="uploading"?r.h(lf,{value:W.__progress,min:0,max:1,indeterminate:W.__progress===0}):r.h(Ze,{round:!0,dense:!0,flat:!0,icon:s.iconSet.uploader[W.__status==="uploaded"?"done":"clear"],onClick:()=>{Z(W)}})])]))}r.onBeforeUnmount(()=>{f.isUploading.value===!0&&f.abort(),f.files.value.length!==0&&he()});const ue={};for(const W in f)r.isRef(f[W])===!0?xt(ue,W,()=>f[W].value):ue[W]=f[W];return Object.assign(ue,{upload:Y,reset:A,removeUploadedFiles:D,removeQueuedFiles:z,removeFile:Z,pickFiles:_,addFiles:p}),Yc(ue,{canAddFiles:()=>T.value,canUpload:()=>M.value,uploadSizeLabel:()=>q.value,uploadProgressLabel:()=>H.value}),t({...f,upload:Y,reset:A,removeUploadedFiles:D,removeQueuedFiles:z,removeFile:Z,pickFiles:_,addFiles:p,canAddFiles:T,canUpload:M,uploadSizeLabel:q,uploadProgressLabel:H}),()=>{const W=[r.h("div",{class:k.value},N()),r.h("div",{class:"q-uploader__list scroll"},U()),m("uploader")];f.isBusy.value===!0&&W.push(r.h("div",{class:"q-uploader__overlay absolute-full flex flex-center"},[r.h(cn)]));const ve={ref:v,class:O.value};return T.value===!0&&Object.assign(ve,{onDragover:b,onDragleave:S}),r.h("div",ve,W)}}var KS=()=>!0;function Wv(e){const t={};return e.forEach(n=>{t[n]=KS}),t}var YS=Wv(Qv),GS=({name:e,props:t,emits:n,injectPlugin:a})=>ie({name:e,props:{...QS,...t},emits:$t(n)===!0?{...YS,...n}:[...Qv,...n],setup(o,{expose:l}){return WS(a,l)}});function An(e){return typeof e=="function"?e:()=>e}var XS="QUploader",JS={url:[Function,String],method:{type:[Function,String],default:"POST"},fieldName:{type:[Function,String],default:()=>e=>e.name},headers:[Function,Array],formFields:[Function,Array],withCredentials:[Function,Boolean],sendRaw:[Function,Boolean],batch:[Function,Boolean],factory:Function},ZS=["factoryFailed","uploaded","failed","uploading"];function VS({props:e,emit:t,helpers:n}){const a=r.ref([]),o=r.ref([]),l=r.ref(0),i=r.computed(()=>({url:An(e.url),method:An(e.method),headers:An(e.headers),formFields:An(e.formFields),fieldName:An(e.fieldName),withCredentials:An(e.withCredentials),sendRaw:An(e.sendRaw),batch:An(e.batch)})),s=r.computed(()=>l.value>0),u=r.computed(()=>o.value.length!==0);let d;function c(){a.value.forEach(f=>{f.abort()}),o.value.length!==0&&(d=!0)}function g(){const f=n.queuedFiles.value.slice(0);n.queuedFiles.value=[],i.value.batch(f)?v(f):f.forEach(_=>{v([_])})}function v(f){if(l.value++,typeof e.factory!="function"){h(f,{});return}const _=e.factory(f);if(!_)t("factoryFailed",new Error("QUploader: factory() does not return properly"),f),l.value--;else if(typeof _.catch=="function"&&typeof _.then=="function"){o.value.push(_);const p=b=>{n.isAlive()===!0&&(o.value=o.value.filter(S=>S!==_),o.value.length===0&&(d=!1),n.queuedFiles.value=n.queuedFiles.value.concat(f),f.forEach(S=>{n.updateFileStatus(S,"failed")}),t("factoryFailed",b,f),l.value--)};_.then(b=>{d===!0?p(new Error("Aborted")):n.isAlive()===!0&&(o.value=o.value.filter(S=>S!==_),h(f,b))}).catch(p)}else h(f,_||{})}function h(f,_){const p=new FormData,b=new XMLHttpRequest,S=(M,O)=>_[M]!==void 0?An(_[M])(O):i.value[M](O),y=S("url",f);if(!y){console.error("q-uploader: invalid or no URL specified"),l.value--;return}const m=S("formFields",f);m!==void 0&&m.forEach(M=>{p.append(M.name,M.value)});let w=0,E=0,C=0,R=0,H;b.upload.addEventListener("progress",M=>{if(H===!0)return;const O=Math.min(R,M.loaded);n.uploadedSize.value+=O-C,C=O;let k=C-E;for(let A=w;k>0&&A<f.length;A++){const D=f[A];if(k>D.size)k-=D.size,w++,E+=D.size,n.updateFileStatus(D,"uploading",D.size);else{n.updateFileStatus(D,"uploading",k);return}}},!1),b.onreadystatechange=()=>{b.readyState<4||(b.status&&b.status<400?(n.uploadedFiles.value=n.uploadedFiles.value.concat(f),f.forEach(M=>{n.updateFileStatus(M,"uploaded")}),t("uploaded",{files:f,xhr:b})):(H=!0,n.uploadedSize.value-=C,n.queuedFiles.value=n.queuedFiles.value.concat(f),f.forEach(M=>{n.updateFileStatus(M,"failed")}),t("failed",{files:f,xhr:b})),l.value--,a.value=a.value.filter(M=>M!==b))},b.open(S("method",f),y),S("withCredentials",f)===!0&&(b.withCredentials=!0);const q=S("headers",f);q!==void 0&&q.forEach(M=>{b.setRequestHeader(M.name,M.value)});const T=S("sendRaw",f);f.forEach(M=>{n.updateFileStatus(M,"uploading",0),T!==!0&&p.append(S("fieldName",M),M,M.name),M.xhr=b,M.__abort=()=>{b.abort()},R+=M.size}),t("uploading",{files:f,xhr:b}),a.value.push(b),T===!0?b.send(new Blob(f)):b.send(p)}return{isUploading:s,isBusy:u,abort:c,upload:g}}var ew={name:XS,props:JS,emits:ZS,injectPlugin:VS};GS(ew),ie({name:"QUploaderAddTrigger",setup(){const e=r.inject(id,et);return e===et&&console.error("QUploaderAddTrigger needs to be child of QUploader"),e}}),ie({name:"QVideo",props:{...Ss,src:{type:String,required:!0},title:String,fetchpriority:{type:String,default:"auto"},loading:{type:String,default:"eager"},referrerpolicy:{type:String,default:"strict-origin-when-cross-origin"}},setup(e){const t=ws(e),n=r.computed(()=>"q-video"+(e.ratio!==void 0?" q-video--responsive":""));return()=>r.h("div",{class:n.value,style:t.value},[r.h("iframe",{src:e.src,title:e.title,fetchpriority:e.fetchpriority,loading:e.loading,referrerpolicy:e.referrerpolicy,frameborder:"0",allowfullscreen:!0})])}});function Kv(e){if(e===!1)return 0;if(e===!0||e===void 0)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}sn({name:"close-popup",beforeMount(e,{value:t}){const n={depth:Kv(t),handler(a){n.depth!==0&&setTimeout(()=>{const o=$0(e);o!==void 0&&B0(o,a,n.depth)})},handlerKey(a){Vt(a,13)===!0&&n.handler(a)}};e.__qclosepopup=n,e.addEventListener("click",n.handler),e.addEventListener("keyup",n.handlerKey)},updated(e,{value:t,oldValue:n}){t!==n&&(e.__qclosepopup.depth=Kv(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}});var tw=0,La=void 0;function Yv(e,t){La===void 0&&(La=document.createElement("div"),La.style.cssText="position: absolute; left: 0; top: 0",document.body.appendChild(La));const n=e.getBoundingClientRect(),a=La.getBoundingClientRect(),{marginLeft:o,marginRight:l,marginTop:i,marginBottom:s}=window.getComputedStyle(e),u=parseInt(o,10)+parseInt(l,10),d=parseInt(i,10)+parseInt(s,10);return{left:n.left-a.left,top:n.top-a.top,width:n.right-n.left,height:n.bottom-n.top,widthM:n.right-n.left+(t===!0?0:u),heightM:n.bottom-n.top+(t===!0?0:d),marginH:t===!0?u:0,marginV:t===!0?d:0}}function ol(e){return{width:e.scrollWidth,height:e.scrollHeight}}var Gv=["Top","Right","Bottom","Left"],Xv=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],nw=/-block|-inline|block-|inline-/,rw=/(-block|-inline|block-|inline-).*:/;function Jv(e,t){const n=window.getComputedStyle(e),a={};for(let o=0;o<t.length;o++){const l=t[o];if(n[l]==="")if(l==="cssText"){const i=n.length;let s="";for(let u=0;u<i;u++)nw.test(n[u])!==!0&&(s+=n[u]+": "+n[n[u]]+"; ");a[l]=s}else if(["borderWidth","borderStyle","borderColor"].indexOf(l)!==-1){const i=l.replace("border","");let s="";for(let u=0;u<Gv.length;u++){const d="border"+Gv[u]+i;s+=n[d]+" "}a[l]=s}else if(l==="borderRadius"){let i="",s="";for(let u=0;u<Xv.length;u++){const d=n[Xv[u]].split(" ");i+=d[0]+" ",s+=(d[1]===void 0?d[0]:d[1])+" "}a[l]=i+"/ "+s}else a[l]=n[l];else l==="cssText"?a[l]=n[l].split(";").filter(i=>rw.test(i)!==!0).join(";"):a[l]=n[l]}return a}var aw=["absolute","fixed","relative","sticky"];function Zv(e){let t=e,n=0;for(;t!==null&&t!==document;){const{position:a,zIndex:o}=window.getComputedStyle(t),l=Number(o);l>n&&(t===e||aw.includes(a)===!0)&&(n=l),t=t.parentNode}return n}function ow(e){return{from:e.from,to:e.to!==void 0?e.to:e.from}}function lw(e){return typeof e=="number"?e={duration:e}:typeof e=="function"&&(e={onEnd:e}),{...e,waitFor:e.waitFor===void 0?0:e.waitFor,duration:isNaN(e.duration)===!0?300:parseInt(e.duration,10),easing:typeof e.easing=="string"&&e.easing.length!==0?e.easing:"ease-in-out",delay:isNaN(e.delay)===!0?0:parseInt(e.delay,10),fill:typeof e.fill=="string"&&e.fill.length!==0?e.fill:"none",resize:e.resize===!0,useCSS:e.useCSS===!0||e.usecss===!0,hideFromClone:e.hideFromClone===!0||e.hidefromclone===!0,keepToClone:e.keepToClone===!0||e.keeptoclone===!0,tween:e.tween===!0,tweenFromOpacity:isNaN(e.tweenFromOpacity)===!0?.6:parseFloat(e.tweenFromOpacity),tweenToOpacity:isNaN(e.tweenToOpacity)===!0?.5:parseFloat(e.tweenToOpacity)}}function Vv(e){const t=typeof e;return t==="function"?e():t==="string"?document.querySelector(e):e}function em(e){return e&&e.ownerDocument===document&&e.parentNode!==null}function iw(e){let t=()=>!1,n=!1,a=!0;const o=ow(e),l=lw(e),i=Vv(o.from);if(em(i)!==!0)return t;typeof i.qMorphCancel=="function"&&i.qMorphCancel();let s,u,d,c;const g=i.parentNode,v=i.nextElementSibling,h=Yv(i,l.resize),{width:f,height:_}=ol(g),{borderWidth:p,borderStyle:b,borderColor:S,borderRadius:y,backgroundColor:m,transform:w,position:E,cssText:C}=Jv(i,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),R=i.classList.toString(),H=i.style.cssText,q=i.cloneNode(!0),T=l.tween===!0?i.cloneNode(!0):void 0;T!==void 0&&(T.className=T.classList.toString().split(" ").filter(O=>/^bg-/.test(O)===!1).join(" ")),l.hideFromClone===!0&&q.classList.add("q-morph--internal"),q.setAttribute("aria-hidden","true"),q.style.transition="none",q.style.animation="none",q.style.pointerEvents="none",g.insertBefore(q,v),i.qMorphCancel=()=>{n=!0,q.remove(),T?.remove(),l.hideFromClone===!0&&q.classList.remove("q-morph--internal"),i.qMorphCancel=void 0};const M=()=>{const O=Vv(o.to);if(n===!0||em(O)!==!0){typeof i.qMorphCancel=="function"&&i.qMorphCancel();return}i!==O&&typeof O.qMorphCancel=="function"&&O.qMorphCancel(),l.keepToClone!==!0&&O.classList.add("q-morph--internal"),q.classList.add("q-morph--internal");const{width:k,height:A}=ol(g),{width:D,height:z}=ol(O.parentNode);l.hideFromClone!==!0&&q.classList.remove("q-morph--internal"),O.qMorphCancel=()=>{n=!0,q.remove(),T?.remove(),l.hideFromClone===!0&&q.classList.remove("q-morph--internal"),l.keepToClone!==!0&&O.classList.remove("q-morph--internal"),i.qMorphCancel=void 0,O.qMorphCancel=void 0};const F=()=>{if(n===!0){typeof O.qMorphCancel=="function"&&O.qMorphCancel();return}l.hideFromClone!==!0&&(q.classList.add("q-morph--internal"),q.innerHTML="",q.style.left=0,q.style.right="unset",q.style.top=0,q.style.bottom="unset",q.style.transform="none"),l.keepToClone!==!0&&O.classList.remove("q-morph--internal");const Z=O.parentNode,{width:he,height:$}=ol(Z),x=O.cloneNode(l.keepToClone);x.setAttribute("aria-hidden","true"),l.keepToClone!==!0&&(x.style.left=0,x.style.right="unset",x.style.top=0,x.style.bottom="unset",x.style.transform="none",x.style.pointerEvents="none"),x.classList.add("q-morph--internal");const Y=O===i&&g===Z?q:O.nextElementSibling;Z.insertBefore(x,Y);const{borderWidth:B,borderStyle:le,borderColor:N,borderRadius:U,backgroundColor:ue,transform:W,position:ve,cssText:_e}=Jv(O,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),G=O.classList.toString(),ge=O.style.cssText;O.style.cssText=_e,O.style.transform="none",O.style.animation="none",O.style.transition="none",O.className=G.split(" ").filter(de=>/^bg-/.test(de)===!1).join(" ");const pe=Yv(O,l.resize),we=h.left-pe.left,Ae=h.top-pe.top,fe=h.width/(pe.width>0?pe.width:10),L=h.height/(pe.height>0?pe.height:100),I=f-k,te=_-A,K=he-D,X=$-z,se=Math.max(h.widthM,I),me=Math.max(h.heightM,te),J=Math.max(pe.widthM,K),ae=Math.max(pe.heightM,X),be=i===O&&["absolute","fixed"].includes(ve)===!1&&["absolute","fixed"].includes(E)===!1;let ke=ve==="fixed",Qe=Z;for(;ke!==!0&&Qe!==document;)ke=window.getComputedStyle(Qe).position==="fixed",Qe=Qe.parentNode;if(l.hideFromClone!==!0&&(q.style.display="block",q.style.flex="0 0 auto",q.style.opacity=0,q.style.minWidth="unset",q.style.maxWidth="unset",q.style.minHeight="unset",q.style.maxHeight="unset",q.classList.remove("q-morph--internal")),l.keepToClone!==!0&&(x.style.display="block",x.style.flex="0 0 auto",x.style.opacity=0,x.style.minWidth="unset",x.style.maxWidth="unset",x.style.minHeight="unset",x.style.maxHeight="unset"),x.classList.remove("q-morph--internal"),typeof l.classes=="string"&&(O.className+=" "+l.classes),typeof l.style=="string")O.style.cssText+=" "+l.style;else if($t(l.style)===!0)for(const de in l.style)O.style[de]=l.style[de];const je=Zv(q),ee=Zv(O),ce=ke===!0?document.documentElement:{scrollLeft:0,scrollTop:0};O.style.position=ke===!0?"fixed":"absolute",O.style.left=`${pe.left-ce.scrollLeft}px`,O.style.right="unset",O.style.top=`${pe.top-ce.scrollTop}px`,O.style.margin=0,l.resize===!0&&(O.style.minWidth="unset",O.style.maxWidth="unset",O.style.minHeight="unset",O.style.maxHeight="unset",O.style.overflow="hidden",O.style.overflowX="hidden",O.style.overflowY="hidden"),document.body.appendChild(O),T!==void 0&&(T.style.cssText=C,T.style.transform="none",T.style.animation="none",T.style.transition="none",T.style.position=O.style.position,T.style.left=`${h.left-ce.scrollLeft}px`,T.style.right="unset",T.style.top=`${h.top-ce.scrollTop}px`,T.style.margin=0,T.style.pointerEvents="none",l.resize===!0&&(T.style.minWidth="unset",T.style.maxWidth="unset",T.style.minHeight="unset",T.style.maxHeight="unset",T.style.overflow="hidden",T.style.overflowX="hidden",T.style.overflowY="hidden"),document.body.appendChild(T));const V=de=>{i===O&&a!==!0?(O.style.cssText=H,O.className=R):(O.style.cssText=ge,O.className=G),x.parentNode===Z&&Z.insertBefore(O,x),q.remove(),x.remove(),T?.remove(),t=()=>!1,i.qMorphCancel=void 0,O.qMorphCancel=void 0,typeof l.onEnd=="function"&&l.onEnd(a===!0?"to":"from",de===!0)};if(l.useCSS!==!0&&typeof O.animate=="function"){const de=l.resize===!0?{transform:`translate(${we}px, ${Ae}px)`,width:`${se}px`,height:`${me}px`}:{transform:`translate(${we}px, ${Ae}px) scale(${fe}, ${L})`},xe=l.resize===!0?{width:`${J}px`,height:`${ae}px`}:{},Be=l.resize===!0?{width:`${se}px`,height:`${me}px`}:{},Le=l.resize===!0?{transform:`translate(${-1*we}px, ${-1*Ae}px)`,width:`${J}px`,height:`${ae}px`}:{transform:`translate(${-1*we}px, ${-1*Ae}px) scale(${1/fe}, ${1/L})`},Ue=T!==void 0?{opacity:l.tweenToOpacity}:{backgroundColor:m},nt=T!==void 0?{opacity:1}:{backgroundColor:ue};c=O.animate([{margin:0,borderWidth:p,borderStyle:b,borderColor:S,borderRadius:y,zIndex:je,transformOrigin:"0 0",...de,...Ue},{margin:0,borderWidth:B,borderStyle:le,borderColor:N,borderRadius:U,zIndex:ee,transformOrigin:"0 0",transform:W,...xe,...nt}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),u=T===void 0?void 0:T.animate([{opacity:l.tweenFromOpacity,margin:0,borderWidth:p,borderStyle:b,borderColor:S,borderRadius:y,zIndex:je,transformOrigin:"0 0",transform:w,...Be},{opacity:0,margin:0,borderWidth:B,borderStyle:le,borderColor:N,borderRadius:U,zIndex:ee,transformOrigin:"0 0",...Le}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),s=l.hideFromClone===!0||be===!0?void 0:q.animate([{margin:`${te<0?te/2:0}px ${I<0?I/2:0}px`,width:`${se+h.marginH}px`,height:`${me+h.marginV}px`},{margin:0,width:0,height:0}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay}),d=l.keepToClone===!0?void 0:x.animate([be===!0?{margin:`${te<0?te/2:0}px ${I<0?I/2:0}px`,width:`${se+h.marginH}px`,height:`${me+h.marginV}px`}:{margin:0,width:0,height:0},{margin:`${X<0?X/2:0}px ${K<0?K/2:0}px`,width:`${J+pe.marginH}px`,height:`${ae+pe.marginV}px`}],{duration:l.duration,easing:l.easing,fill:l.fill,delay:l.delay});const pt=Ft=>{s?.cancel(),u?.cancel(),d?.cancel(),c.cancel(),c.removeEventListener("finish",pt),c.removeEventListener("cancel",pt),V(Ft),s=void 0,u=void 0,d=void 0,c=void 0};i.qMorphCancel=()=>{i.qMorphCancel=void 0,n=!0,pt()},O.qMorphCancel=()=>{O.qMorphCancel=void 0,n=!0,pt()},c.addEventListener("finish",pt),c.addEventListener("cancel",pt),t=Ft=>n===!0||c===void 0?!1:Ft===!0?(pt(!0),!0):(a=a!==!0,s?.reverse(),u?.reverse(),d?.reverse(),c.reverse(),!0)}else{const de=`q-morph-anim-${++tw}`,xe=document.createElement("style"),Be=l.resize===!0?`
|
|
28
|
-
transform: translate(${
|
|
29
|
-
width: ${
|
|
30
|
-
height: ${
|
|
31
|
-
`:`transform: translate(${
|
|
32
|
-
width: ${
|
|
33
|
-
height: ${
|
|
34
|
-
`:"",
|
|
35
|
-
width: ${
|
|
36
|
-
height: ${
|
|
37
|
-
`:"",
|
|
38
|
-
transform: translate(${-1*
|
|
39
|
-
width: ${
|
|
40
|
-
height: ${
|
|
41
|
-
`:`transform: translate(${-1*
|
|
42
|
-
@keyframes ${
|
|
27
|
+
`),o.print(),o.close();return}else if(e==="link"){const o=this.getParentAttribute("href");if(o===null){const a=this.selectWord(this.selection),i=a?a.toString():"";if(!i.length&&(!this.range||!this.range.cloneContents().querySelector("img")))return;this.eVm.editLinkUrl.value=NS.test(i)?i:"https://",document.execCommand("createLink",!1,this.eVm.editLinkUrl.value),this.save(a.getRangeAt(0))}else this.eVm.editLinkUrl.value=o,this.range.selectNodeContents(this.parent),this.save();return}else if(e==="fullscreen"){this.eVm.toggleFullscreen(),n();return}else if(e==="viewsource"){this.eVm.isViewingSource.value=this.eVm.isViewingSource.value===!1,this.eVm.setContent(this.eVm.props.modelValue),n();return}document.execCommand(e,!1,t),n()}selectWord(e){if(e===null||e.isCollapsed!==!0||e.modify===void 0)return e;const t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);const n=t.collapsed?["backward","forward"]:["forward","backward"];t.detach();const o=e.focusNode,a=e.focusOffset;return e.collapse(e.anchorNode,e.anchorOffset),e.modify("move",n[0],"character"),e.modify("move",n[1],"word"),e.extend(o,a),e.modify("extend",n[1],"character"),e.modify("extend",n[0],"word"),e}},$S=_e({name:"QTooltip",inheritAttrs:!1,props:{...Uf,...po,...Br,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...Br.transitionShow,default:"jump-down"},transitionHide:{...Br.transitionHide,default:"jump-up"},anchor:{type:String,default:"bottom middle",validator:wi},self:{type:String,default:"top middle",validator:wi},offset:{type:Array,default:()=>[14,14],validator:iv},scrollTarget:zr,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...bo],setup(e,{slots:t,emit:n,attrs:o}){let a,i;const l=r.getCurrentInstance(),{proxy:{$q:s}}=l,d=r.ref(null),m=r.ref(!1),v=r.computed(()=>Ci(e.anchor,s.lang.rtl)),b=r.computed(()=>Ci(e.self,s.lang.rtl)),p=r.computed(()=>e.persistent!==!0),{registerTick:_,removeTick:g}=Co(),{registerTimeout:E}=ar(),{transitionProps:C,transitionStyle:w}=vi(e),{localScrollTarget:T,changeScrollEvent:x,unconfigureScrollTarget:y}=Wf(e,Ee),{anchorEl:q,canShow:L,anchorEvents:k}=qs({showing:m,configureAnchorEl:ce}),{show:H,hide:ee}=yo({showing:m,canShow:L,handleShow:D,handleHide:P,hideOnRouteChange:p,processOnMount:!0});Object.assign(k,{delayShow:X,delayHide:Z});const{showPortal:N,hidePortal:I,renderPortal:$}=Ps(l,d,R,"tooltip");if(s.platform.is.mobile===!0){const ae={anchorEl:q,innerRef:d,onClickOutside(be){return ee(be),be.target.classList.contains("q-dialog__backdrop")&&ct(be),!0}},J=r.computed(()=>e.modelValue===null&&e.persistent!==!0&&m.value===!0);r.watch(J,be=>{(be===!0?rv:Si)(ae)}),r.onBeforeUnmount(()=>{Si(ae)})}function D(ae){N(),_(()=>{i=new MutationObserver(()=>Y()),i.observe(d.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),Y(),Ee()}),a===void 0&&(a=r.watch(()=>s.screen.width+"|"+s.screen.height+"|"+e.self+"|"+e.anchor+"|"+s.lang.rtl,Y)),E(()=>{N(!0),n("show",ae)},e.transitionDuration)}function P(ae){g(),I(),F(),E(()=>{I(!0),n("hide",ae)},e.transitionDuration)}function F(){i!==void 0&&(i.disconnect(),i=void 0),a!==void 0&&(a(),a=void 0),y(),cn(k,"tooltipTemp")}function Y(){Ds({targetEl:d.value,offset:e.offset,anchorEl:q.value,anchorOrigin:v.value,selfOrigin:b.value,maxHeight:e.maxHeight,maxWidth:e.maxWidth})}function X(ae){if(s.platform.is.mobile===!0){Bn(),document.body.classList.add("non-selectable");const J=q.value,be=["touchmove","touchcancel","touchend","click"].map(W=>[J,W,"delayHide","passiveCapture"]);zt(k,"tooltipTemp",be)}E(()=>{H(ae)},e.delay)}function Z(ae){s.platform.is.mobile===!0&&(cn(k,"tooltipTemp"),Bn(),setTimeout(()=>{document.body.classList.remove("non-selectable")},10)),E(()=>{ee(ae)},e.hideDelay)}function ce(){if(e.noParentEvent===!0||q.value===null)return;const ae=s.platform.is.mobile===!0?[[q.value,"touchstart","delayShow","passive"]]:[[q.value,"mouseenter","delayShow","passive"],[q.value,"mouseleave","delayHide","passive"]];zt(k,"anchor",ae)}function Ee(){if(q.value!==null||e.scrollTarget!==void 0){T.value=Kn(q.value,e.scrollTarget);const ae=e.noParentEvent===!0?Y:ee;x(T.value,ae)}}function G(){return m.value===!0?r.h("div",{...o,ref:d,class:["q-tooltip q-tooltip--style q-position-engine no-pointer-events",o.class],style:[o.style,w.value],role:"tooltip"},Ke(t.default)):null}function R(){return r.h(r.Transition,C.value,G)}return r.onBeforeUnmount(F),Object.assign(l.proxy,{updatePosition:Y}),$}}),Bi=_e({name:"QItem",props:{...bt,...ra,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),a=yt(e,o),{hasLink:i,linkAttrs:l,linkClass:s,linkTag:d,navigateOnClick:m}=ui(),v=r.ref(null),b=r.ref(null),p=r.computed(()=>e.clickable===!0||i.value===!0||e.tag==="label"),_=r.computed(()=>e.disable!==!0&&p.value===!0),g=r.computed(()=>"q-item q-item-type row no-wrap"+(e.dense===!0?" q-item--dense":"")+(a.value===!0?" q-item--dark":"")+(i.value===!0&&e.active===null?s.value:e.active===!0?` q-item--active${e.activeClass!==void 0?` ${e.activeClass}`:""}`:"")+(e.disable===!0?" disabled":"")+(_.value===!0?" q-item--clickable q-link cursor-pointer "+(e.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(e.focused===!0?" q-manual-focusable--focused":""):"")),E=r.computed(()=>e.insetLevel===void 0?null:{["padding"+(o.lang.rtl===!0?"Right":"Left")]:16+e.insetLevel*56+"px"});function C(x){_.value===!0&&(b.value!==null&&x.qAvoidFocus!==!0&&(x.qKeyEvent!==!0&&document.activeElement===v.value?b.value.focus():document.activeElement===b.value&&v.value.focus()),m(x))}function w(x){if(_.value===!0&&qn(x,[13,32])===!0){ct(x),x.qKeyEvent=!0;const y=new MouseEvent("click",x);y.qKeyEvent=!0,v.value.dispatchEvent(y)}n("keyup",x)}function T(){const x=na(t.default,[]);return _.value===!0&&x.unshift(r.h("div",{class:"q-focus-helper",tabindex:-1,ref:b})),x}return()=>{const x={ref:v,class:g.value,style:E.value,role:"listitem",onClick:C,onKeyup:w};return _.value===!0?(x.tabindex=e.tabindex||"0",Object.assign(x,l.value)):p.value===!0&&(x["aria-disabled"]="true"),r.h(d.value,x,T())}}}),_r=_e({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(e,{slots:t}){const n=r.computed(()=>`q-item__section column q-item__section--${e.avatar===!0||e.side===!0||e.thumbnail===!0?"side":"main"}`+(e.top===!0?" q-item__section--top justify-start":" justify-center")+(e.avatar===!0?" q-item__section--avatar":"")+(e.thumbnail===!0?" q-item__section--thumbnail":"")+(e.noWrap===!0?" q-item__section--nowrap":""));return()=>r.h("div",{class:n.value},Ke(t.default))}});function dm(e,t,n){t.handler?t.handler(e,n,n.caret):n.runCmd(t.cmd,t.param)}function gu(e){return r.h("div",{class:"q-editor__toolbar-group"},e)}function fm(e,t,n,o=!1){const a=o||(t.type==="toggle"?t.toggled?t.toggled(e):t.cmd&&e.caret.is(t.cmd,t.param):!1),i=[];if(e.$q.platform.is.desktop&&(t.tip||t.htmlTip)){const l=t.key?r.h("div",[r.h("small",`(CTRL + ${String.fromCharCode(t.key)})`)]):null;i.push(r.h($S,{delay:1e3},()=>[r.h("div",t.htmlTip?{innerHTML:t.htmlTip}:t.tip),l]))}return r.h(xt,{...e.buttonProps.value,icon:t.icon!==null?t.icon:void 0,color:a?t.toggleColor||e.props.toolbarToggleColor:t.color||e.props.toolbarColor,textColor:a&&!e.props.toolbarPush?null:t.textColor||e.props.toolbarTextColor,label:t.label,"aria-label":t.label==null?t.tip:void 0,disable:t.disable?typeof t.disable=="function"?t.disable(e):!0:!1,size:"sm",onClick(l){n?.(),dm(l,t,e)}},()=>i)}function FS(e,t){const n=t.list==="only-icons";let o=t.label,a=t.icon!==null?t.icon:void 0,i,l;function s(){m.component.proxy.hide()}if(n)l=t.options.map(v=>{const b=v.type===void 0?e.caret.is(v.cmd,v.param):!1;return b&&(o=v.tip,a=v.icon!==null?v.icon:void 0),fm(e,v,s,b)}),i=e.toolbarBackgroundClass.value,l=[gu(l)];else{const v=e.props.toolbarToggleColor!==void 0?`text-${e.props.toolbarToggleColor}`:null,b=e.props.toolbarTextColor!==void 0?`text-${e.props.toolbarTextColor}`:null,p=t.list==="no-icons";l=t.options.map(_=>{const g=_.disable?_.disable(e):!1,E=_.type===void 0?e.caret.is(_.cmd,_.param):!1;E&&(o=_.tip,a=_.icon!==null?_.icon:void 0);const C=_.htmlTip;return r.h(Bi,{active:E,activeClass:v,clickable:!0,disable:g,dense:!0,onClick(w){s(),w?.qAvoidFocus!==!0&&e.contentRef.value?.focus(),e.caret.restore(),dm(w,_,e)}},()=>[p===!0?null:r.h(_r,{class:E?v:b,side:!0},()=>r.h(wt,{name:_.icon!==null?_.icon:void 0})),r.h(_r,C?()=>r.h("div",{class:"text-no-wrap",innerHTML:_.htmlTip}):_.tip?()=>r.h("div",{class:"text-no-wrap"},_.tip):void 0)])}),i=[e.toolbarBackgroundClass.value,b]}const d=t.highlight&&o!==t.label,m=r.h(N_,{...e.buttonProps.value,noCaps:!0,noWrap:!0,color:d?e.props.toolbarToggleColor:e.props.toolbarColor,textColor:d&&!e.props.toolbarPush?null:e.props.toolbarTextColor,label:t.fixedLabel?t.label:o,icon:t.fixedIcon?t.icon!==null?t.icon:void 0:a,contentClass:i,onShow:v=>e.emit("dropdownShow",v),onHide:v=>e.emit("dropdownHide",v),onBeforeShow:v=>e.emit("dropdownBeforeShow",v),onBeforeHide:v=>e.emit("dropdownBeforeHide",v)},()=>l);return m}function BS(e){if(e.caret)return e.buttons.value.filter(t=>!e.isViewingSource.value||t.find(n=>n.cmd==="viewsource")).map(t=>gu(t.map(n=>e.isViewingSource.value&&n.cmd!=="viewsource"?!1:n.type==="slot"?Ke(e.slots[n.slot]):n.type==="dropdown"?FS(e,n):fm(e,n))))}function zS(e,t,n,o={}){const a=Object.keys(o);if(a.length===0)return{};const i={default_font:{cmd:"fontName",param:e,icon:n,tip:t}};return a.forEach(l=>{const s=o[l];i[l]={cmd:"fontName",param:s,icon:n,tip:s,htmlTip:`<font face="${s}">${s}</font>`}}),i}function HS(e){if(e.caret){const t=e.props.toolbarColor||e.props.toolbarTextColor;let n=e.editLinkUrl.value;const o=()=>{e.caret.restore(),n!==e.editLinkUrl.value&&document.execCommand("createLink",!1,n===""?" ":n),e.editLinkUrl.value=null};return[r.h("div",{class:`q-mx-xs text-${t}`},`${e.$q.lang.editor.url}: `),r.h("input",{key:"qedt_btm_input",class:"col q-editor__link-input",value:n,onInput:a=>{$t(a),n=a.target.value},onKeydown:a=>{if(Nr(a)!==!0)switch(a.keyCode){case 13:return Zt(a),o();case 27:Zt(a),e.caret.restore(),(!e.editLinkUrl.value||e.editLinkUrl.value==="https://")&&document.execCommand("unlink"),e.editLinkUrl.value=null;break}}}),gu([r.h(xt,{key:"qedt_btm_rem",...e.buttonProps.value,label:e.$q.lang.label.remove,noCaps:!0,onClick:()=>{e.caret.restore(),document.execCommand("unlink"),e.editLinkUrl.value=null}}),r.h(xt,{key:"qedt_btm_upd",...e.buttonProps.value,label:e.$q.lang.label.update,noCaps:!0,onClick:o})])]}}var vm=/^on[A-Z]/;function mm(){const{attrs:e,vnode:t}=r.getCurrentInstance(),n={listeners:r.ref({}),attributes:r.ref({})};function o(){const a={},i={};for(const l in e)l!=="class"&&l!=="style"&&vm.test(l)===!1&&(a[l]=e[l]);for(const l in t.props)vm.test(l)===!0&&(i[l]=t.props[l]);n.attributes.value=a,n.listeners.value=i}return r.onBeforeUpdate(o),o(),n}var jS=Object.prototype.toString,pu=Object.prototype.hasOwnProperty,US=new Set(["Boolean","Number","String","Function","Array","Date","RegExp"].map(e=>"[object "+e+"]"));function hm(e){if(e!==Object(e)||US.has(jS.call(e))===!0||e.constructor&&pu.call(e,"constructor")===!1&&pu.call(e.constructor.prototype,"isPrototypeOf")===!1)return!1;let t;for(t in e);return t===void 0||pu.call(e,t)}function gm(){let e,t,n,o,a,i,l=arguments[0]||{},s=1,d=!1;const m=arguments.length;for(typeof l=="boolean"&&(d=l,l=arguments[1]||{},s=2),Object(l)!==l&&typeof l!="function"&&(l={}),m===s&&(l=this,s--);s<m;s++)if((e=arguments[s])!==null)for(t in e)n=l[t],o=e[t],l!==o&&(d===!0&&o&&((a=Array.isArray(o))||hm(o)===!0)?(a===!0?i=Array.isArray(n)===!0?n:[]:i=hm(n)===!0?n:{},l[t]=gm(d,i,o)):o!==void 0&&(l[t]=o));return l}_e({name:"QEditor",props:{...bt,...Ws,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=>e.length===0||e.every(t=>t.length),default:()=>[["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:[...Ys,"update:modelValue","keydown","click","focus","blur","dropdownShow","dropdownHide","dropdownBeforeShow","dropdownBeforeHide","linkShow","linkHide"],setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),{$q:a}=o,i=yt(e,a),{inFullscreen:l,toggleFullscreen:s}=Ks(),d=mm(),m=r.ref(null),v=r.ref(null),b=r.ref(null),p=r.ref(!1),_=r.computed(()=>!e.readonly&&!e.disable);let g,E,C=e.modelValue;document.execCommand("defaultParagraphSeparator",!1,e.paragraphTag),g=window.getComputedStyle(document.body).fontFamily;const w=r.computed(()=>e.toolbarBg?` bg-${e.toolbarBg}`:""),T=r.computed(()=>({type:"a",flat:e.toolbarOutline!==!0&&e.toolbarPush!==!0,noWrap:!0,outline:e.toolbarOutline,push:e.toolbarPush,rounded:e.toolbarRounded,dense:!0,color:e.toolbarColor,disable:!_.value,size:"sm"})),x=r.computed(()=>{const W=a.lang.editor,ne=a.iconSet.editor;return{bold:{cmd:"bold",icon:ne.bold,tip:W.bold,key:66},italic:{cmd:"italic",icon:ne.italic,tip:W.italic,key:73},strike:{cmd:"strikeThrough",icon:ne.strikethrough,tip:W.strikethrough,key:83},underline:{cmd:"underline",icon:ne.underline,tip:W.underline,key:85},unordered:{cmd:"insertUnorderedList",icon:ne.unorderedList,tip:W.unorderedList},ordered:{cmd:"insertOrderedList",icon:ne.orderedList,tip:W.orderedList},subscript:{cmd:"subscript",icon:ne.subscript,tip:W.subscript,htmlTip:"x<subscript>2</subscript>"},superscript:{cmd:"superscript",icon:ne.superscript,tip:W.superscript,htmlTip:"x<superscript>2</superscript>"},link:{cmd:"link",disable:we=>we.caret&&!we.caret.can("link"),icon:ne.hyperlink,tip:W.hyperlink,key:76},fullscreen:{cmd:"fullscreen",icon:ne.toggleFullscreen,tip:W.toggleFullscreen,key:70},viewsource:{cmd:"viewsource",icon:ne.viewSource,tip:W.viewSource},quote:{cmd:"formatBlock",param:"BLOCKQUOTE",icon:ne.quote,tip:W.quote,key:81},left:{cmd:"justifyLeft",icon:ne.left,tip:W.left},center:{cmd:"justifyCenter",icon:ne.center,tip:W.center},right:{cmd:"justifyRight",icon:ne.right,tip:W.right},justify:{cmd:"justifyFull",icon:ne.justify,tip:W.justify},print:{type:"no-state",cmd:"print",icon:ne.print,tip:W.print,key:80},outdent:{type:"no-state",disable:we=>we.caret&&!we.caret.can("outdent"),cmd:"outdent",icon:ne.outdent,tip:W.outdent},indent:{type:"no-state",disable:we=>we.caret&&!we.caret.can("indent"),cmd:"indent",icon:ne.indent,tip:W.indent},removeFormat:{type:"no-state",cmd:"removeFormat",icon:ne.removeFormat,tip:W.removeFormat},hr:{type:"no-state",cmd:"insertHorizontalRule",icon:ne.hr,tip:W.hr},undo:{type:"no-state",cmd:"undo",icon:ne.undo,tip:W.undo,key:90},redo:{type:"no-state",cmd:"redo",icon:ne.redo,tip:W.redo,key:89},h1:{cmd:"formatBlock",param:"H1",icon:ne.heading1||ne.heading,tip:W.heading1,htmlTip:`<h1 class="q-ma-none">${W.heading1}</h1>`},h2:{cmd:"formatBlock",param:"H2",icon:ne.heading2||ne.heading,tip:W.heading2,htmlTip:`<h2 class="q-ma-none">${W.heading2}</h2>`},h3:{cmd:"formatBlock",param:"H3",icon:ne.heading3||ne.heading,tip:W.heading3,htmlTip:`<h3 class="q-ma-none">${W.heading3}</h3>`},h4:{cmd:"formatBlock",param:"H4",icon:ne.heading4||ne.heading,tip:W.heading4,htmlTip:`<h4 class="q-ma-none">${W.heading4}</h4>`},h5:{cmd:"formatBlock",param:"H5",icon:ne.heading5||ne.heading,tip:W.heading5,htmlTip:`<h5 class="q-ma-none">${W.heading5}</h5>`},h6:{cmd:"formatBlock",param:"H6",icon:ne.heading6||ne.heading,tip:W.heading6,htmlTip:`<h6 class="q-ma-none">${W.heading6}</h6>`},p:{cmd:"formatBlock",param:e.paragraphTag,icon:ne.heading,tip:W.paragraph},code:{cmd:"formatBlock",param:"PRE",icon:ne.code,htmlTip:`<code>${W.code}</code>`},"size-1":{cmd:"fontSize",param:"1",icon:ne.size1||ne.size,tip:W.size1,htmlTip:`<font size="1">${W.size1}</font>`},"size-2":{cmd:"fontSize",param:"2",icon:ne.size2||ne.size,tip:W.size2,htmlTip:`<font size="2">${W.size2}</font>`},"size-3":{cmd:"fontSize",param:"3",icon:ne.size3||ne.size,tip:W.size3,htmlTip:`<font size="3">${W.size3}</font>`},"size-4":{cmd:"fontSize",param:"4",icon:ne.size4||ne.size,tip:W.size4,htmlTip:`<font size="4">${W.size4}</font>`},"size-5":{cmd:"fontSize",param:"5",icon:ne.size5||ne.size,tip:W.size5,htmlTip:`<font size="5">${W.size5}</font>`},"size-6":{cmd:"fontSize",param:"6",icon:ne.size6||ne.size,tip:W.size6,htmlTip:`<font size="6">${W.size6}</font>`},"size-7":{cmd:"fontSize",param:"7",icon:ne.size7||ne.size,tip:W.size7,htmlTip:`<font size="7">${W.size7}</font>`}}}),y=r.computed(()=>{const W=e.definitions||{},ne=e.definitions||e.fonts?gm(!0,{},x.value,W,zS(g,a.lang.editor.defaultFont,a.iconSet.editor.font,e.fonts)):x.value;return e.toolbar.map(we=>we.map(Q=>{if(Q.options)return{type:"dropdown",icon:Q.icon,label:Q.label,size:"sm",dense:!0,fixedLabel:Q.fixedLabel,fixedIcon:Q.fixedIcon,highlight:Q.highlight,list:Q.list,options:Q.options.map(Le=>ne[Le])};const Oe=ne[Q];return Oe?Oe.type==="no-state"||W[Q]&&(Oe.cmd===void 0||x.value[Oe.cmd]&&x.value[Oe.cmd].type==="no-state")?Oe:Object.assign({type:"toggle"},Oe):{type:"slot",slot:Q}}))}),q={$q:a,props:e,slots:t,emit:n,inFullscreen:l,toggleFullscreen:s,runCmd:R,isViewingSource:p,editLinkUrl:b,toolbarBackgroundClass:w,buttonProps:T,contentRef:v,buttons:y,setContent:G};r.watch(()=>e.modelValue,W=>{C!==W&&(C=W,G(W,!0))}),r.watch(b,W=>{n(`link${W?"Show":"Hide"}`)});const L=r.computed(()=>e.toolbar&&e.toolbar.length!==0),k=r.computed(()=>{const W={},ne=we=>{we.key&&(W[we.key]={cmd:we.cmd,param:we.param})};return y.value.forEach(we=>{we.forEach(Q=>{Q.options?Q.options.forEach(ne):ne(Q)})}),W}),H=r.computed(()=>l.value?e.contentStyle:[{minHeight:e.minHeight,height:e.height,maxHeight:e.maxHeight},e.contentStyle]),ee=r.computed(()=>`q-editor q-editor--${p.value===!0?"source":"default"}`+(e.disable===!0?" disabled":"")+(l.value===!0?" fullscreen column":"")+(e.square===!0?" q-editor--square no-border-radius":"")+(e.flat===!0?" q-editor--flat":"")+(e.dense===!0?" q-editor--dense":"")+(i.value===!0?" q-editor--dark q-dark":"")),N=r.computed(()=>[e.contentClass,"q-editor__content",{col:l.value,"overflow-auto":l.value||e.maxHeight}]),I=r.computed(()=>e.disable===!0?{"aria-disabled":"true"}:{});function $(){if(v.value!==null){const W=`inner${p.value===!0?"Text":"HTML"}`,ne=v.value[W];ne!==e.modelValue&&(C=ne,n("update:modelValue",ne))}}function D(W){if(n("keydown",W),W.ctrlKey!==!0||Nr(W)===!0){ae();return}const ne=W.keyCode,we=k.value[ne];if(we!==void 0){const{cmd:Q,param:Oe}=we;ct(W),R(Q,Oe,!1)}}function P(W){ae(),n("click",W)}function F(W){if(v.value!==null){const{scrollTop:ne,scrollHeight:we}=v.value;E=we-ne}q.caret.save(),n("blur",W)}function Y(W){r.nextTick(()=>{v.value!==null&&E!==void 0&&(v.value.scrollTop=v.value.scrollHeight-E)}),n("focus",W)}function X(W){const ne=m.value;if(ne!==null&&ne.contains(W.target)===!0&&(W.relatedTarget===null||ne.contains(W.relatedTarget)!==!0)){const we=`inner${p.value===!0?"Text":"HTML"}`;q.caret.restorePosition(v.value[we].length),ae()}}function Z(W){const ne=m.value;ne!==null&&ne.contains(W.target)===!0&&(W.relatedTarget===null||ne.contains(W.relatedTarget)!==!0)&&(q.caret.savePosition(),ae())}function ce(){E=void 0}function Ee(W){q.caret.save()}function G(W,ne){if(v.value!==null){ne===!0&&q.caret.savePosition();const we=`inner${p.value===!0?"Text":"HTML"}`;v.value[we]=W,ne===!0&&(q.caret.restorePosition(v.value[we].length),ae())}}function R(W,ne,we=!0){J(),q.caret.restore(),q.caret.apply(W,ne,()=>{J(),q.caret.save(),we&&ae()})}function ae(){setTimeout(()=>{b.value=null,o.$forceUpdate()},1)}function J(){_o(()=>{v.value?.focus({preventScroll:!0})})}function be(){return v.value}return r.onMounted(()=>{q.caret=o.caret=new DS(v.value,q),G(e.modelValue),ae(),document.addEventListener("selectionchange",Ee)}),r.onBeforeUnmount(()=>{document.removeEventListener("selectionchange",Ee)}),Object.assign(o,{runCmd:R,refreshToolbar:ae,focus:J,getContentEl:be}),()=>{let W;if(L.value){const ne=[r.h("div",{key:"qedt_top",class:"q-editor__toolbar row no-wrap scroll-x"+w.value},BS(q))];b.value!==null&&ne.push(r.h("div",{key:"qedt_btm",class:"q-editor__toolbar row no-wrap items-center scroll-x"+w.value},HS(q))),W=r.h("div",{key:"toolbar_ctainer",class:"q-editor__toolbars-container"},ne)}return r.h("div",{ref:m,class:ee.value,style:{height:l.value===!0?"100%":null},...I.value,onFocusin:X,onFocusout:Z},[W,r.h("div",{ref:v,style:H.value,class:N.value,contenteditable:_.value,placeholder:e.placeholder,...d.listeners.value,onInput:$,onKeydown:D,onClick:P,onBlur:F,onFocus:Y,onMousedown:ce,onTouchstartPassive:ce})])}}});var bu=_e({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){const n=r.computed(()=>parseInt(e.lines,10)),o=r.computed(()=>"q-item__label"+(e.overline===!0?" q-item__label--overline text-overline":"")+(e.caption===!0?" q-item__label--caption text-caption":"")+(e.header===!0?" q-item__label--header":"")+(n.value===1?" ellipsis":"")),a=r.computed(()=>e.lines!==void 0&&n.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":n.value}:null);return()=>r.h("div",{style:a.value,class:o.value},Ke(t.default))}}),yu=_e({name:"QSlideTransition",props:{appear:Boolean,duration:{type:Number,default:300}},emits:["show","hide"],setup(e,{slots:t,emit:n}){let o=!1,a,i,l=null,s=null,d,m;function v(){a?.(),a=null,o=!1,l!==null&&(clearTimeout(l),l=null),s!==null&&(clearTimeout(s),s=null),i?.removeEventListener("transitionend",d),d=null}function b(E,C,w){C!==void 0&&(E.style.height=`${C}px`),E.style.transition=`height ${e.duration}ms cubic-bezier(.25, .8, .50, 1)`,o=!0,a=w}function p(E,C){E.style.overflowY=null,E.style.height=null,E.style.transition=null,v(),C!==m&&n(C)}function _(E,C){let w=0;i=E,o===!0?(v(),w=E.offsetHeight===E.scrollHeight?0:void 0):(m="hide",E.style.overflowY="hidden"),b(E,w,C),l=setTimeout(()=>{l=null,E.style.height=`${E.scrollHeight}px`,d=T=>{s=null,(Object(T)!==T||T.target===E)&&p(E,"show")},E.addEventListener("transitionend",d),s=setTimeout(d,e.duration*1.1)},100)}function g(E,C){let w;i=E,o===!0?v():(m="show",E.style.overflowY="hidden",w=E.scrollHeight),b(E,w,C),l=setTimeout(()=>{l=null,E.style.height=0,d=T=>{s=null,(Object(T)!==T||T.target===E)&&p(E,"hide")},E.addEventListener("transitionend",d),s=setTimeout(d,e.duration*1.1)},100)}return r.onBeforeUnmount(()=>{o===!0&&v()}),()=>r.h(r.Transition,{css:!1,appear:e.appear,onEnter:_,onLeave:g},t.default)}}),QS={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},_u={xs:2,sm:4,md:8,lg:16,xl:24},Kr=_e({name:"QSeparator",props:{...bt,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(e){const t=r.getCurrentInstance(),n=yt(e,t.proxy.$q),o=r.computed(()=>e.vertical===!0?"vertical":"horizontal"),a=r.computed(()=>` q-separator--${o.value}`),i=r.computed(()=>e.inset!==!1?`${a.value}-${QS[e.inset]}`:""),l=r.computed(()=>`q-separator${a.value}${i.value}`+(e.color!==void 0?` bg-${e.color}`:"")+(n.value===!0?" q-separator--dark":"")),s=r.computed(()=>{const d={};if(e.size!==void 0&&(d[e.vertical===!0?"width":"height"]=e.size),e.spaced!==!1){const m=e.spaced===!0?`${_u.md}px`:e.spaced in _u?`${_u[e.spaced]}px`:e.spaced,v=e.vertical===!0?["Left","Right"]:["Top","Bottom"];d[`margin${v[0]}`]=d[`margin${v[1]}`]=m}return d});return()=>r.h("hr",{class:l.value,style:s.value,"aria-orientation":o.value})}}),Gr=r.shallowReactive({}),WS=Object.keys(ra);_e({name:"QExpansionItem",props:{...ra,...po,...bt,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,toggleAriaLabel:String,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:{},headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,hideExpandIcon:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},emits:[...bo,"click","afterShow","afterHide"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),a=yt(e,o),i=r.ref(e.modelValue!==null?e.modelValue:e.defaultOpened),l=r.ref(null),s=Ei(),{show:d,hide:m,toggle:v}=yo({showing:i});let b,p;const _=r.computed(()=>`q-expansion-item q-item-type q-expansion-item--${i.value===!0?"expanded":"collapsed"} q-expansion-item--${e.popup===!0?"popup":"standard"}`),g=r.computed(()=>e.contentInsetLevel===void 0?null:{["padding"+(o.lang.rtl===!0?"Right":"Left")]:e.contentInsetLevel*56+"px"}),E=r.computed(()=>e.disable!==!0&&(e.href!==void 0||e.to!==void 0&&e.to!==null&&e.to!=="")),C=r.computed(()=>{const X={};return WS.forEach(Z=>{X[Z]=e[Z]}),X}),w=r.computed(()=>E.value===!0||e.expandIconToggle!==!0),T=r.computed(()=>e.expandedIcon!==void 0&&i.value===!0?e.expandedIcon:e.expandIcon||o.iconSet.expansionItem[e.denseToggle===!0?"denseIcon":"icon"]),x=r.computed(()=>e.disable!==!0&&(E.value===!0||e.expandIconToggle===!0)),y=r.computed(()=>({expanded:i.value===!0,detailsId:s.value,toggle:v,show:d,hide:m})),q=r.computed(()=>{const X=e.toggleAriaLabel!==void 0?e.toggleAriaLabel:o.lang.label[i.value===!0?"collapse":"expand"](e.label);return{role:"button","aria-expanded":i.value===!0?"true":"false","aria-controls":s.value,"aria-label":X}});r.watch(()=>e.group,X=>{p?.(),X!==void 0&&I()});function L(X){E.value!==!0&&v(X),n("click",X)}function k(X){X.keyCode===13&&H(X,!0)}function H(X,Z){Z!==!0&&X.qAvoidFocus!==!0&&l.value?.focus(),v(X),ct(X)}function ee(){n("afterShow")}function N(){n("afterHide")}function I(){b===void 0&&(b=ia()),i.value===!0&&(Gr[e.group]=b);const X=r.watch(i,ce=>{ce===!0?Gr[e.group]=b:Gr[e.group]===b&&delete Gr[e.group]}),Z=r.watch(()=>Gr[e.group],(ce,Ee)=>{Ee===b&&ce!==void 0&&ce!==b&&m()});p=()=>{X(),Z(),Gr[e.group]===b&&delete Gr[e.group],p=void 0}}function $(){const X={class:[`q-focusable relative-position cursor-pointer${e.denseToggle===!0&&e.switchToggleSide===!0?" items-end":""}`,e.expandIconClass],side:e.switchToggleSide!==!0,avatar:e.switchToggleSide},Z=[r.h(wt,{class:"q-expansion-item__toggle-icon"+(e.expandedIcon===void 0&&i.value===!0?" q-expansion-item__toggle-icon--rotated":""),name:T.value})];return x.value===!0&&(Object.assign(X,{tabindex:0,...q.value,onClick:H,onKeyup:k}),Z.unshift(r.h("div",{ref:l,class:"q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",tabindex:-1}))),r.h(_r,X,()=>Z)}function D(){let X;return t.header!==void 0?X=[].concat(t.header(y.value)):(X=[r.h(_r,()=>[r.h(bu,{lines:e.labelLines},()=>e.label||""),e.caption?r.h(bu,{lines:e.captionLines,caption:!0},()=>e.caption):null])],e.icon&&X[e.switchToggleSide===!0?"push":"unshift"](r.h(_r,{side:e.switchToggleSide===!0,avatar:e.switchToggleSide!==!0},()=>r.h(wt,{name:e.icon})))),e.disable!==!0&&e.hideExpandIcon!==!0&&X[e.switchToggleSide===!0?"unshift":"push"]($()),X}function P(){const X={ref:"item",style:e.headerStyle,class:e.headerClass,dark:a.value,disable:e.disable,dense:e.dense,insetLevel:e.headerInsetLevel};return w.value===!0&&(X.clickable=!0,X.onClick=L,Object.assign(X,E.value===!0?C.value:q.value)),r.h(Bi,X,D)}function F(){return r.withDirectives(r.h("div",{key:"e-content",class:"q-expansion-item__content relative-position",style:g.value,id:s.value},Ke(t.default)),[[r.vShow,i.value]])}function Y(){const X=[P(),r.h(yu,{duration:e.duration,onShow:ee,onHide:N},F)];return e.expandSeparator===!0&&X.push(r.h(Kr,{class:"q-expansion-item__border q-expansion-item__border--top absolute-top",dark:a.value}),r.h(Kr,{class:"q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",dark:a.value})),X}return e.group!==void 0&&I(),r.onBeforeUnmount(()=>{p?.()}),()=>r.h("div",{class:_.value},[r.h("div",{class:"q-expansion-item__container relative-position"},Y())])}});var YS=["top","right","bottom","left"],Su={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=>YS.includes(e)},externalLabel:Boolean,hideLabel:{type:Boolean},labelClass:[Array,String,Object],labelStyle:[Array,String,Object],disable:Boolean,tabindex:[Number,String]};function pm(e,t){return{formClass:r.computed(()=>`q-fab--form-${e.square===!0?"square":"rounded"}`),stacked:r.computed(()=>e.externalLabel===!1&&["top","bottom"].includes(e.labelPosition)),labelProps:r.computed(()=>{if(e.externalLabel===!0){const n=e.hideLabel===null?t.value===!1:e.hideLabel;return{action:"push",data:{class:[e.labelClass,`q-fab__label q-tooltip--style q-fab__label--external q-fab__label--external-${e.labelPosition}`+(n===!0?" q-fab__label--external-hidden":"")],style:e.labelStyle}}}return{action:["left","top"].includes(e.labelPosition)?"unshift":"push",data:{class:[e.labelClass,`q-fab__label q-fab__label--internal q-fab__label--internal-${e.labelPosition}`+(e.hideLabel===!0?" q-fab__label--internal-hidden":"")],style:e.labelStyle}}})}}var KS=["up","right","down","left"],GS=["left","center","right"];_e({name:"QFab",props:{...Su,...po,icon:String,activeIcon:String,hideIcon:Boolean,hideLabel:{...Su.hideLabel,default:null},direction:{type:String,default:"right",validator:e=>KS.includes(e)},persistent:Boolean,verticalActionsAlign:{type:String,default:"center",validator:e=>GS.includes(e)}},emits:bo,setup(e,{slots:t}){const n=r.ref(null),o=r.ref(e.modelValue===!0),a=Ei(),{proxy:{$q:i}}=r.getCurrentInstance(),{formClass:l,labelProps:s}=pm(e,o),d=r.computed(()=>e.persistent!==!0),{hide:m,toggle:v}=yo({showing:o,hideOnRouteChange:d}),b=r.computed(()=>({opened:o.value})),p=r.computed(()=>`q-fab z-fab row inline justify-center q-fab--align-${e.verticalActionsAlign} ${l.value}`+(o.value===!0?" q-fab--opened":" q-fab--closed")),_=r.computed(()=>`q-fab__actions flex no-wrap inline q-fab__actions--${e.direction} q-fab__actions--${o.value===!0?"opened":"closed"}`),g=r.computed(()=>{const T={id:a.value,role:"menu"};return o.value!==!0&&(T["aria-hidden"]="true"),T}),E=r.computed(()=>`q-fab__icon-holder q-fab__icon-holder--${o.value===!0?"opened":"closed"}`);function C(T,x){const y=t[T],q=`q-fab__${T} absolute-full`;return y===void 0?r.h(wt,{class:q,name:e[x]||i.iconSet.fab[x]}):r.h("div",{class:q},y(b.value))}function w(){const T=[];return e.hideIcon!==!0&&T.push(r.h("div",{class:E.value},[C("icon","icon"),C("active-icon","activeIcon")])),(e.label!==""||t.label!==void 0)&&T[s.value.action](r.h("div",s.value.data,t.label!==void 0?t.label(b.value):[e.label])),Ht(t.tooltip,T)}return r.provide(bf,{showing:o,onChildClick(T){m(T),T?.qAvoidFocus!==!0&&n.value?.$el.focus()}}),()=>r.h("div",{class:p.value},[r.h(xt,{ref:n,class:l.value,...e,noWrap:!0,stack:e.stacked,align:void 0,icon:void 0,label:void 0,noCaps:!0,fab:!0,"aria-expanded":o.value===!0?"true":"false","aria-haspopup":"true","aria-controls":a.value,onClick:v},w),r.h("div",{class:_.value,...g.value},Ke(t.default))])}});var bm={start:"self-end",center:"self-center",end:"self-start"},XS=Object.keys(bm);_e({name:"QFabAction",props:{...Su,icon:{type:String,default:""},anchor:{type:String,validator:e=>XS.includes(e)},to:[String,Object],replace:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const o=r.inject(bf,()=>({showing:{value:!0},onChildClick:Kt})),{formClass:a,labelProps:i}=pm(e,o.showing),l=r.computed(()=>{const b=bm[e.anchor];return a.value+(b!==void 0?` ${b}`:"")}),s=r.computed(()=>e.disable===!0||o.showing.value!==!0);function d(b){o.onChildClick(b),n("click",b)}function m(){const b=[];return t.icon!==void 0?b.push(t.icon()):e.icon!==""&&b.push(r.h(wt,{name:e.icon})),(e.label!==""||t.label!==void 0)&&b[i.value.action](r.h("div",i.value.data,t.label!==void 0?t.label():[e.label])),Ht(t.default,b)}const v=r.getCurrentInstance();return Object.assign(v.proxy,{click:d}),()=>r.h(xt,{class:l.value,...e,noWrap:!0,stack:e.stacked,icon:void 0,label:void 0,noCaps:!0,fabMini:!0,disable:s.value,onClick:d},m)}});function JS({validate:e,resetValidation:t,requiresQForm:n}){const o=r.inject(yf,!1);if(o!==!1){const{props:a,proxy:i}=r.getCurrentInstance();Object.assign(i,{validate:e,resetValidation:t}),r.watch(()=>a.disable,l=>{l===!0?(typeof t=="function"&&t(),o.unbindComponent(i)):o.bindComponent(i)}),r.onMounted(()=>{a.disable!==!0&&o.bindComponent(i)}),r.onBeforeUnmount(()=>{a.disable!==!0&&o.unbindComponent(i)})}else n===!0&&console.error("Parent QForm not found on useFormChild()!")}var ZS=[!0,!1,"ondemand"],VS={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:e=>ZS.includes(e)}};function ew(e,t){const{props:n,proxy:o}=r.getCurrentInstance(),a=r.ref(!1),i=r.ref(null),l=r.ref(!1);JS({validate:E,resetValidation:g});let s=0,d;const m=r.computed(()=>n.rules!==void 0&&n.rules!==null&&n.rules.length!==0),v=r.computed(()=>n.disable!==!0&&m.value===!0&&t.value===!1),b=r.computed(()=>n.error===!0||a.value===!0),p=r.computed(()=>typeof n.errorMessage=="string"&&n.errorMessage.length!==0?n.errorMessage:i.value);r.watch(()=>n.modelValue,()=>{l.value=!0,v.value===!0&&n.lazyRules===!1&&C()});function _(){n.lazyRules!=="ondemand"&&v.value===!0&&l.value===!0&&C()}r.watch(()=>n.reactiveRules,w=>{w===!0?d===void 0&&(d=r.watch(()=>n.rules,_,{immediate:!0,deep:!0})):d!==void 0&&(d(),d=void 0)},{immediate:!0}),r.watch(()=>n.lazyRules,_),r.watch(e,w=>{w===!0?l.value=!0:v.value===!0&&n.lazyRules!=="ondemand"&&C()});function g(){s++,t.value=!1,l.value=!1,a.value=!1,i.value=null,C.cancel()}function E(w=n.modelValue){if(n.disable===!0||m.value===!1)return!0;const T=++s,x=t.value!==!0?()=>{l.value=!0}:()=>{},y=(L,k)=>{L===!0&&x(),a.value=L,i.value=k||null,t.value=!1},q=[];for(let L=0;L<n.rules.length;L++){const k=n.rules[L];let H;if(typeof k=="function"?H=k(w,Pi):typeof k=="string"&&Pi[k]!==void 0&&(H=Pi[k](w)),H===!1||typeof H=="string")return y(!0,H),!1;H!==!0&&H!==void 0&&q.push(H)}return q.length===0?(y(!1),!0):(t.value=!0,Promise.all(q).then(L=>{if(L===void 0||Array.isArray(L)===!1||L.length===0)return T===s&&y(!1),!0;const k=L.find(H=>H===!1||typeof H=="string");return T===s&&y(k!==void 0,k),k===void 0},L=>(T===s&&(console.error(L),y(!0)),!1)))}const C=fo(E,0);return r.onBeforeUnmount(()=>{d?.(),C.cancel()}),Object.assign(o,{resetValidation:g,validate:E}),Jt(o,"hasError",()=>b.value),{isDirtyModel:l,hasRules:m,hasError:b,errorMessage:p,validate:E,resetValidation:g}}function Xr(e){return e!=null&&(""+e).length!==0}var ym={...bt,...VS,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},zi={...ym,maxlength:[Number,String]},Hi=["update:modelValue","clear","focus","blur"];function ji({requiredForAttr:e=!0,tagProp:t,changeEvent:n=!1}={}){const{props:o,proxy:a}=r.getCurrentInstance(),i=yt(o,a.$q),l=Ei({required:e,getValue:()=>o.for});return{requiredForAttr:e,changeEvent:n,tag:t===!0?r.computed(()=>o.tag):{value:"label"},isDark:i,editable:r.computed(()=>o.disable!==!0&&o.readonly!==!0),innerLoading:r.ref(!1),focused:r.ref(!1),hasPopupOpen:!1,splitAttrs:mm(),targetUid:l,rootRef:r.ref(null),targetRef:r.ref(null),controlRef:r.ref(null)}}function Ui(e){const{props:t,emit:n,slots:o,attrs:a,proxy:i}=r.getCurrentInstance(),{$q:l}=i;let s=null;e.hasValue===void 0&&(e.hasValue=r.computed(()=>Xr(t.modelValue))),e.emitValue===void 0&&(e.emitValue=Z=>{n("update:modelValue",Z)}),e.controlEvents===void 0&&(e.controlEvents={onFocusin:ee,onFocusout:N}),Object.assign(e,{clearValue:I,onControlFocusin:ee,onControlFocusout:N,focus:k}),e.computedCounter===void 0&&(e.computedCounter=r.computed(()=>{if(t.counter!==!1){const Z=typeof t.modelValue=="string"||typeof t.modelValue=="number"?(""+t.modelValue).length:Array.isArray(t.modelValue)===!0?t.modelValue.length:0,ce=t.maxlength!==void 0?t.maxlength:t.maxValues;return Z+(ce!==void 0?" / "+ce:"")}}));const{isDirtyModel:d,hasRules:m,hasError:v,errorMessage:b,resetValidation:p}=ew(e.focused,e.innerLoading),_=e.floatingLabel!==void 0?r.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.floatingLabel.value===!0):r.computed(()=>t.stackLabel===!0||e.focused.value===!0||e.hasValue.value===!0),g=r.computed(()=>t.bottomSlots===!0||t.hint!==void 0||m.value===!0||t.counter===!0||t.error!==null),E=r.computed(()=>t.filled===!0?"filled":t.outlined===!0?"outlined":t.borderless===!0?"borderless":t.standout?"standout":"standard"),C=r.computed(()=>`q-field row no-wrap items-start q-field--${E.value}`+(e.fieldClass!==void 0?` ${e.fieldClass.value}`:"")+(t.rounded===!0?" q-field--rounded":"")+(t.square===!0?" q-field--square":"")+(_.value===!0?" q-field--float":"")+(T.value===!0?" q-field--labeled":"")+(t.dense===!0?" q-field--dense":"")+(t.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(e.isDark.value===!0?" q-field--dark":"")+(e.getControl===void 0?" q-field--auto-height":"")+(e.focused.value===!0?" q-field--focused":"")+(v.value===!0?" q-field--error":"")+(v.value===!0||e.focused.value===!0?" q-field--highlighted":"")+(t.hideBottomSpace!==!0&&g.value===!0?" q-field--with-bottom":"")+(t.disable===!0?" q-field--disabled":t.readonly===!0?" q-field--readonly":"")),w=r.computed(()=>"q-field__control relative-position row no-wrap"+(t.bgColor!==void 0?` bg-${t.bgColor}`:"")+(v.value===!0?" text-negative":typeof t.standout=="string"&&t.standout.length!==0&&e.focused.value===!0?` ${t.standout}`:t.color!==void 0?` text-${t.color}`:"")),T=r.computed(()=>t.labelSlot===!0||t.label!==void 0),x=r.computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(t.labelColor!==void 0&&v.value!==!0?` text-${t.labelColor}`:"")),y=r.computed(()=>({id:e.targetUid.value,editable:e.editable.value,focused:e.focused.value,floatingLabel:_.value,modelValue:t.modelValue,emitValue:e.emitValue})),q=r.computed(()=>{const Z={};return e.targetUid.value&&(Z.for=e.targetUid.value),t.disable===!0&&(Z["aria-disabled"]="true"),Z});function L(){const Z=document.activeElement;let ce=e.targetRef?.value;ce&&(Z===null||Z.id!==e.targetUid.value)&&(ce.hasAttribute("tabindex")===!0||(ce=ce.querySelector("[tabindex]")),ce!==Z&&ce?.focus({preventScroll:!0}))}function k(){_o(L)}function H(){p_(L);const Z=document.activeElement;Z!==null&&e.rootRef.value.contains(Z)&&Z.blur()}function ee(Z){s!==null&&(clearTimeout(s),s=null),e.editable.value===!0&&e.focused.value===!1&&(e.focused.value=!0,n("focus",Z))}function N(Z,ce){s!==null&&clearTimeout(s),s=setTimeout(()=>{s=null,!(document.hasFocus()===!0&&(e.hasPopupOpen===!0||e.controlRef===void 0||e.controlRef.value===null||e.controlRef.value.contains(document.activeElement)!==!1))&&(e.focused.value===!0&&(e.focused.value=!1,n("blur",Z)),ce?.())})}function I(Z){ct(Z),l.platform.is.mobile!==!0?(e.targetRef?.value||e.rootRef.value).focus():e.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),t.type==="file"&&(e.inputRef.value.value=null),n("update:modelValue",null),e.changeEvent===!0&&n("change",null),n("clear",t.modelValue),r.nextTick(()=>{const ce=d.value;p(),d.value=ce})}function $(Z){[13,32].includes(Z.keyCode)&&I(Z)}function D(){const Z=[];return o.prepend!==void 0&&Z.push(r.h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:Zt},o.prepend())),Z.push(r.h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},P())),v.value===!0&&t.noErrorIcon===!1&&Z.push(Y("error",[r.h(wt,{name:l.iconSet.field.error,color:"negative"})])),t.loading===!0||e.innerLoading.value===!0?Z.push(Y("inner-loading-append",o.loading!==void 0?o.loading():[r.h(Fn,{color:t.color})])):t.clearable===!0&&e.hasValue.value===!0&&e.editable.value===!0&&Z.push(Y("inner-clearable-append",[r.h(wt,{class:"q-field__focusable-action",name:t.clearIcon||l.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":l.lang.label.clear,onKeyup:$,onClick:I})])),o.append!==void 0&&Z.push(r.h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:Zt},o.append())),e.getInnerAppend!==void 0&&Z.push(Y("inner-append",e.getInnerAppend())),e.getControlChild!==void 0&&Z.push(e.getControlChild()),Z}function P(){const Z=[];return t.prefix!==void 0&&t.prefix!==null&&Z.push(r.h("div",{class:"q-field__prefix no-pointer-events row items-center"},t.prefix)),e.getShadowControl!==void 0&&e.hasShadow.value===!0&&Z.push(e.getShadowControl()),T.value===!0&&Z.push(r.h("div",{class:x.value},Ke(o.label,t.label))),e.getControl!==void 0?Z.push(e.getControl()):o.rawControl!==void 0?Z.push(o.rawControl()):o.control!==void 0&&Z.push(r.h("div",{ref:e.targetRef,class:"q-field__native row",tabindex:-1,...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0},o.control(y.value))),t.suffix!==void 0&&t.suffix!==null&&Z.push(r.h("div",{class:"q-field__suffix no-pointer-events row items-center"},t.suffix)),Z.concat(Ke(o.default))}function F(){let Z,ce;v.value===!0?b.value!==null?(Z=[r.h("div",{role:"alert"},b.value)],ce=`q--slot-error-${b.value}`):(Z=Ke(o.error),ce="q--slot-error"):(t.hideHint!==!0||e.focused.value===!0)&&(t.hint!==void 0?(Z=[r.h("div",t.hint)],ce=`q--slot-hint-${t.hint}`):(Z=Ke(o.hint),ce="q--slot-hint"));const Ee=t.counter===!0||o.counter!==void 0;if(t.hideBottomSpace===!0&&Ee===!1&&Z===void 0)return;const G=r.h("div",{key:ce,class:"q-field__messages col"},Z);return r.h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(t.hideBottomSpace!==!0?"animated":"stale"),onClick:Zt},[t.hideBottomSpace===!0?G:r.h(r.Transition,{name:"q-transition--field-message"},()=>G),Ee===!0?r.h("div",{class:"q-field__counter"},o.counter!==void 0?o.counter():e.computedCounter.value):null])}function Y(Z,ce){return ce===null?null:r.h("div",{key:Z,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},ce)}let X=!1;return r.onDeactivated(()=>{X=!0}),r.onActivated(()=>{X===!0&&t.autofocus===!0&&i.focus()}),t.autofocus===!0&&r.onMounted(()=>{i.focus()}),r.onBeforeUnmount(()=>{s!==null&&clearTimeout(s)}),Object.assign(i,{focus:k,blur:H}),function(){const ce=e.getControl===void 0&&o.control===void 0?{...e.splitAttrs.attributes.value,"data-autofocus":t.autofocus===!0||void 0,...q.value}:q.value;return r.h(e.tag.value,{ref:e.rootRef,class:[C.value,a.class],style:a.style,...ce},[o.before!==void 0?r.h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:Zt},o.before()):null,r.h("div",{class:"q-field__inner relative-position col self-stretch"},[r.h("div",{ref:e.controlRef,class:w.value,tabindex:-1,...e.controlEvents},D()),g.value===!0?F():null]),o.after!==void 0?r.h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:Zt},o.after()):null])}}var tw=_e({name:"QField",inheritAttrs:!1,props:{...zi,tag:{type:String,default:"label"}},emits:Hi,setup(){return Ui(ji({tagProp:!0}))}});function Mo(e,t,n,o){const a=[];return e.forEach(i=>{o(i)===!0?a.push(i):t.push({failedPropValidation:n,file:i})}),a}function Qi(e){e?.dataTransfer&&(e.dataTransfer.dropEffect="copy"),ct(e)}var _m={multiple:Boolean,accept:String,capture:String,maxFileSize:[Number,String],maxTotalSize:[Number,String],maxFiles:[Number,String],filter:Function},Sm=["rejected"];function wm({editable:e,dnd:t,getFileInput:n,addFilesToQueue:o}){const{props:a,emit:i,proxy:l}=r.getCurrentInstance(),s=r.ref(null),d=r.computed(()=>a.accept!==void 0?a.accept.split(",").map(T=>(T=T.trim(),T==="*"?"*/":(T.endsWith("/*")&&(T=T.slice(0,T.length-1)),T.toUpperCase()))):null),m=r.computed(()=>parseInt(a.maxFiles,10)),v=r.computed(()=>parseInt(a.maxTotalSize,10));function b(T){if(e.value)if(T!==Object(T)&&(T={target:null}),T.target?.matches('input[type="file"]')===!0)T.clientX===0&&T.clientY===0&&$t(T);else{const x=n();x!==T.target&&x?.click(T)}}function p(T){e.value&&T&&o(null,T)}function _(T,x,y,q){let L=Array.from(x||T.target.files);const k=[],H=()=>{k.length!==0&&i("rejected",k)};if(a.accept!==void 0&&d.value.indexOf("*/")===-1&&(L=Mo(L,k,"accept",ee=>d.value.some(N=>ee.type.toUpperCase().startsWith(N)||ee.name.toUpperCase().endsWith(N))),L.length===0))return H();if(a.maxFileSize!==void 0){const ee=parseInt(a.maxFileSize,10);if(L=Mo(L,k,"max-file-size",N=>N.size<=ee),L.length===0)return H()}if(a.multiple!==!0&&L.length!==0&&(L=[L[0]]),L.forEach(ee=>{ee.__key=ee.webkitRelativePath+ee.lastModified+ee.name+ee.size}),q===!0){const ee=y.map(N=>N.__key);L=Mo(L,k,"duplicate",N=>ee.includes(N.__key)===!1)}if(L.length===0)return H();if(a.maxTotalSize!==void 0){let ee=q===!0?y.reduce((N,I)=>N+I.size,0):0;if(L=Mo(L,k,"max-total-size",N=>(ee+=N.size,ee<=v.value)),L.length===0)return H()}if(typeof a.filter=="function"){const ee=a.filter(L);L=Mo(L,k,"filter",N=>ee.includes(N))}if(a.maxFiles!==void 0){let ee=q===!0?y.length:0;if(L=Mo(L,k,"max-files",()=>(ee++,ee<=m.value)),L.length===0)return H()}if(H(),L.length!==0)return L}function g(T){Qi(T),t.value!==!0&&(t.value=!0)}function E(T){ct(T),(T.relatedTarget!==null||ft.is.safari!==!0?T.relatedTarget!==s.value:document.elementsFromPoint(T.clientX,T.clientY).includes(s.value)===!1)===!0&&(t.value=!1)}function C(T){Qi(T);const x=T.dataTransfer.files;x.length!==0&&o(null,x),t.value=!1}function w(T){if(t.value===!0)return r.h("div",{ref:s,class:`q-${T}__dnd absolute-full`,onDragenter:Qi,onDragover:Qi,onDragleave:E,onDrop:C})}return Object.assign(l,{pickFiles:b,addFiles:p}),{pickFiles:b,addFiles:p,onDragover:g,onDragleave:E,processFiles:_,getDndNode:w,maxFilesNumber:m,maxTotalSizeNumber:v}}function Cm(e,t){function n(){const o=e.modelValue;try{const a="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(o)===o&&("length"in o?Array.from(o):[o]).forEach(i=>{a.items.add(i)}),{files:a.files}}catch{return{files:void 0}}}return t===!0?r.computed(()=>{if(e.type==="file")return n()}):r.computed(n)}_e({name:"QFile",inheritAttrs:!1,props:{...ym,...An,..._m,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:[...Hi,...Sm],setup(e,{slots:t,emit:n,attrs:o}){const{proxy:a}=r.getCurrentInstance(),i=ji(),l=r.ref(null),s=r.ref(!1),d=Bs(e),{pickFiles:m,onDragover:v,onDragleave:b,processFiles:p,getDndNode:_}=wm({editable:i.editable,dnd:s,getFileInput:$,addFilesToQueue:D}),g=Cm(e),E=r.computed(()=>Object(e.modelValue)===e.modelValue?"length"in e.modelValue?Array.from(e.modelValue):[e.modelValue]:[]),C=r.computed(()=>Xr(E.value)),w=r.computed(()=>E.value.map(X=>X.name).join(", ")),T=r.computed(()=>gs(E.value.reduce((X,Z)=>X+Z.size,0))),x=r.computed(()=>({totalSize:T.value,filesNumber:E.value.length,maxFiles:e.maxFiles})),y=r.computed(()=>({tabindex:-1,type:"file",title:"",accept:e.accept,capture:e.capture,name:d.value,...o,id:i.targetUid.value,disabled:i.editable.value!==!0})),q=r.computed(()=>"q-file q-field--auto-height"+(s.value===!0?" q-file--dnd":"")),L=r.computed(()=>e.multiple===!0&&e.append===!0);function k(X){const Z=E.value.slice();Z.splice(X,1),ee(Z)}function H(X){const Z=E.value.indexOf(X);Z!==-1&&k(Z)}function ee(X){n("update:modelValue",e.multiple===!0?X:X[0])}function N(X){X.keyCode===13&&Zt(X)}function I(X){(X.keyCode===13||X.keyCode===32)&&m(X)}function $(){return l.value}function D(X,Z){const ce=p(X,Z,E.value,L.value),Ee=$();Ee!=null&&(Ee.value=""),ce!==void 0&&((e.multiple===!0?e.modelValue&&ce.every(G=>E.value.includes(G)):e.modelValue===ce[0])||ee(L.value===!0?E.value.concat(ce):ce))}function P(){return[r.h("input",{class:[e.inputClass,"q-file__filler"],style:e.inputStyle})]}function F(){if(t.file!==void 0)return E.value.length===0?P():E.value.map((Z,ce)=>t.file({index:ce,file:Z,ref:this}));if(t.selected!==void 0)return E.value.length===0?P():t.selected({files:E.value,ref:this});if(e.useChips===!0)return E.value.length===0?P():E.value.map((Z,ce)=>r.h(pv,{key:"file-"+ce,removable:i.editable.value,dense:!0,textColor:e.color,tabindex:e.tabindex,onRemove:()=>{k(ce)}},()=>r.h("span",{class:"ellipsis",textContent:Z.name})));const X=e.displayValue!==void 0?e.displayValue:w.value;return X.length!==0?[r.h("div",{class:e.inputClass,style:e.inputStyle,textContent:X})]:P()}function Y(){const X={ref:l,...y.value,...g.value,class:"q-field__input fit absolute-full cursor-pointer",onChange:D};return e.multiple===!0&&(X.multiple=!0),r.h("input",X)}return Object.assign(i,{fieldClass:q,emitValue:ee,hasValue:C,inputRef:l,innerValue:E,floatingLabel:r.computed(()=>C.value===!0||Xr(e.displayValue)),computedCounter:r.computed(()=>{if(e.counterLabel!==void 0)return e.counterLabel(x.value);const X=e.maxFiles;return`${E.value.length}${X!==void 0?" / "+X:""} (${T.value})`}),getControlChild:()=>_("file"),getControl:()=>{const X={ref:i.targetRef,class:"q-field__native row items-center cursor-pointer",tabindex:e.tabindex};return i.editable.value===!0&&Object.assign(X,{onDragover:v,onDragleave:b,onKeydown:N,onKeyup:I}),r.h("div",X,[Y()].concat(F()))}}),Object.assign(a,{removeAtIndex:k,removeFile:H,getNativeElement:()=>l.value}),Jt(a,"nativeEl",()=>l.value),Ui(i)}}),_e({name:"QFooter",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),a=r.inject($r,kt);if(a===kt)return console.error("QFooter needs to be child of QLayout"),kt;const i=r.ref(parseInt(e.heightHint,10)),l=r.ref(!0),s=r.ref(On.value===!0||a.isContainer.value===!0?0:window.innerHeight),d=r.computed(()=>e.reveal===!0||a.view.value.indexOf("F")!==-1||o.platform.is.ios&&a.isContainer.value===!0),m=r.computed(()=>a.isContainer.value===!0?a.containerHeight.value:s.value),v=r.computed(()=>{if(e.modelValue!==!0)return 0;if(d.value===!0)return l.value===!0?i.value:0;const q=a.scroll.value.position+m.value+i.value-a.height.value;return q>0?q:0}),b=r.computed(()=>e.modelValue!==!0||d.value===!0&&l.value!==!0),p=r.computed(()=>e.modelValue===!0&&b.value===!0&&e.reveal===!0),_=r.computed(()=>"q-footer q-layout__section--marginal "+(d.value===!0?"fixed":"absolute")+"-bottom"+(e.bordered===!0?" q-footer--bordered":"")+(b.value===!0?" q-footer--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus"+(d.value!==!0?" hidden":""):"")),g=r.computed(()=>{const q=a.rows.value.bottom,L={};return q[0]==="l"&&a.left.space===!0&&(L[o.lang.rtl===!0?"right":"left"]=`${a.left.size}px`),q[2]==="r"&&a.right.space===!0&&(L[o.lang.rtl===!0?"left":"right"]=`${a.right.size}px`),L});function E(q,L){a.update("footer",q,L)}function C(q,L){q.value!==L&&(q.value=L)}function w({height:q}){C(i,q),E("size",q)}function T(){if(e.reveal!==!0)return;const{direction:q,position:L,inflectionPoint:k}=a.scroll.value;C(l,q==="up"||L-k<100||a.height.value-m.value-L-i.value<300)}function x(q){p.value===!0&&C(l,!0),n("focusin",q)}r.watch(()=>e.modelValue,q=>{E("space",q),C(l,!0),a.animate()}),r.watch(v,q=>{E("offset",q)}),r.watch(()=>e.reveal,q=>{q===!1&&C(l,e.modelValue)}),r.watch(l,q=>{a.animate(),n("reveal",q)}),r.watch([i,a.scroll,a.height],T),r.watch(()=>o.screen.height,q=>{a.isContainer.value!==!0&&C(s,q)});const y={};return a.instances.footer=y,e.modelValue===!0&&E("size",i.value),E("space",e.modelValue),E("offset",v.value),r.onBeforeUnmount(()=>{a.instances.footer===y&&(a.instances.footer=void 0,E("size",0),E("offset",0),E("space",!1))}),()=>{const q=Ht(t.default,[r.h(Wr,{debounce:0,onResize:w})]);return e.elevated===!0&&q.push(r.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),r.h("footer",{class:_.value,style:g.value,onFocusin:x},q)}}}),_e({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validationSuccess","validationError"],setup(e,{slots:t,emit:n}){const o=r.getCurrentInstance(),a=r.ref(null);let i=0;const l=[];function s(_){const g=typeof _=="boolean"?_:e.noErrorFocus!==!0,E=++i,C=(x,y)=>{n(`validation${x===!0?"Success":"Error"}`,y)},w=x=>{const y=x.validate();return typeof y.then=="function"?y.then(q=>({valid:q,comp:x}),q=>({valid:!1,comp:x,err:q})):Promise.resolve({valid:y,comp:x})};return(e.greedy===!0?Promise.all(l.map(w)).then(x=>x.filter(y=>y.valid!==!0)):l.reduce((x,y)=>x.then(()=>w(y).then(q=>{if(q.valid===!1)return Promise.reject(q)})),Promise.resolve()).catch(x=>[x])).then(x=>{if(x===void 0||x.length===0)return E===i&&C(!0),!0;if(E===i){const{comp:y,err:q}=x[0];if(q!==void 0&&console.error(q),C(!1,y),g===!0){const L=x.find(({comp:k})=>typeof k.focus=="function"&&mr(k.$)===!1);L!==void 0&&L.comp.focus()}}return!1})}function d(){i++,l.forEach(_=>{typeof _.resetValidation=="function"&&_.resetValidation()})}function m(_){_!==void 0&&ct(_);const g=i+1;s().then(E=>{g===i&&E===!0&&(e.onSubmit!==void 0?n("submit",_):_?.target!==void 0&&typeof _.target.submit=="function"&&_.target.submit())})}function v(_){_!==void 0&&ct(_),n("reset"),r.nextTick(()=>{d(),e.autofocus===!0&&e.noResetFocus!==!0&&b()})}function b(){_o(()=>{if(a.value===null)return;(a.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||a.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||a.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(a.value.querySelectorAll("[tabindex]"),g=>g.tabIndex!==-1))?.focus({preventScroll:!0})})}r.provide(yf,{bindComponent(_){l.push(_)},unbindComponent(_){const g=l.indexOf(_);g!==-1&&l.splice(g,1)}});let p=!1;return r.onDeactivated(()=>{p=!0}),r.onActivated(()=>{p===!0&&e.autofocus===!0&&b()}),r.onMounted(()=>{e.autofocus===!0&&b()}),Object.assign(o.proxy,{validate:s,resetValidation:d,submit:m,reset:v,focus:b,getValidationComponents:()=>l}),()=>r.h("form",{class:"q-form",ref:a,onSubmit:m,onReset:v},Ke(t.default))}}),_e({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),a=r.inject($r,kt);if(a===kt)return console.error("QHeader needs to be child of QLayout"),kt;const i=r.ref(parseInt(e.heightHint,10)),l=r.ref(!0),s=r.computed(()=>e.reveal===!0||a.view.value.indexOf("H")!==-1||o.platform.is.ios&&a.isContainer.value===!0),d=r.computed(()=>{if(e.modelValue!==!0)return 0;if(s.value===!0)return l.value===!0?i.value:0;const T=i.value-a.scroll.value.position;return T>0?T:0}),m=r.computed(()=>e.modelValue!==!0||s.value===!0&&l.value!==!0),v=r.computed(()=>e.modelValue===!0&&m.value===!0&&e.reveal===!0),b=r.computed(()=>"q-header q-layout__section--marginal "+(s.value===!0?"fixed":"absolute")+"-top"+(e.bordered===!0?" q-header--bordered":"")+(m.value===!0?" q-header--hidden":"")+(e.modelValue!==!0?" q-layout--prevent-focus":"")),p=r.computed(()=>{const T=a.rows.value.top,x={};return T[0]==="l"&&a.left.space===!0&&(x[o.lang.rtl===!0?"right":"left"]=`${a.left.size}px`),T[2]==="r"&&a.right.space===!0&&(x[o.lang.rtl===!0?"left":"right"]=`${a.right.size}px`),x});function _(T,x){a.update("header",T,x)}function g(T,x){T.value!==x&&(T.value=x)}function E({height:T}){g(i,T),_("size",T)}function C(T){v.value===!0&&g(l,!0),n("focusin",T)}r.watch(()=>e.modelValue,T=>{_("space",T),g(l,!0),a.animate()}),r.watch(d,T=>{_("offset",T)}),r.watch(()=>e.reveal,T=>{T===!1&&g(l,e.modelValue)}),r.watch(l,T=>{a.animate(),n("reveal",T)}),r.watch(a.scroll,T=>{e.reveal===!0&&g(l,T.direction==="up"||T.position<=e.revealOffset||T.position-T.inflectionPoint<100)});const w={};return a.instances.header=w,e.modelValue===!0&&_("size",i.value),_("space",e.modelValue),_("offset",d.value),r.onBeforeUnmount(()=>{a.instances.header===w&&(a.instances.header=void 0,_("size",0),_("offset",0),_("space",!1))}),()=>{const T=na(t.default,[]);return e.elevated===!0&&T.push(r.h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),T.push(r.h(Wr,{debounce:0,onResize:E})),r.h("header",{class:b.value,style:p.value,onFocusin:C},T)}}});var wu={ratio:[String,Number]};function Cu(e,t){return r.computed(()=>{const n=Number(e.ratio||(t!==void 0?t.value:void 0));return isNaN(n)!==!0&&n>0?{paddingBottom:`${100/n}%`}:null})}var nw=1.7778;_e({name:"QImg",props:{...wu,src:String,srcset:String,sizes:String,alt:String,crossorigin:String,decoding:String,referrerpolicy:String,draggable:Boolean,loading:{type:String,default:"lazy"},loadingShowDelay:{type:[Number,String],default:0},fetchpriority:{type:String,default:"auto"},width:String,height:String,initialRatio:{type:[Number,String],default:nw},placeholderSrc:String,errorSrc:String,fit:{type:String,default:"cover"},position:{type:String,default:"50% 50%"},imgClass:String,imgStyle:Object,noSpinner:Boolean,noNativeMenu:Boolean,noTransition:Boolean,spinnerColor:String,spinnerSize:String},emits:["load","error"],setup(e,{slots:t,emit:n}){const o=r.ref(e.initialRatio),a=Cu(e,o),i=r.getCurrentInstance(),{registerTimeout:l,removeTimeout:s}=ar(),{registerTimeout:d,removeTimeout:m}=ar(),v=r.computed(()=>e.placeholderSrc!==void 0?{src:e.placeholderSrc}:null),b=r.computed(()=>e.errorSrc!==void 0?{src:e.errorSrc,__qerror:!0}:null),p=[r.ref(null),r.ref(v.value)],_=r.ref(0),g=r.ref(!1),E=r.ref(!1),C=r.computed(()=>`q-img q-img--${e.noNativeMenu===!0?"no-":""}menu`),w=r.computed(()=>({width:e.width,height:e.height})),T=r.computed(()=>`q-img__image ${e.imgClass!==void 0?e.imgClass+" ":""}q-img__image--with${e.noTransition===!0?"out":""}-transition q-img__image--`),x=r.computed(()=>({...e.imgStyle,objectFit:e.fit,objectPosition:e.position}));function y(){if(m(),e.loadingShowDelay===0){g.value=!0;return}d(()=>{g.value=!0},e.loadingShowDelay)}function q(){m(),g.value=!1}function L({target:$}){mr(i)===!1&&(s(),o.value=$.naturalHeight===0?.5:$.naturalWidth/$.naturalHeight,k($,1))}function k($,D){D===1e3||mr(i)===!0||($.complete===!0?H($):l(()=>{k($,D+1)},50))}function H($){mr(i)!==!0&&(_.value=_.value^1,p[_.value].value=null,q(),$.getAttribute("__qerror")!=="true"&&(E.value=!1),n("load",$.currentSrc||$.src))}function ee($){s(),q(),E.value=!0,p[_.value].value=b.value,p[_.value^1].value=v.value,n("error",$)}function N($){const D=p[$].value,P={key:"img_"+$,class:T.value,style:x.value,alt:e.alt,crossorigin:e.crossorigin,decoding:e.decoding,referrerpolicy:e.referrerpolicy,height:e.height,width:e.width,loading:e.loading,fetchpriority:e.fetchpriority,"aria-hidden":"true",draggable:e.draggable,...D};return _.value===$?Object.assign(P,{class:P.class+"current",onLoad:L,onError:ee}):P.class+="loaded",r.h("div",{class:"q-img__container absolute-full",key:"img"+$},r.h("img",P))}function I(){return g.value===!1?r.h("div",{key:"content",class:"q-img__content absolute-full q-anchor--skip"},Ke(t[E.value===!0?"error":"default"])):r.h("div",{key:"loading",class:"q-img__loading absolute-full flex flex-center"},t.loading!==void 0?t.loading():e.noSpinner===!0?void 0:[r.h(Fn,{color:e.spinnerColor,size:e.spinnerSize})])}{let $=function(){r.watch(()=>e.src||e.srcset||e.sizes?{src:e.src,srcset:e.srcset,sizes:e.sizes}:null,D=>{s(),E.value=!1,D===null?(q(),p[_.value^1].value=v.value):y(),p[_.value].value=D},{immediate:!0})};On.value===!0?r.onMounted($):$()}return()=>{const $=[];return a.value!==null&&$.push(r.h("div",{key:"filler",style:a.value})),p[0].value!==null&&$.push(N(0)),p[1].value!==null&&$.push(N(1)),$.push(r.h(r.Transition,{name:"q-transition--fade"},I)),r.h("div",{key:"main",class:C.value,style:w.value,role:"img","aria-label":e.alt},$)}}});var{passive:Jr}=Rt;_e({name:"QInfiniteScroll",props:{offset:{type:Number,default:500},debounce:{type:[String,Number],default:100},scrollTarget:zr,initialIndex:{type:Number,default:0},disable:Boolean,reverse:Boolean},emits:["load"],setup(e,{slots:t,emit:n}){const o=r.ref(!1),a=r.ref(!0),i=r.ref(null),l=r.ref(null);let s=e.initialIndex,d,m;const v=r.computed(()=>"q-infinite-scroll__loading"+(o.value===!0?"":" invisible"));function b(){if(e.disable===!0||o.value===!0||a.value===!1)return;const k=mi(d),H=gr(d),ee=vo(d);e.reverse===!1?Math.round(H+ee+e.offset)>=Math.round(k)&&p():Math.round(H)<=e.offset&&p()}function p(){if(e.disable===!0||o.value===!0||a.value===!1)return;s++,o.value=!0;const k=mi(d);n("load",s,H=>{a.value===!0&&(o.value=!1,r.nextTick(()=>{if(e.reverse===!0){const ee=mi(d),N=gr(d),I=ee-k;xo(d,N+I)}H===!0?E():i.value&&i.value.closest("body")&&m()}))})}function _(){s=0}function g(){a.value===!1&&(a.value=!0,d.addEventListener("scroll",m,Jr)),b()}function E(){a.value===!0&&(a.value=!1,o.value=!1,d.removeEventListener("scroll",m,Jr),m?.cancel?.())}function C(){if(d&&a.value===!0&&d.removeEventListener("scroll",m,Jr),d=Kn(i.value,e.scrollTarget),a.value===!0){if(d.addEventListener("scroll",m,Jr),e.reverse===!0){const k=mi(d),H=vo(d);xo(d,k-H)}b()}}function w(k){s=k}function T(k){k=parseInt(k,10);const H=m;m=k<=0?b:fo(b,isNaN(k)===!0?100:k),d&&a.value===!0&&(H!==void 0&&d.removeEventListener("scroll",H,Jr),d.addEventListener("scroll",m,Jr))}function x(k){if(y.value===!0){if(l.value===null){k!==!0&&r.nextTick(()=>{x(!0)});return}const H=`${o.value===!0?"un":""}pauseAnimations`;Array.from(l.value.getElementsByTagName("svg")).forEach(ee=>{ee[H]()})}}const y=r.computed(()=>e.disable!==!0&&a.value===!0);r.watch([o,y],()=>{x()}),r.watch(()=>e.disable,k=>{k===!0?E():g()}),r.watch(()=>e.reverse,()=>{o.value===!1&&a.value===!0&&b()}),r.watch(()=>e.scrollTarget,C),r.watch(()=>e.debounce,T);let q=!1;r.onActivated(()=>{q!==!1&&d&&xo(d,q)}),r.onDeactivated(()=>{q=d?gr(d):!1}),r.onBeforeUnmount(()=>{a.value===!0&&d.removeEventListener("scroll",m,Jr)}),r.onMounted(()=>{T(e.debounce),C(),o.value===!1&&x()});const L=r.getCurrentInstance();return Object.assign(L.proxy,{poll:()=>{m?.()},trigger:p,stop:E,reset:_,resume:g,setIndex:w,updateScrollTarget:C}),()=>{const k=na(t.default,[]);return y.value===!0&&k[e.reverse===!1?"push":"unshift"](r.h("div",{ref:l,class:v.value},Ke(t.loading))),r.h("div",{class:"q-infinite-scroll",ref:i},k)}}}),_e({name:"QInnerLoading",props:{...bt,...Br,showing:Boolean,color:String,size:{type:[String,Number],default:"42px"},label:String,labelClass:String,labelStyle:[String,Array,Object]},setup(e,{slots:t}){const n=r.getCurrentInstance(),o=yt(e,n.proxy.$q),{transitionProps:a,transitionStyle:i}=vi(e),l=r.computed(()=>"q-inner-loading q--avoid-card-border absolute-full column flex-center"+(o.value===!0?" q-inner-loading--dark":"")),s=r.computed(()=>"q-inner-loading__label"+(e.labelClass!==void 0?` ${e.labelClass}`:""));function d(){const v=[r.h(Fn,{size:e.size,color:e.color})];return e.label!==void 0&&v.push(r.h("div",{class:s.value,style:e.labelStyle},[e.label])),v}function m(){return e.showing===!0?r.h("div",{class:l.value,style:i.value},t.default!==void 0?t.default():d()):null}return()=>r.h(r.Transition,a.value,m)}});var xm={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},{tokenMap:km,tokenKeys:rw}=Em({"#":{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()}});function Em(e){const t=Object.keys(e),n={};return t.forEach(o=>{const a=e[o];n[o]={...a,regex:new RegExp(a.pattern)}}),{tokenMap:n,tokenKeys:t}}function Tm(e){return new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+e.join("")+"])|(.)","g")}var Om=/[.*+?^${}()|[\]\\]/g,ow=Tm(rw),Gt="",aw={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean,maskTokens:Object};function iw(e,t,n,o){let a,i,l,s,d,m;const v=r.computed(()=>{if(e.maskTokens===void 0||e.maskTokens===null)return{tokenMap:km,tokenRegexMask:ow};const{tokenMap:N}=Em(e.maskTokens),I={...km,...N};return{tokenMap:I,tokenRegexMask:Tm(Object.keys(I))}}),b=r.ref(null),p=r.ref(g());function _(){return e.autogrow===!0||["textarea","text","search","url","tel","password"].includes(e.type)}r.watch(()=>e.type+e.autogrow,C),r.watch(()=>e.mask,N=>{if(N!==void 0)w(p.value,!0);else{const I=H(p.value);C(),e.modelValue!==I&&t("update:modelValue",I)}}),r.watch(()=>e.fillMask+e.reverseFillMask,()=>{b.value===!0&&w(p.value,!0)}),r.watch(()=>e.unmaskedValue,()=>{b.value===!0&&w(p.value)});function g(){if(C(),b.value===!0){const N=L(H(e.modelValue));return e.fillMask!==!1?ee(N):N}return e.modelValue}function E(N){if(N<a.length)return a.slice(-N);let I="",$=a;const D=$.indexOf(Gt);if(D!==-1){for(let P=N-$.length;P>0;P--)I+=Gt;$=$.slice(0,D)+I+$.slice(D)}return $}function C(){if(b.value=e.mask!==void 0&&e.mask.length!==0&&_(),b.value===!1){s=void 0,a="",i="";return}const N=xm[e.mask]===void 0?e.mask:xm[e.mask],I=typeof e.fillMask=="string"&&e.fillMask.length!==0?e.fillMask.slice(0,1):"_",$=I.replace(Om,"\\$&"),D=[],P=[],F=[];let Y=e.reverseFillMask===!0,X="",Z="";N.replace(v.value.tokenRegexMask,(R,ae,J,be,W)=>{if(be!==void 0){const ne=v.value.tokenMap[be];F.push(ne),Z=ne.negate,Y===!0&&(P.push("(?:"+Z+"+)?("+ne.pattern+"+)?(?:"+Z+"+)?("+ne.pattern+"+)?"),Y=!1),P.push("(?:"+Z+"+)?("+ne.pattern+")?")}else if(J!==void 0)X="\\"+(J==="\\"?"":J),F.push(J),D.push("([^"+X+"]+)?"+X+"?");else{const ne=ae!==void 0?ae:W;X=ne==="\\"?"\\\\\\\\":ne.replace(Om,"\\\\$&"),F.push(ne),D.push("([^"+X+"]+)?"+X+"?")}});const ce=new RegExp("^"+D.join("")+"("+(X===""?".":"[^"+X+"]")+"+)?"+(X===""?"":"["+X+"]*")+"$"),Ee=P.length-1,G=P.map((R,ae)=>ae===0&&e.reverseFillMask===!0?new RegExp("^"+$+"*"+R):ae===Ee?new RegExp("^"+R+"("+(Z===""?".":Z)+"+)?"+(e.reverseFillMask===!0?"$":$+"*")):new RegExp("^"+R));l=F,s=R=>{const ae=ce.exec(e.reverseFillMask===!0?R:R.slice(0,F.length+1));ae!==null&&(R=ae.slice(1).join(""));const J=[],be=G.length;for(let W=0,ne=R;W<be;W++){const we=G[W].exec(ne);if(we===null)break;ne=ne.slice(we.shift().length),J.push(...we)}return J.length!==0?J.join(""):R},a=F.map(R=>typeof R=="string"?R:Gt).join(""),i=a.split(Gt).join(I)}function w(N,I,$){const D=o.value,P=D.selectionEnd,F=D.value.length-P,Y=H(N);I===!0&&C();const X=L(Y,I),Z=e.fillMask!==!1?ee(X):X,ce=p.value!==Z;D.value!==Z&&(D.value=Z),ce===!0&&(p.value=Z),document.activeElement===D&&r.nextTick(()=>{if(Z===i){const G=e.reverseFillMask===!0?i.length:0;D.setSelectionRange(G,G,"forward");return}if($==="insertFromPaste"&&e.reverseFillMask!==!0){const G=D.selectionEnd;let R=P-1;for(let ae=d;ae<=R&&ae<G;ae++)a[ae]!==Gt&&R++;x.right(D,R);return}if(["deleteContentBackward","deleteContentForward"].indexOf($)!==-1){const G=e.reverseFillMask===!0?P===0?Z.length>X.length?1:0:Math.max(0,Z.length-(Z===i?0:Math.min(X.length,F)+1))+1:P;D.setSelectionRange(G,G,"forward");return}if(e.reverseFillMask===!0)if(ce===!0){const G=Math.max(0,Z.length-(Z===i?0:Math.min(X.length,F+1)));G===1&&P===1?D.setSelectionRange(G,G,"forward"):x.rightReverse(D,G)}else{const G=Z.length-F;D.setSelectionRange(G,G,"backward")}else if(ce===!0){const G=Math.max(0,a.indexOf(Gt),Math.min(X.length,P)-1);x.right(D,G)}else{const G=P-1;x.right(D,G)}});const Ee=e.unmaskedValue===!0?H(Z):Z;String(e.modelValue)!==Ee&&(e.modelValue!==null||Ee!=="")&&n(Ee,!0)}function T(N,I,$){const D=L(H(N.value));I=Math.max(0,a.indexOf(Gt),Math.min(D.length,I)),d=I,N.setSelectionRange(I,$,"forward")}const x={left(N,I){const $=a.slice(I-1).indexOf(Gt)===-1;let D=Math.max(0,I-1);for(;D>=0;D--)if(a[D]===Gt){I=D,$===!0&&I++;break}if(D<0&&a[I]!==void 0&&a[I]!==Gt)return x.right(N,0);I>=0&&N.setSelectionRange(I,I,"backward")},right(N,I){const $=N.value.length;let D=Math.min($,I+1);for(;D<=$;D++)if(a[D]===Gt){I=D;break}else a[D-1]===Gt&&(I=D);if(D>$&&a[I-1]!==void 0&&a[I-1]!==Gt)return x.left(N,$);N.setSelectionRange(I,I,"forward")},leftReverse(N,I){const $=E(N.value.length);let D=Math.max(0,I-1);for(;D>=0;D--)if($[D-1]===Gt){I=D;break}else if($[D]===Gt&&(I=D,D===0))break;if(D<0&&$[I]!==void 0&&$[I]!==Gt)return x.rightReverse(N,0);I>=0&&N.setSelectionRange(I,I,"backward")},rightReverse(N,I){const $=N.value.length,D=E($),P=D.slice(0,I+1).indexOf(Gt)===-1;let F=Math.min($,I+1);for(;F<=$;F++)if(D[F-1]===Gt){I=F,I>0&&P===!0&&I--;break}if(F>$&&D[I-1]!==void 0&&D[I-1]!==Gt)return x.leftReverse(N,$);N.setSelectionRange(I,I,"forward")}};function y(N){t("click",N),m=void 0}function q(N){if(t("keydown",N),Nr(N)===!0||N.altKey===!0)return;const I=o.value,$=I.selectionStart,D=I.selectionEnd;if(N.shiftKey||(m=void 0),N.keyCode===37||N.keyCode===39){N.shiftKey&&m===void 0&&(m=I.selectionDirection==="forward"?$:D);const P=x[(N.keyCode===39?"right":"left")+(e.reverseFillMask===!0?"Reverse":"")];if(N.preventDefault(),P(I,m===$?D:$),N.shiftKey){const F=I.selectionStart;I.setSelectionRange(Math.min(m,F),Math.max(m,F),"forward")}}else N.keyCode===8&&e.reverseFillMask!==!0&&$===D?(x.left(I,$),I.setSelectionRange(I.selectionStart,D,"backward")):N.keyCode===46&&e.reverseFillMask===!0&&$===D&&(x.rightReverse(I,D),I.setSelectionRange($,I.selectionEnd,"forward"))}function L(N,I){if(N==null||N==="")return"";if(e.reverseFillMask===!0)return k(N,I);const $=l;let D=0,P="";for(let F=0;F<$.length;F++){const Y=N[D],X=$[F];if(typeof X=="string")P+=X,I===!0&&Y===X&&D++;else if(Y!==void 0&&X.regex.test(Y))P+=X.transform!==void 0?X.transform(Y):Y,D++;else return P}return P}function k(N,I){const $=l,D=a.indexOf(Gt);let P=N.length-1,F="";for(let Y=$.length-1;Y>=0&&P!==-1;Y--){const X=$[Y];let Z=N[P];if(typeof X=="string")F=X+F,I===!0&&Z===X&&P--;else if(Z!==void 0&&X.regex.test(Z))do F=(X.transform!==void 0?X.transform(Z):Z)+F,P--,Z=N[P];while(D===Y&&Z!==void 0&&X.regex.test(Z));else return F}return F}function H(N){return typeof N!="string"||s===void 0?typeof N=="number"?s(""+N):N:s(N)}function ee(N){return i.length-N.length<=0?N:e.reverseFillMask===!0&&N.length!==0?i.slice(0,-N.length)+N:N+i.slice(N.length)}return{innerValue:p,hasMask:b,moveCursorForPaste:T,updateMaskValue:w,onMaskedKeydown:q,onMaskedClick:y}}var lw=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,sw=/[\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,uw=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,cw=/[a-z0-9_ -]$/i;function qm(e){return function(n){if(n.type==="compositionend"||n.type==="change"){if(n.target.qComposing!==!0)return;n.target.qComposing=!1,e(n)}else n.type==="compositionupdate"&&n.target.qComposing!==!0&&typeof n.data=="string"&&(ft.is.firefox===!0?cw.test(n.data)===!1:lw.test(n.data)===!0||sw.test(n.data)===!0||uw.test(n.data)===!0)===!0&&(n.target.qComposing=!0)}}var Mm=_e({name:"QInput",inheritAttrs:!1,props:{...zi,...aw,...An,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...Hi,"paste","change","keydown","click","animationend"],setup(e,{emit:t,attrs:n}){const{proxy:o}=r.getCurrentInstance(),{$q:a}=o,i={};let l=NaN,s,d,m=null,v;const b=r.ref(null),p=Bs(e),{innerValue:_,hasMask:g,moveCursorForPaste:E,updateMaskValue:C,onMaskedKeydown:w,onMaskedClick:T}=iw(e,t,Y,b),x=Cm(e,!0),y=r.computed(()=>Xr(_.value)),q=qm(P),L=ji({changeEvent:!0}),k=r.computed(()=>e.type==="textarea"||e.autogrow===!0),H=r.computed(()=>k.value===!0||["text","search","url","tel","password"].includes(e.type)),ee=r.computed(()=>{const R={...L.splitAttrs.listeners.value,onInput:P,onPaste:D,onChange:Z,onBlur:ce,onFocus:$t};return R.onCompositionstart=R.onCompositionupdate=R.onCompositionend=q,g.value===!0&&(R.onKeydown=w,R.onClick=T),e.autogrow===!0&&(R.onAnimationend=F),R}),N=r.computed(()=>{const R={tabindex:0,"data-autofocus":e.autofocus===!0||void 0,rows:e.type==="textarea"?6:void 0,"aria-label":e.label,name:p.value,...L.splitAttrs.attributes.value,id:L.targetUid.value,maxlength:e.maxlength,disabled:e.disable===!0,readonly:e.readonly===!0};return k.value===!1&&(R.type=e.type),e.autogrow===!0&&(R.rows=1),R});r.watch(()=>e.type,()=>{b.value&&(b.value.value=e.modelValue)}),r.watch(()=>e.modelValue,R=>{if(g.value===!0){if(d===!0&&(d=!1,String(R)===l))return;C(R)}else _.value!==R&&(_.value=R,e.type==="number"&&i.hasOwnProperty("value")===!0&&(s===!0?s=!1:delete i.value));e.autogrow===!0&&r.nextTick(X)}),r.watch(()=>e.autogrow,R=>{R===!0?r.nextTick(X):b.value!==null&&n.rows>0&&(b.value.style.height="auto")}),r.watch(()=>e.dense,()=>{e.autogrow===!0&&r.nextTick(X)});function I(){_o(()=>{const R=document.activeElement;b.value!==null&&b.value!==R&&(R===null||R.id!==L.targetUid.value)&&b.value.focus({preventScroll:!0})})}function $(){b.value?.select()}function D(R){if(g.value===!0&&e.reverseFillMask!==!0){const ae=R.target;E(ae,ae.selectionStart,ae.selectionEnd)}t("paste",R)}function P(R){if(!R||!R.target)return;if(e.type==="file"){t("update:modelValue",R.target.files);return}const ae=R.target.value;if(R.target.qComposing===!0){i.value=ae;return}if(g.value===!0)C(ae,!1,R.inputType);else if(Y(ae),H.value===!0&&R.target===document.activeElement){const{selectionStart:J,selectionEnd:be}=R.target;J!==void 0&&be!==void 0&&r.nextTick(()=>{R.target===document.activeElement&&ae.indexOf(R.target.value)===0&&R.target.setSelectionRange(J,be)})}e.autogrow===!0&&X()}function F(R){t("animationend",R),X()}function Y(R,ae){v=()=>{m=null,e.type!=="number"&&i.hasOwnProperty("value")===!0&&delete i.value,e.modelValue!==R&&l!==R&&(l=R,ae===!0&&(d=!0),t("update:modelValue",R),r.nextTick(()=>{l===R&&(l=NaN)})),v=void 0},e.type==="number"&&(s=!0,i.value=R),e.debounce!==void 0?(m!==null&&clearTimeout(m),i.value=R,m=setTimeout(v,e.debounce)):v()}function X(){requestAnimationFrame(()=>{const R=b.value;if(R!==null){const ae=R.parentNode.style,{scrollTop:J}=R,{overflowY:be,maxHeight:W}=a.platform.is.firefox===!0?{}:window.getComputedStyle(R),ne=be!==void 0&&be!=="scroll";ne===!0&&(R.style.overflowY="hidden"),ae.marginBottom=R.scrollHeight-1+"px",R.style.height="1px",R.style.height=R.scrollHeight+"px",ne===!0&&(R.style.overflowY=parseInt(W,10)<R.scrollHeight?"auto":"hidden"),ae.marginBottom="",R.scrollTop=J}})}function Z(R){q(R),m!==null&&(clearTimeout(m),m=null),v?.(),t("change",R.target.value)}function ce(R){R!==void 0&&$t(R),m!==null&&(clearTimeout(m),m=null),v?.(),s=!1,d=!1,delete i.value,e.type!=="file"&&setTimeout(()=>{b.value!==null&&(b.value.value=_.value!==void 0?_.value:"")})}function Ee(){return i.hasOwnProperty("value")===!0?i.value:_.value!==void 0?_.value:""}r.onBeforeUnmount(()=>{ce()}),r.onMounted(()=>{e.autogrow===!0&&X()}),Object.assign(L,{innerValue:_,fieldClass:r.computed(()=>`q-${k.value===!0?"textarea":"input"}`+(e.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:r.computed(()=>e.type!=="file"&&typeof e.shadowText=="string"&&e.shadowText.length!==0),inputRef:b,emitValue:Y,hasValue:y,floatingLabel:r.computed(()=>y.value===!0&&(e.type!=="number"||isNaN(_.value)===!1)||Xr(e.displayValue)),getControl:()=>r.h(k.value===!0?"textarea":"input",{ref:b,class:["q-field__native q-placeholder",e.inputClass],style:e.inputStyle,...N.value,...ee.value,...e.type!=="file"?{value:Ee()}:x.value}),getShadowControl:()=>r.h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(k.value===!0?"":" text-no-wrap")},[r.h("span",{class:"invisible"},Ee()),r.h("span",e.shadowText)])});const G=Ui(L);return Object.assign(o,{focus:I,select:$,getNativeElement:()=>b.value}),Jt(o,"nativeEl",()=>b.value),G}}),Pm={threshold:0,root:null,rootMargin:"0px"};function Am(e,t,n){let o,a,i;typeof n=="function"?(o=n,a=Pm,i=t.cfg===void 0):(o=n.handler,a=Object.assign({},Pm,n.cfg),i=t.cfg===void 0||$n(t.cfg,a)===!1),t.handler!==o&&(t.handler=o),i===!0&&(t.cfg=a,t.observer?.unobserve(e),t.observer=new IntersectionObserver(([l])=>{if(typeof t.handler=="function"){if(l.rootBounds===null&&document.body.contains(e)===!0){t.observer.unobserve(e),t.observer.observe(e);return}(t.handler(l,t.observer)===!1||t.once===!0&&l.isIntersecting===!0)&&Rm(e)}},a),t.observer.observe(e))}function Rm(e){const t=e.__qvisible;t!==void 0&&(t.observer?.unobserve(e),delete e.__qvisible)}var dw=Dn({name:"intersection",mounted(e,{modifiers:t,value:n}){const o={once:t.once===!0};Am(e,o,n),e.__qvisible=o},updated(e,t){const n=e.__qvisible;n!==void 0&&Am(e,n,t.value)},beforeUnmount:Rm});_e({name:"QIntersection",props:{tag:{type:String,default:"div"},once:Boolean,transition:String,transitionDuration:{type:[String,Number],default:300},ssrPrerender:Boolean,margin:String,threshold:[Number,Array],root:{default:null},disable:Boolean,onVisibility:Function},setup(e,{slots:t,emit:n}){const o=r.ref(On.value===!0?e.ssrPrerender:!1),a=r.computed(()=>e.root!==void 0||e.margin!==void 0||e.threshold!==void 0?{handler:d,cfg:{root:e.root,rootMargin:e.margin,threshold:e.threshold}}:d),i=r.computed(()=>e.disable!==!0&&(On.value!==!0||e.once!==!0||e.ssrPrerender!==!0)),l=r.computed(()=>[[dw,a.value,void 0,{once:e.once}]]),s=r.computed(()=>`--q-transition-duration: ${e.transitionDuration}ms`);function d(v){o.value!==v.isIntersecting&&(o.value=v.isIntersecting,e.onVisibility!==void 0&&n("visibility",o.value))}function m(){if(o.value===!0)return[r.h("div",{key:"content",style:s.value},Ke(t.default))];if(t.hidden!==void 0)return[r.h("div",{key:"hidden",style:s.value},t.hidden())]}return()=>{const v=e.transition?[r.h(r.Transition,{name:"q-transition--"+e.transition},m)]:m();return Mn(e.tag,{class:"q-intersection"},v,"main",i.value,()=>l.value)}}});var fw=["ul","ol"],vw=_e({name:"QList",props:{...bt,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(e,{slots:t}){const n=r.getCurrentInstance(),o=yt(e,n.proxy.$q),a=r.computed(()=>fw.includes(e.tag)?null:"list"),i=r.computed(()=>"q-list"+(e.bordered===!0?" q-list--bordered":"")+(e.dense===!0?" q-list--dense":"")+(e.separator===!0?" q-list--separator":"")+(o.value===!0?" q-list--dark":"")+(e.padding===!0?" q-list--padding":""));return()=>r.h(e.tag,{class:i.value,role:a.value},Ke(t.default))}}),Lm=[34,37,40,33,39,38],mw=Object.keys(Gs);_e({name:"QKnob",props:{...An,...Gs,modelValue:{type:Number,required:!0},innerMin:Number,innerMax:Number,step:{type:Number,default:1,validator:e=>e>=0},tabindex:{type:[Number,String],default:0},disable:Boolean,readonly:Boolean},emits:["update:modelValue","change","dragValue"],setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),{$q:a}=o,i=r.ref(e.modelValue),l=r.ref(!1),s=r.computed(()=>isNaN(e.innerMin)===!0||e.innerMin<e.min?e.min:e.innerMin),d=r.computed(()=>isNaN(e.innerMax)===!0||e.innerMax>e.max?e.max:e.innerMax);let m;function v(){i.value=e.modelValue===null?s.value:Mt(e.modelValue,s.value,d.value),I(!0)}r.watch(()=>`${e.modelValue}|${s.value}|${d.value}`,v),v();const b=r.computed(()=>e.disable===!1&&e.readonly===!1),p=r.computed(()=>"q-knob non-selectable"+(b.value===!0?" q-knob--editable":e.disable===!0?" disabled":"")),_=r.computed(()=>(String(e.step).trim().split(".")[1]||"").length),g=r.computed(()=>e.step===0?1:e.step),E=r.computed(()=>e.instantFeedback===!0||l.value===!0),C=a.platform.is.mobile===!0?r.computed(()=>b.value===!0?{onClick:k}:{}):r.computed(()=>b.value===!0?{onMousedown:L,onClick:k,onKeydown:H,onKeyup:N}:{}),w=r.computed(()=>b.value===!0?{tabindex:e.tabindex}:{[`aria-${e.disable===!0?"disabled":"readonly"}`]:"true"}),T=r.computed(()=>{const P={};return mw.forEach(F=>{P[F]=e[F]}),P});function x(P){P.isFinal?(ee(P.evt,!0),l.value=!1):(P.isFirst&&(q(),l.value=!0),ee(P.evt))}const y=r.computed(()=>[[Rn,x,void 0,{prevent:!0,stop:!0,mouse:!0}]]);function q(){const{top:P,left:F,width:Y,height:X}=o.$el.getBoundingClientRect();m={top:P+X/2,left:F+Y/2}}function L(P){q(),ee(P)}function k(P){q(),ee(P,!0)}function H(P){if(Lm.includes(P.keyCode)===!1)return;ct(P);const F=([34,33].includes(P.keyCode)?10:1)*g.value,Y=[34,37,40].includes(P.keyCode)?-F:F;i.value=Mt(parseFloat((i.value+Y).toFixed(_.value)),s.value,d.value),I()}function ee(P,F){const Y=mn(P),X=Math.abs(Y.top-m.top),Z=Math.sqrt(X**2+Math.abs(Y.left-m.left)**2);let ce=Math.asin(X/Z)*(180/Math.PI);Y.top<m.top?ce=m.left<Y.left?90-ce:270+ce:ce=m.left<Y.left?ce+90:270-ce,a.lang.rtl===!0?ce=ii(-ce-e.angle,0,360):e.angle&&(ce=ii(ce-e.angle,0,360)),e.reverse===!0&&(ce=360-ce);let Ee=e.min+ce/360*(e.max-e.min);if(g.value!==0){const G=Ee%g.value;Ee=Ee-G+(Math.abs(G)>=g.value/2?(G<0?-1:1)*g.value:0),Ee=parseFloat(Ee.toFixed(_.value))}Ee=Mt(Ee,s.value,d.value),n("dragValue",Ee),i.value!==Ee&&(i.value=Ee),I(F)}function N(P){Lm.includes(P.keyCode)&&I(!0)}function I(P){e.modelValue!==i.value&&n("update:modelValue",i.value),P===!0&&n("change",i.value)}const $=la(e);function D(){return r.h("input",$.value)}return()=>{const P={class:p.value,role:"slider","aria-valuemin":s.value,"aria-valuemax":d.value,"aria-valuenow":e.modelValue,...w.value,...T.value,value:i.value,instantFeedback:E.value,...C.value},F={default:t.default};return b.value===!0&&e.name!==void 0&&(F.internal=D),Mn(_v,P,F,"knob",b.value,()=>y.value)}}});var{passive:Im}=Rt,hw=["both","horizontal","vertical"],Nm=_e({name:"QScrollObserver",props:{axis:{type:String,validator:e=>hw.includes(e),default:"vertical"},debounce:[String,Number],scrollTarget:zr},emits:["scroll"],setup(e,{emit:t}){const n={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let o=null,a,i;r.watch(()=>e.scrollTarget,()=>{d(),s()});function l(){o?.();const b=Math.max(0,gr(a)),p=hi(a),_={top:b-n.position.top,left:p-n.position.left};if(e.axis==="vertical"&&_.top===0||e.axis==="horizontal"&&_.left===0)return;const g=Math.abs(_.top)>=Math.abs(_.left)?_.top<0?"up":"down":_.left<0?"left":"right";n.position={top:b,left:p},n.directionChanged=n.direction!==g,n.delta=_,n.directionChanged===!0&&(n.direction=g,n.inflectionPoint=n.position),t("scroll",{...n})}function s(){a=Kn(i,e.scrollTarget),a.addEventListener("scroll",m,Im),m(!0)}function d(){a!==void 0&&(a.removeEventListener("scroll",m,Im),a=void 0)}function m(b){if(b===!0||e.debounce===0||e.debounce==="0")l();else if(o===null){const[p,_]=e.debounce?[setTimeout(l,e.debounce),clearTimeout]:[requestAnimationFrame(l),cancelAnimationFrame];o=()=>{_(p),o=null}}}const{proxy:v}=r.getCurrentInstance();return r.watch(()=>v.$q.lang.rtl,l),r.onMounted(()=>{i=v.$el.parentNode,s()}),r.onBeforeUnmount(()=>{o?.(),d()}),Object.assign(v,{trigger:m,getPosition:()=>n}),Kt}});_e({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:e=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(e.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),a=r.ref(null),i=r.ref(o.screen.height),l=r.ref(e.container===!0?0:o.screen.width),s=r.ref({position:0,direction:"down",inflectionPoint:0}),d=r.ref(0),m=r.ref(On.value===!0?0:pi()),v=r.computed(()=>"q-layout q-layout--"+(e.container===!0?"containerized":"standard")),b=r.computed(()=>e.container===!1?{minHeight:o.screen.height+"px"}:null),p=r.computed(()=>m.value!==0?{[o.lang.rtl===!0?"left":"right"]:`${m.value}px`}:null),_=r.computed(()=>m.value!==0?{[o.lang.rtl===!0?"right":"left"]:0,[o.lang.rtl===!0?"left":"right"]:`-${m.value}px`,width:`calc(100% + ${m.value}px)`}:null);function g(y){if(e.container===!0||document.qScrollPrevented!==!0){const q={position:y.position.top,direction:y.direction,directionChanged:y.directionChanged,inflectionPoint:y.inflectionPoint.top,delta:y.delta.top};s.value=q,e.onScroll!==void 0&&n("scroll",q)}}function E(y){const{height:q,width:L}=y;let k=!1;i.value!==q&&(k=!0,i.value=q,e.onScrollHeight!==void 0&&n("scrollHeight",q),w()),l.value!==L&&(k=!0,l.value=L),k===!0&&e.onResize!==void 0&&n("resize",y)}function C({height:y}){d.value!==y&&(d.value=y,w())}function w(){if(e.container===!0){const y=i.value>d.value?pi():0;m.value!==y&&(m.value=y)}}let T=null;const x={instances:{},view:r.computed(()=>e.view),isContainer:r.computed(()=>e.container),rootRef:a,height:i,containerHeight:d,scrollbarWidth:m,totalWidth:r.computed(()=>l.value+m.value),rows:r.computed(()=>{const y=e.view.toLowerCase().split(" ");return{top:y[0].split(""),middle:y[1].split(""),bottom:y[2].split("")}}),header:r.reactive({size:0,offset:0,space:!1}),right:r.reactive({size:300,offset:0,space:!1}),footer:r.reactive({size:0,offset:0,space:!1}),left:r.reactive({size:300,offset:0,space:!1}),scroll:s,animate(){T!==null?clearTimeout(T):document.body.classList.add("q-body--layout-animate"),T=setTimeout(()=>{T=null,document.body.classList.remove("q-body--layout-animate")},155)},update(y,q,L){x[y][q]=L}};if(r.provide($r,x),pi()>0){let y=function(){k=null,H.classList.remove("hide-scrollbar")},q=function(){if(k===null){if(H.scrollHeight>o.screen.height)return;H.classList.add("hide-scrollbar")}else clearTimeout(k);k=setTimeout(y,300)},L=function(ee){k!==null&&ee==="remove"&&(clearTimeout(k),y()),window[`${ee}EventListener`]("resize",q)},k=null;const H=document.body;r.watch(()=>e.container!==!0?"add":"remove",L),e.container!==!0&&L("add"),r.onUnmounted(()=>{L("remove")})}return()=>{const y=Ht(t.default,[r.h(Nm,{onScroll:g}),r.h(Wr,{onResize:E})]),q=r.h("div",{class:v.value,style:b.value,ref:e.container===!0?void 0:a,tabindex:-1},y);return e.container===!0?r.h("div",{class:"q-layout-container overflow-hidden",ref:a},[r.h(Wr,{onResize:C}),r.h("div",{class:"absolute-full",style:p.value},[r.h("div",{class:"scroll",style:_.value},[q])])]):q}}});var gw=["horizontal","vertical","cell","none"],pw=_e({name:"QMarkupTable",props:{...bt,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:e=>gw.includes(e)}},setup(e,{slots:t}){const n=r.getCurrentInstance(),o=yt(e,n.proxy.$q),a=r.computed(()=>`q-markup-table q-table__container q-table__card q-table--${e.separator}-separator`+(o.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(e.dense===!0?" q-table--dense":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")+(e.square===!0?" q-table--square":"")+(e.wrapCells===!1?" q-table--no-wrap":""));return()=>r.h("div",{class:a.value},[r.h("table",{class:"q-table"},Ke(t.default))])}});_e({name:"QNoSsr",props:{tag:{type:String,default:"div"},placeholder:String},setup(e,{slots:t}){const{isHydrated:n}=kv();return()=>{if(n.value===!0){const i=Ke(t.default);return i===void 0?i:i.length>1?r.h(e.tag,{},i):i[0]}const o={class:"q-no-ssr-placeholder"},a=Ke(t.placeholder);if(a!==void 0)return a.length>1?r.h(e.tag,o,a):a[0];if(e.placeholder!==void 0)return r.h(e.tag,o,e.placeholder)}}});var bw=()=>r.h("svg",{key:"svg",class:"q-radio__bg absolute non-selectable",viewBox:"0 0 24 24"},[r.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"}),r.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"})]),yw=_e({name:"QRadio",props:{...bt,...rr,...An,modelValue:{required:!0},val:{required:!0},label:String,leftLabel:Boolean,checkedIcon:String,uncheckedIcon:String,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},emits:["update:modelValue"],setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),a=yt(e,o.$q),i=or(e,vv),l=r.ref(null),{refocusTargetEl:s,refocusTarget:d}=fv(e,l),m=r.computed(()=>r.toRaw(e.modelValue)===r.toRaw(e.val)),v=r.computed(()=>"q-radio cursor-pointer no-outline row inline no-wrap items-center"+(e.disable===!0?" disabled":"")+(a.value===!0?" q-radio--dark":"")+(e.dense===!0?" q-radio--dense":"")+(e.leftLabel===!0?" reverse":"")),b=r.computed(()=>{const y=e.color!==void 0&&(e.keepColor===!0||m.value===!0)?` text-${e.color}`:"";return`q-radio__inner relative-position q-radio__inner--${m.value===!0?"truthy":"falsy"}${y}`}),p=r.computed(()=>(m.value===!0?e.checkedIcon:e.uncheckedIcon)||null),_=r.computed(()=>e.disable===!0?-1:e.tabindex||0),g=r.computed(()=>{const y={type:"radio"};return e.name!==void 0&&Object.assign(y,{".checked":m.value===!0,"^checked":m.value===!0?"checked":void 0,name:e.name,value:e.val}),y}),E=pr(g);function C(y){y!==void 0&&(ct(y),d(y)),e.disable!==!0&&m.value!==!0&&n("update:modelValue",e.val,y)}function w(y){(y.keyCode===13||y.keyCode===32)&&ct(y)}function T(y){(y.keyCode===13||y.keyCode===32)&&C(y)}Object.assign(o,{set:C});const x=bw();return()=>{const y=p.value!==null?[r.h("div",{key:"icon",class:"q-radio__icon-container absolute-full flex flex-center no-wrap"},[r.h(wt,{class:"q-radio__icon",name:p.value})])]:[x];e.disable!==!0&&E(y,"unshift"," q-radio__native q-ma-none q-pa-none");const q=[r.h("div",{class:b.value,style:i.value,"aria-hidden":"true"},y)];s.value!==null&&q.push(s.value);const L=e.label!==void 0?Ht(t.default,[e.label]):Ke(t.default);return L!==void 0&&q.push(r.h("div",{class:"q-radio__label q-anchor--skip"},L)),r.h("div",{ref:l,class:v.value,tabindex:_.value,role:"radio","aria-label":e.label,"aria-checked":m.value===!0?"true":"false","aria-disabled":e.disable===!0?"true":void 0,onClick:C,onKeydown:w,onKeyup:T},q)}}}),_w=_e({name:"QToggle",props:{...mv,icon:String,iconColor:String},emits:hv,setup(e){function t(n,o){const a=r.computed(()=>(n.value===!0?e.checkedIcon:o.value===!0?e.indeterminateIcon:e.uncheckedIcon)||e.icon),i=r.computed(()=>n.value===!0?e.iconColor:null);return()=>[r.h("div",{class:"q-toggle__track"}),r.h("div",{class:"q-toggle__thumb absolute flex flex-center no-wrap"},a.value!==void 0?[r.h(wt,{name:a.value,color:i.value})]:void 0)]}return gv("toggle",t)}}),Dm={radio:yw,checkbox:ca,toggle:_w},Sw=Object.keys(Dm);function xu(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return o=>o[n]}var ww=_e({name:"QOptionGroup",props:{...bt,modelValue:{required:!0},options:{type:Array,validator:e=>e.every(dn),default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],name:String,type:{type:String,default:"radio",validator:e=>Sw.includes(e)},color:String,keepColor:Boolean,dense:Boolean,size:String,leftLabel:Boolean,inline:Boolean,disable:Boolean},emits:["update:modelValue"],setup(e,{emit:t,slots:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),a=Array.isArray(e.modelValue);e.type==="radio"?a===!0&&console.error("q-option-group: model should not be array"):a===!1&&console.error("q-option-group: model should be array in your case");const i=yt(e,o),l=r.computed(()=>Dm[e.type]),s=r.computed(()=>xu(e.optionValue,"value")),d=r.computed(()=>xu(e.optionLabel,"label")),m=r.computed(()=>xu(e.optionDisable,"disable")),v=r.computed(()=>e.options.map(g=>({val:s.value(g),name:g.name===void 0?e.name:g.name,disable:e.disable||m.value(g),leftLabel:g.leftLabel===void 0?e.leftLabel:g.leftLabel,color:g.color===void 0?e.color:g.color,checkedIcon:g.checkedIcon,uncheckedIcon:g.uncheckedIcon,dark:g.dark===void 0?i.value:g.dark,size:g.size===void 0?e.size:g.size,dense:e.dense,keepColor:g.keepColor===void 0?e.keepColor:g.keepColor}))),b=r.computed(()=>"q-option-group q-gutter-x-sm"+(e.inline===!0?" q-option-group--inline":"")),p=r.computed(()=>{const g={role:"group"};return e.type==="radio"&&(g.role="radiogroup",e.disable===!0&&(g["aria-disabled"]="true")),g});function _(g){t("update:modelValue",g)}return()=>r.h("div",{class:b.value,...p.value},e.options.map((g,E)=>{const C=n["label-"+E]!==void 0?()=>n["label-"+E](g):n.label!==void 0?()=>n.label(g):void 0;return r.h("div",[r.h(l.value,{label:C===void 0?d.value(g):null,modelValue:e.modelValue,"onUpdate:modelValue":_,...v.value[E]},C)])}))}});_e({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),o=r.inject($r,kt);if(o===kt)return console.error("QPage needs to be a deep child of QLayout"),kt;if(r.inject(pf,kt)===kt)return console.error("QPage needs to be child of QPageContainer"),kt;const i=r.computed(()=>{const s=(o.header.space===!0?o.header.size:0)+(o.footer.space===!0?o.footer.size:0);if(typeof e.styleFn=="function"){const d=o.isContainer.value===!0?o.containerHeight.value:n.screen.height;return e.styleFn(s,d)}return{minHeight:o.isContainer.value===!0?o.containerHeight.value-s+"px":n.screen.height===0?s!==0?`calc(100vh - ${s}px)`:"100vh":n.screen.height-s+"px"}}),l=r.computed(()=>`q-page${e.padding===!0?" q-layout-padding":""}`);return()=>r.h("main",{class:l.value,style:i.value},Ke(t.default))}}),_e({name:"QPageContainer",setup(e,{slots:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),o=r.inject($r,kt);if(o===kt)return console.error("QPageContainer needs to be child of QLayout"),kt;r.provide(pf,!0);const a=r.computed(()=>{const i={};return o.header.space===!0&&(i.paddingTop=`${o.header.size}px`),o.right.space===!0&&(i[`padding${n.lang.rtl===!0?"Left":"Right"}`]=`${o.right.size}px`),o.footer.space===!0&&(i.paddingBottom=`${o.footer.size}px`),o.left.space===!0&&(i[`padding${n.lang.rtl===!0?"Right":"Left"}`]=`${o.left.size}px`),i});return()=>r.h("div",{class:"q-page-container",style:a.value},Ke(t.default))}});var ku={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=>e.length===2},expand:Boolean};function $m(){const{props:e,proxy:{$q:t}}=r.getCurrentInstance(),n=r.inject($r,kt);if(n===kt)return console.error("QPageSticky needs to be child of QLayout"),kt;const o=r.computed(()=>{const b=e.position;return{top:b.indexOf("top")!==-1,right:b.indexOf("right")!==-1,bottom:b.indexOf("bottom")!==-1,left:b.indexOf("left")!==-1,vertical:b==="top"||b==="bottom",horizontal:b==="left"||b==="right"}}),a=r.computed(()=>n.header.offset),i=r.computed(()=>n.right.offset),l=r.computed(()=>n.footer.offset),s=r.computed(()=>n.left.offset),d=r.computed(()=>{let b=0,p=0;const _=o.value,g=t.lang.rtl===!0?-1:1;_.top===!0&&a.value!==0?p=`${a.value}px`:_.bottom===!0&&l.value!==0&&(p=`${-l.value}px`),_.left===!0&&s.value!==0?b=`${g*s.value}px`:_.right===!0&&i.value!==0&&(b=`${-g*i.value}px`);const E={transform:`translate(${b}, ${p})`};return e.offset&&(E.margin=`${e.offset[1]}px ${e.offset[0]}px`),_.vertical===!0?(s.value!==0&&(E[t.lang.rtl===!0?"right":"left"]=`${s.value}px`),i.value!==0&&(E[t.lang.rtl===!0?"left":"right"]=`${i.value}px`)):_.horizontal===!0&&(a.value!==0&&(E.top=`${a.value}px`),l.value!==0&&(E.bottom=`${l.value}px`)),E}),m=r.computed(()=>`q-page-sticky row flex-center fixed-${e.position} q-page-sticky--${e.expand===!0?"expand":"shrink"}`);function v(b){const p=Ke(b.default);return r.h("div",{class:m.value,style:d.value},e.expand===!0?p:[r.h("div",p)])}return{$layout:n,getStickyContent:v}}_e({name:"QPageScroller",props:{...ku,scrollOffset:{type:Number,default:1e3},reverse:Boolean,duration:{type:Number,default:300},offset:{...ku.offset,default:()=>[18,18]}},emits:["click"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),{$layout:a,getStickyContent:i}=$m(),l=r.ref(null);let s;const d=r.computed(()=>a.height.value-(a.isContainer.value===!0?a.containerHeight.value:o.screen.height));function m(){return e.reverse===!0?d.value-a.scroll.value.position>e.scrollOffset:a.scroll.value.position>e.scrollOffset}const v=r.ref(m());function b(){const C=m();v.value!==C&&(v.value=C)}function p(){e.reverse===!0?s===void 0&&(s=r.watch(d,b)):_()}r.watch(a.scroll,b),r.watch(()=>e.reverse,p);function _(){s!==void 0&&(s(),s=void 0)}function g(C){const w=Kn(a.isContainer.value===!0?l.value:a.rootRef.value);xo(w,e.reverse===!0?a.height.value:0,e.duration),n("click",C)}function E(){return v.value===!0?r.h("div",{ref:l,class:"q-page-scroller",onClick:g},i(t)):null}return p(),r.onBeforeUnmount(_),()=>r.h(r.Transition,{name:"q-transition--fade"},E)}}),_e({name:"QPageSticky",props:ku,setup(e,{slots:t}){const{getStickyContent:n}=$m();return()=>n(t)}});function Wi(e,t){return[!0,!1].includes(e)?e:t}_e({name:"QPagination",props:{...bt,modelValue:{type:Number,required:!0},min:{type:[Number,String],default:1},max:{type:[Number,String],required:!0},maxPages:{type:[Number,String],default:0,validator:e=>(typeof e=="string"?parseInt(e,10):e)>=0},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},ripple:{type:[Boolean,Object],default:null},round:Boolean,rounded:Boolean,flat:Boolean,outline:Boolean,unelevated:Boolean,push:Boolean,glossy:Boolean,color:{type:String,default:"primary"},textColor:String,activeDesign:{type:String,default:"",values:e=>e===""||zf.includes(e)},activeColor:String,activeTextColor:String,gutter:String,padding:{type:String,default:"3px 2px"}},emits:["update:modelValue"],setup(e,{emit:t}){const{proxy:n}=r.getCurrentInstance(),{$q:o}=n,a=yt(e,o),i=r.computed(()=>parseInt(e.min,10)),l=r.computed(()=>parseInt(e.max,10)),s=r.computed(()=>parseInt(e.maxPages,10)),d=r.computed(()=>g.value+" / "+l.value),m=r.computed(()=>Wi(e.boundaryLinks,e.input)),v=r.computed(()=>Wi(e.boundaryNumbers,!e.input)),b=r.computed(()=>Wi(e.directionLinks,e.input)),p=r.computed(()=>Wi(e.ellipses,!e.input)),_=r.ref(null),g=r.computed({get:()=>e.modelValue,set:F=>{if(F=parseInt(F,10),e.disable||isNaN(F))return;const Y=Mt(F,i.value,l.value);e.modelValue!==Y&&t("update:modelValue",Y)}});r.watch(()=>`${i.value}|${l.value}`,()=>{g.value=e.modelValue});const E=r.computed(()=>"q-pagination row no-wrap items-center"+(e.disable===!0?" disabled":"")),C=r.computed(()=>e.gutter in fi?`${fi[e.gutter]}px`:e.gutter||null),w=r.computed(()=>C.value!==null?`--q-pagination-gutter-parent:-${C.value};--q-pagination-gutter-child:${C.value}`:null),T=r.computed(()=>{const F=[e.iconFirst||o.iconSet.pagination.first,e.iconPrev||o.iconSet.pagination.prev,e.iconNext||o.iconSet.pagination.next,e.iconLast||o.iconSet.pagination.last];return o.lang.rtl===!0?F.reverse():F}),x=r.computed(()=>({"aria-disabled":e.disable===!0?"true":"false",role:"navigation"})),y=r.computed(()=>Ts(e,"flat")),q=r.computed(()=>({[y.value]:!0,round:e.round,rounded:e.rounded,padding:e.padding,color:e.color,textColor:e.textColor,size:e.size,ripple:e.ripple!==null?e.ripple:!0})),L=r.computed(()=>{const F={[y.value]:!1};return e.activeDesign!==""&&(F[e.activeDesign]=!0),F}),k=r.computed(()=>({...L.value,color:e.activeColor||e.color,textColor:e.activeTextColor||e.textColor})),H=r.computed(()=>{let F=Math.max(s.value,1+(p.value?2:0)+(v.value?2:0));const Y={pgFrom:i.value,pgTo:l.value,ellipsesStart:!1,ellipsesEnd:!1,boundaryStart:!1,boundaryEnd:!1,marginalStyle:{minWidth:`${Math.max(2,String(l.value).length)}em`}};return s.value&&F<l.value-i.value+1&&(F=1+Math.floor(F/2)*2,Y.pgFrom=Math.max(i.value,Math.min(l.value-F+1,e.modelValue-Math.floor(F/2))),Y.pgTo=Math.min(l.value,Y.pgFrom+F-1),v.value&&(Y.boundaryStart=!0,Y.pgFrom++),p.value&&Y.pgFrom>i.value+(v.value?1:0)&&(Y.ellipsesStart=!0,Y.pgFrom++),v.value&&(Y.boundaryEnd=!0,Y.pgTo--),p.value&&Y.pgTo<l.value-(v.value?1:0)&&(Y.ellipsesEnd=!0,Y.pgTo--)),Y});function ee(F){g.value=F}function N(F){g.value=g.value+F}function I(){g.value=_.value,_.value=null,o.platform.is.mobile===!0&&document.activeElement.blur()}function $(F){_.value=F}function D(F){qn(F,13)===!0&&I()}function P(F,Y,X){const Z={"aria-label":Y,"aria-current":"false",...q.value,...F};return X===!0&&Object.assign(Z,{"aria-current":"true",...k.value}),Y!==void 0&&(e.toFn!==void 0?Z.to=e.toFn(Y):Z.onClick=()=>{ee(Y)}),r.h(xt,Z)}return Object.assign(n,{set:ee,setByOffset:N}),()=>{const F=[],Y=[];let X;if(m.value===!0&&(F.push(P({key:"bls",disable:e.disable||e.modelValue<=i.value,icon:T.value[0],"aria-label":o.lang.pagination.first},i.value)),Y.unshift(P({key:"ble",disable:e.disable||e.modelValue>=l.value,icon:T.value[3],"aria-label":o.lang.pagination.last},l.value))),b.value===!0&&(F.push(P({key:"bdp",disable:e.disable||e.modelValue<=i.value,icon:T.value[1],"aria-label":o.lang.pagination.prev},e.modelValue-1)),Y.unshift(P({key:"bdn",disable:e.disable||e.modelValue>=l.value,icon:T.value[2],"aria-label":o.lang.pagination.next},e.modelValue+1))),e.input!==!0){X=[];const{pgFrom:Z,pgTo:ce,marginalStyle:Ee}=H.value;if(H.value.boundaryStart===!0){const G=i.value===e.modelValue;F.push(P({key:"bns",style:Ee,disable:e.disable,label:i.value},i.value,G))}if(H.value.boundaryEnd===!0){const G=l.value===e.modelValue;Y.unshift(P({key:"bne",style:Ee,disable:e.disable,label:l.value},l.value,G))}H.value.ellipsesStart===!0&&F.push(P({key:"bes",style:Ee,disable:e.disable,label:"…",ripple:!1},Z-1)),H.value.ellipsesEnd===!0&&Y.unshift(P({key:"bee",style:Ee,disable:e.disable,label:"…",ripple:!1},ce+1));for(let G=Z;G<=ce;G++)X.push(P({key:`bpg${G}`,style:Ee,disable:e.disable,label:G},G,G===e.modelValue))}return r.h("div",{class:E.value,...x.value},[r.h("div",{class:"q-pagination__content row no-wrap items-center",style:w.value},[...F,e.input===!0?r.h(Mm,{class:"inline",style:{width:`${d.value.length/1.5}em`},type:"number",dense:!0,value:_.value,disable:e.disable,dark:a.value,borderless:!0,inputClass:e.inputClass,inputStyle:e.inputStyle,placeholder:d.value,min:i.value,max:l.value,"onUpdate:modelValue":$,onKeyup:D,onBlur:I}):r.h("div",{class:"q-pagination__middle row justify-center"},X),...Y])])}}});function Eu(e){let t=!1,n,o;function a(){o=arguments,t!==!0&&(t=!0,n=window.requestAnimationFrame(()=>{e.apply(this,o),o=void 0,t=!1}))}return a.cancel=()=>{window.cancelAnimationFrame(n),t=!1},a}var{passive:Yi}=Rt;_e({name:"QParallax",props:{src:String,height:{type:Number,default:500},speed:{type:Number,default:1,validator:e=>e>=0&&e<=1},scrollTarget:zr,onScroll:Function},setup(e,{slots:t,emit:n}){const o=r.ref(0),a=r.ref(null),i=r.ref(null),l=r.ref(null);let s,d,m,v,b,p;r.watch(()=>e.height,()=>{s===!0&&g()}),r.watch(()=>e.scrollTarget,()=>{s===!0&&(T(),w())});let _=x=>{o.value=x,e.onScroll!==void 0&&n("scroll",x)};function g(){let x,y,q;p===window?(x=0,q=y=window.innerHeight):(x=ci(p).top,y=vo(p),q=x+y);const L=ci(a.value).top,k=L+e.height;if(b!==void 0||k>x&&L<q){const H=(q-L)/(e.height+y);E((m-e.height)*H*e.speed),_(H)}}let E=x=>{d.style.transform=`translate3d(-50%,${Math.round(x)}px,0)`};function C(){m=d.naturalHeight||d.videoHeight||vo(d),s===!0&&g()}function w(){s=!0,p=Kn(a.value,e.scrollTarget),p.addEventListener("scroll",g,Yi),window.addEventListener("resize",v,Yi),g()}function T(){s===!0&&(s=!1,p.removeEventListener("scroll",g,Yi),window.removeEventListener("resize",v,Yi),p=void 0,E.cancel(),_.cancel(),v.cancel())}return r.onMounted(()=>{E=Eu(E),_=Eu(_),v=Eu(C),d=t.media!==void 0?i.value.children[0]:l.value,d.onload=d.onloadstart=d.loadedmetadata=C,C(),d.style.display="initial",window.IntersectionObserver!==void 0?(b=new IntersectionObserver(x=>{(x[0].isIntersecting===!0?w:T)()}),b.observe(a.value)):w()}),r.onBeforeUnmount(()=>{T(),b?.disconnect(),d.onload=d.onloadstart=d.loadedmetadata=null}),()=>r.h("div",{ref:a,class:"q-parallax",style:{height:`${e.height}px`}},[r.h("div",{ref:i,class:"q-parallax__media absolute-full"},t.media!==void 0?t.media():[r.h("img",{ref:l,src:e.src})]),r.h("div",{class:"q-parallax__content absolute-full column flex-center"},t.content!==void 0?t.content({percentScrolled:o.value}):Ke(t.default))])}});function ha(e,t=new WeakMap){if(Object(e)!==e)return e;if(t.has(e))return t.get(e);const n=e instanceof Date?new Date(e):e instanceof RegExp?new RegExp(e.source,e.flags):e instanceof Set?new Set:e instanceof Map?new Map:typeof e.constructor!="function"?Object.create(null):e.prototype!==void 0&&typeof e.prototype.constructor=="function"?e:new e.constructor;if(typeof e.constructor=="function"&&typeof e.valueOf=="function"){const o=e.valueOf();if(Object(o)!==o){const a=new e.constructor(o);return t.set(e,a),a}}return t.set(e,n),e instanceof Set?e.forEach(o=>{n.add(ha(o,t))}):e instanceof Map&&e.forEach((o,a)=>{n.set(a,ha(o,t))}),Object.assign(n,...Object.keys(e).map(o=>({[o]:ha(e[o],t)})))}_e({name:"QPopupEdit",props:{modelValue:{required:!0},title:String,buttons:Boolean,labelSet:String,labelCancel:String,color:{type:String,default:"primary"},validate:{type:Function,default:()=>!0},autoSave:Boolean,cover:{type:Boolean,default:!0},disable:Boolean},emits:["update:modelValue","save","cancel","beforeShow","show","beforeHide","hide"],setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),{$q:a}=o,i=r.ref(null),l=r.ref(""),s=r.ref("");let d=!1;const m=r.computed(()=>Jt({initialValue:l.value,validate:e.validate,set:v,cancel:b,updatePosition:p},"value",()=>s.value,y=>{s.value=y}));function v(){e.validate(s.value)!==!1&&(_()===!0&&(n("save",s.value,l.value),n("update:modelValue",s.value)),g())}function b(){_()===!0&&n("cancel",s.value,l.value),g()}function p(){r.nextTick(()=>{i.value.updatePosition()})}function _(){return $n(s.value,l.value)===!1}function g(){d=!0,i.value.hide()}function E(){d=!1,l.value=ha(e.modelValue),s.value=ha(e.modelValue),n("beforeShow")}function C(){n("show")}function w(){d===!1&&_()===!0&&(e.autoSave===!0&&e.validate(s.value)===!0?(n("save",s.value,l.value),n("update:modelValue",s.value)):n("cancel",s.value,l.value)),n("beforeHide")}function T(){n("hide")}function x(){const y=t.default!==void 0?[].concat(t.default(m.value)):[];return e.title&&y.unshift(r.h("div",{class:"q-dialog__title q-mt-sm q-mb-sm"},e.title)),e.buttons===!0&&y.push(r.h("div",{class:"q-popup-edit__buttons row justify-center no-wrap"},[r.h(xt,{flat:!0,color:e.color,label:e.labelCancel||a.lang.label.cancel,onClick:b}),r.h(xt,{flat:!0,color:e.color,label:e.labelSet||a.lang.label.set,onClick:v})])),y}return Object.assign(o,{set:v,cancel:b,show(y){i.value?.show(y)},hide(y){i.value?.hide(y)},updatePosition:p}),()=>{if(e.disable!==!0)return r.h(xi,{ref:i,class:"q-popup-edit",cover:e.cover,onBeforeShow:E,onShow:C,onBeforeHide:w,onHide:T,onEscapeKey:b},x)}}}),_e({name:"QPopupProxy",props:{...Qf,breakpoint:{type:[String,Number],default:450}},emits:["show","hide"],setup(e,{slots:t,emit:n,attrs:o}){const{proxy:a}=r.getCurrentInstance(),{$q:i}=a,l=r.ref(!1),s=r.ref(null),d=r.computed(()=>parseInt(e.breakpoint,10)),{canShow:m}=qs({showing:l});function v(){return i.screen.width<d.value||i.screen.height<d.value?"dialog":"menu"}const b=r.ref(v()),p=r.computed(()=>b.value==="menu"?{maxHeight:"99vh"}:{});r.watch(()=>v(),E=>{l.value!==!0&&(b.value=E)});function _(E){l.value=!0,n("show",E)}function g(E){l.value=!1,b.value=v(),n("hide",E)}return Object.assign(a,{show(E){m(E)===!0&&s.value.show(E)},hide(E){s.value.hide(E)},toggle(E){s.value.toggle(E)}}),Jt(a,"currentComponent",()=>({type:b.value,ref:s.value})),()=>{const E={ref:s,...p.value,...o,onShow:_,onHide:g};let C;return b.value==="dialog"?C=Fi:(C=xi,Object.assign(E,{target:e.target,contextMenu:e.contextMenu,noParentEvent:!0,separateClosePopup:!0})),r.h(C,E,t.default)}}});var Cw={xs:2,sm:4,md:6,lg:10,xl:14};function Fm(e,t,n){return{transform:t===!0?`translateX(${n.lang.rtl===!0?"-":""}100%) scale3d(${-e},1,1)`:`scale3d(${e},1,1)`}}var xw=_e({name:"QLinearProgress",props:{...bt,...rr,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(e,{slots:t}){const{proxy:n}=r.getCurrentInstance(),o=yt(e,n.$q),a=or(e,Cw),i=r.computed(()=>e.indeterminate===!0||e.query===!0),l=r.computed(()=>e.reverse!==e.query),s=r.computed(()=>({...a.value!==null?a.value:{},"--q-linear-progress-speed":`${e.animationSpeed}ms`})),d=r.computed(()=>"q-linear-progress"+(e.color!==void 0?` text-${e.color}`:"")+(e.reverse===!0||e.query===!0?" q-linear-progress--reverse":"")+(e.rounded===!0?" rounded-borders":"")),m=r.computed(()=>Fm(e.buffer!==void 0?e.buffer:1,l.value,n.$q)),v=r.computed(()=>`with${e.instantFeedback===!0?"out":""}-transition`),b=r.computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${v.value} q-linear-progress__track--${o.value===!0?"dark":"light"}`+(e.trackColor!==void 0?` bg-${e.trackColor}`:"")),p=r.computed(()=>Fm(i.value===!0?1:e.value,l.value,n.$q)),_=r.computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${v.value} q-linear-progress__model--${i.value===!0?"in":""}determinate`),g=r.computed(()=>({width:`${e.value*100}%`})),E=r.computed(()=>`q-linear-progress__stripe absolute-${e.reverse===!0?"right":"left"} q-linear-progress__stripe--${v.value}`);return()=>{const C=[r.h("div",{class:b.value,style:m.value}),r.h("div",{class:_.value,style:p.value})];return e.stripe===!0&&i.value===!1&&C.push(r.h("div",{class:E.value,style:g.value})),r.h("div",{class:d.value,style:s.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":e.indeterminate===!0?void 0:e.value},Ht(t.default,C))}}}),Po=40,Tu=20;_e({name:"QPullToRefresh",props:{color:String,bgColor:String,icon:String,noMouse:Boolean,disable:Boolean,scrollTarget:zr},emits:["refresh"],setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),{$q:a}=o,i=r.ref("pull"),l=r.ref(0),s=r.ref(!1),d=r.ref(-Po),m=r.ref(!1),v=r.ref({}),b=r.computed(()=>({opacity:l.value,transform:`translateY(${d.value}px) rotate(${l.value*360}deg)`})),p=r.computed(()=>"q-pull-to-refresh__puller row flex-center"+(m.value===!0?" q-pull-to-refresh__puller--animating":"")+(e.bgColor!==void 0?` bg-${e.bgColor}`:""));function _(q){if(q.isFinal===!0){s.value===!0&&(s.value=!1,i.value==="pulled"?(i.value="refreshing",x({pos:Tu}),C()):i.value==="pull"&&x({pos:-Po,ratio:0}));return}if(m.value===!0||i.value==="refreshing")return!1;if(q.isFirst===!0){if(gr(w)!==0||q.direction!=="down")return s.value===!0&&(s.value=!1,i.value="pull",x({pos:-Po,ratio:0})),!1;s.value=!0;const{top:H,left:ee}=o.$el.getBoundingClientRect();v.value={top:H+"px",left:ee+"px",width:window.getComputedStyle(o.$el).getPropertyValue("width")}}Zt(q.evt);const L=Math.min(140,Math.max(0,q.distance.y));d.value=L-Po,l.value=Mt(L/(Tu+Po),0,1);const k=d.value>Tu?"pulled":"pull";i.value!==k&&(i.value=k)}const g=r.computed(()=>{const q={down:!0};return e.noMouse!==!0&&(q.mouse=!0),[[Rn,_,void 0,q]]}),E=r.computed(()=>`q-pull-to-refresh__content${s.value===!0?" no-pointer-events":""}`);function C(){n("refresh",()=>{x({pos:-Po,ratio:0},()=>{i.value="pull"})})}let w,T=null;function x({pos:q,ratio:L},k){m.value=!0,d.value=q,L!==void 0&&(l.value=L),T!==null&&clearTimeout(T),T=setTimeout(()=>{T=null,m.value=!1,k?.()},300)}function y(){w=Kn(o.$el,e.scrollTarget)}return r.watch(()=>e.scrollTarget,y),r.onMounted(y),r.onBeforeUnmount(()=>{T!==null&&clearTimeout(T)}),Object.assign(o,{trigger:C,updateScrollTarget:y}),()=>{const q=[r.h("div",{class:E.value},Ke(t.default)),r.h("div",{class:"q-pull-to-refresh__puller-container fixed row flex-center no-pointer-events z-top",style:v.value},[r.h("div",{class:p.value,style:b.value},[i.value!=="refreshing"?r.h(wt,{name:e.icon||a.iconSet.pullToRefresh.icon,color:e.color,size:"32px"}):r.h(Fn,{size:"24px",color:e.color})])])];return Mn("div",{class:"q-pull-to-refresh"},q,"main",e.disable===!1,()=>g.value)}}});var Sr={MIN:0,RANGE:1,MAX:2};_e({name:"QRange",props:{...wv,modelValue:{type:Object,default:()=>({min:null,max:null}),validator:e=>"min"in e&&"max"in e},dragRange:Boolean,dragOnlyRange:Boolean,leftLabelColor:String,leftLabelTextColor:String,rightLabelColor:String,rightLabelTextColor:String,leftLabelValue:[String,Number],rightLabelValue:[String,Number],leftThumbColor:String,rightThumbColor:String},emits:Cv,setup(e,{emit:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),{state:o,methods:a}=xv({updateValue:H,updatePosition:N,getDragging:ee,formAttrs:r.computed(()=>({type:"hidden",name:e.name,value:`${e.modelValue.min}|${e.modelValue.max}`}))}),i=r.ref(null),l=r.ref(0),s=r.ref(0),d=r.ref({min:0,max:0});function m(){d.value.min=e.modelValue.min===null?o.innerMin.value:Mt(e.modelValue.min,o.innerMin.value,o.innerMax.value),d.value.max=e.modelValue.max===null?o.innerMax.value:Mt(e.modelValue.max,o.innerMin.value,o.innerMax.value)}r.watch(()=>`${e.modelValue.min}|${e.modelValue.max}|${o.innerMin.value}|${o.innerMax.value}`,m),m();const v=r.computed(()=>a.convertModelToRatio(d.value.min)),b=r.computed(()=>a.convertModelToRatio(d.value.max)),p=r.computed(()=>o.active.value===!0?l.value:v.value),_=r.computed(()=>o.active.value===!0?s.value:b.value),g=r.computed(()=>{const $={[o.positionProp.value]:`${100*p.value}%`,[o.sizeProp.value]:`${100*(_.value-p.value)}%`};return e.selectionImg!==void 0&&($.backgroundImage=`url(${e.selectionImg}) !important`),$}),E=r.computed(()=>{if(o.editable.value!==!0)return{};if(n.platform.is.mobile===!0)return{onClick:a.onMobileClick};const $={onMousedown:a.onActivate};return(e.dragRange===!0||e.dragOnlyRange===!0)&&Object.assign($,{onFocus:()=>{o.focus.value="both"},onBlur:a.onBlur,onKeydown:I,onKeyup:a.onKeyup}),$});function C($){return n.platform.is.mobile!==!0&&o.editable.value===!0&&e.dragOnlyRange!==!0?{onFocus:()=>{o.focus.value=$},onBlur:a.onBlur,onKeydown:I,onKeyup:a.onKeyup}:{}}const w=r.computed(()=>e.dragOnlyRange!==!0?o.tabindex.value:null),T=r.computed(()=>n.platform.is.mobile!==!0&&(e.dragRange||e.dragOnlyRange===!0)?o.tabindex.value:null),x=r.ref(null),y=r.computed(()=>C("min")),q=a.getThumbRenderFn({focusValue:"min",getNodeData:()=>({ref:x,key:"tmin",...y.value,tabindex:w.value}),ratio:p,label:r.computed(()=>e.leftLabelValue!==void 0?e.leftLabelValue:d.value.min),thumbColor:r.computed(()=>e.leftThumbColor||e.thumbColor||e.color),labelColor:r.computed(()=>e.leftLabelColor||e.labelColor),labelTextColor:r.computed(()=>e.leftLabelTextColor||e.labelTextColor)}),L=r.computed(()=>C("max")),k=a.getThumbRenderFn({focusValue:"max",getNodeData:()=>({...L.value,key:"tmax",tabindex:w.value}),ratio:_,label:r.computed(()=>e.rightLabelValue!==void 0?e.rightLabelValue:d.value.max),thumbColor:r.computed(()=>e.rightThumbColor||e.thumbColor||e.color),labelColor:r.computed(()=>e.rightLabelColor||e.labelColor),labelTextColor:r.computed(()=>e.rightLabelTextColor||e.labelTextColor)});function H($){(d.value.min!==e.modelValue.min||d.value.max!==e.modelValue.max)&&t("update:modelValue",{...d.value}),$===!0&&t("change",{...d.value})}function ee($){const{left:D,top:P,width:F,height:Y}=i.value.getBoundingClientRect(),X=e.dragOnlyRange===!0?0:e.vertical===!0?x.value.offsetHeight/(2*Y):x.value.offsetWidth/(2*F),Z={left:D,top:P,width:F,height:Y,valueMin:d.value.min,valueMax:d.value.max,ratioMin:v.value,ratioMax:b.value},ce=a.getDraggingRatio($,Z);return e.dragOnlyRange!==!0&&ce<Z.ratioMin+X?Z.type=Sr.MIN:e.dragOnlyRange===!0||ce<Z.ratioMax-X?e.dragRange===!0||e.dragOnlyRange===!0?(Z.type=Sr.RANGE,Object.assign(Z,{offsetRatio:ce,offsetModel:a.convertRatioToModel(ce),rangeValue:Z.valueMax-Z.valueMin,rangeRatio:Z.ratioMax-Z.ratioMin})):Z.type=Z.ratioMax-ce<ce-Z.ratioMin?Sr.MAX:Sr.MIN:Z.type=Sr.MAX,Z}function N($,D=o.dragging.value){let P;const F=a.getDraggingRatio($,D),Y=a.convertRatioToModel(F);switch(D.type){case Sr.MIN:F<=D.ratioMax?(P={minR:F,maxR:D.ratioMax,min:Y,max:D.valueMax},o.focus.value="min"):(P={minR:D.ratioMax,maxR:F,min:D.valueMax,max:Y},o.focus.value="max");break;case Sr.MAX:F>=D.ratioMin?(P={minR:D.ratioMin,maxR:F,min:D.valueMin,max:Y},o.focus.value="max"):(P={minR:F,maxR:D.ratioMin,min:Y,max:D.valueMin},o.focus.value="min");break;case Sr.RANGE:const X=F-D.offsetRatio,Z=Mt(D.ratioMin+X,o.innerMinRatio.value,o.innerMaxRatio.value-D.rangeRatio),ce=Y-D.offsetModel,Ee=Mt(D.valueMin+ce,o.innerMin.value,o.innerMax.value-D.rangeValue);P={minR:Z,maxR:Z+D.rangeRatio,min:o.roundValueFn.value(Ee),max:o.roundValueFn.value(Ee+D.rangeValue)},o.focus.value="both";break}d.value=d.value.min===null||d.value.max===null?{min:P.min||e.min,max:P.max||e.max}:{min:P.min,max:P.max},e.snap!==!0||e.step===0?(l.value=P.minR,s.value=P.maxR):(l.value=a.convertModelToRatio(d.value.min),s.value=a.convertModelToRatio(d.value.max))}function I($){if(Zs.includes($.keyCode)===!1)return;ct($);const D=([34,33].includes($.keyCode)?10:1)*o.keyStep.value,P=([34,37,40].includes($.keyCode)?-1:1)*(o.isReversed.value===!0?-1:1)*(e.vertical===!0?-1:1)*D;if(o.focus.value==="both"){const F=d.value.max-d.value.min,Y=Mt(o.roundValueFn.value(d.value.min+P),o.innerMin.value,o.innerMax.value-F);d.value={min:Y,max:o.roundValueFn.value(Y+F)}}else{if(o.focus.value===!1)return;{const F=o.focus.value;d.value={...d.value,[F]:Mt(o.roundValueFn.value(d.value[F]+P),F==="min"?o.innerMin.value:d.value.min,F==="max"?o.innerMax.value:d.value.max)}}}H()}return()=>{const $=a.getContent(g,T,E,D=>{D.push(q(),k())});return r.h("div",{ref:i,class:"q-range "+o.classes.value+(e.modelValue.min===null||e.modelValue.max===null?" q-slider--no-value":""),...o.attributes.value,"aria-valuenow":e.modelValue.min+"|"+e.modelValue.max},$)}}}),_e({name:"QRating",props:{...rr,...An,modelValue:{type:Number,required:!0},max:{type:[String,Number],default:5},icon:[String,Array],iconHalf:[String,Array],iconSelected:[String,Array],iconAriaLabel:[String,Array],color:[String,Array],colorHalf:[String,Array],colorSelected:[String,Array],noReset:Boolean,noDimming:Boolean,readonly:Boolean,disable:Boolean},emits:["update:modelValue"],setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),a=or(e),i=la(e),l=pr(i),s=r.ref(0);let d={};const m=r.computed(()=>e.readonly!==!0&&e.disable!==!0),v=r.computed(()=>`q-rating row inline items-center q-rating--${m.value===!0?"":"non-"}editable`+(e.noDimming===!0?" q-rating--no-dimming":"")+(e.disable===!0?" disabled":"")+(e.color!==void 0&&Array.isArray(e.color)===!1?` text-${e.color}`:"")),b=r.computed(()=>{const x=Array.isArray(e.icon)===!0?e.icon.length:0,y=Array.isArray(e.iconSelected)===!0?e.iconSelected.length:0,q=Array.isArray(e.iconHalf)===!0?e.iconHalf.length:0,L=Array.isArray(e.color)===!0?e.color.length:0,k=Array.isArray(e.colorSelected)===!0?e.colorSelected.length:0,H=Array.isArray(e.colorHalf)===!0?e.colorHalf.length:0;return{iconLen:x,icon:x>0?e.icon[x-1]:e.icon,selIconLen:y,selIcon:y>0?e.iconSelected[y-1]:e.iconSelected,halfIconLen:q,halfIcon:q>0?e.iconHalf[y-1]:e.iconHalf,colorLen:L,color:L>0?e.color[L-1]:e.color,selColorLen:k,selColor:k>0?e.colorSelected[k-1]:e.colorSelected,halfColorLen:H,halfColor:H>0?e.colorHalf[H-1]:e.colorHalf}}),p=r.computed(()=>{if(typeof e.iconAriaLabel=="string"){const x=e.iconAriaLabel.length!==0?`${e.iconAriaLabel} `:"";return y=>`${x}${y}`}if(Array.isArray(e.iconAriaLabel)===!0){const x=e.iconAriaLabel.length;if(x>0)return y=>e.iconAriaLabel[Math.min(y,x)-1]}return(x,y)=>`${y} ${x}`}),_=r.computed(()=>{const x=[],y=b.value,q=Math.ceil(e.modelValue),L=m.value===!0?0:null,k=e.iconHalf===void 0||q===e.modelValue?-1:q;for(let H=1;H<=e.max;H++){const ee=s.value===0&&e.modelValue>=H||s.value>0&&s.value>=H,N=k===H&&s.value<H,I=s.value>0&&(N===!0?q:e.modelValue)>=H&&s.value<H,$=N===!0?H<=y.halfColorLen?e.colorHalf[H-1]:y.halfColor:y.selColor!==void 0&&ee===!0?H<=y.selColorLen?e.colorSelected[H-1]:y.selColor:H<=y.colorLen?e.color[H-1]:y.color,D=(N===!0?H<=y.halfIconLen?e.iconHalf[H-1]:y.halfIcon:y.selIcon!==void 0&&(ee===!0||I===!0)?H<=y.selIconLen?e.iconSelected[H-1]:y.selIcon:H<=y.iconLen?e.icon[H-1]:y.icon)||o.iconSet.rating.icon;x.push({name:(N===!0?H<=y.halfIconLen?e.iconHalf[H-1]:y.halfIcon:y.selIcon!==void 0&&(ee===!0||I===!0)?H<=y.selIconLen?e.iconSelected[H-1]:y.selIcon:H<=y.iconLen?e.icon[H-1]:y.icon)||o.iconSet.rating.icon,attrs:{tabindex:L,role:"radio","aria-checked":e.modelValue===H?"true":"false","aria-label":p.value(H,D)},iconClass:"q-rating__icon"+(ee===!0||N===!0?" q-rating__icon--active":"")+(I===!0?" q-rating__icon--exselected":"")+(s.value===H?" q-rating__icon--hovered":"")+($!==void 0?` text-${$}`:"")})}return x}),g=r.computed(()=>{const x={role:"radiogroup"};return e.disable===!0&&(x["aria-disabled"]="true"),e.readonly===!0&&(x["aria-readonly"]="true"),x});function E(x){if(m.value===!0){const y=Mt(parseInt(x,10),1,parseInt(e.max,10)),q=e.noReset!==!0&&e.modelValue===y?0:y;q!==e.modelValue&&n("update:modelValue",q),s.value=0}}function C(x){m.value===!0&&(s.value=x)}function w(x,y){switch(x.keyCode){case 13:case 32:return E(y),ct(x);case 37:case 40:return d[`rt${y-1}`]&&d[`rt${y-1}`].focus(),ct(x);case 39:case 38:return d[`rt${y+1}`]&&d[`rt${y+1}`].focus(),ct(x)}}function T(){s.value=0}return r.onBeforeUpdate(()=>{d={}}),()=>{const x=[];return _.value.forEach(({iconClass:y,name:q,attrs:L},k)=>{const H=k+1;x.push(r.h("div",{key:H,ref:ee=>{d[`rt${H}`]=ee},class:"q-rating__icon-container flex flex-center",...L,onClick(){E(H)},onMouseover(){C(H)},onMouseout:T,onFocus(){C(H)},onBlur:T,onKeyup(ee){w(ee,H)}},Ht(t[`tip-${H}`],[r.h(wt,{class:y,name:q})])))}),e.name!==void 0&&e.disable!==!0&&l(x,"push"),r.h("div",{class:v.value,style:a.value,...g.value},x)}}}),_e({name:"QResponsive",props:wu,setup(e,{slots:t}){const n=Cu(e);return()=>r.h("div",{class:"q-responsive"},[r.h("div",{class:"q-responsive__filler overflow-hidden"},[r.h("div",{style:n.value})]),r.h("div",{class:"q-responsive__content absolute-full fit"},Ke(t.default))])}});var kw=_e({props:["store","barStyle","verticalBarStyle","horizontalBarStyle"],setup(e){return()=>[r.h("div",{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":"true",onMousedown:e.store.onVerticalMousedown}),r.h("div",{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":"true",onMousedown:e.store.onHorizontalMousedown}),r.withDirectives(r.h("div",{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":"true"}),e.store.thumbVertDir),r.withDirectives(r.h("div",{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":"true"}),e.store.thumbHorizDir)]}}),Bm=["vertical","horizontal"],Ou={vertical:{offset:"offsetY",scroll:"scrollTop",dir:"down",dist:"y"},horizontal:{offset:"offsetX",scroll:"scrollLeft",dir:"right",dist:"x"}},zm={prevent:!0,mouse:!0,mouseAllDir:!0},Hm=e=>e>=250?50:Math.ceil(e/5);_e({name:"QScrollArea",props:{...bt,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:[0,0]},horizontalOffset:{type:Array,default:[0,0]},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(e,{slots:t,emit:n}){const o=r.ref(!1),a=r.ref(!1),i=r.ref(!1),l={vertical:r.ref(0),horizontal:r.ref(0)},s={vertical:{ref:r.ref(null),position:r.ref(0),size:r.ref(0)},horizontal:{ref:r.ref(null),position:r.ref(0),size:r.ref(0)}},{proxy:d}=r.getCurrentInstance(),m=yt(e,d.$q);let v=null,b;const p=r.ref(null),_=r.computed(()=>"q-scrollarea"+(m.value===!0?" q-scrollarea--dark":""));Object.assign(l,{verticalInner:r.computed(()=>l.vertical.value-e.verticalOffset[0]-e.verticalOffset[1]),horizontalInner:r.computed(()=>l.horizontal.value-e.horizontalOffset[0]-e.horizontalOffset[1])}),s.vertical.percentage=r.computed(()=>{const P=s.vertical.size.value-l.vertical.value;if(P<=0)return 0;const F=Mt(s.vertical.position.value/P,0,1);return Math.round(F*1e4)/1e4}),s.vertical.thumbHidden=r.computed(()=>(e.visible===null?i.value:e.visible)!==!0&&o.value===!1&&a.value===!1||s.vertical.size.value<=l.vertical.value+1),s.vertical.thumbStart=r.computed(()=>e.verticalOffset[0]+s.vertical.percentage.value*(l.verticalInner.value-s.vertical.thumbSize.value)),s.vertical.thumbSize=r.computed(()=>Math.round(Mt(l.verticalInner.value*l.verticalInner.value/s.vertical.size.value,Hm(l.verticalInner.value),l.verticalInner.value))),s.vertical.style=r.computed(()=>({...e.thumbStyle,...e.verticalThumbStyle,top:`${s.vertical.thumbStart.value}px`,height:`${s.vertical.thumbSize.value}px`,right:`${e.horizontalOffset[1]}px`})),s.vertical.thumbClass=r.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--v absolute-right"+(s.vertical.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),s.vertical.barClass=r.computed(()=>"q-scrollarea__bar q-scrollarea__bar--v absolute-right"+(s.vertical.thumbHidden.value===!0?" q-scrollarea__bar--invisible":"")),s.horizontal.percentage=r.computed(()=>{const P=s.horizontal.size.value-l.horizontal.value;if(P<=0)return 0;const F=Mt(Math.abs(s.horizontal.position.value)/P,0,1);return Math.round(F*1e4)/1e4}),s.horizontal.thumbHidden=r.computed(()=>(e.visible===null?i.value:e.visible)!==!0&&o.value===!1&&a.value===!1||s.horizontal.size.value<=l.horizontal.value+1),s.horizontal.thumbStart=r.computed(()=>e.horizontalOffset[0]+s.horizontal.percentage.value*(l.horizontalInner.value-s.horizontal.thumbSize.value)),s.horizontal.thumbSize=r.computed(()=>Math.round(Mt(l.horizontalInner.value*l.horizontalInner.value/s.horizontal.size.value,Hm(l.horizontalInner.value),l.horizontalInner.value))),s.horizontal.style=r.computed(()=>({...e.thumbStyle,...e.horizontalThumbStyle,[d.$q.lang.rtl===!0?"right":"left"]:`${s.horizontal.thumbStart.value}px`,width:`${s.horizontal.thumbSize.value}px`,bottom:`${e.verticalOffset[1]}px`})),s.horizontal.thumbClass=r.computed(()=>"q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom"+(s.horizontal.thumbHidden.value===!0?" q-scrollarea__thumb--invisible":"")),s.horizontal.barClass=r.computed(()=>"q-scrollarea__bar q-scrollarea__bar--h absolute-bottom"+(s.horizontal.thumbHidden.value===!0?" q-scrollarea__bar--invisible":""));const g=r.computed(()=>s.vertical.thumbHidden.value===!0&&s.horizontal.thumbHidden.value===!0?e.contentStyle:e.contentActiveStyle);function E(){const P={};return Bm.forEach(F=>{const Y=s[F];Object.assign(P,{[F+"Position"]:Y.position.value,[F+"Percentage"]:Y.percentage.value,[F+"Size"]:Y.size.value,[F+"ContainerSize"]:l[F].value,[F+"ContainerInnerSize"]:l[F+"Inner"].value})}),P}const C=fo(()=>{const P=E();P.ref=d,n("scroll",P)},0);function w(P,F,Y){if(Bm.includes(P)===!1){console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");return}(P==="vertical"?xo:Ls)(p.value,F,Y)}function T({height:P,width:F}){let Y=!1;l.vertical.value!==P&&(l.vertical.value=P,Y=!0),l.horizontal.value!==F&&(l.horizontal.value=F,Y=!0),Y===!0&&k()}function x({position:P}){let F=!1;s.vertical.position.value!==P.top&&(s.vertical.position.value=P.top,F=!0),s.horizontal.position.value!==P.left&&(s.horizontal.position.value=P.left,F=!0),F===!0&&k()}function y({height:P,width:F}){s.horizontal.size.value!==F&&(s.horizontal.size.value=F,k()),s.vertical.size.value!==P&&(s.vertical.size.value=P,k())}function q(P,F){const Y=s[F];if(P.isFirst===!0){if(Y.thumbHidden.value===!0)return;b=Y.position.value,a.value=!0}else if(a.value!==!0)return;P.isFinal===!0&&(a.value=!1);const X=Ou[F],Z=(Y.size.value-l[F].value)/(l[F+"Inner"].value-Y.thumbSize.value),ce=P.distance[X.dist],Ee=b+(P.direction===X.dir?1:-1)*ce*Z;H(Ee,F)}function L(P,F){const Y=s[F];if(Y.thumbHidden.value!==!0){const X=F==="vertical"?e.verticalOffset[0]:e.horizontalOffset[0],Z=P[Ou[F].offset]-X,ce=Y.thumbStart.value-X;if(Z<ce||Z>ce+Y.thumbSize.value){const Ee=Z-Y.thumbSize.value/2,G=Mt(Ee/(l[F+"Inner"].value-Y.thumbSize.value),0,1);H(G*Math.max(0,Y.size.value-l[F].value),F)}Y.ref.value!==null&&Y.ref.value.dispatchEvent(new MouseEvent(P.type,P))}}function k(){o.value=!0,v!==null&&clearTimeout(v),v=setTimeout(()=>{v=null,o.value=!1},e.delay),e.onScroll!==void 0&&C()}function H(P,F){p.value[Ou[F].scroll]=P}let ee=null;function N(){ee!==null&&clearTimeout(ee),ee=setTimeout(()=>{ee=null,i.value=!0},d.$q.platform.is.ios?50:0)}function I(){ee!==null&&(clearTimeout(ee),ee=null),i.value=!1}let $=null;r.watch(()=>d.$q.lang.rtl,P=>{p.value!==null&&Ls(p.value,Math.abs(s.horizontal.position.value)*(P===!0?-1:1))}),r.onDeactivated(()=>{$={top:s.vertical.position.value,left:s.horizontal.position.value}}),r.onActivated(()=>{if($===null)return;const P=p.value;P!==null&&(Ls(P,$.left),xo(P,$.top))}),r.onBeforeUnmount(C.cancel),Object.assign(d,{getScrollTarget:()=>p.value,getScroll:E,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(P,F,Y){w(P,F*(s[P].size.value-l[P].value)*(P==="horizontal"&&d.$q.lang.rtl===!0?-1:1),Y)}});const D={scroll:s,thumbVertDir:[[Rn,P=>{q(P,"vertical")},void 0,{vertical:!0,...zm}]],thumbHorizDir:[[Rn,P=>{q(P,"horizontal")},void 0,{horizontal:!0,...zm}]],onVerticalMousedown(P){L(P,"vertical")},onHorizontalMousedown(P){L(P,"horizontal")}};return()=>r.h("div",{class:_.value,onMouseenter:N,onMouseleave:I},[r.h("div",{ref:p,class:"q-scrollarea__container scroll relative-position fit hide-scrollbar",tabindex:e.tabindex!==void 0?e.tabindex:void 0},[r.h("div",{class:"q-scrollarea__content absolute",style:g.value},Ht(t.default,[r.h(Wr,{debounce:0,onResize:y})])),r.h(Nm,{axis:"both",onScroll:x})]),r.h(Wr,{debounce:0,onResize:T}),r.h(kw,{store:D,barStyle:e.barStyle,verticalBarStyle:e.verticalBarStyle,horizontalBarStyle:e.horizontalBarStyle})])}});var zn=1e3,Ew=["start","center","end","start-force","center-force","end-force"],jm=Array.prototype.filter,Tw=__QUASAR_SSR__||window.getComputedStyle(document.body).overflowAnchor===void 0?Kt:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;const n=e.children||[];jm.call(n,a=>a.dataset&&a.dataset.qVsAnchor!==void 0).forEach(a=>{delete a.dataset.qVsAnchor});const o=n[t];o?.dataset&&(o.dataset.qVsAnchor="")}))};function Ao(e,t){return e+t}function qu(e,t,n,o,a,i,l,s){const d=e===window?document.scrollingElement||document.documentElement:e,m=a===!0?"offsetWidth":"offsetHeight",v={scrollStart:0,scrollViewSize:-l-s,scrollMaxSize:0,offsetStart:-l,offsetEnd:-s};if(a===!0?(e===window?(v.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,v.scrollViewSize+=document.documentElement.clientWidth):(v.scrollStart=d.scrollLeft,v.scrollViewSize+=d.clientWidth),v.scrollMaxSize=d.scrollWidth,i===!0&&(v.scrollStart=(da===!0?v.scrollMaxSize-v.scrollViewSize:0)-v.scrollStart)):(e===window?(v.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,v.scrollViewSize+=document.documentElement.clientHeight):(v.scrollStart=d.scrollTop,v.scrollViewSize+=d.clientHeight),v.scrollMaxSize=d.scrollHeight),n!==null)for(let b=n.previousElementSibling;b!==null;b=b.previousElementSibling)b.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetStart+=b[m]);if(o!==null)for(let b=o.nextElementSibling;b!==null;b=b.nextElementSibling)b.classList.contains("q-virtual-scroll--skip")===!1&&(v.offsetEnd+=b[m]);if(t!==e){const b=d.getBoundingClientRect(),p=t.getBoundingClientRect();a===!0?(v.offsetStart+=p.left-b.left,v.offsetEnd-=p.width):(v.offsetStart+=p.top-b.top,v.offsetEnd-=p.height),e!==window&&(v.offsetStart+=v.scrollStart),v.offsetEnd+=v.scrollMaxSize-v.offsetStart}return v}function Um(e,t,n,o){t==="end"&&(t=(e===window?document.body:e)[n===!0?"scrollWidth":"scrollHeight"]),e===window?n===!0?(o===!0&&(t=(da===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):n===!0?(o===!0&&(t=(da===!0?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function ga(e,t,n,o){if(n>=o)return 0;const a=t.length,i=Math.floor(n/zn),l=Math.floor((o-1)/zn)+1;let s=e.slice(i,l).reduce(Ao,0);return n%zn!==0&&(s-=t.slice(i*zn,n).reduce(Ao,0)),o%zn!==0&&o!==a&&(s-=t.slice(o,l*zn).reduce(Ao,0)),s}var Qm={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},Wm=Object.keys(Qm),Mu={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...Qm};function Ym({virtualScrollLength:e,getVirtualScrollTarget:t,getVirtualScrollEl:n,virtualScrollItemSizeComputed:o}){const a=r.getCurrentInstance(),{props:i,emit:l,proxy:s}=a,{$q:d}=s;let m,v,b,p=[],_;const g=r.ref(0),E=r.ref(0),C=r.ref({}),w=r.ref(null),T=r.ref(null),x=r.ref(null),y=r.ref({from:0,to:0}),q=r.computed(()=>i.tableColspan!==void 0?i.tableColspan:100);o===void 0&&(o=r.computed(()=>i.virtualScrollItemSize));const L=r.computed(()=>o.value+";"+i.virtualScrollHorizontal),k=r.computed(()=>L.value+";"+i.virtualScrollSliceRatioBefore+";"+i.virtualScrollSliceRatioAfter);r.watch(k,()=>{Y()}),r.watch(L,H);function H(){F(v,!0)}function ee(G){F(G===void 0?v:G)}function N(G,R){const ae=t();if(ae==null||ae.nodeType===8)return;const J=qu(ae,n(),w.value,T.value,i.virtualScrollHorizontal,d.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd);b!==J.scrollViewSize&&Y(J.scrollViewSize),$(ae,J,Math.min(e.value-1,Math.max(0,parseInt(G,10)||0)),0,Ew.indexOf(R)!==-1?R:v!==-1&&G>v?"end":"start")}function I(){const G=t();if(G==null||G.nodeType===8)return;const R=qu(G,n(),w.value,T.value,i.virtualScrollHorizontal,d.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd),ae=e.value-1,J=R.scrollMaxSize-R.offsetStart-R.offsetEnd-E.value;if(m===R.scrollStart)return;if(R.scrollMaxSize<=0){$(G,R,0,0);return}b!==R.scrollViewSize&&Y(R.scrollViewSize),D(y.value.from);const be=Math.floor(R.scrollMaxSize-Math.max(R.scrollViewSize,R.offsetEnd)-Math.min(_[ae],R.scrollViewSize/2));if(be>0&&Math.ceil(R.scrollStart)>=be){$(G,R,ae,R.scrollMaxSize-R.offsetEnd-p.reduce(Ao,0));return}let W=0,ne=R.scrollStart-R.offsetStart,we=ne;if(ne<=J&&ne+R.scrollViewSize>=g.value)ne-=g.value,W=y.value.from,we=ne;else for(let Q=0;ne>=p[Q]&&W<ae;Q++)ne-=p[Q],W+=zn;for(;ne>0&&W<ae;)ne-=_[W],ne>-R.scrollViewSize?(W++,we=ne):we=_[W]+ne;$(G,R,W,we)}function $(G,R,ae,J,be){const W=typeof be=="string"&&be.indexOf("-force")!==-1,ne=W===!0?be.replace("-force",""):be,we=ne!==void 0?ne:"start";let Q=Math.max(0,ae-C.value[we]),Oe=Q+C.value.total;Oe>e.value&&(Oe=e.value,Q=Math.max(0,Oe-C.value.total)),m=R.scrollStart;const Le=Q!==y.value.from||Oe!==y.value.to;if(Le===!1&&ne===void 0){Z(ae);return}const{activeElement:le}=document,qe=x.value;Le===!0&&qe!==null&&qe!==le&&qe.contains(le)===!0&&(qe.addEventListener("focusout",P),setTimeout(()=>{qe?.removeEventListener("focusout",P)})),Tw(qe,ae-Q);const Re=ne!==void 0?_.slice(Q,ae).reduce(Ao,0):0;if(Le===!0){const Fe=Oe>=y.value.from&&Q<=y.value.to?y.value.to:Oe;y.value={from:Q,to:Fe},g.value=ga(p,_,0,Q),E.value=ga(p,_,Oe,e.value),requestAnimationFrame(()=>{y.value.to!==Oe&&m===R.scrollStart&&(y.value={from:y.value.from,to:Oe},E.value=ga(p,_,Oe,e.value))})}requestAnimationFrame(()=>{if(m!==R.scrollStart)return;Le===!0&&D(Q);const Fe=_.slice(Q,ae).reduce(Ao,0),He=Fe+R.offsetStart+g.value,ke=He+_[ae];let z=He+J;if(ne!==void 0){const K=Fe-Re,ve=R.scrollStart+K;z=W!==!0&&ve<He&&ke<ve+R.scrollViewSize?ve:ne==="end"?ke-R.scrollViewSize:He-(ne==="start"?0:Math.round((R.scrollViewSize-_[ae])/2))}m=z,Um(G,z,i.virtualScrollHorizontal,d.lang.rtl),Z(ae)})}function D(G){const R=x.value;if(R){const ae=jm.call(R.children,Q=>Q.classList&&Q.classList.contains("q-virtual-scroll--skip")===!1),J=ae.length,be=i.virtualScrollHorizontal===!0?Q=>Q.getBoundingClientRect().width:Q=>Q.offsetHeight;let W=G,ne,we;for(let Q=0;Q<J;){for(ne=be(ae[Q]),Q++;Q<J&&ae[Q].classList.contains("q-virtual-scroll--with-prev")===!0;)ne+=be(ae[Q]),Q++;we=ne-_[W],we!==0&&(_[W]+=we,p[Math.floor(W/zn)]+=we),W++}}}function P(){x.value?.focus()}function F(G,R){const ae=1*o.value;(R===!0||Array.isArray(_)===!1)&&(_=[]);const J=_.length;_.length=e.value;for(let W=e.value-1;W>=J;W--)_[W]=ae;const be=Math.floor((e.value-1)/zn);p=[];for(let W=0;W<=be;W++){let ne=0;const we=Math.min((W+1)*zn,e.value);for(let Q=W*zn;Q<we;Q++)ne+=_[Q];p.push(ne)}v=-1,m=void 0,g.value=ga(p,_,0,y.value.from),E.value=ga(p,_,y.value.to,e.value),G>=0?(D(y.value.from),r.nextTick(()=>{N(G)})):ce()}function Y(G){if(G===void 0&&typeof window<"u"){const ne=t();ne!=null&&ne.nodeType!==8&&(G=qu(ne,n(),w.value,T.value,i.virtualScrollHorizontal,d.lang.rtl,i.virtualScrollStickySizeStart,i.virtualScrollStickySizeEnd).scrollViewSize)}b=G;const R=parseFloat(i.virtualScrollSliceRatioBefore)||0,ae=parseFloat(i.virtualScrollSliceRatioAfter)||0,J=1+R+ae,be=G===void 0||G<=0?1:Math.ceil(G/o.value),W=Math.max(1,be,Math.ceil((i.virtualScrollSliceSize>0?i.virtualScrollSliceSize:10)/J));C.value={total:Math.ceil(W*J),start:Math.ceil(W*R),center:Math.ceil(W*(.5+R)),end:Math.ceil(W*(1+R)),view:be}}function X(G,R){const ae=i.virtualScrollHorizontal===!0?"width":"height",J={["--q-virtual-scroll-item-"+ae]:o.value+"px"};return[G==="tbody"?r.h(G,{class:"q-virtual-scroll__padding",key:"before",ref:w},[r.h("tr",[r.h("td",{style:{[ae]:`${g.value}px`,...J},colspan:q.value})])]):r.h(G,{class:"q-virtual-scroll__padding",key:"before",ref:w,style:{[ae]:`${g.value}px`,...J}}),r.h(G,{class:"q-virtual-scroll__content",key:"content",ref:x,tabindex:-1},R.flat()),G==="tbody"?r.h(G,{class:"q-virtual-scroll__padding",key:"after",ref:T},[r.h("tr",[r.h("td",{style:{[ae]:`${E.value}px`,...J},colspan:q.value})])]):r.h(G,{class:"q-virtual-scroll__padding",key:"after",ref:T,style:{[ae]:`${E.value}px`,...J}})]}function Z(G){v!==G&&(i.onVirtualScroll!==void 0&&l("virtualScroll",{index:G,from:y.value.from,to:y.value.to-1,direction:G<v?"decrease":"increase",ref:s}),v=G)}Y();const ce=fo(I,d.platform.is.ios===!0?120:35);r.onBeforeMount(()=>{Y()});let Ee=!1;return r.onDeactivated(()=>{Ee=!0}),r.onActivated(()=>{if(Ee!==!0)return;const G=t();m!==void 0&&G!==void 0&&G!==null&&G.nodeType!==8?Um(G,m,i.virtualScrollHorizontal,d.lang.rtl):N(v)}),__QUASAR_SSR__||r.onBeforeUnmount(()=>{ce.cancel()}),Object.assign(s,{scrollTo:N,reset:H,refresh:ee}),{virtualScrollSliceRange:y,virtualScrollSliceSizeComputed:C,setVirtualScrollSize:Y,onVirtualScrollEvt:ce,localResetVirtualScroll:F,padVirtualScroll:X,scrollTo:N,reset:H,refresh:ee}}var Km=e=>["add","add-unique","toggle"].includes(e),Ow=".*+?^${}()|[]\\",qw=Object.keys(zi);function Pu(e,t){if(typeof e=="function")return e;const n=e!==void 0?e:t;return o=>o!==null&&typeof o=="object"&&n in o?o[n]:o}var Mw=_e({name:"QSelect",inheritAttrs:!1,props:{...Mu,...An,...zi,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Km},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:e=>["default","menu","dialog"].includes(e),default:"default"},virtualScrollItemSize:Mu.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...Hi,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),{$q:a}=o,i=r.ref(!1),l=r.ref(!1),s=r.ref(-1),d=r.ref(""),m=r.ref(!1),v=r.ref(!1);let b=null,p=null,_,g,E,C=null,w,T,x,y;const q=r.ref(null),L=r.ref(null),k=r.ref(null),H=r.ref(null),ee=r.ref(null),N=Bs(e),I=qm(pe),$=r.computed(()=>Array.isArray(e.options)?e.options.length:0),D=r.computed(()=>e.virtualScrollItemSize===void 0?e.optionsDense===!0?24:48:e.virtualScrollItemSize),{virtualScrollSliceRange:P,virtualScrollSliceSizeComputed:F,localResetVirtualScroll:Y,padVirtualScroll:X,onVirtualScrollEvt:Z,scrollTo:ce,setVirtualScrollSize:Ee}=Ym({virtualScrollLength:$,getVirtualScrollTarget:Vt,getVirtualScrollEl:Tt,virtualScrollItemSizeComputed:D}),G=ji(),R=r.computed(()=>{const re=e.mapOptions===!0&&e.multiple!==!0,Ue=e.modelValue!==void 0&&(e.modelValue!==null||re===!0)?e.multiple===!0&&Array.isArray(e.modelValue)?e.modelValue:[e.modelValue]:[];if(e.mapOptions===!0&&Array.isArray(e.options)===!0){const Qe=e.mapOptions===!0&&_!==void 0?_:[],pt=Ue.map(It=>de(It,Qe));return e.modelValue===null&&re===!0?pt.filter(It=>It!==null):pt}return Ue}),ae=r.computed(()=>{const re={};return qw.forEach(Ue=>{const Qe=e[Ue];Qe!==void 0&&(re[Ue]=Qe)}),re}),J=r.computed(()=>e.optionsDark===null?G.isDark.value:e.optionsDark),be=r.computed(()=>Xr(R.value)),W=r.computed(()=>{let re="q-field__input q-placeholder col";return e.hideSelected===!0||R.value.length===0?[re,e.inputClass]:(re+=" q-field__input--padding",e.inputClass===void 0?re:[re,e.inputClass])}),ne=r.computed(()=>(e.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(e.popupContentClass?" "+e.popupContentClass:"")),we=r.computed(()=>$.value===0),Q=r.computed(()=>R.value.map(re=>se.value(re)).join(", ")),Oe=r.computed(()=>e.displayValue!==void 0?e.displayValue:Q.value),Le=r.computed(()=>e.optionsHtml===!0?()=>!0:re=>re?.html===!0),le=r.computed(()=>e.displayValueHtml===!0||e.displayValue===void 0&&(e.optionsHtml===!0||R.value.some(Le.value))),qe=r.computed(()=>G.focused.value===!0?e.tabindex:-1),Re=r.computed(()=>{const re={tabindex:e.tabindex,role:"combobox","aria-label":e.label,"aria-readonly":e.readonly===!0?"true":"false","aria-autocomplete":e.useInput===!0?"list":"none","aria-expanded":i.value===!0?"true":"false","aria-controls":`${G.targetUid.value}_lb`};return s.value>=0&&(re["aria-activedescendant"]=`${G.targetUid.value}_${s.value}`),re}),Fe=r.computed(()=>({id:`${G.targetUid.value}_lb`,role:"listbox","aria-multiselectable":e.multiple===!0?"true":"false"})),He=r.computed(()=>R.value.map((re,Ue)=>({index:Ue,opt:re,html:Le.value(re),selected:!0,removeAtIndex:Be,toggleOption:ut,tabindex:qe.value}))),ke=r.computed(()=>{if($.value===0)return[];const{from:re,to:Ue}=P.value;return e.options.slice(re,Ue).map((Qe,pt)=>{const It=Se.value(Qe)===!0,Ot=xe(Qe)===!0,Xt=re+pt,Nt={clickable:!0,active:Ot,activeClass:ve.value,manualFocus:!0,focused:!1,disable:It,tabindex:-1,dense:e.optionsDense,dark:J.value,role:"option","aria-selected":Ot===!0?"true":"false",id:`${G.targetUid.value}_${Xt}`,onClick:()=>{ut(Qe)}};return It!==!0&&(s.value===Xt&&(Nt.focused=!0),a.platform.is.desktop===!0&&(Nt.onMousemove=()=>{i.value===!0&&fe(Xt)})),{index:Xt,opt:Qe,html:Le.value(Qe),label:se.value(Qe),selected:Nt.active,focused:Nt.focused,toggleOption:ut,setOptionIndex:fe,itemProps:Nt}})}),z=r.computed(()=>e.dropdownIcon!==void 0?e.dropdownIcon:a.iconSet.arrow.dropdown),K=r.computed(()=>e.optionsCover===!1&&e.outlined!==!0&&e.standout!==!0&&e.borderless!==!0&&e.rounded!==!0),ve=r.computed(()=>e.optionsSelectedClass!==void 0?e.optionsSelectedClass:e.color!==void 0?`text-${e.color}`:""),oe=r.computed(()=>Pu(e.optionValue,"value")),se=r.computed(()=>Pu(e.optionLabel,"label")),Se=r.computed(()=>Pu(e.optionDisable,"disable")),Te=r.computed(()=>R.value.map(oe.value)),ue=r.computed(()=>{const re={onInput:pe,onChange:I,onKeydown:_t,onKeyup:Ge,onKeypress:st,onFocus:ze,onClick(Ue){g===!0&&$t(Ue)}};return re.onCompositionstart=re.onCompositionupdate=re.onCompositionend=I,re});r.watch(R,re=>{_=re,e.useInput===!0&&e.fillInput===!0&&e.multiple!==!0&&G.innerLoading.value!==!0&&(l.value!==!0&&i.value!==!0||be.value!==!0)&&(E!==!0&&Ve(),(l.value===!0||i.value===!0)&&Ze(""))},{immediate:!0}),r.watch(()=>e.fillInput,Ve),r.watch(i,Io),r.watch($,nl);function ge(re){return e.emitValue===!0?oe.value(re):re}function Ne(re){if(re!==-1&&re<R.value.length)if(e.multiple===!0){const Ue=e.modelValue.slice();n("remove",{index:re,value:Ue.splice(re,1)[0]}),n("update:modelValue",Ue)}else n("update:modelValue",null)}function Be(re){Ne(re),G.focus()}function dt(re,Ue){const Qe=ge(re);if(e.multiple!==!0){e.fillInput===!0&&Je(se.value(re),!0,!0),n("update:modelValue",Qe);return}if(R.value.length===0){n("add",{index:0,value:Qe}),n("update:modelValue",e.multiple===!0?[Qe]:Qe);return}if(Ue===!0&&xe(re)===!0||e.maxValues!==void 0&&e.modelValue.length>=e.maxValues)return;const pt=e.modelValue.slice();n("add",{index:pt.length,value:Qe}),pt.push(Qe),n("update:modelValue",pt)}function ut(re,Ue){if(G.editable.value!==!0||re===void 0||Se.value(re)===!0)return;const Qe=oe.value(re);if(e.multiple!==!0){Ue!==!0&&(Je(e.fillInput===!0?se.value(re):"",!0,!0),mt()),L.value?.focus(),(R.value.length===0||$n(oe.value(R.value[0]),Qe)!==!0)&&n("update:modelValue",e.emitValue===!0?Qe:re);return}if((g!==!0||m.value===!0)&&G.focus(),ze(),R.value.length===0){const Ot=e.emitValue===!0?Qe:re;n("add",{index:0,value:Ot}),n("update:modelValue",e.multiple===!0?[Ot]:Ot);return}const pt=e.modelValue.slice(),It=Te.value.findIndex(Ot=>$n(Ot,Qe));if(It!==-1)n("remove",{index:It,value:pt.splice(It,1)[0]});else{if(e.maxValues!==void 0&&pt.length>=e.maxValues)return;const Ot=e.emitValue===!0?Qe:re;n("add",{index:pt.length,value:Ot}),pt.push(Ot)}n("update:modelValue",pt)}function fe(re){if(a.platform.is.desktop!==!0)return;const Ue=re!==-1&&re<$.value?re:-1;s.value!==Ue&&(s.value=Ue)}function Ce(re=1,Ue){if(i.value===!0){let Qe=s.value;do Qe=ii(Qe+re,-1,$.value-1);while(Qe!==-1&&Qe!==s.value&&Se.value(e.options[Qe])===!0);s.value!==Qe&&(fe(Qe),ce(Qe),Ue!==!0&&e.useInput===!0&&e.fillInput===!0&&De(Qe>=0?se.value(e.options[Qe]):w,!0))}}function de(re,Ue){const Qe=pt=>$n(oe.value(pt),re);return e.options.find(Qe)||Ue.find(Qe)||re}function xe(re){const Ue=oe.value(re);return Te.value.find(Qe=>$n(Qe,Ue))!==void 0}function ze(re){e.useInput===!0&&L.value!==null&&(re===void 0||L.value===re.target&&re.target.value===Q.value)&&L.value.select()}function rt(re){qn(re,27)===!0&&i.value===!0&&($t(re),mt(),Ve()),n("keyup",re)}function Ge(re){const{value:Ue}=re.target;if(re.keyCode!==void 0){rt(re);return}if(re.target.value="",b!==null&&(clearTimeout(b),b=null),p!==null&&(clearTimeout(p),p=null),Ve(),typeof Ue=="string"&&Ue.length!==0){const Qe=Ue.toLocaleLowerCase(),pt=Ot=>{const Xt=e.options.find(Nt=>String(Ot.value(Nt)).toLocaleLowerCase()===Qe);return Xt===void 0?!1:(R.value.indexOf(Xt)===-1?ut(Xt):mt(),!0)},It=Ot=>{pt(oe)!==!0&&Ot!==!0&&pt(se)!==!0&&Ze(Ue,!0,()=>It(!0))};It()}else G.clearValue(re)}function st(re){n("keypress",re)}function _t(re){if(n("keydown",re),Nr(re)===!0)return;const Ue=d.value.length!==0&&(e.newValueMode!==void 0||e.onNewValue!==void 0),Qe=re.shiftKey!==!0&&e.disableTabSelection!==!0&&e.multiple!==!0&&(s.value!==-1||Ue===!0);if(re.keyCode===27){Zt(re);return}if(re.keyCode===9&&Qe===!1){We();return}if(re.target===void 0||re.target.id!==G.targetUid.value||G.editable.value!==!0)return;if(re.keyCode===40&&G.innerLoading.value!==!0&&i.value===!1){ct(re),nt();return}if(re.keyCode===8&&(e.useChips===!0||e.clearable===!0)&&e.hideSelected!==!0&&d.value.length===0){e.multiple===!0&&Array.isArray(e.modelValue)===!0?Ne(e.modelValue.length-1):e.multiple!==!0&&e.modelValue!==null&&n("update:modelValue",null);return}(re.keyCode===35||re.keyCode===36)&&(typeof d.value!="string"||d.value.length===0)&&(ct(re),s.value=-1,Ce(re.keyCode===36?1:-1,e.multiple)),(re.keyCode===33||re.keyCode===34)&&F.value!==void 0&&(ct(re),s.value=Math.max(-1,Math.min($.value,s.value+(re.keyCode===33?-1:1)*F.value.view)),Ce(re.keyCode===33?1:-1,e.multiple)),(re.keyCode===38||re.keyCode===40)&&(ct(re),Ce(re.keyCode===38?-1:1,e.multiple));const pt=$.value;if((x===void 0||y<Date.now())&&(x=""),pt>0&&e.useInput!==!0&&re.key!==void 0&&re.key.length===1&&re.altKey===!1&&re.ctrlKey===!1&&re.metaKey===!1&&(re.keyCode!==32||x.length!==0)){i.value!==!0&&nt(re);const It=re.key.toLocaleLowerCase(),Ot=x.length===1&&x[0]===It;y=Date.now()+1500,Ot===!1&&(ct(re),x+=It);const Xt=new RegExp("^"+x.split("").map(Do=>Ow.indexOf(Do)!==-1?"\\"+Do:Do).join(".*"),"i");let Nt=s.value;if(Ot===!0||Nt<0||Xt.test(se.value(e.options[Nt]))!==!0)do Nt=ii(Nt+1,-1,pt-1);while(Nt!==s.value&&(Se.value(e.options[Nt])===!0||Xt.test(se.value(e.options[Nt]))!==!0));s.value!==Nt&&r.nextTick(()=>{fe(Nt),ce(Nt),Nt>=0&&e.useInput===!0&&e.fillInput===!0&&De(se.value(e.options[Nt]),!0)});return}if(!(re.keyCode!==13&&(re.keyCode!==32||e.useInput===!0||x!=="")&&(re.keyCode!==9||Qe===!1))){if(re.keyCode!==9&&ct(re),s.value!==-1&&s.value<pt){ut(e.options[s.value]);return}if(Ue===!0){const It=(Ot,Xt)=>{if(Xt){if(Km(Xt)!==!0)return}else Xt=e.newValueMode;if(Je("",e.multiple!==!0,!0),Ot==null)return;(Xt==="toggle"?ut:dt)(Ot,Xt==="add-unique"),e.multiple!==!0&&(L.value?.focus(),mt())};if(e.onNewValue!==void 0?n("newValue",d.value,It):It(d.value),e.multiple!==!0)return}i.value===!0?We():G.innerLoading.value!==!0&&nt()}}function Tt(){return g===!0?ee.value:k.value!==null&&k.value.contentEl!==null?k.value.contentEl:void 0}function Vt(){return Tt()}function Ln(){return e.hideSelected===!0?[]:t["selected-item"]!==void 0?He.value.map(re=>t["selected-item"](re)).slice():t.selected!==void 0?[].concat(t.selected()):e.useChips===!0?He.value.map((re,Ue)=>r.h(pv,{key:"option-"+Ue,removable:G.editable.value===!0&&Se.value(re.opt)!==!0,dense:!0,textColor:e.color,tabindex:qe.value,onRemove(){re.removeAtIndex(Ue)}},()=>r.h("span",{class:"ellipsis",[re.html===!0?"innerHTML":"textContent"]:se.value(re.opt)}))):[r.h("span",{class:"ellipsis",[le.value===!0?"innerHTML":"textContent"]:Oe.value})]}function vn(){if(we.value===!0)return t["no-option"]!==void 0?t["no-option"]({inputValue:d.value}):void 0;const re=t.option!==void 0?t.option:Qe=>r.h(Bi,{key:Qe.index,...Qe.itemProps},()=>r.h(_r,()=>r.h(bu,()=>r.h("span",{[Qe.html===!0?"innerHTML":"textContent"]:Qe.label}))));let Ue=X("div",ke.value.map(re));return t["before-options"]!==void 0&&(Ue=t["before-options"]().concat(Ue)),Ht(t["after-options"],Ue)}function wn(re,Ue){const Qe=Ue===!0?{...Re.value,...G.splitAttrs.attributes.value}:void 0,pt={ref:Ue===!0?L:void 0,key:"i_t",class:W.value,style:e.inputStyle,value:d.value!==void 0?d.value:"",type:"search",...Qe,id:Ue===!0?G.targetUid.value:void 0,maxlength:e.maxlength,autocomplete:e.autocomplete,"data-autofocus":re===!0||e.autofocus===!0||void 0,disabled:e.disable===!0,readonly:e.readonly===!0,...ue.value};return re!==!0&&g===!0&&(Array.isArray(pt.class)===!0?pt.class=[...pt.class,"no-pointer-events"]:pt.class+=" no-pointer-events"),r.h("input",pt)}function pe(re){b!==null&&(clearTimeout(b),b=null),p!==null&&(clearTimeout(p),p=null),!(re&&re.target&&re.target.qComposing===!0)&&(De(re.target.value||""),E=!0,w=d.value,G.focused.value!==!0&&(g!==!0||m.value===!0)&&G.focus(),e.onFilter!==void 0&&(b=setTimeout(()=>{b=null,Ze(d.value)},e.inputDebounce)))}function De(re,Ue){d.value!==re&&(d.value=re,Ue===!0||e.inputDebounce===0||e.inputDebounce==="0"?n("inputValue",re):p=setTimeout(()=>{p=null,n("inputValue",re)},e.inputDebounce))}function Je(re,Ue,Qe){E=Qe!==!0,e.useInput===!0&&(De(re,!0),(Ue===!0||Qe!==!0)&&(w=re),Ue!==!0&&Ze(re))}function Ze(re,Ue,Qe){if(e.onFilter===void 0||Ue!==!0&&G.focused.value!==!0)return;G.innerLoading.value===!0?n("filterAbort"):(G.innerLoading.value=!0,v.value=!0),re!==""&&e.multiple!==!0&&R.value.length!==0&&E!==!0&&re===se.value(R.value[0])&&(re="");const pt=setTimeout(()=>{i.value===!0&&(i.value=!1)},10);C!==null&&clearTimeout(C),C=pt,n("filter",re,(It,Ot)=>{(Ue===!0||G.focused.value===!0)&&C===pt&&(clearTimeout(C),typeof It=="function"&&It(),v.value=!1,r.nextTick(()=>{G.innerLoading.value=!1,G.editable.value===!0&&(Ue===!0?i.value===!0&&mt():i.value===!0?Io(!0):i.value=!0),typeof Ot=="function"&&r.nextTick(()=>{Ot(o)}),typeof Qe=="function"&&r.nextTick(()=>{Qe(o)})}))},()=>{G.focused.value===!0&&C===pt&&(clearTimeout(C),G.innerLoading.value=!1,v.value=!1),i.value===!0&&(i.value=!1)})}function it(){return r.h(xi,{ref:k,class:ne.value,style:e.popupContentStyle,modelValue:i.value,fit:e.menuShrink!==!0,cover:e.optionsCover===!0&&we.value!==!0&&e.useInput!==!0,anchor:e.menuAnchor,self:e.menuSelf,offset:e.menuOffset,dark:J.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:e.popupNoRouteDismiss,square:K.value,transitionShow:e.transitionShow,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,separateClosePopup:!0,...Fe.value,onScrollPassive:Z,onBeforeShow:ol,onBeforeHide:Pt,onShow:Lt},vn)}function Pt(re){wr(re),We()}function Lt(){Ee()}function U(re){$t(re),L.value?.focus(),m.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function te(re){$t(re),r.nextTick(()=>{m.value=!1})}function he(){const re=[r.h(tw,{class:`col-auto ${G.fieldClass.value}`,...ae.value,for:G.targetUid.value,dark:J.value,square:!0,loading:v.value,itemAligned:!1,filled:!0,stackLabel:d.value.length!==0,...G.splitAttrs.listeners.value,onFocus:U,onBlur:te},{...t,rawControl:()=>G.getControl(!0),before:void 0,after:void 0})];return i.value===!0&&re.push(r.h("div",{ref:ee,class:ne.value+" scroll",style:e.popupContentStyle,...Fe.value,onClick:Zt,onScrollPassive:Z},vn())),r.h(Fi,{ref:H,modelValue:l.value,position:e.useInput===!0?"top":void 0,transitionShow:T,transitionHide:e.transitionHide,transitionDuration:e.transitionDuration,noRouteDismiss:e.popupNoRouteDismiss,onBeforeShow:ol,onBeforeHide:Ie,onHide:$e,onShow:vt},()=>r.h("div",{class:"q-select__dialog"+(J.value===!0?" q-select__dialog--dark q-dark":"")+(m.value===!0?" q-select__dialog--focused":"")},re))}function Ie(re){wr(re),H.value!==null&&H.value.__updateRefocusTarget(G.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),G.focused.value=!1}function $e(re){mt(),G.focused.value===!1&&n("blur",re),Ve()}function vt(){const re=document.activeElement;(re===null||re.id!==G.targetUid.value)&&L.value!==null&&L.value!==re&&L.value.focus(),Ee()}function We(){l.value!==!0&&(s.value=-1,i.value===!0&&(i.value=!1),G.focused.value===!1&&(C!==null&&(clearTimeout(C),C=null),G.innerLoading.value===!0&&(n("filterAbort"),G.innerLoading.value=!1,v.value=!1)))}function nt(re){G.editable.value===!0&&(g===!0?(G.onControlFocusin(re),l.value=!0,r.nextTick(()=>{G.focus()})):G.focus(),e.onFilter!==void 0?Ze(d.value):(we.value!==!0||t["no-option"]!==void 0)&&(i.value=!0))}function mt(){l.value=!1,We()}function Ve(){e.useInput===!0&&Je(e.multiple!==!0&&e.fillInput===!0&&R.value.length!==0&&se.value(R.value[0])||"",!0,!0)}function Io(re){let Ue=-1;if(re===!0){if(R.value.length!==0){const Qe=oe.value(R.value[0]);Ue=e.options.findIndex(pt=>$n(oe.value(pt),Qe))}Y(Ue)}fe(Ue)}function nl(re,Ue){i.value===!0&&G.innerLoading.value===!1&&(Y(-1,!0),r.nextTick(()=>{i.value===!0&&G.innerLoading.value===!1&&(re>Ue?Y():Io(!0))}))}function rl(){l.value===!1&&k.value!==null&&k.value.updatePosition()}function ol(re){re!==void 0&&$t(re),n("popupShow",re),G.hasPopupOpen=!0,G.onControlFocusin(re)}function wr(re){re!==void 0&&$t(re),n("popupHide",re),G.hasPopupOpen=!1,G.onControlFocusout(re)}function No(){g=a.platform.is.mobile!==!0&&e.behavior!=="dialog"?!1:e.behavior!=="menu"&&(e.useInput===!0?t["no-option"]!==void 0||e.onFilter!==void 0||we.value===!1:!0),T=a.platform.is.ios===!0&&g===!0&&e.useInput===!0?"fade":e.transitionShow}return r.onBeforeUpdate(No),r.onUpdated(rl),No(),r.onBeforeUnmount(()=>{b!==null&&clearTimeout(b),p!==null&&clearTimeout(p)}),Object.assign(o,{showPopup:nt,hidePopup:mt,removeAtIndex:Ne,add:dt,toggleOption:ut,getOptionIndex:()=>s.value,setOptionIndex:fe,moveOptionSelection:Ce,filter:Ze,updateMenuPosition:rl,updateInputValue:Je,isOptionSelected:xe,getEmittingOptionValue:ge,isOptionDisabled:(...re)=>Se.value.apply(null,re)===!0,getOptionValue:(...re)=>oe.value.apply(null,re),getOptionLabel:(...re)=>se.value.apply(null,re)}),Object.assign(G,{innerValue:R,fieldClass:r.computed(()=>`q-select q-field--auto-height q-select--with${e.useInput!==!0?"out":""}-input q-select--with${e.useChips!==!0?"out":""}-chips q-select--${e.multiple===!0?"multiple":"single"}`),inputRef:q,targetRef:L,hasValue:be,showPopup:nt,floatingLabel:r.computed(()=>e.hideSelected!==!0&&be.value===!0||typeof d.value=="number"||d.value.length!==0||Xr(e.displayValue)),getControlChild:()=>{if(G.editable.value!==!1&&(l.value===!0||we.value!==!0||t["no-option"]!==void 0))return g===!0?he():it();G.hasPopupOpen===!0&&(G.hasPopupOpen=!1)},controlEvents:{onFocusin(re){G.onControlFocusin(re)},onFocusout(re){G.onControlFocusout(re,()=>{Ve(),We()})},onClick(re){if(Zt(re),g!==!0&&i.value===!0){We(),L.value?.focus();return}nt(re)}},getControl:re=>{const Ue=Ln(),Qe=re===!0||l.value!==!0||g!==!0;if(e.useInput===!0)Ue.push(wn(re,Qe));else if(G.editable.value===!0){const It=Qe===!0?Re.value:void 0;Ue.push(r.h("input",{ref:Qe===!0?L:void 0,key:"d_t",class:"q-select__focus-target",id:Qe===!0?G.targetUid.value:void 0,value:Oe.value,readonly:!0,"data-autofocus":re===!0||e.autofocus===!0||void 0,...It,onKeydown:_t,onKeyup:rt,onKeypress:st})),Qe===!0&&typeof e.autocomplete=="string"&&e.autocomplete.length!==0&&Ue.push(r.h("input",{class:"q-select__autocomplete-input",autocomplete:e.autocomplete,tabindex:-1,onKeyup:Ge}))}if(N.value!==void 0&&e.disable!==!0&&Te.value.length!==0){const It=Te.value.map(Ot=>r.h("option",{value:Ot,selected:!0}));Ue.push(r.h("select",{class:"hidden",name:N.value,multiple:e.multiple},It))}const pt=e.useInput===!0||Qe!==!0?void 0:G.splitAttrs.attributes.value;return r.h("div",{class:"q-field__native row items-center",...pt,...G.splitAttrs.listeners.value},Ue)},getInnerAppend:()=>e.loading!==!0&&v.value!==!0&&e.hideDropdownIcon!==!0?[r.h(wt,{class:"q-select__dropdown-icon"+(i.value===!0?" rotate-180":""),name:z.value})]:null}),Ui(G)}}),Pw=["text","rect","circle","QBtn","QBadge","QChip","QToolbar","QCheckbox","QRadio","QToggle","QSlider","QRange","QInput","QAvatar"],Aw=["wave","pulse","pulse-x","pulse-y","fade","blink","none"];_e({name:"QSkeleton",props:{...bt,tag:{type:String,default:"div"},type:{type:String,validator:e=>Pw.includes(e),default:"rect"},animation:{type:String,validator:e=>Aw.includes(e),default:"wave"},animationSpeed:{type:[String,Number],default:1500},square:Boolean,bordered:Boolean,size:String,width:String,height:String},setup(e,{slots:t}){const n=r.getCurrentInstance(),o=yt(e,n.proxy.$q),a=r.computed(()=>{const l=e.size!==void 0?[e.size,e.size]:[e.width,e.height];return{"--q-skeleton-speed":`${e.animationSpeed}ms`,width:l[0],height:l[1]}}),i=r.computed(()=>`q-skeleton q-skeleton--${o.value===!0?"dark":"light"} q-skeleton--type-${e.type}`+(e.animation!=="none"?` q-skeleton--anim q-skeleton--anim-${e.animation}`:"")+(e.square===!0?" q-skeleton--square":"")+(e.bordered===!0?" q-skeleton--bordered":""));return()=>r.h(e.tag,{class:i.value,style:a.value},Ke(t.default))}});var Gm=[["left","center","start","width"],["right","center","end","width"],["top","start","center","height"],["bottom","end","center","height"]];_e({name:"QSlideItem",props:{...bt,leftColor:String,rightColor:String,topColor:String,bottomColor:String,onSlide:Function},emits:["action","top","right","bottom","left"],setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),{$q:a}=o,i=yt(e,a),{getCache:l}=sa(),s=r.ref(null);let d=null,m={},v={},b={};const p=r.computed(()=>a.lang.rtl===!0?{left:"right",right:"left"}:{left:"left",right:"right"}),_=r.computed(()=>"q-slide-item q-item-type overflow-hidden"+(i.value===!0?" q-slide-item--dark q-dark":""));function g(){s.value.style.transform="translate(0,0)"}function E(w,T,x){e.onSlide!==void 0&&n("slide",{side:w,ratio:T,isReset:x})}function C(w){const T=s.value;if(w.isFirst)m={dir:null,size:{left:0,right:0,top:0,bottom:0},scale:0},T.classList.add("no-transition"),Gm.forEach(L=>{if(t[L[0]]!==void 0){const k=b[L[0]];k.style.transform="scale(1)",m.size[L[0]]=k.getBoundingClientRect()[L[3]]}}),m.axis=w.direction==="up"||w.direction==="down"?"Y":"X";else if(w.isFinal){T.classList.remove("no-transition"),m.scale===1?(T.style.transform=`translate${m.axis}(${m.dir*100}%)`,d!==null&&clearTimeout(d),d=setTimeout(()=>{d=null,n(m.showing,{reset:g}),n("action",{side:m.showing,reset:g})},230)):(T.style.transform="translate(0,0)",E(m.showing,0,!0));return}else w.direction=m.axis==="X"?w.offset.x<0?"left":"right":w.offset.y<0?"up":"down";if(t.left===void 0&&w.direction===p.value.right||t.right===void 0&&w.direction===p.value.left||t.top===void 0&&w.direction==="down"||t.bottom===void 0&&w.direction==="up"){T.style.transform="translate(0,0)";return}let x,y,q;m.axis==="X"?(y=w.direction==="left"?-1:1,x=y===1?p.value.left:p.value.right,q=w.distance.x):(y=w.direction==="up"?-2:2,x=y===2?"top":"bottom",q=w.distance.y),!(m.dir!==null&&Math.abs(y)!==Math.abs(m.dir))&&(m.dir!==y&&(["left","right","top","bottom"].forEach(L=>{v[L]&&(v[L].style.visibility=x===L?"visible":"hidden")}),m.showing=x,m.dir=y),m.scale=Math.max(0,Math.min(1,(q-40)/m.size[x])),T.style.transform=`translate${m.axis}(${q*y/Math.abs(y)}px)`,b[x].style.transform=`scale(${m.scale})`,E(x,m.scale,!1))}return r.onBeforeUpdate(()=>{v={},b={}}),r.onBeforeUnmount(()=>{d!==null&&clearTimeout(d)}),Object.assign(o,{reset:g}),()=>{const w=[],T={left:t[p.value.right]!==void 0,right:t[p.value.left]!==void 0,up:t.bottom!==void 0,down:t.top!==void 0},x=Object.keys(T).filter(q=>T[q]===!0);Gm.forEach(q=>{const L=q[0];t[L]!==void 0&&w.push(r.h("div",{key:L,ref:k=>{v[L]=k},class:`q-slide-item__${L} absolute-full row no-wrap items-${q[1]} justify-${q[2]}`+(e[L+"Color"]!==void 0?` bg-${e[L+"Color"]}`:"")},[r.h("div",{ref:k=>{b[L]=k}},t[L]())]))});const y=r.h("div",{key:`${x.length===0?"only-":""} content`,ref:s,class:"q-slide-item__content"},Ke(t.default));return x.length===0?w.push(y):w.push(r.withDirectives(y,l("dir#"+x.join(""),()=>{const q={prevent:!0,stop:!0,mouse:!0};return x.forEach(L=>{q[L]=!0}),[[Rn,C,void 0,q]]}))),r.h("div",{class:_.value},w)}}}),_e({name:"QSpace",setup(){const e=r.h("div",{class:"q-space"});return()=>e}});var Rw='<g transform="matrix(1 0 0 -1 0 80)"><rect width="10" height="20" rx="3"><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"></animate></rect><rect x="15" width="10" height="80" rx="3"><animate attributeName="height" begin="0s" dur="2s" values="80;55;33;5;75;23;73;33;12;14;60;80" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="30" width="10" height="50" rx="3"><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"></animate></rect><rect x="45" width="10" height="30" rx="3"><animate attributeName="height" begin="0s" dur="2s" values="30;45;13;80;56;72;45;76;34;23;67;30" calcMode="linear" repeatCount="indefinite"></animate></rect></g>';_e({name:"QSpinnerAudio",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 55 80",xmlns:"http://www.w3.org/2000/svg",innerHTML:Rw})}});var Lw='<g transform="translate(1 1)" stroke-width="2" fill="none" fill-rule="evenodd"><circle cx="5" cy="50" r="5"><animate attributeName="cy" begin="0s" dur="2.2s" values="50;5;50;50" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="cx" begin="0s" dur="2.2s" values="5;27;49;5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="27" cy="5" r="5"><animate attributeName="cy" begin="0s" dur="2.2s" from="5" to="5" values="5;50;50;5" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="cx" begin="0s" dur="2.2s" from="27" to="27" values="27;49;5;27" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="49" cy="50" r="5"><animate attributeName="cy" begin="0s" dur="2.2s" values="50;50;5;50" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="cx" from="49" to="49" begin="0s" dur="2.2s" values="49;5;27;49" calcMode="linear" repeatCount="indefinite"></animate></circle></g>';_e({name:"QSpinnerBall",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 57 57",xmlns:"http://www.w3.org/2000/svg",innerHTML:Lw})}});var Iw='<rect y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.5s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.5s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="30" y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.25s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.25s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="60" width="15" height="140" rx="6"><animate attributeName="height" begin="0s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="90" y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.25s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.25s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect><rect x="120" y="10" width="15" height="120" rx="6"><animate attributeName="height" begin="0.5s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="y" begin="0.5s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcMode="linear" repeatCount="indefinite"></animate></rect>';_e({name:"QSpinnerBars",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",innerHTML:Iw})}});var Nw='<rect x="25" y="25" width="50" height="50" fill="none" stroke-width="4" stroke="currentColor"><animateTransform id="spinnerBox" attributeName="transform" type="rotate" from="0 50 50" to="180 50 50" dur="0.5s" begin="rectBox.end"></animateTransform></rect><rect x="27" y="27" width="46" height="50" fill="currentColor"><animate id="rectBox" attributeName="height" begin="0s;spinnerBox.end" dur="1.3s" from="50" to="0" fill="freeze"></animate></rect>';_e({name:"QSpinnerBox",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:Nw})}});var Dw='<circle cx="50" cy="50" r="48" fill="none" stroke-width="4" stroke-miterlimit="10" stroke="currentColor"></circle><line stroke-linecap="round" stroke-width="4" stroke-miterlimit="10" stroke="currentColor" x1="50" y1="50" x2="85" y2="50.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="2s" repeatCount="indefinite"></animateTransform></line><line stroke-linecap="round" stroke-width="4" stroke-miterlimit="10" stroke="currentColor" x1="50" y1="50" x2="49.5" y2="74"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="15s" repeatCount="indefinite"></animateTransform></line>';_e({name:"QSpinnerClock",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:Dw})}});var $w='<rect x="0" y="0" width="100" height="100" fill="none"></rect><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"></path><circle cx="30" cy="47" r="5" fill="#fff"><animate attributeName="opacity" from="0" to="1" values="0;1;1" keyTimes="0;0.2;1" dur="1s" repeatCount="indefinite"></animate></circle><circle cx="50" cy="47" r="5" fill="#fff"><animate attributeName="opacity" from="0" to="1" values="0;0;1;1" keyTimes="0;0.2;0.4;1" dur="1s" repeatCount="indefinite"></animate></circle><circle cx="70" cy="47" r="5" fill="#fff"><animate attributeName="opacity" from="0" to="1" values="0;0;1;1" keyTimes="0;0.4;0.6;1" dur="1s" repeatCount="indefinite"></animate></circle>';_e({name:"QSpinnerComment",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",innerHTML:$w})}});var Fw='<rect x="0" y="0" width="100" height="100" fill="none"></rect><g transform="translate(25 25)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.9"><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"></animateTransform></rect></g><g transform="translate(75 25)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.8"><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"></animateTransform></rect></g><g transform="translate(25 75)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.7"><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"></animateTransform></rect></g><g transform="translate(75 75)"><rect x="-20" y="-20" width="40" height="40" fill="currentColor" opacity="0.6"><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"></animateTransform></rect></g>';_e({name:"QSpinnerCube",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",innerHTML:Fw})}});var Bw='<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity=".3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from=".5" to=".5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>';_e({name:"QSpinnerDots",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",innerHTML:Bw})}});var zw='<g transform="translate(20 50)"><rect x="-10" y="-30" width="20" height="60" fill="currentColor" opacity="0.6"><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"></animateTransform></rect></g><g transform="translate(50 50)"><rect x="-10" y="-30" width="20" height="60" fill="currentColor" opacity="0.8"><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"></animateTransform></rect></g><g transform="translate(80 50)"><rect x="-10" y="-30" width="20" height="60" fill="currentColor" opacity="0.9"><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"></animateTransform></rect></g>';_e({name:"QSpinnerFacebook",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",innerHTML:zw})}});var Hw='<g transform="translate(-20,-20)"><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"><animateTransform attributeName="transform" type="rotate" from="90 50 50" to="0 50 50" dur="1s" repeatCount="indefinite"></animateTransform></path></g><g transform="translate(20,20) rotate(15 50 50)"><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"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="90 50 50" dur="1s" repeatCount="indefinite"></animateTransform></path></g>';_e({name:"QSpinnerGears",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:Hw})}});var jw='<circle cx="12.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="0s" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5"><animate attributeName="fill-opacity" begin="100ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="300ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="52.5" r="12.5"><animate attributeName="fill-opacity" begin="600ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="800ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="52.5" r="12.5"><animate attributeName="fill-opacity" begin="400ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="12.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="700ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="500ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="200ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle>';_e({name:"QSpinnerGrid",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 105 105",xmlns:"http://www.w3.org/2000/svg",innerHTML:jw})}});var Uw='<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"><animate attributeName="fill-opacity" begin="0s" dur="1.4s" values="0.5;1;0.5" calcMode="linear" repeatCount="indefinite"></animate></path><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"><animate attributeName="fill-opacity" begin="0.7s" dur="1.4s" values="0.5;1;0.5" calcMode="linear" repeatCount="indefinite"></animate></path><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"></path>';_e({name:"QSpinnerHearts",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,fill:"currentColor",width:t.value,height:t.value,viewBox:"0 0 140 64",xmlns:"http://www.w3.org/2000/svg",innerHTML:Uw})}});var Qw='<g><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"></path><clipPath id="uil-hourglass-clip1"><rect x="15" y="20" width="70" height="25"><animate attributeName="height" from="25" to="0" dur="1s" repeatCount="indefinite" values="25;0;0" keyTimes="0;0.5;1"></animate><animate attributeName="y" from="20" to="45" dur="1s" repeatCount="indefinite" values="20;45;45" keyTimes="0;0.5;1"></animate></rect></clipPath><clipPath id="uil-hourglass-clip2"><rect x="15" y="55" width="70" height="25"><animate attributeName="height" from="0" to="25" dur="1s" repeatCount="indefinite" values="0;25;25" keyTimes="0;0.5;1"></animate><animate attributeName="y" from="80" to="55" dur="1s" repeatCount="indefinite" values="80;55;55" keyTimes="0;0.5;1"></animate></rect></clipPath><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"></path><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"></path><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"></animateTransform></g>';_e({name:"QSpinnerHourglass",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:Qw})}});var Ww='<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"><animate attributeName="stroke-dashoffset" from="0" to="21.382410685221355" begin="0" dur="2s" repeatCount="indefinite" fill="freeze"></animate></path>';_e({name:"QSpinnerInfinity",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",innerHTML:Ww})}});var Yw='<g stroke-width="4" stroke-linecap="round"><line y1="17" y2="29" transform="translate(32,32) rotate(180)"><animate attributeName="stroke-opacity" dur="750ms" values="1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(210)"><animate attributeName="stroke-opacity" dur="750ms" values="0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(240)"><animate attributeName="stroke-opacity" dur="750ms" values=".1;0;1;.85;.7;.65;.55;.45;.35;.25;.15;.1" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(270)"><animate attributeName="stroke-opacity" dur="750ms" values=".15;.1;0;1;.85;.7;.65;.55;.45;.35;.25;.15" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(300)"><animate attributeName="stroke-opacity" dur="750ms" values=".25;.15;.1;0;1;.85;.7;.65;.55;.45;.35;.25" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(330)"><animate attributeName="stroke-opacity" dur="750ms" values=".35;.25;.15;.1;0;1;.85;.7;.65;.55;.45;.35" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(0)"><animate attributeName="stroke-opacity" dur="750ms" values=".45;.35;.25;.15;.1;0;1;.85;.7;.65;.55;.45" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(30)"><animate attributeName="stroke-opacity" dur="750ms" values=".55;.45;.35;.25;.15;.1;0;1;.85;.7;.65;.55" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(60)"><animate attributeName="stroke-opacity" dur="750ms" values=".65;.55;.45;.35;.25;.15;.1;0;1;.85;.7;.65" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(90)"><animate attributeName="stroke-opacity" dur="750ms" values=".7;.65;.55;.45;.35;.25;.15;.1;0;1;.85;.7" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(120)"><animate attributeName="stroke-opacity" dur="750ms" values=".85;.7;.65;.55;.45;.35;.25;.15;.1;0;1;.85" repeatCount="indefinite"></animate></line><line y1="17" y2="29" transform="translate(32,32) rotate(150)"><animate attributeName="stroke-opacity" dur="750ms" values="1;.85;.7;.65;.55;.45;.35;.25;.15;.1;0;1" repeatCount="indefinite"></animate></line></g>';_e({name:"QSpinnerIos",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,stroke:"currentColor",fill:"currentColor",viewBox:"0 0 64 64",innerHTML:Yw})}});var Kw='<circle cx="50" cy="50" r="44" fill="none" stroke-width="4" stroke-opacity=".5" stroke="currentColor"></circle><circle cx="8" cy="54" r="6" fill="currentColor" stroke-width="3" stroke="currentColor"><animateTransform attributeName="transform" type="rotate" from="0 50 48" to="360 50 52" dur="2s" repeatCount="indefinite"></animateTransform></circle>';_e({name:"QSpinnerOrbit",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:Kw})}});var Gw='<g transform="translate(1 1)" stroke-width="2" fill="none" fill-rule="evenodd"><circle stroke-opacity=".5" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="1s" repeatCount="indefinite"></animateTransform></path></g>';_e({name:"QSpinnerOval",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",innerHTML:Gw})}});var Xw='<path d="M0 50A50 50 0 0 1 50 0L50 50L0 50" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="0.8s" repeatCount="indefinite"></animateTransform></path><path d="M50 0A50 50 0 0 1 100 50L50 50L50 0" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="1.6s" repeatCount="indefinite"></animateTransform></path><path d="M100 50A50 50 0 0 1 50 100L50 50L100 50" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="2.4s" repeatCount="indefinite"></animateTransform></path><path d="M50 100A50 50 0 0 1 0 50L50 50L50 100" fill="currentColor" opacity="0.5"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="3.2s" repeatCount="indefinite"></animateTransform></path>';_e({name:"QSpinnerPie",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:Xw})}});var Jw='<g fill="none" fill-rule="evenodd" stroke-width="2"><circle cx="22" cy="22" r="1"><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"></animate><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"></animate></circle><circle cx="22" cy="22" r="1"><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"></animate><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"></animate></circle></g>';_e({name:"QSpinnerPuff",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg",innerHTML:Jw})}});var Zw='<g transform="scale(0.55)"><circle cx="30" cy="150" r="30" fill="currentColor"><animate attributeName="opacity" from="0" to="1" dur="1s" begin="0" repeatCount="indefinite" keyTimes="0;0.5;1" values="0;1;1"></animate></circle><path d="M90,150h30c0-49.7-40.3-90-90-90v30C63.1,90,90,116.9,90,150z" fill="currentColor"><animate attributeName="opacity" from="0" to="1" dur="1s" begin="0.1" repeatCount="indefinite" keyTimes="0;0.5;1" values="0;1;1"></animate></path><path d="M150,150h30C180,67.2,112.8,0,30,0v30C96.3,30,150,83.7,150,150z" fill="currentColor"><animate attributeName="opacity" from="0" to="1" dur="1s" begin="0.2" repeatCount="indefinite" keyTimes="0;0.5;1" values="0;1;1"></animate></path></g>';_e({name:"QSpinnerRadio",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",innerHTML:Zw})}});var Vw='<g fill="none" fill-rule="evenodd" transform="translate(1 1)" stroke-width="2"><circle cx="22" cy="22" r="6"><animate attributeName="r" begin="1.5s" dur="3s" values="6;22" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-opacity" begin="1.5s" dur="3s" values="1;0" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-width" begin="1.5s" dur="3s" values="2;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="22" cy="22" r="6"><animate attributeName="r" begin="3s" dur="3s" values="6;22" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-opacity" begin="3s" dur="3s" values="1;0" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="stroke-width" begin="3s" dur="3s" values="2;0" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="22" cy="22" r="8"><animate attributeName="r" begin="0s" dur="1.5s" values="6;1;2;3;4;5;6" calcMode="linear" repeatCount="indefinite"></animate></circle></g>';_e({name:"QSpinnerRings",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,stroke:"currentColor",width:t.value,height:t.value,viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",innerHTML:Vw})}});var e1='<defs><linearGradient x1="8.042%" y1="0%" x2="65.682%" y2="23.865%" id="a"><stop stop-color="currentColor" stop-opacity="0" offset="0%"></stop><stop stop-color="currentColor" stop-opacity=".631" offset="63.146%"></stop><stop stop-color="currentColor" offset="100%"></stop></linearGradient></defs><g transform="translate(1 1)" fill="none" fill-rule="evenodd"><path d="M36 18c0-9.94-8.06-18-18-18" stroke="url(#a)" stroke-width="2"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.9s" repeatCount="indefinite"></animateTransform></path><circle fill="currentColor" cx="36" cy="18" r="1"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.9s" repeatCount="indefinite"></animateTransform></circle></g>';_e({name:"QSpinnerTail",props:jt,setup(e){const{cSize:t,classes:n}=Ut(e);return()=>r.h("svg",{class:n.value,width:t.value,height:t.value,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",innerHTML:e1})}}),_e({name:"QSplitter",props:{...bt,modelValue:{type:Number,required:!0},reverse:Boolean,unit:{type:String,default:"%",validator:e=>["%","px"].includes(e)},limits:{type:Array,validator:e=>e.length!==2||typeof e[0]!="number"||typeof e[1]!="number"?!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(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),a=yt(e,o),i=r.ref(null),l={before:r.ref(null),after:r.ref(null)},s=r.computed(()=>`q-splitter no-wrap ${e.horizontal===!0?"q-splitter--horizontal column":"q-splitter--vertical row"} q-splitter--${e.disable===!0?"disabled":"workable"}`+(a.value===!0?" q-splitter--dark":"")),d=r.computed(()=>e.horizontal===!0?"height":"width"),m=r.computed(()=>e.reverse!==!0?"before":"after"),v=r.computed(()=>e.limits!==void 0?e.limits:e.unit==="%"?[10,90]:[50,1/0]);function b(q){return(e.unit==="%"?q:Math.round(q))+e.unit}const p=r.computed(()=>({[m.value]:{[d.value]:b(e.modelValue)}}));let _,g,E,C,w;function T(q){if(q.isFirst===!0){const k=i.value.getBoundingClientRect()[d.value];_=e.horizontal===!0?"up":"left",g=e.unit==="%"?100:k,E=Math.min(g,v.value[1],Math.max(v.value[0],e.modelValue)),C=(e.reverse!==!0?1:-1)*(e.horizontal===!0?1:o.lang.rtl===!0?-1:1)*(e.unit==="%"?k===0?0:100/k:1),i.value.classList.add("q-splitter--active");return}if(q.isFinal===!0){w!==e.modelValue&&n("update:modelValue",w),i.value.classList.remove("q-splitter--active");return}const L=E+C*(q.direction===_?-1:1)*q.distance[e.horizontal===!0?"y":"x"];w=Math.min(g,v.value[1],Math.max(v.value[0],L)),l[m.value].value.style[d.value]=b(w),e.emitImmediately===!0&&e.modelValue!==w&&n("update:modelValue",w)}const x=r.computed(()=>[[Rn,T,void 0,{[e.horizontal===!0?"vertical":"horizontal"]:!0,prevent:!0,stop:!0,mouse:!0,mouseAllDir:!0}]]);function y(q,L){q<L[0]?n("update:modelValue",L[0]):q>L[1]&&n("update:modelValue",L[1])}return r.watch(()=>e.modelValue,q=>{y(q,v.value)}),r.watch(()=>e.limits,()=>{r.nextTick(()=>{y(e.modelValue,v.value)})}),()=>{const q=[r.h("div",{ref:l.before,class:["q-splitter__panel q-splitter__before"+(e.reverse===!0?" col":""),e.beforeClass],style:p.value.before},Ke(t.before)),r.h("div",{class:["q-splitter__separator",e.separatorClass],style:e.separatorStyle,"aria-disabled":e.disable===!0?"true":void 0},[Mn("div",{class:"q-splitter__separator-area absolute-full"},Ke(t.separator),"sep",e.disable!==!0,()=>x.value)]),r.h("div",{ref:l.after,class:["q-splitter__panel q-splitter__after"+(e.reverse===!0?"":" col"),e.afterClass],style:p.value.after},Ke(t.after))];return r.h("div",{class:s.value,ref:i},Ht(t.default,q))}}});var Xm=_e({name:"StepHeader",props:{stepper:{},step:{},goToPanel:Function},setup(e,{attrs:t}){const{proxy:{$q:n}}=r.getCurrentInstance(),o=r.ref(null),a=r.computed(()=>e.stepper.modelValue===e.step.name),i=r.computed(()=>{const C=e.step.disable;return C===!0||C===""}),l=r.computed(()=>{const C=e.step.error;return C===!0||C===""}),s=r.computed(()=>{const C=e.step.done;return i.value===!1&&(C===!0||C==="")}),d=r.computed(()=>{const C=e.step.headerNav,w=C===!0||C===""||C===void 0;return i.value===!1&&e.stepper.headerNav&&w}),m=r.computed(()=>e.step.prefix&&(a.value===!1||e.stepper.activeIcon==="none")&&(l.value===!1||e.stepper.errorIcon==="none")&&(s.value===!1||e.stepper.doneIcon==="none")),v=r.computed(()=>{const C=e.step.icon||e.stepper.inactiveIcon;if(a.value===!0){const w=e.step.activeIcon||e.stepper.activeIcon;return w==="none"?C:w||n.iconSet.stepper.active}if(l.value===!0){const w=e.step.errorIcon||e.stepper.errorIcon;return w==="none"?C:w||n.iconSet.stepper.error}if(i.value===!1&&s.value===!0){const w=e.step.doneIcon||e.stepper.doneIcon;return w==="none"?C:w||n.iconSet.stepper.done}return C}),b=r.computed(()=>{const C=l.value===!0?e.step.errorColor||e.stepper.errorColor:void 0;if(a.value===!0){const w=e.step.activeColor||e.stepper.activeColor||e.step.color;return w!==void 0?w:C}return C!==void 0?C:i.value===!1&&s.value===!0?e.step.doneColor||e.stepper.doneColor||e.step.color||e.stepper.inactiveColor:e.step.color||e.stepper.inactiveColor}),p=r.computed(()=>"q-stepper__tab col-grow flex items-center no-wrap relative-position"+(b.value!==void 0?` text-${b.value}`:"")+(l.value===!0?" q-stepper__tab--error q-stepper__tab--error-with-"+(m.value===!0?"prefix":"icon"):"")+(a.value===!0?" q-stepper__tab--active":"")+(s.value===!0?" q-stepper__tab--done":"")+(d.value===!0?" q-stepper__tab--navigation q-focusable q-hoverable":"")+(i.value===!0?" q-stepper__tab--disabled":"")),_=r.computed(()=>e.stepper.headerNav!==!0?!1:d.value);function g(){o.value?.focus(),a.value===!1&&e.goToPanel(e.step.name)}function E(C){C.keyCode===13&&a.value===!1&&e.goToPanel(e.step.name)}return()=>{const C={class:p.value};d.value===!0&&(C.onClick=g,C.onKeyup=E,Object.assign(C,i.value===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:t.tabindex||0}));const w=[r.h("div",{class:"q-focus-helper",tabindex:-1,ref:o}),r.h("div",{class:"q-stepper__dot row flex-center q-stepper__line relative-position"},[r.h("span",{class:"row flex-center"},[m.value===!0?e.step.prefix:r.h(wt,{name:v.value})])])];if(e.step.title!==void 0&&e.step.title!==null){const T=[r.h("div",{class:"q-stepper__title"},e.step.title)];e.step.caption!==void 0&&e.step.caption!==null&&T.push(r.h("div",{class:"q-stepper__caption"},e.step.caption)),w.push(r.h("div",{class:"q-stepper__label q-stepper__line relative-position"},T))}return r.withDirectives(r.h("div",C,w),[[di,_.value]])}}});function Jm(e){return r.h("div",{class:"q-stepper__step-content"},[r.h("div",{class:"q-stepper__step-inner"},Ke(e.default))])}var Zm={setup(e,{slots:t}){return()=>Jm(t)}};_e({name:"QStep",props:{...Hs,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,onScroll:[Function,Array]},setup(e,{slots:t,emit:n}){const{proxy:{$q:o}}=r.getCurrentInstance(),a=r.inject(gf,kt);if(a===kt)return console.error("QStep needs to be a child of QStepper"),kt;const{getCache:i}=sa(),l=r.ref(null),s=r.computed(()=>a.value.modelValue===e.name),d=r.computed(()=>o.platform.is.ios!==!0&&o.platform.is.chrome===!0||s.value!==!0||a.value.vertical!==!0?{}:{onScroll(b){const{target:p}=b;p.scrollTop>0&&(p.scrollTop=0),e.onScroll!==void 0&&n("scroll",b)}}),m=r.computed(()=>typeof e.name=="string"||typeof e.name=="number"?e.name:String(e.name));function v(){const b=a.value.vertical;return b===!0&&a.value.keepAlive===!0?r.h(r.KeepAlive,a.value.keepAliveProps.value,s.value===!0?[r.h(a.value.needsUniqueKeepAliveWrapper.value===!0?i(m.value,()=>({...Zm,name:m.value})):Zm,{key:m.value},t.default)]:void 0):b!==!0||s.value===!0?Jm(t):void 0}return()=>r.h("div",{ref:l,class:"q-stepper__step",role:"tabpanel",...d.value},a.value.vertical===!0?[r.h(Xm,{stepper:a.value,step:e,goToPanel:a.value.goToPanel}),a.value.animated===!0?r.h(yu,v):v()]:[v()])}});var t1=/(-\w)/g;function n1(e){const t={};for(const n in e){const o=n.replace(t1,a=>a[1].toUpperCase());t[o]=e[n]}return t}_e({name:"QStepper",props:{...bt,...js,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:Us,setup(e,{slots:t}){const n=r.getCurrentInstance(),o=yt(e,n.proxy.$q),{updatePanelsList:a,isValidPanelName:i,updatePanelIndex:l,getPanelContent:s,getPanels:d,panelDirectives:m,goToPanel:v,keepAliveProps:b,needsUniqueKeepAliveWrapper:p}=Qs();r.provide(gf,r.computed(()=>({goToPanel:v,keepAliveProps:b,needsUniqueKeepAliveWrapper:p,...e})));const _=r.computed(()=>`q-stepper q-stepper--${e.vertical===!0?"vertical":"horizontal"}`+(e.flat===!0?" q-stepper--flat":"")+(e.bordered===!0?" q-stepper--bordered":"")+(o.value===!0?" q-stepper--dark q-dark":"")),g=r.computed(()=>`q-stepper__header row items-stretch justify-between q-stepper__header--${e.alternativeLabels===!0?"alternative":"standard"}-labels`+(e.flat===!1||e.bordered===!0?" q-stepper__header--border":"")+(e.contracted===!0?" q-stepper__header--contracted":"")+(e.headerClass!==void 0?` ${e.headerClass}`:""));function E(){const C=Ke(t.message,[]);if(e.vertical===!0){i(e.modelValue)&&l();const w=r.h("div",{class:"q-stepper__content"},Ke(t.default));return C===void 0?[w]:C.concat(w)}return[r.h("div",{class:g.value},d().map(w=>{const T=n1(w.props);return r.h(Xm,{key:T.name,stepper:e,step:T,goToPanel:v})})),C,Mn("div",{class:"q-stepper__content q-panel-parent"},s(),"cont",e.swipeable,()=>m.value)]}return()=>(a(t),r.h("div",{class:_.value},Ht(t.navigation,E())))}}),_e({name:"QStepperNavigation",setup(e,{slots:t}){return()=>r.h("div",{class:"q-stepper__nav"},Ke(t.default))}});var r1=_e({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(e,{slots:t,emit:n}){const o=r.getCurrentInstance(),{proxy:{$q:a}}=o,i=l=>{n("click",l)};return()=>{if(e.props===void 0)return r.h("th",{class:e.autoWidth===!0?"q-table--col-auto-width":"",onClick:i},Ke(t.default));let l,s;const d=o.vnode.key;if(d){if(l=e.props.colsMap[d],l===void 0)return}else l=e.props.col;if(l.sortable===!0){const v=l.align==="right"?"unshift":"push";s=na(t.default,[]),s[v](r.h(wt,{class:l.__iconClass,name:a.iconSet.table.arrowUp}))}else s=Ke(t.default);const m={class:l.__thClass+(e.autoWidth===!0?" q-table--col-auto-width":""),style:l.headerStyle,onClick:v=>{l.sortable===!0&&e.props.sort(l),i(v)}};return r.h("th",m,s)}}});function Vm(e,t){return r.h("div",e,[r.h("table",{class:"q-table"},t)])}var o1={list:vw,table:pw},a1=["list","table","__qtable"],i1=_e({name:"QVirtualScroll",props:{...Mu,type:{type:String,default:"list",validator:e=>a1.includes(e)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:zr},setup(e,{slots:t,attrs:n}){let o;const a=r.ref(null),i=r.computed(()=>e.itemsSize>=0&&e.itemsFn!==void 0?parseInt(e.itemsSize,10):Array.isArray(e.items)?e.items.length:0),{virtualScrollSliceRange:l,localResetVirtualScroll:s,padVirtualScroll:d,onVirtualScrollEvt:m}=Ym({virtualScrollLength:i,getVirtualScrollTarget:g,getVirtualScrollEl:_}),v=r.computed(()=>{if(i.value===0)return[];const T=(x,y)=>({index:l.value.from+y,item:x});return e.itemsFn===void 0?e.items.slice(l.value.from,l.value.to).map(T):e.itemsFn(l.value.from,l.value.to-l.value.from).map(T)}),b=r.computed(()=>"q-virtual-scroll q-virtual-scroll"+(e.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(e.scrollTarget!==void 0?"":" scroll")),p=r.computed(()=>e.scrollTarget!==void 0?{}:{tabindex:0});r.watch(i,()=>{s()}),r.watch(()=>e.scrollTarget,()=>{C(),E()});function _(){return a.value.$el||a.value}function g(){return o}function E(){o=Kn(_(),e.scrollTarget),o.addEventListener("scroll",m,Rt.passive)}function C(){o!==void 0&&(o.removeEventListener("scroll",m,Rt.passive),o=void 0)}function w(){let T=d(e.type==="list"?"div":"tbody",v.value.map(t.default));return t.before!==void 0&&(T=t.before().concat(T)),Ht(t.after,T)}return r.onBeforeMount(()=>{s()}),r.onMounted(()=>{E()}),r.onActivated(()=>{E()}),r.onDeactivated(()=>{C()}),r.onBeforeUnmount(()=>{C()}),()=>{if(t.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return e.type==="__qtable"?Vm({ref:a,class:"q-table__middle "+b.value},w()):r.h(o1[e.type],{...n,ref:a,class:[n.class,b.value],...p.value},w)}}});function l1(e,t){return new Date(e)-new Date(t)}var s1={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:e=>e==="ad"||e==="da",default:"ad"}};function u1(e,t,n,o){const a=r.computed(()=>{const{sortBy:s}=t.value;return s&&n.value.find(d=>d.name===s)||null}),i=r.computed(()=>e.sortMethod!==void 0?e.sortMethod:(s,d,m)=>{const v=n.value.find(_=>_.name===d);if(v===void 0||v.field===void 0)return s;const b=m===!0?-1:1,p=typeof v.field=="function"?_=>v.field(_):_=>_[v.field];return s.sort((_,g)=>{let E=p(_),C=p(g);return v.rawSort!==void 0?v.rawSort(E,C,_,g)*b:E==null?-1*b:C==null?1*b:v.sort!==void 0?v.sort(E,C,_,g)*b:ea(E)===!0&&ea(C)===!0?(E-C)*b:Vo(E)===!0&&Vo(C)===!0?l1(E,C)*b:typeof E=="boolean"&&typeof C=="boolean"?(E-C)*b:([E,C]=[E,C].map(w=>(w+"").toLocaleString().toLowerCase()),E<C?-1*b:E===C?0:b)})});function l(s){let d=e.columnSortOrder;if(dn(s)===!0)s.sortOrder&&(d=s.sortOrder),s=s.name;else{const b=n.value.find(p=>p.name===s);b?.sortOrder&&(d=b.sortOrder)}let{sortBy:m,descending:v}=t.value;m!==s?(m=s,v=d==="da"):e.binaryStateSort===!0?v=!v:v===!0?d==="ad"?m=null:v=!1:d==="ad"?v=!0:m=null,o({sortBy:m,descending:v,page:1})}return{columnToSort:a,computedSortMethod:i,sort:l}}var c1={filter:[String,Object],filterMethod:Function};function d1(e,t){const n=r.computed(()=>e.filterMethod!==void 0?e.filterMethod:(o,a,i,l)=>{const s=a?a.toLowerCase():"";return o.filter(d=>i.some(m=>{const v=l(m,d)+"";return(v==="undefined"||v==="null"?"":v.toLowerCase()).indexOf(s)!==-1}))});return r.watch(()=>e.filter,()=>{r.nextTick(()=>{t({page:1},!0)})},{deep:!0}),{computedFilterMethod:n}}function f1(e,t){for(const n in t)if(t[n]!==e[n])return!1;return!0}function eh(e){return e.page<1&&(e.page=1),e.rowsPerPage!==void 0&&e.rowsPerPage<1&&(e.rowsPerPage=0),e}var v1={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function m1(e,t){const{props:n,emit:o}=e,a=r.ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:n.rowsPerPageOptions.length!==0?n.rowsPerPageOptions[0]:5},n.pagination)),i=r.computed(()=>{const v=n["onUpdate:pagination"]!==void 0?{...a.value,...n.pagination}:a.value;return eh(v)}),l=r.computed(()=>i.value.rowsNumber!==void 0);function s(v){d({pagination:v,filter:n.filter})}function d(v={}){r.nextTick(()=>{o("request",{pagination:v.pagination||i.value,filter:v.filter||n.filter,getCellValue:t})})}function m(v,b){const p=eh({...i.value,...v});if(f1(i.value,p)===!0){l.value===!0&&b===!0&&s(p);return}if(l.value===!0){s(p);return}n.pagination!==void 0&&n["onUpdate:pagination"]!==void 0?o("update:pagination",p):a.value=p}return{innerPagination:a,computedPagination:i,isServerSide:l,requestServerInteraction:d,setPagination:m}}function h1(e,t,n,o,a,i){const{props:l,emit:s,proxy:{$q:d}}=e,m=r.computed(()=>o.value===!0?n.value.rowsNumber||0:i.value),v=r.computed(()=>{const{page:y,rowsPerPage:q}=n.value;return(y-1)*q}),b=r.computed(()=>{const{page:y,rowsPerPage:q}=n.value;return y*q}),p=r.computed(()=>n.value.page===1),_=r.computed(()=>n.value.rowsPerPage===0?1:Math.max(1,Math.ceil(m.value/n.value.rowsPerPage))),g=r.computed(()=>b.value===0?!0:n.value.page>=_.value),E=r.computed(()=>(l.rowsPerPageOptions.includes(t.value.rowsPerPage)?l.rowsPerPageOptions:[t.value.rowsPerPage].concat(l.rowsPerPageOptions)).map(q=>({label:q===0?d.lang.table.allRows:""+q,value:q})));r.watch(_,(y,q)=>{if(y===q)return;const L=n.value.page;y&&!L?a({page:1}):y<L&&a({page:y})});function C(){a({page:1})}function w(){const{page:y}=n.value;y>1&&a({page:y-1})}function T(){const{page:y,rowsPerPage:q}=n.value;b.value>0&&y*q<m.value&&a({page:y+1})}function x(){a({page:_.value})}return l["onUpdate:pagination"]!==void 0&&s("update:pagination",{...n.value}),{firstRowIndex:v,lastRowIndex:b,isFirstPage:p,isLastPage:g,pagesNumber:_,computedRowsPerPageOptions:E,computedRowsNumber:m,firstPage:C,prevPage:w,nextPage:T,lastPage:x}}var g1={selection:{type:String,default:"none",validator:e=>["single","multiple","none"].includes(e)},selected:{type:Array,default:()=>[]}},p1=["update:selected","selection"];function b1(e,t,n,o){const a=r.computed(()=>{const g={};return e.selected.map(o.value).forEach(E=>{g[E]=!0}),g}),i=r.computed(()=>e.selection!=="none"),l=r.computed(()=>e.selection==="single"),s=r.computed(()=>e.selection==="multiple"),d=r.computed(()=>n.value.length!==0&&n.value.every(g=>a.value[o.value(g)]===!0)),m=r.computed(()=>d.value!==!0&&n.value.some(g=>a.value[o.value(g)]===!0)),v=r.computed(()=>e.selected.length);function b(g){return a.value[g]===!0}function p(){t("update:selected",[])}function _(g,E,C,w){t("selection",{rows:E,added:C,keys:g,evt:w});const T=l.value===!0?C===!0?E:[]:C===!0?e.selected.concat(E):e.selected.filter(x=>g.includes(o.value(x))===!1);t("update:selected",T)}return{hasSelectionMode:i,singleSelection:l,multipleSelection:s,allRowsSelected:d,someRowsSelected:m,rowsSelectedNumber:v,isRowSelected:b,clearSelection:p,updateSelection:_}}function th(e){return Array.isArray(e)?e.slice():[]}var y1={expanded:Array},_1=["update:expanded"];function S1(e,t){const n=r.ref(th(e.expanded));r.watch(()=>e.expanded,l=>{n.value=th(l)});function o(l){return n.value.includes(l)}function a(l){e.expanded!==void 0?t("update:expanded",l):n.value=l}function i(l,s){const d=n.value.slice(),m=d.indexOf(l);s===!0?m===-1&&(d.push(l),a(d)):m!==-1&&(d.splice(m,1),a(d))}return{isRowExpanded:o,setExpanded:a,updateExpanded:i}}var w1={visibleColumns:Array};function C1(e,t,n){const o=r.computed(()=>{if(e.columns!==void 0)return e.columns;const s=e.rows[0];return s!==void 0?Object.keys(s).map(d=>({name:d,label:d.toUpperCase(),field:d,align:ea(s[d])?"right":"left",sortable:!0})):[]}),a=r.computed(()=>{const{sortBy:s,descending:d}=t.value;return(e.visibleColumns!==void 0?o.value.filter(v=>v.required===!0||e.visibleColumns.includes(v.name)===!0):o.value).map(v=>{const b=v.align||"right",p=`text-${b}`;return{...v,align:b,__iconClass:`q-table__sort-icon q-table__sort-icon--${b}`,__thClass:p+(v.headerClasses!==void 0?" "+v.headerClasses:"")+(v.sortable===!0?" sortable":"")+(v.name===s?` sorted ${d===!0?"sort-desc":""}`:""),__tdStyle:v.style!==void 0?typeof v.style!="function"?()=>v.style:v.style:()=>null,__tdClass:v.classes!==void 0?typeof v.classes!="function"?()=>p+" "+v.classes:_=>p+" "+v.classes(_):()=>p}})}),i=r.computed(()=>{const s={};return a.value.forEach(d=>{s[d.name]=d}),s}),l=r.computed(()=>e.tableColspan!==void 0?e.tableColspan:a.value.length+(n.value===!0?1:0));return{colList:o,computedCols:a,computedColsMap:i,computedColspan:l}}var Ki="q-table__bottom row items-center",nh={};Wm.forEach(e=>{nh[e]={}}),_e({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:e=>["horizontal","vertical","cell","none"].includes(e)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...nh,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],tableRowStyleFn:Function,tableRowClassFn:Function,cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],cardStyleFn:Function,cardClassFn:Function,hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...bt,...Ws,...w1,...c1,...v1,...y1,...g1,...s1},emits:["request","virtualScroll",...Ys,..._1,...p1],setup(e,{slots:t,emit:n}){const o=r.getCurrentInstance(),{proxy:{$q:a}}=o,i=yt(e,a),{inFullscreen:l,toggleFullscreen:s}=Ks(),d=r.computed(()=>typeof e.rowKey=="function"?e.rowKey:pe=>pe[e.rowKey]),m=r.ref(null),v=r.ref(null),b=r.computed(()=>e.grid!==!0&&e.virtualScroll===!0),p=r.computed(()=>" q-table__card"+(i.value===!0?" q-table__card--dark q-dark":"")+(e.square===!0?" q-table--square":"")+(e.flat===!0?" q-table--flat":"")+(e.bordered===!0?" q-table--bordered":"")),_=r.computed(()=>`q-table__container q-table--${e.separator}-separator column no-wrap`+(e.grid===!0?" q-table--grid":p.value)+(i.value===!0?" q-table--dark":"")+(e.dense===!0?" q-table--dense":"")+(e.wrapCells===!1?" q-table--no-wrap":"")+(l.value===!0?" fullscreen scroll":"")),g=r.computed(()=>_.value+(e.loading===!0?" q-table--loading":""));r.watch(()=>e.tableStyle+e.tableClass+e.tableHeaderStyle+e.tableHeaderClass+_.value,()=>{b.value===!0&&v.value?.reset()});const{innerPagination:E,computedPagination:C,isServerSide:w,requestServerInteraction:T,setPagination:x}=m1(o,fe),{computedFilterMethod:y}=d1(e,x),{isRowExpanded:q,setExpanded:L,updateExpanded:k}=S1(e,n),H=r.computed(()=>{let pe=e.rows;if(w.value===!0||pe.length===0)return pe;const{sortBy:De,descending:Je}=C.value;return e.filter&&(pe=y.value(pe,e.filter,G.value,fe)),J.value!==null&&(pe=be.value(e.rows===pe?pe.slice():pe,De,Je)),pe}),ee=r.computed(()=>H.value.length),N=r.computed(()=>{let pe=H.value;if(w.value===!0)return pe;const{rowsPerPage:De}=C.value;return De!==0&&(ne.value===0&&e.rows!==pe?pe.length>we.value&&(pe=pe.slice(0,we.value)):pe=pe.slice(ne.value,we.value)),pe}),{hasSelectionMode:I,singleSelection:$,multipleSelection:D,allRowsSelected:P,someRowsSelected:F,rowsSelectedNumber:Y,isRowSelected:X,clearSelection:Z,updateSelection:ce}=b1(e,n,N,d),{colList:Ee,computedCols:G,computedColsMap:R,computedColspan:ae}=C1(e,C,I),{columnToSort:J,computedSortMethod:be,sort:W}=u1(e,C,Ee,x),{firstRowIndex:ne,lastRowIndex:we,isFirstPage:Q,isLastPage:Oe,pagesNumber:Le,computedRowsPerPageOptions:le,computedRowsNumber:qe,firstPage:Re,prevPage:Fe,nextPage:He,lastPage:ke}=h1(o,E,C,w,x,ee),z=r.computed(()=>N.value.length===0),K=r.computed(()=>{const pe={};return Wm.forEach(De=>{pe[De]=e[De]}),pe.virtualScrollItemSize===void 0&&(pe.virtualScrollItemSize=e.dense===!0?28:48),pe});function ve(){b.value===!0&&v.value.reset()}function oe(){if(e.grid===!0)return wn();const pe=e.hideHeader!==!0?ze:null;if(b.value===!0){const Je=t["top-row"],Ze=t["bottom-row"],it={default:Pt=>ue(Pt.item,t.body,Pt.index)};if(Je!==void 0){const Pt=r.h("tbody",Je({cols:G.value}));it.before=pe===null?()=>Pt:()=>[pe()].concat(Pt)}else pe!==null&&(it.before=pe);return Ze!==void 0&&(it.after=()=>r.h("tbody",Ze({cols:G.value}))),r.h(i1,{ref:v,class:e.tableClass,style:e.tableStyle,...K.value,scrollTarget:e.virtualScrollTarget,items:N.value,type:"__qtable",tableColspan:ae.value,onVirtualScroll:Se},it)}const De=[ge()];return pe!==null&&De.unshift(pe()),Vm({class:["q-table__middle scroll",e.tableClass],style:e.tableStyle},De)}function se(pe,De){if(v.value!==null){v.value.scrollTo(pe,De);return}pe=parseInt(pe,10);const Je=m.value.querySelector(`tbody tr:nth-of-type(${pe+1})`);if(Je!==null){const Ze=m.value.querySelector(".q-table__middle.scroll"),it=Je.offsetTop-e.virtualScrollStickySizeStart,Pt=it<Ze.scrollTop?"decrease":"increase";Ze.scrollTop=it,n("virtualScroll",{index:pe,from:0,to:E.value.rowsPerPage-1,direction:Pt})}}function Se(pe){n("virtualScroll",pe)}function Te(){return[r.h(xw,{class:"q-table__linear-progress",color:e.color,dark:i.value,indeterminate:!0,trackColor:"transparent"})]}function ue(pe,De,Je){const Ze=d.value(pe),it=X(Ze);if(De!==void 0){const te={key:Ze,row:pe,pageIndex:Je,__trClass:it?"selected":""};if(e.tableRowStyleFn!==void 0&&(te.__trStyle=e.tableRowStyleFn(pe)),e.tableRowClassFn!==void 0){const he=e.tableRowClassFn(pe);he&&(te.__trClass=`${he} ${te.__trClass}`)}return De(Ne(te))}const Pt=t["body-cell"],Lt=G.value.map(te=>{const he=t[`body-cell-${te.name}`],Ie=he!==void 0?he:Pt;return Ie!==void 0?Ie(Be({key:Ze,row:pe,pageIndex:Je,col:te})):r.h("td",{class:te.__tdClass(pe),style:te.__tdStyle(pe)},fe(te,pe))});if(I.value===!0){const te=t["body-selection"],he=te!==void 0?te(dt({key:Ze,row:pe,pageIndex:Je})):[r.h(ca,{modelValue:it,color:e.color,dark:i.value,dense:e.dense,"onUpdate:modelValue":(Ie,$e)=>{ce([Ze],[pe],Ie,$e)}})];Lt.unshift(r.h("td",{class:"q-table--col-auto-width"},he))}const U={key:Ze,class:{selected:it}};if(e.onRowClick!==void 0&&(U.class["cursor-pointer"]=!0,U.onClick=te=>{n("rowClick",te,pe,Je)}),e.onRowDblclick!==void 0&&(U.class["cursor-pointer"]=!0,U.onDblclick=te=>{n("rowDblclick",te,pe,Je)}),e.onRowContextmenu!==void 0&&(U.class["cursor-pointer"]=!0,U.onContextmenu=te=>{n("rowContextmenu",te,pe,Je)}),e.tableRowStyleFn!==void 0&&(U.style=e.tableRowStyleFn(pe)),e.tableRowClassFn!==void 0){const te=e.tableRowClassFn(pe);te&&(U.class[te]=!0)}return r.h("tr",U,Lt)}function ge(){const pe=t.body,De=t["top-row"],Je=t["bottom-row"];let Ze=N.value.map((it,Pt)=>ue(it,pe,Pt));return De!==void 0&&(Ze=De({cols:G.value}).concat(Ze)),Je!==void 0&&(Ze=Ze.concat(Je({cols:G.value}))),r.h("tbody",Ze)}function Ne(pe){return ut(pe),pe.cols=pe.cols.map(De=>Jt({...De},"value",()=>fe(De,pe.row))),pe}function Be(pe){return ut(pe),Jt(pe,"value",()=>fe(pe.col,pe.row)),pe}function dt(pe){return ut(pe),pe}function ut(pe){Object.assign(pe,{cols:G.value,colsMap:R.value,sort:W,rowIndex:ne.value+pe.pageIndex,color:e.color,dark:i.value,dense:e.dense}),I.value===!0&&Jt(pe,"selected",()=>X(pe.key),(De,Je)=>{ce([pe.key],[pe.row],De,Je)}),Jt(pe,"expand",()=>q(pe.key),De=>{k(pe.key,De)})}function fe(pe,De){const Je=typeof pe.field=="function"?pe.field(De):De[pe.field];return pe.format!==void 0?pe.format(Je,De):Je}const Ce=r.computed(()=>({pagination:C.value,pagesNumber:Le.value,isFirstPage:Q.value,isLastPage:Oe.value,firstPage:Re,prevPage:Fe,nextPage:He,lastPage:ke,inFullscreen:l.value,toggleFullscreen:s}));function de(){const pe=t.top,De=t["top-left"],Je=t["top-right"],Ze=t["top-selection"],it=I.value===!0&&Ze!==void 0&&Y.value>0,Pt="q-table__top relative-position row items-center";if(pe!==void 0)return r.h("div",{class:Pt},[pe(Ce.value)]);let Lt;if(it===!0?Lt=Ze(Ce.value).slice():(Lt=[],De!==void 0?Lt.push(r.h("div",{class:"q-table__control"},[De(Ce.value)])):e.title&&Lt.push(r.h("div",{class:"q-table__control"},[r.h("div",{class:["q-table__title",e.titleClass]},e.title)]))),Je!==void 0&&(Lt.push(r.h("div",{class:"q-table__separator col"})),Lt.push(r.h("div",{class:"q-table__control"},[Je(Ce.value)]))),Lt.length!==0)return r.h("div",{class:Pt},Lt)}const xe=r.computed(()=>F.value===!0?null:P.value);function ze(){const pe=rt();return e.loading===!0&&t.loading===void 0&&pe.push(r.h("tr",{class:"q-table__progress"},[r.h("th",{class:"relative-position",colspan:ae.value},Te())])),r.h("thead",pe)}function rt(){const pe=t.header,De=t["header-cell"];if(pe!==void 0)return pe(Ge({header:!0})).slice();const Je=G.value.map(Ze=>{const it=t[`header-cell-${Ze.name}`],Pt=it!==void 0?it:De,Lt=Ge({col:Ze});return Pt!==void 0?Pt(Lt):r.h(r1,{key:Ze.name,props:Lt},()=>Ze.label)});if($.value===!0&&e.grid!==!0)Je.unshift(r.h("th",{class:"q-table--col-auto-width"}," "));else if(D.value===!0){const Ze=t["header-selection"],it=Ze!==void 0?Ze(Ge({})):[r.h(ca,{color:e.color,modelValue:xe.value,dark:i.value,dense:e.dense,"onUpdate:modelValue":st})];Je.unshift(r.h("th",{class:"q-table--col-auto-width"},it))}return[r.h("tr",{class:e.tableHeaderClass,style:e.tableHeaderStyle},Je)]}function Ge(pe){return Object.assign(pe,{cols:G.value,sort:W,colsMap:R.value,color:e.color,dark:i.value,dense:e.dense}),D.value===!0&&Jt(pe,"selected",()=>xe.value,st),pe}function st(pe){F.value===!0&&(pe=!1),ce(N.value.map(d.value),N.value,pe)}const _t=r.computed(()=>{const pe=[e.iconFirstPage||a.iconSet.table.firstPage,e.iconPrevPage||a.iconSet.table.prevPage,e.iconNextPage||a.iconSet.table.nextPage,e.iconLastPage||a.iconSet.table.lastPage];return a.lang.rtl===!0?pe.reverse():pe});function Tt(){if(e.hideBottom===!0)return;if(z.value===!0){if(e.hideNoData===!0)return;const Je=e.loading===!0?e.loadingLabel||a.lang.table.loading:e.filter?e.noResultsLabel||a.lang.table.noResults:e.noDataLabel||a.lang.table.noData,Ze=t["no-data"],it=Ze!==void 0?[Ze({message:Je,icon:a.iconSet.table.warning,filter:e.filter})]:[r.h(wt,{class:"q-table__bottom-nodata-icon",name:a.iconSet.table.warning}),Je];return r.h("div",{class:Ki+" q-table__bottom--nodata"},it)}const pe=t.bottom;if(pe!==void 0)return r.h("div",{class:Ki},[pe(Ce.value)]);const De=e.hideSelectedBanner!==!0&&I.value===!0&&Y.value>0?[r.h("div",{class:"q-table__control"},[r.h("div",[(e.selectedRowsLabel||a.lang.table.selectedRecords)(Y.value)])])]:[];if(e.hidePagination!==!0)return r.h("div",{class:Ki+" justify-end"},Ln(De));if(De.length!==0)return r.h("div",{class:Ki},De)}function Vt(pe){x({page:1,rowsPerPage:pe.value})}function Ln(pe){let De;const{rowsPerPage:Je}=C.value,Ze=e.paginationLabel||a.lang.table.pagination,it=t.pagination,Pt=e.rowsPerPageOptions.length>1;if(pe.push(r.h("div",{class:"q-table__separator col"})),Pt===!0&&pe.push(r.h("div",{class:"q-table__control"},[r.h("span",{class:"q-table__bottom-item"},[e.rowsPerPageLabel||a.lang.table.recordsPerPage]),r.h(Mw,{class:"q-table__select inline q-table__bottom-item",color:e.color,modelValue:Je,options:le.value,displayValue:Je===0?a.lang.table.allRows:Je,dark:i.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Vt})])),it!==void 0)De=it(Ce.value);else if(De=[r.h("span",Je!==0?{class:"q-table__bottom-item"}:{},[Je?Ze(ne.value+1,Math.min(we.value,qe.value),qe.value):Ze(1,ee.value,qe.value)])],Je!==0&&Le.value>1){const Lt={color:e.color,round:!0,dense:!0,flat:!0};e.dense===!0&&(Lt.size="sm"),Le.value>2&&De.push(r.h(xt,{key:"pgFirst",...Lt,icon:_t.value[0],disable:Q.value,"aria-label":a.lang.pagination.first,onClick:Re})),De.push(r.h(xt,{key:"pgPrev",...Lt,icon:_t.value[1],disable:Q.value,"aria-label":a.lang.pagination.prev,onClick:Fe}),r.h(xt,{key:"pgNext",...Lt,icon:_t.value[2],disable:Oe.value,"aria-label":a.lang.pagination.next,onClick:He})),Le.value>2&&De.push(r.h(xt,{key:"pgLast",...Lt,icon:_t.value[3],disable:Oe.value,"aria-label":a.lang.pagination.last,onClick:ke}))}return pe.push(r.h("div",{class:"q-table__control"},De)),pe}function vn(){const pe=e.gridHeader===!0?[r.h("table",{class:"q-table"},[ze()])]:e.loading===!0&&t.loading===void 0?Te():void 0;return r.h("div",{class:"q-table__middle"},pe)}function wn(){const pe=t.item!==void 0?t.item:De=>{const Je=De.cols.map(it=>r.h("div",{class:"q-table__grid-item-row"},[r.h("div",{class:"q-table__grid-item-title"},[it.label]),r.h("div",{class:"q-table__grid-item-value"},[it.value])]));if(I.value===!0){const it=t["body-selection"],Pt=it!==void 0?it(De):[r.h(ca,{modelValue:De.selected,color:e.color,dark:i.value,dense:e.dense,"onUpdate:modelValue":(Lt,U)=>{ce([De.key],[De.row],Lt,U)}})];Je.unshift(r.h("div",{class:"q-table__grid-item-row"},Pt),r.h(Kr,{dark:i.value}))}const Ze={class:["q-table__grid-item-card"+p.value,e.cardClass],style:e.cardStyle};if(e.cardStyleFn!==void 0&&(Ze.style=[Ze.style,e.cardStyleFn(De.row)]),e.cardClassFn!==void 0){const it=e.cardClassFn(De.row);it&&(Ze.class[0]+=` ${it}`)}return(e.onRowClick!==void 0||e.onRowDblclick!==void 0||e.onRowContextmenu!==void 0)&&(Ze.class[0]+=" cursor-pointer",e.onRowClick!==void 0&&(Ze.onClick=it=>{n("RowClick",it,De.row,De.pageIndex)}),e.onRowDblclick!==void 0&&(Ze.onDblclick=it=>{n("RowDblclick",it,De.row,De.pageIndex)}),e.onRowContextmenu!==void 0&&(Ze.onContextmenu=it=>{n("rowContextmenu",it,De.row,De.pageIndex)})),r.h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(De.selected===!0?" q-table__grid-item--selected":"")},[r.h("div",Ze,Je)])};return r.h("div",{class:["q-table__grid-content row",e.cardContainerClass],style:e.cardContainerStyle},N.value.map((De,Je)=>pe(Ne({key:d.value(De),row:De,pageIndex:Je}))))}return Object.assign(o.proxy,{requestServerInteraction:T,setPagination:x,firstPage:Re,prevPage:Fe,nextPage:He,lastPage:ke,isRowSelected:X,clearSelection:Z,isRowExpanded:q,setExpanded:L,sort:W,resetVirtualScroll:ve,scrollTo:se,getCellValue:fe}),sf(o.proxy,{filteredSortedRows:()=>H.value,computedRows:()=>N.value,computedRowsNumber:()=>qe.value}),()=>{const pe=[de()],De={ref:m,class:g.value};return e.grid===!0?pe.push(vn()):Object.assign(De,{class:[De.class,e.cardClass],style:e.cardStyle}),pe.push(oe(),Tt()),e.loading===!0&&t.loading!==void 0&&pe.push(t.loading()),r.h("div",De,pe)}}}),_e({name:"QTr",props:{props:Object,noHover:Boolean},setup(e,{slots:t}){const n=r.computed(()=>"q-tr"+(e.props===void 0||e.props.header===!0?"":" "+e.props.__trClass)+(e.noHover===!0?" q-tr--no-hover":""));return()=>r.h("tr",{style:e.props?.__trStyle,class:n.value},Ke(t.default))}}),_e({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(e,{slots:t}){const n=r.getCurrentInstance(),o=r.computed(()=>"q-td"+(e.autoWidth===!0?" q-table--col-auto-width":"")+(e.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(e.props===void 0)return r.h("td",{class:o.value},Ke(t.default));const a=n.vnode.key,i=(e.props.colsMap!==void 0?e.props.colsMap[a]:null)||e.props.col;if(i===void 0)return;const{row:l}=e.props;return r.h("td",{class:o.value+i.__tdClass(l),style:i.__tdStyle(l)},Ke(t.default))}}}),_e({name:"QRouteTab",props:{...ra,...Mv},emits:qv,setup(e,{slots:t,emit:n}){const o=ui({useDisableForRouterLinkProps:!1}),{renderTab:a,$tabs:i}=Pv(e,t,n,{exact:r.computed(()=>e.exact),...o});return r.watch(()=>`${e.name} | ${e.exact} | ${(o.resolvedLink.value||{}).href}`,i.verifyRouteModel),()=>a(o.linkTag.value,o.linkAttrs.value)}});function x1(e,t){return e.hour!==null&&e.minute===null?"minute":"hour"}function k1(){const e=new Date;return{hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()}}_e({name:"QTime",props:{...bt,...An,...Ri,modelValue:{required:!0,validator:e=>typeof e=="string"||e===null},mask:{...Ri.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:Uv,setup(e,{slots:t,emit:n}){const o=r.getCurrentInstance(),{$q:a}=o.proxy,i=yt(e,a),{tabindex:l,headerClass:s,getLocale:d,getCurrentDate:m}=Qv(e,a),v=la(e),b=pr(v);let p,_;const g=r.ref(null),E=r.computed(()=>be()),C=r.computed(()=>d()),w=r.computed(()=>W()),T=To(e.modelValue,E.value,C.value,e.calendar,w.value),x=r.ref(x1(T)),y=r.ref(T),q=r.ref(T.hour===null||T.hour<12),L=r.computed(()=>`q-time q-time--${e.landscape===!0?"landscape":"portrait"}`+(i.value===!0?" q-time--dark q-dark":"")+(e.disable===!0?" disabled":e.readonly===!0?" q-time--readonly":"")+(e.bordered===!0?" q-time--bordered":"")+(e.square===!0?" q-time--square no-border-radius":"")+(e.flat===!0?" q-time--flat no-shadow":"")),k=r.computed(()=>{const fe=y.value;return{hour:fe.hour===null?"--":H.value===!0?Ct(fe.hour):String(q.value===!0?fe.hour===0?12:fe.hour:fe.hour>12?fe.hour-12:fe.hour),minute:fe.minute===null?"--":Ct(fe.minute),second:fe.second===null?"--":Ct(fe.second)}}),H=r.computed(()=>e.format24h!==null?e.format24h:a.lang.date.format24h),ee=r.computed(()=>{const fe=x.value==="hour",Ce=fe===!0?12:60,de=y.value[x.value];let ze=`rotate(${Math.round(de*(360/Ce))-180}deg) translateX(-50%)`;return fe===!0&&H.value===!0&&y.value.hour>=12&&(ze+=" scale(.7)"),{transform:ze}}),N=r.computed(()=>y.value.hour!==null),I=r.computed(()=>N.value===!0&&y.value.minute!==null),$=r.computed(()=>e.hourOptions!==void 0?fe=>e.hourOptions.includes(fe):e.options!==void 0?fe=>e.options(fe,null,null):null),D=r.computed(()=>e.minuteOptions!==void 0?fe=>e.minuteOptions.includes(fe):e.options!==void 0?fe=>e.options(y.value.hour,fe,null):null),P=r.computed(()=>e.secondOptions!==void 0?fe=>e.secondOptions.includes(fe):e.options!==void 0?fe=>e.options(y.value.hour,y.value.minute,fe):null),F=r.computed(()=>{if($.value===null)return null;const fe=R(0,11,$.value),Ce=R(12,11,$.value);return{am:fe,pm:Ce,values:fe.values.concat(Ce.values)}}),Y=r.computed(()=>D.value!==null?R(0,59,D.value):null),X=r.computed(()=>P.value!==null?R(0,59,P.value):null),Z=r.computed(()=>{switch(x.value){case"hour":return F.value;case"minute":return Y.value;case"second":return X.value}}),ce=r.computed(()=>{let fe,Ce,de=0,xe=1;const ze=Z.value!==null?Z.value.values:void 0;x.value==="hour"?H.value===!0?(fe=0,Ce=23):(fe=0,Ce=11,q.value===!1&&(de=12)):(fe=0,Ce=55,xe=5);const rt=[];for(let Ge=fe,st=fe;Ge<=Ce;Ge+=xe,st++){const _t=Ge+de,Tt=ze?.includes(_t)===!1,Vt=x.value==="hour"&&Ge===0?H.value===!0?"00":"12":Ge;rt.push({val:_t,index:st,disable:Tt,label:Vt})}return rt}),Ee=r.computed(()=>[[Rn,Q,void 0,{stop:!0,prevent:!0,mouse:!0}]]);r.watch(()=>e.modelValue,fe=>{const Ce=To(fe,E.value,C.value,e.calendar,w.value);(Ce.dateHash!==y.value.dateHash||Ce.timeHash!==y.value.timeHash)&&(y.value=Ce,Ce.hour===null?x.value="hour":q.value=Ce.hour<12)}),r.watch([E,C],()=>{r.nextTick(()=>{Be()})});function G(){const fe={...m(),...k1()};Be(fe),Object.assign(y.value,fe),x.value="hour"}function R(fe,Ce,de){const xe=Array.apply(null,{length:Ce+1}).map((ze,rt)=>{const Ge=rt+fe;return{index:Ge,val:de(Ge)===!0}}).filter(ze=>ze.val===!0).map(ze=>ze.index);return{min:xe[0],max:xe[xe.length-1],values:xe,threshold:Ce+1}}function ae(fe,Ce,de){const xe=Math.abs(fe-Ce);return Math.min(xe,de-xe)}function J(fe,{min:Ce,max:de,values:xe,threshold:ze}){if(fe===Ce)return Ce;if(fe<Ce||fe>de)return ae(fe,Ce,ze)<=ae(fe,de,ze)?Ce:de;const rt=xe.findIndex(_t=>fe<=_t),Ge=xe[rt-1],st=xe[rt];return fe-Ge<=st-fe?Ge:st}function be(){return e.calendar!=="persian"&&e.mask!==null?e.mask:`HH:mm${e.withSeconds===!0?":ss":""}`}function W(){if(typeof e.defaultDate!="string"){const fe=m(!0);return fe.dateHash=ir(fe),fe}return To(e.defaultDate,"YYYY/MM/DD",void 0,e.calendar)}function ne(){return mr(o)===!0||Z.value!==null&&(Z.value.values.length===0||x.value==="hour"&&H.value!==!0&&F.value[q.value===!0?"am":"pm"].values.length===0)}function we(){const fe=g.value,{top:Ce,left:de,width:xe}=fe.getBoundingClientRect(),ze=xe/2;return{top:Ce+ze,left:de+ze,dist:ze*.7}}function Q(fe){if(ne()!==!0){if(fe.isFirst===!0){p=we(),_=Le(fe.evt,p);return}_=Le(fe.evt,p,_),fe.isFinal===!0&&(p=!1,_=null,Oe())}}function Oe(){x.value==="hour"?x.value="minute":e.withSeconds&&x.value==="minute"&&(x.value="second")}function Le(fe,Ce,de){const xe=mn(fe),ze=Math.abs(xe.top-Ce.top),rt=Math.sqrt(Math.pow(Math.abs(xe.top-Ce.top),2)+Math.pow(Math.abs(xe.left-Ce.left),2));let Ge,st=Math.asin(ze/rt)*(180/Math.PI);if(xe.top<Ce.top?st=Ce.left<xe.left?90-st:270+st:st=Ce.left<xe.left?st+90:270-st,x.value==="hour"){if(Ge=st/30,F.value!==null){const _t=H.value!==!0?q.value===!0:F.value.am.values.length!==0&&F.value.pm.values.length!==0?rt>=Ce.dist:F.value.am.values.length!==0;Ge=J(Ge+(_t===!0?0:12),F.value[_t===!0?"am":"pm"])}else Ge=Math.round(Ge),H.value===!0?rt<Ce.dist?Ge<12&&(Ge+=12):Ge===12&&(Ge=0):q.value===!0&&Ge===12?Ge=0:q.value===!1&&Ge!==12&&(Ge+=12);H.value===!0&&(q.value=Ge<12)}else Ge=Math.round(st/6)%60,x.value==="minute"&&Y.value!==null?Ge=J(Ge,Y.value):x.value==="second"&&X.value!==null&&(Ge=J(Ge,X.value));return de!==Ge&&Se[x.value](Ge),Ge}const le={hour(){x.value="hour"},minute(){x.value="minute"},second(){x.value="second"}};function qe(fe){fe.keyCode===13&&Te()}function Re(fe){fe.keyCode===13&&ue()}function Fe(fe){ne()!==!0&&(a.platform.is.desktop!==!0&&Le(fe,we()),Oe())}function He(fe){ne()!==!0&&Le(fe,we())}function ke(fe){if(fe.keyCode===13)x.value="hour";else if([37,39].includes(fe.keyCode)){const Ce=fe.keyCode===37?-1:1;if(F.value!==null){const de=H.value===!0?F.value.values:F.value[q.value===!0?"am":"pm"].values;if(de.length===0)return;if(y.value.hour===null)ve(de[0]);else{const xe=(de.length+de.indexOf(y.value.hour)+Ce)%de.length;ve(de[xe])}}else{const de=H.value===!0?24:12,xe=H.value!==!0&&q.value===!1?12:0,ze=y.value.hour===null?-Ce:y.value.hour;ve(xe+(24+ze+Ce)%de)}}}function z(fe){if(fe.keyCode===13)x.value="minute";else if([37,39].includes(fe.keyCode)){const Ce=fe.keyCode===37?-1:1;if(Y.value!==null){const de=Y.value.values;if(de.length===0)return;if(y.value.minute===null)oe(de[0]);else{const xe=(de.length+de.indexOf(y.value.minute)+Ce)%de.length;oe(de[xe])}}else{const de=y.value.minute===null?-Ce:y.value.minute;oe((60+de+Ce)%60)}}}function K(fe){if(fe.keyCode===13)x.value="second";else if([37,39].includes(fe.keyCode)){const Ce=fe.keyCode===37?-1:1;if(X.value!==null){const de=X.value.values;if(de.length===0)return;if(y.value.seconds===null)se(de[0]);else{const xe=(de.length+de.indexOf(y.value.second)+Ce)%de.length;se(de[xe])}}else{const de=y.value.second===null?-Ce:y.value.second;se((60+de+Ce)%60)}}}function ve(fe){y.value.hour!==fe&&(y.value.hour=fe,Ne())}function oe(fe){y.value.minute!==fe&&(y.value.minute=fe,Ne())}function se(fe){y.value.second!==fe&&(y.value.second=fe,Ne())}const Se={hour:ve,minute:oe,second:se};function Te(){q.value===!1&&(q.value=!0,y.value.hour!==null&&(y.value.hour-=12,Ne()))}function ue(){q.value===!0&&(q.value=!1,y.value.hour!==null&&(y.value.hour+=12,Ne()))}function ge(fe){const Ce=e.modelValue;x.value!==fe&&Ce!==void 0&&Ce!==null&&Ce!==""&&typeof Ce!="string"&&(x.value=fe)}function Ne(){if($.value!==null&&$.value(y.value.hour)!==!0){y.value=To(),ge("hour");return}if(D.value!==null&&D.value(y.value.minute)!==!0){y.value.minute=null,y.value.second=null,ge("minute");return}if(e.withSeconds===!0&&P.value!==null&&P.value(y.value.second)!==!0){y.value.second=null,ge("second");return}y.value.hour===null||y.value.minute===null||e.withSeconds===!0&&y.value.second===null||Be()}function Be(fe){const Ce=Object.assign({...y.value},fe),de=e.calendar==="persian"?Ct(Ce.hour)+":"+Ct(Ce.minute)+(e.withSeconds===!0?":"+Ct(Ce.second):""):su(new Date(Ce.year,Ce.month===null?null:Ce.month-1,Ce.day,Ce.hour,Ce.minute,Ce.second,Ce.millisecond),E.value,C.value,Ce.year,Ce.timezoneOffset);Ce.changed=de!==e.modelValue,n("update:modelValue",de,Ce)}function dt(){const fe=[r.h("div",{class:"q-time__link "+(x.value==="hour"?"q-time__link--active":"cursor-pointer"),tabindex:l.value,onClick:le.hour,onKeyup:ke},k.value.hour),r.h("div",":"),r.h("div",N.value===!0?{class:"q-time__link "+(x.value==="minute"?"q-time__link--active":"cursor-pointer"),tabindex:l.value,onKeyup:z,onClick:le.minute}:{class:"q-time__link"},k.value.minute)];e.withSeconds===!0&&fe.push(r.h("div",":"),r.h("div",I.value===!0?{class:"q-time__link "+(x.value==="second"?"q-time__link--active":"cursor-pointer"),tabindex:l.value,onKeyup:K,onClick:le.second}:{class:"q-time__link"},k.value.second));const Ce=[r.h("div",{class:"q-time__header-label row items-center no-wrap",dir:"ltr"},fe)];return H.value===!1&&Ce.push(r.h("div",{class:"q-time__header-ampm column items-between no-wrap"},[r.h("div",{class:"q-time__link "+(q.value===!0?"q-time__link--active":"cursor-pointer"),tabindex:l.value,onClick:Te,onKeyup:qe},"AM"),r.h("div",{class:"q-time__link "+(q.value!==!0?"q-time__link--active":"cursor-pointer"),tabindex:l.value,onClick:ue,onKeyup:Re},"PM")])),r.h("div",{class:"q-time__header flex flex-center no-wrap "+s.value},Ce)}function ut(){const fe=y.value[x.value];return r.h("div",{class:"q-time__content col relative-position"},[r.h(r.Transition,{name:"q-transition--scale"},()=>r.h("div",{key:"clock"+x.value,class:"q-time__container-parent absolute-full"},[r.h("div",{ref:g,class:"q-time__container-child fit overflow-hidden"},[r.withDirectives(r.h("div",{class:"q-time__clock cursor-pointer non-selectable",onClick:Fe,onMousedown:He},[r.h("div",{class:"q-time__clock-circle fit"},[r.h("div",{class:"q-time__clock-pointer"+(y.value[x.value]===null?" hidden":e.color!==void 0?` text-${e.color}`:""),style:ee.value}),ce.value.map(Ce=>r.h("div",{class:`q-time__clock-position row flex-center q-time__clock-pos-${Ce.index}`+(Ce.val===fe?" q-time__clock-position--active "+s.value:Ce.disable===!0?" q-time__clock-position--disable":"")},[r.h("span",Ce.label)]))])]),Ee.value)])])),e.nowBtn===!0?r.h(xt,{class:"q-time__now-button absolute",icon:a.iconSet.datetime.now,unelevated:!0,size:"sm",round:!0,color:e.color,textColor:e.textColor,tabindex:l.value,onClick:G}):null])}return o.proxy.setNow=G,()=>{const fe=[ut()],Ce=Ke(t.default);return Ce!==void 0&&fe.push(r.h("div",{class:"q-time__actions"},Ce)),e.name!==void 0&&e.disable!==!0&&b(fe,"push"),r.h("div",{class:L.value,tabindex:-1},[dt(),r.h("div",{class:"q-time__main col overflow-auto"},fe)])}}}),_e({name:"QTimeline",props:{...bt,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(e,{slots:t}){const n=r.getCurrentInstance(),o=yt(e,n.proxy.$q);r.provide(hf,e);const a=r.computed(()=>`q-timeline q-timeline--${e.layout} q-timeline--${e.layout}--${e.side}`+(o.value===!0?" q-timeline--dark":""));return()=>r.h("ul",{class:a.value},Ke(t.default))}}),_e({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(e,{slots:t}){const n=r.inject(hf,kt);if(n===kt)return console.error("QTimelineEntry needs to be child of QTimeline"),kt;const o=r.computed(()=>`q-timeline__entry q-timeline__entry--${e.side}`+(e.icon!==void 0||e.avatar!==void 0?" q-timeline__entry--icon":"")),a=r.computed(()=>`q-timeline__dot text-${e.color||n.color}`),i=r.computed(()=>n.layout==="comfortable"&&n.side==="left");return()=>{const l=na(t.default,[]);if(e.body!==void 0&&l.unshift(e.body),e.heading===!0){const m=[r.h("div"),r.h("div"),r.h(e.tag,{class:"q-timeline__heading-title"},l)];return r.h("div",{class:"q-timeline__heading"},i.value===!0?m.reverse():m)}let s;e.icon!==void 0?s=[r.h(wt,{class:"row items-center justify-center",name:e.icon})]:e.avatar!==void 0&&(s=[r.h("img",{class:"q-timeline__dot-img",src:e.avatar})]);const d=[r.h("div",{class:"q-timeline__subtitle"},[r.h("span",{},Ke(t.subtitle,[e.subtitle]))]),r.h("div",{class:a.value},s),r.h("div",{class:"q-timeline__content"},[r.h("h6",{class:"q-timeline__title"},Ke(t.title,[e.title]))].concat(l))];return r.h("li",{class:o.value},i.value===!0?d.reverse():d)}}}),_e({name:"QToolbar",props:{inset:Boolean},setup(e,{slots:t}){const n=r.computed(()=>"q-toolbar row no-wrap items-center"+(e.inset===!0?" q-toolbar--inset":""));return()=>r.h("div",{class:n.value,role:"toolbar"},Ke(t.default))}}),_e({name:"QToolbarTitle",props:{shrink:Boolean},setup(e,{slots:t}){const n=r.computed(()=>"q-toolbar__title ellipsis"+(e.shrink===!0?" col-shrink":""));return()=>r.h("div",{class:n.value},Ke(t.default))}});var E1=["none","strict","leaf","leaf-filtered"];_e({name:"QTree",props:{...bt,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=>E1.includes(e)},ticked:Array,expanded:Array,selected:{},noSelectionUnset:Boolean,defaultExpandAll:Boolean,accordion:Boolean,filter:String,filterMethod:Function,duration:{},noConnectors:Boolean,noTransition:Boolean,noNodesLabel:String,noResultsLabel:String},emits:["update:expanded","update:ticked","update:selected","lazyLoad","afterShow","afterHide"],setup(e,{slots:t,emit:n}){const{proxy:o}=r.getCurrentInstance(),{$q:a}=o,i=yt(e,a),l=r.ref({}),s=r.ref(e.ticked||[]),d=r.ref(e.expanded||[]);let m={};r.onBeforeUpdate(()=>{m={}});const v=r.computed(()=>`q-tree q-tree--${e.dense===!0?"dense":"standard"}`+(e.noConnectors===!0?" q-tree--no-connectors":"")+(i.value===!0?" q-tree--dark":"")+(e.color!==void 0?` text-${e.color}`:"")),b=r.computed(()=>e.selected!==void 0),p=r.computed(()=>e.icon||a.iconSet.tree.icon),_=r.computed(()=>e.controlColor||e.color),g=r.computed(()=>e.textColor!==void 0?` text-${e.textColor}`:""),E=r.computed(()=>{const R=e.selectedColor||e.color;return R?` text-${R}`:""}),C=r.computed(()=>e.filterMethod!==void 0?e.filterMethod:(R,ae)=>{const J=ae.toLowerCase();return R[e.labelKey]&&R[e.labelKey].toLowerCase().indexOf(J)!==-1}),w=r.computed(()=>{const R={},ae=(J,be)=>{const W=J.tickStrategy||(be?be.tickStrategy:e.tickStrategy),ne=J[e.nodeKey],we=J[e.childrenKey]&&Array.isArray(J[e.childrenKey])&&J[e.childrenKey].length!==0,Q=J.disabled!==!0&&b.value===!0&&J.selectable!==!1,Oe=J.disabled!==!0&&J.expandable!==!1,Le=W!=="none",le=W==="strict",qe=W==="leaf-filtered",Re=W==="leaf"||W==="leaf-filtered";let Fe=J.disabled!==!0&&J.tickable!==!1;Re===!0&&Fe===!0&&be&&be.tickable!==!0&&(Fe=!1);let He=J.lazy;He===!0&&l.value[ne]!==void 0&&Array.isArray(J[e.childrenKey])===!0&&(He=l.value[ne]);const ke={key:ne,parent:be,isParent:we,lazy:He,disabled:J.disabled,link:J.disabled!==!0&&(Q===!0||Oe===!0&&(we===!0||He===!0)),children:[],matchesFilter:e.filter?C.value(J,e.filter):!0,selected:ne===e.selected&&Q===!0,selectable:Q,expanded:we===!0?d.value.includes(ne):!1,expandable:Oe,noTick:J.noTick===!0||le!==!0&&He&&He!=="loaded",tickable:Fe,tickStrategy:W,hasTicking:Le,strictTicking:le,leafFilteredTicking:qe,leafTicking:Re,ticked:le===!0?s.value.includes(ne):we===!0?!1:s.value.includes(ne)};if(R[ne]=ke,we===!0&&(ke.children=J[e.childrenKey].map(z=>ae(z,ke)),e.filter&&(ke.matchesFilter!==!0?ke.matchesFilter=ke.children.some(z=>z.matchesFilter):ke.noTick!==!0&&ke.disabled!==!0&&ke.tickable===!0&&qe===!0&&ke.children.every(z=>z.matchesFilter!==!0||z.noTick===!0||z.tickable!==!0)===!0&&(ke.tickable=!1)),ke.matchesFilter===!0&&(ke.noTick!==!0&&le!==!0&&ke.children.every(z=>z.noTick)===!0&&(ke.noTick=!0),Re))){if(ke.ticked=!1,ke.indeterminate=ke.children.some(z=>z.indeterminate===!0),ke.tickable=ke.tickable===!0&&ke.children.some(z=>z.tickable),ke.indeterminate!==!0){const z=ke.children.reduce((K,ve)=>ve.ticked===!0?K+1:K,0);z===ke.children.length?ke.ticked=!0:z>0&&(ke.indeterminate=!0)}ke.indeterminate===!0&&(ke.indeterminateNextState=ke.children.every(z=>z.tickable!==!0||z.ticked!==!0))}return ke};return e.nodes.forEach(J=>ae(J,null)),R});r.watch(()=>e.ticked,R=>{s.value=R}),r.watch(()=>e.expanded,R=>{d.value=R});function T(R){const ae=[].reduce,J=(be,W)=>{if(be||!W)return be;if(Array.isArray(W)===!0)return ae.call(Object(W),J,be);if(W[e.nodeKey]===R)return W;if(W[e.childrenKey])return J(null,W[e.childrenKey])};return J(null,e.nodes)}function x(){return s.value.map(R=>T(R))}function y(){return d.value.map(R=>T(R))}function q(R){return R&&w.value[R]?w.value[R].expanded:!1}function L(){e.expanded!==void 0?n("update:expanded",[]):d.value=[]}function k(){const R=[],ae=J=>{J[e.childrenKey]&&J[e.childrenKey].length!==0&&J.expandable!==!1&&J.disabled!==!0&&(R.push(J[e.nodeKey]),J[e.childrenKey].forEach(ae))};e.nodes.forEach(ae),e.expanded!==void 0?n("update:expanded",R):d.value=R}function H(R,ae,J=T(R),be=w.value[R]){if(be.lazy&&be.lazy!=="loaded"){if(be.lazy==="loading")return;l.value[R]="loading",Array.isArray(J[e.childrenKey])!==!0&&(J[e.childrenKey]=[]),n("lazyLoad",{node:J,key:R,done:W=>{l.value[R]="loaded",J[e.childrenKey]=Array.isArray(W)===!0?W:[],r.nextTick(()=>{w.value[R]?.isParent===!0&&ee(R,!0)})},fail:()=>{delete l.value[R],J[e.childrenKey].length===0&&delete J[e.childrenKey]}})}else be.isParent===!0&&be.expandable===!0&&ee(R,ae)}function ee(R,ae){let J=d.value;const be=e.expanded!==void 0;if(be===!0&&(J=J.slice()),ae){if(e.accordion&&w.value[R]){const W=[];w.value[R].parent?w.value[R].parent.children.forEach(ne=>{ne.key!==R&&ne.expandable===!0&&W.push(ne.key)}):e.nodes.forEach(ne=>{const we=ne[e.nodeKey];we!==R&&W.push(we)}),W.length!==0&&(J=J.filter(ne=>W.includes(ne)===!1))}J=J.concat([R]).filter((W,ne,we)=>we.indexOf(W)===ne)}else J=J.filter(W=>W!==R);be===!0?n("update:expanded",J):d.value=J}function N(R){return R&&w.value[R]?w.value[R].ticked:!1}function I(R,ae){let J=s.value;const be=e.ticked!==void 0;be===!0&&(J=J.slice()),ae?J=J.concat(R).filter((W,ne,we)=>we.indexOf(W)===ne):J=J.filter(W=>R.includes(W)===!1),be===!0&&n("update:ticked",J)}function $(R,ae,J){const be={tree:o,node:R,key:J,color:e.color,dark:i.value};return Jt(be,"expanded",()=>ae.expanded,W=>{W!==ae.expanded&&H(J,W)}),Jt(be,"ticked",()=>ae.ticked,W=>{W!==ae.ticked&&I([J],W)}),be}function D(R){return(e.filter?R.filter(ae=>w.value[ae[e.nodeKey]].matchesFilter):R).map(ae=>X(ae))}function P(R){if(R.icon!==void 0)return r.h(wt,{class:"q-tree__icon q-mr-sm",name:R.icon,color:R.iconColor});const ae=R.img||R.avatar;if(ae)return r.h("img",{class:`q-tree__${R.img?"img":"avatar"} q-mr-sm`,src:ae})}function F(){n("afterShow")}function Y(){n("afterHide")}function X(R){const ae=R[e.nodeKey],J=w.value[ae],be=R.header&&t[`header-${R.header}`]||t["default-header"],W=J.isParent===!0?D(R[e.childrenKey]):[],ne=W.length!==0||J.lazy&&J.lazy!=="loaded";let we=R.body&&t[`body-${R.body}`]||t["default-body"];const Q=be!==void 0||we!==void 0?$(R,J,ae):null;return we!==void 0&&(we=r.h("div",{class:"q-tree__node-body relative-position"},[r.h("div",{class:g.value},[we(Q)])])),r.h("div",{key:ae,class:`q-tree__node relative-position q-tree__node--${ne===!0?"parent":"child"}`},[r.h("div",{class:"q-tree__node-header relative-position row no-wrap items-center"+(J.link===!0?" q-tree__node--link q-hoverable q-focusable":"")+(J.selected===!0?" q-tree__node--selected":"")+(J.disabled===!0?" q-tree__node--disabled":""),tabindex:J.link===!0?0:-1,ariaExpanded:W.length>0?J.expanded:null,role:"treeitem",onClick:Oe=>{ce(R,J,Oe)},onKeypress(Oe){Nr(Oe)!==!0&&(Oe.keyCode===13?ce(R,J,Oe,!0):Oe.keyCode===32&&Ee(R,J,Oe,!0))}},[r.h("div",{class:"q-focus-helper",tabindex:-1,ref:Oe=>{m[J.key]=Oe}}),J.lazy==="loading"?r.h(Fn,{class:"q-tree__spinner",color:_.value}):ne===!0?r.h(wt,{class:"q-tree__arrow"+(J.expanded===!0?" q-tree__arrow--rotate":""),name:p.value,onClick(Oe){Ee(R,J,Oe)}}):null,J.hasTicking===!0&&J.noTick!==!0?r.h(ca,{class:"q-tree__tickbox",modelValue:J.indeterminate===!0?null:J.ticked,color:_.value,dark:i.value,dense:!0,keepColor:!0,disable:J.tickable!==!0,onKeydown:ct,"onUpdate:modelValue":Oe=>{G(J,Oe)}}):null,r.h("div",{class:"q-tree__node-header-content col row no-wrap items-center"+(J.selected===!0?E.value:g.value)},[be?be(Q):[P(R),r.h("div",R[e.labelKey])]])]),ne===!0?e.noTransition===!0?J.expanded===!0?r.h("div",{class:"q-tree__node-collapsible"+g.value,key:`${ae}__q`},[we,r.h("div",{class:"q-tree__children"+(J.disabled===!0?" q-tree__node--disabled":""),role:"group"},W)]):null:r.h(yu,{duration:e.duration,onShow:F,onHide:Y},()=>r.withDirectives(r.h("div",{class:"q-tree__node-collapsible"+g.value,key:`${ae}__q`},[we,r.h("div",{class:"q-tree__children"+(J.disabled===!0?" q-tree__node--disabled":""),role:"group"},W)]),[[r.vShow,J.expanded]])):we])}function Z(R){m[R]?.focus()}function ce(R,ae,J,be){be!==!0&&ae.selectable!==!1&&Z(ae.key),b.value&&ae.selectable?e.noSelectionUnset===!1?n("update:selected",ae.key!==e.selected?ae.key:null):ae.key!==e.selected&&n("update:selected",ae.key===void 0?null:ae.key):Ee(R,ae,J,be),typeof R.handler=="function"&&R.handler(R)}function Ee(R,ae,J,be){J!==void 0&&ct(J),be!==!0&&ae.selectable!==!1&&Z(ae.key),H(ae.key,!ae.expanded,R,ae)}function G(R,ae){if(R.indeterminate===!0&&(ae=R.indeterminateNextState),R.strictTicking)I([R.key],ae);else if(R.leafTicking){const J=[],be=W=>{W.isParent?(ae!==!0&&W.noTick!==!0&&W.tickable===!0&&J.push(W.key),W.leafTicking===!0&&W.children.forEach(be)):W.noTick!==!0&&W.tickable===!0&&(W.leafFilteredTicking!==!0||W.matchesFilter===!0)&&J.push(W.key)};be(R),I(J,ae)}}return e.defaultExpandAll===!0&&k(),Object.assign(o,{getNodeByKey:T,getTickedNodes:x,getExpandedNodes:y,isExpanded:q,collapseAll:L,expandAll:k,setExpanded:H,isTicked:N,setTicked:I}),()=>{const R=D(e.nodes);return r.h("div",{class:v.value,role:"tree"},R.length===0?e.filter?e.noResultsLabel||a.lang.tree.noResults:e.noNodesLabel||a.lang.tree.noNodes:R)}}});function rh(e){return(e*100).toFixed(2)+"%"}var T1={...bt,..._m,label:String,color:String,textColor:String,square:Boolean,flat:Boolean,bordered:Boolean,noThumbnails:Boolean,thumbnailFit:{type:String,default:"cover"},autoUpload:Boolean,hideUploadBtn:Boolean,disable:Boolean,readonly:Boolean},oh=[...Sm,"start","finish","added","removed"];function O1(e,t){const n=r.getCurrentInstance(),{props:o,slots:a,emit:i,proxy:l}=n,{$q:s}=l,d=yt(o,s);function m(Q,Oe,Le){if(Q.__status=Oe,Oe==="idle"){Q.__uploaded=0,Q.__progress=0,Q.__sizeLabel=gs(Q.size),Q.__progressLabel="0.00%";return}if(Oe==="failed"){l.$forceUpdate();return}Q.__uploaded=Oe==="uploaded"?Q.size:Le,Q.__progress=Oe==="uploaded"?1:Math.min(.9999,Q.__uploaded/Q.size),Q.__progressLabel=rh(Q.__progress),l.$forceUpdate()}const v=r.computed(()=>o.disable!==!0&&o.readonly!==!0),b=r.ref(!1),p=r.ref(null),_=r.ref(null),g={files:r.ref([]),queuedFiles:r.ref([]),uploadedFiles:r.ref([]),uploadedSize:r.ref(0),updateFileStatus:m,isAlive:()=>mr(n)===!1},{pickFiles:E,addFiles:C,onDragover:w,onDragleave:T,processFiles:x,getDndNode:y,maxFilesNumber:q,maxTotalSizeNumber:L}=wm({editable:v,dnd:b,getFileInput:G,addFilesToQueue:R});Object.assign(g,e({props:o,slots:a,emit:i,helpers:g,exposeApi:Q=>{Object.assign(g,Q)}})),g.isBusy===void 0&&(g.isBusy=r.ref(!1));const k=r.ref(0),H=r.computed(()=>k.value===0?0:g.uploadedSize.value/k.value),ee=r.computed(()=>rh(H.value)),N=r.computed(()=>gs(k.value)),I=r.computed(()=>v.value===!0&&g.isUploading.value!==!0&&(o.multiple===!0||g.queuedFiles.value.length===0)&&(o.maxFiles===void 0||g.files.value.length<q.value)&&(o.maxTotalSize===void 0||k.value<L.value)),$=r.computed(()=>v.value===!0&&g.isBusy.value!==!0&&g.isUploading.value!==!0&&g.queuedFiles.value.length!==0);r.provide(Sf,be);const D=r.computed(()=>"q-uploader column no-wrap"+(d.value===!0?" q-uploader--dark q-dark":"")+(o.bordered===!0?" q-uploader--bordered":"")+(o.square===!0?" q-uploader--square no-border-radius":"")+(o.flat===!0?" q-uploader--flat no-shadow":"")+(o.disable===!0?" disabled q-uploader--disable":"")+(b.value===!0?" q-uploader--dnd":"")),P=r.computed(()=>"q-uploader__header"+(o.color!==void 0?` bg-${o.color}`:"")+(o.textColor!==void 0?` text-${o.textColor}`:""));r.watch(g.isUploading,(Q,Oe)=>{Oe===!1&&Q===!0?i("start"):Oe===!0&&Q===!1&&i("finish")});function F(){o.disable===!1&&(g.abort(),g.uploadedSize.value=0,k.value=0,Ee(),g.files.value=[],g.queuedFiles.value=[],g.uploadedFiles.value=[])}function Y(){o.disable===!1&&Z(["uploaded"],()=>{g.uploadedFiles.value=[]})}function X(){Z(["idle","failed"],({size:Q})=>{k.value-=Q,g.queuedFiles.value=[]})}function Z(Q,Oe){if(o.disable===!0)return;const Le={files:[],size:0},le=g.files.value.filter(qe=>Q.indexOf(qe.__status)===-1?!0:(Le.size+=qe.size,Le.files.push(qe),qe.__img!==void 0&&window.URL.revokeObjectURL(qe.__img.src),!1));Le.files.length!==0&&(g.files.value=le,Oe(Le),i("removed",Le.files))}function ce(Q){o.disable||(Q.__status==="uploaded"?g.uploadedFiles.value=g.uploadedFiles.value.filter(Oe=>Oe.__key!==Q.__key):Q.__status==="uploading"?Q.__abort():k.value-=Q.size,g.files.value=g.files.value.filter(Oe=>Oe.__key!==Q.__key?!0:(Oe.__img!==void 0&&window.URL.revokeObjectURL(Oe.__img.src),!1)),g.queuedFiles.value=g.queuedFiles.value.filter(Oe=>Oe.__key!==Q.__key),i("removed",[Q]))}function Ee(){g.files.value.forEach(Q=>{Q.__img!==void 0&&window.URL.revokeObjectURL(Q.__img.src)})}function G(){return _.value||p.value.getElementsByClassName("q-uploader__input")[0]}function R(Q,Oe){const Le=x(Q,Oe,g.files.value,!0),le=G();le!=null&&(le.value=""),Le!==void 0&&(Le.forEach(qe=>{if(g.updateFileStatus(qe,"idle"),k.value+=qe.size,o.noThumbnails!==!0&&qe.type.toUpperCase().startsWith("IMAGE")){const Re=new Image;Re.src=window.URL.createObjectURL(qe),qe.__img=Re}}),g.files.value=g.files.value.concat(Le),g.queuedFiles.value=g.queuedFiles.value.concat(Le),i("added",Le),o.autoUpload===!0&&g.upload())}function ae(){$.value===!0&&g.upload()}function J(Q,Oe,Le){if(Q===!0){const le={type:"a",key:Oe,icon:s.iconSet.uploader[Oe],flat:!0,dense:!0};let qe;return Oe==="add"?(le.onClick=E,qe=be):le.onClick=Le,r.h(xt,le,qe)}}function be(){return r.h("input",{ref:_,class:"q-uploader__input overflow-hidden absolute-full",tabindex:-1,type:"file",title:"",accept:o.accept,multiple:o.multiple===!0?"multiple":void 0,capture:o.capture,onMousedown:$t,onClick:E,onChange:R})}function W(){return a.header!==void 0?a.header(we):[r.h("div",{class:"q-uploader__header-content column"},[r.h("div",{class:"flex flex-center no-wrap q-gutter-xs"},[J(g.queuedFiles.value.length!==0,"removeQueue",X),J(g.uploadedFiles.value.length!==0,"removeUploaded",Y),g.isUploading.value===!0?r.h(Fn,{class:"q-uploader__spinner"}):null,r.h("div",{class:"col column justify-center"},[o.label!==void 0?r.h("div",{class:"q-uploader__title"},[o.label]):null,r.h("div",{class:"q-uploader__subtitle"},[N.value+" / "+ee.value])]),J(I.value,"add"),J(o.hideUploadBtn===!1&&$.value===!0,"upload",g.upload),J(g.isUploading.value,"clear",g.abort)])])]}function ne(){return a.list!==void 0?a.list(we):g.files.value.map(Q=>r.h("div",{key:Q.__key,class:"q-uploader__file relative-position"+(o.noThumbnails!==!0&&Q.__img!==void 0?" q-uploader__file--img":"")+(Q.__status==="failed"?" q-uploader__file--failed":Q.__status==="uploaded"?" q-uploader__file--uploaded":""),style:o.noThumbnails!==!0&&Q.__img!==void 0?{backgroundImage:'url("'+Q.__img.src+'")',backgroundSize:o.thumbnailFit}:null},[r.h("div",{class:"q-uploader__file-header row flex-center no-wrap"},[Q.__status==="failed"?r.h(wt,{class:"q-uploader__file-status",name:s.iconSet.type.negative,color:"negative"}):null,r.h("div",{class:"q-uploader__file-header-content col"},[r.h("div",{class:"q-uploader__title"},[Q.name]),r.h("div",{class:"q-uploader__subtitle row items-center no-wrap"},[Q.__sizeLabel+" / "+Q.__progressLabel])]),Q.__status==="uploading"?r.h(_v,{value:Q.__progress,min:0,max:1,indeterminate:Q.__progress===0}):r.h(xt,{round:!0,dense:!0,flat:!0,icon:s.iconSet.uploader[Q.__status==="uploaded"?"done":"clear"],onClick:()=>{ce(Q)}})])]))}r.onBeforeUnmount(()=>{g.isUploading.value===!0&&g.abort(),g.files.value.length!==0&&Ee()});const we={};for(const Q in g)r.isRef(g[Q])===!0?Jt(we,Q,()=>g[Q].value):we[Q]=g[Q];return Object.assign(we,{upload:ae,reset:F,removeUploadedFiles:Y,removeQueuedFiles:X,removeFile:ce,pickFiles:E,addFiles:C}),sf(we,{canAddFiles:()=>I.value,canUpload:()=>$.value,uploadSizeLabel:()=>N.value,uploadProgressLabel:()=>ee.value}),t({...g,upload:ae,reset:F,removeUploadedFiles:Y,removeQueuedFiles:X,removeFile:ce,pickFiles:E,addFiles:C,canAddFiles:I,canUpload:$,uploadSizeLabel:N,uploadProgressLabel:ee}),()=>{const Q=[r.h("div",{class:P.value},W()),r.h("div",{class:"q-uploader__list scroll"},ne()),y("uploader")];g.isBusy.value===!0&&Q.push(r.h("div",{class:"q-uploader__overlay absolute-full flex flex-center"},[r.h(Fn)]));const Oe={ref:p,class:D.value};return I.value===!0&&Object.assign(Oe,{onDragover:w,onDragleave:T}),r.h("div",Oe,Q)}}var q1=()=>!0;function ah(e){const t={};return e.forEach(n=>{t[n]=q1}),t}var M1=ah(oh),P1=({name:e,props:t,emits:n,injectPlugin:o})=>_e({name:e,props:{...T1,...t},emits:dn(n)===!0?{...M1,...n}:[...oh,...n],setup(a,{expose:i}){return O1(o,i)}});function sr(e){return typeof e=="function"?e:()=>e}var A1="QUploader",R1={url:[Function,String],method:{type:[Function,String],default:"POST"},fieldName:{type:[Function,String],default:()=>e=>e.name},headers:[Function,Array],formFields:[Function,Array],withCredentials:[Function,Boolean],sendRaw:[Function,Boolean],batch:[Function,Boolean],factory:Function},L1=["factoryFailed","uploaded","failed","uploading"];function I1({props:e,emit:t,helpers:n}){const o=r.ref([]),a=r.ref([]),i=r.ref(0),l=r.computed(()=>({url:sr(e.url),method:sr(e.method),headers:sr(e.headers),formFields:sr(e.formFields),fieldName:sr(e.fieldName),withCredentials:sr(e.withCredentials),sendRaw:sr(e.sendRaw),batch:sr(e.batch)})),s=r.computed(()=>i.value>0),d=r.computed(()=>a.value.length!==0);let m;function v(){o.value.forEach(g=>{g.abort()}),a.value.length!==0&&(m=!0)}function b(){const g=n.queuedFiles.value.slice(0);n.queuedFiles.value=[],l.value.batch(g)?p(g):g.forEach(E=>{p([E])})}function p(g){if(i.value++,typeof e.factory!="function"){_(g,{});return}const E=e.factory(g);if(!E)t("factoryFailed",new Error("QUploader: factory() does not return properly"),g),i.value--;else if(typeof E.catch=="function"&&typeof E.then=="function"){a.value.push(E);const C=w=>{n.isAlive()===!0&&(a.value=a.value.filter(T=>T!==E),a.value.length===0&&(m=!1),n.queuedFiles.value=n.queuedFiles.value.concat(g),g.forEach(T=>{n.updateFileStatus(T,"failed")}),t("factoryFailed",w,g),i.value--)};E.then(w=>{m===!0?C(new Error("Aborted")):n.isAlive()===!0&&(a.value=a.value.filter(T=>T!==E),_(g,w))}).catch(C)}else _(g,E||{})}function _(g,E){const C=new FormData,w=new XMLHttpRequest,T=($,D)=>E[$]!==void 0?sr(E[$])(D):l.value[$](D),x=T("url",g);if(!x){console.error("q-uploader: invalid or no URL specified"),i.value--;return}const y=T("formFields",g);y!==void 0&&y.forEach($=>{C.append($.name,$.value)});let q=0,L=0,k=0,H=0,ee;w.upload.addEventListener("progress",$=>{if(ee===!0)return;const D=Math.min(H,$.loaded);n.uploadedSize.value+=D-k,k=D;let P=k-L;for(let F=q;P>0&&F<g.length;F++){const Y=g[F];if(P>Y.size)P-=Y.size,q++,L+=Y.size,n.updateFileStatus(Y,"uploading",Y.size);else{n.updateFileStatus(Y,"uploading",P);return}}},!1),w.onreadystatechange=()=>{w.readyState<4||(w.status&&w.status<400?(n.uploadedFiles.value=n.uploadedFiles.value.concat(g),g.forEach($=>{n.updateFileStatus($,"uploaded")}),t("uploaded",{files:g,xhr:w})):(ee=!0,n.uploadedSize.value-=k,n.queuedFiles.value=n.queuedFiles.value.concat(g),g.forEach($=>{n.updateFileStatus($,"failed")}),t("failed",{files:g,xhr:w})),i.value--,o.value=o.value.filter($=>$!==w))},w.open(T("method",g),x),T("withCredentials",g)===!0&&(w.withCredentials=!0);const N=T("headers",g);N!==void 0&&N.forEach($=>{w.setRequestHeader($.name,$.value)});const I=T("sendRaw",g);g.forEach($=>{n.updateFileStatus($,"uploading",0),I!==!0&&C.append(T("fieldName",$),$,$.name),$.xhr=w,$.__abort=()=>{w.abort()},H+=$.size}),t("uploading",{files:g,xhr:w}),o.value.push(w),I===!0?w.send(new Blob(g)):w.send(C)}return{isUploading:s,isBusy:d,abort:v,upload:b}}var N1={name:A1,props:R1,emits:L1,injectPlugin:I1};P1(N1),_e({name:"QUploaderAddTrigger",setup(){const e=r.inject(Sf,kt);return e===kt&&console.error("QUploaderAddTrigger needs to be child of QUploader"),e}}),_e({name:"QVideo",props:{...wu,src:{type:String,required:!0},title:String,fetchpriority:{type:String,default:"auto"},loading:{type:String,default:"eager"},referrerpolicy:{type:String,default:"strict-origin-when-cross-origin"}},setup(e){const t=Cu(e),n=r.computed(()=>"q-video"+(e.ratio!==void 0?" q-video--responsive":""));return()=>r.h("div",{class:n.value,style:t.value},[r.h("iframe",{src:e.src,title:e.title,fetchpriority:e.fetchpriority,loading:e.loading,referrerpolicy:e.referrerpolicy,frameborder:"0",allowfullscreen:!0})])}});function ih(e){if(e===!1)return 0;if(e===!0||e===void 0)return 1;const t=parseInt(e,10);return isNaN(t)?0:t}Dn({name:"close-popup",beforeMount(e,{value:t}){const n={depth:ih(t),handler(o){n.depth!==0&&setTimeout(()=>{const a=__(e);a!==void 0&&S_(a,o,n.depth)})},handlerKey(o){qn(o,13)===!0&&n.handler(o)}};e.__qclosepopup=n,e.addEventListener("click",n.handler),e.addEventListener("keyup",n.handlerKey)},updated(e,{value:t,oldValue:n}){t!==n&&(e.__qclosepopup.depth=ih(t))},beforeUnmount(e){const t=e.__qclosepopup;e.removeEventListener("click",t.handler),e.removeEventListener("keyup",t.handlerKey),delete e.__qclosepopup}});var D1=0,pa=void 0;function lh(e,t){pa===void 0&&(pa=document.createElement("div"),pa.style.cssText="position: absolute; left: 0; top: 0",document.body.appendChild(pa));const n=e.getBoundingClientRect(),o=pa.getBoundingClientRect(),{marginLeft:a,marginRight:i,marginTop:l,marginBottom:s}=window.getComputedStyle(e),d=parseInt(a,10)+parseInt(i,10),m=parseInt(l,10)+parseInt(s,10);return{left:n.left-o.left,top:n.top-o.top,width:n.right-n.left,height:n.bottom-n.top,widthM:n.right-n.left+(t===!0?0:d),heightM:n.bottom-n.top+(t===!0?0:m),marginH:t===!0?d:0,marginV:t===!0?m:0}}function Gi(e){return{width:e.scrollWidth,height:e.scrollHeight}}var sh=["Top","Right","Bottom","Left"],uh=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],$1=/-block|-inline|block-|inline-/,F1=/(-block|-inline|block-|inline-).*:/;function ch(e,t){const n=window.getComputedStyle(e),o={};for(let a=0;a<t.length;a++){const i=t[a];if(n[i]==="")if(i==="cssText"){const l=n.length;let s="";for(let d=0;d<l;d++)$1.test(n[d])!==!0&&(s+=n[d]+": "+n[n[d]]+"; ");o[i]=s}else if(["borderWidth","borderStyle","borderColor"].indexOf(i)!==-1){const l=i.replace("border","");let s="";for(let d=0;d<sh.length;d++){const m="border"+sh[d]+l;s+=n[m]+" "}o[i]=s}else if(i==="borderRadius"){let l="",s="";for(let d=0;d<uh.length;d++){const m=n[uh[d]].split(" ");l+=m[0]+" ",s+=(m[1]===void 0?m[0]:m[1])+" "}o[i]=l+"/ "+s}else o[i]=n[i];else i==="cssText"?o[i]=n[i].split(";").filter(l=>F1.test(l)!==!0).join(";"):o[i]=n[i]}return o}var B1=["absolute","fixed","relative","sticky"];function dh(e){let t=e,n=0;for(;t!==null&&t!==document;){const{position:o,zIndex:a}=window.getComputedStyle(t),i=Number(a);i>n&&(t===e||B1.includes(o)===!0)&&(n=i),t=t.parentNode}return n}function z1(e){return{from:e.from,to:e.to!==void 0?e.to:e.from}}function H1(e){return typeof e=="number"?e={duration:e}:typeof e=="function"&&(e={onEnd:e}),{...e,waitFor:e.waitFor===void 0?0:e.waitFor,duration:isNaN(e.duration)===!0?300:parseInt(e.duration,10),easing:typeof e.easing=="string"&&e.easing.length!==0?e.easing:"ease-in-out",delay:isNaN(e.delay)===!0?0:parseInt(e.delay,10),fill:typeof e.fill=="string"&&e.fill.length!==0?e.fill:"none",resize:e.resize===!0,useCSS:e.useCSS===!0||e.usecss===!0,hideFromClone:e.hideFromClone===!0||e.hidefromclone===!0,keepToClone:e.keepToClone===!0||e.keeptoclone===!0,tween:e.tween===!0,tweenFromOpacity:isNaN(e.tweenFromOpacity)===!0?.6:parseFloat(e.tweenFromOpacity),tweenToOpacity:isNaN(e.tweenToOpacity)===!0?.5:parseFloat(e.tweenToOpacity)}}function fh(e){const t=typeof e;return t==="function"?e():t==="string"?document.querySelector(e):e}function vh(e){return e&&e.ownerDocument===document&&e.parentNode!==null}function j1(e){let t=()=>!1,n=!1,o=!0;const a=z1(e),i=H1(e),l=fh(a.from);if(vh(l)!==!0)return t;typeof l.qMorphCancel=="function"&&l.qMorphCancel();let s,d,m,v;const b=l.parentNode,p=l.nextElementSibling,_=lh(l,i.resize),{width:g,height:E}=Gi(b),{borderWidth:C,borderStyle:w,borderColor:T,borderRadius:x,backgroundColor:y,transform:q,position:L,cssText:k}=ch(l,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),H=l.classList.toString(),ee=l.style.cssText,N=l.cloneNode(!0),I=i.tween===!0?l.cloneNode(!0):void 0;I!==void 0&&(I.className=I.classList.toString().split(" ").filter(D=>/^bg-/.test(D)===!1).join(" ")),i.hideFromClone===!0&&N.classList.add("q-morph--internal"),N.setAttribute("aria-hidden","true"),N.style.transition="none",N.style.animation="none",N.style.pointerEvents="none",b.insertBefore(N,p),l.qMorphCancel=()=>{n=!0,N.remove(),I?.remove(),i.hideFromClone===!0&&N.classList.remove("q-morph--internal"),l.qMorphCancel=void 0};const $=()=>{const D=fh(a.to);if(n===!0||vh(D)!==!0){typeof l.qMorphCancel=="function"&&l.qMorphCancel();return}l!==D&&typeof D.qMorphCancel=="function"&&D.qMorphCancel(),i.keepToClone!==!0&&D.classList.add("q-morph--internal"),N.classList.add("q-morph--internal");const{width:P,height:F}=Gi(b),{width:Y,height:X}=Gi(D.parentNode);i.hideFromClone!==!0&&N.classList.remove("q-morph--internal"),D.qMorphCancel=()=>{n=!0,N.remove(),I?.remove(),i.hideFromClone===!0&&N.classList.remove("q-morph--internal"),i.keepToClone!==!0&&D.classList.remove("q-morph--internal"),l.qMorphCancel=void 0,D.qMorphCancel=void 0};const Z=()=>{if(n===!0){typeof D.qMorphCancel=="function"&&D.qMorphCancel();return}i.hideFromClone!==!0&&(N.classList.add("q-morph--internal"),N.innerHTML="",N.style.left=0,N.style.right="unset",N.style.top=0,N.style.bottom="unset",N.style.transform="none"),i.keepToClone!==!0&&D.classList.remove("q-morph--internal");const ce=D.parentNode,{width:Ee,height:G}=Gi(ce),R=D.cloneNode(i.keepToClone);R.setAttribute("aria-hidden","true"),i.keepToClone!==!0&&(R.style.left=0,R.style.right="unset",R.style.top=0,R.style.bottom="unset",R.style.transform="none",R.style.pointerEvents="none"),R.classList.add("q-morph--internal");const ae=D===l&&b===ce?N:D.nextElementSibling;ce.insertBefore(R,ae);const{borderWidth:J,borderStyle:be,borderColor:W,borderRadius:ne,backgroundColor:we,transform:Q,position:Oe,cssText:Le}=ch(D,["borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","transform","position","cssText"]),le=D.classList.toString(),qe=D.style.cssText;D.style.cssText=Le,D.style.transform="none",D.style.animation="none",D.style.transition="none",D.className=le.split(" ").filter(xe=>/^bg-/.test(xe)===!1).join(" ");const Re=lh(D,i.resize),Fe=_.left-Re.left,He=_.top-Re.top,ke=_.width/(Re.width>0?Re.width:10),z=_.height/(Re.height>0?Re.height:100),K=g-P,ve=E-F,oe=Ee-Y,se=G-X,Se=Math.max(_.widthM,K),Te=Math.max(_.heightM,ve),ue=Math.max(Re.widthM,oe),ge=Math.max(Re.heightM,se),Ne=l===D&&["absolute","fixed"].includes(Oe)===!1&&["absolute","fixed"].includes(L)===!1;let Be=Oe==="fixed",dt=ce;for(;Be!==!0&&dt!==document;)Be=window.getComputedStyle(dt).position==="fixed",dt=dt.parentNode;if(i.hideFromClone!==!0&&(N.style.display="block",N.style.flex="0 0 auto",N.style.opacity=0,N.style.minWidth="unset",N.style.maxWidth="unset",N.style.minHeight="unset",N.style.maxHeight="unset",N.classList.remove("q-morph--internal")),i.keepToClone!==!0&&(R.style.display="block",R.style.flex="0 0 auto",R.style.opacity=0,R.style.minWidth="unset",R.style.maxWidth="unset",R.style.minHeight="unset",R.style.maxHeight="unset"),R.classList.remove("q-morph--internal"),typeof i.classes=="string"&&(D.className+=" "+i.classes),typeof i.style=="string")D.style.cssText+=" "+i.style;else if(dn(i.style)===!0)for(const xe in i.style)D.style[xe]=i.style[xe];const ut=dh(N),fe=dh(D),Ce=Be===!0?document.documentElement:{scrollLeft:0,scrollTop:0};D.style.position=Be===!0?"fixed":"absolute",D.style.left=`${Re.left-Ce.scrollLeft}px`,D.style.right="unset",D.style.top=`${Re.top-Ce.scrollTop}px`,D.style.margin=0,i.resize===!0&&(D.style.minWidth="unset",D.style.maxWidth="unset",D.style.minHeight="unset",D.style.maxHeight="unset",D.style.overflow="hidden",D.style.overflowX="hidden",D.style.overflowY="hidden"),document.body.appendChild(D),I!==void 0&&(I.style.cssText=k,I.style.transform="none",I.style.animation="none",I.style.transition="none",I.style.position=D.style.position,I.style.left=`${_.left-Ce.scrollLeft}px`,I.style.right="unset",I.style.top=`${_.top-Ce.scrollTop}px`,I.style.margin=0,I.style.pointerEvents="none",i.resize===!0&&(I.style.minWidth="unset",I.style.maxWidth="unset",I.style.minHeight="unset",I.style.maxHeight="unset",I.style.overflow="hidden",I.style.overflowX="hidden",I.style.overflowY="hidden"),document.body.appendChild(I));const de=xe=>{l===D&&o!==!0?(D.style.cssText=ee,D.className=H):(D.style.cssText=qe,D.className=le),R.parentNode===ce&&ce.insertBefore(D,R),N.remove(),R.remove(),I?.remove(),t=()=>!1,l.qMorphCancel=void 0,D.qMorphCancel=void 0,typeof i.onEnd=="function"&&i.onEnd(o===!0?"to":"from",xe===!0)};if(i.useCSS!==!0&&typeof D.animate=="function"){const xe=i.resize===!0?{transform:`translate(${Fe}px, ${He}px)`,width:`${Se}px`,height:`${Te}px`}:{transform:`translate(${Fe}px, ${He}px) scale(${ke}, ${z})`},ze=i.resize===!0?{width:`${ue}px`,height:`${ge}px`}:{},rt=i.resize===!0?{width:`${Se}px`,height:`${Te}px`}:{},Ge=i.resize===!0?{transform:`translate(${-1*Fe}px, ${-1*He}px)`,width:`${ue}px`,height:`${ge}px`}:{transform:`translate(${-1*Fe}px, ${-1*He}px) scale(${1/ke}, ${1/z})`},st=I!==void 0?{opacity:i.tweenToOpacity}:{backgroundColor:y},_t=I!==void 0?{opacity:1}:{backgroundColor:we};v=D.animate([{margin:0,borderWidth:C,borderStyle:w,borderColor:T,borderRadius:x,zIndex:ut,transformOrigin:"0 0",...xe,...st},{margin:0,borderWidth:J,borderStyle:be,borderColor:W,borderRadius:ne,zIndex:fe,transformOrigin:"0 0",transform:Q,...ze,..._t}],{duration:i.duration,easing:i.easing,fill:i.fill,delay:i.delay}),d=I===void 0?void 0:I.animate([{opacity:i.tweenFromOpacity,margin:0,borderWidth:C,borderStyle:w,borderColor:T,borderRadius:x,zIndex:ut,transformOrigin:"0 0",transform:q,...rt},{opacity:0,margin:0,borderWidth:J,borderStyle:be,borderColor:W,borderRadius:ne,zIndex:fe,transformOrigin:"0 0",...Ge}],{duration:i.duration,easing:i.easing,fill:i.fill,delay:i.delay}),s=i.hideFromClone===!0||Ne===!0?void 0:N.animate([{margin:`${ve<0?ve/2:0}px ${K<0?K/2:0}px`,width:`${Se+_.marginH}px`,height:`${Te+_.marginV}px`},{margin:0,width:0,height:0}],{duration:i.duration,easing:i.easing,fill:i.fill,delay:i.delay}),m=i.keepToClone===!0?void 0:R.animate([Ne===!0?{margin:`${ve<0?ve/2:0}px ${K<0?K/2:0}px`,width:`${Se+_.marginH}px`,height:`${Te+_.marginV}px`}:{margin:0,width:0,height:0},{margin:`${se<0?se/2:0}px ${oe<0?oe/2:0}px`,width:`${ue+Re.marginH}px`,height:`${ge+Re.marginV}px`}],{duration:i.duration,easing:i.easing,fill:i.fill,delay:i.delay});const Tt=Vt=>{s?.cancel(),d?.cancel(),m?.cancel(),v.cancel(),v.removeEventListener("finish",Tt),v.removeEventListener("cancel",Tt),de(Vt),s=void 0,d=void 0,m=void 0,v=void 0};l.qMorphCancel=()=>{l.qMorphCancel=void 0,n=!0,Tt()},D.qMorphCancel=()=>{D.qMorphCancel=void 0,n=!0,Tt()},v.addEventListener("finish",Tt),v.addEventListener("cancel",Tt),t=Vt=>n===!0||v===void 0?!1:Vt===!0?(Tt(!0),!0):(o=o!==!0,s?.reverse(),d?.reverse(),m?.reverse(),v.reverse(),!0)}else{const xe=`q-morph-anim-${++D1}`,ze=document.createElement("style"),rt=i.resize===!0?`
|
|
28
|
+
transform: translate(${Fe}px, ${He}px);
|
|
29
|
+
width: ${Se}px;
|
|
30
|
+
height: ${Te}px;
|
|
31
|
+
`:`transform: translate(${Fe}px, ${He}px) scale(${ke}, ${z});`,Ge=i.resize===!0?`
|
|
32
|
+
width: ${ue}px;
|
|
33
|
+
height: ${ge}px;
|
|
34
|
+
`:"",st=i.resize===!0?`
|
|
35
|
+
width: ${Se}px;
|
|
36
|
+
height: ${Te}px;
|
|
37
|
+
`:"",_t=i.resize===!0?`
|
|
38
|
+
transform: translate(${-1*Fe}px, ${-1*He}px);
|
|
39
|
+
width: ${ue}px;
|
|
40
|
+
height: ${ge}px;
|
|
41
|
+
`:`transform: translate(${-1*Fe}px, ${-1*He}px) scale(${1/ke}, ${1/z});`,Tt=I!==void 0?`opacity: ${i.tweenToOpacity};`:`background-color: ${y};`,Vt=I!==void 0?"opacity: 1;":`background-color: ${we};`,Ln=I===void 0?"":`
|
|
42
|
+
@keyframes ${xe}-from-tween {
|
|
43
43
|
0% {
|
|
44
|
-
opacity: ${
|
|
44
|
+
opacity: ${i.tweenFromOpacity};
|
|
45
45
|
margin: 0;
|
|
46
|
-
border-width: ${
|
|
47
|
-
border-style: ${
|
|
48
|
-
border-color: ${
|
|
49
|
-
border-radius: ${
|
|
50
|
-
z-index: ${
|
|
46
|
+
border-width: ${C};
|
|
47
|
+
border-style: ${w};
|
|
48
|
+
border-color: ${T};
|
|
49
|
+
border-radius: ${x};
|
|
50
|
+
z-index: ${ut};
|
|
51
51
|
transform-origin: 0 0;
|
|
52
|
-
transform: ${
|
|
53
|
-
${
|
|
52
|
+
transform: ${q};
|
|
53
|
+
${st}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
100% {
|
|
57
57
|
opacity: 0;
|
|
58
58
|
margin: 0;
|
|
59
|
-
border-width: ${
|
|
60
|
-
border-style: ${
|
|
61
|
-
border-color: ${
|
|
62
|
-
border-radius: ${
|
|
63
|
-
z-index: ${
|
|
59
|
+
border-width: ${J};
|
|
60
|
+
border-style: ${be};
|
|
61
|
+
border-color: ${W};
|
|
62
|
+
border-radius: ${ne};
|
|
63
|
+
z-index: ${fe};
|
|
64
64
|
transform-origin: 0 0;
|
|
65
|
-
${
|
|
65
|
+
${_t}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
69
|
-
@keyframes ${
|
|
68
|
+
`,vn=i.hideFromClone===!0||Ne===!0?"":`
|
|
69
|
+
@keyframes ${xe}-from {
|
|
70
70
|
0% {
|
|
71
|
-
margin: ${
|
|
72
|
-
width: ${
|
|
73
|
-
height: ${
|
|
71
|
+
margin: ${ve<0?ve/2:0}px ${K<0?K/2:0}px;
|
|
72
|
+
width: ${Se+_.marginH}px;
|
|
73
|
+
height: ${Te+_.marginV}px;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
100% {
|
|
@@ -79,59 +79,59 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
79
79
|
height: 0;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
`,
|
|
83
|
-
margin: ${
|
|
84
|
-
width: ${
|
|
85
|
-
height: ${
|
|
82
|
+
`,wn=Ne===!0?`
|
|
83
|
+
margin: ${ve<0?ve/2:0}px ${K<0?K/2:0}px;
|
|
84
|
+
width: ${Se+_.marginH}px;
|
|
85
|
+
height: ${Te+_.marginV}px;
|
|
86
86
|
`:`
|
|
87
87
|
margin: 0;
|
|
88
88
|
width: 0;
|
|
89
89
|
height: 0;
|
|
90
|
-
`,
|
|
91
|
-
@keyframes ${
|
|
90
|
+
`,pe=i.keepToClone===!0?"":`
|
|
91
|
+
@keyframes ${xe}-to {
|
|
92
92
|
0% {
|
|
93
|
-
${
|
|
93
|
+
${wn}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
100% {
|
|
97
|
-
margin: ${
|
|
98
|
-
width: ${
|
|
99
|
-
height: ${
|
|
97
|
+
margin: ${se<0?se/2:0}px ${oe<0?oe/2:0}px;
|
|
98
|
+
width: ${ue+Re.marginH}px;
|
|
99
|
+
height: ${ge+Re.marginV}px;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
`;
|
|
103
|
-
@keyframes ${
|
|
102
|
+
`;ze.innerHTML=`
|
|
103
|
+
@keyframes ${xe} {
|
|
104
104
|
0% {
|
|
105
105
|
margin: 0;
|
|
106
|
-
border-width: ${
|
|
107
|
-
border-style: ${
|
|
108
|
-
border-color: ${
|
|
109
|
-
border-radius: ${
|
|
110
|
-
background-color: ${
|
|
111
|
-
z-index: ${
|
|
106
|
+
border-width: ${C};
|
|
107
|
+
border-style: ${w};
|
|
108
|
+
border-color: ${T};
|
|
109
|
+
border-radius: ${x};
|
|
110
|
+
background-color: ${y};
|
|
111
|
+
z-index: ${ut};
|
|
112
112
|
transform-origin: 0 0;
|
|
113
|
-
${
|
|
114
|
-
${
|
|
113
|
+
${rt}
|
|
114
|
+
${Tt}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
100% {
|
|
118
118
|
margin: 0;
|
|
119
|
-
border-width: ${
|
|
120
|
-
border-style: ${
|
|
121
|
-
border-color: ${
|
|
122
|
-
border-radius: ${
|
|
123
|
-
background-color: ${
|
|
124
|
-
z-index: ${
|
|
119
|
+
border-width: ${J};
|
|
120
|
+
border-style: ${be};
|
|
121
|
+
border-color: ${W};
|
|
122
|
+
border-radius: ${ne};
|
|
123
|
+
background-color: ${we};
|
|
124
|
+
z-index: ${fe};
|
|
125
125
|
transform-origin: 0 0;
|
|
126
|
-
transform: ${
|
|
127
|
-
${
|
|
128
|
-
${
|
|
126
|
+
transform: ${Q};
|
|
127
|
+
${Ge}
|
|
128
|
+
${Vt}
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
${
|
|
132
|
+
${vn}
|
|
133
133
|
|
|
134
|
-
${
|
|
134
|
+
${Ln}
|
|
135
135
|
|
|
136
|
-
${
|
|
137
|
-
`,document.head.appendChild(xe);let ye="normal";q.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${ye} ${l.fill} ${de}-from`,T!==void 0&&(T.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${ye} ${l.fill} ${de}-from-tween`),x.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${ye} ${l.fill} ${de}-to`,O.style.animation=`${l.duration}ms ${l.easing} ${l.delay}ms ${ye} ${l.fill} ${de}`;const Pe=Re=>{Re===Object(Re)&&Re.animationName!==de||(O.removeEventListener("animationend",Pe),O.removeEventListener("animationcancel",Pe),V(),xe.remove())};i.qMorphCancel=()=>{i.qMorphCancel=void 0,n=!0,Pe()},O.qMorphCancel=()=>{O.qMorphCancel=void 0,n=!0,Pe()},O.addEventListener("animationend",Pe),O.addEventListener("animationcancel",Pe),t=Re=>n===!0||!O||!q||!x?!1:Re===!0?(Pe(),!0):(a=a!==!0,ye=ye==="normal"?"reverse":"normal",q.style.animationDirection=ye,T.style.animationDirection=ye,x.style.animationDirection=ye,O.style.animationDirection=ye,!0)}};l.waitFor>0||l.waitFor==="transitionend"||l.waitFor===Object(l.waitFor)&&typeof l.waitFor.then=="function"?(l.waitFor>0?new Promise(he=>setTimeout(he,l.waitFor)):l.waitFor==="transitionend"?new Promise(he=>{const $=()=>{x!==null&&(clearTimeout(x),x=null),O&&(O.removeEventListener("transitionend",$),O.removeEventListener("transitioncancel",$)),he()};let x=setTimeout($,400);O.addEventListener("transitionend",$),O.addEventListener("transitioncancel",$)}):l.waitFor).then(F).catch(()=>{typeof O.qMorphCancel=="function"&&O.qMorphCancel()}):F()};return typeof e.onToggle=="function"&&e.onToggle(),requestAnimationFrame(M),O=>t(O)}var ll={},sw=["duration","delay","easing","fill","classes","style","duration","resize","useCSS","hideFromClone","keepToClone","tween","tweenFromOpacity","tweenToOpacity","waitFor","onEnd"],uw=["resize","useCSS","hideFromClone","keepToClone","tween"];function Zr(e,t){e.clsAction!==t&&(e.clsAction=t,e.el.classList[t]("q-morph--invisible"))}function tm(e){if(e.animating===!0||e.queue.length<2)return;const[t,n]=e.queue;e.animating=!0,t.animating=!0,n.animating=!0,Zr(t,"remove"),Zr(n,"remove");const a=iw({from:t.el,to:n.el,onToggle(){Zr(t,"add"),Zr(n,"remove")},...n.opts,onEnd(o,l){n.opts.onEnd?.(o,l),l!==!0&&(t.animating=!1,n.animating=!1,e.animating=!1,e.cancel=void 0,e.queue.shift(),tm(e))}});e.cancel=()=>{a(!0),e.cancel=void 0}}function nm(e,t){const n=t.opts;uw.forEach(a=>{n[a]=e[a]===!0})}function cw(e,t){const n=typeof e=="string"&&e.length!==0?e.split(":"):[];t.name=n[0],t.group=n[1],Object.assign(t.opts,{duration:isNaN(n[2])===!0?300:parseFloat(n[2]),waitFor:n[3]})}function dw(e,t){e.group!==void 0&&(t.group=e.group),e.name!==void 0&&(t.name=e.name);const n=t.opts;sw.forEach(a=>{e[a]!==void 0&&(n[a]=e[a])})}function fw(e,t){if(t.name===e){const n=ll[t.group];n===void 0?(ll[t.group]={name:t.group,model:e,queue:[t],animating:!1},Zr(t,"remove")):n.model!==e&&(n.model=e,n.queue.push(t),n.animating===!1&&n.queue.length===2&&tm(n));return}t.animating===!1&&Zr(t,"add")}function rm(e,t){let n;Object(t)===t?(n=""+t.model,dw(t,e),nm(t,e)):n=""+t,n!==e.model?(e.model=n,fw(n,e)):e.animating===!1&&e.clsAction!==void 0&&e.el.classList[e.clsAction]("q-morph--invisible")}sn({name:"morph",mounted(e,t){const n={el:e,animating:!1,opts:{}};nm(t.modifiers,n),cw(t.arg,n),rm(n,t.value),e.__qmorph=n},updated(e,t){rm(e.__qmorph,t.value)},beforeUnmount(e){const t=e.__qmorph,n=ll[t.group];n!==void 0&&n.queue.indexOf(t)!==-1&&(n.queue=n.queue.filter(o=>o!==t),n.queue.length===0&&(n.cancel?.(),delete ll[t.group])),t.clsAction==="add"&&e.classList.remove("q-morph--invisible"),delete e.__qmorph}});var vw={childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0};function am(e,t,n){t.handler=n,t.observer?.disconnect(),t.observer=new MutationObserver(a=>{typeof t.handler=="function"&&(t.handler(a)===!1||t.once===!0)&&om(e)}),t.observer.observe(e,t.opts)}function om(e){const t=e.__qmutation;t!==void 0&&(t.observer?.disconnect(),delete e.__qmutation)}sn({name:"mutation",mounted(e,{modifiers:{once:t,...n},value:a}){const o={once:t,opts:Object.keys(n).length===0?vw:n};am(e,o,a),e.__qmutation=o},updated(e,{oldValue:t,value:n}){const a=e.__qmutation;a!==void 0&&t!==n&&am(e,a,n)},beforeUnmount:om});var{passive:il}=lt;function lm(e,{value:t,oldValue:n}){if(typeof t!="function"){e.scrollTarget.removeEventListener("scroll",e.scroll,il);return}e.handler=t,typeof n!="function"&&(e.scrollTarget.addEventListener("scroll",e.scroll,il),e.scroll())}sn({name:"scroll-fire",mounted(e,t){const n={scrollTarget:pn(e),scroll:Lr(()=>{let a,o;n.scrollTarget===window?(o=e.getBoundingClientRect().bottom,a=window.innerHeight):(o=_o(e).top+Ar(e),a=_o(n.scrollTarget).top+Ar(n.scrollTarget)),o>0&&o<a&&(n.scrollTarget.removeEventListener("scroll",n.scroll,il),n.handler(e))},25)};lm(n,t),e.__qscrollfire=n},updated(e,t){t.value!==t.oldValue&&lm(e.__qscrollfire,t)},beforeUnmount(e){const t=e.__qscrollfire;t.scrollTarget.removeEventListener("scroll",t.scroll,il),t.scroll.cancel(),delete e.__qscrollfire}});function im(e,{value:t,oldValue:n}){if(typeof t!="function"){e.scrollTarget.removeEventListener("scroll",e.scroll,lt.passive);return}e.handler=t,typeof n!="function"&&e.scrollTarget.addEventListener("scroll",e.scroll,lt.passive)}sn({name:"scroll",mounted(e,t){const n={scrollTarget:pn(e),scroll(){n.handler(Fn(n.scrollTarget),xo(n.scrollTarget))}};im(n,t),e.__qscroll=n},updated(e,t){e.__qscroll!==void 0&&t.oldValue!==t.value&&im(e.__qscroll,t)},beforeUnmount(e){const t=e.__qscroll;t.scrollTarget.removeEventListener("scroll",t.scroll,lt.passive),delete e.__qscroll}}),sn({name:"touch-hold",beforeMount(e,t){const{modifiers:n}=t;if(n.mouse!==!0&&He.has.touch!==!0)return;const a={handler:t.value,noop:wt,mouseStart(l){typeof a.handler=="function"&&ho(l)===!0&&(mt(a,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),a.start(l,!0))},touchStart(l){if(l.target!==void 0&&typeof a.handler=="function"){const i=l.target;mt(a,"temp",[[i,"touchmove","move","passiveCapture"],[i,"touchcancel","end","notPassiveCapture"],[i,"touchend","end","notPassiveCapture"]]),a.start(l)}},start(l,i){a.origin=zt(l);const s=Date.now();He.is.mobile===!0&&(document.body.classList.add("non-selectable"),dn(),a.styleCleanup=u=>{a.styleCleanup=void 0;const d=()=>{document.body.classList.remove("non-selectable")};u===!0?(dn(),setTimeout(d,10)):d()}),a.triggered=!1,a.sensitivity=i===!0?a.mouseSensitivity:a.touchSensitivity,a.timer=setTimeout(()=>{a.timer=void 0,dn(),a.triggered=!0,a.handler({evt:l,touch:i!==!0,mouse:i===!0,position:a.origin,duration:Date.now()-s})},a.duration)},move(l){const{top:i,left:s}=zt(l);a.timer!==void 0&&(Math.abs(s-a.origin.left)>=a.sensitivity||Math.abs(i-a.origin.top)>=a.sensitivity)&&(clearTimeout(a.timer),a.timer=void 0)},end(l){Dt(a,"temp"),a.styleCleanup?.(a.triggered),a.triggered===!0?l!==void 0&&Fe(l):a.timer!==void 0&&(clearTimeout(a.timer),a.timer=void 0)}},o=[600,5,7];if(typeof t.arg=="string"&&t.arg.length!==0&&t.arg.split(":").forEach((l,i)=>{const s=parseInt(l,10);s&&(o[i]=s)}),[a.duration,a.touchSensitivity,a.mouseSensitivity]=o,e.__qtouchhold=a,n.mouse===!0){const l=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";mt(a,"main",[[e,"mousedown","mouseStart",`passive${l}`]])}He.has.touch===!0&&mt(a,"main",[[e,"touchstart","touchStart",`passive${n.capture===!0?"Capture":""}`],[e,"touchend","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchhold;n!==void 0&&t.oldValue!==t.value&&(typeof t.value!="function"&&n.end(),n.handler=t.value)},beforeUnmount(e){const t=e.__qtouchhold;t!==void 0&&(Dt(t,"main"),Dt(t,"temp"),t.timer!==void 0&&clearTimeout(t.timer),t.styleCleanup?.(),delete e.__qtouchhold)}});var sm={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},mw=new RegExp(`^([\\d+]+|${Object.keys(sm).join("|")})$`,"i");function hw(e,t){const{top:n,left:a}=zt(e);return Math.abs(a-t.left)>=7||Math.abs(n-t.top)>=7}sn({name:"touch-repeat",beforeMount(e,{modifiers:t,value:n,arg:a}){const o=Object.keys(t).reduce((u,d)=>{if(mw.test(d)===!0){const c=isNaN(parseInt(d,10))?sm[d.toLowerCase()]:parseInt(d,10);c>=0&&u.push(c)}return u},[]);if(t.mouse!==!0&&He.has.touch!==!0&&o.length===0)return;const l=typeof a=="string"&&a.length!==0?a.split(":").map(u=>parseInt(u,10)):[0,600,300],i=l.length-1,s={keyboard:o,handler:n,noop:wt,mouseStart(u){s.event===void 0&&typeof s.handler=="function"&&ho(u)===!0&&(mt(s,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),s.start(u,!0))},keyboardStart(u){if(typeof s.handler=="function"&&Vt(u,o)===!0){if((l[0]===0||s.event!==void 0)&&(Fe(u),e.focus(),s.event!==void 0))return;mt(s,"temp",[[document,"keyup","end","notPassiveCapture"],[document,"click","end","notPassiveCapture"]]),s.start(u,!1,!0)}},touchStart(u){if(u.target!==void 0&&typeof s.handler=="function"){const d=u.target;mt(s,"temp",[[d,"touchmove","move","passiveCapture"],[d,"touchcancel","end","notPassiveCapture"],[d,"touchend","end","notPassiveCapture"]]),s.start(u)}},start(u,d,c){c!==!0&&(s.origin=zt(u));function g(h){s.styleCleanup=void 0,document.documentElement.style.cursor="";const f=()=>{document.body.classList.remove("non-selectable")};h===!0?(dn(),setTimeout(f,10)):f()}He.is.mobile===!0&&(document.body.classList.add("non-selectable"),dn(),s.styleCleanup=g),s.event={touch:d!==!0&&c!==!0,mouse:d===!0,keyboard:c===!0,startTime:Date.now(),repeatCount:0};const v=()=>{if(s.timer=void 0,s.event===void 0)return;s.event.repeatCount===0&&(s.event.evt=u,c===!0?s.event.keyCode=u.keyCode:s.event.position=zt(u),He.is.mobile!==!0&&(document.documentElement.style.cursor="pointer",document.body.classList.add("non-selectable"),dn(),s.styleCleanup=g)),s.event.duration=Date.now()-s.event.startTime,s.event.repeatCount+=1,s.handler(s.event);const h=i<s.event.repeatCount?i:s.event.repeatCount;s.timer=setTimeout(v,l[h])};l[0]===0?v():s.timer=setTimeout(v,l[0])},move(u){s.event!==void 0&&s.timer!==void 0&&hw(u,s.origin)===!0&&(clearTimeout(s.timer),s.timer=void 0)},end(u){s.event!==void 0&&(s.styleCleanup?.(!0),u!==void 0&&s.event.repeatCount>0&&Fe(u),Dt(s,"temp"),s.timer!==void 0&&(clearTimeout(s.timer),s.timer=void 0),s.event=void 0)}};if(e.__qtouchrepeat=s,t.mouse===!0){const u=t.mouseCapture===!0||t.mousecapture===!0?"Capture":"";mt(s,"main",[[e,"mousedown","mouseStart",`passive${u}`]])}if(He.has.touch===!0&&mt(s,"main",[[e,"touchstart","touchStart",`passive${t.capture===!0?"Capture":""}`],[e,"touchend","noop","passiveCapture"]]),o.length!==0){const u=t.keyCapture===!0||t.keycapture===!0?"Capture":"";mt(s,"main",[[e,"keydown","keyboardStart",`notPassive${u}`]])}},updated(e,{oldValue:t,value:n}){const a=e.__qtouchrepeat;a!==void 0&&t!==n&&(typeof n!="function"&&a.end(),a.handler=n)},beforeUnmount(e){const t=e.__qtouchrepeat;t!==void 0&&(t.timer!==void 0&&clearTimeout(t.timer),Dt(t,"main"),Dt(t,"temp"),t.styleCleanup?.(),delete e.__qtouchrepeat)}});function gw(e,t=document.body){if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue(`--q-${e}`).trim()||null}var sl;function bw(){return He.is.winphone?"msapplication-navbutton-color":"theme-color"}function pw(e){const t=document.getElementsByTagName("META");for(const n in t)if(t[n].name===e)return t[n]}function yw(e){sl===void 0&&(sl=bw());let t=pw(sl);const n=t===void 0;n&&(t=document.createElement("meta"),t.setAttribute("name",sl)),t.setAttribute("content",e),n&&document.head.appendChild(t)}He.is.mobile===!0&&(He.is.nativeMobile===!0||He.is.winphone===!0||He.is.safari===!0||He.is.webkit===!0||He.is.vivaldi);var Aa={};function _w(e){Object.assign(Bt,{request:e,exit:e,toggle:e})}function um(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||null}function cm(){const e=Bt.activeEl=Bt.isActive===!1?null:um();D0(e===null||e===document.documentElement?document.body:e)}function Sw(){Bt.isActive=Bt.isActive===!1,cm()}function dm(e,t){try{const n=e[t]();return n===void 0?Promise.resolve():n}catch(n){return Promise.reject(n)}}var Bt=Dn({isActive:!1,activeEl:null},{isCapable:!1,install({$q:e}){e.fullscreen=this}});Aa.request=["requestFullscreen","msRequestFullscreen","mozRequestFullScreen","webkitRequestFullscreen"].find(e=>document.documentElement[e]!==void 0),Bt.isCapable=Aa.request!==void 0,Bt.isCapable===!1?_w(()=>Promise.reject("Not capable")):(Object.assign(Bt,{request(e){const t=e||document.documentElement,{activeEl:n}=Bt;return t===n?Promise.resolve():(n!==null&&t.contains(n)===!0?Bt.exit():Promise.resolve()).finally(()=>dm(t,Aa.request))},exit(){return Bt.isActive===!0?dm(document,Aa.exit):Promise.resolve()},toggle(e){return Bt.isActive===!0?Bt.exit():Bt.request(e)}}),Aa.exit=["exitFullscreen","msExitFullscreen","mozCancelFullScreen","webkitExitFullscreen"].find(e=>document[e]),Bt.isActive=!!um(),Bt.isActive===!0&&cm(),["onfullscreenchange","onmsfullscreenchange","onwebkitfullscreenchange"].forEach(e=>{document[e]=Sw}));var ww=Dn({appVisible:!0},{install({$q:e}){xt(e,"appVisible",()=>this.appVisible)}});{let e,t;if(typeof document.hidden<"u"?(e="hidden",t="visibilitychange"):typeof document.msHidden<"u"?(e="msHidden",t="msvisibilitychange"):typeof document.webkitHidden<"u"&&(e="webkitHidden",t="webkitvisibilitychange"),t&&typeof document[e]<"u"){const n=()=>{ww.appVisible=!document[e]};document.addEventListener(t,n,!1)}}ie({name:"BottomSheetComponent",props:{...Ye,title:String,message:String,actions:Array,grid:Boolean,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(e,{emit:t}){const{proxy:n}=r.getCurrentInstance(),a=Ge(e,n.$q),o=r.ref(null);function l(){o.value.show()}function i(){o.value.hide()}function s(h){t("ok",h),i()}function u(){t("hide")}function d(){return e.actions.map(h=>{const f=h.avatar||h.img;return h.label===void 0?r.h(hr,{class:"col-all",dark:a.value}):r.h("div",{class:["q-bottom-sheet__item q-hoverable q-focusable cursor-pointer relative-position",h.class],style:h.style,tabindex:0,role:"listitem",onClick(){s(h)},onKeyup(_){_.keyCode===13&&s(h)}},[r.h("div",{class:"q-focus-helper"}),h.icon?r.h(Xe,{name:h.icon,color:h.color}):f?r.h("img",{class:h.avatar?"q-bottom-sheet__avatar":"",src:f}):r.h("div",{class:"q-bottom-sheet__empty-icon"}),r.h("div",h.label)])})}function c(){return e.actions.map(h=>{const f=h.avatar||h.img;return h.label===void 0?r.h(hr,{spaced:!0,dark:a.value}):r.h(Xo,{class:["q-bottom-sheet__item",h.classes],style:h.style,tabindex:0,clickable:!0,dark:a.value,onClick(){s(h)}},()=>[r.h(Un,{avatar:!0},()=>h.icon?r.h(Xe,{name:h.icon,color:h.color}):f?r.h("img",{class:h.avatar?"q-bottom-sheet__avatar":"",src:f}):null),r.h(Un,()=>h.label)])})}function g(){const h=[];return e.title&&h.push(r.h(fr,{class:"q-dialog__title"},()=>e.title)),e.message&&h.push(r.h(fr,{class:"q-dialog__message"},()=>e.message)),h.push(e.grid===!0?r.h("div",{class:"row items-stretch justify-start",role:"list"},d()):r.h("div",{role:"list"},c())),h}function v(){return[r.h(Xd,{class:[`q-bottom-sheet q-bottom-sheet--${e.grid===!0?"grid":"list"}`+(a.value===!0?" q-bottom-sheet--dark q-dark":""),e.cardClass],style:e.cardStyle},g)]}return Object.assign(n,{show:l,hide:i}),()=>r.h(Go,{ref:o,position:"bottom",onHide:u},v)}});function fm(e){return encodeURIComponent(e)}function vm(e){return decodeURIComponent(e)}function Cw(e){return fm(e===Object(e)?JSON.stringify(e):""+e)}function kw(e){if(e==="")return e;e.indexOf('"')===0&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),e=vm(e.replace(/\+/g," "));try{const t=JSON.parse(e);(t===Object(t)||Array.isArray(t)===!0)&&(e=t)}catch{}return e}function mm(e){const t=new Date;return t.setMilliseconds(t.getMilliseconds()+e),t.toUTCString()}function xw(e){let t=0;const n=e.match(/(\d+)d/),a=e.match(/(\d+)h/),o=e.match(/(\d+)m/),l=e.match(/(\d+)s/);return n&&(t+=n[1]*864e5),a&&(t+=a[1]*36e5),o&&(t+=o[1]*6e4),l&&(t+=l[1]*1e3),t===0?e:mm(t)}function hm(e,t,n={},a){let o,l;n.expires!==void 0&&(Object.prototype.toString.call(n.expires)==="[object Date]"?o=n.expires.toUTCString():typeof n.expires=="string"?o=xw(n.expires):(l=parseFloat(n.expires),o=isNaN(l)===!1?mm(l*864e5):n.expires));const i=`${fm(e)}=${Cw(t)}`,s=[i,o!==void 0?"; Expires="+o:"",n.path?"; Path="+n.path:"",n.domain?"; Domain="+n.domain:"",n.sameSite?"; SameSite="+n.sameSite:"",n.httpOnly?"; HttpOnly":"",n.secure?"; Secure":"",n.other?"; "+n.other:""].join("");if(a){a.req.qCookies?a.req.qCookies.push(s):a.req.qCookies=[s],a.res.setHeader("Set-Cookie",a.req.qCookies);let u=a.req.headers.cookie||"";if(o!==void 0&&l<0){const d=ul(e,a);d!==void 0&&(u=u.replace(`${e}=${d}; `,"").replace(`; ${e}=${d}`,"").replace(`${e}=${d}`,""))}else u=u?`${i}; ${u}`:s;a.req.headers.cookie=u}else document.cookie=s}function ul(e,t){const n=t?t.req.headers:document,a=n.cookie?n.cookie.split("; "):[],o=a.length;let l=e?null:{},i=0,s,u,d;for(;i<o;i++)if(s=a[i].split("="),u=vm(s.shift()),d=s.join("="),!e)l[u]=d;else if(e===u){l=kw(d);break}return l}function Ew(e,t,n){hm(e,"",{expires:-1,...t},n)}function Tw(e,t){return ul(e,t)!==null}function gm(e){return{get:t=>ul(t,e),set:(t,n,a)=>hm(t,n,a,e),has:t=>Tw(t,e),remove:(t,n)=>Ew(t,n,e),getAll:()=>ul(null,e)}}var bm={install({$q:e,ssrContext:t}){e.cookies=this}};__QUASAR_SSR__&&(bm.parseSSR=e=>{if(e!==void 0)return gm(e)}),Object.assign(bm,gm()),ie({name:"DialogPluginComponent",props:{...Ye,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(e,{emit:t}){const{proxy:n}=r.getCurrentInstance(),{$q:a}=n,o=Ge(e,a),l=r.ref(null),i=r.ref(e.prompt!==void 0?e.prompt.model:e.options!==void 0?e.options.model:void 0),s=r.computed(()=>"q-dialog-plugin"+(o.value===!0?" q-dialog-plugin--dark q-dark":"")+(e.progress!==!1?" q-dialog-plugin--progress":"")),u=r.computed(()=>e.color||(o.value===!0?"amber":"primary")),d=r.computed(()=>e.progress===!1?null:$t(e.progress)===!0?{component:e.progress.spinner||cn,props:{color:e.progress.color||u.value}}:{component:cn,props:{color:u.value}}),c=r.computed(()=>e.prompt!==void 0||e.options!==void 0),g=r.computed(()=>{if(c.value!==!0)return{};const{model:k,isValid:A,items:D,...z}=e.prompt!==void 0?e.prompt:e.options;return z}),v=r.computed(()=>$t(e.ok)===!0||e.ok===!0?a.lang.label.ok:e.ok),h=r.computed(()=>$t(e.cancel)===!0||e.cancel===!0?a.lang.label.cancel:e.cancel),f=r.computed(()=>e.prompt!==void 0?e.prompt.isValid!==void 0&&e.prompt.isValid(i.value)!==!0:e.options!==void 0?e.options.isValid!==void 0&&e.options.isValid(i.value)!==!0:!1),_=r.computed(()=>({color:u.value,label:v.value,ripple:!1,disable:f.value,...$t(e.ok)===!0?e.ok:{flat:!0},"data-autofocus":e.focus==="ok"&&c.value!==!0||void 0,onClick:y})),p=r.computed(()=>({color:u.value,label:h.value,ripple:!1,...$t(e.cancel)===!0?e.cancel:{flat:!0},"data-autofocus":e.focus==="cancel"&&c.value!==!0||void 0,onClick:m}));r.watch(()=>e.prompt&&e.prompt.model,E),r.watch(()=>e.options&&e.options.model,E);function b(){l.value.show()}function S(){l.value.hide()}function y(){t("ok",r.toRaw(i.value)),S()}function m(){S()}function w(){t("hide")}function E(k){i.value=k}function C(k){f.value!==!0&&e.prompt.type!=="textarea"&&Vt(k,13)===!0&&y()}function R(k,A){return e.html===!0?r.h(fr,{class:k,innerHTML:A}):r.h(fr,{class:k},()=>A)}function H(){return[r.h(bv,{color:u.value,dense:!0,autofocus:!0,dark:o.value,...g.value,modelValue:i.value,"onUpdate:modelValue":E,onKeyup:C})]}function q(){return[r.h(F_,{color:u.value,options:e.options.items,dark:o.value,...g.value,modelValue:i.value,"onUpdate:modelValue":E})]}function T(){const k=[];return e.cancel&&k.push(r.h(Ze,p.value)),e.ok&&k.push(r.h(Ze,_.value)),r.h(ty,{class:e.stackButtons===!0?"items-end":"",vertical:e.stackButtons,align:"right"},()=>k)}function M(){const k=[];return e.title&&k.push(R("q-dialog__title",e.title)),e.progress!==!1&&k.push(r.h(fr,{class:"q-dialog__progress"},()=>r.h(d.value.component,d.value.props))),e.message&&k.push(R("q-dialog__message",e.message)),e.prompt!==void 0?k.push(r.h(fr,{class:"scroll q-dialog-plugin__form"},H)):e.options!==void 0&&k.push(r.h(hr,{dark:o.value}),r.h(fr,{class:"scroll q-dialog-plugin__form"},q),r.h(hr,{dark:o.value})),(e.ok||e.cancel)&&k.push(T()),k}function O(){return[r.h(Xd,{class:[s.value,e.cardClass],style:e.cardStyle,dark:o.value},M)]}return Object.assign(n,{show:b,hide:S}),()=>r.h(Go,{ref:l,onHide:w},O)}});var Vr,Ls,pm=0,yr=null,Mt={},_r={},ym={group:"__default_quasar_group__",delay:0,message:!1,html:!1,spinnerSize:80,spinnerColor:"",messageColor:"",backgroundColor:"",boxClass:"",spinner:cn,customClass:""},_m={...ym};function qw(e){if(e?.group!==void 0&&_r[e.group]!==void 0)return Object.assign(_r[e.group],e);const t=$t(e)===!0&&e.ignoreDefaults===!0?{...ym,...e}:{..._m,...e};return _r[t.group]=t,t}var _n=Dn({isActive:!1},{show(e){Mt=qw(e);const{group:t}=Mt;return _n.isActive=!0,Vr!==void 0?(Mt.uid=pm,Ls.$forceUpdate()):(Mt.uid=++pm,yr!==null&&clearTimeout(yr),yr=setTimeout(()=>{yr=null;const n=Oi("q-loading");Vr=ud({name:"QLoading",setup(){r.onMounted(()=>{vs(!0)});function a(){_n.isActive!==!0&&Vr!==void 0&&(vs(!1),Vr.unmount(n),Nd(n),Vr=void 0,Ls=void 0)}function o(){if(_n.isActive!==!0)return null;const l=[r.h(Mt.spinner,{class:"q-loading__spinner",color:Mt.spinnerColor,size:Mt.spinnerSize})];return Mt.message&&l.push(r.h("div",{class:"q-loading__message"+(Mt.messageColor?` text-${Mt.messageColor}`:""),[Mt.html===!0?"innerHTML":"textContent"]:Mt.message})),r.h("div",{class:"q-loading fullscreen flex flex-center z-max "+Mt.customClass.trim(),key:Mt.uid},[r.h("div",{class:"q-loading__backdrop"+(Mt.backgroundColor?` bg-${Mt.backgroundColor}`:"")}),r.h("div",{class:"q-loading__box column items-center "+Mt.boxClass},l)])}return()=>r.h(r.Transition,{name:"q-transition--fade",appear:!0,onAfterLeave:a},o)}},_n.__parentApp),Ls=Vr.mount(n)},Mt.delay)),n=>{if(n===void 0||Object(n)!==n){_n.hide(t);return}_n.show({...n,group:t})}},hide(e){if(_n.isActive===!0){if(e===void 0)_r={};else{if(_r[e]===void 0)return;{delete _r[e];const t=Object.keys(_r);if(t.length!==0){const n=t[t.length-1];_n.show({group:n});return}}}yr!==null&&(clearTimeout(yr),yr=null),_n.isActive=!1}},setDefaults(e){$t(e)===!0&&Object.assign(_m,e)},install({$q:e,parentApp:t}){e.loading=this,_n.__parentApp=t,e.config.loading!==void 0&&this.setDefaults(e.config.loading)}}),cl=r.ref(null),Sm=Dn({isActive:!1},{start:wt,stop:wt,increment:wt,setDefaults:wt,install({$q:e,parentApp:t}){if(e.loadingBar=this,this.__installed===!0){e.config.loadingBar!==void 0&&this.setDefaults(e.config.loadingBar);return}const n=r.ref(e.config.loadingBar!==void 0?{...e.config.loadingBar}:{});function a(){Sm.isActive=!0}function o(){Sm.isActive=!1}const l=Oi("q-loading-bar");ud({name:"LoadingBar",devtools:{hide:!0},setup:()=>()=>r.h(m0,{...n.value,onStart:a,onStop:o,ref:cl})},t).mount(l),Object.assign(this,{start(i){cl.value.start(i)},stop(){cl.value.stop()},increment(){cl.value.increment.apply(null,arguments)},setDefaults(i){$t(i)===!0&&Object.assign(n.value,i)}})}});function Ow(e){return va(e)===!0?"__q_date|"+e.getTime():i0(e)===!0?"__q_expr|"+e.source:typeof e=="number"?"__q_numb|"+e:typeof e=="boolean"?"__q_bool|"+(e?"1":"0"):typeof e=="string"?"__q_strn|"+e:typeof e=="function"?"__q_strn|"+e.toString():e===Object(e)?"__q_objt|"+JSON.stringify(e):e}function Mw(e){if(e.length<9)return e;const n=e.substring(0,8),a=e.substring(9);switch(n){case"__q_date":const o=Number(a);return new Date(Number.isNaN(o)===!0?a:o);case"__q_expr":return new RegExp(a);case"__q_numb":return Number(a);case"__q_bool":return a==="1";case"__q_strn":return""+a;case"__q_objt":return JSON.parse(a);default:return e}}function wm(){const e=()=>null;return{has:()=>!1,hasItem:()=>!1,getLength:()=>0,getItem:e,getIndex:e,getKey:e,getAll:()=>{},getAllKeys:()=>[],set:wt,setItem:wt,remove:wt,removeItem:wt,clear:wt,isEmpty:()=>!0}}function Cm(e){const t=window[e+"Storage"],n=i=>{const s=t.getItem(i);return s?Mw(s):null},a=i=>t.getItem(i)!==null,o=(i,s)=>{t.setItem(i,Ow(s))},l=i=>{t.removeItem(i)};return{has:a,hasItem:a,getLength:()=>t.length,getItem:n,getIndex:i=>i<t.length?n(t.key(i)):null,getKey:i=>i<t.length?t.key(i):null,getAll:()=>{let i;const s={},u=t.length;for(let d=0;d<u;d++)i=t.key(d),s[i]=n(i);return s},getAllKeys:()=>{const i=[],s=t.length;for(let u=0;u<s;u++)i.push(t.key(u));return i},set:o,setItem:o,remove:l,removeItem:l,clear:()=>{t.clear()},isEmpty:()=>t.length===0}}var km=He.has.webStorage===!1?wm():Cm("local"),Lw={install({$q:e}){e.localStorage=km}};Object.assign(Lw,km);var xm=He.has.webStorage===!1?wm():Cm("session"),Aw={install({$q:e}){e.sessionStorage=xm}};Object.assign(Aw,xm);var Rw=["ok","hide"];Wv(Rw);const Rn="YYYY/MM/DD";function Pw(){function e(n,a){return ss.formatDate(ss.extractDate(n,a||Rn),Rn)}function t(n,a){return n==null?"":ss.formatDate(n,a||Rn)}return{toQDateFormat:e,formatQDate:t}}function Em(e){const{validateFromApi:t,required:n,email:a,minLength:o,maxLength:l,min:i,max:s,pattern:u,unique:d,validDate:c,afterDate:g,beforeDate:v,fromDate:h,upToDate:f}=Wc(e);return{validateFromApi:(_,p)=>b=>t(_,p,b),required:n,email:a,min:_=>p=>i(typeof p=="string"?parseFloat(p):p,_),max:_=>p=>s(typeof p=="string"?parseFloat(p):p,_),minLength:_=>p=>o(p,_),maxLength:_=>p=>l(p,_),pattern:_=>p=>u(p,_),unique:_=>p=>d(p,_),validDate:_=>p=>c(p,_||Rn),afterDate:(_,p)=>b=>g(b,_,p||Rn),beforeDate:(_,p)=>b=>v(b,_,p||Rn),fromDate:(_,p)=>b=>h(b,_,p||Rn),upToDate:(_,p)=>b=>f(b,_,p||Rn)}}function Nw(e,t,n,a){const{required:o,email:l,validateFromApi:i,...s}=Em(a),u=t.required?[o]:[];return n.forEach(d=>{if(d==="email")u.push(l);else if(s[d]&&t.inputSettings?.[d]!=null){const c=t.inputSettings[d];u.push(s[d](c))}}),t.hasValidations&&u.push(i(e,t.name)),u}function Iw(){function e(t){return t.map(n=>({type:n.type,key:n.key,value:n.value,children:e(n.nodes)}))}return{toQTreeNodes:e}}let dl=null;function Dw(e){if(dl!==null){console.warn("[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored.");return}dl=e}function Tm(){if(dl===null)throw new Error("[LinID CoreLib] UI Design is not initialized. Call setUiDesign() first.");return dl}const qm={"q-avatar":["icon","size","fontSize","color","textColor","square","rounded"],"q-badge":["floating","multiLine","align","color","textColor","transparent","outline","rounded"],"q-banner":["inlineActions","dense","rounded","dark"],"q-btn":["icon","iconRight","noCaps","noWrap","align","stack","stretch","size","outline","flat","unelevated","rounded","push","square","glossy","fab","fabMini","padding","color","textColor","dense","ripple","round"],"q-btn-dropdown":["split","disableMainBtn","disableDropdown","persistent","noEscDismiss","noRouteDismiss","autoClose","noRefocus","noFocus","icon","iconRight","noCaps","noWrap","align","stack","stretch","dropdownIcon","cover","menuAnchor","menuSelf","menuOffset","size","outline","flat","unelevated","rounded","push","square","glossy","fab","fabMini","padding","color","textColor","dense","ripple","noIconAnimation","contentStyle","contentClass","transitionShow","transitionHide","transitionDuration"],"q-card":["dark","square","flat","bordered"],"q-card-actions":["align","vertical"],"q-date":["landscape","yearsInMonthView","todayBtn","minimal","defaultView","color","textColor","dark","square","flat","bordered"],"q-dialog":["persistent","noEscDismiss","noBackdropDismiss","noRouteDismiss","autoClose","noRefocus","noFocus","noShake","allowFocusOutside","seamless","maximized","fullWidth","fullHeight","position","backdropFilter","square","transitionShow","transitionHide","transitionDuration"],"q-file":["autofocus","stackLabel","hideHint","clearable","clearIcon","useChips","labelColor","color","bgColor","dark","filled","outlined","borderless","standout","hideBottomSpace","rounded","square","dense","itemAligned","inputClass","inputStyle","noErrorIcon"],"q-form":["autofocus","noErrorFocus","noResetFocus","greedy"],"q-header":["reveal","revealOffset","elevated","bordered"],"q-icon":["left","right","name","size","color"],"q-img":["loading","loadingShowDelay","noSpinner","noNativeMenu","noTransition","draggable","src","srcset","sizes","placeholderSrc","errorSrc","ratio","initialRatio","width","height","fit","position","imgClass","imgStyle","spinnerColor","spinnerSize"],"q-input":["autofocus","stackLabel","hideHint","clearable","clearIcon","counter","autogrow","fillMask","reverseFillMask","unmaskedValue","debounce","labelColor","color","bgColor","dark","filled","outlined","borderless","standout","hideBottomSpace","rounded","square","dense","itemAligned","noErrorIcon"],"q-item":["insetLevel","tag","activeClass","exactActiveClass","clickable","manualFocus","focused","dark","dense"],"q-item-label":["lines","overline","caption","header"],"q-item-section":["avatar","thumbnail","side","top","noWrap"],"q-list":["separator","padding","tag","bordered","dense","dark"],"q-menu":["contextMenu","touchPosition","persistent","noEscDismiss","noRouteDismiss","autoClose","separateClosePopup","noRefocus","noFocus","fit","cover","anchor","self","offset","dark","square","maxHeight","maxWidth","transitionShow","transitionHide","transitionDuration"],"q-route-tab":["icon","activeClass","exactActiveClass","noCaps","alert","contentClass","ripple"],"q-select":["virtualScrollHorizontal","clearable","autofocus","hideDropdownIcon","popupNoRouteDismiss","fillInput","transitionShow","transitionHide","transitionDuration","behavior","stackLabel","hideHint","clearIcon","counter","dropdownIcon","useInput","inputDebounce","optionsDense","optionsDark","optionsSelectedClass","optionsCover","menuShrink","disableTabSelection","menuAnchor","menuSelf","menuOffset","displayValueHtml","hideSelected","useChips","labelColor","color","bgColor","dark","filled","outlined","borderless","standout","hideBottomSpace","rounded","square","dense","itemAligned","popupContentClass","popupContentStyle","inputClass","inputStyle","noErrorIcon","virtualScrollSliceSize","virtualScrollSliceRatioBefore","virtualScrollSliceRatioAfter","virtualScrollItemSize","virtualScrollStickySizeStart","virtualScrollStickySizeEnd"],"q-spinner":["size","color","thickness"],"q-table":["virtualScrollItemSize","virtualScrollStickySizeStart","virtualScrollStickySizeEnd","color","iconFirstPage","iconPrevPage","iconNextPage","iconLastPage","grid","gridHeader","dense","hideHeader","hideBottom","hideSelectedBanner","hideNoData","hidePagination","flat","bordered","square","separator","wrapCells","tableStyle","tableClass","tableHeaderStyle","tableHeaderClass","cardContainerStyle","cardContainerClass","cardStyle","cardClass","titleClass"],"q-tabs":["vertical","outsideArrows","mobileArrows","align","breakpoint","leftIcon","rightIcon","stretch","shrink","switchIndicator","narrowIndicator","inlineLabel","noCaps","activeColor","activeBgColor","indicatorColor","contentClass","activeClass","dense"],"q-toggle":["toggleOrder","toggleIndeterminate","keepColor","icon","checkedIcon","uncheckedIcon","indeterminateIcon","leftLabel","size","color","dark","dense","iconColor"],"q-toolbar":["inset"],"q-toolbar-title":["shrink"],"q-tree":["tickStrategy","noSelectionUnset","defaultExpandAll","accordion","noTransition","noConnectors","color","controlColor","textColor","selectedColor","dense","dark","duration"],"q-splitter":["horizontal","limits","modelValue","reverse","unit","disable","beforeClass","afterClass","separatorClass","separatorStyle","dark"]};function Om(e,t){return t.split(".").reduce((n,a)=>{if(n&&typeof n=="object")return n[a]},e)}function $w(e,t,n){let a=Om(e,`${t}.${n}`);if(a===void 0&&(a=Om(e,`default.${n}`)),typeof a=="object")throw new Error(`[UiDesign] Value for '${t}.${n}' is a nested object or null, expected a primitive.`);return a}function Bw(e){if(!(e in qm))throw new Error(`[UiDesign] The component '${e}' is not supported for UI design retrieval.`);return qm[e]}function Fw(){const e=r.computed(()=>Tm());function t(n,a,o){const l=Bw(a),i={};for(const s of l){const u=o?.[s]??$w(e.value,n,`${a}.${String(s)}`);u!==void 0&&(i[s]=u)}return i}return{ui:t}}async function Mm(){return(await vn().get("/metadata/entities")).data}async function zw(e){return(await vn().get(`/metadata/entities/${e}`)).data}async function Lm(){return(await vn().get("/metadata/routes")).data}const Hw=()=>jw(ta()),jw=Na("LinidConfigurationStore",{state:()=>({entities:[],apiEndpoints:[],loading:!1,error:null}),getters:{getEntityByName:e=>t=>e.entities.find(n=>n.name===t),getApiEndpointsByEntity:e=>t=>e.apiEndpoints.filter(n=>n.entity===t)},actions:{async fetchConfiguration(){this.loading=!0,this.error=null;try{const[e,t]=await Promise.all([Mm(),Lm()]);this.entities=e,this.apiEndpoints=t}catch(e){this.error=e instanceof Error?e.message:"Failed to fetch configuration",console.error("[Linid CoreLib] Failed to fetch configuration:",e)}finally{this.loading=!1}}}}),Uw=()=>Qw(ta()),Qw=Na("LinidUiStore",{state:()=>({mainNavigationItems:[]}),actions:{addMainNavigationMenuItems(...e){this.mainNavigationItems.push(...e)}}}),Ww=()=>Kw(ta()),Kw=Na("LinidUserStore",{state:()=>({user:{username:"",email:"",fullName:"",roles:[]},isAuthenticated:!1}),actions:{setUserFromClaims(e){const t=e.roles;this.user={username:e.sub,email:typeof e.email=="string"?e.email:"",fullName:typeof e.name=="string"?e.name:"",roles:Array.isArray(t)?t.filter(n=>typeof n=="string"):[]},this.isAuthenticated=!0}}});var Am=(e=>(e.SETUP="setup",e.CONFIGURE="configure",e.INITIALIZE="initialize",e.READY="ready",e.POST_INIT="postInit",e))(Am||{});class Yw{id;name;version;description;constructor(t,n,a,o){this.id=t,this.name=n,this.version=a,this.description=o}async setup(){return{success:!0}}async configure(t){return{success:!0}}async initialize(t){return{success:!0}}async ready(t){return{success:!0}}async postInit(t){return{success:!0}}}Ne.BasicRemoteModule=Yw,Ne.DEFAULT_DATE_FORMAT=Gn,Ne.LinidZoneRenderer=Wm,Ne.ModuleLifecyclePhase=Am,Ne.QDATE_DEFAULT_MASK=Rn,Ne.deepEqual=$l,Ne.deepEqualUnordered=Va,Ne.deleteEntityById=Bg,Ne.fromDot=zg,Ne.getApiEndpointsConfiguration=Lm,Ne.getDayjsInstance=js,Ne.getEntities=Dg,Ne.getEntitiesConfiguration=Mm,Ne.getEntityById=$g,Ne.getEntityConfiguration=zw,Ne.getHttpClient=vn,Ne.getI18nInstance=Uc,Ne.getModuleFederation=Ps,Ne.getModuleHostConfiguration=Vn,Ne.getNunjucksEnv=Kc,Ne.getPiniaStore=ta,Ne.getUiDesign=Tm,Ne.isObject=er,Ne.loadAsyncComponent=Ns,Ne.merge=Fu,Ne.registerModuleHostConfiguration=Pg,Ne.renameKeys=zu,Ne.saveEntity=Ng,Ne.setDayjsInstance=Km,Ne.setHttpClient=Rg,Ne.setI18nInstance=Kp,Ne.setModuleFederation=Fm,Ne.setNunjucksEnv=Jp,Ne.setPiniaStore=Um,Ne.setUiDesign=Dw,Ne.uiEventSubject=kl,Ne.updateEntity=Ig,Ne.useDayjs=Us,Ne.useDialog=lh,Ne.useFieldValidation=Wc,Ne.useLinidConfigurationStore=Hw,Ne.useLinidUiStore=Uw,Ne.useLinidUserStore=Ww,Ne.useLinidZoneStore=Hs,Ne.useNotify=Xp,Ne.useNunjucks=Zp,Ne.usePagination=Vp,Ne.useQuasarDate=Pw,Ne.useQuasarFieldValidation=Em,Ne.useQuasarRules=Nw,Ne.useScopedI18n=Qc,Ne.useTree=Iw,Ne.useUiDesign=Fw,Object.defineProperty(Ne,Symbol.toStringTag,{value:"Module"})}));
|
|
136
|
+
${pe}
|
|
137
|
+
`,document.head.appendChild(ze);let De="normal";N.style.animation=`${i.duration}ms ${i.easing} ${i.delay}ms ${De} ${i.fill} ${xe}-from`,I!==void 0&&(I.style.animation=`${i.duration}ms ${i.easing} ${i.delay}ms ${De} ${i.fill} ${xe}-from-tween`),R.style.animation=`${i.duration}ms ${i.easing} ${i.delay}ms ${De} ${i.fill} ${xe}-to`,D.style.animation=`${i.duration}ms ${i.easing} ${i.delay}ms ${De} ${i.fill} ${xe}`;const Je=Ze=>{Ze===Object(Ze)&&Ze.animationName!==xe||(D.removeEventListener("animationend",Je),D.removeEventListener("animationcancel",Je),de(),ze.remove())};l.qMorphCancel=()=>{l.qMorphCancel=void 0,n=!0,Je()},D.qMorphCancel=()=>{D.qMorphCancel=void 0,n=!0,Je()},D.addEventListener("animationend",Je),D.addEventListener("animationcancel",Je),t=Ze=>n===!0||!D||!N||!R?!1:Ze===!0?(Je(),!0):(o=o!==!0,De=De==="normal"?"reverse":"normal",N.style.animationDirection=De,I.style.animationDirection=De,R.style.animationDirection=De,D.style.animationDirection=De,!0)}};i.waitFor>0||i.waitFor==="transitionend"||i.waitFor===Object(i.waitFor)&&typeof i.waitFor.then=="function"?(i.waitFor>0?new Promise(Ee=>setTimeout(Ee,i.waitFor)):i.waitFor==="transitionend"?new Promise(Ee=>{const G=()=>{R!==null&&(clearTimeout(R),R=null),D&&(D.removeEventListener("transitionend",G),D.removeEventListener("transitioncancel",G)),Ee()};let R=setTimeout(G,400);D.addEventListener("transitionend",G),D.addEventListener("transitioncancel",G)}):i.waitFor).then(Z).catch(()=>{typeof D.qMorphCancel=="function"&&D.qMorphCancel()}):Z()};return typeof e.onToggle=="function"&&e.onToggle(),requestAnimationFrame($),D=>t(D)}var Xi={},U1=["duration","delay","easing","fill","classes","style","duration","resize","useCSS","hideFromClone","keepToClone","tween","tweenFromOpacity","tweenToOpacity","waitFor","onEnd"],Q1=["resize","useCSS","hideFromClone","keepToClone","tween"];function Ro(e,t){e.clsAction!==t&&(e.clsAction=t,e.el.classList[t]("q-morph--invisible"))}function mh(e){if(e.animating===!0||e.queue.length<2)return;const[t,n]=e.queue;e.animating=!0,t.animating=!0,n.animating=!0,Ro(t,"remove"),Ro(n,"remove");const o=j1({from:t.el,to:n.el,onToggle(){Ro(t,"add"),Ro(n,"remove")},...n.opts,onEnd(a,i){n.opts.onEnd?.(a,i),i!==!0&&(t.animating=!1,n.animating=!1,e.animating=!1,e.cancel=void 0,e.queue.shift(),mh(e))}});e.cancel=()=>{o(!0),e.cancel=void 0}}function hh(e,t){const n=t.opts;Q1.forEach(o=>{n[o]=e[o]===!0})}function W1(e,t){const n=typeof e=="string"&&e.length!==0?e.split(":"):[];t.name=n[0],t.group=n[1],Object.assign(t.opts,{duration:isNaN(n[2])===!0?300:parseFloat(n[2]),waitFor:n[3]})}function Y1(e,t){e.group!==void 0&&(t.group=e.group),e.name!==void 0&&(t.name=e.name);const n=t.opts;U1.forEach(o=>{e[o]!==void 0&&(n[o]=e[o])})}function K1(e,t){if(t.name===e){const n=Xi[t.group];n===void 0?(Xi[t.group]={name:t.group,model:e,queue:[t],animating:!1},Ro(t,"remove")):n.model!==e&&(n.model=e,n.queue.push(t),n.animating===!1&&n.queue.length===2&&mh(n));return}t.animating===!1&&Ro(t,"add")}function gh(e,t){let n;Object(t)===t?(n=""+t.model,Y1(t,e),hh(t,e)):n=""+t,n!==e.model?(e.model=n,K1(n,e)):e.animating===!1&&e.clsAction!==void 0&&e.el.classList[e.clsAction]("q-morph--invisible")}Dn({name:"morph",mounted(e,t){const n={el:e,animating:!1,opts:{}};hh(t.modifiers,n),W1(t.arg,n),gh(n,t.value),e.__qmorph=n},updated(e,t){gh(e.__qmorph,t.value)},beforeUnmount(e){const t=e.__qmorph,n=Xi[t.group];n!==void 0&&n.queue.indexOf(t)!==-1&&(n.queue=n.queue.filter(a=>a!==t),n.queue.length===0&&(n.cancel?.(),delete Xi[t.group])),t.clsAction==="add"&&e.classList.remove("q-morph--invisible"),delete e.__qmorph}});var G1={childList:!0,subtree:!0,attributes:!0,characterData:!0,attributeOldValue:!0,characterDataOldValue:!0};function ph(e,t,n){t.handler=n,t.observer?.disconnect(),t.observer=new MutationObserver(o=>{typeof t.handler=="function"&&(t.handler(o)===!1||t.once===!0)&&bh(e)}),t.observer.observe(e,t.opts)}function bh(e){const t=e.__qmutation;t!==void 0&&(t.observer?.disconnect(),delete e.__qmutation)}Dn({name:"mutation",mounted(e,{modifiers:{once:t,...n},value:o}){const a={once:t,opts:Object.keys(n).length===0?G1:n};ph(e,a,o),e.__qmutation=a},updated(e,{oldValue:t,value:n}){const o=e.__qmutation;o!==void 0&&t!==n&&ph(e,o,n)},beforeUnmount:bh});var{passive:Ji}=Rt;function yh(e,{value:t,oldValue:n}){if(typeof t!="function"){e.scrollTarget.removeEventListener("scroll",e.scroll,Ji);return}e.handler=t,typeof n!="function"&&(e.scrollTarget.addEventListener("scroll",e.scroll,Ji),e.scroll())}Dn({name:"scroll-fire",mounted(e,t){const n={scrollTarget:Kn(e),scroll:fo(()=>{let o,a;n.scrollTarget===window?(a=e.getBoundingClientRect().bottom,o=window.innerHeight):(a=ci(e).top+vo(e),o=ci(n.scrollTarget).top+vo(n.scrollTarget)),a>0&&a<o&&(n.scrollTarget.removeEventListener("scroll",n.scroll,Ji),n.handler(e))},25)};yh(n,t),e.__qscrollfire=n},updated(e,t){t.value!==t.oldValue&&yh(e.__qscrollfire,t)},beforeUnmount(e){const t=e.__qscrollfire;t.scrollTarget.removeEventListener("scroll",t.scroll,Ji),t.scroll.cancel(),delete e.__qscrollfire}});function _h(e,{value:t,oldValue:n}){if(typeof t!="function"){e.scrollTarget.removeEventListener("scroll",e.scroll,Rt.passive);return}e.handler=t,typeof n!="function"&&e.scrollTarget.addEventListener("scroll",e.scroll,Rt.passive)}Dn({name:"scroll",mounted(e,t){const n={scrollTarget:Kn(e),scroll(){n.handler(gr(n.scrollTarget),hi(n.scrollTarget))}};_h(n,t),e.__qscroll=n},updated(e,t){e.__qscroll!==void 0&&t.oldValue!==t.value&&_h(e.__qscroll,t)},beforeUnmount(e){const t=e.__qscroll;t.scrollTarget.removeEventListener("scroll",t.scroll,Rt.passive),delete e.__qscroll}}),Dn({name:"touch-hold",beforeMount(e,t){const{modifiers:n}=t;if(n.mouse!==!0&&ft.has.touch!==!0)return;const o={handler:t.value,noop:Kt,mouseStart(i){typeof o.handler=="function"&&ai(i)===!0&&(zt(o,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),o.start(i,!0))},touchStart(i){if(i.target!==void 0&&typeof o.handler=="function"){const l=i.target;zt(o,"temp",[[l,"touchmove","move","passiveCapture"],[l,"touchcancel","end","notPassiveCapture"],[l,"touchend","end","notPassiveCapture"]]),o.start(i)}},start(i,l){o.origin=mn(i);const s=Date.now();ft.is.mobile===!0&&(document.body.classList.add("non-selectable"),Bn(),o.styleCleanup=d=>{o.styleCleanup=void 0;const m=()=>{document.body.classList.remove("non-selectable")};d===!0?(Bn(),setTimeout(m,10)):m()}),o.triggered=!1,o.sensitivity=l===!0?o.mouseSensitivity:o.touchSensitivity,o.timer=setTimeout(()=>{o.timer=void 0,Bn(),o.triggered=!0,o.handler({evt:i,touch:l!==!0,mouse:l===!0,position:o.origin,duration:Date.now()-s})},o.duration)},move(i){const{top:l,left:s}=mn(i);o.timer!==void 0&&(Math.abs(s-o.origin.left)>=o.sensitivity||Math.abs(l-o.origin.top)>=o.sensitivity)&&(clearTimeout(o.timer),o.timer=void 0)},end(i){cn(o,"temp"),o.styleCleanup?.(o.triggered),o.triggered===!0?i!==void 0&&ct(i):o.timer!==void 0&&(clearTimeout(o.timer),o.timer=void 0)}},a=[600,5,7];if(typeof t.arg=="string"&&t.arg.length!==0&&t.arg.split(":").forEach((i,l)=>{const s=parseInt(i,10);s&&(a[l]=s)}),[o.duration,o.touchSensitivity,o.mouseSensitivity]=a,e.__qtouchhold=o,n.mouse===!0){const i=n.mouseCapture===!0||n.mousecapture===!0?"Capture":"";zt(o,"main",[[e,"mousedown","mouseStart",`passive${i}`]])}ft.has.touch===!0&&zt(o,"main",[[e,"touchstart","touchStart",`passive${n.capture===!0?"Capture":""}`],[e,"touchend","noop","notPassiveCapture"]])},updated(e,t){const n=e.__qtouchhold;n!==void 0&&t.oldValue!==t.value&&(typeof t.value!="function"&&n.end(),n.handler=t.value)},beforeUnmount(e){const t=e.__qtouchhold;t!==void 0&&(cn(t,"main"),cn(t,"temp"),t.timer!==void 0&&clearTimeout(t.timer),t.styleCleanup?.(),delete e.__qtouchhold)}});var Sh={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},X1=new RegExp(`^([\\d+]+|${Object.keys(Sh).join("|")})$`,"i");function J1(e,t){const{top:n,left:o}=mn(e);return Math.abs(o-t.left)>=7||Math.abs(n-t.top)>=7}Dn({name:"touch-repeat",beforeMount(e,{modifiers:t,value:n,arg:o}){const a=Object.keys(t).reduce((d,m)=>{if(X1.test(m)===!0){const v=isNaN(parseInt(m,10))?Sh[m.toLowerCase()]:parseInt(m,10);v>=0&&d.push(v)}return d},[]);if(t.mouse!==!0&&ft.has.touch!==!0&&a.length===0)return;const i=typeof o=="string"&&o.length!==0?o.split(":").map(d=>parseInt(d,10)):[0,600,300],l=i.length-1,s={keyboard:a,handler:n,noop:Kt,mouseStart(d){s.event===void 0&&typeof s.handler=="function"&&ai(d)===!0&&(zt(s,"temp",[[document,"mousemove","move","passiveCapture"],[document,"click","end","notPassiveCapture"]]),s.start(d,!0))},keyboardStart(d){if(typeof s.handler=="function"&&qn(d,a)===!0){if((i[0]===0||s.event!==void 0)&&(ct(d),e.focus(),s.event!==void 0))return;zt(s,"temp",[[document,"keyup","end","notPassiveCapture"],[document,"click","end","notPassiveCapture"]]),s.start(d,!1,!0)}},touchStart(d){if(d.target!==void 0&&typeof s.handler=="function"){const m=d.target;zt(s,"temp",[[m,"touchmove","move","passiveCapture"],[m,"touchcancel","end","notPassiveCapture"],[m,"touchend","end","notPassiveCapture"]]),s.start(d)}},start(d,m,v){v!==!0&&(s.origin=mn(d));function b(_){s.styleCleanup=void 0,document.documentElement.style.cursor="";const g=()=>{document.body.classList.remove("non-selectable")};_===!0?(Bn(),setTimeout(g,10)):g()}ft.is.mobile===!0&&(document.body.classList.add("non-selectable"),Bn(),s.styleCleanup=b),s.event={touch:m!==!0&&v!==!0,mouse:m===!0,keyboard:v===!0,startTime:Date.now(),repeatCount:0};const p=()=>{if(s.timer=void 0,s.event===void 0)return;s.event.repeatCount===0&&(s.event.evt=d,v===!0?s.event.keyCode=d.keyCode:s.event.position=mn(d),ft.is.mobile!==!0&&(document.documentElement.style.cursor="pointer",document.body.classList.add("non-selectable"),Bn(),s.styleCleanup=b)),s.event.duration=Date.now()-s.event.startTime,s.event.repeatCount+=1,s.handler(s.event);const _=l<s.event.repeatCount?l:s.event.repeatCount;s.timer=setTimeout(p,i[_])};i[0]===0?p():s.timer=setTimeout(p,i[0])},move(d){s.event!==void 0&&s.timer!==void 0&&J1(d,s.origin)===!0&&(clearTimeout(s.timer),s.timer=void 0)},end(d){s.event!==void 0&&(s.styleCleanup?.(!0),d!==void 0&&s.event.repeatCount>0&&ct(d),cn(s,"temp"),s.timer!==void 0&&(clearTimeout(s.timer),s.timer=void 0),s.event=void 0)}};if(e.__qtouchrepeat=s,t.mouse===!0){const d=t.mouseCapture===!0||t.mousecapture===!0?"Capture":"";zt(s,"main",[[e,"mousedown","mouseStart",`passive${d}`]])}if(ft.has.touch===!0&&zt(s,"main",[[e,"touchstart","touchStart",`passive${t.capture===!0?"Capture":""}`],[e,"touchend","noop","passiveCapture"]]),a.length!==0){const d=t.keyCapture===!0||t.keycapture===!0?"Capture":"";zt(s,"main",[[e,"keydown","keyboardStart",`notPassive${d}`]])}},updated(e,{oldValue:t,value:n}){const o=e.__qtouchrepeat;o!==void 0&&t!==n&&(typeof n!="function"&&o.end(),o.handler=n)},beforeUnmount(e){const t=e.__qtouchrepeat;t!==void 0&&(t.timer!==void 0&&clearTimeout(t.timer),cn(t,"main"),cn(t,"temp"),t.styleCleanup?.(),delete e.__qtouchrepeat)}});function Z1(e,t=document.body){if(!(t instanceof Element))throw new TypeError("Expected a DOM element");return getComputedStyle(t).getPropertyValue(`--q-${e}`).trim()||null}var Zi;function V1(){return ft.is.winphone?"msapplication-navbutton-color":"theme-color"}function eC(e){const t=document.getElementsByTagName("META");for(const n in t)if(t[n].name===e)return t[n]}function tC(e){Zi===void 0&&(Zi=V1());let t=eC(Zi);const n=t===void 0;n&&(t=document.createElement("meta"),t.setAttribute("name",Zi)),t.setAttribute("content",e),n&&document.head.appendChild(t)}ft.is.mobile===!0&&(ft.is.nativeMobile===!0||ft.is.winphone===!0||ft.is.safari===!0||ft.is.webkit===!0||ft.is.vivaldi);var ba={};function nC(e){Object.assign(fn,{request:e,exit:e,toggle:e})}function wh(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||null}function Ch(){const e=fn.activeEl=fn.isActive===!1?null:wh();y_(e===null||e===document.documentElement?document.body:e)}function rC(){fn.isActive=fn.isActive===!1,Ch()}function xh(e,t){try{const n=e[t]();return n===void 0?Promise.resolve():n}catch(n){return Promise.reject(n)}}var fn=vr({isActive:!1,activeEl:null},{isCapable:!1,install({$q:e}){e.fullscreen=this}});ba.request=["requestFullscreen","msRequestFullscreen","mozRequestFullScreen","webkitRequestFullscreen"].find(e=>document.documentElement[e]!==void 0),fn.isCapable=ba.request!==void 0,fn.isCapable===!1?nC(()=>Promise.reject("Not capable")):(Object.assign(fn,{request(e){const t=e||document.documentElement,{activeEl:n}=fn;return t===n?Promise.resolve():(n!==null&&t.contains(n)===!0?fn.exit():Promise.resolve()).finally(()=>xh(t,ba.request))},exit(){return fn.isActive===!0?xh(document,ba.exit):Promise.resolve()},toggle(e){return fn.isActive===!0?fn.exit():fn.request(e)}}),ba.exit=["exitFullscreen","msExitFullscreen","mozCancelFullScreen","webkitExitFullscreen"].find(e=>document[e]),fn.isActive=!!wh(),fn.isActive===!0&&Ch(),["onfullscreenchange","onmsfullscreenchange","onwebkitfullscreenchange"].forEach(e=>{document[e]=rC}));var oC=vr({appVisible:!0},{install({$q:e}){Jt(e,"appVisible",()=>this.appVisible)}});{let e,t;if(typeof document.hidden<"u"?(e="hidden",t="visibilitychange"):typeof document.msHidden<"u"?(e="msHidden",t="msvisibilitychange"):typeof document.webkitHidden<"u"&&(e="webkitHidden",t="webkitvisibilitychange"),t&&typeof document[e]<"u"){const n=()=>{oC.appVisible=!document[e]};document.addEventListener(t,n,!1)}}_e({name:"BottomSheetComponent",props:{...bt,title:String,message:String,actions:Array,grid:Boolean,cardClass:[String,Array,Object],cardStyle:[String,Array,Object]},emits:["ok","hide"],setup(e,{emit:t}){const{proxy:n}=r.getCurrentInstance(),o=yt(e,n.$q),a=r.ref(null);function i(){a.value.show()}function l(){a.value.hide()}function s(_){t("ok",_),l()}function d(){t("hide")}function m(){return e.actions.map(_=>{const g=_.avatar||_.img;return _.label===void 0?r.h(Kr,{class:"col-all",dark:o.value}):r.h("div",{class:["q-bottom-sheet__item q-hoverable q-focusable cursor-pointer relative-position",_.class],style:_.style,tabindex:0,role:"listitem",onClick(){s(_)},onKeyup(E){E.keyCode===13&&s(_)}},[r.h("div",{class:"q-focus-helper"}),_.icon?r.h(wt,{name:_.icon,color:_.color}):g?r.h("img",{class:_.avatar?"q-bottom-sheet__avatar":"",src:g}):r.h("div",{class:"q-bottom-sheet__empty-icon"}),r.h("div",_.label)])})}function v(){return e.actions.map(_=>{const g=_.avatar||_.img;return _.label===void 0?r.h(Kr,{spaced:!0,dark:o.value}):r.h(Bi,{class:["q-bottom-sheet__item",_.classes],style:_.style,tabindex:0,clickable:!0,dark:o.value,onClick(){s(_)}},()=>[r.h(_r,{avatar:!0},()=>_.icon?r.h(wt,{name:_.icon,color:_.color}):g?r.h("img",{class:_.avatar?"q-bottom-sheet__avatar":"",src:g}):null),r.h(_r,()=>_.label)])})}function b(){const _=[];return e.title&&_.push(r.h(Qr,{class:"q-dialog__title"},()=>e.title)),e.message&&_.push(r.h(Qr,{class:"q-dialog__message"},()=>e.message)),_.push(e.grid===!0?r.h("div",{class:"row items-stretch justify-start",role:"list"},m()):r.h("div",{role:"list"},v())),_}function p(){return[r.h(cv,{class:[`q-bottom-sheet q-bottom-sheet--${e.grid===!0?"grid":"list"}`+(o.value===!0?" q-bottom-sheet--dark q-dark":""),e.cardClass],style:e.cardStyle},b)]}return Object.assign(n,{show:i,hide:l}),()=>r.h(Fi,{ref:a,position:"bottom",onHide:d},p)}});function kh(e){return encodeURIComponent(e)}function Eh(e){return decodeURIComponent(e)}function aC(e){return kh(e===Object(e)?JSON.stringify(e):""+e)}function iC(e){if(e==="")return e;e.indexOf('"')===0&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),e=Eh(e.replace(/\+/g," "));try{const t=JSON.parse(e);(t===Object(t)||Array.isArray(t)===!0)&&(e=t)}catch{}return e}function Th(e){const t=new Date;return t.setMilliseconds(t.getMilliseconds()+e),t.toUTCString()}function lC(e){let t=0;const n=e.match(/(\d+)d/),o=e.match(/(\d+)h/),a=e.match(/(\d+)m/),i=e.match(/(\d+)s/);return n&&(t+=n[1]*864e5),o&&(t+=o[1]*36e5),a&&(t+=a[1]*6e4),i&&(t+=i[1]*1e3),t===0?e:Th(t)}function Oh(e,t,n={},o){let a,i;n.expires!==void 0&&(Object.prototype.toString.call(n.expires)==="[object Date]"?a=n.expires.toUTCString():typeof n.expires=="string"?a=lC(n.expires):(i=parseFloat(n.expires),a=isNaN(i)===!1?Th(i*864e5):n.expires));const l=`${kh(e)}=${aC(t)}`,s=[l,a!==void 0?"; Expires="+a:"",n.path?"; Path="+n.path:"",n.domain?"; Domain="+n.domain:"",n.sameSite?"; SameSite="+n.sameSite:"",n.httpOnly?"; HttpOnly":"",n.secure?"; Secure":"",n.other?"; "+n.other:""].join("");if(o){o.req.qCookies?o.req.qCookies.push(s):o.req.qCookies=[s],o.res.setHeader("Set-Cookie",o.req.qCookies);let d=o.req.headers.cookie||"";if(a!==void 0&&i<0){const m=Vi(e,o);m!==void 0&&(d=d.replace(`${e}=${m}; `,"").replace(`; ${e}=${m}`,"").replace(`${e}=${m}`,""))}else d=d?`${l}; ${d}`:s;o.req.headers.cookie=d}else document.cookie=s}function Vi(e,t){const n=t?t.req.headers:document,o=n.cookie?n.cookie.split("; "):[],a=o.length;let i=e?null:{},l=0,s,d,m;for(;l<a;l++)if(s=o[l].split("="),d=Eh(s.shift()),m=s.join("="),!e)i[d]=m;else if(e===d){i=iC(m);break}return i}function sC(e,t,n){Oh(e,"",{expires:-1,...t},n)}function uC(e,t){return Vi(e,t)!==null}function qh(e){return{get:t=>Vi(t,e),set:(t,n,o)=>Oh(t,n,o,e),has:t=>uC(t,e),remove:(t,n)=>sC(t,n,e),getAll:()=>Vi(null,e)}}var Mh={install({$q:e,ssrContext:t}){e.cookies=this}};__QUASAR_SSR__&&(Mh.parseSSR=e=>{if(e!==void 0)return qh(e)}),Object.assign(Mh,qh()),_e({name:"DialogPluginComponent",props:{...bt,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(e,{emit:t}){const{proxy:n}=r.getCurrentInstance(),{$q:o}=n,a=yt(e,o),i=r.ref(null),l=r.ref(e.prompt!==void 0?e.prompt.model:e.options!==void 0?e.options.model:void 0),s=r.computed(()=>"q-dialog-plugin"+(a.value===!0?" q-dialog-plugin--dark q-dark":"")+(e.progress!==!1?" q-dialog-plugin--progress":"")),d=r.computed(()=>e.color||(a.value===!0?"amber":"primary")),m=r.computed(()=>e.progress===!1?null:dn(e.progress)===!0?{component:e.progress.spinner||Fn,props:{color:e.progress.color||d.value}}:{component:Fn,props:{color:d.value}}),v=r.computed(()=>e.prompt!==void 0||e.options!==void 0),b=r.computed(()=>{if(v.value!==!0)return{};const{model:P,isValid:F,items:Y,...X}=e.prompt!==void 0?e.prompt:e.options;return X}),p=r.computed(()=>dn(e.ok)===!0||e.ok===!0?o.lang.label.ok:e.ok),_=r.computed(()=>dn(e.cancel)===!0||e.cancel===!0?o.lang.label.cancel:e.cancel),g=r.computed(()=>e.prompt!==void 0?e.prompt.isValid!==void 0&&e.prompt.isValid(l.value)!==!0:e.options!==void 0?e.options.isValid!==void 0&&e.options.isValid(l.value)!==!0:!1),E=r.computed(()=>({color:d.value,label:p.value,ripple:!1,disable:g.value,...dn(e.ok)===!0?e.ok:{flat:!0},"data-autofocus":e.focus==="ok"&&v.value!==!0||void 0,onClick:x})),C=r.computed(()=>({color:d.value,label:_.value,ripple:!1,...dn(e.cancel)===!0?e.cancel:{flat:!0},"data-autofocus":e.focus==="cancel"&&v.value!==!0||void 0,onClick:y}));r.watch(()=>e.prompt&&e.prompt.model,L),r.watch(()=>e.options&&e.options.model,L);function w(){i.value.show()}function T(){i.value.hide()}function x(){t("ok",r.toRaw(l.value)),T()}function y(){T()}function q(){t("hide")}function L(P){l.value=P}function k(P){g.value!==!0&&e.prompt.type!=="textarea"&&qn(P,13)===!0&&x()}function H(P,F){return e.html===!0?r.h(Qr,{class:P,innerHTML:F}):r.h(Qr,{class:P},()=>F)}function ee(){return[r.h(Mm,{color:d.value,dense:!0,autofocus:!0,dark:a.value,...b.value,modelValue:l.value,"onUpdate:modelValue":L,onKeyup:k})]}function N(){return[r.h(ww,{color:d.value,options:e.options.items,dark:a.value,...b.value,modelValue:l.value,"onUpdate:modelValue":L})]}function I(){const P=[];return e.cancel&&P.push(r.h(xt,C.value)),e.ok&&P.push(r.h(xt,E.value)),r.h(D_,{class:e.stackButtons===!0?"items-end":"",vertical:e.stackButtons,align:"right"},()=>P)}function $(){const P=[];return e.title&&P.push(H("q-dialog__title",e.title)),e.progress!==!1&&P.push(r.h(Qr,{class:"q-dialog__progress"},()=>r.h(m.value.component,m.value.props))),e.message&&P.push(H("q-dialog__message",e.message)),e.prompt!==void 0?P.push(r.h(Qr,{class:"scroll q-dialog-plugin__form"},ee)):e.options!==void 0&&P.push(r.h(Kr,{dark:a.value}),r.h(Qr,{class:"scroll q-dialog-plugin__form"},N),r.h(Kr,{dark:a.value})),(e.ok||e.cancel)&&P.push(I()),P}function D(){return[r.h(cv,{class:[s.value,e.cardClass],style:e.cardStyle,dark:a.value},$)]}return Object.assign(n,{show:w,hide:T}),()=>r.h(Fi,{ref:i,onHide:q},D)}});var Lo,Au,Ph=0,Zr=null,rn={},Vr={},Ah={group:"__default_quasar_group__",delay:0,message:!1,html:!1,spinnerSize:80,spinnerColor:"",messageColor:"",backgroundColor:"",boxClass:"",spinner:Fn,customClass:""},Rh={...Ah};function cC(e){if(e?.group!==void 0&&Vr[e.group]!==void 0)return Object.assign(Vr[e.group],e);const t=dn(e)===!0&&e.ignoreDefaults===!0?{...Ah,...e}:{...Rh,...e};return Vr[t.group]=t,t}var Xn=vr({isActive:!1},{show(e){rn=cC(e);const{group:t}=rn;return Xn.isActive=!0,Lo!==void 0?(rn.uid=Ph,Au.$forceUpdate()):(rn.uid=++Ph,Zr!==null&&clearTimeout(Zr),Zr=setTimeout(()=>{Zr=null;const n=Ms("q-loading");Lo=Cf({name:"QLoading",setup(){r.onMounted(()=>{mu(!0)});function o(){Xn.isActive!==!0&&Lo!==void 0&&(mu(!1),Lo.unmount(n),Gf(n),Lo=void 0,Au=void 0)}function a(){if(Xn.isActive!==!0)return null;const i=[r.h(rn.spinner,{class:"q-loading__spinner",color:rn.spinnerColor,size:rn.spinnerSize})];return rn.message&&i.push(r.h("div",{class:"q-loading__message"+(rn.messageColor?` text-${rn.messageColor}`:""),[rn.html===!0?"innerHTML":"textContent"]:rn.message})),r.h("div",{class:"q-loading fullscreen flex flex-center z-max "+rn.customClass.trim(),key:rn.uid},[r.h("div",{class:"q-loading__backdrop"+(rn.backgroundColor?` bg-${rn.backgroundColor}`:"")}),r.h("div",{class:"q-loading__box column items-center "+rn.boxClass},i)])}return()=>r.h(r.Transition,{name:"q-transition--fade",appear:!0,onAfterLeave:o},a)}},Xn.__parentApp),Au=Lo.mount(n)},rn.delay)),n=>{if(n===void 0||Object(n)!==n){Xn.hide(t);return}Xn.show({...n,group:t})}},hide(e){if(Xn.isActive===!0){if(e===void 0)Vr={};else{if(Vr[e]===void 0)return;{delete Vr[e];const t=Object.keys(Vr);if(t.length!==0){const n=t[t.length-1];Xn.show({group:n});return}}}Zr!==null&&(clearTimeout(Zr),Zr=null),Xn.isActive=!1}},setDefaults(e){dn(e)===!0&&Object.assign(Rh,e)},install({$q:e,parentApp:t}){e.loading=this,Xn.__parentApp=t,e.config.loading!==void 0&&this.setDefaults(e.config.loading)}}),el=r.ref(null),Lh=vr({isActive:!1},{start:Kt,stop:Kt,increment:Kt,setDefaults:Kt,install({$q:e,parentApp:t}){if(e.loadingBar=this,this.__installed===!0){e.config.loadingBar!==void 0&&this.setDefaults(e.config.loadingBar);return}const n=r.ref(e.config.loadingBar!==void 0?{...e.config.loadingBar}:{});function o(){Lh.isActive=!0}function a(){Lh.isActive=!1}const i=Ms("q-loading-bar");Cf({name:"LoadingBar",devtools:{hide:!0},setup:()=>()=>r.h(Xy,{...n.value,onStart:o,onStop:a,ref:el})},t).mount(i),Object.assign(this,{start(l){el.value.start(l)},stop(){el.value.stop()},increment(){el.value.increment.apply(null,arguments)},setDefaults(l){dn(l)===!0&&Object.assign(n.value,l)}})}});function dC(e){return Vo(e)===!0?"__q_date|"+e.getTime():jy(e)===!0?"__q_expr|"+e.source:typeof e=="number"?"__q_numb|"+e:typeof e=="boolean"?"__q_bool|"+(e?"1":"0"):typeof e=="string"?"__q_strn|"+e:typeof e=="function"?"__q_strn|"+e.toString():e===Object(e)?"__q_objt|"+JSON.stringify(e):e}function fC(e){if(e.length<9)return e;const n=e.substring(0,8),o=e.substring(9);switch(n){case"__q_date":const a=Number(o);return new Date(Number.isNaN(a)===!0?o:a);case"__q_expr":return new RegExp(o);case"__q_numb":return Number(o);case"__q_bool":return o==="1";case"__q_strn":return""+o;case"__q_objt":return JSON.parse(o);default:return e}}function Ih(){const e=()=>null;return{has:()=>!1,hasItem:()=>!1,getLength:()=>0,getItem:e,getIndex:e,getKey:e,getAll:()=>{},getAllKeys:()=>[],set:Kt,setItem:Kt,remove:Kt,removeItem:Kt,clear:Kt,isEmpty:()=>!0}}function Nh(e){const t=window[e+"Storage"],n=l=>{const s=t.getItem(l);return s?fC(s):null},o=l=>t.getItem(l)!==null,a=(l,s)=>{t.setItem(l,dC(s))},i=l=>{t.removeItem(l)};return{has:o,hasItem:o,getLength:()=>t.length,getItem:n,getIndex:l=>l<t.length?n(t.key(l)):null,getKey:l=>l<t.length?t.key(l):null,getAll:()=>{let l;const s={},d=t.length;for(let m=0;m<d;m++)l=t.key(m),s[l]=n(l);return s},getAllKeys:()=>{const l=[],s=t.length;for(let d=0;d<s;d++)l.push(t.key(d));return l},set:a,setItem:a,remove:i,removeItem:i,clear:()=>{t.clear()},isEmpty:()=>t.length===0}}var Dh=ft.has.webStorage===!1?Ih():Nh("local"),vC={install({$q:e}){e.localStorage=Dh}};Object.assign(vC,Dh);var $h=ft.has.webStorage===!1?Ih():Nh("session"),mC={install({$q:e}){e.sessionStorage=$h}};Object.assign(mC,$h);var hC=["ok","hide"];ah(hC);const ur="YYYY/MM/DD";function gC(){function e(n,o){return uu.formatDate(uu.extractDate(n,o||ur),ur)}function t(n,o){return n==null?"":uu.formatDate(n,o||ur)}return{toQDateFormat:e,formatQDate:t}}function Fh(e){const{validateFromApi:t,required:n,email:o,minLength:a,maxLength:i,min:l,max:s,pattern:d,unique:m,validDate:v,afterDate:b,beforeDate:p,fromDate:_,upToDate:g}=af(e);return{validateFromApi:(E,C)=>w=>t(E,C,w),required:n,email:o,min:E=>C=>l(typeof C=="string"?parseFloat(C):C,E),max:E=>C=>s(typeof C=="string"?parseFloat(C):C,E),minLength:E=>C=>a(C,E),maxLength:E=>C=>i(C,E),pattern:E=>C=>d(C,E),unique:E=>C=>m(C,E),validDate:E=>C=>v(C,E||ur),afterDate:(E,C)=>w=>b(w,E,C||ur),beforeDate:(E,C)=>w=>p(w,E,C||ur),fromDate:(E,C)=>w=>_(w,E,C||ur),upToDate:(E,C)=>w=>g(w,E,C||ur)}}function pC(e,t,n,o){const{required:a,email:i,validateFromApi:l,...s}=Fh(o),d=t.required?[a]:[];return n.forEach(m=>{if(m==="email")d.push(i);else if(s[m]&&t.inputSettings?.[m]!=null){const v=t.inputSettings[m];d.push(s[m](v))}}),t.hasValidations&&d.push(l(e,t.name)),d}function bC(){function e(t){return t.map(n=>({type:n.type,key:n.key,value:n.value,children:e(n.nodes)}))}return{toQTreeNodes:e}}let tl=null;function yC(e){if(tl!==null){console.warn("[LinID CoreLib] UI Design has already been initialized. Re-initialization is ignored.");return}tl=e}function Bh(){if(tl===null)throw new Error("[LinID CoreLib] UI Design is not initialized. Call setUiDesign() first.");return tl}const zh={"q-avatar":["icon","size","fontSize","color","textColor","square","rounded"],"q-badge":["floating","multiLine","align","color","textColor","transparent","outline","rounded"],"q-banner":["inlineActions","dense","rounded","dark"],"q-btn":["icon","iconRight","noCaps","noWrap","align","stack","stretch","size","outline","flat","unelevated","rounded","push","square","glossy","fab","fabMini","padding","color","textColor","dense","ripple","round"],"q-btn-dropdown":["split","disableMainBtn","disableDropdown","persistent","noEscDismiss","noRouteDismiss","autoClose","noRefocus","noFocus","icon","iconRight","noCaps","noWrap","align","stack","stretch","dropdownIcon","cover","menuAnchor","menuSelf","menuOffset","size","outline","flat","unelevated","rounded","push","square","glossy","fab","fabMini","padding","color","textColor","dense","ripple","noIconAnimation","contentStyle","contentClass","transitionShow","transitionHide","transitionDuration"],"q-card":["dark","square","flat","bordered"],"q-card-actions":["align","vertical"],"q-date":["landscape","yearsInMonthView","todayBtn","minimal","defaultView","color","textColor","dark","square","flat","bordered"],"q-dialog":["persistent","noEscDismiss","noBackdropDismiss","noRouteDismiss","autoClose","noRefocus","noFocus","noShake","allowFocusOutside","seamless","maximized","fullWidth","fullHeight","position","backdropFilter","square","transitionShow","transitionHide","transitionDuration"],"q-file":["autofocus","stackLabel","hideHint","clearable","clearIcon","useChips","labelColor","color","bgColor","dark","filled","outlined","borderless","standout","hideBottomSpace","rounded","square","dense","itemAligned","inputClass","inputStyle","noErrorIcon"],"q-form":["autofocus","noErrorFocus","noResetFocus","greedy"],"q-header":["reveal","revealOffset","elevated","bordered"],"q-icon":["left","right","name","size","color"],"q-img":["loading","loadingShowDelay","noSpinner","noNativeMenu","noTransition","draggable","src","srcset","sizes","placeholderSrc","errorSrc","ratio","initialRatio","width","height","fit","position","imgClass","imgStyle","spinnerColor","spinnerSize"],"q-input":["autofocus","stackLabel","hideHint","clearable","clearIcon","counter","autogrow","fillMask","reverseFillMask","unmaskedValue","debounce","labelColor","color","bgColor","dark","filled","outlined","borderless","standout","hideBottomSpace","rounded","square","dense","itemAligned","noErrorIcon"],"q-item":["insetLevel","tag","activeClass","exactActiveClass","clickable","manualFocus","focused","dark","dense"],"q-item-label":["lines","overline","caption","header"],"q-item-section":["avatar","thumbnail","side","top","noWrap"],"q-list":["separator","padding","tag","bordered","dense","dark"],"q-menu":["contextMenu","touchPosition","persistent","noEscDismiss","noRouteDismiss","autoClose","separateClosePopup","noRefocus","noFocus","fit","cover","anchor","self","offset","dark","square","maxHeight","maxWidth","transitionShow","transitionHide","transitionDuration"],"q-route-tab":["icon","activeClass","exactActiveClass","noCaps","alert","contentClass","ripple"],"q-select":["virtualScrollHorizontal","clearable","autofocus","hideDropdownIcon","popupNoRouteDismiss","fillInput","transitionShow","transitionHide","transitionDuration","behavior","stackLabel","hideHint","clearIcon","counter","dropdownIcon","useInput","inputDebounce","optionsDense","optionsDark","optionsSelectedClass","optionsCover","menuShrink","disableTabSelection","menuAnchor","menuSelf","menuOffset","displayValueHtml","hideSelected","useChips","labelColor","color","bgColor","dark","filled","outlined","borderless","standout","hideBottomSpace","rounded","square","dense","itemAligned","popupContentClass","popupContentStyle","inputClass","inputStyle","noErrorIcon","virtualScrollSliceSize","virtualScrollSliceRatioBefore","virtualScrollSliceRatioAfter","virtualScrollItemSize","virtualScrollStickySizeStart","virtualScrollStickySizeEnd"],"q-spinner":["size","color","thickness"],"q-table":["virtualScrollItemSize","virtualScrollStickySizeStart","virtualScrollStickySizeEnd","color","iconFirstPage","iconPrevPage","iconNextPage","iconLastPage","grid","gridHeader","dense","hideHeader","hideBottom","hideSelectedBanner","hideNoData","hidePagination","flat","bordered","square","separator","wrapCells","tableStyle","tableClass","tableHeaderStyle","tableHeaderClass","cardContainerStyle","cardContainerClass","cardStyle","cardClass","titleClass"],"q-tabs":["vertical","outsideArrows","mobileArrows","align","breakpoint","leftIcon","rightIcon","stretch","shrink","switchIndicator","narrowIndicator","inlineLabel","noCaps","activeColor","activeBgColor","indicatorColor","contentClass","activeClass","dense"],"q-toggle":["toggleOrder","toggleIndeterminate","keepColor","icon","checkedIcon","uncheckedIcon","indeterminateIcon","leftLabel","size","color","dark","dense","iconColor"],"q-toolbar":["inset"],"q-toolbar-title":["shrink"],"q-tree":["tickStrategy","noSelectionUnset","defaultExpandAll","accordion","noTransition","noConnectors","color","controlColor","textColor","selectedColor","dense","dark","duration"],"q-splitter":["horizontal","limits","modelValue","reverse","unit","disable","beforeClass","afterClass","separatorClass","separatorStyle","dark"]};function Hh(e,t){return t.split(".").reduce((n,o)=>{if(n&&typeof n=="object")return n[o]},e)}function _C(e,t,n){let o=Hh(e,`${t}.${n}`);if(o===void 0&&(o=Hh(e,`default.${n}`)),typeof o=="object")throw new Error(`[UiDesign] Value for '${t}.${n}' is a nested object or null, expected a primitive.`);return o}function SC(e){if(!(e in zh))throw new Error(`[UiDesign] The component '${e}' is not supported for UI design retrieval.`);return zh[e]}function wC(){const e=r.computed(()=>Bh());function t(n,o,a){const i=SC(o),l={};for(const s of i){const d=a?.[s]??_C(e.value,n,`${o}.${String(s)}`);d!==void 0&&(l[s]=d)}return l}return{ui:t}}async function jh(){return(await jn().get("/metadata/entities")).data}async function CC(e){return(await jn().get(`/metadata/entities/${e}`)).data}async function Uh(){return(await jn().get("/metadata/routes")).data}const xC=()=>kC(Bo()),kC=Ea("LinidConfigurationStore",{state:()=>({entities:[],apiEndpoints:[],loading:!1,error:null}),getters:{getEntityByName:e=>t=>e.entities.find(n=>n.name===t),getApiEndpointsByEntity:e=>t=>e.apiEndpoints.filter(n=>n.entity===t)},actions:{async fetchConfiguration(){this.loading=!0,this.error=null;try{const[e,t]=await Promise.all([jh(),Uh()]);this.entities=e,this.apiEndpoints=t}catch(e){this.error=e instanceof Error?e.message:"Failed to fetch configuration",console.error("[Linid CoreLib] Failed to fetch configuration:",e)}finally{this.loading=!1}}}}),EC=()=>TC(Bo()),TC=Ea("LinidUiStore",{state:()=>({mainNavigationItems:[]}),actions:{addMainNavigationMenuItems(...e){this.mainNavigationItems.push(...e)}}}),OC=()=>qC(Bo()),qC=Ea("LinidUserStore",{state:()=>({user:{username:"",email:"",fullName:"",roles:[]},isAuthenticated:!1}),actions:{setUserFromClaims(e){const t=e.roles;this.user={username:e.sub,email:typeof e.email=="string"?e.email:"",fullName:typeof e.name=="string"?e.name:"",roles:Array.isArray(t)?t.filter(n=>typeof n=="string"):[]},this.isAuthenticated=!0}}});var Qh=(e=>(e.SETUP="setup",e.CONFIGURE="configure",e.INITIALIZE="initialize",e.READY="ready",e.POST_INIT="postInit",e))(Qh||{});class MC{id;name;version;description;constructor(t,n,o,a){this.id=t,this.name=n,this.version=o,this.description=a}async setup(){return{success:!0}}async configure(t){return{success:!0}}async initialize(t){return{success:!0}}async ready(t){return{success:!0}}async postInit(t){return{success:!0}}}et.BasicRemoteModule=MC,et.DEFAULT_DATE_FORMAT=Or,et.LinidZoneRenderer=xg,et.ModuleLifecyclePhase=Qh,et.QDATE_DEFAULT_MASK=ur,et.deepEqual=Fl,et.deepEqualUnordered=Ua,et.deleteEntityById=Sb,et.fromDot=Cb,et.getApiEndpointsConfiguration=Uh,et.getDayjsInstance=ec,et.getEntities=yb,et.getEntitiesConfiguration=jh,et.getEntityById=_b,et.getEntityConfiguration=CC,et.getHttpClient=jn,et.getI18nInstance=rf,et.getModuleFederation=Qu,et.getModuleHostConfiguration=Ar,et.getNunjucksEnv=lf,et.getPiniaStore=Bo,et.getUiDesign=Bh,et.isObject=Rr,et.loadAsyncComponent=Wu,et.merge=Vc,et.registerModuleHostConfiguration=gb,et.renameKeys=ed,et.saveEntity=pb,et.setDayjsInstance=kg,et.setHttpClient=hb,et.setI18nInstance=qy,et.setModuleFederation=bg,et.setNunjucksEnv=Ry,et.setPiniaStore=wg,et.setUiDesign=yC,et.uiEventSubject=kl,et.updateEntity=bb,et.useDayjs=tc,et.useDialog=Hg,et.useFieldValidation=af,et.useLinidConfigurationStore=xC,et.useLinidUiStore=EC,et.useLinidUserStore=OC,et.useLinidZoneStore=Vu,et.useNotify=Ay,et.useNunjucks=Ly,et.usePagination=Iy,et.useQuasarDate=gC,et.useQuasarFieldValidation=Fh,et.useQuasarRules=pC,et.useScopedI18n=of,et.useTree=bC,et.useUiDesign=wC,Object.defineProperty(et,Symbol.toStringTag,{value:"Module"})}));
|