New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-composable

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-composable - npm Package Compare versions

Comparing version 1.0.0-beta.11 to 1.0.0-beta.12

2

dist/v2/vue-composable.global.prod.js

@@ -1,1 +0,1 @@

var vueComposable=function(e,t,n){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var r=o(n);function a(e){return t.isRef(e)?e.value:e}function s(e){return t.isRef(e)?e:t.ref(e)}const l=Array.isArray,u=e=>"function"==typeof e,i=e=>"string"==typeof e,c=e=>"boolean"==typeof e,v=e=>f(e)&&u(e.getTime),d=e=>"number"==typeof e,f=e=>null!==e&&"object"==typeof e,m=e=>f(e)&&!!e.tagName;function p(e){return f(e)&&u(e.then)&&u(e.catch)}const g=()=>{},h=()=>!1,y={passive:!0};function w(e){return new Promise(t=>{setTimeout(t,e)})}const b=2**32-2;function E(e,t,n){return e<t?t:e>n?n:e}const S="undefined"!=typeof window;function I(e,...t){for(let n=0;n<t.length;n++){const o=t[n];if(void 0===o||!f(o))continue;const r=Object.keys(o);for(let t=0;t<r.length;t++){const n=r[t],s=a(o[n]),l=typeof s,u=typeof e[n];void 0!==e[n]&&l!==u||(e[n]=f(s)?I(e[n]||{},s):o[n])}}return e}const M=t.set;function C(e){return t.computed(()=>a(e))}function k(e,n,o,r){let a=g;if(e){const l=s(e),u=e=>e.removeEventListener(n,o),i=e=>e.addEventListener(n,o,r),c=t.watch(l,(e,t,n)=>{e&&(i(e),n(()=>u(e)))},{immediate:!0});a=()=>{u(l.value),c()}}return a}function $(e,t,n){return L(e,t,n)}function L(e,t=50,n={isImmediate:!1}){let o;return function(...r){const a=this,s=n.isImmediate&&void 0===o;void 0!==o&&clearTimeout(o),o=setTimeout((function(){o=void 0,n.isImmediate||e.apply(a,r)}),t),s&&e.apply(a,r)}}function R(e,n,o){const r=t.ref(0),a=t.ref(0),s=t.ref(0),l=t.ref(0);let u=e=>{r.value=e.x,a.value=e.y,s.value=e.pageX,l.value=e.pageY};const[i,c]=d(n)?[void 0,n]:[n,o];c&&(u=$(u,o));const v=k(e,"mousemove",u,i);return{mouseX:r,mouseY:a,pageX:s,pageY:l,remove:v}}const T=["mousedown","touchstart"];function x(e,n){if(!e)throw new Error(`[usePromise] argument can't be '${e}'`);if("function"!=typeof e)throw new Error("[usePromise] expects function, but received "+typeof e);const[o,r]=c(n)?[n,!1]:f(n)?[n.lazy,n.throwException]:[!1,!1],a=t.ref(!1),s=t.ref(null),l=t.ref(null),u=t.ref(),i=async(...t)=>{a.value=!0,s.value=null;const n=t&&e.length!==t.length&&t.length>0&&c(t[t.length-1])?t[t.length-1]:r,o=u.value=e(...t);try{const e=await o;return u.value===o&&(l.value=e),e}catch(e){return u.value===o&&(s.value=e,l.value=null),n?o:void 0}finally{u.value===o&&(a.value=!1)}};return o||i(),{exec:i,result:l,promise:u,loading:a,error:s}}function O(e,n){const o=t.ref(!1);let r=void 0;const a=x((...t)=>{return n=e(...t),new Promise((e,t)=>{r=e=>{o.value=!0,t(e)},n.then(e).catch(t)});var n},n);return!t.getCurrentInstance()||f(n)&&!1===n.unmountCancel||t.onUnmounted(()=>r&&r()),{...a,cancel:e=>{r&&r(e)},cancelled:o}}const D=Symbol(""),P=Symbol(""),A=async(e,t,n,o)=>{const r=t[D].value;let a=-1;const s=e.maxRetries||9001,l=e.retryDelay||j;t.retryErrors.value=[],t.isRetrying.value=!1,t.nextRetry.value=void 0;let u=void 0;do{let e=!1,i=null;try{if(++a,i=o?n(...o):n(),p(i)&&(i=await i),t[P].value)return null;e=!0}catch(e){i=null,t.retryErrors.value.push(e)}if(r!==t[D].value)return i;if(e)return t.isRetrying.value=!1,t.nextRetry.value=void 0,i;if(a>=s)return t.isRetrying.value=!1,t.nextRetry.value=void 0,Promise.reject(new Error("[useRetry] max retries reached "+s));t.isRetrying.value=!0;const c=Date.now(),f=l(a),m=p(f)?await f:f;if(!p(f)||m){if(d(m))u=m;else{if(!v(m))throw new Error(`[useRetry] invalid value received from options.retryDelay '${typeof m}'`);u=m.getTime()}u<c?t.nextRetry.value=c+u:(t.nextRetry.value=u,u-=c),u>0&&await w(u)}if(t[P].value)return null;if(r!==t[D].value)return i}while(a<9e3);return null};const j=()=>0;const F=Symbol("");function U(e,t){u(e.provide)?e.provide(F,t):console.warn("[vue-composable] devtools is not supported for vue 2")}function V(){const e={},n=t.inject(F,e);if(n!==e)return n;console.warn("[vue-composable] devtools not found, please run app.use(VueComposableDevtools)")}let N=void 0;N=e=>{const t=[],n=[];let o;function r(e,t){o?o[e](...t):n.push({type:e,args:t})}e.then(e=>{o=e,async function(e,t,n){setTimeout(async()=>{const o=["addTimelineLayer","addInspector","sendInspectorTree","sendInspectorState","addTimelineEvent"];for(const t of o){for(const o of n.filter(e=>e.type===t))e[t](...o.args);await w(20)}new Set(n.filter(e=>"notifyComponentUpdate"===e.type).map(e=>e.args[0])).forEach(t=>e.notifyComponentUpdate(t)),t.forEach(t=>e.on[t.type](...t.args)),t.length=0,n.length=0},100)}(o,t,n)});return{notifyComponentUpdate(e){r("notifyComponentUpdate",arguments)},addTimelineLayer(e){r("addTimelineLayer",arguments)},addTimelineEvent(e){r("addTimelineEvent",arguments)},addInspector(e){r("addInspector",arguments)},sendInspectorTree(e){r("sendInspectorTree",arguments)},sendInspectorState(e){r("sendInspectorState",arguments)},on:{transformCall(e){o?o.on.transformCall(e):t.push({type:"transformCall",args:arguments})},getAppRecordName(e){o?o.on.getAppRecordName(e):t.push({type:"getAppRecordName",args:arguments})},getAppRootInstance(e){o?o.on.getAppRootInstance(e):t.push({type:"getAppRootInstance",args:arguments})},registerApplication(e){o?o.on.registerApplication(e):t.push({type:"registerApplication",args:arguments})},walkComponentTree(e){o?o.on.walkComponentTree(e):t.push({type:"walkComponentTree",args:arguments})},walkComponentParents(e){o?o.on.walkComponentParents(e):t.push({type:"walkComponentParents",args:arguments})},inspectComponent(e){o?o.on.inspectComponent(e):t.push({type:"inspectComponent",args:arguments})},getComponentBounds(e){o?o.on.getComponentBounds(e):t.push({type:"getComponentBounds",args:arguments})},getComponentName(e){o?o.on.getComponentName(e):t.push({type:"getComponentName",args:arguments})},getElementComponent(e){o?o.on.getElementComponent(e):t.push({type:"getElementComponent",args:arguments})},getInspectorTree(e){o?o.on.getInspectorTree(e):t.push({type:"getInspectorTree",args:arguments})},getInspectorState(e){o?o.on.getInspectorState(e):t.push({type:"getInspectorState",args:arguments})}}}};var W=N;const _=(e,t="vue-composable",n="Vue-composable devtools plugin")=>{const o=new Promise(e=>{});U(e,W(o))},B={install:(e,t={id:"vue-composable",label:"Vue-composable devtools plugin"})=>_(e,t.id,t.label)};function z(e){if(!e)return{};const t=!!e.__v_isRef,n=t&&!!e.effect,o=!!e.__v_reactive,r=n?"Computed":t?"Ref":o?"Reactive":null;return{...r?{objectType:r}:{},...e.effect?{raw:e.effect.raw.toString()}:{}}}function H(e){return e&&(c(e.isJson)||c(e.parseImmediate)||c(e.unmountCancel))}let K=void 0;let q=void 0,X=void 0;let Y=void 0,J=void 0;function Q(e,n){const o=S&&"BroadcastChannel"in self,r=t.ref(null),a=t.ref(null),s=t.ref(null),l=t.ref(!1),u=t.ref(!1);let i=g,c=g,v=g;if(o){const o=new BroadcastChannel(e);o.addEventListener("messageerror",e=>{s.value=e,l.value=!0},y),o.addEventListener("message",e=>{a.value=e,r.value=e.data},y),i=e=>o.postMessage(e),c=()=>{o.close(),u.value=!0},v=(e,n)=>{o.addEventListener("message",e,n),t.onUnmounted(()=>o.removeEventListener("message",e))},t.onUnmounted(()=>{n&&n(),c()})}return{supported:o,data:r,messageEvent:a,errorEvent:s,errored:l,isClosed:u,send:i,close:c,addListener:v}}function G(e,t){const n=getComputedStyle(e).getPropertyValue(t);return n?n.trim():null}function Z(e,t,n){e.style.setProperty(t,n)}const ee={attributes:!0,childList:!0,subtree:!0},te=e=>e.length<=2||"-"!==e[0]||"-"!==e[1]?"--"+e:e;const ne=e=>function(t){const n=t.data||[];return new Promise(t=>{try{Promise.resolve(e.apply(e,n)).then(e=>t(postMessage([!0,e]))).catch(e=>t(postMessage([!1,e])))}catch(e){t(postMessage([!1,e]))}})};function oe(e){const n=!!S&&"matchMedia"in window;let o=void 0,r=void 0,a=g;if(n){o=t.ref(matchMedia(e)),r=t.ref(o.value.matches);const n=e=>{r.value=e.matches};o.value.addEventListener("change",n,y);const a=()=>o.value.removeEventListener("change",n);t.onUnmounted(a)}else o=t.ref({}),r=t.ref(!1);return{supported:n,mediaQueryList:o,matches:r,remove:a}}function re(e,n){const{addListener:o,send:r,close:a,supported:s}=Q(e,()=>h()),l=Date.now(),u=t.ref(!1),i=t.ref(0),c=t.computed(()=>1!==i.value||u.value),v=t.ref([]),d=t.ref(n);let m=!1,p=void 0;r({type:0});const g=()=>r({type:5,id:l}),h=()=>{0!==v.value.length&&(u.value&&r({type:3,mind:1,id:Math.min(...v.value)}),r({type:4,id:l}))};return o(e=>{switch(e.data.type){case 0:r({type:2,value:d.value,mind:i.value});break;case 4:{const t=v.value.indexOf(e.data.id);t>=0&&v.value.splice(t,1),p===e.data.id&&v.value.length>0&&r({type:3,mind:1,id:Math.min(l,...v.value)});break}case 2:m=!0,d.value=e.data.value,i.value=e.data.mind;break;case 3:i.value=e.data.mind,p=1===e.data.mind&&e.data.id||void 0,u.value=p===l,u.value&&(v.value=[],g());break;case 5:v.value=[e.data.id],r({type:6,id:l});break;case 6:v.value.push(e.data.id)}},y),g(),t.watch(d,(e,t)=>{if(m)m=!1;else{if(1===i.value&&!1===u.value)return m=!0,void(d.value=t);r({type:2,mind:i.value,value:f(e)?{...e}:e}),m=!1}},{deep:!0,immediate:!1}),S&&window.addEventListener("unload",h,y),t.onUnmounted(()=>{h(),a()}),{supported:s,id:l,data:d,master:u,mind:i,editable:c,targets:v,ping:g,setMind:e=>{switch(e){case 1:u.value=!0;break;case 0:u.value=!1}i.value=e,r({type:3,id:l,mind:i.value})},addListener:o}}const ae="no-scroll";function se(e,n){const o=Symbol(),r=t.inject(e,o);return r===o?n():r}function le(e,n){const o=s(n),r=s(e);return f(o.value)||t.isRef(n)?[void 0!==r.value?r:void 0,o]:!f(r.value)||l(r.value)||i(r.value)?[r.value?r:void 0,void 0]:[void 0,r]}function ue(e,n){const[o,r]=le(e,n),s=t.computed(()=>new Intl.NumberFormat(a(o),a(r))),l=(e,t,n)=>(t||n?new Intl.NumberFormat(a(n)||a(o),{...a(r),...a(t)}):s.value).format(a(e));return{format:(e,n,o)=>t.computed(()=>l(e,n,o)),formatString:l,formatter:s}}function ie(e){if(e)return d(e)?e:ce(e)}const ce=e=>{const t=e.match(/^(\d+)px$/);if(t)return+t[1]};function ve(e){const n={},o=new Map,r=t.ref();let a=[];const s=[];for(const r in e){const l=e[r],u=ie(l);if(void 0!==u){const e=t.ref(!1);n[r]=e,o.set(u,{name:r,valid:e}),a.push(u)}else{const{matches:e,remove:t}=oe(l);n[r]=e,s.push(t)}}a=a.sort((e,t)=>t-e);const l=S?()=>{const e=window.innerWidth;let t=void 0;for(let n=0;n<a.length;n++){const r=a[n],s=o.get(r);s.valid.value=e>=r,e>=r&&void 0===t&&(t=s.name)}r.value=t}:g,u=$(l,10),i=S?()=>window.removeEventListener("resize",u):g;return S&&(t.onMounted(()=>{l(),window.addEventListener("resize",u,y)}),t.onUnmounted(()=>{i(),s.forEach(e=>e())})),{...n,remove:i,current:r}}const de=Symbol(""),fe={sm:640,md:768,lg:1024,xl:1280};function me(e){return f(e)&&f(e.theme)&&f(e.theme.screens)}function pe(e){return!!f(e)&&(i(e.min)||i(e.max)||d(e.min)||d(e.max))}function ge(e){return d(e)?e+"px":e}function he(e){const t=[];if(l(e)){const n=e.map(he);for(let e=0;e<n.length;e++){const o=n[e];t.push(...o)}}else f(n=e)&&i(n.raw)?t.push(e.raw):pe(e)?t.push(function(e){return pe(e)?`(${[e.max&&"max-width: "+ge(e.max),e.min&&"min-width: "+ge(e.min)].filter(Boolean).join(" and ")})`:""}(e)):(i(e)||d(e))&&t.push(`(min-width: ${ge(e)})`);var n;return t}function ye(e){const n=me(e)?e.theme.screens:e;if(me(e))for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];f(t)?n[e]=he(n[e]).join(" or "):i(t)&&(t.endsWith("px")||(n[e]=he(n[e]).join(" or ")))}const o=ve(n);return t.provide(de,o),o}function we(e,t){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&(t&&0!==t.length||!1)}function be(e){try{if(!e)return!1;const t=":$";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return we(t,e)}}function Ee(e,t){try{return e.parse(t)}catch{return t}}let Se=void 0;function Ie(e,n=JSON,o=10){const r=S?window[e]:void 0,a=be(r);Se||(Se=new Map,S&&window.addEventListener("storage",e=>{if(e.newValue===e.oldValue)return;let t=Se.get("localStorage");t=e.storageArea===window.localStorage?Se.get("localStorage"):Se.get("sessionStorage"),t&&Object.keys(t.$syncKeys).length>0&&(null===e.key?t.clear():t.$syncKeys[e.key]&&(null===e.newValue?t.removeItem(e.key):t.updateItem(e.key,e.newValue)))}));let l,u=Se.get(e);return a&&r?u?l=u.$quotaError:(l=t.ref(!1),u={$refMap:new Map,$watchHandlers:new Map,$syncKeys:{},$quotaError:l,key:r.key,length:r.length,setSync(e,t){t?this.$syncKeys[e]=!0:delete this.$syncKeys[e]},clear(){this.$refMap.forEach((e,t)=>this.removeItem(t))},removeItem(e){const t=this.$refMap.get(e);t&&(t.value=void 0);const n=this.$watchHandlers.get(e);n&&n(),delete this.$syncKeys[e],this.$refMap.delete(e),r.removeItem(e)},getItem(e){const t=r.getItem(e);return t?this.setItem(e,Ee(n,t)):null},setItem(e,a){const u=s(a);this.$refMap.set(e,u);const c=(e,t)=>{try{const o=r.getItem(e),a=i(t)?t:n.stringify(t);r.setItem(e,a),o!==a&&S&&this.$syncKeys[e]&&window.dispatchEvent(new StorageEvent(e,{newValue:a,oldValue:o,storageArea:r}))}catch(e){l.value=we(e,r)}};c(e,a);const v=t.watch(u,L(t=>{c(e,t)},o),{immediate:!1,deep:!0});return this.$watchHandlers.set(e,v),u},updateItem(e,t){let o=this.$refMap.get(e);o&&(o.value=Ee(n,t))}},Se.set(e,u)):(l=t.ref(!1),u={}),{supported:a,quotaError:l,store:u,remove:()=>Se.delete(e)}}function Me(e,n,o){const{supported:r,store:a}=Ie("localStorage");let s=g,l=g,u=g,i=void 0;return r&&a?(u=t=>a.setSync(e,t),s=()=>a.removeItem(e),l=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n)),!1!==o&&u(!0)):i=t.ref(n),{supported:r,storage:i,clear:l,remove:s,setSync:u}}function Ce(e,n,o){const{supported:r,store:a}=Ie("sessionStorage");let s=g,l=g,u=h,i=void 0;return r&&a?(s=()=>a.removeItem(e),l=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n))):i=t.ref(n),{supported:r,storage:i,clear:l,remove:s,setSync:u}}let ke=void 0;function $e(e){const n=s(e.currentPage),o=s(e.pageSize),r=t.ref(0),a=s(e.total),l=t.computed({get:()=>r.value,set(e){d(e)&&(r.value=Math.min(e,a.value))}}),u=t.computed({get:()=>n.value,set(e){d(e)&&(n.value=E(e,1,c.value),l.value=(n.value-1)*i.value)}}),i=t.computed({get:()=>o.value,set(e){d(e)&&(o.value=e)}}),c=t.computed(()=>Math.ceil(a.value/i.value));u.value=n.value;return t.watch([a,i],e=>{u.value>c.value&&(u.value=c.value)},{immediate:!1}),{pageSize:i,total:a,currentPage:u,offset:l,lastPage:c,next:()=>++u.value,prev:()=>--u.value,first:()=>u.value=1,last:()=>u.value=c.value}}function Le(e){const n=1e3,o=e&&e.refreshMs||n,r=!e||!c(e.sync)||e.sync,a=e&&u(e.timeFn)&&e.timeFn||Date.now;let s=void 0,l=void 0;const i=t.ref(a()),v=()=>{clearInterval(s),clearTimeout(l)},d=S?()=>s=setInterval(()=>i.value=a(),o):g;if(r){const e=n-(i.value-Math.floor(i.value/n)*n);l=setTimeout(d,e)}else d();return t.onUnmounted(v),{now:i,remove:v}}function Re(e,n){return t.computed(()=>{const o=a(e);if(!n)return o;const r=t.isRef(n)?t.reactive(n.value):t.reactive(n);return o.replace(/({?{[\w\s]*}?})/g,e=>{const t=e.replace("{","").replace("}","").trim();if(e[0]===e[1]&&"{"===e[0])return""+t;const n=l(r)?r[+t]:r[t];return void 0===n?e:""+a(n)})})}function Te(e,n,o=".",r=g){return t.computed(()=>{const t=a(e),s=a(n);if(void 0===t)return r(s,t,s,t);if(!s)return t;const l=s.split(o);let u=t;for(let e=0;e<l.length;e++){let n=l[e];if("]"===n[n.length-1]){const t=/\[[`'"]?([^`'"\]]*)[`'"]?\]/g;let o=n,r=t.exec(o);if(r){let a=r[0].length,s=r.index-a,u=1;do{r.index,s=r.index,a=r[0].length,n=n.slice(0,-r[0].length),l.splice(e+u,0,r[1]),++u}while(r=t.exec(o));if(!n&&"["===o[0]&&o.length>2)continue}else n="",console.warn(`[usePath] invalid path provided "${o}"`)}if(!f(u))return r(l.slice(0,e+1).join(o),u,s,t);if(!n)return r(l.slice(0,e+1).join(o),u,s,t);if(u=u[n],!u)return r(l.slice(0,e+1).join(o),u,s,t)}return u})}function xe(e){return void 0!==e.$value}const Oe=(e,n,o)=>{const{$message:r,$validator:s,...l}=function(e){return f(e)}(n)?n:{$validator:n,$message:void 0},{$pending:u,$promise:i,$invalid:c,$error:v}=((e,n,o,r)=>{const s=t.ref(null),l=t.ref(!1),u=t.ref(),i=t.ref(!1);let c=void 0;const v=e=>{s.value=(async()=>{try{l.value=!0;const t=n(e,c);p(t)?i.value=!await t:i.value=!t,u.value=i.value?o.value:void 0}catch(e){throw i.value=!0,e}finally{l.value=!1}})().catch(e=>(u.value=a(e),i.value=!0,e))};return r.push(o=>{c=o,t.watch(()=>{try{n(e.value,c)}catch(e){}return e.value},v,{deep:!0,immediate:!0})}),{$promise:s,$pending:l,$invalid:i,$error:u}})(e,s,t.ref(r),o);return{$pending:u,$error:v,$promise:i,$invalid:c,$message:r,...l}},De=(e,n)=>{const o={},r=xe(e)?s(e.$value):void 0;for(const s of Object.keys(e))if("$"!==s[0])if(r){const t=Oe(r,e[s],n);o[s]={...t,$value:r}}else{const r=De(e[s],n);let l,u,i=void 0;if(xe(r)){const e=Object.keys(r).filter(e=>"$"!==e[0]).map(e=>r[e]);l=t.computed(()=>e.map(e=>e.$error).map(e=>a(e)).filter(Boolean)),u=t.computed(()=>e.some(e=>!!a(e.$invalid)))}else{const e=Object.keys(r).map(e=>r[e]);l=t.computed(()=>e.map(e=>a(e.$errors)).filter(Boolean).filter(e=>e.some(Boolean))),i=t.computed(()=>e.some(e=>e.$anyDirty||c(a(e.$dirty))&&a(e.$dirty))),u=t.computed(()=>e.some(e=>!!a(e.$anyInvalid)))}o[s]={...r,$errors:l,$anyInvalid:u},i&&(o[s].$anyDirty=i)}else{if("$value"===s){o[s]=r;const e=t.ref(!1),n=t.watch(r,()=>{e.value=!0,n()},{immediate:!1,deep:!0});o.$dirty=e;continue}o[s]=e[s]}return o};const Pe=Symbol("");function Ae(e){const n=t.ref(Object.keys(e.messages)),o=t.ref(e.messages),l=t.ref(e.locale),i=t.ref({});let v=t.ref();const d={},f=(e,n)=>{if(d[e])return d[e];const o=n.value[e];if(!o)return t.ref({});let r=u(o)?o():o;return p(r)?r.then(t=>d[e]=s(t)):u(o)?s(r):d[e]=t.computed(()=>n.value[e])},m=!!e.fallback&&(!c(e.notFoundFallback)||e.notFoundFallback);let g=!1;if(m){const t=f(e.fallback,o);p(t)?(t.then(e=>{v.value=e.value}),g=!0):v.value=t.value}else v.value={};const h=t.ref(0);t.watch(o,()=>h.value++,{deep:!0,immediate:!1}),t.watch([l,v,h],([t,n,r])=>{if(t===e.fallback&&m)i.value=n;else{const e=e=>i.value=I({},n,a(e)),r=f(t,o);p(r)?r.then(e):e(r)}},{immediate:!g});const y=(t,n)=>e.resolve?s(e.resolve(i.value,t,n)):Re(Te(i,t,".",(e,t,n,o)=>n),n);return{locale:l,locales:n,i18n:i,$t:y,$ts:(e,t)=>y(e,t).value,addLocale:(e,t)=>{n.value.indexOf(e)>=0||n.value.push(e),delete d[e],M(o.value,e,t)},removeLocale:t=>{const a=n.value.indexOf(t);if(a>=0){const o=[l.value,v.value&&e.fallback,...n.value].find(e=>e&&e!==t);o&&(t===e.fallback&&(v.value=void 0),t===l.value&&(l.value=o)),n.value.splice(a,1)}var s,u;s=o.value,u=t,r.delete(s,u),delete d[t]}}}function je(e){const n=Ae(e);return t.provide(Pe,n),n}const Fe=Symbol("");const Ue=Symbol(""),Ve={install(e){C(t.ref(!0))}};return e.COMMIT="e6608db",e.FALSE_OP=h,e.MAX_ARRAY_SIZE=b,e.NO_OP=g,e.PASSIVE_EV=y,e.SCROLL_LOCK_CLASS=ae,e.UseDevtoolsApp=_,e.VERSION="1.0.0-beta.11",e.VUE_VERSION="2",e.VueComposableDevtools=B,e.buildI18n=Ae,e.debounce=L,e.deepClone=I,e.exponentialDelay=e=>{const t=100*Math.pow(2,e);return t+.2*t*Math.random()},e.exposeWorker=function(e){this.onmessage=async t=>{const n=e(t.data);if(void 0===n)this.postMessage(n);else if(null===n)this.postMessage(n);else if(l(n))this.postMessage(n);else if(n[Symbol.asyncIterator])for await(const e of n)this.postMessage(e);else if(n[Symbol.iterator])for(const e of n)this.postMessage(e);else this.postMessage(await n)}},e.getCssVariableFor=G,e.getDevtools=V,e.hydrationPlugin=Ve,e.injectFactory=se,e.isArray=l,e.isBoolean=c,e.isClient=S,e.isDate=v,e.isElement=m,e.isFunction=u,e.isNumber=d,e.isObject=f,e.isPromise=p,e.isString=i,e.isSymbol=e=>"symbol"==typeof e,e.minMax=E,e.noDelay=j,e.promisedTimeout=w,e.provideSSRTitle=function(e,t){const n=s(void 0===t?"":t);return e.provide(Fe,n),n},e.refShared=function(e,n){const o=t.getCurrentInstance(),r=n||o.$vnode.tag;if(!r)return t.ref(e);const{data:a,supported:s}=re(r,e);return a},e.setBreakpointTailwindCSS=ye,e.setCssVariableFor=Z,e.setDevtools=U,e.setI18n=je,e.storageAvailable=be,e.unwrap=a,e.useArrayPagination=function(e,n){const o=s(e),r=$e({currentPage:1,pageSize:10,...n,total:t.computed(()=>o.value.length)}),a=t.computed(()=>{const e=o.value;return Array.isArray(e)?e.slice(r.offset.value,r.offset.value+r.pageSize.value):[]});return{...r,result:a}},e.useBreakpoint=ve,e.useBreakpointChrome=function(){return ve({mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560})},e.useBreakpointTailwindCSS=function(e){return se(de,()=>ye(e||fe))},e.useBroadcastChannel=Q,e.useCancellablePromise=O,e.useCssVariables=function(e,n,o){const r=S&&"MutationObserver"in self,[l,u]=t.isRef(n)||m(n)?[n,o||ee]:[r&&document.documentElement||{},n||ee],c=t.ref(!0),v={},d=[],f=Object.entries(e).map(e=>{const[t,n]=i(e[1])?[e[1]]:[e[1].name,e[1].value];return n&&(d.push(()=>Z(a(l),t,a(n))),v[e[0]]=s(n)),[e[0],te(t)]});for(let e=0;e<f.length;e++){const[n,o]=f[e];v[n]||(v[n]=t.ref(t.isRef(l)&&!l.value||!r?null:G(a(l),o))),r&&t.watch([v[n],s(l)],e=>{c&&e[1]&&e[0]!==G(e[1],o)&&Z(e[1],o,e[0])},{immediate:!t.isRef(l)})}if(!r)return{...v,stop:g,resume:g,supported:r,observing:c};const p=()=>{for(let e=0;e<f.length;e++){const[t,n]=f[e];v[t].value=G(a(l),n)}},h=new MutationObserver(p),y=()=>{h.disconnect(),c.value=!1},w=()=>{c.value||p(),h.observe(a(l),u),c.value=!0};return t.onUnmounted(y),t.isRef(l)?t.onMounted(()=>{d.forEach(e=>e()),t.watch(l,(e,t)=>{t&&y(),e&&w()})}):(S||l)&&(d.forEach(e=>e()),w()),{...v,supported:r,resume:w,stop:y,observing:c}},e.useCurrencyFormat=function(e,n,o){const r=a(e),s=!f(r),l=s?e:t.computed(()=>a(e).currency),[u,i]=le(n,s?o:e),c=t.computed(()=>{const e=a(i)||{},t=a(l)||e.currency;return{style:"currency",...e,currency:t}}),v=ue(u),d=(e,t,n,o,r)=>{const s={...c.value,...a(o)},l=a(t)||s.currency,u=a(n)||s.currencyDisplay;return v.formatString(e,{...s,currency:l,currencyDisplay:u},r)};return{format:(e,n,o,r,a)=>t.computed(()=>d(e,n,o,r,a)),formatString:d}},e.useDateNow=function(e){return Le({refreshMs:e&&e.refreshMs||1e3,sync:!e||!c(e.sync)||e.sync,timeFn:Date.now})},e.useDebounce=$,e.useDevtoolsComponentState=function(e,n){const o=t.getCurrentInstance(),r=V();r&&o&&r.on.inspectComponent((t,r)=>{if(t.componentInstance!==o)return;const[s,i]=f(n)?[n.type,n.multiple]:["setup",!1];if(u(e))return void e(t.instanceData,r);let c=l(e)?e:Object.keys(e).map(t=>({type:s,key:t,value:a(e[t]),...z(e[t])}));if(!i){const e=new Set(t.instanceData.state.map(e=>e.key));c=c.filter(t=>!e.has(t.key))}t.instanceData.state.push(...c)})},e.useDevtoolsInspector=function(e,n=[]){const o=V(),r=t.ref(n),a=t.computed(()=>{if(!r.value)return new Map;const e=t.toRaw(r.value),n=new Map;for(const t of e)n.set(t.id,t);return n});if(o){const n=e.id;o.addInspector(e),o.on.getInspectorTree(o=>{if(o.inspectorId!=n)return;if(!r.value)return;const a=o.filter;let s=t.toRaw(r.value);o.filter&&(s=e.nodeFilter?e.nodeFilter(o.filter,s):s.filter(e=>e.id.indexOf(a)>=0||e.label.indexOf(a)>=0)),o.rootNodes=s}),o.on.getInspectorState(o=>{if(o.inspectorId!=n)return;const r=a.value.get(o.nodeId);if(r){const n=t.reactive(r.state);o.state=e.stateFilter?e.stateFilter("",n):n}}),t.watch(r,()=>{o.sendInspectorTree(n),o.sendInspectorState(n)},{immediate:!0,deep:!0})}return{nodes:r}},e.useDevtoolsTimelineLayer=function(e,t,n){const o=V();let r=g,a=g;return o&&(o.addTimelineLayer({id:e,label:t,color:n}),r=(t,n)=>o.addTimelineEvent({layerId:e,event:t,all:n}),a=e=>r({...e,time:Date.now()})),{id:e,addEvent:r,pushEvent:a}},e.useEvent=k,e.useFetch=function(e,n){const o=t.ref(null),r=t.ref(""),a=t.ref(),s=t.ref(null),[l,u,c]=H(e)?[!1!==e.isJson,!1!==e.parseImmediate,!1!==e.unmountCancel]:H(n)?[!1!==n.isJson,!1!==n.parseImmediate,!1!==n.unmountCancel]:[!0,!0,!0],v=e?i(e)?n:H(e)?e:i(e.url)?n:e:void 0,d=t.ref(!1),f=t.ref();let m=void 0;const p=e=>{m&&(m.abort(),d.value=!0,f.value=e)},g=x(async(e,t)=>{m=new AbortController;const n=await fetch(e,{signal:m.signal,...v,...t});if(n){const e=[l?n.clone().json().then(e=>o.value=e).catch(e=>{o.value=null,s.value=e}):Promise.resolve(),n.clone().blob().then(e=>{a.value=e}),n.clone().text().then(e=>{r.value=e})];u&&await Promise.all(e)}return n},!0),h=t.computed(()=>g.result.value&&g.result.value.status||null),y=t.computed(()=>g.result.value&&g.result.value.statusText||null);return e&&(i(e)||i(e.url))&&g.exec(e,void 0,!1),c&&t.getCurrentInstance()&&t.onUnmounted(()=>{m&&p("unmounted")}),{...g,cancel:p,isCancelled:d,cancelledMessage:f,text:r,blob:a,json:o,jsonError:s,status:h,statusText:y}},e.useFormat=Re,e.useGeolocation=function(e){const n=S&&!!navigator.geolocation,o=t.ref(e?!1===e.immediate:void 0),r=t.ref(null),a=t.ref(null),s=t.ref(null),l=t.ref(e&&e.enableHighAccuracy||null);let u=g;if(n){const n=e=>{a.value=e.timestamp,s.value=e.coords,r.value=null},i=e=>{a.value=Date.now(),s.value=null,r.value=e},v=()=>!0!==o.value&&f&&navigator.geolocation.clearWatch(f);let d=()=>navigator.geolocation.getCurrentPosition(n,i,e);u=o.value?()=>{o.value?o.value=!1:d()}:d;let f=0;t.onMounted(()=>t.watch([l,o],t=>{v();const o=c(t[0])?t[0]:e?e.enableHighAccuracy:void 0;f=navigator.geolocation.watchPosition(n,i,e?{...e,enableHighAccuracy:o}:{enableHighAccuracy:o})},{immediate:!o.value})),t.onUnmounted(v)}return{supported:n,refresh:u,error:r,timestamp:a,coords:s,highAccuracy:l}},e.useHydration=function(){return t.inject(Ue,t.computed(()=>!1))},e.useI18n=function(e){return e?je(e):t.inject(Pe)},e.useIntersectionObserver=function(e,n){const o=S&&"IntersectionObserver"in window,r=e?s(e):void 0,l=!r||!m(r.value)&&r.value?void 0:r,u=t.computed(()=>n?a(n):l?void 0:a(e)),i=t.ref([]),c=t.computed(()=>i.value.length>0&&i.value.every(e=>e.isIntersecting)),v=e=>{i.value=e};let d=t.ref();o&&t.watch(u,e=>{d.value&&d.value.disconnect();const t=e&&e&&{root:a(e.root),rootMargin:a(e.rootMargin),threshold:a(e.threshold)}||void 0;d.value=new IntersectionObserver(v,t);i.value.map(e=>e.target).forEach(d.value.observe)},{deep:!0,immediate:!0});const f=o?e=>{const t=a(e);d.value.observe(t)}:g,p=o?e=>{const t=a(e);d.value.unobserve(t)}:g,h=()=>d.value.disconnect();return l&&(t.onMounted(()=>{l.value&&f(l)}),t.onUnmounted(()=>{h()})),{supported:o,elements:i,observe:f,unobserve:p,disconnect:h,isIntersecting:c}},e.useInterval=function(e,n,...o){let r=void 0;const a=(t,...a)=>{if(s(),!t&&!n)return;return r=setInterval(e,t||n,...a&&a.length?a:o)},s=()=>{r&&(clearInterval(r),r=void 0)};return d(n)&&a(),t.onUnmounted(s),{remove:s,start:a}},e.useIntlDateTimeFormat=function(e,n){const[o,r]=le(e,n),s=t.computed(()=>new Intl.DateTimeFormat(a(o),a(r))),l=(e,t,n)=>{const l=t||n?new Intl.DateTimeFormat(a(n)||a(o),{...a(r),...a(t)}):s.value,u=a(e);return l.format(i(u)?new Date(u):u)};return{format:(e,n,o)=>t.computed(()=>l(e,n,o)),formatString:l,formatter:s}},e.useIntlNumberFormat=ue,e.useLanguage=function(){if(Y||(Y=S?t.ref(navigator.language):t.ref("")),!J)if(S){J=t.ref(navigator.languages);const e=()=>{Y.value=navigator.language,J.value=navigator.languages};window.addEventListener("languagechange",e,y)}else J=t.ref([]);return{language:Y,languages:J}},e.useLocalStorage=Me,e.useLockScroll=function(e,n){const o=i(e)?t.ref([]):l(t.unref(e))?s(e):s([e]),r=i(n)?{lockedClass:n,auto:!0}:n||{auto:!0};r.lockedClass||(r.lockedClass=ae);const u=t.ref(!1),c=t.computed(()=>o.value.map(e=>t.ref(e))),v=t.watch([u,c],([e,t],[n,o])=>{for(const s of t){const t=a(s);if(r.lockedClass){if(!t)return;t.classList.toggle(r.lockedClass,e)}r.onChange&&(n===e&&o.find(e=>a(e)===t)||r.onChange(t,e))}},{flush:"sync",deep:!1}),d=()=>u.value=!0,f=()=>u.value=!1;return i(e)&&t.onMounted(()=>o.value=Array.from(document.querySelectorAll(e))),!1!==r.auto&&(t.onMounted(d),t.onActivated(d),t.onDeactivated(f),t.onBeforeUnmount(f)),{locked:u,lock:d,unlock:f,remove:v}},e.useMatchMedia=oe,e.useMouseDistanceFromElement=function(e,n,o){let r=void 0,s=g;if(S){const{pageX:l,pageY:u,remove:i}=R(window,n,o);r=t.computed(()=>{const t=a(e);return t?Math.floor(Math.sqrt(Math.pow(l.value-(t.offsetLeft+t.clientWidth/2),2)+Math.pow(u.value-(t.offsetTop+t.clientHeight/2),2))):0}),s=i}else r=t.computed(()=>-1);return{distance:r,remove:s}},e.useNetworkInformation=function(){const e=!!S&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection),n=!!e,o=t.ref(0),r=t.ref(0),a=t.ref("none"),s=t.ref(0),l=t.ref(!1),u=t.ref("none");let i=g,c=g;return e&&(i=()=>{o.value=e.downlink,r.value=e.downlinkMax,a.value=e.effectiveType,s.value=e.rtt,l.value=e.saveData,u.value=e.type},c=k(e,"change",i,y),i()),{supported:n,downlink:o,downlinkMax:r,effectiveType:a,rtt:s,saveData:l,type:u,remove:c}},e.useNow=Le,e.useOnMouseMove=R,e.useOnOutsidePress=function(e,t){if(!S)return()=>{};const n=s(e),o=T.find(e=>"on"+e in document.documentElement);return k(document,o,e=>n.value&&!n.value.contains(e.target)&&t(e),{passive:!0})},e.useOnResize=function(e,n,o){const r=s(e),a=t.ref(r.value&&r.value.clientHeight),l=t.ref(r.value&&r.value.clientWidth);let u=()=>{a.value=r.value.clientHeight,l.value=r.value.clientWidth};const[i,c]=d(n)?[void 0,n]:[n,o];c&&(u=$(u,o));const v=S?k(window,"resize",u,i||y):g;return t.isRef(e)&&!e.value&&t.onMounted(u),{height:a,width:l,remove:v}},e.useOnScroll=function(e,n,o){const r=e=>!(d(e)||c(e)||!m(e)&&!t.isRef(e)||!e),a=r(e)?s(e):t.ref(S&&window||void 0),l=r(e)?a:t.ref(S&&window.document.scrollingElement||void 0),u=t.ref(l.value&&l.value.scrollTop||0),i=t.ref(l.value&&l.value.scrollLeft||0);let v=()=>{u.value=l.value.scrollTop,i.value=l.value.scrollLeft};const f=(...e)=>l.value&&l.value.scrollTo&&l.value.scrollTo.apply(l.value,e),p=e=>f({top:e}),g=e=>f({left:e}),[h,w]=d(e)||!e?[y,e]:d(n)?[y,n]:[n,o];w&&(v=$(v,o));const b=k(a,"scroll",v,h),E=t.watch(u,p,{immediate:!1}),I=t.watch(i,g,{immediate:!1});return{scrollTop:u,scrollLeft:i,scrollTo:f,remove:()=>{b(),I(),E()},scrollTopTo:p,scrollLeftTo:g}},e.useOnline=function(){const e=S&&"onLine"in navigator;return e||(K=t.ref(!1)),K||(K=t.ref(navigator.onLine),window.addEventListener("offline",()=>K.value=!1,y),window.addEventListener("online",()=>K.value=!0,y)),{supported:e,online:K}},e.usePageVisibility=function(){return X||(X=t.ref(S&&document.hidden)),q||(S?(q=t.ref(document.visibilityState),document.addEventListener("visibilitychange",()=>{q.value=document.visibilityState,X.value=document.hidden},y)):q=t.ref("visible")),{visibility:q,hidden:X}},e.usePagination=$e,e.usePath=Te,e.usePerformanceNow=function(e){return Le({refreshMs:e&&e.refreshMs||1e3,sync:!e||!c(e.sync)||e.sync,timeFn:()=>performance.now()})},e.usePromise=x,e.usePromiseLazy=function(e,t=!1){return x(e,{lazy:!0,throwException:t})},e.useRetry=function(e,n){const o=!e||u(e)?{}:e,r=u(e)?e:n;if(!u(e)&&!f(e))throw new Error("[useRetry] options needs to be 'object'");if(r&&!u(r))throw new Error("[useRetry] factory needs to be 'function'");const a=t.ref(!1),s=t.ref(),l=t.ref([]),i={value:!1},c={isRetrying:a,retryCount:t.computed(()=>l.value.length),nextRetry:s,retryErrors:l,[D]:{value:0},[P]:i},v=r?(...e)=>(++c[D].value,A(o,c,r,e)):e=>(++c[D].value,A(o,c,e,void 0));return{...c,cancel:()=>{c.isRetrying.value=!1,c.retryErrors.value.push(new Error("[useRetry] cancelled")),c.nextRetry.value=void 0,i.value=!0},exec:v}},e.useSSRTitle=function(e){const n=Symbol(),o=t.inject(Fe,n);return o===n||void 0===o?t.ref(i(e)?e:""):(i(e)&&(o.value=e),o)},e.useSessionStorage=Ce,e.useShare=function(e){const n=S&&"share"in navigator;let o=()=>Promise.resolve(!1),r=h,a=t.ref(!1),s=t.ref(!1);return n&&(o=e=>(a.value=!1,s.value=!1,navigator.share(e).then(e=>(a.value=!0,e)).catch(e=>(a.value=!1,s.value=!0,!1))),r=e=>navigator.canShare(e),e&&r(e)&&o(e)),{supported:n,share:o,canShare:r,shared:a,cancelled:s}},e.useSharedRef=re,e.useStorage=function(e,t,n){return void 0===ke&&(ke=Ie("localStorage").supported),ke?Me(e,t,n):Ce(e,t)},e.useTimeline=function(e,n){const o=t.ref([]),r=n&&n.clone?n.clone:e=>e,a=n&&n.maxLength||b;return t.watch(e,(e,t)=>{o.value.unshift({item:r(t),date:new Date}),o.value.length>a&&o.value.pop()},{immediate:!1,flush:"sync",...n}),C(o)},e.useTitle=function(e=null){const n=t.ref(i(e)?e:document.title),o=new MutationObserver(e=>{n.value=e[0].target.textContent});t.watch(n,(e,t)=>{i(e)&&e!==t&&(document.title=e)},{immediate:!0,flush:"sync"});const r=document.querySelector("title");return o.observe(r,{childList:!0}),t.onUnmounted(()=>o.disconnect()),n},e.useUndo=function(e,n){const o=s(e),r=t.ref([]),a=t.ref(0),l=n&&n.maxLength||b,u=n&&n.clone||(e=>e),i=t.computed(()=>{const e=0===a.value?1:a.value;return r.value.slice(e)}),c=t.computed(()=>{const e=0===a.value?1:0;return r.value.slice(e,a.value)});t.watch(o,e=>{if(r.value[a.value]===e)return;if(a.value>0){const e=a.value;r.value.splice(0,e),a.value=0}r.value.length>l&&r.value.pop();const t=u(e);r.value.unshift(t)},{...n,immediate:!0,flush:"sync"});const v=e=>{const t=Math.sign(e)<=0?Math.max(e,-c.value.length):Math.min(e,i.value.length);a.value+=t,o.value=r.value[a.value]};return{value:o,undo:(e=1)=>v(e),redo:(e=1)=>v(-e),jump:v,prev:i,next:c}},e.useVModel=function(e,t){console.warn("[useVModel] is not supported on @vue/composition-api.")},e.useValidation=function(e){const n=[],o=De({input:e},n),r=t.reactive(o.input);return n.forEach(e=>e(r)),r},e.useValueSync=function(e,n){const o=s(e),r=2===arguments.length?t.isRef(arguments[1])&&l(arguments[1].value)?arguments[1]:t.ref([s(arguments[1])]):t.ref(Array.from(arguments).slice(1).map(e=>s(e)));r.value.forEach(e=>{e.value=o.value});let a=r.value.length;return t.watch([o,r],([e,t])=>{if(a<t.length)t.forEach(t=>{t.value!==e&&(t.value=e)});else{a=t.length;for(const n of t)if(n.value!==e)return void(o.value=n.value)}},{deep:!0}),t.watch(o,e=>{r.value.forEach(t=>t.value=e)},{deep:!0,flush:"sync"}),r},e.useWebSocket=function(e,n){const o=S&&"WebSocket"in window;let r=null;const a=t.ref(null),s=t.ref(null),l=t.ref(null),u=t.ref(!1),i=t.ref(!1),c=t.ref(!1);let v=g,d=g;return o&&(r=new WebSocket(e,n),r.addEventListener("message",e=>{a.value=e,l.value=e.data}),r.addEventListener("error",e=>{s.value=e,c.value=!0}),r.addEventListener("close",()=>{u.value=!1,i.value=!0}),r.addEventListener("open",()=>{u.value=!0,i.value=!1}),v=e=>r.send(e),d=(e,t)=>{r.close(e,t)}),{supported:o,ws:r,send:v,close:d,messageEvent:a,errorEvent:s,data:l,isOpen:u,isClosed:i,errored:c}},e.useWebStorage=Ie,e.useWorker=function(e,n,o){const r=S&&"Worker"in self,a=t.ref(),s=t.ref(),l=t.ref(!r),u=t.ref(!r);if(!r)return l.value=!0,{worker:void 0,data:s,postMessage:g,terminate:g,errorEvent:a,errored:u,terminated:l};const i=new Worker(e,o),c=e=>i.postMessage(e);function v(){i.terminate(),l.value=!0}return i.addEventListener("message",e=>{s.value=e.data},y),i.addEventListener("error",e=>{a.value=e,u.value=!0},y),t.onUnmounted(v),n&&c(n),{worker:i,data:s,postMessage:c,terminate:v,errorEvent:a,errored:u,terminated:l}},e.useWorkerFunction=function(e,n){const o=S&&"Worker"in self,r=t.computed(()=>n&&a(n.dependencies)||[]),s=t.computed(()=>n&&a(n.timeout));if(!o)return O(e,{lazy:!0,throwException:!0});const l=O((...n)=>new Promise((o,a)=>{const u=function(e,t){const n=[t.length>0?`importScripts("${t.join('","')}");`:"","onmessage=",`(${ne.toString()})(${e.toString()})`],o=new Blob(n,{type:"text/javascript"});return URL.createObjectURL(o)}(e,r.value),i=new Worker(u);let c=-1;const v=s.value,d=()=>{i.terminate(),URL.revokeObjectURL(u),clearTimeout(c),m()},f=n.length===e.length+1&&t.isRef(n[n.length-1])&&!1===n[n.length-1].value?t.computed(()=>l.cancelled.value||n[n.length-1].value):l.cancelled,m=f?t.watch(f,()=>{d(),o(void 0)},{immediate:!1}):g;i.addEventListener("message",e=>{e.data[0]?o(e.data[1]):a(e.data[1]),d()},y),i.addEventListener("error",e=>{d(),a(e)},y),i.postMessage([...n]),v&&(c=setTimeout(()=>{l.cancel(`[WebWorker] timeout after ${v}ms`)},v))}),{lazy:!0,throwException:!0});return l},e.wrap=s,e}({},vueCompositionApi,Vue);
var vueComposable=function(e,t,n){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var r=o(n);function a(e){return t.isRef(e)?e.value:e}function s(e){return t.isRef(e)?e:t.ref(e)}const l=Array.isArray,u=e=>"function"==typeof e,i=e=>"string"==typeof e,c=e=>"boolean"==typeof e,v=e=>f(e)&&u(e.getTime),d=e=>"number"==typeof e,f=e=>null!==e&&"object"==typeof e,m=e=>f(e)&&!!e.tagName;function p(e){return f(e)&&u(e.then)&&u(e.catch)}const g=()=>{},h=()=>!1,y={passive:!0};function w(e){return new Promise(t=>{setTimeout(t,e)})}const b=2**32-2;function E(e,t,n){return e<t?t:e>n?n:e}const I="undefined"!=typeof window;function S(e,...t){for(let n=0;n<t.length;n++){const o=t[n];if(void 0===o||!f(o))continue;const r=Object.keys(o);for(let t=0;t<r.length;t++){const n=r[t],s=a(o[n]),l=typeof s,u=typeof e[n];void 0!==e[n]&&l!==u||(e[n]=f(s)?S(e[n]||{},s):o[n])}}return e}const M=t.set;function C(e){return t.computed(()=>a(e))}function k(e,n,o,r){let a=g;if(e){const l=s(e),u=e=>e.removeEventListener(n,o),i=e=>e.addEventListener(n,o,r),c=t.watch(l,(e,t,n)=>{e&&(i(e),n(()=>u(e)))},{immediate:!0});a=()=>{u(l.value),c()}}return a}function $(e,t,n){return L(e,t,n)}function L(e,t=50,n={isImmediate:!1}){let o;return function(...r){const a=this,s=n.isImmediate&&void 0===o;void 0!==o&&clearTimeout(o),o=setTimeout((function(){o=void 0,n.isImmediate||e.apply(a,r)}),t),s&&e.apply(a,r)}}function R(e,n,o){const r=t.ref(0),a=t.ref(0),s=t.ref(0),l=t.ref(0);let u=e=>{r.value=e.x,a.value=e.y,s.value=e.pageX,l.value=e.pageY};const[i,c]=d(n)?[void 0,n]:[n,o];c&&(u=$(u,o));const v=k(e,"mousemove",u,i);return{mouseX:r,mouseY:a,pageX:s,pageY:l,remove:v}}const T=["scrollBy","scrollTo","scrollIntoView"];const x=["mousedown","touchstart"];function O(e,n){if(!e)throw new Error(`[usePromise] argument can't be '${e}'`);if("function"!=typeof e)throw new Error("[usePromise] expects function, but received "+typeof e);const[o,r]=c(n)?[n,!1]:f(n)?[n.lazy,n.throwException]:[!1,!1],a=t.ref(!1),s=t.ref(null),l=t.ref(null),u=t.ref(),i=async(...t)=>{a.value=!0,s.value=null;const n=t&&e.length!==t.length&&t.length>0&&c(t[t.length-1])?t[t.length-1]:r,o=u.value=e(...t);try{const e=await o;return u.value===o&&(l.value=e),e}catch(e){return u.value===o&&(s.value=e,l.value=null),n?o:void 0}finally{u.value===o&&(a.value=!1)}};return o||i(),{exec:i,result:l,promise:u,loading:a,error:s}}function D(e,n){const o=t.ref(!1);let r=void 0;const a=O((...t)=>{return n=e(...t),new Promise((e,t)=>{r=e=>{o.value=!0,t(e)},n.then(e).catch(t)});var n},n);return!t.getCurrentInstance()||f(n)&&!1===n.unmountCancel||t.onUnmounted(()=>r&&r()),{...a,cancel:e=>{r&&r(e)},cancelled:o}}const P=Symbol(""),A=Symbol(""),j=async(e,t,n,o)=>{const r=t[P].value;let a=-1;const s=e.maxRetries||9001,l=e.retryDelay||F;t.retryErrors.value=[],t.isRetrying.value=!1,t.nextRetry.value=void 0;let u=void 0;do{let e=!1,i=null;try{if(++a,i=o?n(...o):n(),p(i)&&(i=await i),t[A].value)return null;e=!0}catch(e){i=null,t.retryErrors.value.push(e)}if(r!==t[P].value)return i;if(e)return t.isRetrying.value=!1,t.nextRetry.value=void 0,i;if(a>=s)return t.isRetrying.value=!1,t.nextRetry.value=void 0,Promise.reject(new Error("[useRetry] max retries reached "+s));t.isRetrying.value=!0;const c=Date.now(),f=l(a),m=p(f)?await f:f;if(!p(f)||m){if(d(m))u=m;else{if(!v(m))throw new Error(`[useRetry] invalid value received from options.retryDelay '${typeof m}'`);u=m.getTime()}u<c?t.nextRetry.value=c+u:(t.nextRetry.value=u,u-=c),u>0&&await w(u)}if(t[A].value)return null;if(r!==t[P].value)return i}while(a<9e3);return null};const F=()=>0;const U=Symbol("");function V(e,t){u(e.provide)?e.provide(U,t):console.warn("[vue-composable] devtools is not supported for vue 2")}function N(){const e={},n=t.inject(U,e);if(n!==e)return n;console.warn("[vue-composable] devtools not found, please run app.use(VueComposableDevtools)")}let _=void 0;_=e=>{const t=[],n=[];let o;function r(e,t){o?o[e](...t):n.push({type:e,args:t})}e.then(e=>{o=e,async function(e,t,n){setTimeout(async()=>{const o=["addTimelineLayer","addInspector","sendInspectorTree","sendInspectorState","addTimelineEvent"];for(const t of o){for(const o of n.filter(e=>e.type===t))e[t](...o.args);await w(20)}new Set(n.filter(e=>"notifyComponentUpdate"===e.type).map(e=>e.args[0])).forEach(t=>e.notifyComponentUpdate(t)),t.forEach(t=>e.on[t.type](...t.args)),t.length=0,n.length=0},100)}(o,t,n)});return{notifyComponentUpdate(e){r("notifyComponentUpdate",arguments)},addTimelineLayer(e){r("addTimelineLayer",arguments)},addTimelineEvent(e){r("addTimelineEvent",arguments)},addInspector(e){r("addInspector",arguments)},sendInspectorTree(e){r("sendInspectorTree",arguments)},sendInspectorState(e){r("sendInspectorState",arguments)},on:{transformCall(e){o?o.on.transformCall(e):t.push({type:"transformCall",args:arguments})},getAppRecordName(e){o?o.on.getAppRecordName(e):t.push({type:"getAppRecordName",args:arguments})},getAppRootInstance(e){o?o.on.getAppRootInstance(e):t.push({type:"getAppRootInstance",args:arguments})},registerApplication(e){o?o.on.registerApplication(e):t.push({type:"registerApplication",args:arguments})},walkComponentTree(e){o?o.on.walkComponentTree(e):t.push({type:"walkComponentTree",args:arguments})},walkComponentParents(e){o?o.on.walkComponentParents(e):t.push({type:"walkComponentParents",args:arguments})},inspectComponent(e){o?o.on.inspectComponent(e):t.push({type:"inspectComponent",args:arguments})},getComponentBounds(e){o?o.on.getComponentBounds(e):t.push({type:"getComponentBounds",args:arguments})},getComponentName(e){o?o.on.getComponentName(e):t.push({type:"getComponentName",args:arguments})},getElementComponent(e){o?o.on.getElementComponent(e):t.push({type:"getElementComponent",args:arguments})},getInspectorTree(e){o?o.on.getInspectorTree(e):t.push({type:"getInspectorTree",args:arguments})},getInspectorState(e){o?o.on.getInspectorState(e):t.push({type:"getInspectorState",args:arguments})}}}};var W=_;const B=(e,t="vue-composable",n="Vue-composable devtools plugin")=>{const o=new Promise(e=>{});V(e,W(o))},z={install:(e,t={id:"vue-composable",label:"Vue-composable devtools plugin"})=>B(e,t.id,t.label)};function H(e){if(!e)return{};const t=!!e.__v_isRef,n=t&&!!e.effect,o=!!e.__v_reactive,r=n?"Computed":t?"Ref":o?"Reactive":null;return{...r?{objectType:r}:{},...e.effect?{raw:e.effect.raw.toString()}:{}}}function K(e){return e&&(c(e.isJson)||c(e.parseImmediate)||c(e.unmountCancel))}let q=void 0;let X=void 0,Y=void 0;let J=void 0,Q=void 0;function G(e,n){const o=I&&"BroadcastChannel"in self,r=t.ref(null),a=t.ref(null),s=t.ref(null),l=t.ref(!1),u=t.ref(!1);let i=g,c=g,v=g;if(o){const o=new BroadcastChannel(e);o.addEventListener("messageerror",e=>{s.value=e,l.value=!0},y),o.addEventListener("message",e=>{a.value=e,r.value=e.data},y),i=e=>o.postMessage(e),c=()=>{o.close(),u.value=!0},v=(e,n)=>{o.addEventListener("message",e,n),t.onUnmounted(()=>o.removeEventListener("message",e))},t.onUnmounted(()=>{n&&n(),c()})}return{supported:o,data:r,messageEvent:a,errorEvent:s,errored:l,isClosed:u,send:i,close:c,addListener:v}}function Z(e,t){const n=getComputedStyle(e).getPropertyValue(t);return n?n.trim():null}function ee(e,t,n){e.style.setProperty(t,n)}const te={attributes:!0,childList:!0,subtree:!0},ne=e=>e.length<=2||"-"!==e[0]||"-"!==e[1]?"--"+e:e;const oe=e=>function(t){const n=t.data||[];return new Promise(t=>{try{Promise.resolve(e.apply(e,n)).then(e=>t(postMessage([!0,e]))).catch(e=>t(postMessage([!1,e])))}catch(e){t(postMessage([!1,e]))}})};function re(e){const n=!!I&&"matchMedia"in window;let o=void 0,r=void 0,a=g;if(n){o=t.ref(matchMedia(e)),r=t.ref(o.value.matches);const n=e=>{r.value=e.matches};o.value.addEventListener("change",n,y);const a=()=>o.value.removeEventListener("change",n);t.onUnmounted(a)}else o=t.ref({}),r=t.ref(!1);return{supported:n,mediaQueryList:o,matches:r,remove:a}}function ae(e,n){const{addListener:o,send:r,close:a,supported:s}=G(e,()=>h()),l=Date.now(),u=t.ref(!1),i=t.ref(0),c=t.computed(()=>1!==i.value||u.value),v=t.ref([]),d=t.ref(n);let m=!1,p=void 0;r({type:0});const g=()=>r({type:5,id:l}),h=()=>{0!==v.value.length&&(u.value&&r({type:3,mind:1,id:Math.min(...v.value)}),r({type:4,id:l}))};return o(e=>{switch(e.data.type){case 0:r({type:2,value:d.value,mind:i.value});break;case 4:{const t=v.value.indexOf(e.data.id);t>=0&&v.value.splice(t,1),p===e.data.id&&v.value.length>0&&r({type:3,mind:1,id:Math.min(l,...v.value)});break}case 2:m=!0,d.value=e.data.value,i.value=e.data.mind;break;case 3:i.value=e.data.mind,p=1===e.data.mind&&e.data.id||void 0,u.value=p===l,u.value&&(v.value=[],g());break;case 5:v.value=[e.data.id],r({type:6,id:l});break;case 6:v.value.push(e.data.id)}},y),g(),t.watch(d,(e,t)=>{if(m)m=!1;else{if(1===i.value&&!1===u.value)return m=!0,void(d.value=t);r({type:2,mind:i.value,value:f(e)?{...e}:e}),m=!1}},{deep:!0,immediate:!1}),I&&window.addEventListener("unload",h,y),t.onUnmounted(()=>{h(),a()}),{supported:s,id:l,data:d,master:u,mind:i,editable:c,targets:v,ping:g,setMind:e=>{switch(e){case 1:u.value=!0;break;case 0:u.value=!1}i.value=e,r({type:3,id:l,mind:i.value})},addListener:o}}const se="no-scroll";function le(e,n){return t.inject(e,n,!0)}function ue(e,n){const o=s(n),r=s(e);return f(o.value)||t.isRef(n)?[void 0!==r.value?r:void 0,o]:!f(r.value)||l(r.value)||i(r.value)?[r.value?r:void 0,void 0]:[void 0,r]}function ie(e,n){const[o,r]=ue(e,n),s=t.computed(()=>new Intl.NumberFormat(a(o),a(r))),l=(e,t,n)=>(t||n?new Intl.NumberFormat(a(n)||a(o),{...a(r),...a(t)}):s.value).format(a(e));return{format:(e,n,o)=>t.computed(()=>l(e,n,o)),formatString:l,formatter:s}}function ce(e){if(e)return d(e)?e:ve(e)}const ve=e=>{const t=e.match(/^(\d+)px$/);if(t)return+t[1]};function de(e){const n={},o=new Map,r=t.ref();let a=[];const s=[];for(const r in e){const l=e[r],u=ce(l);if(void 0!==u){const e=t.ref(!1);n[r]=e,o.set(u,{name:r,valid:e}),a.push(u)}else{const{matches:e,remove:t}=re(l);n[r]=e,s.push(t)}}a=a.sort((e,t)=>t-e);const l=I?()=>{const e=window.innerWidth;let t=void 0;for(let n=0;n<a.length;n++){const r=a[n],s=o.get(r);s.valid.value=e>=r,e>=r&&void 0===t&&(t=s.name)}r.value=t}:g,u=$(l,10),i=I?()=>window.removeEventListener("resize",u):g;return I&&(t.onMounted(()=>{l(),window.addEventListener("resize",u,y)}),t.onUnmounted(()=>{i(),s.forEach(e=>e())})),{...n,remove:i,current:r}}const fe=Symbol(""),me={sm:640,md:768,lg:1024,xl:1280};function pe(e){return f(e)&&f(e.theme)&&f(e.theme.screens)}function ge(e){return!!f(e)&&(i(e.min)||i(e.max)||d(e.min)||d(e.max))}function he(e){return d(e)?e+"px":e}function ye(e){const t=[];if(l(e)){const n=e.map(ye);for(let e=0;e<n.length;e++){const o=n[e];t.push(...o)}}else f(n=e)&&i(n.raw)?t.push(e.raw):ge(e)?t.push(function(e){return ge(e)?`(${[e.max&&"max-width: "+he(e.max),e.min&&"min-width: "+he(e.min)].filter(Boolean).join(" and ")})`:""}(e)):(i(e)||d(e))&&t.push(`(min-width: ${he(e)})`);var n;return t}function we(e){const n=pe(e)?e.theme.screens:e;if(pe(e))for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];f(t)?n[e]=ye(n[e]).join(" or "):i(t)&&(t.endsWith("px")||(n[e]=ye(n[e]).join(" or ")))}const o=de(n);return t.provide(fe,o),o}function be(e,t){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&(t&&0!==t.length||!1)}function Ee(e){try{if(!e)return!1;const t=":$";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return be(t,e)}}function Ie(e,t){try{return e.parse(t)}catch{return t}}let Se=void 0;function Me(e,n=JSON,o=10){const r=I?window[e]:void 0,a=Ee(r);Se||(Se=new Map,I&&window.addEventListener("storage",e=>{if(e.newValue===e.oldValue)return;let t=Se.get("localStorage");t=e.storageArea===window.localStorage?Se.get("localStorage"):Se.get("sessionStorage"),t&&Object.keys(t.$syncKeys).length>0&&(null===e.key?t.clear():t.$syncKeys[e.key]&&(null===e.newValue?t.removeItem(e.key):t.updateItem(e.key,e.newValue)))}));let l,u=Se.get(e);return a&&r?u?l=u.$quotaError:(l=t.ref(!1),u={$refMap:new Map,$watchHandlers:new Map,$syncKeys:{},$quotaError:l,key:r.key,length:r.length,setSync(e,t){t?this.$syncKeys[e]=!0:delete this.$syncKeys[e]},clear(){this.$refMap.forEach((e,t)=>this.removeItem(t))},removeItem(e){const t=this.$refMap.get(e);t&&(t.value=void 0);const n=this.$watchHandlers.get(e);n&&n(),delete this.$syncKeys[e],this.$refMap.delete(e),r.removeItem(e)},getItem(e){const t=r.getItem(e);return t?this.setItem(e,Ie(n,t)):null},setItem(e,a){const u=s(a);this.$refMap.set(e,u);const c=(e,t)=>{try{const o=r.getItem(e),a=i(t)?t:n.stringify(t);r.setItem(e,a),o!==a&&I&&this.$syncKeys[e]&&window.dispatchEvent(new StorageEvent(e,{newValue:a,oldValue:o,storageArea:r}))}catch(e){l.value=be(e,r)}};c(e,a);const v=t.watch(u,L(t=>{c(e,t)},o),{immediate:!1,deep:!0});return this.$watchHandlers.set(e,v),u},updateItem(e,t){let o=this.$refMap.get(e);o&&(o.value=Ie(n,t))}},Se.set(e,u)):(l=t.ref(!1),u={}),{supported:a,quotaError:l,store:u,remove:()=>Se.delete(e)}}function Ce(e,n,o){const{supported:r,store:a}=Me("localStorage");let s=g,l=g,u=g,i=void 0;return r&&a?(u=t=>a.setSync(e,t),s=()=>a.removeItem(e),l=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n)),!1!==o&&u(!0)):i=t.ref(n),{supported:r,storage:i,clear:l,remove:s,setSync:u}}function ke(e,n,o){const{supported:r,store:a}=Me("sessionStorage");let s=g,l=g,u=h,i=void 0;return r&&a?(s=()=>a.removeItem(e),l=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n))):i=t.ref(n),{supported:r,storage:i,clear:l,remove:s,setSync:u}}let $e=void 0;function Le(e){const n=s(e.currentPage),o=s(e.pageSize),r=t.ref(0),a=s(e.total),l=t.computed({get:()=>r.value,set(e){d(e)&&(r.value=Math.min(e,a.value))}}),u=t.computed({get:()=>n.value,set(e){d(e)&&(n.value=E(e,1,c.value),l.value=(n.value-1)*i.value)}}),i=t.computed({get:()=>o.value,set(e){d(e)&&(o.value=e)}}),c=t.computed(()=>Math.ceil(a.value/i.value));u.value=n.value;return t.watch([a,i],e=>{u.value>c.value&&(u.value=c.value)},{immediate:!1}),{pageSize:i,total:a,currentPage:u,offset:l,lastPage:c,next:()=>++u.value,prev:()=>--u.value,first:()=>u.value=1,last:()=>u.value=c.value}}function Re(e){const n=1e3,o=e&&e.refreshMs||n,r=!e||!c(e.sync)||e.sync,a=e&&u(e.timeFn)&&e.timeFn||Date.now;let s=void 0,l=void 0;const i=t.ref(a()),v=()=>{clearInterval(s),clearTimeout(l)},d=I?()=>s=setInterval(()=>i.value=a(),o):g;if(r){const e=n-(i.value-Math.floor(i.value/n)*n);l=setTimeout(d,e)}else d();return t.onUnmounted(v),{now:i,remove:v}}function Te(e,n){return t.computed(()=>{const o=a(e);if(!n)return o;const r=t.isRef(n)?t.reactive(n.value):t.reactive(n);return o.replace(/({?{[\w\s]*}?})/g,e=>{const t=e.replace("{","").replace("}","").trim();if(e[0]===e[1]&&"{"===e[0])return""+t;const n=l(r)?r[+t]:r[t];return void 0===n?e:""+a(n)})})}function xe(e,n,o=".",r=g){return t.computed(()=>{const t=a(e),s=a(n);if(void 0===t)return r(s,t,s,t);if(!s)return t;const l=s.split(o);let u=t;for(let e=0;e<l.length;e++){let n=l[e];if("]"===n[n.length-1]){const t=/\[[`'"]?([^`'"\]]*)[`'"]?\]/g;let o=n,r=t.exec(o);if(r){let a=r[0].length,s=r.index-a,u=1;do{r.index,s=r.index,a=r[0].length,n=n.slice(0,-r[0].length),l.splice(e+u,0,r[1]),++u}while(r=t.exec(o));if(!n&&"["===o[0]&&o.length>2)continue}else n="",console.warn(`[usePath] invalid path provided "${o}"`)}if(!f(u))return r(l.slice(0,e+1).join(o),u,s,t);if(!n)return r(l.slice(0,e+1).join(o),u,s,t);if(u=u[n],!u)return r(l.slice(0,e+1).join(o),u,s,t)}return u})}function Oe(e){return void 0!==e.$value}const De=(e,n,o)=>{const{$message:r,$validator:s,...l}=function(e){return f(e)}(n)?n:{$validator:n,$message:void 0},{$pending:u,$promise:i,$invalid:c,$error:v}=((e,n,o,r)=>{const s=t.ref(null),l=t.ref(!1),u=t.ref(),i=t.ref(!1);let c=void 0;const v=e=>{s.value=(async()=>{try{l.value=!0;const t=n(e,c);p(t)?i.value=!await t:i.value=!t,u.value=i.value?o.value:void 0}catch(e){throw i.value=!0,e}finally{l.value=!1}})().catch(e=>(u.value=a(e),i.value=!0,e))};return r.push(o=>{c=o,t.watch(()=>{try{n(e.value,c)}catch(e){}return e.value},v,{deep:!0,immediate:!0})}),{$promise:s,$pending:l,$invalid:i,$error:u}})(e,s,t.ref(r),o);return{$pending:u,$error:v,$promise:i,$invalid:c,$message:r,...l}},Pe=(e,n)=>{const o={},r=Oe(e)?s(e.$value):void 0;for(const s of Object.keys(e))if("$"!==s[0])if(r){const t=De(r,e[s],n);o[s]={...t,$value:r}}else{const r=Pe(e[s],n);let l,u,i=void 0;if(Oe(r)){const e=Object.keys(r).filter(e=>"$"!==e[0]).map(e=>r[e]);l=t.computed(()=>e.map(e=>e.$error).map(e=>a(e)).filter(Boolean)),u=t.computed(()=>e.some(e=>!!a(e.$invalid)))}else{const e=Object.keys(r).map(e=>r[e]);l=t.computed(()=>e.map(e=>a(e.$errors)).filter(Boolean).filter(e=>e.some(Boolean))),i=t.computed(()=>e.some(e=>e.$anyDirty||c(a(e.$dirty))&&a(e.$dirty))),u=t.computed(()=>e.some(e=>!!a(e.$anyInvalid)))}o[s]={...r,$errors:l,$anyInvalid:u},i&&(o[s].$anyDirty=i)}else{if("$value"===s){o[s]=r;const e=t.ref(!1),n=t.watch(r,()=>{e.value=!0,n()},{immediate:!1,deep:!0});o.$dirty=e;continue}o[s]=e[s]}return o};const Ae=Symbol("");function je(e){const n=t.ref(Object.keys(e.messages)),o=t.ref(e.messages),l=t.ref(e.locale),i=t.ref({});let v=t.ref();const d={},f=(e,n)=>{if(d[e])return d[e];const o=n.value[e];if(!o)return t.ref({});let r=u(o)?o():o;return p(r)?r.then(t=>d[e]=s(t)):u(o)?s(r):d[e]=t.computed(()=>n.value[e])},m=!!e.fallback&&(!c(e.notFoundFallback)||e.notFoundFallback);let g=!1;if(m){const t=f(e.fallback,o);p(t)?(t.then(e=>{v.value=e.value}),g=!0):v.value=t.value}else v.value={};const h=t.ref(0);t.watch(o,()=>h.value++,{deep:!0,immediate:!1}),t.watch([l,v,h],([t,n,r])=>{if(t===e.fallback&&m)i.value=n;else{const e=e=>i.value=S({},n,a(e)),r=f(t,o);p(r)?r.then(e):e(r)}},{immediate:!g});const y=(t,n)=>e.resolve?s(e.resolve(i.value,t,n)):Te(xe(i,t,".",(e,t,n,o)=>n),n);return{locale:l,locales:n,i18n:i,$t:y,$ts:(e,t)=>y(e,t).value,addLocale:(e,t)=>{n.value.indexOf(e)>=0||n.value.push(e),delete d[e],M(o.value,e,t)},removeLocale:t=>{const a=n.value.indexOf(t);if(a>=0){const o=[l.value,v.value&&e.fallback,...n.value].find(e=>e&&e!==t);o&&(t===e.fallback&&(v.value=void 0),t===l.value&&(l.value=o)),n.value.splice(a,1)}var s,u;s=o.value,u=t,r.delete(s,u),delete d[t]}}}function Fe(e){const n=je(e);return t.provide(Ae,n),n}const Ue=Symbol("");const Ve=Symbol(""),Ne={install(e){C(t.ref(!0))}};return e.COMMIT="3f582cd",e.FALSE_OP=h,e.MAX_ARRAY_SIZE=b,e.NO_OP=g,e.PASSIVE_EV=y,e.SCROLL_LOCK_CLASS=se,e.UseDevtoolsApp=B,e.VERSION="1.0.0-beta.12",e.VUE_VERSION="2",e.VueComposableDevtools=z,e.buildI18n=je,e.debounce=L,e.deepClone=S,e.exponentialDelay=e=>{const t=100*Math.pow(2,e);return t+.2*t*Math.random()},e.exposeWorker=function(e){this.onmessage=async t=>{const n=e(t.data);if(void 0===n)this.postMessage(n);else if(null===n)this.postMessage(n);else if(l(n))this.postMessage(n);else if(n[Symbol.asyncIterator])for await(const e of n)this.postMessage(e);else if(n[Symbol.iterator])for(const e of n)this.postMessage(e);else this.postMessage(await n)}},e.getCssVariableFor=Z,e.getDevtools=N,e.hydrationPlugin=Ne,e.injectFactory=le,e.isArray=l,e.isBoolean=c,e.isClient=I,e.isDate=v,e.isElement=m,e.isFunction=u,e.isNumber=d,e.isObject=f,e.isPromise=p,e.isString=i,e.isSymbol=e=>"symbol"==typeof e,e.minMax=E,e.noDelay=F,e.promisedTimeout=w,e.provideSSRTitle=function(e,t){const n=s(void 0===t?"":t);return e.provide(Ue,n),n},e.refDebounced=function(e,n){let[o,r]=1===arguments.length&&d(e)?[void 0,e]:[e,n];return t.customRef((e,t)=>({get:()=>(e(),o),set:L(e=>{o=e,t()},r)}))},e.refShared=function(e,n){const o=t.getCurrentInstance(),r=n||o.$vnode.tag;if(!r)return t.ref(e);const{data:a,supported:s}=ae(r,e);return a},e.setBreakpointTailwindCSS=we,e.setCssVariableFor=ee,e.setDevtools=V,e.setI18n=Fe,e.storageAvailable=Ee,e.unwrap=a,e.useArrayPagination=function(e,n){const o=s(e),r=Le({currentPage:1,pageSize:10,...n,total:t.computed(()=>o.value.length)}),a=t.computed(()=>{const e=o.value;return Array.isArray(e)?e.slice(r.offset.value,r.offset.value+r.pageSize.value):[]});return{...r,result:a}},e.useBreakpoint=de,e.useBreakpointChrome=function(){return de({mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560})},e.useBreakpointTailwindCSS=function(e){return le(fe,()=>we(e||me))},e.useBroadcastChannel=G,e.useCancellablePromise=D,e.useCssVariables=function(e,n,o){const r=I&&"MutationObserver"in self,[l,u]=t.isRef(n)||m(n)?[n,o||te]:[r&&document.documentElement||{},n||te],c=t.ref(!0),v={},d=[],f=Object.entries(e).map(e=>{const[t,n]=i(e[1])?[e[1]]:[e[1].name,e[1].value];return n&&(d.push(()=>ee(a(l),t,a(n))),v[e[0]]=s(n)),[e[0],ne(t)]});for(let e=0;e<f.length;e++){const[n,o]=f[e];v[n]||(v[n]=t.ref(t.isRef(l)&&!l.value||!r?null:Z(a(l),o))),r&&t.watch([v[n],s(l)],e=>{c&&e[1]&&e[0]!==Z(e[1],o)&&ee(e[1],o,e[0])},{immediate:!t.isRef(l)})}if(!r)return{...v,stop:g,resume:g,supported:r,observing:c};const p=()=>{for(let e=0;e<f.length;e++){const[t,n]=f[e];v[t].value=Z(a(l),n)}},h=new MutationObserver(p),y=()=>{h.disconnect(),c.value=!1},w=()=>{c.value||p(),h.observe(a(l),u),c.value=!0};return t.onUnmounted(y),t.isRef(l)?t.onMounted(()=>{d.forEach(e=>e()),t.watch(l,(e,t)=>{t&&y(),e&&w()})}):(I||l)&&(d.forEach(e=>e()),w()),{...v,supported:r,resume:w,stop:y,observing:c}},e.useCurrencyFormat=function(e,n,o){const r=a(e),s=!f(r),l=s?e:t.computed(()=>a(e).currency),[u,i]=ue(n,s?o:e),c=t.computed(()=>{const e=a(i)||{},t=a(l)||e.currency;return{style:"currency",...e,currency:t}}),v=ie(u),d=(e,t,n,o,r)=>{const s={...c.value,...a(o)},l=a(t)||s.currency,u=a(n)||s.currencyDisplay;return v.formatString(e,{...s,currency:l,currencyDisplay:u},r)};return{format:(e,n,o,r,a)=>t.computed(()=>d(e,n,o,r,a)),formatString:d}},e.useDateNow=function(e){return Re({refreshMs:e&&e.refreshMs||1e3,sync:!e||!c(e.sync)||e.sync,timeFn:Date.now})},e.useDebounce=$,e.useDevtoolsComponentState=function(e,n){const o=t.getCurrentInstance(),r=N();r&&o&&r.on.inspectComponent((t,r)=>{if(t.componentInstance!==o)return;const[s,i]=f(n)?[n.type,n.multiple]:["setup",!1];if(u(e))return void e(t.instanceData,r);let c=l(e)?e:Object.keys(e).map(t=>({type:s,key:t,value:a(e[t]),...H(e[t])}));if(!i){const e=new Set(t.instanceData.state.map(e=>e.key));c=c.filter(t=>!e.has(t.key))}t.instanceData.state.push(...c)})},e.useDevtoolsInspector=function(e,n=[]){const o=N(),r=t.ref(n),a=t.computed(()=>{if(!r.value)return new Map;const e=t.toRaw(r.value),n=new Map;for(const t of e)n.set(t.id,t);return n});if(o){const n=e.id;o.addInspector(e),o.on.getInspectorTree(o=>{if(o.inspectorId!=n)return;if(!r.value)return;const a=o.filter;let s=t.toRaw(r.value);o.filter&&(s=e.nodeFilter?e.nodeFilter(o.filter,s):s.filter(e=>e.id.indexOf(a)>=0||e.label.indexOf(a)>=0)),o.rootNodes=s}),o.on.getInspectorState(o=>{if(o.inspectorId!=n)return;const r=a.value.get(o.nodeId);if(r){const n=t.reactive(r.state);o.state=e.stateFilter?e.stateFilter("",n):n}}),t.watch(r,()=>{o.sendInspectorTree(n),o.sendInspectorState(n)},{immediate:!0,deep:!0})}return{nodes:r}},e.useDevtoolsTimelineLayer=function(e,t,n){const o=N();let r=g,a=g;return o&&(o.addTimelineLayer({id:e,label:t,color:n}),r=(t,n)=>o.addTimelineEvent({layerId:e,event:t,all:n}),a=e=>r({...e,time:Date.now()})),{id:e,addEvent:r,pushEvent:a}},e.useEvent=k,e.useFetch=function(e,n){const o=t.ref(null),r=t.ref(""),a=t.ref(),s=t.ref(null),[l,u,c]=K(e)?[!1!==e.isJson,!1!==e.parseImmediate,!1!==e.unmountCancel]:K(n)?[!1!==n.isJson,!1!==n.parseImmediate,!1!==n.unmountCancel]:[!0,!0,!0],v=e?i(e)?n:K(e)?e:i(e.url)?n:e:void 0,d=t.ref(!1),f=t.ref();let m=void 0;const p=e=>{m&&(m.abort(),d.value=!0,f.value=e)},g=O(async(e,t)=>{m=new AbortController;const n=await fetch(e,{signal:m.signal,...v,...t});if(n){const e=[l?n.clone().json().then(e=>o.value=e).catch(e=>{o.value=null,s.value=e}):Promise.resolve(),n.clone().blob().then(e=>{a.value=e}),n.clone().text().then(e=>{r.value=e})];u&&await Promise.all(e)}return n},!0),h=t.computed(()=>g.result.value&&g.result.value.status||null),y=t.computed(()=>g.result.value&&g.result.value.statusText||null);return e&&(i(e)||i(e.url))&&g.exec(e,void 0,!1),c&&t.getCurrentInstance()&&t.onUnmounted(()=>{m&&p("unmounted")}),{...g,cancel:p,isCancelled:d,cancelledMessage:f,text:r,blob:a,json:o,jsonError:s,status:h,statusText:y}},e.useFormat=Te,e.useGeolocation=function(e){const n=I&&!!navigator.geolocation,o=t.ref(e?!1===e.immediate:void 0),r=t.ref(null),a=t.ref(null),s=t.ref(null),l=t.ref(e&&e.enableHighAccuracy||null);let u=g;if(n){const n=e=>{a.value=e.timestamp,s.value=e.coords,r.value=null},i=e=>{a.value=Date.now(),s.value=null,r.value=e},v=()=>!0!==o.value&&f&&navigator.geolocation.clearWatch(f);let d=()=>navigator.geolocation.getCurrentPosition(n,i,e);u=o.value?()=>{o.value?o.value=!1:d()}:d;let f=0;t.onMounted(()=>t.watch([l,o],t=>{v();const o=c(t[0])?t[0]:e?e.enableHighAccuracy:void 0;f=navigator.geolocation.watchPosition(n,i,e?{...e,enableHighAccuracy:o}:{enableHighAccuracy:o})},{immediate:!o.value})),t.onUnmounted(v)}return{supported:n,refresh:u,error:r,timestamp:a,coords:s,highAccuracy:l}},e.useHydration=function(){return t.inject(Ve,t.computed(()=>!1))},e.useI18n=function(e){return e?Fe(e):t.inject(Ae)},e.useIntersectionObserver=function(e,n){const o=I&&"IntersectionObserver"in window,r=e?s(e):void 0,l=!r||!m(r.value)&&r.value?void 0:r,u=t.computed(()=>n?a(n):l?void 0:a(e)),i=t.ref([]),c=t.computed(()=>i.value.length>0&&i.value.every(e=>e.isIntersecting)),v=e=>{i.value=e};let d=t.ref();o&&t.watch(u,e=>{d.value&&d.value.disconnect();const t=e&&e&&{root:a(e.root),rootMargin:a(e.rootMargin),threshold:a(e.threshold)}||void 0;d.value=new IntersectionObserver(v,t);i.value.map(e=>e.target).forEach(d.value.observe)},{deep:!0,immediate:!0});const f=o?e=>{const t=a(e);d.value.observe(t)}:g,p=o?e=>{const t=a(e);d.value.unobserve(t)}:g,h=()=>d.value.disconnect();return l&&(t.onMounted(()=>{l.value&&f(l)}),t.onUnmounted(()=>{h()})),{supported:o,elements:i,observe:f,unobserve:p,disconnect:h,isIntersecting:c}},e.useInterval=function(e,n,...o){let r=void 0;const a=(t,...a)=>{if(s(),!t&&!n)return;return r=setInterval(e,t||n,...a&&a.length?a:o)},s=()=>{r&&(clearInterval(r),r=void 0)};return d(n)&&a(),t.onUnmounted(s),{remove:s,start:a}},e.useIntlDateTimeFormat=function(e,n){const[o,r]=ue(e,n),s=t.computed(()=>new Intl.DateTimeFormat(a(o),a(r))),l=(e,t,n)=>{const l=t||n?new Intl.DateTimeFormat(a(n)||a(o),{...a(r),...a(t)}):s.value,u=a(e);return l.format(i(u)?new Date(u):u)};return{format:(e,n,o)=>t.computed(()=>l(e,n,o)),formatString:l,formatter:s}},e.useIntlNumberFormat=ie,e.useLanguage=function(){if(J||(J=I?t.ref(navigator.language):t.ref("")),!Q)if(I){Q=t.ref(navigator.languages);const e=()=>{J.value=navigator.language,Q.value=navigator.languages};window.addEventListener("languagechange",e,y)}else Q=t.ref([]);return{language:J,languages:Q}},e.useLocalStorage=Ce,e.useLockScroll=function(e,n){const o=i(e)?t.ref([]):l(t.unref(e))?s(e):s([e]),r=i(n)?{lockedClass:n,auto:!0}:n||{auto:!0};r.lockedClass||(r.lockedClass=se);const u=t.ref(!1),c=t.computed(()=>o.value.map(e=>t.ref(e))),v=t.watch([u,c],([e,t],[n,o])=>{for(const s of t){const t=a(s);if(r.lockedClass){if(!t)return;t.classList.toggle(r.lockedClass,e)}r.onChange&&(n===e&&o.find(e=>a(e)===t)||r.onChange(t,e))}},{flush:"sync",deep:!1}),d=()=>u.value=!0,f=()=>u.value=!1;return i(e)&&t.onMounted(()=>o.value=Array.from(document.querySelectorAll(e))),!1!==r.auto&&(t.onMounted(d),t.onActivated(d),t.onDeactivated(f),t.onBeforeUnmount(f)),{locked:u,lock:d,unlock:f,remove:v}},e.useMatchMedia=re,e.useMouseDistanceFromElement=function(e,n,o){let r=void 0,s=g;if(I){const{pageX:l,pageY:u,remove:i}=R(window,n,o);r=t.computed(()=>{const t=a(e);return t?Math.floor(Math.sqrt(Math.pow(l.value-(t.offsetLeft+t.clientWidth/2),2)+Math.pow(u.value-(t.offsetTop+t.clientHeight/2),2))):0}),s=i}else r=t.computed(()=>-1);return{distance:r,remove:s}},e.useNetworkInformation=function(){const e=!!I&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection),n=!!e,o=t.ref(0),r=t.ref(0),a=t.ref("none"),s=t.ref(0),l=t.ref(!1),u=t.ref("none");let i=g,c=g;return e&&(i=()=>{o.value=e.downlink,r.value=e.downlinkMax,a.value=e.effectiveType,s.value=e.rtt,l.value=e.saveData,u.value=e.type},c=k(e,"change",i,y),i()),{supported:n,downlink:o,downlinkMax:r,effectiveType:a,rtt:s,saveData:l,type:u,remove:c}},e.useNow=Re,e.useOnMouseMove=R,e.useOnOutsidePress=function(e,t){if(!I)return()=>{};const n=s(e),o=x.find(e=>"on"+e in document.documentElement);return k(document,o,e=>n.value&&!n.value.contains(e.target)&&t(e),{passive:!0})},e.useOnResize=function(e,n,o){const r=s(e),a=t.ref(r.value&&r.value.clientHeight),l=t.ref(r.value&&r.value.clientWidth);let u=()=>{a.value=r.value.clientHeight,l.value=r.value.clientWidth};const[i,c]=d(n)?[void 0,n]:[n,o];c&&(u=$(u,o));const v=I?k(window,"resize",u,i||y):g;return t.isRef(e)&&!e.value&&t.onMounted(u),{height:a,width:l,remove:v}},e.useOnScroll=function(e,n,o){const r=e=>!(d(e)||c(e)||!m(e)&&!t.isRef(e)||!e),a=r(e)?s(e):t.ref(I&&window||void 0),l=r(e)?a:t.ref(I&&window.document.scrollingElement||void 0),u=t.ref(l.value&&l.value.scrollTop||0),i=t.ref(l.value&&l.value.scrollLeft||0);let v=()=>{u.value=l.value.scrollTop,i.value=l.value.scrollLeft};const f=T.reduce((e,t)=>(e[t]=(...e)=>l.value&&l.value[t]&&l.value[t].apply(l.value,e),e),{}),p=e=>f.scrollTo({top:e}),g=e=>f.scrollTo({left:e}),[h,w]=d(e)||!e?[y,e]:d(n)?[y,n]:[n,o];w&&(v=$(v,o));const b=k(a,"scroll",v,h),E=t.watch(u,p,{immediate:!1}),S=t.watch(i,g,{immediate:!1});return{scrollTop:u,scrollLeft:i,remove:()=>{b(),S(),E()},scrollTopTo:p,scrollLeftTo:g,...f}},e.useOnline=function(){const e=I&&"onLine"in navigator;return e||(q=t.ref(!1)),q||(q=t.ref(navigator.onLine),window.addEventListener("offline",()=>q.value=!1,y),window.addEventListener("online",()=>q.value=!0,y)),{supported:e,online:q}},e.usePageVisibility=function(){return Y||(Y=t.ref(I&&document.hidden)),X||(I?(X=t.ref(document.visibilityState),document.addEventListener("visibilitychange",()=>{X.value=document.visibilityState,Y.value=document.hidden},y)):X=t.ref("visible")),{visibility:X,hidden:Y}},e.usePagination=Le,e.usePath=xe,e.usePerformanceNow=function(e){return Re({refreshMs:e&&e.refreshMs||1e3,sync:!e||!c(e.sync)||e.sync,timeFn:()=>performance.now()})},e.usePromise=O,e.usePromiseLazy=function(e,t=!1){return O(e,{lazy:!0,throwException:t})},e.useRetry=function(e,n){const o=!e||u(e)?{}:e,r=u(e)?e:n;if(!u(e)&&!f(e))throw new Error("[useRetry] options needs to be 'object'");if(r&&!u(r))throw new Error("[useRetry] factory needs to be 'function'");const a=t.ref(!1),s=t.ref(),l=t.ref([]),i={value:!1},c={isRetrying:a,retryCount:t.computed(()=>l.value.length),nextRetry:s,retryErrors:l,[P]:{value:0},[A]:i},v=r?(...e)=>(++c[P].value,j(o,c,r,e)):e=>(++c[P].value,j(o,c,e,void 0));return{...c,cancel:()=>{c.isRetrying.value=!1,c.retryErrors.value.push(new Error("[useRetry] cancelled")),c.nextRetry.value=void 0,i.value=!0},exec:v}},e.useSSRTitle=function(e){const n=Symbol(),o=t.inject(Ue,n);return o===n||void 0===o?t.ref(i(e)?e:""):(i(e)&&(o.value=e),o)},e.useSessionStorage=ke,e.useShare=function(e){const n=I&&"share"in navigator;let o=()=>Promise.resolve(!1),r=h,a=t.ref(!1),s=t.ref(!1);return n&&(o=e=>(a.value=!1,s.value=!1,navigator.share(e).then(e=>(a.value=!0,e)).catch(e=>(a.value=!1,s.value=!0,!1))),r=e=>navigator.canShare(e),e&&r(e)&&o(e)),{supported:n,share:o,canShare:r,shared:a,cancelled:s}},e.useSharedRef=ae,e.useStorage=function(e,t,n){return void 0===$e&&($e=Me("localStorage").supported),$e?Ce(e,t,n):ke(e,t)},e.useTimeline=function(e,n){const o=t.ref([]),r=n&&n.clone?n.clone:e=>e,a=n&&n.maxLength||b;return t.watch(e,(e,t)=>{o.value.unshift({item:r(t),date:new Date}),o.value.length>a&&o.value.pop()},{immediate:!1,flush:"sync",...n}),C(o)},e.useTitle=function(e=null){const n=t.ref(i(e)?e:document.title),o=new MutationObserver(e=>{n.value=e[0].target.textContent});t.watch(n,(e,t)=>{i(e)&&e!==t&&(document.title=e)},{immediate:!0,flush:"sync"});const r=document.querySelector("title");return o.observe(r,{childList:!0}),t.onUnmounted(()=>o.disconnect()),n},e.useUndo=function(e,n){const o=s(e),r=t.ref([]),a=t.ref(0),l=n&&n.maxLength||b,u=n&&n.clone||(e=>e),i=t.computed(()=>{const e=0===a.value?1:a.value;return r.value.slice(e)}),c=t.computed(()=>{const e=0===a.value?1:0;return r.value.slice(e,a.value)});t.watch(o,e=>{if(r.value[a.value]===e)return;if(a.value>0){const e=a.value;r.value.splice(0,e),a.value=0}r.value.length>l&&r.value.pop();const t=u(e);r.value.unshift(t)},{...n,immediate:!0,flush:"sync"});const v=e=>{const t=Math.sign(e)<=0?Math.max(e,-c.value.length):Math.min(e,i.value.length);a.value+=t,o.value=r.value[a.value]};return{value:o,undo:(e=1)=>v(e),redo:(e=1)=>v(-e),jump:v,prev:i,next:c}},e.useVModel=function(e,t){console.warn("[useVModel] is not supported on @vue/composition-api.")},e.useValidation=function(e){const n=[],o=Pe({input:e},n),r=t.reactive(o.input);return n.forEach(e=>e(r)),r},e.useValueSync=function(e,n){const o=s(e),r=2===arguments.length?t.isRef(arguments[1])&&l(arguments[1].value)?arguments[1]:t.ref([s(arguments[1])]):t.ref(Array.from(arguments).slice(1).map(e=>s(e)));r.value.forEach(e=>{e.value=o.value});let a=r.value.length;return t.watch([o,r],([e,t])=>{if(a<t.length)t.forEach(t=>{t.value!==e&&(t.value=e)});else{a=t.length;for(const n of t)if(n.value!==e)return void(o.value=n.value)}},{deep:!0}),t.watch(o,e=>{r.value.forEach(t=>t.value=e)},{deep:!0,flush:"sync"}),r},e.useWebSocket=function(e,n){const o=I&&"WebSocket"in window;let r=null;const a=t.ref(null),s=t.ref(null),l=t.ref(null),u=t.ref(!1),i=t.ref(!1),c=t.ref(!1);let v=g,d=g;return o&&(r=new WebSocket(e,n),r.addEventListener("message",e=>{a.value=e,l.value=e.data}),r.addEventListener("error",e=>{s.value=e,c.value=!0}),r.addEventListener("close",()=>{u.value=!1,i.value=!0}),r.addEventListener("open",()=>{u.value=!0,i.value=!1}),v=e=>r.send(e),d=(e,t)=>{r.close(e,t)}),{supported:o,ws:r,send:v,close:d,messageEvent:a,errorEvent:s,data:l,isOpen:u,isClosed:i,errored:c}},e.useWebStorage=Me,e.useWorker=function(e,n,o){const r=I&&"Worker"in self,a=t.ref(),s=t.ref(),l=t.ref(!r),u=t.ref(!r);if(!r)return l.value=!0,{worker:void 0,data:s,postMessage:g,terminate:g,errorEvent:a,errored:u,terminated:l};const i=new Worker(e,o),c=e=>i.postMessage(e);function v(){i.terminate(),l.value=!0}return i.addEventListener("message",e=>{s.value=e.data},y),i.addEventListener("error",e=>{a.value=e,u.value=!0},y),t.onUnmounted(v),n&&c(n),{worker:i,data:s,postMessage:c,terminate:v,errorEvent:a,errored:u,terminated:l}},e.useWorkerFunction=function(e,n){const o=I&&"Worker"in self,r=t.computed(()=>n&&a(n.dependencies)||[]),s=t.computed(()=>n&&a(n.timeout));if(!o)return D(e,{lazy:!0,throwException:!0});const l=D((...n)=>new Promise((o,a)=>{const u=function(e,t){const n=[t.length>0?`importScripts("${t.join('","')}");`:"","onmessage=",`(${oe.toString()})(${e.toString()})`],o=new Blob(n,{type:"text/javascript"});return URL.createObjectURL(o)}(e,r.value),i=new Worker(u);let c=-1;const v=s.value,d=()=>{i.terminate(),URL.revokeObjectURL(u),clearTimeout(c),m()},f=n.length===e.length+1&&t.isRef(n[n.length-1])&&!1===n[n.length-1].value?t.computed(()=>l.cancelled.value||n[n.length-1].value):l.cancelled,m=f?t.watch(f,()=>{d(),o(void 0)},{immediate:!1}):g;i.addEventListener("message",e=>{e.data[0]?o(e.data[1]):a(e.data[1]),d()},y),i.addEventListener("error",e=>{d(),a(e)},y),i.postMessage([...n]),v&&(c=setTimeout(()=>{l.cancel(`[WebWorker] timeout after ${v}ms`)},v))}),{lazy:!0,throwException:!0});return l},e.wrap=s,Object.defineProperty(e,"__esModule",{value:!0}),e}({},vueCompositionApi,Vue);

@@ -1,1 +0,1 @@

var vueComposable=function(e,t){"use strict";function n(e){return t.isRef(e)?e.value:e}function o(e){return t.isRef(e)?e:t.ref(e)}const r=Array.isArray,a=e=>"function"==typeof e,u=e=>"string"==typeof e,s=e=>"boolean"==typeof e,l=e=>c(e)&&a(e.getTime),i=e=>"number"==typeof e,c=e=>null!==e&&"object"==typeof e,v=e=>c(e)&&!!e.tagName;function d(e){return c(e)&&a(e.then)&&a(e.catch)}const f=()=>{},m=()=>!1,p={passive:!0};function h(e){return new Promise(t=>{setTimeout(t,e)})}const g=2**32-2;function y(e,t,n){return e<t?t:e>n?n:e}const w="undefined"!=typeof window;function b(e,...t){for(let o=0;o<t.length;o++){const r=t[o];if(void 0===r||!c(r))continue;const a=Object.keys(r);for(let t=0;t<a.length;t++){const o=a[t],u=n(r[o]),s=typeof u,l=typeof e[o];void 0!==e[o]&&s!==l||(e[o]=c(u)?b(e[o]||{},u):r[o])}}return e}function E(e,n,r,a){let u=f;if(e){const s=o(e),l=e=>e.removeEventListener(n,r),i=e=>e.addEventListener(n,r,a),c=t.watch(s,(e,t,n)=>{e&&(i(e),n(()=>l(e)))},{immediate:!0});u=()=>{l(s.value),c()}}return u}function S(e,t,n){return M(e,t,n)}function M(e,t=50,n={isImmediate:!1}){let o;return function(...r){const a=this,u=n.isImmediate&&void 0===o;void 0!==o&&clearTimeout(o),o=setTimeout((function(){o=void 0,n.isImmediate||e.apply(a,r)}),t),u&&e.apply(a,r)}}function I(e,n,o){const r=t.ref(0),a=t.ref(0),u=t.ref(0),s=t.ref(0);let l=e=>{r.value=e.x,a.value=e.y,u.value=e.pageX,s.value=e.pageY};const[c,v]=i(n)?[void 0,n]:[n,o];v&&(l=S(l,o));const d=E(e,"mousemove",l,c);return{mouseX:r,mouseY:a,pageX:u,pageY:s,remove:d}}const $=["mousedown","touchstart"];function k(e,n){if(!e)throw new Error(`[usePromise] argument can't be '${e}'`);if("function"!=typeof e)throw new Error("[usePromise] expects function, but received "+typeof e);const[o,r]=s(n)?[n,!1]:c(n)?[n.lazy,n.throwException]:[!1,!1],a=t.ref(!1),u=t.ref(null),l=t.ref(null),i=t.ref(),v=async(...t)=>{a.value=!0,u.value=null;const n=t&&e.length!==t.length&&t.length>0&&s(t[t.length-1])?t[t.length-1]:r,o=i.value=e(...t);try{const e=await o;return i.value===o&&(l.value=e),e}catch(e){return i.value===o&&(u.value=e,l.value=null),n?o:void 0}finally{i.value===o&&(a.value=!1)}};return o||v(),{exec:v,result:l,promise:i,loading:a,error:u}}function L(e,n){const o=t.ref(!1);let r=void 0;const a=k((...t)=>{return n=e(...t),new Promise((e,t)=>{r=e=>{o.value=!0,t(e)},n.then(e).catch(t)});var n},n);return!t.getCurrentInstance()||c(n)&&!1===n.unmountCancel||t.onUnmounted(()=>r&&r()),{...a,cancel:e=>{r&&r(e)},cancelled:o}}const x=Symbol(""),R=Symbol(""),C=async(e,t,n,o)=>{const r=t[x].value;let a=-1;const u=e.maxRetries||9001,s=e.retryDelay||T;t.retryErrors.value=[],t.isRetrying.value=!1,t.nextRetry.value=void 0;let c=void 0;do{let e=!1,v=null;try{if(++a,v=o?n(...o):n(),d(v)&&(v=await v),t[R].value)return null;e=!0}catch(e){v=null,t.retryErrors.value.push(e)}if(r!==t[x].value)return v;if(e)return t.isRetrying.value=!1,t.nextRetry.value=void 0,v;if(a>=u)return t.isRetrying.value=!1,t.nextRetry.value=void 0,Promise.reject(new Error("[useRetry] max retries reached "+u));t.isRetrying.value=!0;const f=Date.now(),m=s(a),p=d(m)?await m:m;if(!d(m)||p){if(i(p))c=p;else{if(!l(p))throw new Error(`[useRetry] invalid value received from options.retryDelay '${typeof p}'`);c=p.getTime()}c<f?t.nextRetry.value=f+c:(t.nextRetry.value=c,c-=f),c>0&&await h(c)}if(t[R].value)return null;if(r!==t[x].value)return v}while(a<9e3);return null};const T=()=>0;const O=Symbol("");function D(e,t){a(e.provide)?e.provide(O,t):console.warn("[vue-composable] devtools is not supported for vue 2")}function P(){const e={},n=t.inject(O,e);if(n!==e)return n;console.warn("[vue-composable] devtools not found, please run app.use(VueComposableDevtools)")}let j=void 0;j=e=>{let t;const n=[],o=[],r=new Proxy({},{get:(e,o)=>t?t.on[o]:o in e?e[o]:e[o]=(...e)=>{n.push({type:o,args:e})}}),a=new Proxy({on:r},{get:(e,n)=>"on"===n?e.on:t?t[n]:n in e?e[n]:e[n]=(...e)=>{o.push({type:n,args:e})}});return e.then(e=>{t=e,async function(e,t,n){setTimeout(async()=>{const o=["addTimelineLayer","addInspector","sendInspectorTree","sendInspectorState","addTimelineEvent"];for(const t of o){for(const o of n.filter(e=>e.type===t))e[t](...o.args);await h(20)}new Set(n.filter(e=>"notifyComponentUpdate"===e.type).map(e=>e.args[0])).forEach(t=>e.notifyComponentUpdate(t)),t.forEach(t=>e.on[t.type](...t.args)),t.length=0,n.length=0},100)}(t,n,o)}),a};var A=j;const F=(e,t="vue-composable",n="Vue-composable devtools plugin")=>{const o=new Promise(e=>{});D(e,A(o))},U={install:(e,t={id:"vue-composable",label:"Vue-composable devtools plugin"})=>F(e,t.id,t.label)};function V(e){if(!e)return{};const t=!!e.__v_isRef,n=t&&!!e.effect,o=!!e.__v_reactive,r=n?"Computed":t?"Ref":o?"Reactive":null;return{...r?{objectType:r}:{},...e.effect?{raw:e.effect.raw.toString()}:{}}}function W(e){return e&&(s(e.isJson)||s(e.parseImmediate)||s(e.unmountCancel))}let _=void 0;let N=void 0,z=void 0;let B=void 0,H=void 0;function K(e,n){const o=w&&"BroadcastChannel"in self,r=t.ref(null),a=t.ref(null),u=t.ref(null),s=t.ref(!1),l=t.ref(!1);let i=f,c=f,v=f;if(o){const o=new BroadcastChannel(e);o.addEventListener("messageerror",e=>{u.value=e,s.value=!0},p),o.addEventListener("message",e=>{a.value=e,r.value=e.data},p),i=e=>o.postMessage(e),c=()=>{o.close(),l.value=!0},v=(e,n)=>{o.addEventListener("message",e,n),t.onUnmounted(()=>o.removeEventListener("message",e))},t.onUnmounted(()=>{n&&n(),c()})}return{supported:o,data:r,messageEvent:a,errorEvent:u,errored:s,isClosed:l,send:i,close:c,addListener:v}}function q(e,t){const n=getComputedStyle(e).getPropertyValue(t);return n?n.trim():null}function X(e,t,n){e.style.setProperty(t,n)}const Y={attributes:!0,childList:!0,subtree:!0},J=e=>e.length<=2||"-"!==e[0]||"-"!==e[1]?"--"+e:e;const Q=e=>function(t){const n=t.data||[];return new Promise(t=>{try{Promise.resolve(e.apply(e,n)).then(e=>t(postMessage([!0,e]))).catch(e=>t(postMessage([!1,e])))}catch(e){t(postMessage([!1,e]))}})};function G(e){const n=!!w&&"matchMedia"in window;let o=void 0,r=void 0,a=f;if(n){o=t.ref(matchMedia(e)),r=t.ref(o.value.matches);const n=e=>{r.value=e.matches};o.value.addEventListener("change",n,p);const a=()=>o.value.removeEventListener("change",n);t.onUnmounted(a)}else o=t.ref({}),r=t.ref(!1);return{supported:n,mediaQueryList:o,matches:r,remove:a}}function Z(e,n){const{addListener:o,send:r,close:a,supported:u}=K(e,()=>y()),s=Date.now(),l=t.ref(!1),i=t.ref(0),v=t.computed(()=>1!==i.value||l.value),d=t.ref([]),f=t.ref(n);let m=!1,h=void 0;r({type:0});const g=()=>r({type:5,id:s}),y=()=>{0!==d.value.length&&(l.value&&r({type:3,mind:1,id:Math.min(...d.value)}),r({type:4,id:s}))};return o(e=>{switch(e.data.type){case 0:r({type:2,value:f.value,mind:i.value});break;case 4:{const t=d.value.indexOf(e.data.id);t>=0&&d.value.splice(t,1),h===e.data.id&&d.value.length>0&&r({type:3,mind:1,id:Math.min(s,...d.value)});break}case 2:m=!0,f.value=e.data.value,i.value=e.data.mind;break;case 3:i.value=e.data.mind,h=1===e.data.mind&&e.data.id||void 0,l.value=h===s,l.value&&(d.value=[],g());break;case 5:d.value=[e.data.id],r({type:6,id:s});break;case 6:d.value.push(e.data.id)}},p),g(),t.watch(f,(e,t)=>{if(m)m=!1;else{if(1===i.value&&!1===l.value)return m=!0,void(f.value=t);r({type:2,mind:i.value,value:c(e)?{...e}:e}),m=!1}},{deep:!0,immediate:!1}),w&&window.addEventListener("unload",y,p),t.onUnmounted(()=>{y(),a()}),{supported:u,id:s,data:f,master:l,mind:i,editable:v,targets:d,ping:g,setMind:e=>{switch(e){case 1:l.value=!0;break;case 0:l.value=!1}i.value=e,r({type:3,id:s,mind:i.value})},addListener:o}}const ee="no-scroll";function te(e,n){const o=Symbol(),r=t.inject(e,o);return r===o?n():r}function ne(e,n){const a=o(n),s=o(e);return c(a.value)||t.isRef(n)?[void 0!==s.value?s:void 0,a]:!c(s.value)||r(s.value)||u(s.value)?[s.value?s:void 0,void 0]:[void 0,s]}function oe(e,o){const[r,a]=ne(e,o),u=t.computed(()=>new Intl.NumberFormat(n(r),n(a))),s=(e,t,o)=>(t||o?new Intl.NumberFormat(n(o)||n(r),{...n(a),...n(t)}):u.value).format(n(e));return{format:(e,n,o)=>t.computed(()=>s(e,n,o)),formatString:s,formatter:u}}function re(e){if(e)return i(e)?e:ae(e)}const ae=e=>{const t=e.match(/^(\d+)px$/);if(t)return+t[1]};function ue(e){const n={},o=new Map,r=t.ref();let a=[];const u=[];for(const r in e){const s=e[r],l=re(s);if(void 0!==l){const e=t.ref(!1);n[r]=e,o.set(l,{name:r,valid:e}),a.push(l)}else{const{matches:e,remove:t}=G(s);n[r]=e,u.push(t)}}a=a.sort((e,t)=>t-e);const s=w?()=>{const e=window.innerWidth;let t=void 0;for(let n=0;n<a.length;n++){const r=a[n],u=o.get(r);u.valid.value=e>=r,e>=r&&void 0===t&&(t=u.name)}r.value=t}:f,l=S(s,10),i=w?()=>window.removeEventListener("resize",l):f;return w&&(t.onMounted(()=>{s(),window.addEventListener("resize",l,p)}),t.onUnmounted(()=>{i(),u.forEach(e=>e())})),{...n,remove:i,current:r}}const se=Symbol(""),le={sm:640,md:768,lg:1024,xl:1280};function ie(e){return c(e)&&c(e.theme)&&c(e.theme.screens)}function ce(e){return!!c(e)&&(u(e.min)||u(e.max)||i(e.min)||i(e.max))}function ve(e){return i(e)?e+"px":e}function de(e){const t=[];if(r(e)){const n=e.map(de);for(let e=0;e<n.length;e++){const o=n[e];t.push(...o)}}else c(n=e)&&u(n.raw)?t.push(e.raw):ce(e)?t.push(function(e){return ce(e)?`(${[e.max&&"max-width: "+ve(e.max),e.min&&"min-width: "+ve(e.min)].filter(Boolean).join(" and ")})`:""}(e)):(u(e)||i(e))&&t.push(`(min-width: ${ve(e)})`);var n;return t}function fe(e){const n=ie(e)?e.theme.screens:e;if(ie(e))for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];c(t)?n[e]=de(n[e]).join(" or "):u(t)&&(t.endsWith("px")||(n[e]=de(n[e]).join(" or ")))}const o=ue(n);return t.provide(se,o),o}function me(e,t){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&(t&&0!==t.length||!1)}function pe(e){try{if(!e)return!1;const t=":$";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return me(t,e)}}function he(e,t){try{return e.parse(t)}catch{return t}}let ge=void 0;function ye(e,n=JSON,r=10){const a=w?window[e]:void 0,s=pe(a);ge||(ge=new Map,w&&window.addEventListener("storage",e=>{if(e.newValue===e.oldValue)return;let t=ge.get("localStorage");t=e.storageArea===window.localStorage?ge.get("localStorage"):ge.get("sessionStorage"),t&&Object.keys(t.$syncKeys).length>0&&(null===e.key?t.clear():t.$syncKeys[e.key]&&(null===e.newValue?t.removeItem(e.key):t.updateItem(e.key,e.newValue)))}));let l,i=ge.get(e);return s&&a?i?l=i.$quotaError:(l=t.ref(!1),i={$refMap:new Map,$watchHandlers:new Map,$syncKeys:{},$quotaError:l,key:a.key,length:a.length,setSync(e,t){t?this.$syncKeys[e]=!0:delete this.$syncKeys[e]},clear(){this.$refMap.forEach((e,t)=>this.removeItem(t))},removeItem(e){const t=this.$refMap.get(e);t&&(t.value=void 0);const n=this.$watchHandlers.get(e);n&&n(),delete this.$syncKeys[e],this.$refMap.delete(e),a.removeItem(e)},getItem(e){const t=a.getItem(e);return t?this.setItem(e,he(n,t)):null},setItem(e,s){const i=o(s);this.$refMap.set(e,i);const c=(e,t)=>{try{const o=a.getItem(e),r=u(t)?t:n.stringify(t);a.setItem(e,r),o!==r&&w&&this.$syncKeys[e]&&window.dispatchEvent(new StorageEvent(e,{newValue:r,oldValue:o,storageArea:a}))}catch(e){l.value=me(e,a)}};c(e,s);const v=t.watch(i,M(t=>{c(e,t)},r),{immediate:!1,deep:!0});return this.$watchHandlers.set(e,v),i},updateItem(e,t){let o=this.$refMap.get(e);o&&(o.value=he(n,t))}},ge.set(e,i)):(l=t.ref(!1),i={}),{supported:s,quotaError:l,store:i,remove:()=>ge.delete(e)}}function we(e,n,o){const{supported:r,store:a}=ye("localStorage");let u=f,s=f,l=f,i=void 0;return r&&a?(l=t=>a.setSync(e,t),u=()=>a.removeItem(e),s=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n)),!1!==o&&l(!0)):i=t.ref(n),{supported:r,storage:i,clear:s,remove:u,setSync:l}}function be(e,n,o){const{supported:r,store:a}=ye("sessionStorage");let u=f,s=f,l=m,i=void 0;return r&&a?(u=()=>a.removeItem(e),s=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n))):i=t.ref(n),{supported:r,storage:i,clear:s,remove:u,setSync:l}}let Ee=void 0;function Se(e){const n=o(e.currentPage),r=o(e.pageSize),a=t.ref(0),u=o(e.total),s=t.computed({get:()=>a.value,set(e){i(e)&&(a.value=Math.min(e,u.value))}}),l=t.computed({get:()=>n.value,set(e){i(e)&&(n.value=y(e,1,v.value),s.value=(n.value-1)*c.value)}}),c=t.computed({get:()=>r.value,set(e){i(e)&&(r.value=e)}}),v=t.computed(()=>Math.ceil(u.value/c.value));l.value=n.value;return t.watch([u,c],e=>{l.value>v.value&&(l.value=v.value)},{immediate:!1}),{pageSize:c,total:u,currentPage:l,offset:s,lastPage:v,next:()=>++l.value,prev:()=>--l.value,first:()=>l.value=1,last:()=>l.value=v.value}}function Me(e){const n=1e3,o=e&&e.refreshMs||n,r=!e||!s(e.sync)||e.sync,u=e&&a(e.timeFn)&&e.timeFn||Date.now;let l=void 0,i=void 0;const c=t.ref(u()),v=()=>{clearInterval(l),clearTimeout(i)},d=w?()=>l=setInterval(()=>c.value=u(),o):f;if(r){const e=n-(c.value-Math.floor(c.value/n)*n);i=setTimeout(d,e)}else d();return t.onUnmounted(v),{now:c,remove:v}}function Ie(e,o){return t.computed(()=>{const a=n(e);if(!o)return a;const u=t.isRef(o)?t.reactive(o.value):t.reactive(o);return a.replace(/({?{[\w\s]*}?})/g,e=>{const t=e.replace("{","").replace("}","").trim();if(e[0]===e[1]&&"{"===e[0])return""+t;const o=r(u)?u[+t]:u[t];return void 0===o?e:""+n(o)})})}function $e(e,o,r=".",a=f){return t.computed(()=>{const t=n(e),u=n(o);if(void 0===t)return a(u,t,u,t);if(!u)return t;const s=u.split(r);let l=t;for(let e=0;e<s.length;e++){let n=s[e];if("]"===n[n.length-1]){const t=/\[[`'"]?([^`'"\]]*)[`'"]?\]/g;let o=n,r=t.exec(o);if(r){let a=r[0].length,u=r.index-a,l=1;do{r.index,u=r.index,a=r[0].length,n=n.slice(0,-r[0].length),s.splice(e+l,0,r[1]),++l}while(r=t.exec(o));if(!n&&"["===o[0]&&o.length>2)continue}else n="",console.warn(`[usePath] invalid path provided "${o}"`)}if(!c(l))return a(s.slice(0,e+1).join(r),l,u,t);if(!n)return a(s.slice(0,e+1).join(r),l,u,t);if(l=l[n],!l)return a(s.slice(0,e+1).join(r),l,u,t)}return l})}function ke(e){return void 0!==e.$value}const Le=(e,o,r)=>{const{$message:a,$validator:u,...s}=function(e){return c(e)}(o)?o:{$validator:o,$message:void 0},{$pending:l,$promise:i,$invalid:v,$error:f}=((e,o,r,a)=>{const u=t.ref(null),s=t.ref(!1),l=t.ref(),i=t.ref(!1);let c=void 0;const v=e=>{u.value=(async()=>{try{s.value=!0;const t=o(e,c);d(t)?i.value=!await t:i.value=!t,l.value=i.value?r.value:void 0}catch(e){throw i.value=!0,e}finally{s.value=!1}})().catch(e=>(l.value=n(e),i.value=!0,e))};return a.push(n=>{c=n,t.watch(()=>{try{o(e.value,c)}catch(e){}return e.value},v,{deep:!0,immediate:!0})}),{$promise:u,$pending:s,$invalid:i,$error:l}})(e,u,t.ref(a),r);return{$pending:l,$error:f,$promise:i,$invalid:v,$message:a,...s}},xe=(e,r)=>{const a={},u=ke(e)?o(e.$value):void 0;for(const o of Object.keys(e))if("$"!==o[0])if(u){const t=Le(u,e[o],r);a[o]={...t,$value:u}}else{const u=xe(e[o],r);let l,i,c=void 0;if(ke(u)){const e=Object.keys(u).filter(e=>"$"!==e[0]).map(e=>u[e]);l=t.computed(()=>e.map(e=>e.$error).map(e=>n(e)).filter(Boolean)),i=t.computed(()=>e.some(e=>!!n(e.$invalid)))}else{const e=Object.keys(u).map(e=>u[e]);l=t.computed(()=>e.map(e=>n(e.$errors)).filter(Boolean).filter(e=>e.some(Boolean))),c=t.computed(()=>e.some(e=>e.$anyDirty||s(n(e.$dirty))&&n(e.$dirty))),i=t.computed(()=>e.some(e=>!!n(e.$anyInvalid)))}a[o]={...u,$errors:l,$anyInvalid:i},c&&(a[o].$anyDirty=c)}else{if("$value"===o){a[o]=u;const e=t.ref(!1),n=t.watch(u,()=>{e.value=!0,n()},{immediate:!1,deep:!0});a.$dirty=e;continue}a[o]=e[o]}return a};const Re=Symbol("");function Ce(e){const r=t.ref(Object.keys(e.messages)),u=t.ref(e.messages),l=t.ref(e.locale),i=t.ref({});let c=t.ref();const v={},f=(e,n)=>{if(v[e])return v[e];const r=n.value[e];if(!r)return t.ref({});let u=a(r)?r():r;return d(u)?u.then(t=>v[e]=o(t)):a(r)?o(u):v[e]=t.computed(()=>n.value[e])},m=!!e.fallback&&(!s(e.notFoundFallback)||e.notFoundFallback);let p=!1;if(m){const t=f(e.fallback,u);d(t)?(t.then(e=>{c.value=e.value}),p=!0):c.value=t.value}else c.value={};const h=t.ref(0);t.watch(u,()=>h.value++,{deep:!0,immediate:!1}),t.watch([l,c,h],([t,o,r])=>{if(t===e.fallback&&m)i.value=o;else{const e=e=>i.value=b({},o,n(e)),r=f(t,u);d(r)?r.then(e):e(r)}},{immediate:!p});const g=(t,n)=>e.resolve?o(e.resolve(i.value,t,n)):Ie($e(i,t,".",(e,t,n,o)=>n),n);return{locale:l,locales:r,i18n:i,$t:g,$ts:(e,t)=>g(e,t).value,addLocale:(e,t)=>{r.value.indexOf(e)>=0||r.value.push(e),delete v[e],u.value[e]=t},removeLocale:t=>{const n=r.value.indexOf(t);if(n>=0){const o=[l.value,c.value&&e.fallback,...r.value].find(e=>e&&e!==t);o&&(t===e.fallback&&(c.value=void 0),t===l.value&&(l.value=o)),r.value.splice(n,1)}delete u.value[t],delete v[t]}}}function Te(e){const n=Ce(e);return t.provide(Re,n),n}const Oe=Symbol("");const De=Symbol(""),Pe={install(e){const n=t.ref(!0),o=t.readonly(n);{e._context.provides[De]=o;const t=e.mount;e.mount=(...e)=>{const o=t(...e);return n.value=!1,o}}}};return e.COMMIT="e6608db",e.FALSE_OP=m,e.MAX_ARRAY_SIZE=g,e.NO_OP=f,e.PASSIVE_EV=p,e.SCROLL_LOCK_CLASS=ee,e.UseDevtoolsApp=F,e.VERSION="1.0.0-beta.11",e.VUE_VERSION="3",e.VueComposableDevtools=U,e.buildI18n=Ce,e.debounce=M,e.deepClone=b,e.exponentialDelay=e=>{const t=100*Math.pow(2,e);return t+.2*t*Math.random()},e.exposeWorker=function(e){this.onmessage=async t=>{const n=e(t.data);if(void 0===n)this.postMessage(n);else if(null===n)this.postMessage(n);else if(r(n))this.postMessage(n);else if(n[Symbol.asyncIterator])for await(const e of n)this.postMessage(e);else if(n[Symbol.iterator])for(const e of n)this.postMessage(e);else this.postMessage(await n)}},e.getCssVariableFor=q,e.getDevtools=P,e.hydrationPlugin=Pe,e.injectFactory=te,e.isArray=r,e.isBoolean=s,e.isClient=w,e.isDate=l,e.isElement=v,e.isFunction=a,e.isNumber=i,e.isObject=c,e.isPromise=d,e.isString=u,e.isSymbol=e=>"symbol"==typeof e,e.minMax=y,e.noDelay=T,e.promisedTimeout=h,e.provideSSRTitle=function(e,t){const n=o(void 0===t?"":t);return e.provide(Oe,n),n},e.refShared=function(e,n){const o=t.getCurrentInstance(),r=n||o.vnode.scopeId;if(!r)return t.ref(e);const{data:a,supported:u}=Z(r,e);return a},e.setBreakpointTailwindCSS=fe,e.setCssVariableFor=X,e.setDevtools=D,e.setI18n=Te,e.storageAvailable=pe,e.unwrap=n,e.useArrayPagination=function(e,n){const r=o(e),a=Se({currentPage:1,pageSize:10,...n,total:t.computed(()=>r.value.length)}),u=t.computed(()=>{const e=r.value;return Array.isArray(e)?e.slice(a.offset.value,a.offset.value+a.pageSize.value):[]});return{...a,result:u}},e.useBreakpoint=ue,e.useBreakpointChrome=function(){return ue({mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560})},e.useBreakpointTailwindCSS=function(e){return te(se,()=>fe(e||le))},e.useBroadcastChannel=K,e.useCancellablePromise=L,e.useCssVariables=function(e,r,a){const s=w&&"MutationObserver"in self,[l,i]=t.isRef(r)||v(r)?[r,a||Y]:[s&&document.documentElement||{},r||Y],c=t.ref(!0),d={},m=[],p=Object.entries(e).map(e=>{const[t,r]=u(e[1])?[e[1]]:[e[1].name,e[1].value];return r&&(m.push(()=>X(n(l),t,n(r))),d[e[0]]=o(r)),[e[0],J(t)]});for(let e=0;e<p.length;e++){const[r,a]=p[e];d[r]||(d[r]=t.ref(t.isRef(l)&&!l.value||!s?null:q(n(l),a))),s&&t.watch([d[r],o(l)],e=>{c&&e[1]&&e[0]!==q(e[1],a)&&X(e[1],a,e[0])},{immediate:!t.isRef(l)})}if(!s)return{...d,stop:f,resume:f,supported:s,observing:c};const h=()=>{for(let e=0;e<p.length;e++){const[t,o]=p[e];d[t].value=q(n(l),o)}},g=new MutationObserver(h),y=()=>{g.disconnect(),c.value=!1},b=()=>{c.value||h(),g.observe(n(l),i),c.value=!0};return t.onUnmounted(y),t.isRef(l)?t.onMounted(()=>{m.forEach(e=>e()),t.watch(l,(e,t)=>{t&&y(),e&&b()})}):(w||l)&&(m.forEach(e=>e()),b()),{...d,supported:s,resume:b,stop:y,observing:c}},e.useCurrencyFormat=function(e,o,r){const a=n(e),u=!c(a),s=u?e:t.computed(()=>n(e).currency),[l,i]=ne(o,u?r:e),v=t.computed(()=>{const e=n(i)||{},t=n(s)||e.currency;return{style:"currency",...e,currency:t}}),d=oe(l),f=(e,t,o,r,a)=>{const u={...v.value,...n(r)},s=n(t)||u.currency,l=n(o)||u.currencyDisplay;return d.formatString(e,{...u,currency:s,currencyDisplay:l},a)};return{format:(e,n,o,r,a)=>t.computed(()=>f(e,n,o,r,a)),formatString:f}},e.useDateNow=function(e){return Me({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:Date.now})},e.useDebounce=S,e.useDevtoolsComponentState=function(e,o){const u=t.getCurrentInstance(),s=P();s&&u&&s.on.inspectComponent((t,s)=>{if(t.componentInstance!==u)return;const[l,i]=c(o)?[o.type,o.multiple]:["setup",!1];if(a(e))return void e(t.instanceData,s);let v=r(e)?e:Object.keys(e).map(t=>({type:l,key:t,value:n(e[t]),...V(e[t])}));if(!i){const e=new Set(t.instanceData.state.map(e=>e.key));v=v.filter(t=>!e.has(t.key))}t.instanceData.state.push(...v)})},e.useDevtoolsInspector=function(e,n=[]){const o=P(),r=t.ref(n),a=t.computed(()=>{if(!r.value)return new Map;const e=t.toRaw(r.value),n=new Map;for(const t of e)n.set(t.id,t);return n});if(o){const n=e.id;o.addInspector(e),o.on.getInspectorTree(o=>{if(o.inspectorId!=n)return;if(!r.value)return;const a=o.filter;let u=t.toRaw(r.value);o.filter&&(u=e.nodeFilter?e.nodeFilter(o.filter,u):u.filter(e=>e.id.indexOf(a)>=0||e.label.indexOf(a)>=0)),o.rootNodes=u}),o.on.getInspectorState(o=>{if(o.inspectorId!=n)return;const r=a.value.get(o.nodeId);if(r){const n=t.reactive(r.state);o.state=e.stateFilter?e.stateFilter("",n):n}}),t.watch(r,()=>{o.sendInspectorTree(n),o.sendInspectorState(n)},{immediate:!0,deep:!0})}return{nodes:r}},e.useDevtoolsTimelineLayer=function(e,t,n){const o=P();let r=f,a=f;return o&&(o.addTimelineLayer({id:e,label:t,color:n}),r=(t,n)=>o.addTimelineEvent({layerId:e,event:t,all:n}),a=e=>r({...e,time:Date.now()})),{id:e,addEvent:r,pushEvent:a}},e.useEvent=E,e.useFetch=function(e,n){const o=t.ref(null),r=t.ref(""),a=t.ref(),s=t.ref(null),[l,i,c]=W(e)?[!1!==e.isJson,!1!==e.parseImmediate,!1!==e.unmountCancel]:W(n)?[!1!==n.isJson,!1!==n.parseImmediate,!1!==n.unmountCancel]:[!0,!0,!0],v=e?u(e)?n:W(e)?e:u(e.url)?n:e:void 0,d=t.ref(!1),f=t.ref();let m=void 0;const p=e=>{m&&(m.abort(),d.value=!0,f.value=e)},h=k(async(e,t)=>{m=new AbortController;const n=await fetch(e,{signal:m.signal,...v,...t});if(n){const e=[l?n.clone().json().then(e=>o.value=e).catch(e=>{o.value=null,s.value=e}):Promise.resolve(),n.clone().blob().then(e=>{a.value=e}),n.clone().text().then(e=>{r.value=e})];i&&await Promise.all(e)}return n},!0),g=t.computed(()=>h.result.value&&h.result.value.status||null),y=t.computed(()=>h.result.value&&h.result.value.statusText||null);return e&&(u(e)||u(e.url))&&h.exec(e,void 0,!1),c&&t.getCurrentInstance()&&t.onUnmounted(()=>{m&&p("unmounted")}),{...h,cancel:p,isCancelled:d,cancelledMessage:f,text:r,blob:a,json:o,jsonError:s,status:g,statusText:y}},e.useFormat=Ie,e.useGeolocation=function(e){const n=w&&!!navigator.geolocation,o=t.ref(e?!1===e.immediate:void 0),r=t.ref(null),a=t.ref(null),u=t.ref(null),l=t.ref(e&&e.enableHighAccuracy||null);let i=f;if(n){const n=e=>{a.value=e.timestamp,u.value=e.coords,r.value=null},c=e=>{a.value=Date.now(),u.value=null,r.value=e},v=()=>!0!==o.value&&f&&navigator.geolocation.clearWatch(f);let d=()=>navigator.geolocation.getCurrentPosition(n,c,e);i=o.value?()=>{o.value?o.value=!1:d()}:d;let f=0;t.onMounted(()=>t.watch([l,o],t=>{v();const o=s(t[0])?t[0]:e?e.enableHighAccuracy:void 0;f=navigator.geolocation.watchPosition(n,c,e?{...e,enableHighAccuracy:o}:{enableHighAccuracy:o})},{immediate:!o.value})),t.onUnmounted(v)}return{supported:n,refresh:i,error:r,timestamp:a,coords:u,highAccuracy:l}},e.useHydration=function(){return t.inject(De,t.computed(()=>!1))},e.useI18n=function(e){return e?Te(e):t.inject(Re)},e.useIntersectionObserver=function(e,r){const a=w&&"IntersectionObserver"in window,u=e?o(e):void 0,s=!u||!v(u.value)&&u.value?void 0:u,l=t.computed(()=>r?n(r):s?void 0:n(e)),i=t.ref([]),c=t.computed(()=>i.value.length>0&&i.value.every(e=>e.isIntersecting)),d=e=>{i.value=e};let m=t.ref();a&&t.watch(l,e=>{m.value&&m.value.disconnect();const t=e&&e&&{root:n(e.root),rootMargin:n(e.rootMargin),threshold:n(e.threshold)}||void 0;m.value=new IntersectionObserver(d,t);i.value.map(e=>e.target).forEach(m.value.observe)},{deep:!0,immediate:!0});const p=a?e=>{const t=n(e);m.value.observe(t)}:f,h=a?e=>{const t=n(e);m.value.unobserve(t)}:f,g=()=>m.value.disconnect();return s&&(t.onMounted(()=>{s.value&&p(s)}),t.onUnmounted(()=>{g()})),{supported:a,elements:i,observe:p,unobserve:h,disconnect:g,isIntersecting:c}},e.useInterval=function(e,n,...o){let r=void 0;const a=(t,...a)=>{if(u(),!t&&!n)return;return r=setInterval(e,t||n,...a&&a.length?a:o)},u=()=>{r&&(clearInterval(r),r=void 0)};return i(n)&&a(),t.onUnmounted(u),{remove:u,start:a}},e.useIntlDateTimeFormat=function(e,o){const[r,a]=ne(e,o),s=t.computed(()=>new Intl.DateTimeFormat(n(r),n(a))),l=(e,t,o)=>{const l=t||o?new Intl.DateTimeFormat(n(o)||n(r),{...n(a),...n(t)}):s.value,i=n(e);return l.format(u(i)?new Date(i):i)};return{format:(e,n,o)=>t.computed(()=>l(e,n,o)),formatString:l,formatter:s}},e.useIntlNumberFormat=oe,e.useLanguage=function(){if(B||(B=w?t.ref(navigator.language):t.ref("")),!H)if(w){H=t.ref(navigator.languages);const e=()=>{B.value=navigator.language,H.value=navigator.languages};window.addEventListener("languagechange",e,p)}else H=t.ref([]);return{language:B,languages:H}},e.useLocalStorage=we,e.useLockScroll=function(e,a){const s=u(e)?t.ref([]):r(t.unref(e))?o(e):o([e]),l=u(a)?{lockedClass:a,auto:!0}:a||{auto:!0};l.lockedClass||(l.lockedClass=ee);const i=t.ref(!1),c=t.computed(()=>s.value.map(e=>t.ref(e))),v=t.watch([i,c],([e,t],[o,r])=>{for(const a of t){const t=n(a);if(l.lockedClass){if(!t)return;t.classList.toggle(l.lockedClass,e)}l.onChange&&(o===e&&r.find(e=>n(e)===t)||l.onChange(t,e))}},{flush:"sync",deep:!1}),d=()=>i.value=!0,f=()=>i.value=!1;return u(e)&&t.onMounted(()=>s.value=Array.from(document.querySelectorAll(e))),!1!==l.auto&&(t.onMounted(d),t.onActivated(d),t.onDeactivated(f),t.onBeforeUnmount(f)),{locked:i,lock:d,unlock:f,remove:v}},e.useMatchMedia=G,e.useMouseDistanceFromElement=function(e,o,r){let a=void 0,u=f;if(w){const{pageX:s,pageY:l,remove:i}=I(window,o,r);a=t.computed(()=>{const t=n(e);return t?Math.floor(Math.sqrt(Math.pow(s.value-(t.offsetLeft+t.clientWidth/2),2)+Math.pow(l.value-(t.offsetTop+t.clientHeight/2),2))):0}),u=i}else a=t.computed(()=>-1);return{distance:a,remove:u}},e.useNetworkInformation=function(){const e=!!w&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection),n=!!e,o=t.ref(0),r=t.ref(0),a=t.ref("none"),u=t.ref(0),s=t.ref(!1),l=t.ref("none");let i=f,c=f;return e&&(i=()=>{o.value=e.downlink,r.value=e.downlinkMax,a.value=e.effectiveType,u.value=e.rtt,s.value=e.saveData,l.value=e.type},c=E(e,"change",i,p),i()),{supported:n,downlink:o,downlinkMax:r,effectiveType:a,rtt:u,saveData:s,type:l,remove:c}},e.useNow=Me,e.useOnMouseMove=I,e.useOnOutsidePress=function(e,t){if(!w)return()=>{};const n=o(e),r=$.find(e=>"on"+e in document.documentElement);return E(document,r,e=>n.value&&!n.value.contains(e.target)&&t(e),{passive:!0})},e.useOnResize=function(e,n,r){const a=o(e),u=t.ref(a.value&&a.value.clientHeight),s=t.ref(a.value&&a.value.clientWidth);let l=()=>{u.value=a.value.clientHeight,s.value=a.value.clientWidth};const[c,v]=i(n)?[void 0,n]:[n,r];v&&(l=S(l,r));const d=w?E(window,"resize",l,c||p):f;return t.isRef(e)&&!e.value&&t.onMounted(l),{height:u,width:s,remove:d}},e.useOnScroll=function(e,n,r){const a=e=>!(i(e)||s(e)||!v(e)&&!t.isRef(e)||!e),u=a(e)?o(e):t.ref(w&&window||void 0),l=a(e)?u:t.ref(w&&window.document.scrollingElement||void 0),c=t.ref(l.value&&l.value.scrollTop||0),d=t.ref(l.value&&l.value.scrollLeft||0);let f=()=>{c.value=l.value.scrollTop,d.value=l.value.scrollLeft};const m=(...e)=>l.value&&l.value.scrollTo&&l.value.scrollTo.apply(l.value,e),h=e=>m({top:e}),g=e=>m({left:e}),[y,b]=i(e)||!e?[p,e]:i(n)?[p,n]:[n,r];b&&(f=S(f,r));const M=E(u,"scroll",f,y),I=t.watch(c,h,{immediate:!1}),$=t.watch(d,g,{immediate:!1});return{scrollTop:c,scrollLeft:d,scrollTo:m,remove:()=>{M(),$(),I()},scrollTopTo:h,scrollLeftTo:g}},e.useOnline=function(){const e=w&&"onLine"in navigator;return e||(_=t.ref(!1)),_||(_=t.ref(navigator.onLine),window.addEventListener("offline",()=>_.value=!1,p),window.addEventListener("online",()=>_.value=!0,p)),{supported:e,online:_}},e.usePageVisibility=function(){return z||(z=t.ref(w&&document.hidden)),N||(w?(N=t.ref(document.visibilityState),document.addEventListener("visibilitychange",()=>{N.value=document.visibilityState,z.value=document.hidden},p)):N=t.ref("visible")),{visibility:N,hidden:z}},e.usePagination=Se,e.usePath=$e,e.usePerformanceNow=function(e){return Me({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:()=>performance.now()})},e.usePromise=k,e.usePromiseLazy=function(e,t=!1){return k(e,{lazy:!0,throwException:t})},e.useRetry=function(e,n){const o=!e||a(e)?{}:e,r=a(e)?e:n;if(!a(e)&&!c(e))throw new Error("[useRetry] options needs to be 'object'");if(r&&!a(r))throw new Error("[useRetry] factory needs to be 'function'");const u=t.ref(!1),s=t.ref(),l=t.ref([]),i={value:!1},v={isRetrying:u,retryCount:t.computed(()=>l.value.length),nextRetry:s,retryErrors:l,[x]:{value:0},[R]:i},d=r?(...e)=>(++v[x].value,C(o,v,r,e)):e=>(++v[x].value,C(o,v,e,void 0));return{...v,cancel:()=>{v.isRetrying.value=!1,v.retryErrors.value.push(new Error("[useRetry] cancelled")),v.nextRetry.value=void 0,i.value=!0},exec:d}},e.useSSRTitle=function(e){const n=Symbol(),o=t.inject(Oe,n);return o===n||void 0===o?t.ref(u(e)?e:""):(u(e)&&(o.value=e),o)},e.useSessionStorage=be,e.useShare=function(e){const n=w&&"share"in navigator;let o=()=>Promise.resolve(!1),r=m,a=t.ref(!1),u=t.ref(!1);return n&&(o=e=>(a.value=!1,u.value=!1,navigator.share(e).then(e=>(a.value=!0,e)).catch(e=>(a.value=!1,u.value=!0,!1))),r=e=>navigator.canShare(e),e&&r(e)&&o(e)),{supported:n,share:o,canShare:r,shared:a,cancelled:u}},e.useSharedRef=Z,e.useStorage=function(e,t,n){return void 0===Ee&&(Ee=ye("localStorage").supported),Ee?we(e,t,n):be(e,t)},e.useTimeline=function(e,n){const o=t.ref([]),r=n&&n.clone?n.clone:e=>e,a=n&&n.maxLength||g;return t.watch(e,(e,t)=>{o.value.unshift({item:r(t),date:new Date}),o.value.length>a&&o.value.pop()},{immediate:!1,flush:"sync",...n}),t.readonly(o)},e.useTitle=function(e=null){const n=t.ref(u(e)?e:document.title),o=new MutationObserver(e=>{n.value=e[0].target.textContent});t.watch(n,(e,t)=>{u(e)&&e!==t&&(document.title=e)},{immediate:!0,flush:"sync"});const r=document.querySelector("title");return o.observe(r,{childList:!0}),t.onUnmounted(()=>o.disconnect()),n},e.useUndo=function(e,n){const r=o(e),a=t.ref([]),u=t.ref(0),s=n&&n.maxLength||g,l=n&&n.clone||(e=>e),i=t.computed(()=>{const e=0===u.value?1:u.value;return a.value.slice(e)}),c=t.computed(()=>{const e=0===u.value?1:0;return a.value.slice(e,u.value)});t.watch(r,e=>{if(a.value[u.value]===e)return;if(u.value>0){const e=u.value;a.value.splice(0,e),u.value=0}a.value.length>s&&a.value.pop();const t=l(e);a.value.unshift(t)},{...n,immediate:!0,flush:"sync"});const v=e=>{const t=Math.sign(e)<=0?Math.max(e,-c.value.length):Math.min(e,i.value.length);u.value+=t,r.value=a.value[u.value]};return{value:r,undo:(e=1)=>v(e),redo:(e=1)=>v(-e),jump:v,prev:i,next:c}},e.useVModel=function(e,n){const o=t.getCurrentInstance();return o?t.computed({get:()=>e[n],set(e){o.emit("update:"+n,e)}}):t.ref()},e.useValidation=function(e){const n=[],o=xe({input:e},n),r=t.reactive(o.input);return n.forEach(e=>e(r)),r},e.useValueSync=function(e,n){const a=o(e),u=2===arguments.length?t.isRef(arguments[1])&&r(arguments[1].value)?arguments[1]:t.ref([o(arguments[1])]):t.ref(Array.from(arguments).slice(1).map(e=>o(e)));u.value.forEach(e=>{e.value=a.value});let s=u.value.length;return t.watch([a,u],([e,t])=>{if(s<t.length)t.forEach(t=>{t.value!==e&&(t.value=e)});else{s=t.length;for(const n of t)if(n.value!==e)return void(a.value=n.value)}},{deep:!0}),t.watch(a,e=>{u.value.forEach(t=>t.value=e)},{deep:!0,flush:"sync"}),u},e.useWebSocket=function(e,n){const o=w&&"WebSocket"in window;let r=null;const a=t.ref(null),u=t.ref(null),s=t.ref(null),l=t.ref(!1),i=t.ref(!1),c=t.ref(!1);let v=f,d=f;return o&&(r=new WebSocket(e,n),r.addEventListener("message",e=>{a.value=e,s.value=e.data}),r.addEventListener("error",e=>{u.value=e,c.value=!0}),r.addEventListener("close",()=>{l.value=!1,i.value=!0}),r.addEventListener("open",()=>{l.value=!0,i.value=!1}),v=e=>r.send(e),d=(e,t)=>{r.close(e,t)}),{supported:o,ws:r,send:v,close:d,messageEvent:a,errorEvent:u,data:s,isOpen:l,isClosed:i,errored:c}},e.useWebStorage=ye,e.useWorker=function(e,n,o){const r=w&&"Worker"in self,a=t.ref(),u=t.ref(),s=t.ref(!r),l=t.ref(!r);if(!r)return s.value=!0,{worker:void 0,data:u,postMessage:f,terminate:f,errorEvent:a,errored:l,terminated:s};const i=new Worker(e,o),c=e=>i.postMessage(e);function v(){i.terminate(),s.value=!0}return i.addEventListener("message",e=>{u.value=e.data},p),i.addEventListener("error",e=>{a.value=e,l.value=!0},p),t.onUnmounted(v),n&&c(n),{worker:i,data:u,postMessage:c,terminate:v,errorEvent:a,errored:l,terminated:s}},e.useWorkerFunction=function(e,o){const r=w&&"Worker"in self,a=t.computed(()=>o&&n(o.dependencies)||[]),u=t.computed(()=>o&&n(o.timeout));if(!r)return L(e,{lazy:!0,throwException:!0});const s=L((...n)=>new Promise((o,r)=>{const l=function(e,t){const n=[t.length>0?`importScripts("${t.join('","')}");`:"","onmessage=",`(${Q.toString()})(${e.toString()})`],o=new Blob(n,{type:"text/javascript"});return URL.createObjectURL(o)}(e,a.value),i=new Worker(l);let c=-1;const v=u.value,d=()=>{i.terminate(),URL.revokeObjectURL(l),clearTimeout(c),h()},m=n.length===e.length+1&&t.isRef(n[n.length-1])&&!1===n[n.length-1].value?t.computed(()=>s.cancelled.value||n[n.length-1].value):s.cancelled,h=m?t.watch(m,()=>{d(),o(void 0)},{immediate:!1}):f;i.addEventListener("message",e=>{e.data[0]?o(e.data[1]):r(e.data[1]),d()},p),i.addEventListener("error",e=>{d(),r(e)},p),i.postMessage([...n]),v&&(c=setTimeout(()=>{s.cancel(`[WebWorker] timeout after ${v}ms`)},v))}),{lazy:!0,throwException:!0});return s},e.wrap=o,e}({},VueRuntimeCore);
var vueComposable=function(e,t){"use strict";function n(e){return t.isRef(e)?e.value:e}function o(e){return t.isRef(e)?e:t.ref(e)}const r=Array.isArray,a=e=>"function"==typeof e,u=e=>"string"==typeof e,s=e=>"boolean"==typeof e,l=e=>c(e)&&a(e.getTime),i=e=>"number"==typeof e,c=e=>null!==e&&"object"==typeof e,v=e=>c(e)&&!!e.tagName;function d(e){return c(e)&&a(e.then)&&a(e.catch)}const f=()=>{},m=()=>!1,p={passive:!0};function h(e){return new Promise(t=>{setTimeout(t,e)})}const g=2**32-2;function y(e,t,n){return e<t?t:e>n?n:e}const w="undefined"!=typeof window;function b(e,...t){for(let o=0;o<t.length;o++){const r=t[o];if(void 0===r||!c(r))continue;const a=Object.keys(r);for(let t=0;t<a.length;t++){const o=a[t],u=n(r[o]),s=typeof u,l=typeof e[o];void 0!==e[o]&&s!==l||(e[o]=c(u)?b(e[o]||{},u):r[o])}}return e}function E(e,n,r,a){let u=f;if(e){const s=o(e),l=e=>e.removeEventListener(n,r),i=e=>e.addEventListener(n,r,a),c=t.watch(s,(e,t,n)=>{e&&(i(e),n(()=>l(e)))},{immediate:!0});u=()=>{l(s.value),c()}}return u}function S(e,t,n){return M(e,t,n)}function M(e,t=50,n={isImmediate:!1}){let o;return function(...r){const a=this,u=n.isImmediate&&void 0===o;void 0!==o&&clearTimeout(o),o=setTimeout((function(){o=void 0,n.isImmediate||e.apply(a,r)}),t),u&&e.apply(a,r)}}function I(e,n,o){const r=t.ref(0),a=t.ref(0),u=t.ref(0),s=t.ref(0);let l=e=>{r.value=e.x,a.value=e.y,u.value=e.pageX,s.value=e.pageY};const[c,v]=i(n)?[void 0,n]:[n,o];v&&(l=S(l,o));const d=E(e,"mousemove",l,c);return{mouseX:r,mouseY:a,pageX:u,pageY:s,remove:d}}const $=["scrollBy","scrollTo","scrollIntoView"];const k=["mousedown","touchstart"];function L(e,n){if(!e)throw new Error(`[usePromise] argument can't be '${e}'`);if("function"!=typeof e)throw new Error("[usePromise] expects function, but received "+typeof e);const[o,r]=s(n)?[n,!1]:c(n)?[n.lazy,n.throwException]:[!1,!1],a=t.ref(!1),u=t.ref(null),l=t.ref(null),i=t.ref(),v=async(...t)=>{a.value=!0,u.value=null;const n=t&&e.length!==t.length&&t.length>0&&s(t[t.length-1])?t[t.length-1]:r,o=i.value=e(...t);try{const e=await o;return i.value===o&&(l.value=e),e}catch(e){return i.value===o&&(u.value=e,l.value=null),n?o:void 0}finally{i.value===o&&(a.value=!1)}};return o||v(),{exec:v,result:l,promise:i,loading:a,error:u}}function x(e,n){const o=t.ref(!1);let r=void 0;const a=L((...t)=>{return n=e(...t),new Promise((e,t)=>{r=e=>{o.value=!0,t(e)},n.then(e).catch(t)});var n},n);return!t.getCurrentInstance()||c(n)&&!1===n.unmountCancel||t.onUnmounted(()=>r&&r()),{...a,cancel:e=>{r&&r(e)},cancelled:o}}const R=Symbol(""),C=Symbol(""),T=async(e,t,n,o)=>{const r=t[R].value;let a=-1;const u=e.maxRetries||9001,s=e.retryDelay||O;t.retryErrors.value=[],t.isRetrying.value=!1,t.nextRetry.value=void 0;let c=void 0;do{let e=!1,v=null;try{if(++a,v=o?n(...o):n(),d(v)&&(v=await v),t[C].value)return null;e=!0}catch(e){v=null,t.retryErrors.value.push(e)}if(r!==t[R].value)return v;if(e)return t.isRetrying.value=!1,t.nextRetry.value=void 0,v;if(a>=u)return t.isRetrying.value=!1,t.nextRetry.value=void 0,Promise.reject(new Error("[useRetry] max retries reached "+u));t.isRetrying.value=!0;const f=Date.now(),m=s(a),p=d(m)?await m:m;if(!d(m)||p){if(i(p))c=p;else{if(!l(p))throw new Error(`[useRetry] invalid value received from options.retryDelay '${typeof p}'`);c=p.getTime()}c<f?t.nextRetry.value=f+c:(t.nextRetry.value=c,c-=f),c>0&&await h(c)}if(t[C].value)return null;if(r!==t[R].value)return v}while(a<9e3);return null};const O=()=>0;const D=Symbol("");function P(e,t){a(e.provide)?e.provide(D,t):console.warn("[vue-composable] devtools is not supported for vue 2")}function j(){const e={},n=t.inject(D,e);if(n!==e)return n;console.warn("[vue-composable] devtools not found, please run app.use(VueComposableDevtools)")}let A=void 0;A=e=>{let t;const n=[],o=[],r=new Proxy({},{get:(e,o)=>t?t.on[o]:o in e?e[o]:e[o]=(...e)=>{n.push({type:o,args:e})}}),a=new Proxy({on:r},{get:(e,n)=>"on"===n?e.on:t?t[n]:n in e?e[n]:e[n]=(...e)=>{o.push({type:n,args:e})}});return e.then(e=>{t=e,async function(e,t,n){setTimeout(async()=>{const o=["addTimelineLayer","addInspector","sendInspectorTree","sendInspectorState","addTimelineEvent"];for(const t of o){for(const o of n.filter(e=>e.type===t))e[t](...o.args);await h(20)}new Set(n.filter(e=>"notifyComponentUpdate"===e.type).map(e=>e.args[0])).forEach(t=>e.notifyComponentUpdate(t)),t.forEach(t=>e.on[t.type](...t.args)),t.length=0,n.length=0},100)}(t,n,o)}),a};var F=A;const U=(e,t="vue-composable",n="Vue-composable devtools plugin")=>{const o=new Promise(e=>{});P(e,F(o))},V={install:(e,t={id:"vue-composable",label:"Vue-composable devtools plugin"})=>U(e,t.id,t.label)};function _(e){if(!e)return{};const t=!!e.__v_isRef,n=t&&!!e.effect,o=!!e.__v_reactive,r=n?"Computed":t?"Ref":o?"Reactive":null;return{...r?{objectType:r}:{},...e.effect?{raw:e.effect.raw.toString()}:{}}}function W(e){return e&&(s(e.isJson)||s(e.parseImmediate)||s(e.unmountCancel))}let B=void 0;let N=void 0,z=void 0;let H=void 0,K=void 0;function q(e,n){const o=w&&"BroadcastChannel"in self,r=t.ref(null),a=t.ref(null),u=t.ref(null),s=t.ref(!1),l=t.ref(!1);let i=f,c=f,v=f;if(o){const o=new BroadcastChannel(e);o.addEventListener("messageerror",e=>{u.value=e,s.value=!0},p),o.addEventListener("message",e=>{a.value=e,r.value=e.data},p),i=e=>o.postMessage(e),c=()=>{o.close(),l.value=!0},v=(e,n)=>{o.addEventListener("message",e,n),t.onUnmounted(()=>o.removeEventListener("message",e))},t.onUnmounted(()=>{n&&n(),c()})}return{supported:o,data:r,messageEvent:a,errorEvent:u,errored:s,isClosed:l,send:i,close:c,addListener:v}}function X(e,t){const n=getComputedStyle(e).getPropertyValue(t);return n?n.trim():null}function Y(e,t,n){e.style.setProperty(t,n)}const J={attributes:!0,childList:!0,subtree:!0},Q=e=>e.length<=2||"-"!==e[0]||"-"!==e[1]?"--"+e:e;const G=e=>function(t){const n=t.data||[];return new Promise(t=>{try{Promise.resolve(e.apply(e,n)).then(e=>t(postMessage([!0,e]))).catch(e=>t(postMessage([!1,e])))}catch(e){t(postMessage([!1,e]))}})};function Z(e){const n=!!w&&"matchMedia"in window;let o=void 0,r=void 0,a=f;if(n){o=t.ref(matchMedia(e)),r=t.ref(o.value.matches);const n=e=>{r.value=e.matches};o.value.addEventListener("change",n,p);const a=()=>o.value.removeEventListener("change",n);t.onUnmounted(a)}else o=t.ref({}),r=t.ref(!1);return{supported:n,mediaQueryList:o,matches:r,remove:a}}function ee(e,n){const{addListener:o,send:r,close:a,supported:u}=q(e,()=>y()),s=Date.now(),l=t.ref(!1),i=t.ref(0),v=t.computed(()=>1!==i.value||l.value),d=t.ref([]),f=t.ref(n);let m=!1,h=void 0;r({type:0});const g=()=>r({type:5,id:s}),y=()=>{0!==d.value.length&&(l.value&&r({type:3,mind:1,id:Math.min(...d.value)}),r({type:4,id:s}))};return o(e=>{switch(e.data.type){case 0:r({type:2,value:f.value,mind:i.value});break;case 4:{const t=d.value.indexOf(e.data.id);t>=0&&d.value.splice(t,1),h===e.data.id&&d.value.length>0&&r({type:3,mind:1,id:Math.min(s,...d.value)});break}case 2:m=!0,f.value=e.data.value,i.value=e.data.mind;break;case 3:i.value=e.data.mind,h=1===e.data.mind&&e.data.id||void 0,l.value=h===s,l.value&&(d.value=[],g());break;case 5:d.value=[e.data.id],r({type:6,id:s});break;case 6:d.value.push(e.data.id)}},p),g(),t.watch(f,(e,t)=>{if(m)m=!1;else{if(1===i.value&&!1===l.value)return m=!0,void(f.value=t);r({type:2,mind:i.value,value:c(e)?{...e}:e}),m=!1}},{deep:!0,immediate:!1}),w&&window.addEventListener("unload",y,p),t.onUnmounted(()=>{y(),a()}),{supported:u,id:s,data:f,master:l,mind:i,editable:v,targets:d,ping:g,setMind:e=>{switch(e){case 1:l.value=!0;break;case 0:l.value=!1}i.value=e,r({type:3,id:s,mind:i.value})},addListener:o}}const te="no-scroll";function ne(e,n){return t.inject(e,n,!0)}function oe(e,n){const a=o(n),s=o(e);return c(a.value)||t.isRef(n)?[void 0!==s.value?s:void 0,a]:!c(s.value)||r(s.value)||u(s.value)?[s.value?s:void 0,void 0]:[void 0,s]}function re(e,o){const[r,a]=oe(e,o),u=t.computed(()=>new Intl.NumberFormat(n(r),n(a))),s=(e,t,o)=>(t||o?new Intl.NumberFormat(n(o)||n(r),{...n(a),...n(t)}):u.value).format(n(e));return{format:(e,n,o)=>t.computed(()=>s(e,n,o)),formatString:s,formatter:u}}function ae(e){if(e)return i(e)?e:ue(e)}const ue=e=>{const t=e.match(/^(\d+)px$/);if(t)return+t[1]};function se(e){const n={},o=new Map,r=t.ref();let a=[];const u=[];for(const r in e){const s=e[r],l=ae(s);if(void 0!==l){const e=t.ref(!1);n[r]=e,o.set(l,{name:r,valid:e}),a.push(l)}else{const{matches:e,remove:t}=Z(s);n[r]=e,u.push(t)}}a=a.sort((e,t)=>t-e);const s=w?()=>{const e=window.innerWidth;let t=void 0;for(let n=0;n<a.length;n++){const r=a[n],u=o.get(r);u.valid.value=e>=r,e>=r&&void 0===t&&(t=u.name)}r.value=t}:f,l=S(s,10),i=w?()=>window.removeEventListener("resize",l):f;return w&&(t.onMounted(()=>{s(),window.addEventListener("resize",l,p)}),t.onUnmounted(()=>{i(),u.forEach(e=>e())})),{...n,remove:i,current:r}}const le=Symbol(""),ie={sm:640,md:768,lg:1024,xl:1280};function ce(e){return c(e)&&c(e.theme)&&c(e.theme.screens)}function ve(e){return!!c(e)&&(u(e.min)||u(e.max)||i(e.min)||i(e.max))}function de(e){return i(e)?e+"px":e}function fe(e){const t=[];if(r(e)){const n=e.map(fe);for(let e=0;e<n.length;e++){const o=n[e];t.push(...o)}}else c(n=e)&&u(n.raw)?t.push(e.raw):ve(e)?t.push(function(e){return ve(e)?`(${[e.max&&"max-width: "+de(e.max),e.min&&"min-width: "+de(e.min)].filter(Boolean).join(" and ")})`:""}(e)):(u(e)||i(e))&&t.push(`(min-width: ${de(e)})`);var n;return t}function me(e){const n=ce(e)?e.theme.screens:e;if(ce(e))for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];c(t)?n[e]=fe(n[e]).join(" or "):u(t)&&(t.endsWith("px")||(n[e]=fe(n[e]).join(" or ")))}const o=se(n);return t.provide(le,o),o}function pe(e,t){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&(t&&0!==t.length||!1)}function he(e){try{if(!e)return!1;const t=":$";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return pe(t,e)}}function ge(e,t){try{return e.parse(t)}catch{return t}}let ye=void 0;function we(e,n=JSON,r=10){const a=w?window[e]:void 0,s=he(a);ye||(ye=new Map,w&&window.addEventListener("storage",e=>{if(e.newValue===e.oldValue)return;let t=ye.get("localStorage");t=e.storageArea===window.localStorage?ye.get("localStorage"):ye.get("sessionStorage"),t&&Object.keys(t.$syncKeys).length>0&&(null===e.key?t.clear():t.$syncKeys[e.key]&&(null===e.newValue?t.removeItem(e.key):t.updateItem(e.key,e.newValue)))}));let l,i=ye.get(e);return s&&a?i?l=i.$quotaError:(l=t.ref(!1),i={$refMap:new Map,$watchHandlers:new Map,$syncKeys:{},$quotaError:l,key:a.key,length:a.length,setSync(e,t){t?this.$syncKeys[e]=!0:delete this.$syncKeys[e]},clear(){this.$refMap.forEach((e,t)=>this.removeItem(t))},removeItem(e){const t=this.$refMap.get(e);t&&(t.value=void 0);const n=this.$watchHandlers.get(e);n&&n(),delete this.$syncKeys[e],this.$refMap.delete(e),a.removeItem(e)},getItem(e){const t=a.getItem(e);return t?this.setItem(e,ge(n,t)):null},setItem(e,s){const i=o(s);this.$refMap.set(e,i);const c=(e,t)=>{try{const o=a.getItem(e),r=u(t)?t:n.stringify(t);a.setItem(e,r),o!==r&&w&&this.$syncKeys[e]&&window.dispatchEvent(new StorageEvent(e,{newValue:r,oldValue:o,storageArea:a}))}catch(e){l.value=pe(e,a)}};c(e,s);const v=t.watch(i,M(t=>{c(e,t)},r),{immediate:!1,deep:!0});return this.$watchHandlers.set(e,v),i},updateItem(e,t){let o=this.$refMap.get(e);o&&(o.value=ge(n,t))}},ye.set(e,i)):(l=t.ref(!1),i={}),{supported:s,quotaError:l,store:i,remove:()=>ye.delete(e)}}function be(e,n,o){const{supported:r,store:a}=we("localStorage");let u=f,s=f,l=f,i=void 0;return r&&a?(l=t=>a.setSync(e,t),u=()=>a.removeItem(e),s=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n)),!1!==o&&l(!0)):i=t.ref(n),{supported:r,storage:i,clear:s,remove:u,setSync:l}}function Ee(e,n,o){const{supported:r,store:a}=we("sessionStorage");let u=f,s=f,l=m,i=void 0;return r&&a?(u=()=>a.removeItem(e),s=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n))):i=t.ref(n),{supported:r,storage:i,clear:s,remove:u,setSync:l}}let Se=void 0;function Me(e){const n=o(e.currentPage),r=o(e.pageSize),a=t.ref(0),u=o(e.total),s=t.computed({get:()=>a.value,set(e){i(e)&&(a.value=Math.min(e,u.value))}}),l=t.computed({get:()=>n.value,set(e){i(e)&&(n.value=y(e,1,v.value),s.value=(n.value-1)*c.value)}}),c=t.computed({get:()=>r.value,set(e){i(e)&&(r.value=e)}}),v=t.computed(()=>Math.ceil(u.value/c.value));l.value=n.value;return t.watch([u,c],e=>{l.value>v.value&&(l.value=v.value)},{immediate:!1}),{pageSize:c,total:u,currentPage:l,offset:s,lastPage:v,next:()=>++l.value,prev:()=>--l.value,first:()=>l.value=1,last:()=>l.value=v.value}}function Ie(e){const n=1e3,o=e&&e.refreshMs||n,r=!e||!s(e.sync)||e.sync,u=e&&a(e.timeFn)&&e.timeFn||Date.now;let l=void 0,i=void 0;const c=t.ref(u()),v=()=>{clearInterval(l),clearTimeout(i)},d=w?()=>l=setInterval(()=>c.value=u(),o):f;if(r){const e=n-(c.value-Math.floor(c.value/n)*n);i=setTimeout(d,e)}else d();return t.onUnmounted(v),{now:c,remove:v}}function $e(e,o){return t.computed(()=>{const a=n(e);if(!o)return a;const u=t.isRef(o)?t.reactive(o.value):t.reactive(o);return a.replace(/({?{[\w\s]*}?})/g,e=>{const t=e.replace("{","").replace("}","").trim();if(e[0]===e[1]&&"{"===e[0])return""+t;const o=r(u)?u[+t]:u[t];return void 0===o?e:""+n(o)})})}function ke(e,o,r=".",a=f){return t.computed(()=>{const t=n(e),u=n(o);if(void 0===t)return a(u,t,u,t);if(!u)return t;const s=u.split(r);let l=t;for(let e=0;e<s.length;e++){let n=s[e];if("]"===n[n.length-1]){const t=/\[[`'"]?([^`'"\]]*)[`'"]?\]/g;let o=n,r=t.exec(o);if(r){let a=r[0].length,u=r.index-a,l=1;do{r.index,u=r.index,a=r[0].length,n=n.slice(0,-r[0].length),s.splice(e+l,0,r[1]),++l}while(r=t.exec(o));if(!n&&"["===o[0]&&o.length>2)continue}else n="",console.warn(`[usePath] invalid path provided "${o}"`)}if(!c(l))return a(s.slice(0,e+1).join(r),l,u,t);if(!n)return a(s.slice(0,e+1).join(r),l,u,t);if(l=l[n],!l)return a(s.slice(0,e+1).join(r),l,u,t)}return l})}function Le(e){return void 0!==e.$value}const xe=(e,o,r)=>{const{$message:a,$validator:u,...s}=function(e){return c(e)}(o)?o:{$validator:o,$message:void 0},{$pending:l,$promise:i,$invalid:v,$error:f}=((e,o,r,a)=>{const u=t.ref(null),s=t.ref(!1),l=t.ref(),i=t.ref(!1);let c=void 0;const v=e=>{u.value=(async()=>{try{s.value=!0;const t=o(e,c);d(t)?i.value=!await t:i.value=!t,l.value=i.value?r.value:void 0}catch(e){throw i.value=!0,e}finally{s.value=!1}})().catch(e=>(l.value=n(e),i.value=!0,e))};return a.push(n=>{c=n,t.watch(()=>{try{o(e.value,c)}catch(e){}return e.value},v,{deep:!0,immediate:!0})}),{$promise:u,$pending:s,$invalid:i,$error:l}})(e,u,t.ref(a),r);return{$pending:l,$error:f,$promise:i,$invalid:v,$message:a,...s}},Re=(e,r)=>{const a={},u=Le(e)?o(e.$value):void 0;for(const o of Object.keys(e))if("$"!==o[0])if(u){const t=xe(u,e[o],r);a[o]={...t,$value:u}}else{const u=Re(e[o],r);let l,i,c=void 0;if(Le(u)){const e=Object.keys(u).filter(e=>"$"!==e[0]).map(e=>u[e]);l=t.computed(()=>e.map(e=>e.$error).map(e=>n(e)).filter(Boolean)),i=t.computed(()=>e.some(e=>!!n(e.$invalid)))}else{const e=Object.keys(u).map(e=>u[e]);l=t.computed(()=>e.map(e=>n(e.$errors)).filter(Boolean).filter(e=>e.some(Boolean))),c=t.computed(()=>e.some(e=>e.$anyDirty||s(n(e.$dirty))&&n(e.$dirty))),i=t.computed(()=>e.some(e=>!!n(e.$anyInvalid)))}a[o]={...u,$errors:l,$anyInvalid:i},c&&(a[o].$anyDirty=c)}else{if("$value"===o){a[o]=u;const e=t.ref(!1),n=t.watch(u,()=>{e.value=!0,n()},{immediate:!1,deep:!0});a.$dirty=e;continue}a[o]=e[o]}return a};const Ce=Symbol("");function Te(e){const r=t.ref(Object.keys(e.messages)),u=t.ref(e.messages),l=t.ref(e.locale),i=t.ref({});let c=t.ref();const v={},f=(e,n)=>{if(v[e])return v[e];const r=n.value[e];if(!r)return t.ref({});let u=a(r)?r():r;return d(u)?u.then(t=>v[e]=o(t)):a(r)?o(u):v[e]=t.computed(()=>n.value[e])},m=!!e.fallback&&(!s(e.notFoundFallback)||e.notFoundFallback);let p=!1;if(m){const t=f(e.fallback,u);d(t)?(t.then(e=>{c.value=e.value}),p=!0):c.value=t.value}else c.value={};const h=t.ref(0);t.watch(u,()=>h.value++,{deep:!0,immediate:!1}),t.watch([l,c,h],([t,o,r])=>{if(t===e.fallback&&m)i.value=o;else{const e=e=>i.value=b({},o,n(e)),r=f(t,u);d(r)?r.then(e):e(r)}},{immediate:!p});const g=(t,n)=>e.resolve?o(e.resolve(i.value,t,n)):$e(ke(i,t,".",(e,t,n,o)=>n),n);return{locale:l,locales:r,i18n:i,$t:g,$ts:(e,t)=>g(e,t).value,addLocale:(e,t)=>{r.value.indexOf(e)>=0||r.value.push(e),delete v[e],u.value[e]=t},removeLocale:t=>{const n=r.value.indexOf(t);if(n>=0){const o=[l.value,c.value&&e.fallback,...r.value].find(e=>e&&e!==t);o&&(t===e.fallback&&(c.value=void 0),t===l.value&&(l.value=o)),r.value.splice(n,1)}delete u.value[t],delete v[t]}}}function Oe(e){const n=Te(e);return t.provide(Ce,n),n}const De=Symbol("");const Pe=Symbol(""),je={install(e){const n=t.ref(!0),o=t.readonly(n);{e._context.provides[Pe]=o;const t=e.mount;e.mount=(...e)=>{const o=t(...e);return n.value=!1,o}}}};return e.COMMIT="3f582cd",e.FALSE_OP=m,e.MAX_ARRAY_SIZE=g,e.NO_OP=f,e.PASSIVE_EV=p,e.SCROLL_LOCK_CLASS=te,e.UseDevtoolsApp=U,e.VERSION="1.0.0-beta.12",e.VUE_VERSION="3",e.VueComposableDevtools=V,e.buildI18n=Te,e.debounce=M,e.deepClone=b,e.exponentialDelay=e=>{const t=100*Math.pow(2,e);return t+.2*t*Math.random()},e.exposeWorker=function(e){this.onmessage=async t=>{const n=e(t.data);if(void 0===n)this.postMessage(n);else if(null===n)this.postMessage(n);else if(r(n))this.postMessage(n);else if(n[Symbol.asyncIterator])for await(const e of n)this.postMessage(e);else if(n[Symbol.iterator])for(const e of n)this.postMessage(e);else this.postMessage(await n)}},e.getCssVariableFor=X,e.getDevtools=j,e.hydrationPlugin=je,e.injectFactory=ne,e.isArray=r,e.isBoolean=s,e.isClient=w,e.isDate=l,e.isElement=v,e.isFunction=a,e.isNumber=i,e.isObject=c,e.isPromise=d,e.isString=u,e.isSymbol=e=>"symbol"==typeof e,e.minMax=y,e.noDelay=O,e.promisedTimeout=h,e.provideSSRTitle=function(e,t){const n=o(void 0===t?"":t);return e.provide(De,n),n},e.refDebounced=function(e,n){let[o,r]=1===arguments.length&&i(e)?[void 0,e]:[e,n];return t.customRef((e,t)=>({get:()=>(e(),o),set:M(e=>{o=e,t()},r)}))},e.refShared=function(e,n){const o=t.getCurrentInstance(),r=n||o.vnode.scopeId;if(!r)return t.ref(e);const{data:a,supported:u}=ee(r,e);return a},e.setBreakpointTailwindCSS=me,e.setCssVariableFor=Y,e.setDevtools=P,e.setI18n=Oe,e.storageAvailable=he,e.unwrap=n,e.useArrayPagination=function(e,n){const r=o(e),a=Me({currentPage:1,pageSize:10,...n,total:t.computed(()=>r.value.length)}),u=t.computed(()=>{const e=r.value;return Array.isArray(e)?e.slice(a.offset.value,a.offset.value+a.pageSize.value):[]});return{...a,result:u}},e.useBreakpoint=se,e.useBreakpointChrome=function(){return se({mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560})},e.useBreakpointTailwindCSS=function(e){return ne(le,()=>me(e||ie))},e.useBroadcastChannel=q,e.useCancellablePromise=x,e.useCssVariables=function(e,r,a){const s=w&&"MutationObserver"in self,[l,i]=t.isRef(r)||v(r)?[r,a||J]:[s&&document.documentElement||{},r||J],c=t.ref(!0),d={},m=[],p=Object.entries(e).map(e=>{const[t,r]=u(e[1])?[e[1]]:[e[1].name,e[1].value];return r&&(m.push(()=>Y(n(l),t,n(r))),d[e[0]]=o(r)),[e[0],Q(t)]});for(let e=0;e<p.length;e++){const[r,a]=p[e];d[r]||(d[r]=t.ref(t.isRef(l)&&!l.value||!s?null:X(n(l),a))),s&&t.watch([d[r],o(l)],e=>{c&&e[1]&&e[0]!==X(e[1],a)&&Y(e[1],a,e[0])},{immediate:!t.isRef(l)})}if(!s)return{...d,stop:f,resume:f,supported:s,observing:c};const h=()=>{for(let e=0;e<p.length;e++){const[t,o]=p[e];d[t].value=X(n(l),o)}},g=new MutationObserver(h),y=()=>{g.disconnect(),c.value=!1},b=()=>{c.value||h(),g.observe(n(l),i),c.value=!0};return t.onUnmounted(y),t.isRef(l)?t.onMounted(()=>{m.forEach(e=>e()),t.watch(l,(e,t)=>{t&&y(),e&&b()})}):(w||l)&&(m.forEach(e=>e()),b()),{...d,supported:s,resume:b,stop:y,observing:c}},e.useCurrencyFormat=function(e,o,r){const a=n(e),u=!c(a),s=u?e:t.computed(()=>n(e).currency),[l,i]=oe(o,u?r:e),v=t.computed(()=>{const e=n(i)||{},t=n(s)||e.currency;return{style:"currency",...e,currency:t}}),d=re(l),f=(e,t,o,r,a)=>{const u={...v.value,...n(r)},s=n(t)||u.currency,l=n(o)||u.currencyDisplay;return d.formatString(e,{...u,currency:s,currencyDisplay:l},a)};return{format:(e,n,o,r,a)=>t.computed(()=>f(e,n,o,r,a)),formatString:f}},e.useDateNow=function(e){return Ie({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:Date.now})},e.useDebounce=S,e.useDevtoolsComponentState=function(e,o){const u=t.getCurrentInstance(),s=j();s&&u&&s.on.inspectComponent((t,s)=>{if(t.componentInstance!==u)return;const[l,i]=c(o)?[o.type,o.multiple]:["setup",!1];if(a(e))return void e(t.instanceData,s);let v=r(e)?e:Object.keys(e).map(t=>({type:l,key:t,value:n(e[t]),..._(e[t])}));if(!i){const e=new Set(t.instanceData.state.map(e=>e.key));v=v.filter(t=>!e.has(t.key))}t.instanceData.state.push(...v)})},e.useDevtoolsInspector=function(e,n=[]){const o=j(),r=t.ref(n),a=t.computed(()=>{if(!r.value)return new Map;const e=t.toRaw(r.value),n=new Map;for(const t of e)n.set(t.id,t);return n});if(o){const n=e.id;o.addInspector(e),o.on.getInspectorTree(o=>{if(o.inspectorId!=n)return;if(!r.value)return;const a=o.filter;let u=t.toRaw(r.value);o.filter&&(u=e.nodeFilter?e.nodeFilter(o.filter,u):u.filter(e=>e.id.indexOf(a)>=0||e.label.indexOf(a)>=0)),o.rootNodes=u}),o.on.getInspectorState(o=>{if(o.inspectorId!=n)return;const r=a.value.get(o.nodeId);if(r){const n=t.reactive(r.state);o.state=e.stateFilter?e.stateFilter("",n):n}}),t.watch(r,()=>{o.sendInspectorTree(n),o.sendInspectorState(n)},{immediate:!0,deep:!0})}return{nodes:r}},e.useDevtoolsTimelineLayer=function(e,t,n){const o=j();let r=f,a=f;return o&&(o.addTimelineLayer({id:e,label:t,color:n}),r=(t,n)=>o.addTimelineEvent({layerId:e,event:t,all:n}),a=e=>r({...e,time:Date.now()})),{id:e,addEvent:r,pushEvent:a}},e.useEvent=E,e.useFetch=function(e,n){const o=t.ref(null),r=t.ref(""),a=t.ref(),s=t.ref(null),[l,i,c]=W(e)?[!1!==e.isJson,!1!==e.parseImmediate,!1!==e.unmountCancel]:W(n)?[!1!==n.isJson,!1!==n.parseImmediate,!1!==n.unmountCancel]:[!0,!0,!0],v=e?u(e)?n:W(e)?e:u(e.url)?n:e:void 0,d=t.ref(!1),f=t.ref();let m=void 0;const p=e=>{m&&(m.abort(),d.value=!0,f.value=e)},h=L(async(e,t)=>{m=new AbortController;const n=await fetch(e,{signal:m.signal,...v,...t});if(n){const e=[l?n.clone().json().then(e=>o.value=e).catch(e=>{o.value=null,s.value=e}):Promise.resolve(),n.clone().blob().then(e=>{a.value=e}),n.clone().text().then(e=>{r.value=e})];i&&await Promise.all(e)}return n},!0),g=t.computed(()=>h.result.value&&h.result.value.status||null),y=t.computed(()=>h.result.value&&h.result.value.statusText||null);return e&&(u(e)||u(e.url))&&h.exec(e,void 0,!1),c&&t.getCurrentInstance()&&t.onUnmounted(()=>{m&&p("unmounted")}),{...h,cancel:p,isCancelled:d,cancelledMessage:f,text:r,blob:a,json:o,jsonError:s,status:g,statusText:y}},e.useFormat=$e,e.useGeolocation=function(e){const n=w&&!!navigator.geolocation,o=t.ref(e?!1===e.immediate:void 0),r=t.ref(null),a=t.ref(null),u=t.ref(null),l=t.ref(e&&e.enableHighAccuracy||null);let i=f;if(n){const n=e=>{a.value=e.timestamp,u.value=e.coords,r.value=null},c=e=>{a.value=Date.now(),u.value=null,r.value=e},v=()=>!0!==o.value&&f&&navigator.geolocation.clearWatch(f);let d=()=>navigator.geolocation.getCurrentPosition(n,c,e);i=o.value?()=>{o.value?o.value=!1:d()}:d;let f=0;t.onMounted(()=>t.watch([l,o],t=>{v();const o=s(t[0])?t[0]:e?e.enableHighAccuracy:void 0;f=navigator.geolocation.watchPosition(n,c,e?{...e,enableHighAccuracy:o}:{enableHighAccuracy:o})},{immediate:!o.value})),t.onUnmounted(v)}return{supported:n,refresh:i,error:r,timestamp:a,coords:u,highAccuracy:l}},e.useHydration=function(){return t.inject(Pe,t.computed(()=>!1))},e.useI18n=function(e){return e?Oe(e):t.inject(Ce)},e.useIntersectionObserver=function(e,r){const a=w&&"IntersectionObserver"in window,u=e?o(e):void 0,s=!u||!v(u.value)&&u.value?void 0:u,l=t.computed(()=>r?n(r):s?void 0:n(e)),i=t.ref([]),c=t.computed(()=>i.value.length>0&&i.value.every(e=>e.isIntersecting)),d=e=>{i.value=e};let m=t.ref();a&&t.watch(l,e=>{m.value&&m.value.disconnect();const t=e&&e&&{root:n(e.root),rootMargin:n(e.rootMargin),threshold:n(e.threshold)}||void 0;m.value=new IntersectionObserver(d,t);i.value.map(e=>e.target).forEach(m.value.observe)},{deep:!0,immediate:!0});const p=a?e=>{const t=n(e);m.value.observe(t)}:f,h=a?e=>{const t=n(e);m.value.unobserve(t)}:f,g=()=>m.value.disconnect();return s&&(t.onMounted(()=>{s.value&&p(s)}),t.onUnmounted(()=>{g()})),{supported:a,elements:i,observe:p,unobserve:h,disconnect:g,isIntersecting:c}},e.useInterval=function(e,n,...o){let r=void 0;const a=(t,...a)=>{if(u(),!t&&!n)return;return r=setInterval(e,t||n,...a&&a.length?a:o)},u=()=>{r&&(clearInterval(r),r=void 0)};return i(n)&&a(),t.onUnmounted(u),{remove:u,start:a}},e.useIntlDateTimeFormat=function(e,o){const[r,a]=oe(e,o),s=t.computed(()=>new Intl.DateTimeFormat(n(r),n(a))),l=(e,t,o)=>{const l=t||o?new Intl.DateTimeFormat(n(o)||n(r),{...n(a),...n(t)}):s.value,i=n(e);return l.format(u(i)?new Date(i):i)};return{format:(e,n,o)=>t.computed(()=>l(e,n,o)),formatString:l,formatter:s}},e.useIntlNumberFormat=re,e.useLanguage=function(){if(H||(H=w?t.ref(navigator.language):t.ref("")),!K)if(w){K=t.ref(navigator.languages);const e=()=>{H.value=navigator.language,K.value=navigator.languages};window.addEventListener("languagechange",e,p)}else K=t.ref([]);return{language:H,languages:K}},e.useLocalStorage=be,e.useLockScroll=function(e,a){const s=u(e)?t.ref([]):r(t.unref(e))?o(e):o([e]),l=u(a)?{lockedClass:a,auto:!0}:a||{auto:!0};l.lockedClass||(l.lockedClass=te);const i=t.ref(!1),c=t.computed(()=>s.value.map(e=>t.ref(e))),v=t.watch([i,c],([e,t],[o,r])=>{for(const a of t){const t=n(a);if(l.lockedClass){if(!t)return;t.classList.toggle(l.lockedClass,e)}l.onChange&&(o===e&&r.find(e=>n(e)===t)||l.onChange(t,e))}},{flush:"sync",deep:!1}),d=()=>i.value=!0,f=()=>i.value=!1;return u(e)&&t.onMounted(()=>s.value=Array.from(document.querySelectorAll(e))),!1!==l.auto&&(t.onMounted(d),t.onActivated(d),t.onDeactivated(f),t.onBeforeUnmount(f)),{locked:i,lock:d,unlock:f,remove:v}},e.useMatchMedia=Z,e.useMouseDistanceFromElement=function(e,o,r){let a=void 0,u=f;if(w){const{pageX:s,pageY:l,remove:i}=I(window,o,r);a=t.computed(()=>{const t=n(e);return t?Math.floor(Math.sqrt(Math.pow(s.value-(t.offsetLeft+t.clientWidth/2),2)+Math.pow(l.value-(t.offsetTop+t.clientHeight/2),2))):0}),u=i}else a=t.computed(()=>-1);return{distance:a,remove:u}},e.useNetworkInformation=function(){const e=!!w&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection),n=!!e,o=t.ref(0),r=t.ref(0),a=t.ref("none"),u=t.ref(0),s=t.ref(!1),l=t.ref("none");let i=f,c=f;return e&&(i=()=>{o.value=e.downlink,r.value=e.downlinkMax,a.value=e.effectiveType,u.value=e.rtt,s.value=e.saveData,l.value=e.type},c=E(e,"change",i,p),i()),{supported:n,downlink:o,downlinkMax:r,effectiveType:a,rtt:u,saveData:s,type:l,remove:c}},e.useNow=Ie,e.useOnMouseMove=I,e.useOnOutsidePress=function(e,t){if(!w)return()=>{};const n=o(e),r=k.find(e=>"on"+e in document.documentElement);return E(document,r,e=>n.value&&!n.value.contains(e.target)&&t(e),{passive:!0})},e.useOnResize=function(e,n,r){const a=o(e),u=t.ref(a.value&&a.value.clientHeight),s=t.ref(a.value&&a.value.clientWidth);let l=()=>{u.value=a.value.clientHeight,s.value=a.value.clientWidth};const[c,v]=i(n)?[void 0,n]:[n,r];v&&(l=S(l,r));const d=w?E(window,"resize",l,c||p):f;return t.isRef(e)&&!e.value&&t.onMounted(l),{height:u,width:s,remove:d}},e.useOnScroll=function(e,n,r){const a=e=>!(i(e)||s(e)||!v(e)&&!t.isRef(e)||!e),u=a(e)?o(e):t.ref(w&&window||void 0),l=a(e)?u:t.ref(w&&window.document.scrollingElement||void 0),c=t.ref(l.value&&l.value.scrollTop||0),d=t.ref(l.value&&l.value.scrollLeft||0);let f=()=>{c.value=l.value.scrollTop,d.value=l.value.scrollLeft};const m=$.reduce((e,t)=>(e[t]=(...e)=>l.value&&l.value[t]&&l.value[t].apply(l.value,e),e),{}),h=e=>m.scrollTo({top:e}),g=e=>m.scrollTo({left:e}),[y,b]=i(e)||!e?[p,e]:i(n)?[p,n]:[n,r];b&&(f=S(f,r));const M=E(u,"scroll",f,y),I=t.watch(c,h,{immediate:!1}),k=t.watch(d,g,{immediate:!1});return{scrollTop:c,scrollLeft:d,remove:()=>{M(),k(),I()},scrollTopTo:h,scrollLeftTo:g,...m}},e.useOnline=function(){const e=w&&"onLine"in navigator;return e||(B=t.ref(!1)),B||(B=t.ref(navigator.onLine),window.addEventListener("offline",()=>B.value=!1,p),window.addEventListener("online",()=>B.value=!0,p)),{supported:e,online:B}},e.usePageVisibility=function(){return z||(z=t.ref(w&&document.hidden)),N||(w?(N=t.ref(document.visibilityState),document.addEventListener("visibilitychange",()=>{N.value=document.visibilityState,z.value=document.hidden},p)):N=t.ref("visible")),{visibility:N,hidden:z}},e.usePagination=Me,e.usePath=ke,e.usePerformanceNow=function(e){return Ie({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:()=>performance.now()})},e.usePromise=L,e.usePromiseLazy=function(e,t=!1){return L(e,{lazy:!0,throwException:t})},e.useRetry=function(e,n){const o=!e||a(e)?{}:e,r=a(e)?e:n;if(!a(e)&&!c(e))throw new Error("[useRetry] options needs to be 'object'");if(r&&!a(r))throw new Error("[useRetry] factory needs to be 'function'");const u=t.ref(!1),s=t.ref(),l=t.ref([]),i={value:!1},v={isRetrying:u,retryCount:t.computed(()=>l.value.length),nextRetry:s,retryErrors:l,[R]:{value:0},[C]:i},d=r?(...e)=>(++v[R].value,T(o,v,r,e)):e=>(++v[R].value,T(o,v,e,void 0));return{...v,cancel:()=>{v.isRetrying.value=!1,v.retryErrors.value.push(new Error("[useRetry] cancelled")),v.nextRetry.value=void 0,i.value=!0},exec:d}},e.useSSRTitle=function(e){const n=Symbol(),o=t.inject(De,n);return o===n||void 0===o?t.ref(u(e)?e:""):(u(e)&&(o.value=e),o)},e.useSessionStorage=Ee,e.useShare=function(e){const n=w&&"share"in navigator;let o=()=>Promise.resolve(!1),r=m,a=t.ref(!1),u=t.ref(!1);return n&&(o=e=>(a.value=!1,u.value=!1,navigator.share(e).then(e=>(a.value=!0,e)).catch(e=>(a.value=!1,u.value=!0,!1))),r=e=>navigator.canShare(e),e&&r(e)&&o(e)),{supported:n,share:o,canShare:r,shared:a,cancelled:u}},e.useSharedRef=ee,e.useStorage=function(e,t,n){return void 0===Se&&(Se=we("localStorage").supported),Se?be(e,t,n):Ee(e,t)},e.useTimeline=function(e,n){const o=t.ref([]),r=n&&n.clone?n.clone:e=>e,a=n&&n.maxLength||g;return t.watch(e,(e,t)=>{o.value.unshift({item:r(t),date:new Date}),o.value.length>a&&o.value.pop()},{immediate:!1,flush:"sync",...n}),t.readonly(o)},e.useTitle=function(e=null){const n=t.ref(u(e)?e:document.title),o=new MutationObserver(e=>{n.value=e[0].target.textContent});t.watch(n,(e,t)=>{u(e)&&e!==t&&(document.title=e)},{immediate:!0,flush:"sync"});const r=document.querySelector("title");return o.observe(r,{childList:!0}),t.onUnmounted(()=>o.disconnect()),n},e.useUndo=function(e,n){const r=o(e),a=t.ref([]),u=t.ref(0),s=n&&n.maxLength||g,l=n&&n.clone||(e=>e),i=t.computed(()=>{const e=0===u.value?1:u.value;return a.value.slice(e)}),c=t.computed(()=>{const e=0===u.value?1:0;return a.value.slice(e,u.value)});t.watch(r,e=>{if(a.value[u.value]===e)return;if(u.value>0){const e=u.value;a.value.splice(0,e),u.value=0}a.value.length>s&&a.value.pop();const t=l(e);a.value.unshift(t)},{...n,immediate:!0,flush:"sync"});const v=e=>{const t=Math.sign(e)<=0?Math.max(e,-c.value.length):Math.min(e,i.value.length);u.value+=t,r.value=a.value[u.value]};return{value:r,undo:(e=1)=>v(e),redo:(e=1)=>v(-e),jump:v,prev:i,next:c}},e.useVModel=function(e,n){const o=t.getCurrentInstance();return o?t.computed({get:()=>e[n],set(e){o.emit("update:"+n,e)}}):t.ref()},e.useValidation=function(e){const n=[],o=Re({input:e},n),r=t.reactive(o.input);return n.forEach(e=>e(r)),r},e.useValueSync=function(e,n){const a=o(e),u=2===arguments.length?t.isRef(arguments[1])&&r(arguments[1].value)?arguments[1]:t.ref([o(arguments[1])]):t.ref(Array.from(arguments).slice(1).map(e=>o(e)));u.value.forEach(e=>{e.value=a.value});let s=u.value.length;return t.watch([a,u],([e,t])=>{if(s<t.length)t.forEach(t=>{t.value!==e&&(t.value=e)});else{s=t.length;for(const n of t)if(n.value!==e)return void(a.value=n.value)}},{deep:!0}),t.watch(a,e=>{u.value.forEach(t=>t.value=e)},{deep:!0,flush:"sync"}),u},e.useWebSocket=function(e,n){const o=w&&"WebSocket"in window;let r=null;const a=t.ref(null),u=t.ref(null),s=t.ref(null),l=t.ref(!1),i=t.ref(!1),c=t.ref(!1);let v=f,d=f;return o&&(r=new WebSocket(e,n),r.addEventListener("message",e=>{a.value=e,s.value=e.data}),r.addEventListener("error",e=>{u.value=e,c.value=!0}),r.addEventListener("close",()=>{l.value=!1,i.value=!0}),r.addEventListener("open",()=>{l.value=!0,i.value=!1}),v=e=>r.send(e),d=(e,t)=>{r.close(e,t)}),{supported:o,ws:r,send:v,close:d,messageEvent:a,errorEvent:u,data:s,isOpen:l,isClosed:i,errored:c}},e.useWebStorage=we,e.useWorker=function(e,n,o){const r=w&&"Worker"in self,a=t.ref(),u=t.ref(),s=t.ref(!r),l=t.ref(!r);if(!r)return s.value=!0,{worker:void 0,data:u,postMessage:f,terminate:f,errorEvent:a,errored:l,terminated:s};const i=new Worker(e,o),c=e=>i.postMessage(e);function v(){i.terminate(),s.value=!0}return i.addEventListener("message",e=>{u.value=e.data},p),i.addEventListener("error",e=>{a.value=e,l.value=!0},p),t.onUnmounted(v),n&&c(n),{worker:i,data:u,postMessage:c,terminate:v,errorEvent:a,errored:l,terminated:s}},e.useWorkerFunction=function(e,o){const r=w&&"Worker"in self,a=t.computed(()=>o&&n(o.dependencies)||[]),u=t.computed(()=>o&&n(o.timeout));if(!r)return x(e,{lazy:!0,throwException:!0});const s=x((...n)=>new Promise((o,r)=>{const l=function(e,t){const n=[t.length>0?`importScripts("${t.join('","')}");`:"","onmessage=",`(${G.toString()})(${e.toString()})`],o=new Blob(n,{type:"text/javascript"});return URL.createObjectURL(o)}(e,a.value),i=new Worker(l);let c=-1;const v=u.value,d=()=>{i.terminate(),URL.revokeObjectURL(l),clearTimeout(c),h()},m=n.length===e.length+1&&t.isRef(n[n.length-1])&&!1===n[n.length-1].value?t.computed(()=>s.cancelled.value||n[n.length-1].value):s.cancelled,h=m?t.watch(m,()=>{d(),o(void 0)},{immediate:!1}):f;i.addEventListener("message",e=>{e.data[0]?o(e.data[1]):r(e.data[1]),d()},p),i.addEventListener("error",e=>{d(),r(e)},p),i.postMessage([...n]),v&&(c=setTimeout(()=>{s.cancel(`[WebWorker] timeout after ${v}ms`)},v))}),{lazy:!0,throwException:!0});return s},e.wrap=o,Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueRuntimeCore);

@@ -1,1 +0,1 @@

var vueComposable=function(e,t){"use strict";function n(e){return t.isRef(e)?e.value:e}function o(e){return t.isRef(e)?e:t.ref(e)}const r=Array.isArray,a=e=>"function"==typeof e,u=e=>"string"==typeof e,s=e=>"boolean"==typeof e,l=e=>c(e)&&a(e.getTime),i=e=>"number"==typeof e,c=e=>null!==e&&"object"==typeof e,v=e=>c(e)&&!!e.tagName;function d(e){return c(e)&&a(e.then)&&a(e.catch)}const f=()=>{},m=()=>!1,p={passive:!0};function h(e){return new Promise(t=>{setTimeout(t,e)})}const g=2**32-2;function y(e,t,n){return e<t?t:e>n?n:e}const w="undefined"!=typeof window;function b(e,...t){for(let o=0;o<t.length;o++){const r=t[o];if(void 0===r||!c(r))continue;const a=Object.keys(r);for(let t=0;t<a.length;t++){const o=a[t],u=n(r[o]),s=typeof u,l=typeof e[o];void 0!==e[o]&&s!==l||(e[o]=c(u)?b(e[o]||{},u):r[o])}}return e}function E(e,n,r,a){let u=f;if(e){const s=o(e),l=e=>e.removeEventListener(n,r),i=e=>e.addEventListener(n,r,a),c=t.watch(s,(e,t,n)=>{e&&(i(e),n(()=>l(e)))},{immediate:!0});u=()=>{l(s.value),c()}}return u}function S(e,t,n){return M(e,t,n)}function M(e,t=50,n={isImmediate:!1}){let o;return function(...r){const a=this,u=n.isImmediate&&void 0===o;void 0!==o&&clearTimeout(o),o=setTimeout((function(){o=void 0,n.isImmediate||e.apply(a,r)}),t),u&&e.apply(a,r)}}function I(e,n,o){const r=t.ref(0),a=t.ref(0),u=t.ref(0),s=t.ref(0);let l=e=>{r.value=e.x,a.value=e.y,u.value=e.pageX,s.value=e.pageY};const[c,v]=i(n)?[void 0,n]:[n,o];v&&(l=S(l,o));const d=E(e,"mousemove",l,c);return{mouseX:r,mouseY:a,pageX:u,pageY:s,remove:d}}const $=["mousedown","touchstart"];function k(e,n){if(!e)throw new Error(`[usePromise] argument can't be '${e}'`);if("function"!=typeof e)throw new Error("[usePromise] expects function, but received "+typeof e);const[o,r]=s(n)?[n,!1]:c(n)?[n.lazy,n.throwException]:[!1,!1],a=t.ref(!1),u=t.ref(null),l=t.ref(null),i=t.ref(),v=async(...t)=>{a.value=!0,u.value=null;const n=t&&e.length!==t.length&&t.length>0&&s(t[t.length-1])?t[t.length-1]:r,o=i.value=e(...t);try{const e=await o;return i.value===o&&(l.value=e),e}catch(e){return i.value===o&&(u.value=e,l.value=null),n?o:void 0}finally{i.value===o&&(a.value=!1)}};return o||v(),{exec:v,result:l,promise:i,loading:a,error:u}}function L(e,n){const o=t.ref(!1);let r=void 0;const a=k((...t)=>{return n=e(...t),new Promise((e,t)=>{r=e=>{o.value=!0,t(e)},n.then(e).catch(t)});var n},n);return!t.getCurrentInstance()||c(n)&&!1===n.unmountCancel||t.onUnmounted(()=>r&&r()),{...a,cancel:e=>{r&&r(e)},cancelled:o}}const x=Symbol(""),R=Symbol(""),C=async(e,t,n,o)=>{const r=t[x].value;let a=-1;const u=e.maxRetries||9001,s=e.retryDelay||T;t.retryErrors.value=[],t.isRetrying.value=!1,t.nextRetry.value=void 0;let c=void 0;do{let e=!1,v=null;try{if(++a,v=o?n(...o):n(),d(v)&&(v=await v),t[R].value)return null;e=!0}catch(e){v=null,t.retryErrors.value.push(e)}if(r!==t[x].value)return v;if(e)return t.isRetrying.value=!1,t.nextRetry.value=void 0,v;if(a>=u)return t.isRetrying.value=!1,t.nextRetry.value=void 0,Promise.reject(new Error("[useRetry] max retries reached "+u));t.isRetrying.value=!0;const f=Date.now(),m=s(a),p=d(m)?await m:m;if(!d(m)||p){if(i(p))c=p;else{if(!l(p))throw new Error(`[useRetry] invalid value received from options.retryDelay '${typeof p}'`);c=p.getTime()}c<f?t.nextRetry.value=f+c:(t.nextRetry.value=c,c-=f),c>0&&await h(c)}if(t[R].value)return null;if(r!==t[x].value)return v}while(a<9e3);return null};const T=()=>0;const O=Symbol("");function D(e,t){a(e.provide)?e.provide(O,t):console.warn("[vue-composable] devtools is not supported for vue 2")}function P(){const e={},n=t.inject(O,e);if(n!==e)return n;console.warn("[vue-composable] devtools not found, please run app.use(VueComposableDevtools)")}let j=void 0;j=e=>{let t;const n=[],o=[],r=new Proxy({},{get:(e,o)=>t?t.on[o]:o in e?e[o]:e[o]=(...e)=>{n.push({type:o,args:e})}}),a=new Proxy({on:r},{get:(e,n)=>"on"===n?e.on:t?t[n]:n in e?e[n]:e[n]=(...e)=>{o.push({type:n,args:e})}});return e.then(e=>{t=e,async function(e,t,n){setTimeout(async()=>{const o=["addTimelineLayer","addInspector","sendInspectorTree","sendInspectorState","addTimelineEvent"];for(const t of o){for(const o of n.filter(e=>e.type===t))e[t](...o.args);await h(20)}new Set(n.filter(e=>"notifyComponentUpdate"===e.type).map(e=>e.args[0])).forEach(t=>e.notifyComponentUpdate(t)),t.forEach(t=>e.on[t.type](...t.args)),t.length=0,n.length=0},100)}(t,n,o)}),a};var A=j;const F=(e,t="vue-composable",n="Vue-composable devtools plugin")=>{const o=new Promise(e=>{});D(e,A(o))},U={install:(e,t={id:"vue-composable",label:"Vue-composable devtools plugin"})=>F(e,t.id,t.label)};function V(e){if(!e)return{};const t=!!e.__v_isRef,n=t&&!!e.effect,o=!!e.__v_reactive,r=n?"Computed":t?"Ref":o?"Reactive":null;return{...r?{objectType:r}:{},...e.effect?{raw:e.effect.raw.toString()}:{}}}function W(e){return e&&(s(e.isJson)||s(e.parseImmediate)||s(e.unmountCancel))}let _=void 0;let N=void 0,z=void 0;let B=void 0,H=void 0;function K(e,n){const o=w&&"BroadcastChannel"in self,r=t.ref(null),a=t.ref(null),u=t.ref(null),s=t.ref(!1),l=t.ref(!1);let i=f,c=f,v=f;if(o){const o=new BroadcastChannel(e);o.addEventListener("messageerror",e=>{u.value=e,s.value=!0},p),o.addEventListener("message",e=>{a.value=e,r.value=e.data},p),i=e=>o.postMessage(e),c=()=>{o.close(),l.value=!0},v=(e,n)=>{o.addEventListener("message",e,n),t.onUnmounted(()=>o.removeEventListener("message",e))},t.onUnmounted(()=>{n&&n(),c()})}return{supported:o,data:r,messageEvent:a,errorEvent:u,errored:s,isClosed:l,send:i,close:c,addListener:v}}function q(e,t){const n=getComputedStyle(e).getPropertyValue(t);return n?n.trim():null}function X(e,t,n){e.style.setProperty(t,n)}const Y={attributes:!0,childList:!0,subtree:!0},J=e=>e.length<=2||"-"!==e[0]||"-"!==e[1]?"--"+e:e;const Q=e=>function(t){const n=t.data||[];return new Promise(t=>{try{Promise.resolve(e.apply(e,n)).then(e=>t(postMessage([!0,e]))).catch(e=>t(postMessage([!1,e])))}catch(e){t(postMessage([!1,e]))}})};function G(e){const n=!!w&&"matchMedia"in window;let o=void 0,r=void 0,a=f;if(n){o=t.ref(matchMedia(e)),r=t.ref(o.value.matches);const n=e=>{r.value=e.matches};o.value.addEventListener("change",n,p);const a=()=>o.value.removeEventListener("change",n);t.onUnmounted(a)}else o=t.ref({}),r=t.ref(!1);return{supported:n,mediaQueryList:o,matches:r,remove:a}}function Z(e,n){const{addListener:o,send:r,close:a,supported:u}=K(e,()=>y()),s=Date.now(),l=t.ref(!1),i=t.ref(0),v=t.computed(()=>1!==i.value||l.value),d=t.ref([]),f=t.ref(n);let m=!1,h=void 0;r({type:0});const g=()=>r({type:5,id:s}),y=()=>{0!==d.value.length&&(l.value&&r({type:3,mind:1,id:Math.min(...d.value)}),r({type:4,id:s}))};return o(e=>{switch(e.data.type){case 0:r({type:2,value:f.value,mind:i.value});break;case 4:{const t=d.value.indexOf(e.data.id);t>=0&&d.value.splice(t,1),h===e.data.id&&d.value.length>0&&r({type:3,mind:1,id:Math.min(s,...d.value)});break}case 2:m=!0,f.value=e.data.value,i.value=e.data.mind;break;case 3:i.value=e.data.mind,h=1===e.data.mind&&e.data.id||void 0,l.value=h===s,l.value&&(d.value=[],g());break;case 5:d.value=[e.data.id],r({type:6,id:s});break;case 6:d.value.push(e.data.id)}},p),g(),t.watch(f,(e,t)=>{if(m)m=!1;else{if(1===i.value&&!1===l.value)return m=!0,void(f.value=t);r({type:2,mind:i.value,value:c(e)?{...e}:e}),m=!1}},{deep:!0,immediate:!1}),w&&window.addEventListener("unload",y,p),t.onUnmounted(()=>{y(),a()}),{supported:u,id:s,data:f,master:l,mind:i,editable:v,targets:d,ping:g,setMind:e=>{switch(e){case 1:l.value=!0;break;case 0:l.value=!1}i.value=e,r({type:3,id:s,mind:i.value})},addListener:o}}const ee="no-scroll";function te(e,n){const o=Symbol(),r=t.inject(e,o);return r===o?n():r}function ne(e,n){const a=o(n),s=o(e);return c(a.value)||t.isRef(n)?[void 0!==s.value?s:void 0,a]:!c(s.value)||r(s.value)||u(s.value)?[s.value?s:void 0,void 0]:[void 0,s]}function oe(e,o){const[r,a]=ne(e,o),u=t.computed(()=>new Intl.NumberFormat(n(r),n(a))),s=(e,t,o)=>(t||o?new Intl.NumberFormat(n(o)||n(r),{...n(a),...n(t)}):u.value).format(n(e));return{format:(e,n,o)=>t.computed(()=>s(e,n,o)),formatString:s,formatter:u}}function re(e){if(e)return i(e)?e:ae(e)}const ae=e=>{const t=e.match(/^(\d+)px$/);if(t)return+t[1]};function ue(e){const n={},o=new Map,r=t.ref();let a=[];const u=[];for(const r in e){const s=e[r],l=re(s);if(void 0!==l){const e=t.ref(!1);n[r]=e,o.set(l,{name:r,valid:e}),a.push(l)}else{const{matches:e,remove:t}=G(s);n[r]=e,u.push(t)}}a=a.sort((e,t)=>t-e);const s=w?()=>{const e=window.innerWidth;let t=void 0;for(let n=0;n<a.length;n++){const r=a[n],u=o.get(r);u.valid.value=e>=r,e>=r&&void 0===t&&(t=u.name)}r.value=t}:f,l=S(s,10),i=w?()=>window.removeEventListener("resize",l):f;return w&&(t.onMounted(()=>{s(),window.addEventListener("resize",l,p)}),t.onUnmounted(()=>{i(),u.forEach(e=>e())})),{...n,remove:i,current:r}}const se=Symbol(""),le={sm:640,md:768,lg:1024,xl:1280};function ie(e){return c(e)&&c(e.theme)&&c(e.theme.screens)}function ce(e){return!!c(e)&&(u(e.min)||u(e.max)||i(e.min)||i(e.max))}function ve(e){return i(e)?e+"px":e}function de(e){const t=[];if(r(e)){const n=e.map(de);for(let e=0;e<n.length;e++){const o=n[e];t.push(...o)}}else c(n=e)&&u(n.raw)?t.push(e.raw):ce(e)?t.push(function(e){return ce(e)?`(${[e.max&&"max-width: "+ve(e.max),e.min&&"min-width: "+ve(e.min)].filter(Boolean).join(" and ")})`:""}(e)):(u(e)||i(e))&&t.push(`(min-width: ${ve(e)})`);var n;return t}function fe(e){const n=ie(e)?e.theme.screens:e;if(ie(e))for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];c(t)?n[e]=de(n[e]).join(" or "):u(t)&&(t.endsWith("px")||(n[e]=de(n[e]).join(" or ")))}const o=ue(n);return t.provide(se,o),o}function me(e,t){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&(t&&0!==t.length||!1)}function pe(e){try{if(!e)return!1;const t=":$";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return me(t,e)}}function he(e,t){try{return e.parse(t)}catch{return t}}let ge=void 0;function ye(e,n=JSON,r=10){const a=w?window[e]:void 0,s=pe(a);ge||(ge=new Map,w&&window.addEventListener("storage",e=>{if(e.newValue===e.oldValue)return;let t=ge.get("localStorage");t=e.storageArea===window.localStorage?ge.get("localStorage"):ge.get("sessionStorage"),t&&Object.keys(t.$syncKeys).length>0&&(null===e.key?t.clear():t.$syncKeys[e.key]&&(null===e.newValue?t.removeItem(e.key):t.updateItem(e.key,e.newValue)))}));let l,i=ge.get(e);return s&&a?i?l=i.$quotaError:(l=t.ref(!1),i={$refMap:new Map,$watchHandlers:new Map,$syncKeys:{},$quotaError:l,key:a.key,length:a.length,setSync(e,t){t?this.$syncKeys[e]=!0:delete this.$syncKeys[e]},clear(){this.$refMap.forEach((e,t)=>this.removeItem(t))},removeItem(e){const t=this.$refMap.get(e);t&&(t.value=void 0);const n=this.$watchHandlers.get(e);n&&n(),delete this.$syncKeys[e],this.$refMap.delete(e),a.removeItem(e)},getItem(e){const t=a.getItem(e);return t?this.setItem(e,he(n,t)):null},setItem(e,s){const i=o(s);this.$refMap.set(e,i);const c=(e,t)=>{try{const o=a.getItem(e),r=u(t)?t:n.stringify(t);a.setItem(e,r),o!==r&&w&&this.$syncKeys[e]&&window.dispatchEvent(new StorageEvent(e,{newValue:r,oldValue:o,storageArea:a}))}catch(e){l.value=me(e,a)}};c(e,s);const v=t.watch(i,M(t=>{c(e,t)},r),{immediate:!1,deep:!0});return this.$watchHandlers.set(e,v),i},updateItem(e,t){let o=this.$refMap.get(e);o&&(o.value=he(n,t))}},ge.set(e,i)):(l=t.ref(!1),i={}),{supported:s,quotaError:l,store:i,remove:()=>ge.delete(e)}}function we(e,n,o){const{supported:r,store:a}=ye("localStorage");let u=f,s=f,l=f,i=void 0;return r&&a?(l=t=>a.setSync(e,t),u=()=>a.removeItem(e),s=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n)),!1!==o&&l(!0)):i=t.ref(n),{supported:r,storage:i,clear:s,remove:u,setSync:l}}function be(e,n,o){const{supported:r,store:a}=ye("sessionStorage");let u=f,s=f,l=m,i=void 0;return r&&a?(u=()=>a.removeItem(e),s=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n))):i=t.ref(n),{supported:r,storage:i,clear:s,remove:u,setSync:l}}let Ee=void 0;function Se(e){const n=o(e.currentPage),r=o(e.pageSize),a=t.ref(0),u=o(e.total),s=t.computed({get:()=>a.value,set(e){i(e)&&(a.value=Math.min(e,u.value))}}),l=t.computed({get:()=>n.value,set(e){i(e)&&(n.value=y(e,1,v.value),s.value=(n.value-1)*c.value)}}),c=t.computed({get:()=>r.value,set(e){i(e)&&(r.value=e)}}),v=t.computed(()=>Math.ceil(u.value/c.value));l.value=n.value;return t.watch([u,c],e=>{l.value>v.value&&(l.value=v.value)},{immediate:!1}),{pageSize:c,total:u,currentPage:l,offset:s,lastPage:v,next:()=>++l.value,prev:()=>--l.value,first:()=>l.value=1,last:()=>l.value=v.value}}function Me(e){const n=1e3,o=e&&e.refreshMs||n,r=!e||!s(e.sync)||e.sync,u=e&&a(e.timeFn)&&e.timeFn||Date.now;let l=void 0,i=void 0;const c=t.ref(u()),v=()=>{clearInterval(l),clearTimeout(i)},d=w?()=>l=setInterval(()=>c.value=u(),o):f;if(r){const e=n-(c.value-Math.floor(c.value/n)*n);i=setTimeout(d,e)}else d();return t.onUnmounted(v),{now:c,remove:v}}function Ie(e,o){return t.computed(()=>{const a=n(e);if(!o)return a;const u=t.isRef(o)?t.reactive(o.value):t.reactive(o);return a.replace(/({?{[\w\s]*}?})/g,e=>{const t=e.replace("{","").replace("}","").trim();if(e[0]===e[1]&&"{"===e[0])return""+t;const o=r(u)?u[+t]:u[t];return void 0===o?e:""+n(o)})})}function $e(e,o,r=".",a=f){return t.computed(()=>{const t=n(e),u=n(o);if(void 0===t)return a(u,t,u,t);if(!u)return t;const s=u.split(r);let l=t;for(let e=0;e<s.length;e++){let n=s[e];if("]"===n[n.length-1]){const t=/\[[`'"]?([^`'"\]]*)[`'"]?\]/g;let o=n,r=t.exec(o);if(r){let a=r[0].length,u=r.index-a,l=1;do{r.index,u=r.index,a=r[0].length,n=n.slice(0,-r[0].length),s.splice(e+l,0,r[1]),++l}while(r=t.exec(o));if(!n&&"["===o[0]&&o.length>2)continue}else n="",console.warn(`[usePath] invalid path provided "${o}"`)}if(!c(l))return a(s.slice(0,e+1).join(r),l,u,t);if(!n)return a(s.slice(0,e+1).join(r),l,u,t);if(l=l[n],!l)return a(s.slice(0,e+1).join(r),l,u,t)}return l})}function ke(e){return void 0!==e.$value}const Le=(e,o,r)=>{const{$message:a,$validator:u,...s}=function(e){return c(e)}(o)?o:{$validator:o,$message:void 0},{$pending:l,$promise:i,$invalid:v,$error:f}=((e,o,r,a)=>{const u=t.ref(null),s=t.ref(!1),l=t.ref(),i=t.ref(!1);let c=void 0;const v=e=>{u.value=(async()=>{try{s.value=!0;const t=o(e,c);d(t)?i.value=!await t:i.value=!t,l.value=i.value?r.value:void 0}catch(e){throw i.value=!0,e}finally{s.value=!1}})().catch(e=>(l.value=n(e),i.value=!0,e))};return a.push(n=>{c=n,t.watch(()=>{try{o(e.value,c)}catch(e){}return e.value},v,{deep:!0,immediate:!0})}),{$promise:u,$pending:s,$invalid:i,$error:l}})(e,u,t.ref(a),r);return{$pending:l,$error:f,$promise:i,$invalid:v,$message:a,...s}},xe=(e,r)=>{const a={},u=ke(e)?o(e.$value):void 0;for(const o of Object.keys(e))if("$"!==o[0])if(u){const t=Le(u,e[o],r);a[o]={...t,$value:u}}else{const u=xe(e[o],r);let l,i,c=void 0;if(ke(u)){const e=Object.keys(u).filter(e=>"$"!==e[0]).map(e=>u[e]);l=t.computed(()=>e.map(e=>e.$error).map(e=>n(e)).filter(Boolean)),i=t.computed(()=>e.some(e=>!!n(e.$invalid)))}else{const e=Object.keys(u).map(e=>u[e]);l=t.computed(()=>e.map(e=>n(e.$errors)).filter(Boolean).filter(e=>e.some(Boolean))),c=t.computed(()=>e.some(e=>e.$anyDirty||s(n(e.$dirty))&&n(e.$dirty))),i=t.computed(()=>e.some(e=>!!n(e.$anyInvalid)))}a[o]={...u,$errors:l,$anyInvalid:i},c&&(a[o].$anyDirty=c)}else{if("$value"===o){a[o]=u;const e=t.ref(!1),n=t.watch(u,()=>{e.value=!0,n()},{immediate:!1,deep:!0});a.$dirty=e;continue}a[o]=e[o]}return a};const Re=Symbol("");function Ce(e){const r=t.ref(Object.keys(e.messages)),u=t.ref(e.messages),l=t.ref(e.locale),i=t.ref({});let c=t.ref();const v={},f=(e,n)=>{if(v[e])return v[e];const r=n.value[e];if(!r)return t.ref({});let u=a(r)?r():r;return d(u)?u.then(t=>v[e]=o(t)):a(r)?o(u):v[e]=t.computed(()=>n.value[e])},m=!!e.fallback&&(!s(e.notFoundFallback)||e.notFoundFallback);let p=!1;if(m){const t=f(e.fallback,u);d(t)?(t.then(e=>{c.value=e.value}),p=!0):c.value=t.value}else c.value={};const h=t.ref(0);t.watch(u,()=>h.value++,{deep:!0,immediate:!1}),t.watch([l,c,h],([t,o,r])=>{if(t===e.fallback&&m)i.value=o;else{const e=e=>i.value=b({},o,n(e)),r=f(t,u);d(r)?r.then(e):e(r)}},{immediate:!p});const g=(t,n)=>e.resolve?o(e.resolve(i.value,t,n)):Ie($e(i,t,".",(e,t,n,o)=>n),n);return{locale:l,locales:r,i18n:i,$t:g,$ts:(e,t)=>g(e,t).value,addLocale:(e,t)=>{r.value.indexOf(e)>=0||r.value.push(e),delete v[e],u.value[e]=t},removeLocale:t=>{const n=r.value.indexOf(t);if(n>=0){const o=[l.value,c.value&&e.fallback,...r.value].find(e=>e&&e!==t);o&&(t===e.fallback&&(c.value=void 0),t===l.value&&(l.value=o)),r.value.splice(n,1)}delete u.value[t],delete v[t]}}}function Te(e){const n=Ce(e);return t.provide(Re,n),n}const Oe=Symbol("");const De=Symbol(""),Pe={install(e){const n=t.ref(!0),o=t.readonly(n);{e._context.provides[De]=o;const t=e.mount;e.mount=(...e)=>{const o=t(...e);return n.value=!1,o}}}};return e.COMMIT="e6608db",e.FALSE_OP=m,e.MAX_ARRAY_SIZE=g,e.NO_OP=f,e.PASSIVE_EV=p,e.SCROLL_LOCK_CLASS=ee,e.UseDevtoolsApp=F,e.VERSION="1.0.0-beta.11",e.VUE_VERSION="3",e.VueComposableDevtools=U,e.buildI18n=Ce,e.debounce=M,e.deepClone=b,e.exponentialDelay=e=>{const t=100*Math.pow(2,e);return t+.2*t*Math.random()},e.exposeWorker=function(e){this.onmessage=async t=>{const n=e(t.data);if(void 0===n)this.postMessage(n);else if(null===n)this.postMessage(n);else if(r(n))this.postMessage(n);else if(n[Symbol.asyncIterator])for await(const e of n)this.postMessage(e);else if(n[Symbol.iterator])for(const e of n)this.postMessage(e);else this.postMessage(await n)}},e.getCssVariableFor=q,e.getDevtools=P,e.hydrationPlugin=Pe,e.injectFactory=te,e.isArray=r,e.isBoolean=s,e.isClient=w,e.isDate=l,e.isElement=v,e.isFunction=a,e.isNumber=i,e.isObject=c,e.isPromise=d,e.isString=u,e.isSymbol=e=>"symbol"==typeof e,e.minMax=y,e.noDelay=T,e.promisedTimeout=h,e.provideSSRTitle=function(e,t){const n=o(void 0===t?"":t);return e.provide(Oe,n),n},e.refShared=function(e,n){const o=t.getCurrentInstance(),r=n||o.vnode.scopeId;if(!r)return t.ref(e);const{data:a,supported:u}=Z(r,e);return a},e.setBreakpointTailwindCSS=fe,e.setCssVariableFor=X,e.setDevtools=D,e.setI18n=Te,e.storageAvailable=pe,e.unwrap=n,e.useArrayPagination=function(e,n){const r=o(e),a=Se({currentPage:1,pageSize:10,...n,total:t.computed(()=>r.value.length)}),u=t.computed(()=>{const e=r.value;return Array.isArray(e)?e.slice(a.offset.value,a.offset.value+a.pageSize.value):[]});return{...a,result:u}},e.useBreakpoint=ue,e.useBreakpointChrome=function(){return ue({mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560})},e.useBreakpointTailwindCSS=function(e){return te(se,()=>fe(e||le))},e.useBroadcastChannel=K,e.useCancellablePromise=L,e.useCssVariables=function(e,r,a){const s=w&&"MutationObserver"in self,[l,i]=t.isRef(r)||v(r)?[r,a||Y]:[s&&document.documentElement||{},r||Y],c=t.ref(!0),d={},m=[],p=Object.entries(e).map(e=>{const[t,r]=u(e[1])?[e[1]]:[e[1].name,e[1].value];return r&&(m.push(()=>X(n(l),t,n(r))),d[e[0]]=o(r)),[e[0],J(t)]});for(let e=0;e<p.length;e++){const[r,a]=p[e];d[r]||(d[r]=t.ref(t.isRef(l)&&!l.value||!s?null:q(n(l),a))),s&&t.watch([d[r],o(l)],e=>{c&&e[1]&&e[0]!==q(e[1],a)&&X(e[1],a,e[0])},{immediate:!t.isRef(l)})}if(!s)return{...d,stop:f,resume:f,supported:s,observing:c};const h=()=>{for(let e=0;e<p.length;e++){const[t,o]=p[e];d[t].value=q(n(l),o)}},g=new MutationObserver(h),y=()=>{g.disconnect(),c.value=!1},b=()=>{c.value||h(),g.observe(n(l),i),c.value=!0};return t.onUnmounted(y),t.isRef(l)?t.onMounted(()=>{m.forEach(e=>e()),t.watch(l,(e,t)=>{t&&y(),e&&b()})}):(w||l)&&(m.forEach(e=>e()),b()),{...d,supported:s,resume:b,stop:y,observing:c}},e.useCurrencyFormat=function(e,o,r){const a=n(e),u=!c(a),s=u?e:t.computed(()=>n(e).currency),[l,i]=ne(o,u?r:e),v=t.computed(()=>{const e=n(i)||{},t=n(s)||e.currency;return{style:"currency",...e,currency:t}}),d=oe(l),f=(e,t,o,r,a)=>{const u={...v.value,...n(r)},s=n(t)||u.currency,l=n(o)||u.currencyDisplay;return d.formatString(e,{...u,currency:s,currencyDisplay:l},a)};return{format:(e,n,o,r,a)=>t.computed(()=>f(e,n,o,r,a)),formatString:f}},e.useDateNow=function(e){return Me({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:Date.now})},e.useDebounce=S,e.useDevtoolsComponentState=function(e,o){const u=t.getCurrentInstance(),s=P();s&&u&&s.on.inspectComponent((t,s)=>{if(t.componentInstance!==u)return;const[l,i]=c(o)?[o.type,o.multiple]:["setup",!1];if(a(e))return void e(t.instanceData,s);let v=r(e)?e:Object.keys(e).map(t=>({type:l,key:t,value:n(e[t]),...V(e[t])}));if(!i){const e=new Set(t.instanceData.state.map(e=>e.key));v=v.filter(t=>!e.has(t.key))}t.instanceData.state.push(...v)})},e.useDevtoolsInspector=function(e,n=[]){const o=P(),r=t.ref(n),a=t.computed(()=>{if(!r.value)return new Map;const e=t.toRaw(r.value),n=new Map;for(const t of e)n.set(t.id,t);return n});if(o){const n=e.id;o.addInspector(e),o.on.getInspectorTree(o=>{if(o.inspectorId!=n)return;if(!r.value)return;const a=o.filter;let u=t.toRaw(r.value);o.filter&&(u=e.nodeFilter?e.nodeFilter(o.filter,u):u.filter(e=>e.id.indexOf(a)>=0||e.label.indexOf(a)>=0)),o.rootNodes=u}),o.on.getInspectorState(o=>{if(o.inspectorId!=n)return;const r=a.value.get(o.nodeId);if(r){const n=t.reactive(r.state);o.state=e.stateFilter?e.stateFilter("",n):n}}),t.watch(r,()=>{o.sendInspectorTree(n),o.sendInspectorState(n)},{immediate:!0,deep:!0})}return{nodes:r}},e.useDevtoolsTimelineLayer=function(e,t,n){const o=P();let r=f,a=f;return o&&(o.addTimelineLayer({id:e,label:t,color:n}),r=(t,n)=>o.addTimelineEvent({layerId:e,event:t,all:n}),a=e=>r({...e,time:Date.now()})),{id:e,addEvent:r,pushEvent:a}},e.useEvent=E,e.useFetch=function(e,n){const o=t.ref(null),r=t.ref(""),a=t.ref(),s=t.ref(null),[l,i,c]=W(e)?[!1!==e.isJson,!1!==e.parseImmediate,!1!==e.unmountCancel]:W(n)?[!1!==n.isJson,!1!==n.parseImmediate,!1!==n.unmountCancel]:[!0,!0,!0],v=e?u(e)?n:W(e)?e:u(e.url)?n:e:void 0,d=t.ref(!1),f=t.ref();let m=void 0;const p=e=>{m&&(m.abort(),d.value=!0,f.value=e)},h=k(async(e,t)=>{m=new AbortController;const n=await fetch(e,{signal:m.signal,...v,...t});if(n){const e=[l?n.clone().json().then(e=>o.value=e).catch(e=>{o.value=null,s.value=e}):Promise.resolve(),n.clone().blob().then(e=>{a.value=e}),n.clone().text().then(e=>{r.value=e})];i&&await Promise.all(e)}return n},!0),g=t.computed(()=>h.result.value&&h.result.value.status||null),y=t.computed(()=>h.result.value&&h.result.value.statusText||null);return e&&(u(e)||u(e.url))&&h.exec(e,void 0,!1),c&&t.getCurrentInstance()&&t.onUnmounted(()=>{m&&p("unmounted")}),{...h,cancel:p,isCancelled:d,cancelledMessage:f,text:r,blob:a,json:o,jsonError:s,status:g,statusText:y}},e.useFormat=Ie,e.useGeolocation=function(e){const n=w&&!!navigator.geolocation,o=t.ref(e?!1===e.immediate:void 0),r=t.ref(null),a=t.ref(null),u=t.ref(null),l=t.ref(e&&e.enableHighAccuracy||null);let i=f;if(n){const n=e=>{a.value=e.timestamp,u.value=e.coords,r.value=null},c=e=>{a.value=Date.now(),u.value=null,r.value=e},v=()=>!0!==o.value&&f&&navigator.geolocation.clearWatch(f);let d=()=>navigator.geolocation.getCurrentPosition(n,c,e);i=o.value?()=>{o.value?o.value=!1:d()}:d;let f=0;t.onMounted(()=>t.watch([l,o],t=>{v();const o=s(t[0])?t[0]:e?e.enableHighAccuracy:void 0;f=navigator.geolocation.watchPosition(n,c,e?{...e,enableHighAccuracy:o}:{enableHighAccuracy:o})},{immediate:!o.value})),t.onUnmounted(v)}return{supported:n,refresh:i,error:r,timestamp:a,coords:u,highAccuracy:l}},e.useHydration=function(){return t.inject(De,t.computed(()=>!1))},e.useI18n=function(e){return e?Te(e):t.inject(Re)},e.useIntersectionObserver=function(e,r){const a=w&&"IntersectionObserver"in window,u=e?o(e):void 0,s=!u||!v(u.value)&&u.value?void 0:u,l=t.computed(()=>r?n(r):s?void 0:n(e)),i=t.ref([]),c=t.computed(()=>i.value.length>0&&i.value.every(e=>e.isIntersecting)),d=e=>{i.value=e};let m=t.ref();a&&t.watch(l,e=>{m.value&&m.value.disconnect();const t=e&&e&&{root:n(e.root),rootMargin:n(e.rootMargin),threshold:n(e.threshold)}||void 0;m.value=new IntersectionObserver(d,t);i.value.map(e=>e.target).forEach(m.value.observe)},{deep:!0,immediate:!0});const p=a?e=>{const t=n(e);m.value.observe(t)}:f,h=a?e=>{const t=n(e);m.value.unobserve(t)}:f,g=()=>m.value.disconnect();return s&&(t.onMounted(()=>{s.value&&p(s)}),t.onUnmounted(()=>{g()})),{supported:a,elements:i,observe:p,unobserve:h,disconnect:g,isIntersecting:c}},e.useInterval=function(e,n,...o){let r=void 0;const a=(t,...a)=>{if(u(),!t&&!n)return;return r=setInterval(e,t||n,...a&&a.length?a:o)},u=()=>{r&&(clearInterval(r),r=void 0)};return i(n)&&a(),t.onUnmounted(u),{remove:u,start:a}},e.useIntlDateTimeFormat=function(e,o){const[r,a]=ne(e,o),s=t.computed(()=>new Intl.DateTimeFormat(n(r),n(a))),l=(e,t,o)=>{const l=t||o?new Intl.DateTimeFormat(n(o)||n(r),{...n(a),...n(t)}):s.value,i=n(e);return l.format(u(i)?new Date(i):i)};return{format:(e,n,o)=>t.computed(()=>l(e,n,o)),formatString:l,formatter:s}},e.useIntlNumberFormat=oe,e.useLanguage=function(){if(B||(B=w?t.ref(navigator.language):t.ref("")),!H)if(w){H=t.ref(navigator.languages);const e=()=>{B.value=navigator.language,H.value=navigator.languages};window.addEventListener("languagechange",e,p)}else H=t.ref([]);return{language:B,languages:H}},e.useLocalStorage=we,e.useLockScroll=function(e,a){const s=u(e)?t.ref([]):r(t.unref(e))?o(e):o([e]),l=u(a)?{lockedClass:a,auto:!0}:a||{auto:!0};l.lockedClass||(l.lockedClass=ee);const i=t.ref(!1),c=t.computed(()=>s.value.map(e=>t.ref(e))),v=t.watch([i,c],([e,t],[o,r])=>{for(const a of t){const t=n(a);if(l.lockedClass){if(!t)return;t.classList.toggle(l.lockedClass,e)}l.onChange&&(o===e&&r.find(e=>n(e)===t)||l.onChange(t,e))}},{flush:"sync",deep:!1}),d=()=>i.value=!0,f=()=>i.value=!1;return u(e)&&t.onMounted(()=>s.value=Array.from(document.querySelectorAll(e))),!1!==l.auto&&(t.onMounted(d),t.onActivated(d),t.onDeactivated(f),t.onBeforeUnmount(f)),{locked:i,lock:d,unlock:f,remove:v}},e.useMatchMedia=G,e.useMouseDistanceFromElement=function(e,o,r){let a=void 0,u=f;if(w){const{pageX:s,pageY:l,remove:i}=I(window,o,r);a=t.computed(()=>{const t=n(e);return t?Math.floor(Math.sqrt(Math.pow(s.value-(t.offsetLeft+t.clientWidth/2),2)+Math.pow(l.value-(t.offsetTop+t.clientHeight/2),2))):0}),u=i}else a=t.computed(()=>-1);return{distance:a,remove:u}},e.useNetworkInformation=function(){const e=!!w&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection),n=!!e,o=t.ref(0),r=t.ref(0),a=t.ref("none"),u=t.ref(0),s=t.ref(!1),l=t.ref("none");let i=f,c=f;return e&&(i=()=>{o.value=e.downlink,r.value=e.downlinkMax,a.value=e.effectiveType,u.value=e.rtt,s.value=e.saveData,l.value=e.type},c=E(e,"change",i,p),i()),{supported:n,downlink:o,downlinkMax:r,effectiveType:a,rtt:u,saveData:s,type:l,remove:c}},e.useNow=Me,e.useOnMouseMove=I,e.useOnOutsidePress=function(e,t){if(!w)return()=>{};const n=o(e),r=$.find(e=>"on"+e in document.documentElement);return E(document,r,e=>n.value&&!n.value.contains(e.target)&&t(e),{passive:!0})},e.useOnResize=function(e,n,r){const a=o(e),u=t.ref(a.value&&a.value.clientHeight),s=t.ref(a.value&&a.value.clientWidth);let l=()=>{u.value=a.value.clientHeight,s.value=a.value.clientWidth};const[c,v]=i(n)?[void 0,n]:[n,r];v&&(l=S(l,r));const d=w?E(window,"resize",l,c||p):f;return t.isRef(e)&&!e.value&&t.onMounted(l),{height:u,width:s,remove:d}},e.useOnScroll=function(e,n,r){const a=e=>!(i(e)||s(e)||!v(e)&&!t.isRef(e)||!e),u=a(e)?o(e):t.ref(w&&window||void 0),l=a(e)?u:t.ref(w&&window.document.scrollingElement||void 0),c=t.ref(l.value&&l.value.scrollTop||0),d=t.ref(l.value&&l.value.scrollLeft||0);let f=()=>{c.value=l.value.scrollTop,d.value=l.value.scrollLeft};const m=(...e)=>l.value&&l.value.scrollTo&&l.value.scrollTo.apply(l.value,e),h=e=>m({top:e}),g=e=>m({left:e}),[y,b]=i(e)||!e?[p,e]:i(n)?[p,n]:[n,r];b&&(f=S(f,r));const M=E(u,"scroll",f,y),I=t.watch(c,h,{immediate:!1}),$=t.watch(d,g,{immediate:!1});return{scrollTop:c,scrollLeft:d,scrollTo:m,remove:()=>{M(),$(),I()},scrollTopTo:h,scrollLeftTo:g}},e.useOnline=function(){const e=w&&"onLine"in navigator;return e||(_=t.ref(!1)),_||(_=t.ref(navigator.onLine),window.addEventListener("offline",()=>_.value=!1,p),window.addEventListener("online",()=>_.value=!0,p)),{supported:e,online:_}},e.usePageVisibility=function(){return z||(z=t.ref(w&&document.hidden)),N||(w?(N=t.ref(document.visibilityState),document.addEventListener("visibilitychange",()=>{N.value=document.visibilityState,z.value=document.hidden},p)):N=t.ref("visible")),{visibility:N,hidden:z}},e.usePagination=Se,e.usePath=$e,e.usePerformanceNow=function(e){return Me({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:()=>performance.now()})},e.usePromise=k,e.usePromiseLazy=function(e,t=!1){return k(e,{lazy:!0,throwException:t})},e.useRetry=function(e,n){const o=!e||a(e)?{}:e,r=a(e)?e:n;if(!a(e)&&!c(e))throw new Error("[useRetry] options needs to be 'object'");if(r&&!a(r))throw new Error("[useRetry] factory needs to be 'function'");const u=t.ref(!1),s=t.ref(),l=t.ref([]),i={value:!1},v={isRetrying:u,retryCount:t.computed(()=>l.value.length),nextRetry:s,retryErrors:l,[x]:{value:0},[R]:i},d=r?(...e)=>(++v[x].value,C(o,v,r,e)):e=>(++v[x].value,C(o,v,e,void 0));return{...v,cancel:()=>{v.isRetrying.value=!1,v.retryErrors.value.push(new Error("[useRetry] cancelled")),v.nextRetry.value=void 0,i.value=!0},exec:d}},e.useSSRTitle=function(e){const n=Symbol(),o=t.inject(Oe,n);return o===n||void 0===o?t.ref(u(e)?e:""):(u(e)&&(o.value=e),o)},e.useSessionStorage=be,e.useShare=function(e){const n=w&&"share"in navigator;let o=()=>Promise.resolve(!1),r=m,a=t.ref(!1),u=t.ref(!1);return n&&(o=e=>(a.value=!1,u.value=!1,navigator.share(e).then(e=>(a.value=!0,e)).catch(e=>(a.value=!1,u.value=!0,!1))),r=e=>navigator.canShare(e),e&&r(e)&&o(e)),{supported:n,share:o,canShare:r,shared:a,cancelled:u}},e.useSharedRef=Z,e.useStorage=function(e,t,n){return void 0===Ee&&(Ee=ye("localStorage").supported),Ee?we(e,t,n):be(e,t)},e.useTimeline=function(e,n){const o=t.ref([]),r=n&&n.clone?n.clone:e=>e,a=n&&n.maxLength||g;return t.watch(e,(e,t)=>{o.value.unshift({item:r(t),date:new Date}),o.value.length>a&&o.value.pop()},{immediate:!1,flush:"sync",...n}),t.readonly(o)},e.useTitle=function(e=null){const n=t.ref(u(e)?e:document.title),o=new MutationObserver(e=>{n.value=e[0].target.textContent});t.watch(n,(e,t)=>{u(e)&&e!==t&&(document.title=e)},{immediate:!0,flush:"sync"});const r=document.querySelector("title");return o.observe(r,{childList:!0}),t.onUnmounted(()=>o.disconnect()),n},e.useUndo=function(e,n){const r=o(e),a=t.ref([]),u=t.ref(0),s=n&&n.maxLength||g,l=n&&n.clone||(e=>e),i=t.computed(()=>{const e=0===u.value?1:u.value;return a.value.slice(e)}),c=t.computed(()=>{const e=0===u.value?1:0;return a.value.slice(e,u.value)});t.watch(r,e=>{if(a.value[u.value]===e)return;if(u.value>0){const e=u.value;a.value.splice(0,e),u.value=0}a.value.length>s&&a.value.pop();const t=l(e);a.value.unshift(t)},{...n,immediate:!0,flush:"sync"});const v=e=>{const t=Math.sign(e)<=0?Math.max(e,-c.value.length):Math.min(e,i.value.length);u.value+=t,r.value=a.value[u.value]};return{value:r,undo:(e=1)=>v(e),redo:(e=1)=>v(-e),jump:v,prev:i,next:c}},e.useVModel=function(e,n){const o=t.getCurrentInstance();return o?t.computed({get:()=>e[n],set(e){o.emit("update:"+n,e)}}):t.ref()},e.useValidation=function(e){const n=[],o=xe({input:e},n),r=t.reactive(o.input);return n.forEach(e=>e(r)),r},e.useValueSync=function(e,n){const a=o(e),u=2===arguments.length?t.isRef(arguments[1])&&r(arguments[1].value)?arguments[1]:t.ref([o(arguments[1])]):t.ref(Array.from(arguments).slice(1).map(e=>o(e)));u.value.forEach(e=>{e.value=a.value});let s=u.value.length;return t.watch([a,u],([e,t])=>{if(s<t.length)t.forEach(t=>{t.value!==e&&(t.value=e)});else{s=t.length;for(const n of t)if(n.value!==e)return void(a.value=n.value)}},{deep:!0}),t.watch(a,e=>{u.value.forEach(t=>t.value=e)},{deep:!0,flush:"sync"}),u},e.useWebSocket=function(e,n){const o=w&&"WebSocket"in window;let r=null;const a=t.ref(null),u=t.ref(null),s=t.ref(null),l=t.ref(!1),i=t.ref(!1),c=t.ref(!1);let v=f,d=f;return o&&(r=new WebSocket(e,n),r.addEventListener("message",e=>{a.value=e,s.value=e.data}),r.addEventListener("error",e=>{u.value=e,c.value=!0}),r.addEventListener("close",()=>{l.value=!1,i.value=!0}),r.addEventListener("open",()=>{l.value=!0,i.value=!1}),v=e=>r.send(e),d=(e,t)=>{r.close(e,t)}),{supported:o,ws:r,send:v,close:d,messageEvent:a,errorEvent:u,data:s,isOpen:l,isClosed:i,errored:c}},e.useWebStorage=ye,e.useWorker=function(e,n,o){const r=w&&"Worker"in self,a=t.ref(),u=t.ref(),s=t.ref(!r),l=t.ref(!r);if(!r)return s.value=!0,{worker:void 0,data:u,postMessage:f,terminate:f,errorEvent:a,errored:l,terminated:s};const i=new Worker(e,o),c=e=>i.postMessage(e);function v(){i.terminate(),s.value=!0}return i.addEventListener("message",e=>{u.value=e.data},p),i.addEventListener("error",e=>{a.value=e,l.value=!0},p),t.onUnmounted(v),n&&c(n),{worker:i,data:u,postMessage:c,terminate:v,errorEvent:a,errored:l,terminated:s}},e.useWorkerFunction=function(e,o){const r=w&&"Worker"in self,a=t.computed(()=>o&&n(o.dependencies)||[]),u=t.computed(()=>o&&n(o.timeout));if(!r)return L(e,{lazy:!0,throwException:!0});const s=L((...n)=>new Promise((o,r)=>{const l=function(e,t){const n=[t.length>0?`importScripts("${t.join('","')}");`:"","onmessage=",`(${Q.toString()})(${e.toString()})`],o=new Blob(n,{type:"text/javascript"});return URL.createObjectURL(o)}(e,a.value),i=new Worker(l);let c=-1;const v=u.value,d=()=>{i.terminate(),URL.revokeObjectURL(l),clearTimeout(c),h()},m=n.length===e.length+1&&t.isRef(n[n.length-1])&&!1===n[n.length-1].value?t.computed(()=>s.cancelled.value||n[n.length-1].value):s.cancelled,h=m?t.watch(m,()=>{d(),o(void 0)},{immediate:!1}):f;i.addEventListener("message",e=>{e.data[0]?o(e.data[1]):r(e.data[1]),d()},p),i.addEventListener("error",e=>{d(),r(e)},p),i.postMessage([...n]),v&&(c=setTimeout(()=>{s.cancel(`[WebWorker] timeout after ${v}ms`)},v))}),{lazy:!0,throwException:!0});return s},e.wrap=o,e}({},VueRuntimeCore);
var vueComposable=function(e,t){"use strict";function n(e){return t.isRef(e)?e.value:e}function o(e){return t.isRef(e)?e:t.ref(e)}const r=Array.isArray,a=e=>"function"==typeof e,u=e=>"string"==typeof e,s=e=>"boolean"==typeof e,l=e=>c(e)&&a(e.getTime),i=e=>"number"==typeof e,c=e=>null!==e&&"object"==typeof e,v=e=>c(e)&&!!e.tagName;function d(e){return c(e)&&a(e.then)&&a(e.catch)}const f=()=>{},m=()=>!1,p={passive:!0};function h(e){return new Promise(t=>{setTimeout(t,e)})}const g=2**32-2;function y(e,t,n){return e<t?t:e>n?n:e}const w="undefined"!=typeof window;function b(e,...t){for(let o=0;o<t.length;o++){const r=t[o];if(void 0===r||!c(r))continue;const a=Object.keys(r);for(let t=0;t<a.length;t++){const o=a[t],u=n(r[o]),s=typeof u,l=typeof e[o];void 0!==e[o]&&s!==l||(e[o]=c(u)?b(e[o]||{},u):r[o])}}return e}function E(e,n,r,a){let u=f;if(e){const s=o(e),l=e=>e.removeEventListener(n,r),i=e=>e.addEventListener(n,r,a),c=t.watch(s,(e,t,n)=>{e&&(i(e),n(()=>l(e)))},{immediate:!0});u=()=>{l(s.value),c()}}return u}function S(e,t,n){return M(e,t,n)}function M(e,t=50,n={isImmediate:!1}){let o;return function(...r){const a=this,u=n.isImmediate&&void 0===o;void 0!==o&&clearTimeout(o),o=setTimeout((function(){o=void 0,n.isImmediate||e.apply(a,r)}),t),u&&e.apply(a,r)}}function I(e,n,o){const r=t.ref(0),a=t.ref(0),u=t.ref(0),s=t.ref(0);let l=e=>{r.value=e.x,a.value=e.y,u.value=e.pageX,s.value=e.pageY};const[c,v]=i(n)?[void 0,n]:[n,o];v&&(l=S(l,o));const d=E(e,"mousemove",l,c);return{mouseX:r,mouseY:a,pageX:u,pageY:s,remove:d}}const $=["scrollBy","scrollTo","scrollIntoView"];const k=["mousedown","touchstart"];function L(e,n){if(!e)throw new Error(`[usePromise] argument can't be '${e}'`);if("function"!=typeof e)throw new Error("[usePromise] expects function, but received "+typeof e);const[o,r]=s(n)?[n,!1]:c(n)?[n.lazy,n.throwException]:[!1,!1],a=t.ref(!1),u=t.ref(null),l=t.ref(null),i=t.ref(),v=async(...t)=>{a.value=!0,u.value=null;const n=t&&e.length!==t.length&&t.length>0&&s(t[t.length-1])?t[t.length-1]:r,o=i.value=e(...t);try{const e=await o;return i.value===o&&(l.value=e),e}catch(e){return i.value===o&&(u.value=e,l.value=null),n?o:void 0}finally{i.value===o&&(a.value=!1)}};return o||v(),{exec:v,result:l,promise:i,loading:a,error:u}}function x(e,n){const o=t.ref(!1);let r=void 0;const a=L((...t)=>{return n=e(...t),new Promise((e,t)=>{r=e=>{o.value=!0,t(e)},n.then(e).catch(t)});var n},n);return!t.getCurrentInstance()||c(n)&&!1===n.unmountCancel||t.onUnmounted(()=>r&&r()),{...a,cancel:e=>{r&&r(e)},cancelled:o}}const R=Symbol(""),C=Symbol(""),T=async(e,t,n,o)=>{const r=t[R].value;let a=-1;const u=e.maxRetries||9001,s=e.retryDelay||O;t.retryErrors.value=[],t.isRetrying.value=!1,t.nextRetry.value=void 0;let c=void 0;do{let e=!1,v=null;try{if(++a,v=o?n(...o):n(),d(v)&&(v=await v),t[C].value)return null;e=!0}catch(e){v=null,t.retryErrors.value.push(e)}if(r!==t[R].value)return v;if(e)return t.isRetrying.value=!1,t.nextRetry.value=void 0,v;if(a>=u)return t.isRetrying.value=!1,t.nextRetry.value=void 0,Promise.reject(new Error("[useRetry] max retries reached "+u));t.isRetrying.value=!0;const f=Date.now(),m=s(a),p=d(m)?await m:m;if(!d(m)||p){if(i(p))c=p;else{if(!l(p))throw new Error(`[useRetry] invalid value received from options.retryDelay '${typeof p}'`);c=p.getTime()}c<f?t.nextRetry.value=f+c:(t.nextRetry.value=c,c-=f),c>0&&await h(c)}if(t[C].value)return null;if(r!==t[R].value)return v}while(a<9e3);return null};const O=()=>0;const D=Symbol("");function P(e,t){a(e.provide)?e.provide(D,t):console.warn("[vue-composable] devtools is not supported for vue 2")}function j(){const e={},n=t.inject(D,e);if(n!==e)return n;console.warn("[vue-composable] devtools not found, please run app.use(VueComposableDevtools)")}let A=void 0;A=e=>{let t;const n=[],o=[],r=new Proxy({},{get:(e,o)=>t?t.on[o]:o in e?e[o]:e[o]=(...e)=>{n.push({type:o,args:e})}}),a=new Proxy({on:r},{get:(e,n)=>"on"===n?e.on:t?t[n]:n in e?e[n]:e[n]=(...e)=>{o.push({type:n,args:e})}});return e.then(e=>{t=e,async function(e,t,n){setTimeout(async()=>{const o=["addTimelineLayer","addInspector","sendInspectorTree","sendInspectorState","addTimelineEvent"];for(const t of o){for(const o of n.filter(e=>e.type===t))e[t](...o.args);await h(20)}new Set(n.filter(e=>"notifyComponentUpdate"===e.type).map(e=>e.args[0])).forEach(t=>e.notifyComponentUpdate(t)),t.forEach(t=>e.on[t.type](...t.args)),t.length=0,n.length=0},100)}(t,n,o)}),a};var F=A;const U=(e,t="vue-composable",n="Vue-composable devtools plugin")=>{const o=new Promise(e=>{});P(e,F(o))},V={install:(e,t={id:"vue-composable",label:"Vue-composable devtools plugin"})=>U(e,t.id,t.label)};function _(e){if(!e)return{};const t=!!e.__v_isRef,n=t&&!!e.effect,o=!!e.__v_reactive,r=n?"Computed":t?"Ref":o?"Reactive":null;return{...r?{objectType:r}:{},...e.effect?{raw:e.effect.raw.toString()}:{}}}function W(e){return e&&(s(e.isJson)||s(e.parseImmediate)||s(e.unmountCancel))}let B=void 0;let N=void 0,z=void 0;let H=void 0,K=void 0;function q(e,n){const o=w&&"BroadcastChannel"in self,r=t.ref(null),a=t.ref(null),u=t.ref(null),s=t.ref(!1),l=t.ref(!1);let i=f,c=f,v=f;if(o){const o=new BroadcastChannel(e);o.addEventListener("messageerror",e=>{u.value=e,s.value=!0},p),o.addEventListener("message",e=>{a.value=e,r.value=e.data},p),i=e=>o.postMessage(e),c=()=>{o.close(),l.value=!0},v=(e,n)=>{o.addEventListener("message",e,n),t.onUnmounted(()=>o.removeEventListener("message",e))},t.onUnmounted(()=>{n&&n(),c()})}return{supported:o,data:r,messageEvent:a,errorEvent:u,errored:s,isClosed:l,send:i,close:c,addListener:v}}function X(e,t){const n=getComputedStyle(e).getPropertyValue(t);return n?n.trim():null}function Y(e,t,n){e.style.setProperty(t,n)}const J={attributes:!0,childList:!0,subtree:!0},Q=e=>e.length<=2||"-"!==e[0]||"-"!==e[1]?"--"+e:e;const G=e=>function(t){const n=t.data||[];return new Promise(t=>{try{Promise.resolve(e.apply(e,n)).then(e=>t(postMessage([!0,e]))).catch(e=>t(postMessage([!1,e])))}catch(e){t(postMessage([!1,e]))}})};function Z(e){const n=!!w&&"matchMedia"in window;let o=void 0,r=void 0,a=f;if(n){o=t.ref(matchMedia(e)),r=t.ref(o.value.matches);const n=e=>{r.value=e.matches};o.value.addEventListener("change",n,p);const a=()=>o.value.removeEventListener("change",n);t.onUnmounted(a)}else o=t.ref({}),r=t.ref(!1);return{supported:n,mediaQueryList:o,matches:r,remove:a}}function ee(e,n){const{addListener:o,send:r,close:a,supported:u}=q(e,()=>y()),s=Date.now(),l=t.ref(!1),i=t.ref(0),v=t.computed(()=>1!==i.value||l.value),d=t.ref([]),f=t.ref(n);let m=!1,h=void 0;r({type:0});const g=()=>r({type:5,id:s}),y=()=>{0!==d.value.length&&(l.value&&r({type:3,mind:1,id:Math.min(...d.value)}),r({type:4,id:s}))};return o(e=>{switch(e.data.type){case 0:r({type:2,value:f.value,mind:i.value});break;case 4:{const t=d.value.indexOf(e.data.id);t>=0&&d.value.splice(t,1),h===e.data.id&&d.value.length>0&&r({type:3,mind:1,id:Math.min(s,...d.value)});break}case 2:m=!0,f.value=e.data.value,i.value=e.data.mind;break;case 3:i.value=e.data.mind,h=1===e.data.mind&&e.data.id||void 0,l.value=h===s,l.value&&(d.value=[],g());break;case 5:d.value=[e.data.id],r({type:6,id:s});break;case 6:d.value.push(e.data.id)}},p),g(),t.watch(f,(e,t)=>{if(m)m=!1;else{if(1===i.value&&!1===l.value)return m=!0,void(f.value=t);r({type:2,mind:i.value,value:c(e)?{...e}:e}),m=!1}},{deep:!0,immediate:!1}),w&&window.addEventListener("unload",y,p),t.onUnmounted(()=>{y(),a()}),{supported:u,id:s,data:f,master:l,mind:i,editable:v,targets:d,ping:g,setMind:e=>{switch(e){case 1:l.value=!0;break;case 0:l.value=!1}i.value=e,r({type:3,id:s,mind:i.value})},addListener:o}}const te="no-scroll";function ne(e,n){return t.inject(e,n,!0)}function oe(e,n){const a=o(n),s=o(e);return c(a.value)||t.isRef(n)?[void 0!==s.value?s:void 0,a]:!c(s.value)||r(s.value)||u(s.value)?[s.value?s:void 0,void 0]:[void 0,s]}function re(e,o){const[r,a]=oe(e,o),u=t.computed(()=>new Intl.NumberFormat(n(r),n(a))),s=(e,t,o)=>(t||o?new Intl.NumberFormat(n(o)||n(r),{...n(a),...n(t)}):u.value).format(n(e));return{format:(e,n,o)=>t.computed(()=>s(e,n,o)),formatString:s,formatter:u}}function ae(e){if(e)return i(e)?e:ue(e)}const ue=e=>{const t=e.match(/^(\d+)px$/);if(t)return+t[1]};function se(e){const n={},o=new Map,r=t.ref();let a=[];const u=[];for(const r in e){const s=e[r],l=ae(s);if(void 0!==l){const e=t.ref(!1);n[r]=e,o.set(l,{name:r,valid:e}),a.push(l)}else{const{matches:e,remove:t}=Z(s);n[r]=e,u.push(t)}}a=a.sort((e,t)=>t-e);const s=w?()=>{const e=window.innerWidth;let t=void 0;for(let n=0;n<a.length;n++){const r=a[n],u=o.get(r);u.valid.value=e>=r,e>=r&&void 0===t&&(t=u.name)}r.value=t}:f,l=S(s,10),i=w?()=>window.removeEventListener("resize",l):f;return w&&(t.onMounted(()=>{s(),window.addEventListener("resize",l,p)}),t.onUnmounted(()=>{i(),u.forEach(e=>e())})),{...n,remove:i,current:r}}const le=Symbol(""),ie={sm:640,md:768,lg:1024,xl:1280};function ce(e){return c(e)&&c(e.theme)&&c(e.theme.screens)}function ve(e){return!!c(e)&&(u(e.min)||u(e.max)||i(e.min)||i(e.max))}function de(e){return i(e)?e+"px":e}function fe(e){const t=[];if(r(e)){const n=e.map(fe);for(let e=0;e<n.length;e++){const o=n[e];t.push(...o)}}else c(n=e)&&u(n.raw)?t.push(e.raw):ve(e)?t.push(function(e){return ve(e)?`(${[e.max&&"max-width: "+de(e.max),e.min&&"min-width: "+de(e.min)].filter(Boolean).join(" and ")})`:""}(e)):(u(e)||i(e))&&t.push(`(min-width: ${de(e)})`);var n;return t}function me(e){const n=ce(e)?e.theme.screens:e;if(ce(e))for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];c(t)?n[e]=fe(n[e]).join(" or "):u(t)&&(t.endsWith("px")||(n[e]=fe(n[e]).join(" or ")))}const o=se(n);return t.provide(le,o),o}function pe(e,t){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&(t&&0!==t.length||!1)}function he(e){try{if(!e)return!1;const t=":$";return e.setItem(t,t),e.removeItem(t),!0}catch(t){return pe(t,e)}}function ge(e,t){try{return e.parse(t)}catch{return t}}let ye=void 0;function we(e,n=JSON,r=10){const a=w?window[e]:void 0,s=he(a);ye||(ye=new Map,w&&window.addEventListener("storage",e=>{if(e.newValue===e.oldValue)return;let t=ye.get("localStorage");t=e.storageArea===window.localStorage?ye.get("localStorage"):ye.get("sessionStorage"),t&&Object.keys(t.$syncKeys).length>0&&(null===e.key?t.clear():t.$syncKeys[e.key]&&(null===e.newValue?t.removeItem(e.key):t.updateItem(e.key,e.newValue)))}));let l,i=ye.get(e);return s&&a?i?l=i.$quotaError:(l=t.ref(!1),i={$refMap:new Map,$watchHandlers:new Map,$syncKeys:{},$quotaError:l,key:a.key,length:a.length,setSync(e,t){t?this.$syncKeys[e]=!0:delete this.$syncKeys[e]},clear(){this.$refMap.forEach((e,t)=>this.removeItem(t))},removeItem(e){const t=this.$refMap.get(e);t&&(t.value=void 0);const n=this.$watchHandlers.get(e);n&&n(),delete this.$syncKeys[e],this.$refMap.delete(e),a.removeItem(e)},getItem(e){const t=a.getItem(e);return t?this.setItem(e,ge(n,t)):null},setItem(e,s){const i=o(s);this.$refMap.set(e,i);const c=(e,t)=>{try{const o=a.getItem(e),r=u(t)?t:n.stringify(t);a.setItem(e,r),o!==r&&w&&this.$syncKeys[e]&&window.dispatchEvent(new StorageEvent(e,{newValue:r,oldValue:o,storageArea:a}))}catch(e){l.value=pe(e,a)}};c(e,s);const v=t.watch(i,M(t=>{c(e,t)},r),{immediate:!1,deep:!0});return this.$watchHandlers.set(e,v),i},updateItem(e,t){let o=this.$refMap.get(e);o&&(o.value=ge(n,t))}},ye.set(e,i)):(l=t.ref(!1),i={}),{supported:s,quotaError:l,store:i,remove:()=>ye.delete(e)}}function be(e,n,o){const{supported:r,store:a}=we("localStorage");let u=f,s=f,l=f,i=void 0;return r&&a?(l=t=>a.setSync(e,t),u=()=>a.removeItem(e),s=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n)),!1!==o&&l(!0)):i=t.ref(n),{supported:r,storage:i,clear:s,remove:u,setSync:l}}function Ee(e,n,o){const{supported:r,store:a}=we("sessionStorage");let u=f,s=f,l=m,i=void 0;return r&&a?(u=()=>a.removeItem(e),s=()=>a.clear(),i=a.getItem(e),i||(i=a.setItem(e,n))):i=t.ref(n),{supported:r,storage:i,clear:s,remove:u,setSync:l}}let Se=void 0;function Me(e){const n=o(e.currentPage),r=o(e.pageSize),a=t.ref(0),u=o(e.total),s=t.computed({get:()=>a.value,set(e){i(e)&&(a.value=Math.min(e,u.value))}}),l=t.computed({get:()=>n.value,set(e){i(e)&&(n.value=y(e,1,v.value),s.value=(n.value-1)*c.value)}}),c=t.computed({get:()=>r.value,set(e){i(e)&&(r.value=e)}}),v=t.computed(()=>Math.ceil(u.value/c.value));l.value=n.value;return t.watch([u,c],e=>{l.value>v.value&&(l.value=v.value)},{immediate:!1}),{pageSize:c,total:u,currentPage:l,offset:s,lastPage:v,next:()=>++l.value,prev:()=>--l.value,first:()=>l.value=1,last:()=>l.value=v.value}}function Ie(e){const n=1e3,o=e&&e.refreshMs||n,r=!e||!s(e.sync)||e.sync,u=e&&a(e.timeFn)&&e.timeFn||Date.now;let l=void 0,i=void 0;const c=t.ref(u()),v=()=>{clearInterval(l),clearTimeout(i)},d=w?()=>l=setInterval(()=>c.value=u(),o):f;if(r){const e=n-(c.value-Math.floor(c.value/n)*n);i=setTimeout(d,e)}else d();return t.onUnmounted(v),{now:c,remove:v}}function $e(e,o){return t.computed(()=>{const a=n(e);if(!o)return a;const u=t.isRef(o)?t.reactive(o.value):t.reactive(o);return a.replace(/({?{[\w\s]*}?})/g,e=>{const t=e.replace("{","").replace("}","").trim();if(e[0]===e[1]&&"{"===e[0])return""+t;const o=r(u)?u[+t]:u[t];return void 0===o?e:""+n(o)})})}function ke(e,o,r=".",a=f){return t.computed(()=>{const t=n(e),u=n(o);if(void 0===t)return a(u,t,u,t);if(!u)return t;const s=u.split(r);let l=t;for(let e=0;e<s.length;e++){let n=s[e];if("]"===n[n.length-1]){const t=/\[[`'"]?([^`'"\]]*)[`'"]?\]/g;let o=n,r=t.exec(o);if(r){let a=r[0].length,u=r.index-a,l=1;do{r.index,u=r.index,a=r[0].length,n=n.slice(0,-r[0].length),s.splice(e+l,0,r[1]),++l}while(r=t.exec(o));if(!n&&"["===o[0]&&o.length>2)continue}else n="",console.warn(`[usePath] invalid path provided "${o}"`)}if(!c(l))return a(s.slice(0,e+1).join(r),l,u,t);if(!n)return a(s.slice(0,e+1).join(r),l,u,t);if(l=l[n],!l)return a(s.slice(0,e+1).join(r),l,u,t)}return l})}function Le(e){return void 0!==e.$value}const xe=(e,o,r)=>{const{$message:a,$validator:u,...s}=function(e){return c(e)}(o)?o:{$validator:o,$message:void 0},{$pending:l,$promise:i,$invalid:v,$error:f}=((e,o,r,a)=>{const u=t.ref(null),s=t.ref(!1),l=t.ref(),i=t.ref(!1);let c=void 0;const v=e=>{u.value=(async()=>{try{s.value=!0;const t=o(e,c);d(t)?i.value=!await t:i.value=!t,l.value=i.value?r.value:void 0}catch(e){throw i.value=!0,e}finally{s.value=!1}})().catch(e=>(l.value=n(e),i.value=!0,e))};return a.push(n=>{c=n,t.watch(()=>{try{o(e.value,c)}catch(e){}return e.value},v,{deep:!0,immediate:!0})}),{$promise:u,$pending:s,$invalid:i,$error:l}})(e,u,t.ref(a),r);return{$pending:l,$error:f,$promise:i,$invalid:v,$message:a,...s}},Re=(e,r)=>{const a={},u=Le(e)?o(e.$value):void 0;for(const o of Object.keys(e))if("$"!==o[0])if(u){const t=xe(u,e[o],r);a[o]={...t,$value:u}}else{const u=Re(e[o],r);let l,i,c=void 0;if(Le(u)){const e=Object.keys(u).filter(e=>"$"!==e[0]).map(e=>u[e]);l=t.computed(()=>e.map(e=>e.$error).map(e=>n(e)).filter(Boolean)),i=t.computed(()=>e.some(e=>!!n(e.$invalid)))}else{const e=Object.keys(u).map(e=>u[e]);l=t.computed(()=>e.map(e=>n(e.$errors)).filter(Boolean).filter(e=>e.some(Boolean))),c=t.computed(()=>e.some(e=>e.$anyDirty||s(n(e.$dirty))&&n(e.$dirty))),i=t.computed(()=>e.some(e=>!!n(e.$anyInvalid)))}a[o]={...u,$errors:l,$anyInvalid:i},c&&(a[o].$anyDirty=c)}else{if("$value"===o){a[o]=u;const e=t.ref(!1),n=t.watch(u,()=>{e.value=!0,n()},{immediate:!1,deep:!0});a.$dirty=e;continue}a[o]=e[o]}return a};const Ce=Symbol("");function Te(e){const r=t.ref(Object.keys(e.messages)),u=t.ref(e.messages),l=t.ref(e.locale),i=t.ref({});let c=t.ref();const v={},f=(e,n)=>{if(v[e])return v[e];const r=n.value[e];if(!r)return t.ref({});let u=a(r)?r():r;return d(u)?u.then(t=>v[e]=o(t)):a(r)?o(u):v[e]=t.computed(()=>n.value[e])},m=!!e.fallback&&(!s(e.notFoundFallback)||e.notFoundFallback);let p=!1;if(m){const t=f(e.fallback,u);d(t)?(t.then(e=>{c.value=e.value}),p=!0):c.value=t.value}else c.value={};const h=t.ref(0);t.watch(u,()=>h.value++,{deep:!0,immediate:!1}),t.watch([l,c,h],([t,o,r])=>{if(t===e.fallback&&m)i.value=o;else{const e=e=>i.value=b({},o,n(e)),r=f(t,u);d(r)?r.then(e):e(r)}},{immediate:!p});const g=(t,n)=>e.resolve?o(e.resolve(i.value,t,n)):$e(ke(i,t,".",(e,t,n,o)=>n),n);return{locale:l,locales:r,i18n:i,$t:g,$ts:(e,t)=>g(e,t).value,addLocale:(e,t)=>{r.value.indexOf(e)>=0||r.value.push(e),delete v[e],u.value[e]=t},removeLocale:t=>{const n=r.value.indexOf(t);if(n>=0){const o=[l.value,c.value&&e.fallback,...r.value].find(e=>e&&e!==t);o&&(t===e.fallback&&(c.value=void 0),t===l.value&&(l.value=o)),r.value.splice(n,1)}delete u.value[t],delete v[t]}}}function Oe(e){const n=Te(e);return t.provide(Ce,n),n}const De=Symbol("");const Pe=Symbol(""),je={install(e){const n=t.ref(!0),o=t.readonly(n);{e._context.provides[Pe]=o;const t=e.mount;e.mount=(...e)=>{const o=t(...e);return n.value=!1,o}}}};return e.COMMIT="3f582cd",e.FALSE_OP=m,e.MAX_ARRAY_SIZE=g,e.NO_OP=f,e.PASSIVE_EV=p,e.SCROLL_LOCK_CLASS=te,e.UseDevtoolsApp=U,e.VERSION="1.0.0-beta.12",e.VUE_VERSION="3",e.VueComposableDevtools=V,e.buildI18n=Te,e.debounce=M,e.deepClone=b,e.exponentialDelay=e=>{const t=100*Math.pow(2,e);return t+.2*t*Math.random()},e.exposeWorker=function(e){this.onmessage=async t=>{const n=e(t.data);if(void 0===n)this.postMessage(n);else if(null===n)this.postMessage(n);else if(r(n))this.postMessage(n);else if(n[Symbol.asyncIterator])for await(const e of n)this.postMessage(e);else if(n[Symbol.iterator])for(const e of n)this.postMessage(e);else this.postMessage(await n)}},e.getCssVariableFor=X,e.getDevtools=j,e.hydrationPlugin=je,e.injectFactory=ne,e.isArray=r,e.isBoolean=s,e.isClient=w,e.isDate=l,e.isElement=v,e.isFunction=a,e.isNumber=i,e.isObject=c,e.isPromise=d,e.isString=u,e.isSymbol=e=>"symbol"==typeof e,e.minMax=y,e.noDelay=O,e.promisedTimeout=h,e.provideSSRTitle=function(e,t){const n=o(void 0===t?"":t);return e.provide(De,n),n},e.refDebounced=function(e,n){let[o,r]=1===arguments.length&&i(e)?[void 0,e]:[e,n];return t.customRef((e,t)=>({get:()=>(e(),o),set:M(e=>{o=e,t()},r)}))},e.refShared=function(e,n){const o=t.getCurrentInstance(),r=n||o.vnode.scopeId;if(!r)return t.ref(e);const{data:a,supported:u}=ee(r,e);return a},e.setBreakpointTailwindCSS=me,e.setCssVariableFor=Y,e.setDevtools=P,e.setI18n=Oe,e.storageAvailable=he,e.unwrap=n,e.useArrayPagination=function(e,n){const r=o(e),a=Me({currentPage:1,pageSize:10,...n,total:t.computed(()=>r.value.length)}),u=t.computed(()=>{const e=r.value;return Array.isArray(e)?e.slice(a.offset.value,a.offset.value+a.pageSize.value):[]});return{...a,result:u}},e.useBreakpoint=se,e.useBreakpointChrome=function(){return se({mobileS:320,mobileM:375,mobileL:425,tablet:768,laptop:1024,laptopL:1440,desktop4K:2560})},e.useBreakpointTailwindCSS=function(e){return ne(le,()=>me(e||ie))},e.useBroadcastChannel=q,e.useCancellablePromise=x,e.useCssVariables=function(e,r,a){const s=w&&"MutationObserver"in self,[l,i]=t.isRef(r)||v(r)?[r,a||J]:[s&&document.documentElement||{},r||J],c=t.ref(!0),d={},m=[],p=Object.entries(e).map(e=>{const[t,r]=u(e[1])?[e[1]]:[e[1].name,e[1].value];return r&&(m.push(()=>Y(n(l),t,n(r))),d[e[0]]=o(r)),[e[0],Q(t)]});for(let e=0;e<p.length;e++){const[r,a]=p[e];d[r]||(d[r]=t.ref(t.isRef(l)&&!l.value||!s?null:X(n(l),a))),s&&t.watch([d[r],o(l)],e=>{c&&e[1]&&e[0]!==X(e[1],a)&&Y(e[1],a,e[0])},{immediate:!t.isRef(l)})}if(!s)return{...d,stop:f,resume:f,supported:s,observing:c};const h=()=>{for(let e=0;e<p.length;e++){const[t,o]=p[e];d[t].value=X(n(l),o)}},g=new MutationObserver(h),y=()=>{g.disconnect(),c.value=!1},b=()=>{c.value||h(),g.observe(n(l),i),c.value=!0};return t.onUnmounted(y),t.isRef(l)?t.onMounted(()=>{m.forEach(e=>e()),t.watch(l,(e,t)=>{t&&y(),e&&b()})}):(w||l)&&(m.forEach(e=>e()),b()),{...d,supported:s,resume:b,stop:y,observing:c}},e.useCurrencyFormat=function(e,o,r){const a=n(e),u=!c(a),s=u?e:t.computed(()=>n(e).currency),[l,i]=oe(o,u?r:e),v=t.computed(()=>{const e=n(i)||{},t=n(s)||e.currency;return{style:"currency",...e,currency:t}}),d=re(l),f=(e,t,o,r,a)=>{const u={...v.value,...n(r)},s=n(t)||u.currency,l=n(o)||u.currencyDisplay;return d.formatString(e,{...u,currency:s,currencyDisplay:l},a)};return{format:(e,n,o,r,a)=>t.computed(()=>f(e,n,o,r,a)),formatString:f}},e.useDateNow=function(e){return Ie({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:Date.now})},e.useDebounce=S,e.useDevtoolsComponentState=function(e,o){const u=t.getCurrentInstance(),s=j();s&&u&&s.on.inspectComponent((t,s)=>{if(t.componentInstance!==u)return;const[l,i]=c(o)?[o.type,o.multiple]:["setup",!1];if(a(e))return void e(t.instanceData,s);let v=r(e)?e:Object.keys(e).map(t=>({type:l,key:t,value:n(e[t]),..._(e[t])}));if(!i){const e=new Set(t.instanceData.state.map(e=>e.key));v=v.filter(t=>!e.has(t.key))}t.instanceData.state.push(...v)})},e.useDevtoolsInspector=function(e,n=[]){const o=j(),r=t.ref(n),a=t.computed(()=>{if(!r.value)return new Map;const e=t.toRaw(r.value),n=new Map;for(const t of e)n.set(t.id,t);return n});if(o){const n=e.id;o.addInspector(e),o.on.getInspectorTree(o=>{if(o.inspectorId!=n)return;if(!r.value)return;const a=o.filter;let u=t.toRaw(r.value);o.filter&&(u=e.nodeFilter?e.nodeFilter(o.filter,u):u.filter(e=>e.id.indexOf(a)>=0||e.label.indexOf(a)>=0)),o.rootNodes=u}),o.on.getInspectorState(o=>{if(o.inspectorId!=n)return;const r=a.value.get(o.nodeId);if(r){const n=t.reactive(r.state);o.state=e.stateFilter?e.stateFilter("",n):n}}),t.watch(r,()=>{o.sendInspectorTree(n),o.sendInspectorState(n)},{immediate:!0,deep:!0})}return{nodes:r}},e.useDevtoolsTimelineLayer=function(e,t,n){const o=j();let r=f,a=f;return o&&(o.addTimelineLayer({id:e,label:t,color:n}),r=(t,n)=>o.addTimelineEvent({layerId:e,event:t,all:n}),a=e=>r({...e,time:Date.now()})),{id:e,addEvent:r,pushEvent:a}},e.useEvent=E,e.useFetch=function(e,n){const o=t.ref(null),r=t.ref(""),a=t.ref(),s=t.ref(null),[l,i,c]=W(e)?[!1!==e.isJson,!1!==e.parseImmediate,!1!==e.unmountCancel]:W(n)?[!1!==n.isJson,!1!==n.parseImmediate,!1!==n.unmountCancel]:[!0,!0,!0],v=e?u(e)?n:W(e)?e:u(e.url)?n:e:void 0,d=t.ref(!1),f=t.ref();let m=void 0;const p=e=>{m&&(m.abort(),d.value=!0,f.value=e)},h=L(async(e,t)=>{m=new AbortController;const n=await fetch(e,{signal:m.signal,...v,...t});if(n){const e=[l?n.clone().json().then(e=>o.value=e).catch(e=>{o.value=null,s.value=e}):Promise.resolve(),n.clone().blob().then(e=>{a.value=e}),n.clone().text().then(e=>{r.value=e})];i&&await Promise.all(e)}return n},!0),g=t.computed(()=>h.result.value&&h.result.value.status||null),y=t.computed(()=>h.result.value&&h.result.value.statusText||null);return e&&(u(e)||u(e.url))&&h.exec(e,void 0,!1),c&&t.getCurrentInstance()&&t.onUnmounted(()=>{m&&p("unmounted")}),{...h,cancel:p,isCancelled:d,cancelledMessage:f,text:r,blob:a,json:o,jsonError:s,status:g,statusText:y}},e.useFormat=$e,e.useGeolocation=function(e){const n=w&&!!navigator.geolocation,o=t.ref(e?!1===e.immediate:void 0),r=t.ref(null),a=t.ref(null),u=t.ref(null),l=t.ref(e&&e.enableHighAccuracy||null);let i=f;if(n){const n=e=>{a.value=e.timestamp,u.value=e.coords,r.value=null},c=e=>{a.value=Date.now(),u.value=null,r.value=e},v=()=>!0!==o.value&&f&&navigator.geolocation.clearWatch(f);let d=()=>navigator.geolocation.getCurrentPosition(n,c,e);i=o.value?()=>{o.value?o.value=!1:d()}:d;let f=0;t.onMounted(()=>t.watch([l,o],t=>{v();const o=s(t[0])?t[0]:e?e.enableHighAccuracy:void 0;f=navigator.geolocation.watchPosition(n,c,e?{...e,enableHighAccuracy:o}:{enableHighAccuracy:o})},{immediate:!o.value})),t.onUnmounted(v)}return{supported:n,refresh:i,error:r,timestamp:a,coords:u,highAccuracy:l}},e.useHydration=function(){return t.inject(Pe,t.computed(()=>!1))},e.useI18n=function(e){return e?Oe(e):t.inject(Ce)},e.useIntersectionObserver=function(e,r){const a=w&&"IntersectionObserver"in window,u=e?o(e):void 0,s=!u||!v(u.value)&&u.value?void 0:u,l=t.computed(()=>r?n(r):s?void 0:n(e)),i=t.ref([]),c=t.computed(()=>i.value.length>0&&i.value.every(e=>e.isIntersecting)),d=e=>{i.value=e};let m=t.ref();a&&t.watch(l,e=>{m.value&&m.value.disconnect();const t=e&&e&&{root:n(e.root),rootMargin:n(e.rootMargin),threshold:n(e.threshold)}||void 0;m.value=new IntersectionObserver(d,t);i.value.map(e=>e.target).forEach(m.value.observe)},{deep:!0,immediate:!0});const p=a?e=>{const t=n(e);m.value.observe(t)}:f,h=a?e=>{const t=n(e);m.value.unobserve(t)}:f,g=()=>m.value.disconnect();return s&&(t.onMounted(()=>{s.value&&p(s)}),t.onUnmounted(()=>{g()})),{supported:a,elements:i,observe:p,unobserve:h,disconnect:g,isIntersecting:c}},e.useInterval=function(e,n,...o){let r=void 0;const a=(t,...a)=>{if(u(),!t&&!n)return;return r=setInterval(e,t||n,...a&&a.length?a:o)},u=()=>{r&&(clearInterval(r),r=void 0)};return i(n)&&a(),t.onUnmounted(u),{remove:u,start:a}},e.useIntlDateTimeFormat=function(e,o){const[r,a]=oe(e,o),s=t.computed(()=>new Intl.DateTimeFormat(n(r),n(a))),l=(e,t,o)=>{const l=t||o?new Intl.DateTimeFormat(n(o)||n(r),{...n(a),...n(t)}):s.value,i=n(e);return l.format(u(i)?new Date(i):i)};return{format:(e,n,o)=>t.computed(()=>l(e,n,o)),formatString:l,formatter:s}},e.useIntlNumberFormat=re,e.useLanguage=function(){if(H||(H=w?t.ref(navigator.language):t.ref("")),!K)if(w){K=t.ref(navigator.languages);const e=()=>{H.value=navigator.language,K.value=navigator.languages};window.addEventListener("languagechange",e,p)}else K=t.ref([]);return{language:H,languages:K}},e.useLocalStorage=be,e.useLockScroll=function(e,a){const s=u(e)?t.ref([]):r(t.unref(e))?o(e):o([e]),l=u(a)?{lockedClass:a,auto:!0}:a||{auto:!0};l.lockedClass||(l.lockedClass=te);const i=t.ref(!1),c=t.computed(()=>s.value.map(e=>t.ref(e))),v=t.watch([i,c],([e,t],[o,r])=>{for(const a of t){const t=n(a);if(l.lockedClass){if(!t)return;t.classList.toggle(l.lockedClass,e)}l.onChange&&(o===e&&r.find(e=>n(e)===t)||l.onChange(t,e))}},{flush:"sync",deep:!1}),d=()=>i.value=!0,f=()=>i.value=!1;return u(e)&&t.onMounted(()=>s.value=Array.from(document.querySelectorAll(e))),!1!==l.auto&&(t.onMounted(d),t.onActivated(d),t.onDeactivated(f),t.onBeforeUnmount(f)),{locked:i,lock:d,unlock:f,remove:v}},e.useMatchMedia=Z,e.useMouseDistanceFromElement=function(e,o,r){let a=void 0,u=f;if(w){const{pageX:s,pageY:l,remove:i}=I(window,o,r);a=t.computed(()=>{const t=n(e);return t?Math.floor(Math.sqrt(Math.pow(s.value-(t.offsetLeft+t.clientWidth/2),2)+Math.pow(l.value-(t.offsetTop+t.clientHeight/2),2))):0}),u=i}else a=t.computed(()=>-1);return{distance:a,remove:u}},e.useNetworkInformation=function(){const e=!!w&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection),n=!!e,o=t.ref(0),r=t.ref(0),a=t.ref("none"),u=t.ref(0),s=t.ref(!1),l=t.ref("none");let i=f,c=f;return e&&(i=()=>{o.value=e.downlink,r.value=e.downlinkMax,a.value=e.effectiveType,u.value=e.rtt,s.value=e.saveData,l.value=e.type},c=E(e,"change",i,p),i()),{supported:n,downlink:o,downlinkMax:r,effectiveType:a,rtt:u,saveData:s,type:l,remove:c}},e.useNow=Ie,e.useOnMouseMove=I,e.useOnOutsidePress=function(e,t){if(!w)return()=>{};const n=o(e),r=k.find(e=>"on"+e in document.documentElement);return E(document,r,e=>n.value&&!n.value.contains(e.target)&&t(e),{passive:!0})},e.useOnResize=function(e,n,r){const a=o(e),u=t.ref(a.value&&a.value.clientHeight),s=t.ref(a.value&&a.value.clientWidth);let l=()=>{u.value=a.value.clientHeight,s.value=a.value.clientWidth};const[c,v]=i(n)?[void 0,n]:[n,r];v&&(l=S(l,r));const d=w?E(window,"resize",l,c||p):f;return t.isRef(e)&&!e.value&&t.onMounted(l),{height:u,width:s,remove:d}},e.useOnScroll=function(e,n,r){const a=e=>!(i(e)||s(e)||!v(e)&&!t.isRef(e)||!e),u=a(e)?o(e):t.ref(w&&window||void 0),l=a(e)?u:t.ref(w&&window.document.scrollingElement||void 0),c=t.ref(l.value&&l.value.scrollTop||0),d=t.ref(l.value&&l.value.scrollLeft||0);let f=()=>{c.value=l.value.scrollTop,d.value=l.value.scrollLeft};const m=$.reduce((e,t)=>(e[t]=(...e)=>l.value&&l.value[t]&&l.value[t].apply(l.value,e),e),{}),h=e=>m.scrollTo({top:e}),g=e=>m.scrollTo({left:e}),[y,b]=i(e)||!e?[p,e]:i(n)?[p,n]:[n,r];b&&(f=S(f,r));const M=E(u,"scroll",f,y),I=t.watch(c,h,{immediate:!1}),k=t.watch(d,g,{immediate:!1});return{scrollTop:c,scrollLeft:d,remove:()=>{M(),k(),I()},scrollTopTo:h,scrollLeftTo:g,...m}},e.useOnline=function(){const e=w&&"onLine"in navigator;return e||(B=t.ref(!1)),B||(B=t.ref(navigator.onLine),window.addEventListener("offline",()=>B.value=!1,p),window.addEventListener("online",()=>B.value=!0,p)),{supported:e,online:B}},e.usePageVisibility=function(){return z||(z=t.ref(w&&document.hidden)),N||(w?(N=t.ref(document.visibilityState),document.addEventListener("visibilitychange",()=>{N.value=document.visibilityState,z.value=document.hidden},p)):N=t.ref("visible")),{visibility:N,hidden:z}},e.usePagination=Me,e.usePath=ke,e.usePerformanceNow=function(e){return Ie({refreshMs:e&&e.refreshMs||1e3,sync:!e||!s(e.sync)||e.sync,timeFn:()=>performance.now()})},e.usePromise=L,e.usePromiseLazy=function(e,t=!1){return L(e,{lazy:!0,throwException:t})},e.useRetry=function(e,n){const o=!e||a(e)?{}:e,r=a(e)?e:n;if(!a(e)&&!c(e))throw new Error("[useRetry] options needs to be 'object'");if(r&&!a(r))throw new Error("[useRetry] factory needs to be 'function'");const u=t.ref(!1),s=t.ref(),l=t.ref([]),i={value:!1},v={isRetrying:u,retryCount:t.computed(()=>l.value.length),nextRetry:s,retryErrors:l,[R]:{value:0},[C]:i},d=r?(...e)=>(++v[R].value,T(o,v,r,e)):e=>(++v[R].value,T(o,v,e,void 0));return{...v,cancel:()=>{v.isRetrying.value=!1,v.retryErrors.value.push(new Error("[useRetry] cancelled")),v.nextRetry.value=void 0,i.value=!0},exec:d}},e.useSSRTitle=function(e){const n=Symbol(),o=t.inject(De,n);return o===n||void 0===o?t.ref(u(e)?e:""):(u(e)&&(o.value=e),o)},e.useSessionStorage=Ee,e.useShare=function(e){const n=w&&"share"in navigator;let o=()=>Promise.resolve(!1),r=m,a=t.ref(!1),u=t.ref(!1);return n&&(o=e=>(a.value=!1,u.value=!1,navigator.share(e).then(e=>(a.value=!0,e)).catch(e=>(a.value=!1,u.value=!0,!1))),r=e=>navigator.canShare(e),e&&r(e)&&o(e)),{supported:n,share:o,canShare:r,shared:a,cancelled:u}},e.useSharedRef=ee,e.useStorage=function(e,t,n){return void 0===Se&&(Se=we("localStorage").supported),Se?be(e,t,n):Ee(e,t)},e.useTimeline=function(e,n){const o=t.ref([]),r=n&&n.clone?n.clone:e=>e,a=n&&n.maxLength||g;return t.watch(e,(e,t)=>{o.value.unshift({item:r(t),date:new Date}),o.value.length>a&&o.value.pop()},{immediate:!1,flush:"sync",...n}),t.readonly(o)},e.useTitle=function(e=null){const n=t.ref(u(e)?e:document.title),o=new MutationObserver(e=>{n.value=e[0].target.textContent});t.watch(n,(e,t)=>{u(e)&&e!==t&&(document.title=e)},{immediate:!0,flush:"sync"});const r=document.querySelector("title");return o.observe(r,{childList:!0}),t.onUnmounted(()=>o.disconnect()),n},e.useUndo=function(e,n){const r=o(e),a=t.ref([]),u=t.ref(0),s=n&&n.maxLength||g,l=n&&n.clone||(e=>e),i=t.computed(()=>{const e=0===u.value?1:u.value;return a.value.slice(e)}),c=t.computed(()=>{const e=0===u.value?1:0;return a.value.slice(e,u.value)});t.watch(r,e=>{if(a.value[u.value]===e)return;if(u.value>0){const e=u.value;a.value.splice(0,e),u.value=0}a.value.length>s&&a.value.pop();const t=l(e);a.value.unshift(t)},{...n,immediate:!0,flush:"sync"});const v=e=>{const t=Math.sign(e)<=0?Math.max(e,-c.value.length):Math.min(e,i.value.length);u.value+=t,r.value=a.value[u.value]};return{value:r,undo:(e=1)=>v(e),redo:(e=1)=>v(-e),jump:v,prev:i,next:c}},e.useVModel=function(e,n){const o=t.getCurrentInstance();return o?t.computed({get:()=>e[n],set(e){o.emit("update:"+n,e)}}):t.ref()},e.useValidation=function(e){const n=[],o=Re({input:e},n),r=t.reactive(o.input);return n.forEach(e=>e(r)),r},e.useValueSync=function(e,n){const a=o(e),u=2===arguments.length?t.isRef(arguments[1])&&r(arguments[1].value)?arguments[1]:t.ref([o(arguments[1])]):t.ref(Array.from(arguments).slice(1).map(e=>o(e)));u.value.forEach(e=>{e.value=a.value});let s=u.value.length;return t.watch([a,u],([e,t])=>{if(s<t.length)t.forEach(t=>{t.value!==e&&(t.value=e)});else{s=t.length;for(const n of t)if(n.value!==e)return void(a.value=n.value)}},{deep:!0}),t.watch(a,e=>{u.value.forEach(t=>t.value=e)},{deep:!0,flush:"sync"}),u},e.useWebSocket=function(e,n){const o=w&&"WebSocket"in window;let r=null;const a=t.ref(null),u=t.ref(null),s=t.ref(null),l=t.ref(!1),i=t.ref(!1),c=t.ref(!1);let v=f,d=f;return o&&(r=new WebSocket(e,n),r.addEventListener("message",e=>{a.value=e,s.value=e.data}),r.addEventListener("error",e=>{u.value=e,c.value=!0}),r.addEventListener("close",()=>{l.value=!1,i.value=!0}),r.addEventListener("open",()=>{l.value=!0,i.value=!1}),v=e=>r.send(e),d=(e,t)=>{r.close(e,t)}),{supported:o,ws:r,send:v,close:d,messageEvent:a,errorEvent:u,data:s,isOpen:l,isClosed:i,errored:c}},e.useWebStorage=we,e.useWorker=function(e,n,o){const r=w&&"Worker"in self,a=t.ref(),u=t.ref(),s=t.ref(!r),l=t.ref(!r);if(!r)return s.value=!0,{worker:void 0,data:u,postMessage:f,terminate:f,errorEvent:a,errored:l,terminated:s};const i=new Worker(e,o),c=e=>i.postMessage(e);function v(){i.terminate(),s.value=!0}return i.addEventListener("message",e=>{u.value=e.data},p),i.addEventListener("error",e=>{a.value=e,l.value=!0},p),t.onUnmounted(v),n&&c(n),{worker:i,data:u,postMessage:c,terminate:v,errorEvent:a,errored:l,terminated:s}},e.useWorkerFunction=function(e,o){const r=w&&"Worker"in self,a=t.computed(()=>o&&n(o.dependencies)||[]),u=t.computed(()=>o&&n(o.timeout));if(!r)return x(e,{lazy:!0,throwException:!0});const s=x((...n)=>new Promise((o,r)=>{const l=function(e,t){const n=[t.length>0?`importScripts("${t.join('","')}");`:"","onmessage=",`(${G.toString()})(${e.toString()})`],o=new Blob(n,{type:"text/javascript"});return URL.createObjectURL(o)}(e,a.value),i=new Worker(l);let c=-1;const v=u.value,d=()=>{i.terminate(),URL.revokeObjectURL(l),clearTimeout(c),h()},m=n.length===e.length+1&&t.isRef(n[n.length-1])&&!1===n[n.length-1].value?t.computed(()=>s.cancelled.value||n[n.length-1].value):s.cancelled,h=m?t.watch(m,()=>{d(),o(void 0)},{immediate:!1}):f;i.addEventListener("message",e=>{e.data[0]?o(e.data[1]):r(e.data[1]),d()},p),i.addEventListener("error",e=>{d(),r(e)},p),i.postMessage([...n]),v&&(c=setTimeout(()=>{s.cancel(`[WebWorker] timeout after ${v}ms`)},v))}),{lazy:!0,throwException:!0});return s},e.wrap=o,Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueRuntimeCore);
{
"name": "vue-composable",
"version": "1.0.0-beta.11",
"version": "1.0.0-beta.12",
"description": "vue-composable",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -84,2 +84,3 @@ # vue-composable

- [lockScroll](https://pikax.me/vue-composable/composable/misc/lockScroll) - `lock-scroll` component
- [refDebounced](https://pikax.me/vue-composable/composable/misc/refDebounced) - debounces the update value of a `ref`

@@ -86,0 +87,0 @@ ### Storage

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc