r2-explorer 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/README.md +19 -25
  2. package/dashboard/assets/{AuthLayout.69a601d4.js → AuthLayout.f3de3475.js} +1 -1
  3. package/dashboard/{spa/assets/EmailFilePage.b9af5203.js → assets/EmailFilePage.510911e0.js} +1 -1
  4. package/dashboard/{spa/assets/ErrorNotFound.e25d48e7.js → assets/ErrorNotFound.6f605de5.js} +1 -1
  5. package/dashboard/{spa/assets/LoginPage.7cae560f.js → assets/LoginPage.228795ec.js} +1 -1
  6. package/dashboard/assets/{auth-store.adb4e0f1.js → auth-store.3a30d58f.js} +1 -1
  7. package/dashboard/assets/{auth.888ee5c0.js → auth.bc3f554f.js} +1 -1
  8. package/dashboard/assets/{bus.f801e67b.js → bus.90beaa04.js} +1 -1
  9. package/dashboard/assets/{index.81c5f354.js → index.59e10803.js} +3 -3
  10. package/dashboard/assets/{index.7e109f1f.css → index.9dfc5b79.css} +1 -1
  11. package/dashboard/index.html +2 -2
  12. package/dashboard/spa/assets/{AuthLayout.69a601d4.js → AuthLayout.f3de3475.js} +1 -1
  13. package/dashboard/{assets/EmailFilePage.b9af5203.js → spa/assets/EmailFilePage.510911e0.js} +1 -1
  14. package/dashboard/{assets/ErrorNotFound.e25d48e7.js → spa/assets/ErrorNotFound.6f605de5.js} +1 -1
  15. package/dashboard/{assets/LoginPage.7cae560f.js → spa/assets/LoginPage.228795ec.js} +1 -1
  16. package/dashboard/spa/assets/{auth-store.adb4e0f1.js → auth-store.3a30d58f.js} +1 -1
  17. package/dashboard/spa/assets/{auth.888ee5c0.js → auth.bc3f554f.js} +1 -1
  18. package/dashboard/spa/assets/{bus.f801e67b.js → bus.90beaa04.js} +1 -1
  19. package/dashboard/spa/assets/{index.81c5f354.js → index.59e10803.js} +3 -3
  20. package/dashboard/spa/assets/{index.7e109f1f.css → index.9dfc5b79.css} +1 -1
  21. package/dashboard/spa/index.html +2 -2
  22. package/dist/index.js +4 -4
  23. package/dist/index.mjs +4 -4
  24. package/package.json +2 -2
@@ -25,12 +25,12 @@ const scriptRel=function(){const d=document.createElement("link").relList;return
25
25
  * vue-router v4.5.0
26
26
  * (c) 2024 Eduardo San Martin Morote
27
27
  * @license MIT
28
- */const isBrowser=typeof document!="undefined";function isRouteComponent(u){return typeof u=="object"||"displayName"in u||"props"in u||"__vccOpts"in u}function isESModule(u){return u.__esModule||u[Symbol.toStringTag]==="Module"||u.default&&isRouteComponent(u.default)}const assign=Object.assign;function applyToParams(u,d){const g={};for(const f in d){const b=d[f];g[f]=isArray$1(b)?b.map(u):u(b)}return g}const noop$1=()=>{},isArray$1=Array.isArray,HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(u){return encodeURI(""+u).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(u){return commonEncode(u).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(u){return commonEncode(u).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(u){return encodeQueryValue(u).replace(EQUAL_RE,"%3D")}function encodePath(u){return commonEncode(u).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(u){return u==null?"":encodePath(u).replace(SLASH_RE,"%2F")}function decode$1(u){try{return decodeURIComponent(""+u)}catch{}return""+u}const TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=u=>u.replace(TRAILING_SLASH_RE,"");function parseURL(u,d,g="/"){let f,b={},m="",y="";const k=d.indexOf("#");let a=d.indexOf("?");return k<a&&k>=0&&(a=-1),a>-1&&(f=d.slice(0,a),m=d.slice(a+1,k>-1?k:d.length),b=u(m)),k>-1&&(f=f||d.slice(0,k),y=d.slice(k,d.length)),f=resolveRelativePath(f!=null?f:d,g),{fullPath:f+(m&&"?")+m+y,path:f,query:b,hash:decode$1(y)}}function stringifyURL(u,d){const g=d.query?u(d.query):"";return d.path+(g&&"?")+g+(d.hash||"")}function stripBase(u,d){return!d||!u.toLowerCase().startsWith(d.toLowerCase())?u:u.slice(d.length)||"/"}function isSameRouteLocation(u,d,g){const f=d.matched.length-1,b=g.matched.length-1;return f>-1&&f===b&&isSameRouteRecord$1(d.matched[f],g.matched[b])&&isSameRouteLocationParams$1(d.params,g.params)&&u(d.query)===u(g.query)&&d.hash===g.hash}function isSameRouteRecord$1(u,d){return(u.aliasOf||u)===(d.aliasOf||d)}function isSameRouteLocationParams$1(u,d){if(Object.keys(u).length!==Object.keys(d).length)return!1;for(const g in u)if(!isSameRouteLocationParamsValue$1(u[g],d[g]))return!1;return!0}function isSameRouteLocationParamsValue$1(u,d){return isArray$1(u)?isEquivalentArray$1(u,d):isArray$1(d)?isEquivalentArray$1(d,u):u===d}function isEquivalentArray$1(u,d){return isArray$1(d)?u.length===d.length&&u.every((g,f)=>g===d[f]):u.length===1&&u[0]===d}function resolveRelativePath(u,d){if(u.startsWith("/"))return u;if(!u)return d;const g=d.split("/"),f=u.split("/"),b=f[f.length-1];(b===".."||b===".")&&f.push("");let m=g.length-1,y,k;for(y=0;y<f.length;y++)if(k=f[y],k!==".")if(k==="..")m>1&&m--;else break;return g.slice(0,m).join("/")+"/"+f.slice(y).join("/")}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var NavigationType;(function(u){u.pop="pop",u.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(u){u.back="back",u.forward="forward",u.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(u){if(!u)if(isBrowser){const d=document.querySelector("base");u=d&&d.getAttribute("href")||"/",u=u.replace(/^\w+:\/\/[^\/]+/,"")}else u="/";return u[0]!=="/"&&u[0]!=="#"&&(u="/"+u),removeTrailingSlash(u)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(u,d){return u.replace(BEFORE_HASH_RE,"#")+d}function getElementPosition(u,d){const g=document.documentElement.getBoundingClientRect(),f=u.getBoundingClientRect();return{behavior:d.behavior,left:f.left-g.left-(d.left||0),top:f.top-g.top-(d.top||0)}}const computeScrollPosition=()=>({left:window.scrollX,top:window.scrollY});function scrollToPosition(u){let d;if("el"in u){const g=u.el,f=typeof g=="string"&&g.startsWith("#"),b=typeof g=="string"?f?document.getElementById(g.slice(1)):document.querySelector(g):g;if(!b)return;d=getElementPosition(b,u)}else d=u;"scrollBehavior"in document.documentElement.style?window.scrollTo(d):window.scrollTo(d.left!=null?d.left:window.scrollX,d.top!=null?d.top:window.scrollY)}function getScrollKey(u,d){return(history.state?history.state.position-d:-1)+u}const scrollPositions=new Map;function saveScrollPosition(u,d){scrollPositions.set(u,d)}function getSavedScrollPosition(u){const d=scrollPositions.get(u);return scrollPositions.delete(u),d}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(u,d){const{pathname:g,search:f,hash:b}=d,m=u.indexOf("#");if(m>-1){let k=b.includes(u.slice(m))?u.slice(m).length:1,a=b.slice(k);return a[0]!=="/"&&(a="/"+a),stripBase(a,"")}return stripBase(g,u)+f+b}function useHistoryListeners(u,d,g,f){let b=[],m=[],y=null;const k=({state:Q})=>{const C=createCurrentLocation(u,location),v=g.value,J=d.value;let ae=0;if(Q){if(g.value=C,d.value=Q,y&&y===v){y=null;return}ae=J?Q.position-J.position:0}else f(C);b.forEach(H=>{H(g.value,v,{delta:ae,type:NavigationType.pop,direction:ae?ae>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function a(){y=g.value}function q(Q){b.push(Q);const C=()=>{const v=b.indexOf(Q);v>-1&&b.splice(v,1)};return m.push(C),C}function w(){const{history:Q}=window;!Q.state||Q.replaceState(assign({},Q.state,{scroll:computeScrollPosition()}),"")}function $(){for(const Q of m)Q();m=[],window.removeEventListener("popstate",k),window.removeEventListener("beforeunload",w)}return window.addEventListener("popstate",k),window.addEventListener("beforeunload",w,{passive:!0}),{pauseListeners:a,listen:q,destroy:$}}function buildState(u,d,g,f=!1,b=!1){return{back:u,current:d,forward:g,replaced:f,position:window.history.length,scroll:b?computeScrollPosition():null}}function useHistoryStateNavigation(u){const{history:d,location:g}=window,f={value:createCurrentLocation(u,g)},b={value:d.state};b.value||m(f.value,{back:null,current:f.value,forward:null,position:d.length-1,replaced:!0,scroll:null},!0);function m(a,q,w){const $=u.indexOf("#"),Q=$>-1?(g.host&&document.querySelector("base")?u:u.slice($))+a:createBaseLocation()+u+a;try{d[w?"replaceState":"pushState"](q,"",Q),b.value=q}catch(C){console.error(C),g[w?"replace":"assign"](Q)}}function y(a,q){const w=assign({},d.state,buildState(b.value.back,a,b.value.forward,!0),q,{position:b.value.position});m(a,w,!0),f.value=a}function k(a,q){const w=assign({},b.value,d.state,{forward:a,scroll:computeScrollPosition()});m(w.current,w,!0);const $=assign({},buildState(f.value,a,null),{position:w.position+1},q);m(a,$,!1),f.value=a}return{location:f,state:b,push:k,replace:y}}function createWebHistory(u){u=normalizeBase(u);const d=useHistoryStateNavigation(u),g=useHistoryListeners(u,d.state,d.location,d.replace);function f(m,y=!0){y||g.pauseListeners(),history.go(m)}const b=assign({location:"",base:u,go:f,createHref:createHref.bind(null,u)},d,g);return Object.defineProperty(b,"location",{enumerable:!0,get:()=>d.location.value}),Object.defineProperty(b,"state",{enumerable:!0,get:()=>d.state.value}),b}function isRouteLocation(u){return typeof u=="string"||u&&typeof u=="object"}function isRouteName(u){return typeof u=="string"||typeof u=="symbol"}const NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function(u){u[u.aborted=4]="aborted",u[u.cancelled=8]="cancelled",u[u.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(u,d){return assign(new Error,{type:u,[NavigationFailureSymbol]:!0},d)}function isNavigationFailure(u,d){return u instanceof Error&&NavigationFailureSymbol in u&&(d==null||!!(u.type&d))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(u,d){const g=assign({},BASE_PATH_PARSER_OPTIONS,d),f=[];let b=g.start?"^":"";const m=[];for(const q of u){const w=q.length?[]:[90];g.strict&&!q.length&&(b+="/");for(let $=0;$<q.length;$++){const Q=q[$];let C=40+(g.sensitive?.25:0);if(Q.type===0)$||(b+="/"),b+=Q.value.replace(REGEX_CHARS_RE,"\\$&"),C+=40;else if(Q.type===1){const{value:v,repeatable:J,optional:ae,regexp:H}=Q;m.push({name:v,repeatable:J,optional:ae});const Y=H||BASE_PARAM_PATTERN;if(Y!==BASE_PARAM_PATTERN){C+=10;try{new RegExp(`(${Y})`)}catch(j){throw new Error(`Invalid custom RegExp for param "${v}" (${Y}): `+j.message)}}let G=J?`((?:${Y})(?:/(?:${Y}))*)`:`(${Y})`;$||(G=ae&&q.length<2?`(?:/${G})`:"/"+G),ae&&(G+="?"),b+=G,C+=20,ae&&(C+=-8),J&&(C+=-20),Y===".*"&&(C+=-50)}w.push(C)}f.push(w)}if(g.strict&&g.end){const q=f.length-1;f[q][f[q].length-1]+=.7000000000000001}g.strict||(b+="/?"),g.end?b+="$":g.strict&&!b.endsWith("/")&&(b+="(?:/|$)");const y=new RegExp(b,g.sensitive?"":"i");function k(q){const w=q.match(y),$={};if(!w)return null;for(let Q=1;Q<w.length;Q++){const C=w[Q]||"",v=m[Q-1];$[v.name]=C&&v.repeatable?C.split("/"):C}return $}function a(q){let w="",$=!1;for(const Q of u){(!$||!w.endsWith("/"))&&(w+="/"),$=!1;for(const C of Q)if(C.type===0)w+=C.value;else if(C.type===1){const{value:v,repeatable:J,optional:ae}=C,H=v in q?q[v]:"";if(isArray$1(H)&&!J)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const Y=isArray$1(H)?H.join("/"):H;if(!Y)if(ae)Q.length<2&&(w.endsWith("/")?w=w.slice(0,-1):$=!0);else throw new Error(`Missing required param "${v}"`);w+=Y}}return w||"/"}return{re:y,score:f,keys:m,parse:k,stringify:a}}function compareScoreArray(u,d){let g=0;for(;g<u.length&&g<d.length;){const f=d[g]-u[g];if(f)return f;g++}return u.length<d.length?u.length===1&&u[0]===40+40?-1:1:u.length>d.length?d.length===1&&d[0]===40+40?1:-1:0}function comparePathParserScore(u,d){let g=0;const f=u.score,b=d.score;for(;g<f.length&&g<b.length;){const m=compareScoreArray(f[g],b[g]);if(m)return m;g++}if(Math.abs(b.length-f.length)===1){if(isLastScoreNegative(f))return 1;if(isLastScoreNegative(b))return-1}return b.length-f.length}function isLastScoreNegative(u){const d=u[u.length-1];return u.length>0&&d[d.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(u){if(!u)return[[]];if(u==="/")return[[ROOT_TOKEN]];if(!u.startsWith("/"))throw new Error(`Invalid path "${u}"`);function d(C){throw new Error(`ERR (${g})/"${q}": ${C}`)}let g=0,f=g;const b=[];let m;function y(){m&&b.push(m),m=[]}let k=0,a,q="",w="";function $(){!q||(g===0?m.push({type:0,value:q}):g===1||g===2||g===3?(m.length>1&&(a==="*"||a==="+")&&d(`A repeatable param (${q}) must be alone in its segment. eg: '/:ids+.`),m.push({type:1,value:q,regexp:w,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):d("Invalid state to consume buffer"),q="")}function Q(){q+=a}for(;k<u.length;){if(a=u[k++],a==="\\"&&g!==2){f=g,g=4;continue}switch(g){case 0:a==="/"?(q&&$(),y()):a===":"?($(),g=1):Q();break;case 4:Q(),g=f;break;case 1:a==="("?g=2:VALID_PARAM_RE.test(a)?Q():($(),g=0,a!=="*"&&a!=="?"&&a!=="+"&&k--);break;case 2:a===")"?w[w.length-1]=="\\"?w=w.slice(0,-1)+a:g=3:w+=a;break;case 3:$(),g=0,a!=="*"&&a!=="?"&&a!=="+"&&k--,w="";break;default:d("Unknown state");break}}return g===2&&d(`Unfinished custom RegExp for param "${q}"`),$(),y(),b}function createRouteRecordMatcher(u,d,g){const f=tokensToParser(tokenizePath(u.path),g),b=assign(f,{record:u,parent:d,children:[],alias:[]});return d&&!b.record.aliasOf==!d.record.aliasOf&&d.children.push(b),b}function createRouterMatcher(u,d){const g=[],f=new Map;d=mergeOptions({strict:!1,end:!0,sensitive:!1},d);function b($){return f.get($)}function m($,Q,C){const v=!C,J=normalizeRouteRecord($);J.aliasOf=C&&C.record;const ae=mergeOptions(d,$),H=[J];if("alias"in $){const j=typeof $.alias=="string"?[$.alias]:$.alias;for(const L of j)H.push(normalizeRouteRecord(assign({},J,{components:C?C.record.components:J.components,path:L,aliasOf:C?C.record:J})))}let Y,G;for(const j of H){const{path:L}=j;if(Q&&L[0]!=="/"){const R=Q.record.path,T=R[R.length-1]==="/"?"":"/";j.path=Q.record.path+(L&&T+L)}if(Y=createRouteRecordMatcher(j,Q,ae),C?C.alias.push(Y):(G=G||Y,G!==Y&&G.alias.push(Y),v&&$.name&&!isAliasRecord(Y)&&y($.name)),isMatchable(Y)&&a(Y),J.children){const R=J.children;for(let T=0;T<R.length;T++)m(R[T],Y,C&&C.children[T])}C=C||Y}return G?()=>{y(G)}:noop$1}function y($){if(isRouteName($)){const Q=f.get($);Q&&(f.delete($),g.splice(g.indexOf(Q),1),Q.children.forEach(y),Q.alias.forEach(y))}else{const Q=g.indexOf($);Q>-1&&(g.splice(Q,1),$.record.name&&f.delete($.record.name),$.children.forEach(y),$.alias.forEach(y))}}function k(){return g}function a($){const Q=findInsertionIndex($,g);g.splice(Q,0,$),$.record.name&&!isAliasRecord($)&&f.set($.record.name,$)}function q($,Q){let C,v={},J,ae;if("name"in $&&$.name){if(C=f.get($.name),!C)throw createRouterError(1,{location:$});ae=C.record.name,v=assign(paramsFromLocation(Q.params,C.keys.filter(G=>!G.optional).concat(C.parent?C.parent.keys.filter(G=>G.optional):[]).map(G=>G.name)),$.params&&paramsFromLocation($.params,C.keys.map(G=>G.name))),J=C.stringify(v)}else if($.path!=null)J=$.path,C=g.find(G=>G.re.test(J)),C&&(v=C.parse(J),ae=C.record.name);else{if(C=Q.name?f.get(Q.name):g.find(G=>G.re.test(Q.path)),!C)throw createRouterError(1,{location:$,currentLocation:Q});ae=C.record.name,v=assign({},Q.params,$.params),J=C.stringify(v)}const H=[];let Y=C;for(;Y;)H.unshift(Y.record),Y=Y.parent;return{name:ae,path:J,params:v,matched:H,meta:mergeMetaFields(H)}}u.forEach($=>m($));function w(){g.length=0,f.clear()}return{addRoute:m,resolve:q,removeRoute:y,clearRoutes:w,getRoutes:k,getRecordMatcher:b}}function paramsFromLocation(u,d){const g={};for(const f of d)f in u&&(g[f]=u[f]);return g}function normalizeRouteRecord(u){const d={path:u.path,redirect:u.redirect,name:u.name,meta:u.meta||{},aliasOf:u.aliasOf,beforeEnter:u.beforeEnter,props:normalizeRecordProps(u),children:u.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in u?u.components||null:u.component&&{default:u.component}};return Object.defineProperty(d,"mods",{value:{}}),d}function normalizeRecordProps(u){const d={},g=u.props||!1;if("component"in u)d.default=g;else for(const f in u.components)d[f]=typeof g=="object"?g[f]:g;return d}function isAliasRecord(u){for(;u;){if(u.record.aliasOf)return!0;u=u.parent}return!1}function mergeMetaFields(u){return u.reduce((d,g)=>assign(d,g.meta),{})}function mergeOptions(u,d){const g={};for(const f in u)g[f]=f in d?d[f]:u[f];return g}function findInsertionIndex(u,d){let g=0,f=d.length;for(;g!==f;){const m=g+f>>1;comparePathParserScore(u,d[m])<0?f=m:g=m+1}const b=getInsertionAncestor(u);return b&&(f=d.lastIndexOf(b,f-1)),f}function getInsertionAncestor(u){let d=u;for(;d=d.parent;)if(isMatchable(d)&&comparePathParserScore(u,d)===0)return d}function isMatchable({record:u}){return!!(u.name||u.components&&Object.keys(u.components).length||u.redirect)}function parseQuery(u){const d={};if(u===""||u==="?")return d;const f=(u[0]==="?"?u.slice(1):u).split("&");for(let b=0;b<f.length;++b){const m=f[b].replace(PLUS_RE," "),y=m.indexOf("="),k=decode$1(y<0?m:m.slice(0,y)),a=y<0?null:decode$1(m.slice(y+1));if(k in d){let q=d[k];isArray$1(q)||(q=d[k]=[q]),q.push(a)}else d[k]=a}return d}function stringifyQuery(u){let d="";for(let g in u){const f=u[g];if(g=encodeQueryKey(g),f==null){f!==void 0&&(d+=(d.length?"&":"")+g);continue}(isArray$1(f)?f.map(m=>m&&encodeQueryValue(m)):[f&&encodeQueryValue(f)]).forEach(m=>{m!==void 0&&(d+=(d.length?"&":"")+g,m!=null&&(d+="="+m))})}return d}function normalizeQuery(u){const d={};for(const g in u){const f=u[g];f!==void 0&&(d[g]=isArray$1(f)?f.map(b=>b==null?null:""+b):f==null?f:""+f)}return d}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let u=[];function d(f){return u.push(f),()=>{const b=u.indexOf(f);b>-1&&u.splice(b,1)}}function g(){u=[]}return{add:d,list:()=>u.slice(),reset:g}}function guardToPromiseFn(u,d,g,f,b,m=y=>y()){const y=f&&(f.enterCallbacks[b]=f.enterCallbacks[b]||[]);return()=>new Promise((k,a)=>{const q=Q=>{Q===!1?a(createRouterError(4,{from:g,to:d})):Q instanceof Error?a(Q):isRouteLocation(Q)?a(createRouterError(2,{from:d,to:Q})):(y&&f.enterCallbacks[b]===y&&typeof Q=="function"&&y.push(Q),k())},w=m(()=>u.call(f&&f.instances[b],d,g,q));let $=Promise.resolve(w);u.length<3&&($=$.then(q)),$.catch(Q=>a(Q))})}function extractComponentsGuards(u,d,g,f,b=m=>m()){const m=[];for(const y of u)for(const k in y.components){let a=y.components[k];if(!(d!=="beforeRouteEnter"&&!y.instances[k]))if(isRouteComponent(a)){const w=(a.__vccOpts||a)[d];w&&m.push(guardToPromiseFn(w,g,f,y,k,b))}else{let q=a();m.push(()=>q.then(w=>{if(!w)throw new Error(`Couldn't resolve component "${k}" at "${y.path}"`);const $=isESModule(w)?w.default:w;y.mods[k]=w,y.components[k]=$;const C=($.__vccOpts||$)[d];return C&&guardToPromiseFn(C,g,f,y,k,b)()}))}}return m}function useLink(u){const d=inject(routerKey),g=inject(routeLocationKey),f=computed(()=>{const a=unref(u.to);return d.resolve(a)}),b=computed(()=>{const{matched:a}=f.value,{length:q}=a,w=a[q-1],$=g.matched;if(!w||!$.length)return-1;const Q=$.findIndex(isSameRouteRecord$1.bind(null,w));if(Q>-1)return Q;const C=getOriginalPath$1(a[q-2]);return q>1&&getOriginalPath$1(w)===C&&$[$.length-1].path!==C?$.findIndex(isSameRouteRecord$1.bind(null,a[q-2])):Q}),m=computed(()=>b.value>-1&&includesParams$1(g.params,f.value.params)),y=computed(()=>b.value>-1&&b.value===g.matched.length-1&&isSameRouteLocationParams$1(g.params,f.value.params));function k(a={}){if(guardEvent(a)){const q=d[unref(u.replace)?"replace":"push"](unref(u.to)).catch(noop$1);return u.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>q),q}return Promise.resolve()}return{route:f,href:computed(()=>f.value.href),isActive:m,isExactActive:y,navigate:k}}function preferSingleVNode(u){return u.length===1?u[0]:u}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup(u,{slots:d}){const g=reactive(useLink(u)),{options:f}=inject(routerKey),b=computed(()=>({[getLinkClass(u.activeClass,f.linkActiveClass,"router-link-active")]:g.isActive,[getLinkClass(u.exactActiveClass,f.linkExactActiveClass,"router-link-exact-active")]:g.isExactActive}));return()=>{const m=d.default&&preferSingleVNode(d.default(g));return u.custom?m:h("a",{"aria-current":g.isExactActive?u.ariaCurrentValue:null,href:g.href,onClick:g.navigate,class:b.value},m)}}}),RouterLink=RouterLinkImpl;function guardEvent(u){if(!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)&&!u.defaultPrevented&&!(u.button!==void 0&&u.button!==0)){if(u.currentTarget&&u.currentTarget.getAttribute){const d=u.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(d))return}return u.preventDefault&&u.preventDefault(),!0}}function includesParams$1(u,d){for(const g in d){const f=d[g],b=u[g];if(typeof f=="string"){if(f!==b)return!1}else if(!isArray$1(b)||b.length!==f.length||f.some((m,y)=>m!==b[y]))return!1}return!0}function getOriginalPath$1(u){return u?u.aliasOf?u.aliasOf.path:u.path:""}const getLinkClass=(u,d,g)=>u!=null?u:d!=null?d:g,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(u,{attrs:d,slots:g}){const f=inject(routerViewLocationKey),b=computed(()=>u.route||f.value),m=inject(viewDepthKey,0),y=computed(()=>{let q=unref(m);const{matched:w}=b.value;let $;for(;($=w[q])&&!$.components;)q++;return q}),k=computed(()=>b.value.matched[y.value]);provide(viewDepthKey,computed(()=>y.value+1)),provide(matchedRouteKey,k),provide(routerViewLocationKey,b);const a=ref();return watch(()=>[a.value,k.value,u.name],([q,w,$],[Q,C,v])=>{w&&(w.instances[$]=q,C&&C!==w&&q&&q===Q&&(w.leaveGuards.size||(w.leaveGuards=C.leaveGuards),w.updateGuards.size||(w.updateGuards=C.updateGuards))),q&&w&&(!C||!isSameRouteRecord$1(w,C)||!Q)&&(w.enterCallbacks[$]||[]).forEach(J=>J(q))},{flush:"post"}),()=>{const q=b.value,w=u.name,$=k.value,Q=$&&$.components[w];if(!Q)return normalizeSlot(g.default,{Component:Q,route:q});const C=$.props[w],v=C?C===!0?q.params:typeof C=="function"?C(q):C:null,ae=h(Q,assign({},v,d,{onVnodeUnmounted:H=>{H.component.isUnmounted&&($.instances[w]=null)},ref:a}));return normalizeSlot(g.default,{Component:ae,route:q})||ae}}});function normalizeSlot(u,d){if(!u)return null;const g=u(d);return g.length===1?g[0]:g}const RouterView=RouterViewImpl;function createRouter$1(u){const d=createRouterMatcher(u.routes,u),g=u.parseQuery||parseQuery,f=u.stringifyQuery||stringifyQuery,b=u.history,m=useCallbacks(),y=useCallbacks(),k=useCallbacks(),a=shallowRef(START_LOCATION_NORMALIZED);let q=START_LOCATION_NORMALIZED;isBrowser&&u.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const w=applyToParams.bind(null,Z=>""+Z),$=applyToParams.bind(null,encodeParam),Q=applyToParams.bind(null,decode$1);function C(Z,se){let ie,de;return isRouteName(Z)?(ie=d.getRecordMatcher(Z),de=se):de=Z,d.addRoute(de,ie)}function v(Z){const se=d.getRecordMatcher(Z);se&&d.removeRoute(se)}function J(){return d.getRoutes().map(Z=>Z.record)}function ae(Z){return!!d.getRecordMatcher(Z)}function H(Z,se){if(se=assign({},se||a.value),typeof Z=="string"){const ne=parseURL(g,Z,se.path),ue=d.resolve({path:ne.path},se),le=b.createHref(ne.fullPath);return assign(ne,ue,{params:Q(ue.params),hash:decode$1(ne.hash),redirectedFrom:void 0,href:le})}let ie;if(Z.path!=null)ie=assign({},Z,{path:parseURL(g,Z.path,se.path).path});else{const ne=assign({},Z.params);for(const ue in ne)ne[ue]==null&&delete ne[ue];ie=assign({},Z,{params:$(ne)}),se.params=$(se.params)}const de=d.resolve(ie,se),ce=Z.hash||"";de.params=w(Q(de.params));const he=stringifyURL(f,assign({},Z,{hash:encodeHash(ce),path:de.path})),oe=b.createHref(he);return assign({fullPath:he,hash:ce,query:f===stringifyQuery?normalizeQuery(Z.query):Z.query||{}},de,{redirectedFrom:void 0,href:oe})}function Y(Z){return typeof Z=="string"?parseURL(g,Z,a.value.path):assign({},Z)}function G(Z,se){if(q!==Z)return createRouterError(8,{from:se,to:Z})}function j(Z){return T(Z)}function L(Z){return j(assign(Y(Z),{replace:!0}))}function R(Z){const se=Z.matched[Z.matched.length-1];if(se&&se.redirect){const{redirect:ie}=se;let de=typeof ie=="function"?ie(Z):ie;return typeof de=="string"&&(de=de.includes("?")||de.includes("#")?de=Y(de):{path:de},de.params={}),assign({query:Z.query,hash:Z.hash,params:de.path!=null?{}:Z.params},de)}}function T(Z,se){const ie=q=H(Z),de=a.value,ce=Z.state,he=Z.force,oe=Z.replace===!0,ne=R(ie);if(ne)return T(assign(Y(ne),{state:typeof ne=="object"?assign({},ce,ne.state):ce,force:he,replace:oe}),se||ie);const ue=ie;ue.redirectedFrom=se;let le;return!he&&isSameRouteLocation(f,de,ie)&&(le=createRouterError(16,{to:ue,from:de}),te(de,de,!0,!1)),(le?Promise.resolve(le):B(ue,de)).catch(fe=>isNavigationFailure(fe)?isNavigationFailure(fe,2)?fe:z(fe):N(fe,ue,de)).then(fe=>{if(fe){if(isNavigationFailure(fe,2))return T(assign({replace:oe},Y(fe.to),{state:typeof fe.to=="object"?assign({},ce,fe.to.state):ce,force:he}),se||ue)}else fe=F(ue,de,!0,oe,ce);return M(ue,de,fe),fe})}function O(Z,se){const ie=G(Z,se);return ie?Promise.reject(ie):Promise.resolve()}function P(Z){const se=ee.values().next().value;return se&&typeof se.runWithContext=="function"?se.runWithContext(Z):Z()}function B(Z,se){let ie;const[de,ce,he]=extractChangingRecords(Z,se);ie=extractComponentsGuards(de.reverse(),"beforeRouteLeave",Z,se);for(const ne of de)ne.leaveGuards.forEach(ue=>{ie.push(guardToPromiseFn(ue,Z,se))});const oe=O.bind(null,Z,se);return ie.push(oe),K(ie).then(()=>{ie=[];for(const ne of m.list())ie.push(guardToPromiseFn(ne,Z,se));return ie.push(oe),K(ie)}).then(()=>{ie=extractComponentsGuards(ce,"beforeRouteUpdate",Z,se);for(const ne of ce)ne.updateGuards.forEach(ue=>{ie.push(guardToPromiseFn(ue,Z,se))});return ie.push(oe),K(ie)}).then(()=>{ie=[];for(const ne of he)if(ne.beforeEnter)if(isArray$1(ne.beforeEnter))for(const ue of ne.beforeEnter)ie.push(guardToPromiseFn(ue,Z,se));else ie.push(guardToPromiseFn(ne.beforeEnter,Z,se));return ie.push(oe),K(ie)}).then(()=>(Z.matched.forEach(ne=>ne.enterCallbacks={}),ie=extractComponentsGuards(he,"beforeRouteEnter",Z,se,P),ie.push(oe),K(ie))).then(()=>{ie=[];for(const ne of y.list())ie.push(guardToPromiseFn(ne,Z,se));return ie.push(oe),K(ie)}).catch(ne=>isNavigationFailure(ne,8)?ne:Promise.reject(ne))}function M(Z,se,ie){k.list().forEach(de=>P(()=>de(Z,se,ie)))}function F(Z,se,ie,de,ce){const he=G(Z,se);if(he)return he;const oe=se===START_LOCATION_NORMALIZED,ne=isBrowser?history.state:{};ie&&(de||oe?b.replace(Z.fullPath,assign({scroll:oe&&ne&&ne.scroll},ce)):b.push(Z.fullPath,ce)),a.value=Z,te(Z,se,ie,oe),z()}let S;function A(){S||(S=b.listen((Z,se,ie)=>{if(!X.listening)return;const de=H(Z),ce=R(de);if(ce){T(assign(ce,{replace:!0,force:!0}),de).catch(noop$1);return}q=de;const he=a.value;isBrowser&&saveScrollPosition(getScrollKey(he.fullPath,ie.delta),computeScrollPosition()),B(de,he).catch(oe=>isNavigationFailure(oe,12)?oe:isNavigationFailure(oe,2)?(T(assign(Y(oe.to),{force:!0}),de).then(ne=>{isNavigationFailure(ne,20)&&!ie.delta&&ie.type===NavigationType.pop&&b.go(-1,!1)}).catch(noop$1),Promise.reject()):(ie.delta&&b.go(-ie.delta,!1),N(oe,de,he))).then(oe=>{oe=oe||F(de,he,!1),oe&&(ie.delta&&!isNavigationFailure(oe,8)?b.go(-ie.delta,!1):ie.type===NavigationType.pop&&isNavigationFailure(oe,20)&&b.go(-1,!1)),M(de,he,oe)}).catch(noop$1)}))}let E=useCallbacks(),_=useCallbacks(),D;function N(Z,se,ie){z(Z);const de=_.list();return de.length?de.forEach(ce=>ce(Z,se,ie)):console.error(Z),Promise.reject(Z)}function U(){return D&&a.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Z,se)=>{E.add([Z,se])})}function z(Z){return D||(D=!Z,A(),E.list().forEach(([se,ie])=>Z?ie(Z):se()),E.reset()),Z}function te(Z,se,ie,de){const{scrollBehavior:ce}=u;if(!isBrowser||!ce)return Promise.resolve();const he=!ie&&getSavedScrollPosition(getScrollKey(Z.fullPath,0))||(de||!ie)&&history.state&&history.state.scroll||null;return nextTick().then(()=>ce(Z,se,he)).then(oe=>oe&&scrollToPosition(oe)).catch(oe=>N(oe,Z,se))}const W=Z=>b.go(Z);let re;const ee=new Set,X={currentRoute:a,listening:!0,addRoute:C,removeRoute:v,clearRoutes:d.clearRoutes,hasRoute:ae,getRoutes:J,resolve:H,options:u,push:j,replace:L,go:W,back:()=>W(-1),forward:()=>W(1),beforeEach:m.add,beforeResolve:y.add,afterEach:k.add,onError:_.add,isReady:U,install(Z){const se=this;Z.component("RouterLink",RouterLink),Z.component("RouterView",RouterView),Z.config.globalProperties.$router=se,Object.defineProperty(Z.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(a)}),isBrowser&&!re&&a.value===START_LOCATION_NORMALIZED&&(re=!0,j(b.location).catch(ce=>{}));const ie={};for(const ce in START_LOCATION_NORMALIZED)Object.defineProperty(ie,ce,{get:()=>a.value[ce],enumerable:!0});Z.provide(routerKey,se),Z.provide(routeLocationKey,shallowReactive(ie)),Z.provide(routerViewLocationKey,a);const de=Z.unmount;ee.add(Z),Z.unmount=function(){ee.delete(Z),ee.size<1&&(q=START_LOCATION_NORMALIZED,S&&S(),S=null,a.value=START_LOCATION_NORMALIZED,re=!1,D=!1),de()}}};function K(Z){return Z.reduce((se,ie)=>se.then(()=>P(ie)),Promise.resolve())}return X}function extractChangingRecords(u,d){const g=[],f=[],b=[],m=Math.max(d.matched.length,u.matched.length);for(let y=0;y<m;y++){const k=d.matched[y];k&&(u.matched.find(q=>isSameRouteRecord$1(q,k))?f.push(k):g.push(k));const a=u.matched[y];a&&(d.matched.find(q=>isSameRouteRecord$1(q,a))||b.push(a))}return[g,f,b]}function hSlot(u,d){return u!==void 0&&u()||d}function hUniqueSlot(u,d){if(u!==void 0){const g=u();if(g!=null)return g.slice()}return d}function hMergeSlot(u,d){return u!==void 0?d.concat(u()):d}function hMergeSlotSafely(u,d){return u===void 0?d:d!==void 0?d.concat(u()):u()}function hDir(u,d,g,f,b,m){d.key=f+b;const y=h(u,d,g);return b===!0?withDirectives(y,m()):y}var QToolbar=createComponent({name:"QToolbar",props:{inset:Boolean},setup(u,{slots:d}){const g=computed(()=>"q-toolbar row no-wrap items-center"+(u.inset===!0?" q-toolbar--inset":""));return()=>h("div",{class:g.value,role:"toolbar"},hSlot(d.default))}});function useHydration(){const u=ref(!isRuntimeSsrPreHydration.value);return u.value===!1&&onMounted(()=>{u.value=!0}),{isHydrated:u}}const hasObserver=typeof ResizeObserver!="undefined",resizeProps=hasObserver===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"};var QResizeObserver=createComponent({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(u,{emit:d}){let g=null,f,b={width:-1,height:-1};function m(a){a===!0||u.debounce===0||u.debounce==="0"?y():g===null&&(g=setTimeout(y,u.debounce))}function y(){if(g!==null&&(clearTimeout(g),g=null),f){const{offsetWidth:a,offsetHeight:q}=f;(a!==b.width||q!==b.height)&&(b={width:a,height:q},d("resize",b))}}const{proxy:k}=getCurrentInstance();if(k.trigger=m,hasObserver===!0){let a;const q=w=>{f=k.$el.parentNode,f?(a=new ResizeObserver(m),a.observe(f),y()):w!==!0&&nextTick(()=>{q(!0)})};return onMounted(()=>{q()}),onBeforeUnmount(()=>{g!==null&&clearTimeout(g),a!==void 0&&(a.disconnect!==void 0?a.disconnect():f&&a.unobserve(f))}),noop$3}else{let w=function(){g!==null&&(clearTimeout(g),g=null),q!==void 0&&(q.removeEventListener!==void 0&&q.removeEventListener("resize",m,listenOpts.passive),q=void 0)},$=function(){w(),f&&f.contentDocument&&(q=f.contentDocument.defaultView,q.addEventListener("resize",m,listenOpts.passive),y())};const{isHydrated:a}=useHydration();let q;return onMounted(()=>{nextTick(()=>{f=k.$el,f&&$()})}),onBeforeUnmount(w),()=>{if(a.value===!0)return h("object",{class:"q--avoid-card-border",style:resizeProps.style,tabindex:-1,type:"text/html",data:resizeProps.url,"aria-hidden":"true",onLoad:$})}}}}),QHeader=createComponent({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(u,{slots:d,emit:g}){const{proxy:{$q:f}}=getCurrentInstance(),b=inject(layoutKey,emptyRenderFn);if(b===emptyRenderFn)return console.error("QHeader needs to be child of QLayout"),emptyRenderFn;const m=ref(parseInt(u.heightHint,10)),y=ref(!0),k=computed(()=>u.reveal===!0||b.view.value.indexOf("H")!==-1||f.platform.is.ios&&b.isContainer.value===!0),a=computed(()=>{if(u.modelValue!==!0)return 0;if(k.value===!0)return y.value===!0?m.value:0;const Y=m.value-b.scroll.value.position;return Y>0?Y:0}),q=computed(()=>u.modelValue!==!0||k.value===!0&&y.value!==!0),w=computed(()=>u.modelValue===!0&&q.value===!0&&u.reveal===!0),$=computed(()=>"q-header q-layout__section--marginal "+(k.value===!0?"fixed":"absolute")+"-top"+(u.bordered===!0?" q-header--bordered":"")+(q.value===!0?" q-header--hidden":"")+(u.modelValue!==!0?" q-layout--prevent-focus":"")),Q=computed(()=>{const Y=b.rows.value.top,G={};return Y[0]==="l"&&b.left.space===!0&&(G[f.lang.rtl===!0?"right":"left"]=`${b.left.size}px`),Y[2]==="r"&&b.right.space===!0&&(G[f.lang.rtl===!0?"left":"right"]=`${b.right.size}px`),G});function C(Y,G){b.update("header",Y,G)}function v(Y,G){Y.value!==G&&(Y.value=G)}function J({height:Y}){v(m,Y),C("size",Y)}function ae(Y){w.value===!0&&v(y,!0),g("focusin",Y)}watch(()=>u.modelValue,Y=>{C("space",Y),v(y,!0),b.animate()}),watch(a,Y=>{C("offset",Y)}),watch(()=>u.reveal,Y=>{Y===!1&&v(y,u.modelValue)}),watch(y,Y=>{b.animate(),g("reveal",Y)}),watch(b.scroll,Y=>{u.reveal===!0&&v(y,Y.direction==="up"||Y.position<=u.revealOffset||Y.position-Y.inflectionPoint<100)});const H={};return b.instances.header=H,u.modelValue===!0&&C("size",m.value),C("space",u.modelValue),C("offset",a.value),onBeforeUnmount(()=>{b.instances.header===H&&(b.instances.header=void 0,C("size",0),C("offset",0),C("space",!1))}),()=>{const Y=hUniqueSlot(d.default,[]);return u.elevated===!0&&Y.push(h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),Y.push(h(QResizeObserver,{debounce:0,onResize:J})),h("header",{class:$.value,style:Q.value,onFocusin:ae},Y)}}});function useHistory(u,d,g){let f;function b(){f!==void 0&&(History.remove(f),f=void 0)}return onBeforeUnmount(()=>{u.value===!0&&b()}),{removeFromHistory:b,addToHistory(){f={condition:()=>g.value===!0,handler:d},History.add(f)}}}function getParentProxy(u){if(Object(u.$parent)===u.$parent)return u.$parent;let{parent:d}=u.$;for(;Object(d)===d;){if(Object(d.proxy)===d.proxy)return d.proxy;d=d.parent}}function fillNormalizedVNodes(u,d){typeof d.type=="symbol"?Array.isArray(d.children)===!0&&d.children.forEach(g=>{fillNormalizedVNodes(u,g)}):u.add(d)}function getNormalizedVNodes(u){const d=new Set;return u.forEach(g=>{fillNormalizedVNodes(d,g)}),Array.from(d)}function vmHasRouter(u){return u.appContext.config.globalProperties.$router!==void 0}function vmIsDestroyed(u){return u.isUnmounted===!0||u.isDeactivated===!0}const useModelToggleProps={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},useModelToggleEmits=["beforeShow","show","beforeHide","hide"];function useModelToggle({showing:u,canShow:d,hideOnRouteChange:g,handleShow:f,handleHide:b,processOnMount:m}){const y=getCurrentInstance(),{props:k,emit:a,proxy:q}=y;let w;function $(Y){u.value===!0?v(Y):Q(Y)}function Q(Y){if(k.disable===!0||Y!==void 0&&Y.qAnchorHandled===!0||d!==void 0&&d(Y)!==!0)return;const G=k["onUpdate:modelValue"]!==void 0;G===!0&&(a("update:modelValue",!0),w=Y,nextTick(()=>{w===Y&&(w=void 0)})),(k.modelValue===null||G===!1)&&C(Y)}function C(Y){u.value!==!0&&(u.value=!0,a("beforeShow",Y),f!==void 0?f(Y):a("show",Y))}function v(Y){if(k.disable===!0)return;const G=k["onUpdate:modelValue"]!==void 0;G===!0&&(a("update:modelValue",!1),w=Y,nextTick(()=>{w===Y&&(w=void 0)})),(k.modelValue===null||G===!1)&&J(Y)}function J(Y){u.value!==!1&&(u.value=!1,a("beforeHide",Y),b!==void 0?b(Y):a("hide",Y))}function ae(Y){k.disable===!0&&Y===!0?k["onUpdate:modelValue"]!==void 0&&a("update:modelValue",!1):Y===!0!==u.value&&(Y===!0?C:J)(w)}watch(()=>k.modelValue,ae),g!==void 0&&vmHasRouter(y)===!0&&watch(()=>q.$route.fullPath,()=>{g.value===!0&&u.value===!0&&v()}),m===!0&&onMounted(()=>{ae(k.modelValue)});const H={show:Q,hide:v,toggle:$};return Object.assign(q,H),H}function height(u){return u===window?window.innerHeight:u.getBoundingClientRect().height}function css(u,d){const g=u.style;for(const f in d)g[f]=d[f]}function getElement(u){if(u==null)return;if(typeof u=="string")try{return document.querySelector(u)||void 0}catch{return}const d=unref(u);if(d)return d.$el||d}function childHasFocus(u,d){if(u==null||u.contains(d)===!0)return!0;for(let g=u.nextElementSibling;g!==null;g=g.nextElementSibling)if(g.contains(d))return!0;return!1}const scrollTargetProp=[Element,String],scrollTargets=[null,document,document.body,document.scrollingElement,document.documentElement];function getScrollTarget(u,d){let g=getElement(d);if(g===void 0){if(u==null)return window;g=u.closest(".scroll,.scroll-y,.overflow-auto")}return scrollTargets.includes(g)?window:g}function getScrollHeight(u){return(u===window?document.body:u).scrollHeight}function getVerticalScrollPosition(u){return u===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:u.scrollTop}function getHorizontalScrollPosition(u){return u===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:u.scrollLeft}function animVerticalScrollTo(u,d,g=0){const f=arguments[3]===void 0?performance.now():arguments[3],b=getVerticalScrollPosition(u);if(g<=0){b!==d&&setScroll$1(u,d);return}requestAnimationFrame(m=>{const y=m-f,k=b+(d-b)/Math.max(y,g)*y;setScroll$1(u,k),k!==d&&animVerticalScrollTo(u,d,g-y,m)})}function setScroll$1(u,d){if(u===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d);return}u.scrollTop=d}function setVerticalScrollPosition(u,d,g){if(g){animVerticalScrollTo(u,d,g);return}setScroll$1(u,d)}let size;function getScrollbarWidth(){if(size!==void 0)return size;const u=document.createElement("p"),d=document.createElement("div");css(u,{width:"100%",height:"200px"}),css(d,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),d.appendChild(u),document.body.appendChild(d);const g=u.offsetWidth;d.style.overflow="scroll";let f=u.offsetWidth;return g===f&&(f=d.clientWidth),d.remove(),size=g-f,size}function hasScrollbar(u,d=!0){return!u||u.nodeType!==Node.ELEMENT_NODE?!1:d?u.scrollHeight>u.clientHeight&&(u.classList.contains("scroll")||u.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(u)["overflow-y"])):u.scrollWidth>u.clientWidth&&(u.classList.contains("scroll")||u.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(u)["overflow-x"]))}let registered=0,scrollPositionX,scrollPositionY,maxScrollTop,vpPendingUpdate=!1,bodyLeft,bodyTop,href,closeTimer=null;function onWheel(u){shouldPreventScroll(u)&&stopAndPrevent(u)}function shouldPreventScroll(u){if(u.target===document.body||u.target.classList.contains("q-layout__backdrop"))return!0;const d=getEventPath(u),g=u.shiftKey&&!u.deltaX,f=!g&&Math.abs(u.deltaX)<=Math.abs(u.deltaY),b=g||f?u.deltaY:u.deltaX;for(let m=0;m<d.length;m++){const y=d[m];if(hasScrollbar(y,f))return f?b<0&&y.scrollTop===0?!0:b>0&&y.scrollTop+y.clientHeight===y.scrollHeight:b<0&&y.scrollLeft===0?!0:b>0&&y.scrollLeft+y.clientWidth===y.scrollWidth}return!0}function onAppleScroll(u){u.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function onAppleResize(u){vpPendingUpdate!==!0&&(vpPendingUpdate=!0,requestAnimationFrame(()=>{vpPendingUpdate=!1;const{height:d}=u.target,{clientHeight:g,scrollTop:f}=document.scrollingElement;(maxScrollTop===void 0||d!==window.innerHeight)&&(maxScrollTop=g-d,document.scrollingElement.scrollTop=f),f>maxScrollTop&&(document.scrollingElement.scrollTop-=Math.ceil((f-maxScrollTop)/8))}))}function apply(u){const d=document.body,g=window.visualViewport!==void 0;if(u==="add"){const{overflowY:f,overflowX:b}=window.getComputedStyle(d);scrollPositionX=getHorizontalScrollPosition(window),scrollPositionY=getVerticalScrollPosition(window),bodyLeft=d.style.left,bodyTop=d.style.top,href=window.location.href,d.style.left=`-${scrollPositionX}px`,d.style.top=`-${scrollPositionY}px`,b!=="hidden"&&(b==="scroll"||d.scrollWidth>window.innerWidth)&&d.classList.add("q-body--force-scrollbar-x"),f!=="hidden"&&(f==="scroll"||d.scrollHeight>window.innerHeight)&&d.classList.add("q-body--force-scrollbar-y"),d.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,client.is.ios===!0&&(g===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",onAppleResize,listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",onAppleResize,listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",onAppleScroll,listenOpts.passiveCapture))}client.is.desktop===!0&&client.is.mac===!0&&window[`${u}EventListener`]("wheel",onWheel,listenOpts.notPassive),u==="remove"&&(client.is.ios===!0&&(g===!0?(window.visualViewport.removeEventListener("resize",onAppleResize,listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",onAppleResize,listenOpts.passiveCapture)):window.removeEventListener("scroll",onAppleScroll,listenOpts.passiveCapture)),d.classList.remove("q-body--prevent-scroll"),d.classList.remove("q-body--force-scrollbar-x"),d.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,d.style.left=bodyLeft,d.style.top=bodyTop,window.location.href===href&&window.scrollTo(scrollPositionX,scrollPositionY),maxScrollTop=void 0)}function preventScroll(u){let d="add";if(u===!0){if(registered++,closeTimer!==null){clearTimeout(closeTimer),closeTimer=null;return}if(registered>1)return}else{if(registered===0||(registered--,registered>0))return;if(d="remove",client.is.ios===!0&&client.is.nativeMobile===!0){closeTimer!==null&&clearTimeout(closeTimer),closeTimer=setTimeout(()=>{apply(d),closeTimer=null},100);return}}apply(d)}function usePreventScroll(){let u;return{preventBodyScroll(d){d!==u&&(u!==void 0||d===!0)&&(u=d,preventScroll(d))}}}function useTimeout(){let u=null;const d=getCurrentInstance();function g(){u!==null&&(clearTimeout(u),u=null)}return onDeactivated(g),onBeforeUnmount(g),{removeTimeout:g,registerTimeout(f,b){g(),vmIsDestroyed(d)===!1&&(u=setTimeout(()=>{u=null,f()},b))}}}const useDarkProps={dark:{type:Boolean,default:null}};function useDark(u,d){return computed(()=>u.dark===null?d.dark.isActive:u.dark)}const modifiersAll={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},directionList=Object.keys(modifiersAll);modifiersAll.all=!0;function getModifierDirections(u){const d={};for(const g of directionList)u[g]===!0&&(d[g]=!0);return Object.keys(d).length===0?modifiersAll:(d.horizontal===!0?d.left=d.right=!0:d.left===!0&&d.right===!0&&(d.horizontal=!0),d.vertical===!0?d.up=d.down=!0:d.up===!0&&d.down===!0&&(d.vertical=!0),d.horizontal===!0&&d.vertical===!0&&(d.all=!0),d)}const avoidNodeNamesList=["INPUT","TEXTAREA"];function shouldStart(u,d){return d.event===void 0&&u.target!==void 0&&u.target.draggable!==!0&&typeof d.handler=="function"&&avoidNodeNamesList.includes(u.target.nodeName.toUpperCase())===!1&&(u.qClonedBy===void 0||u.qClonedBy.indexOf(d.uid)===-1)}function clearSelection(){if(window.getSelection!==void 0){const u=window.getSelection();u.empty!==void 0?u.empty():u.removeAllRanges!==void 0&&(u.removeAllRanges(),Platform.is.mobile!==!0&&u.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function getChanges(u,d,g){const f=position(u);let b,m=f.left-d.event.x,y=f.top-d.event.y,k=Math.abs(m),a=Math.abs(y);const q=d.direction;q.horizontal===!0&&q.vertical!==!0?b=m<0?"left":"right":q.horizontal!==!0&&q.vertical===!0?b=y<0?"up":"down":q.up===!0&&y<0?(b="up",k>a&&(q.left===!0&&m<0?b="left":q.right===!0&&m>0&&(b="right"))):q.down===!0&&y>0?(b="down",k>a&&(q.left===!0&&m<0?b="left":q.right===!0&&m>0&&(b="right"))):q.left===!0&&m<0?(b="left",k<a&&(q.up===!0&&y<0?b="up":q.down===!0&&y>0&&(b="down"))):q.right===!0&&m>0&&(b="right",k<a&&(q.up===!0&&y<0?b="up":q.down===!0&&y>0&&(b="down")));let w=!1;if(b===void 0&&g===!1){if(d.event.isFirst===!0||d.event.lastDir===void 0)return{};b=d.event.lastDir,w=!0,b==="left"||b==="right"?(f.left-=m,k=0,m=0):(f.top-=y,a=0,y=0)}return{synthetic:w,payload:{evt:u,touch:d.event.mouse!==!0,mouse:d.event.mouse===!0,position:f,direction:b,isFirst:d.event.isFirst,isFinal:g===!0,duration:Date.now()-d.event.time,distance:{x:k,y:a},offset:{x:m,y},delta:{x:f.left-d.event.lastX,y:f.top-d.event.lastY}}}}let uid$2=0;var TouchPan=createDirective({name:"touch-pan",beforeMount(u,{value:d,modifiers:g}){if(g.mouse!==!0&&client.has.touch!==!0)return;function f(m,y){g.mouse===!0&&y===!0?stopAndPrevent(m):(g.stop===!0&&stop(m),g.prevent===!0&&prevent(m))}const b={uid:"qvtp_"+uid$2++,handler:d,modifiers:g,direction:getModifierDirections(g),noop:noop$3,mouseStart(m){shouldStart(m,b)&&leftClick(m)&&(addEvt(b,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),b.start(m,!0))},touchStart(m){if(shouldStart(m,b)){const y=m.target;addEvt(b,"temp",[[y,"touchmove","move","notPassiveCapture"],[y,"touchcancel","end","passiveCapture"],[y,"touchend","end","passiveCapture"]]),b.start(m)}},start(m,y){if(client.is.firefox===!0&&preventDraggable(u,!0),b.lastEvt=m,y===!0||g.stop===!0){if(b.direction.all!==!0&&(y!==!0||b.modifiers.mouseAllDir!==!0&&b.modifiers.mousealldir!==!0)){const q=m.type.indexOf("mouse")!==-1?new MouseEvent(m.type,m):new TouchEvent(m.type,m);m.defaultPrevented===!0&&prevent(q),m.cancelBubble===!0&&stop(q),Object.assign(q,{qKeyEvent:m.qKeyEvent,qClickOutside:m.qClickOutside,qAnchorHandled:m.qAnchorHandled,qClonedBy:m.qClonedBy===void 0?[b.uid]:m.qClonedBy.concat(b.uid)}),b.initialEvent={target:m.target,event:q}}stop(m)}const{left:k,top:a}=position(m);b.event={x:k,y:a,time:Date.now(),mouse:y===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:k,lastY:a}},move(m){if(b.event===void 0)return;const y=position(m),k=y.left-b.event.x,a=y.top-b.event.y;if(k===0&&a===0)return;b.lastEvt=m;const q=b.event.mouse===!0,w=()=>{f(m,q);let C;g.preserveCursor!==!0&&g.preservecursor!==!0&&(C=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),q===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),clearSelection(),b.styleCleanup=v=>{if(b.styleCleanup=void 0,C!==void 0&&(document.documentElement.style.cursor=C),document.body.classList.remove("non-selectable"),q===!0){const J=()=>{document.body.classList.remove("no-pointer-events--children")};v!==void 0?setTimeout(()=>{J(),v()},50):J()}else v!==void 0&&v()}};if(b.event.detected===!0){b.event.isFirst!==!0&&f(m,b.event.mouse);const{payload:C,synthetic:v}=getChanges(m,b,!1);C!==void 0&&(b.handler(C)===!1?b.end(m):(b.styleCleanup===void 0&&b.event.isFirst===!0&&w(),b.event.lastX=C.position.left,b.event.lastY=C.position.top,b.event.lastDir=v===!0?void 0:C.direction,b.event.isFirst=!1));return}if(b.direction.all===!0||q===!0&&(b.modifiers.mouseAllDir===!0||b.modifiers.mousealldir===!0)){w(),b.event.detected=!0,b.move(m);return}const $=Math.abs(k),Q=Math.abs(a);$!==Q&&(b.direction.horizontal===!0&&$>Q||b.direction.vertical===!0&&$<Q||b.direction.up===!0&&$<Q&&a<0||b.direction.down===!0&&$<Q&&a>0||b.direction.left===!0&&$>Q&&k<0||b.direction.right===!0&&$>Q&&k>0?(b.event.detected=!0,b.move(m)):b.end(m,!0))},end(m,y){if(b.event!==void 0){if(cleanEvt(b,"temp"),client.is.firefox===!0&&preventDraggable(u,!1),y===!0)b.styleCleanup!==void 0&&b.styleCleanup(),b.event.detected!==!0&&b.initialEvent!==void 0&&b.initialEvent.target.dispatchEvent(b.initialEvent.event);else if(b.event.detected===!0){b.event.isFirst===!0&&b.handler(getChanges(m===void 0?b.lastEvt:m,b).payload);const{payload:k}=getChanges(m===void 0?b.lastEvt:m,b,!0),a=()=>{b.handler(k)};b.styleCleanup!==void 0?b.styleCleanup(a):a()}b.event=void 0,b.initialEvent=void 0,b.lastEvt=void 0}}};if(u.__qtouchpan=b,g.mouse===!0){const m=g.mouseCapture===!0||g.mousecapture===!0?"Capture":"";addEvt(b,"main",[[u,"mousedown","mouseStart",`passive${m}`]])}client.has.touch===!0&&addEvt(b,"main",[[u,"touchstart","touchStart",`passive${g.capture===!0?"Capture":""}`],[u,"touchmove","noop","notPassiveCapture"]])},updated(u,d){const g=u.__qtouchpan;g!==void 0&&(d.oldValue!==d.value&&(typeof value!="function"&&g.end(),g.handler=d.value),g.direction=getModifierDirections(d.modifiers))},beforeUnmount(u){const d=u.__qtouchpan;d!==void 0&&(d.event!==void 0&&d.end(),cleanEvt(d,"main"),cleanEvt(d,"temp"),client.is.firefox===!0&&preventDraggable(u,!1),d.styleCleanup!==void 0&&d.styleCleanup(),delete u.__qtouchpan)}});function between(u,d,g){return g<=d?d:Math.min(g,Math.max(d,u))}function normalizeToInterval(u,d,g){if(g<=d)return d;const f=g-d+1;let b=d+(u-d)%f;return b<d&&(b=f+b),b===0?0:b}const duration=150;var QDrawer=createComponent({name:"QDrawer",inheritAttrs:!1,props:{...useModelToggleProps,...useDarkProps,side:{type:String,default:"left",validator:u=>["left","right"].includes(u)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},noMiniAnimation:Boolean,breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:u=>["default","desktop","mobile"].includes(u),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...useModelToggleEmits,"onLayout","miniState"],setup(u,{slots:d,emit:g,attrs:f}){const b=getCurrentInstance(),{proxy:{$q:m}}=b,y=useDark(u,m),{preventBodyScroll:k}=usePreventScroll(),{registerTimeout:a,removeTimeout:q}=useTimeout(),w=inject(layoutKey,emptyRenderFn);if(w===emptyRenderFn)return console.error("QDrawer needs to be child of QLayout"),emptyRenderFn;let $,Q=null,C;const v=ref(u.behavior==="mobile"||u.behavior!=="desktop"&&w.totalWidth.value<=u.breakpoint),J=computed(()=>u.mini===!0&&v.value!==!0),ae=computed(()=>J.value===!0?u.miniWidth:u.width),H=ref(u.showIfAbove===!0&&v.value===!1?!0:u.modelValue===!0),Y=computed(()=>u.persistent!==!0&&(v.value===!0||z.value===!0));function G(me,ge){if(T(),me!==!1&&w.animate(),oe(0),v.value===!0){const ye=w.instances[_.value];ye!==void 0&&ye.belowBreakpoint===!0&&ye.hide(!1),ne(1),w.isContainer.value!==!0&&k(!0)}else ne(0),me!==!1&&ue(!1);a(()=>{me!==!1&&ue(!0),ge!==!0&&g("show",me)},duration)}function j(me,ge){O(),me!==!1&&w.animate(),ne(0),oe(M.value*ae.value),ve(),ge!==!0?a(()=>{g("hide",me)},duration):q()}const{show:L,hide:R}=useModelToggle({showing:H,hideOnRouteChange:Y,handleShow:G,handleHide:j}),{addToHistory:T,removeFromHistory:O}=useHistory(H,R,Y),P={belowBreakpoint:v,hide:R},B=computed(()=>u.side==="right"),M=computed(()=>(m.lang.rtl===!0?-1:1)*(B.value===!0?1:-1)),F=ref(0),S=ref(!1),A=ref(!1),E=ref(ae.value*M.value),_=computed(()=>B.value===!0?"left":"right"),D=computed(()=>H.value===!0&&v.value===!1&&u.overlay===!1?u.miniToOverlay===!0?u.miniWidth:ae.value:0),N=computed(()=>u.overlay===!0||u.miniToOverlay===!0||w.view.value.indexOf(B.value?"R":"L")!==-1||m.platform.is.ios===!0&&w.isContainer.value===!0),U=computed(()=>u.overlay===!1&&H.value===!0&&v.value===!1),z=computed(()=>u.overlay===!0&&H.value===!0&&v.value===!1),te=computed(()=>"fullscreen q-drawer__backdrop"+(H.value===!1&&S.value===!1?" hidden":"")),W=computed(()=>({backgroundColor:`rgba(0,0,0,${F.value*.4})`})),re=computed(()=>B.value===!0?w.rows.value.top[2]==="r":w.rows.value.top[0]==="l"),ee=computed(()=>B.value===!0?w.rows.value.bottom[2]==="r":w.rows.value.bottom[0]==="l"),X=computed(()=>{const me={};return w.header.space===!0&&re.value===!1&&(N.value===!0?me.top=`${w.header.offset}px`:w.header.space===!0&&(me.top=`${w.header.size}px`)),w.footer.space===!0&&ee.value===!1&&(N.value===!0?me.bottom=`${w.footer.offset}px`:w.footer.space===!0&&(me.bottom=`${w.footer.size}px`)),me}),K=computed(()=>{const me={width:`${ae.value}px`,transform:`translateX(${E.value}px)`};return v.value===!0?me:Object.assign(me,X.value)}),Z=computed(()=>"q-drawer__content fit "+(w.isContainer.value!==!0?"scroll":"overflow-auto")),se=computed(()=>`q-drawer q-drawer--${u.side}`+(A.value===!0?" q-drawer--mini-animate":"")+(u.bordered===!0?" q-drawer--bordered":"")+(y.value===!0?" q-drawer--dark q-dark":"")+(S.value===!0?" no-transition":H.value===!0?"":" q-layout--prevent-focus")+(v.value===!0?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${J.value===!0?"mini":"standard"}`+(N.value===!0||U.value!==!0?" fixed":"")+(u.overlay===!0||u.miniToOverlay===!0?" q-drawer--on-top":"")+(re.value===!0?" q-drawer--top-padding":""))),ie=computed(()=>{const me=m.lang.rtl===!0?u.side:_.value;return[[TouchPan,fe,void 0,{[me]:!0,mouse:!0}]]}),de=computed(()=>{const me=m.lang.rtl===!0?_.value:u.side;return[[TouchPan,pe,void 0,{[me]:!0,mouse:!0}]]}),ce=computed(()=>{const me=m.lang.rtl===!0?_.value:u.side;return[[TouchPan,pe,void 0,{[me]:!0,mouse:!0,mouseAllDir:!0}]]});function he(){Ce(v,u.behavior==="mobile"||u.behavior!=="desktop"&&w.totalWidth.value<=u.breakpoint)}watch(v,me=>{me===!0?($=H.value,H.value===!0&&R(!1)):u.overlay===!1&&u.behavior!=="mobile"&&$!==!1&&(H.value===!0?(oe(0),ne(0),ve()):L(!1))}),watch(()=>u.side,(me,ge)=>{w.instances[ge]===P&&(w.instances[ge]=void 0,w[ge].space=!1,w[ge].offset=0),w.instances[me]=P,w[me].size=ae.value,w[me].space=U.value,w[me].offset=D.value}),watch(w.totalWidth,()=>{(w.isContainer.value===!0||document.qScrollPrevented!==!0)&&he()}),watch(()=>u.behavior+u.breakpoint,he),watch(w.isContainer,me=>{H.value===!0&&k(me!==!0),me===!0&&he()}),watch(w.scrollbarWidth,()=>{oe(H.value===!0?0:void 0)}),watch(D,me=>{xe("offset",me)}),watch(U,me=>{g("onLayout",me),xe("space",me)}),watch(B,()=>{oe()}),watch(ae,me=>{oe(),be(u.miniToOverlay,me)}),watch(()=>u.miniToOverlay,me=>{be(me,ae.value)}),watch(()=>m.lang.rtl,()=>{oe()}),watch(()=>u.mini,()=>{u.noMiniAnimation||u.modelValue===!0&&(le(),w.animate())}),watch(J,me=>{g("miniState",me)});function oe(me){me===void 0?nextTick(()=>{me=H.value===!0?0:ae.value,oe(M.value*me)}):(w.isContainer.value===!0&&B.value===!0&&(v.value===!0||Math.abs(me)===ae.value)&&(me+=M.value*w.scrollbarWidth.value),E.value=me)}function ne(me){F.value=me}function ue(me){const ge=me===!0?"remove":w.isContainer.value!==!0?"add":"";ge!==""&&document.body.classList[ge]("q-body--drawer-toggle")}function le(){Q!==null&&clearTimeout(Q),b.proxy&&b.proxy.$el&&b.proxy.$el.classList.add("q-drawer--mini-animate"),A.value=!0,Q=setTimeout(()=>{Q=null,A.value=!1,b&&b.proxy&&b.proxy.$el&&b.proxy.$el.classList.remove("q-drawer--mini-animate")},150)}function fe(me){if(H.value!==!1)return;const ge=ae.value,ye=between(me.distance.x,0,ge);if(me.isFinal===!0){ye>=Math.min(75,ge)===!0?L():(w.animate(),ne(0),oe(M.value*ge)),S.value=!1;return}oe((m.lang.rtl===!0?B.value!==!0:B.value)?Math.max(ge-ye,0):Math.min(0,ye-ge)),ne(between(ye/ge,0,1)),me.isFirst===!0&&(S.value=!0)}function pe(me){if(H.value!==!0)return;const ge=ae.value,ye=me.direction===u.side,Se=(m.lang.rtl===!0?ye!==!0:ye)?between(me.distance.x,0,ge):0;if(me.isFinal===!0){Math.abs(Se)<Math.min(75,ge)===!0?(w.animate(),ne(1),oe(0)):R(),S.value=!1;return}oe(M.value*Se),ne(between(1-Se/ge,0,1)),me.isFirst===!0&&(S.value=!0)}function ve(){k(!1),ue(!0)}function xe(me,ge){w.update(u.side,me,ge)}function Ce(me,ge){me.value!==ge&&(me.value=ge)}function be(me,ge){xe("size",me===!0?u.miniWidth:ge)}return w.instances[u.side]=P,be(u.miniToOverlay,ae.value),xe("space",U.value),xe("offset",D.value),u.showIfAbove===!0&&u.modelValue!==!0&&H.value===!0&&u["onUpdate:modelValue"]!==void 0&&g("update:modelValue",!0),onMounted(()=>{g("onLayout",U.value),g("miniState",J.value),$=u.showIfAbove===!0;const me=()=>{(H.value===!0?G:j)(!1,!0)};if(w.totalWidth.value!==0){nextTick(me);return}C=watch(w.totalWidth,()=>{C(),C=void 0,H.value===!1&&u.showIfAbove===!0&&v.value===!1?L(!1):me()})}),onBeforeUnmount(()=>{C!==void 0&&C(),Q!==null&&(clearTimeout(Q),Q=null),H.value===!0&&ve(),w.instances[u.side]===P&&(w.instances[u.side]=void 0,xe("size",0),xe("offset",0),xe("space",!1))}),()=>{const me=[];v.value===!0&&(u.noSwipeOpen===!1&&me.push(withDirectives(h("div",{key:"open",class:`q-drawer__opener fixed-${u.side}`,"aria-hidden":"true"}),ie.value)),me.push(hDir("div",{ref:"backdrop",class:te.value,style:W.value,"aria-hidden":"true",onClick:R},void 0,"backdrop",u.noSwipeBackdrop!==!0&&H.value===!0,()=>ce.value)));const ge=J.value===!0&&d.mini!==void 0,ye=[h("div",{...f,key:""+ge,class:[Z.value,f.class]},ge===!0?d.mini():hSlot(d.default))];return u.elevated===!0&&H.value===!0&&ye.push(h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),me.push(hDir("aside",{ref:"content",class:se.value,style:K.value},ye,"contentclose",u.noSwipeClose!==!0&&v.value===!0,()=>de.value)),h("div",{class:"q-drawer-container"},me)}}}),QPageContainer=createComponent({name:"QPageContainer",setup(u,{slots:d}){const{proxy:{$q:g}}=getCurrentInstance(),f=inject(layoutKey,emptyRenderFn);if(f===emptyRenderFn)return console.error("QPageContainer needs to be child of QLayout"),emptyRenderFn;provide(pageContainerKey,!0);const b=computed(()=>{const m={};return f.header.space===!0&&(m.paddingTop=`${f.header.size}px`),f.right.space===!0&&(m[`padding${g.lang.rtl===!0?"Left":"Right"}`]=`${f.right.size}px`),f.footer.space===!0&&(m.paddingBottom=`${f.footer.size}px`),f.left.space===!0&&(m[`padding${g.lang.rtl===!0?"Right":"Left"}`]=`${f.left.size}px`),m});return()=>h("div",{class:"q-page-container",style:b.value},hSlot(d.default))}});const{passive:passive$1}=listenOpts,axisValues=["both","horizontal","vertical"];var QScrollObserver=createComponent({name:"QScrollObserver",props:{axis:{type:String,validator:u=>axisValues.includes(u),default:"vertical"},debounce:[String,Number],scrollTarget:scrollTargetProp},emits:["scroll"],setup(u,{emit:d}){const g={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let f=null,b,m;watch(()=>u.scrollTarget,()=>{a(),k()});function y(){f!==null&&f();const $=Math.max(0,getVerticalScrollPosition(b)),Q=getHorizontalScrollPosition(b),C={top:$-g.position.top,left:Q-g.position.left};if(u.axis==="vertical"&&C.top===0||u.axis==="horizontal"&&C.left===0)return;const v=Math.abs(C.top)>=Math.abs(C.left)?C.top<0?"up":"down":C.left<0?"left":"right";g.position={top:$,left:Q},g.directionChanged=g.direction!==v,g.delta=C,g.directionChanged===!0&&(g.direction=v,g.inflectionPoint=g.position),d("scroll",{...g})}function k(){b=getScrollTarget(m,u.scrollTarget),b.addEventListener("scroll",q,passive$1),q(!0)}function a(){b!==void 0&&(b.removeEventListener("scroll",q,passive$1),b=void 0)}function q($){if($===!0||u.debounce===0||u.debounce==="0")y();else if(f===null){const[Q,C]=u.debounce?[setTimeout(y,u.debounce),clearTimeout]:[requestAnimationFrame(y),cancelAnimationFrame];f=()=>{C(Q),f=null}}}const{proxy:w}=getCurrentInstance();return watch(()=>w.$q.lang.rtl,y),onMounted(()=>{m=w.$el.parentNode,k()}),onBeforeUnmount(()=>{f!==null&&f(),a()}),Object.assign(w,{trigger:q,getPosition:()=>g}),noop$3}}),QLayout=createComponent({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:u=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(u.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(u,{slots:d,emit:g}){const{proxy:{$q:f}}=getCurrentInstance(),b=ref(null),m=ref(f.screen.height),y=ref(u.container===!0?0:f.screen.width),k=ref({position:0,direction:"down",inflectionPoint:0}),a=ref(0),q=ref(isRuntimeSsrPreHydration.value===!0?0:getScrollbarWidth()),w=computed(()=>"q-layout q-layout--"+(u.container===!0?"containerized":"standard")),$=computed(()=>u.container===!1?{minHeight:f.screen.height+"px"}:null),Q=computed(()=>q.value!==0?{[f.lang.rtl===!0?"left":"right"]:`${q.value}px`}:null),C=computed(()=>q.value!==0?{[f.lang.rtl===!0?"right":"left"]:0,[f.lang.rtl===!0?"left":"right"]:`-${q.value}px`,width:`calc(100% + ${q.value}px)`}:null);function v(j){if(u.container===!0||document.qScrollPrevented!==!0){const L={position:j.position.top,direction:j.direction,directionChanged:j.directionChanged,inflectionPoint:j.inflectionPoint.top,delta:j.delta.top};k.value=L,u.onScroll!==void 0&&g("scroll",L)}}function J(j){const{height:L,width:R}=j;let T=!1;m.value!==L&&(T=!0,m.value=L,u.onScrollHeight!==void 0&&g("scrollHeight",L),H()),y.value!==R&&(T=!0,y.value=R),T===!0&&u.onResize!==void 0&&g("resize",j)}function ae({height:j}){a.value!==j&&(a.value=j,H())}function H(){if(u.container===!0){const j=m.value>a.value?getScrollbarWidth():0;q.value!==j&&(q.value=j)}}let Y=null;const G={instances:{},view:computed(()=>u.view),isContainer:computed(()=>u.container),rootRef:b,height:m,containerHeight:a,scrollbarWidth:q,totalWidth:computed(()=>y.value+q.value),rows:computed(()=>{const j=u.view.toLowerCase().split(" ");return{top:j[0].split(""),middle:j[1].split(""),bottom:j[2].split("")}}),header:reactive({size:0,offset:0,space:!1}),right:reactive({size:300,offset:0,space:!1}),footer:reactive({size:0,offset:0,space:!1}),left:reactive({size:300,offset:0,space:!1}),scroll:k,animate(){Y!==null?clearTimeout(Y):document.body.classList.add("q-body--layout-animate"),Y=setTimeout(()=>{Y=null,document.body.classList.remove("q-body--layout-animate")},155)},update(j,L,R){G[j][L]=R}};if(provide(layoutKey,G),getScrollbarWidth()>0){let R=function(){j=null,L.classList.remove("hide-scrollbar")},T=function(){if(j===null){if(L.scrollHeight>f.screen.height)return;L.classList.add("hide-scrollbar")}else clearTimeout(j);j=setTimeout(R,300)},O=function(P){j!==null&&P==="remove"&&(clearTimeout(j),R()),window[`${P}EventListener`]("resize",T)},j=null;const L=document.body;watch(()=>u.container!==!0?"add":"remove",O),u.container!==!0&&O("add"),onUnmounted(()=>{O("remove")})}return()=>{const j=hMergeSlot(d.default,[h(QScrollObserver,{onScroll:v}),h(QResizeObserver,{onResize:J})]),L=h("div",{class:w.value,style:$.value,ref:u.container===!0?void 0:b,tabindex:-1},j);return u.container===!0?h("div",{class:"q-layout-container overflow-hidden",ref:b},[h(QResizeObserver,{onResize:ae}),h("div",{class:"absolute-full",style:Q.value},[h("div",{class:"scroll",style:C.value},[L])])]):L}}});const useSizeDefaults={xs:18,sm:24,md:32,lg:38,xl:46},useSizeProps={size:String};function useSize(u,d=useSizeDefaults){return computed(()=>u.size!==void 0?{fontSize:u.size in d?`${d[u.size]}px`:u.size}:null)}const defaultViewBox="0 0 24 24",sameFn=u=>u,ionFn=u=>`ionicons ${u}`,libMap={"mdi-":u=>`mdi ${u}`,"icon-":sameFn,"bt-":u=>`bt ${u}`,"eva-":u=>`eva ${u}`,"ion-md":ionFn,"ion-ios":ionFn,"ion-logo":ionFn,"iconfont ":sameFn,"ti-":u=>`themify-icon ${u}`,"bi-":u=>`bootstrap-icons ${u}`},matMap={o_:"-outlined",r_:"-round",s_:"-sharp"},symMap={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},libRE=new RegExp("^("+Object.keys(libMap).join("|")+")"),matRE=new RegExp("^("+Object.keys(matMap).join("|")+")"),symRE=new RegExp("^("+Object.keys(symMap).join("|")+")"),mRE=/^[Mm]\s?[-+]?\.?\d/,imgRE=/^img:/,svgUseRE=/^svguse:/,ionRE=/^ion-/,faRE=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /;var QIcon=createComponent({name:"QIcon",props:{...useSizeProps,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(u,{slots:d}){const{proxy:{$q:g}}=getCurrentInstance(),f=useSize(u),b=computed(()=>"q-icon"+(u.left===!0?" on-left":"")+(u.right===!0?" on-right":"")+(u.color!==void 0?` text-${u.color}`:"")),m=computed(()=>{let y,k=u.name;if(k==="none"||!k)return{none:!0};if(g.iconMapFn!==null){const w=g.iconMapFn(k);if(w!==void 0)if(w.icon!==void 0){if(k=w.icon,k==="none"||!k)return{none:!0}}else return{cls:w.cls,content:w.content!==void 0?w.content:" "}}if(mRE.test(k)===!0){const[w,$=defaultViewBox]=k.split("|");return{svg:!0,viewBox:$,nodes:w.split("&&").map(Q=>{const[C,v,J]=Q.split("@@");return h("path",{style:v,d:C,transform:J})})}}if(imgRE.test(k)===!0)return{img:!0,src:k.substring(4)};if(svgUseRE.test(k)===!0){const[w,$=defaultViewBox]=k.split("|");return{svguse:!0,src:w.substring(7),viewBox:$}}let a=" ";const q=k.match(libRE);if(q!==null)y=libMap[q[1]](k);else if(faRE.test(k)===!0)y=k;else if(ionRE.test(k)===!0)y=`ionicons ion-${g.platform.is.ios===!0?"ios":"md"}${k.substring(3)}`;else if(symRE.test(k)===!0){y="notranslate material-symbols";const w=k.match(symRE);w!==null&&(k=k.substring(6),y+=symMap[w[1]]),a=k}else{y="notranslate material-icons";const w=k.match(matRE);w!==null&&(k=k.substring(2),y+=matMap[w[1]]),a=k}return{cls:y,content:a}});return()=>{const y={class:b.value,style:f.value,"aria-hidden":"true",role:"presentation"};return m.value.none===!0?h(u.tag,y,hSlot(d.default)):m.value.img===!0?h(u.tag,y,hMergeSlot(d.default,[h("img",{src:m.value.src})])):m.value.svg===!0?h(u.tag,y,hMergeSlot(d.default,[h("svg",{viewBox:m.value.viewBox||"0 0 24 24"},m.value.nodes)])):m.value.svguse===!0?h(u.tag,y,hMergeSlot(d.default,[h("svg",{viewBox:m.value.viewBox},[h("use",{"xlink:href":m.value.src})])])):(m.value.cls!==void 0&&(y.class+=" "+m.value.cls),h(u.tag,y,hMergeSlot(d.default,[m.value.content])))}}}),QItemLabel=createComponent({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(u,{slots:d}){const g=computed(()=>parseInt(u.lines,10)),f=computed(()=>"q-item__label"+(u.overline===!0?" q-item__label--overline text-overline":"")+(u.caption===!0?" q-item__label--caption text-caption":"")+(u.header===!0?" q-item__label--header":"")+(g.value===1?" ellipsis":"")),b=computed(()=>u.lines!==void 0&&g.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":g.value}:null);return()=>h("div",{style:b.value,class:f.value},hSlot(d.default))}}),QItemSection=createComponent({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(u,{slots:d}){const g=computed(()=>`q-item__section column q-item__section--${u.avatar===!0||u.side===!0||u.thumbnail===!0?"side":"main"}`+(u.top===!0?" q-item__section--top justify-start":" justify-center")+(u.avatar===!0?" q-item__section--avatar":"")+(u.thumbnail===!0?" q-item__section--thumbnail":"")+(u.noWrap===!0?" q-item__section--nowrap":""));return()=>h("div",{class:g.value},hSlot(d.default))}});function getOriginalPath(u){return u?u.aliasOf?u.aliasOf.path:u.path:""}function isSameRouteRecord(u,d){return(u.aliasOf||u)===(d.aliasOf||d)}function includesParams(u,d){for(const g in d){const f=d[g],b=u[g];if(typeof f=="string"){if(f!==b)return!1}else if(Array.isArray(b)===!1||b.length!==f.length||f.some((m,y)=>m!==b[y]))return!1}return!0}function isEquivalentArray(u,d){return Array.isArray(d)===!0?u.length===d.length&&u.every((g,f)=>g===d[f]):u.length===1&&u[0]===d}function isSameRouteLocationParamsValue(u,d){return Array.isArray(u)===!0?isEquivalentArray(u,d):Array.isArray(d)===!0?isEquivalentArray(d,u):u===d}function isSameRouteLocationParams(u,d){if(Object.keys(u).length!==Object.keys(d).length)return!1;for(const g in u)if(isSameRouteLocationParamsValue(u[g],d[g])===!1)return!1;return!0}const useRouterLinkNonMatchingProps={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},useRouterLinkProps={...useRouterLinkNonMatchingProps,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function useRouterLink({fallbackTag:u,useDisableForRouterLinkProps:d=!0}={}){const g=getCurrentInstance(),{props:f,proxy:b,emit:m}=g,y=vmHasRouter(g),k=computed(()=>f.disable!==!0&&f.href!==void 0),a=computed(d===!0?()=>y===!0&&f.disable!==!0&&k.value!==!0&&f.to!==void 0&&f.to!==null&&f.to!=="":()=>y===!0&&k.value!==!0&&f.to!==void 0&&f.to!==null&&f.to!==""),q=computed(()=>a.value===!0?Y(f.to):null),w=computed(()=>q.value!==null),$=computed(()=>k.value===!0||w.value===!0),Q=computed(()=>f.type==="a"||$.value===!0?"a":f.tag||u||"div"),C=computed(()=>k.value===!0?{href:f.href,target:f.target}:w.value===!0?{href:q.value.href,target:f.target}:{}),v=computed(()=>{if(w.value===!1)return-1;const{matched:L}=q.value,{length:R}=L,T=L[R-1];if(T===void 0)return-1;const O=b.$route.matched;if(O.length===0)return-1;const P=O.findIndex(isSameRouteRecord.bind(null,T));if(P!==-1)return P;const B=getOriginalPath(L[R-2]);return R>1&&getOriginalPath(T)===B&&O[O.length-1].path!==B?O.findIndex(isSameRouteRecord.bind(null,L[R-2])):P}),J=computed(()=>w.value===!0&&v.value!==-1&&includesParams(b.$route.params,q.value.params)),ae=computed(()=>J.value===!0&&v.value===b.$route.matched.length-1&&isSameRouteLocationParams(b.$route.params,q.value.params)),H=computed(()=>w.value===!0?ae.value===!0?` ${f.exactActiveClass} ${f.activeClass}`:f.exact===!0?"":J.value===!0?` ${f.activeClass}`:"":"");function Y(L){try{return b.$router.resolve(L)}catch{}return null}function G(L,{returnRouterError:R,to:T=f.to,replace:O=f.replace}={}){if(f.disable===!0)return L.preventDefault(),Promise.resolve(!1);if(L.metaKey||L.altKey||L.ctrlKey||L.shiftKey||L.button!==void 0&&L.button!==0||f.target==="_blank")return Promise.resolve(!1);L.preventDefault();const P=b.$router[O===!0?"replace":"push"](T);return R===!0?P:P.then(()=>{}).catch(()=>{})}function j(L){if(w.value===!0){const R=T=>G(L,T);m("click",L,R),L.defaultPrevented!==!0&&R()}else m("click",L)}return{hasRouterLink:w,hasHrefLink:k,hasLink:$,linkTag:Q,resolvedLink:q,linkIsActive:J,linkIsExactActive:ae,linkClass:H,linkAttrs:C,getLink:Y,navigateToRouterLink:G,navigateOnClick:j}}var QItem=createComponent({name:"QItem",props:{...useDarkProps,...useRouterLinkProps,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(u,{slots:d,emit:g}){const{proxy:{$q:f}}=getCurrentInstance(),b=useDark(u,f),{hasLink:m,linkAttrs:y,linkClass:k,linkTag:a,navigateOnClick:q}=useRouterLink(),w=ref(null),$=ref(null),Q=computed(()=>u.clickable===!0||m.value===!0||u.tag==="label"),C=computed(()=>u.disable!==!0&&Q.value===!0),v=computed(()=>"q-item q-item-type row no-wrap"+(u.dense===!0?" q-item--dense":"")+(b.value===!0?" q-item--dark":"")+(m.value===!0&&u.active===null?k.value:u.active===!0?` q-item--active${u.activeClass!==void 0?` ${u.activeClass}`:""}`:"")+(u.disable===!0?" disabled":"")+(C.value===!0?" q-item--clickable q-link cursor-pointer "+(u.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(u.focused===!0?" q-manual-focusable--focused":""):"")),J=computed(()=>{if(u.insetLevel===void 0)return null;const G=f.lang.rtl===!0?"Right":"Left";return{["padding"+G]:16+u.insetLevel*56+"px"}});function ae(G){C.value===!0&&($.value!==null&&(G.qKeyEvent!==!0&&document.activeElement===w.value?$.value.focus():document.activeElement===$.value&&w.value.focus()),q(G))}function H(G){if(C.value===!0&&isKeyCode(G,[13,32])===!0){stopAndPrevent(G),G.qKeyEvent=!0;const j=new MouseEvent("click",G);j.qKeyEvent=!0,w.value.dispatchEvent(j)}g("keyup",G)}function Y(){const G=hUniqueSlot(d.default,[]);return C.value===!0&&G.unshift(h("div",{class:"q-focus-helper",tabindex:-1,ref:$})),G}return()=>{const G={ref:w,class:v.value,style:J.value,role:"listitem",onClick:ae,onKeyup:H};return C.value===!0?(G.tabindex=u.tabindex||"0",Object.assign(G,y.value)):Q.value===!0&&(G["aria-disabled"]="true"),h(a.value,G,Y())}}});const roleAttrExceptions=["ul","ol"];var QList=createComponent({name:"QList",props:{...useDarkProps,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(u,{slots:d}){const g=getCurrentInstance(),f=useDark(u,g.proxy.$q),b=computed(()=>roleAttrExceptions.includes(u.tag)?null:"list"),m=computed(()=>"q-list"+(u.bordered===!0?" q-list--bordered":"")+(u.dense===!0?" q-list--dense":"")+(u.separator===!0?" q-list--separator":"")+(f.value===!0?" q-list--dark":"")+(u.padding===!0?" q-list--padding":""));return()=>h(u.tag,{class:m.value,role:b.value},hSlot(d.default))}});const useAnchorStaticProps={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},useAnchorProps={...useAnchorStaticProps,contextMenu:Boolean};function useAnchor({showing:u,avoidEmit:d,configureAnchorEl:g}){const{props:f,proxy:b,emit:m}=getCurrentInstance(),y=ref(null);let k=null;function a(C){return y.value===null?!1:C===void 0||C.touches===void 0||C.touches.length<=1}const q={};g===void 0&&(Object.assign(q,{hide(C){b.hide(C)},toggle(C){b.toggle(C),C.qAnchorHandled=!0},toggleKey(C){isKeyCode(C,13)===!0&&q.toggle(C)},contextClick(C){b.hide(C),prevent(C),nextTick(()=>{b.show(C),C.qAnchorHandled=!0})},prevent,mobileTouch(C){if(q.mobileCleanup(C),a(C)!==!0)return;b.hide(C),y.value.classList.add("non-selectable");const v=C.target;addEvt(q,"anchor",[[v,"touchmove","mobileCleanup","passive"],[v,"touchend","mobileCleanup","passive"],[v,"touchcancel","mobileCleanup","passive"],[y.value,"contextmenu","prevent","notPassive"]]),k=setTimeout(()=>{k=null,b.show(C),C.qAnchorHandled=!0},300)},mobileCleanup(C){y.value.classList.remove("non-selectable"),k!==null&&(clearTimeout(k),k=null),u.value===!0&&C!==void 0&&clearSelection()}}),g=function(C=f.contextMenu){if(f.noParentEvent===!0||y.value===null)return;let v;C===!0?b.$q.platform.is.mobile===!0?v=[[y.value,"touchstart","mobileTouch","passive"]]:v=[[y.value,"mousedown","hide","passive"],[y.value,"contextmenu","contextClick","notPassive"]]:v=[[y.value,"click","toggle","passive"],[y.value,"keyup","toggleKey","passive"]],addEvt(q,"anchor",v)});function w(){cleanEvt(q,"anchor")}function $(C){for(y.value=C;y.value.classList.contains("q-anchor--skip");)y.value=y.value.parentNode;g()}function Q(){if(f.target===!1||f.target===""||b.$el.parentNode===null)y.value=null;else if(f.target===!0)$(b.$el.parentNode);else{let C=f.target;if(typeof f.target=="string")try{C=document.querySelector(f.target)}catch{C=void 0}C!=null?(y.value=C.$el||C,g()):(y.value=null,console.error(`Anchor: target "${f.target}" not found`))}}return watch(()=>f.contextMenu,C=>{y.value!==null&&(w(),g(C))}),watch(()=>f.target,()=>{y.value!==null&&w(),Q()}),watch(()=>f.noParentEvent,C=>{y.value!==null&&(C===!0?w():g())}),onMounted(()=>{Q(),d!==!0&&f.modelValue===!0&&y.value===null&&m("update:modelValue",!1)}),onBeforeUnmount(()=>{k!==null&&clearTimeout(k),w()}),{anchorEl:y,canShow:a,anchorEvents:q}}function useScrollTarget(u,d){const g=ref(null);let f;function b(k,a){const q=`${a!==void 0?"add":"remove"}EventListener`,w=a!==void 0?a:f;k!==window&&k[q]("scroll",w,listenOpts.passive),window[q]("scroll",w,listenOpts.passive),f=a}function m(){g.value!==null&&(b(g.value),g.value=null)}const y=watch(()=>u.noParentEvent,()=>{g.value!==null&&(m(),d())});return onBeforeUnmount(y),{localScrollTarget:g,unconfigureScrollTarget:m,changeScrollEvent:b}}let queue=[],waitFlags=[];function clearFlag(u){waitFlags=waitFlags.filter(d=>d!==u)}function addFocusWaitFlag(u){clearFlag(u),waitFlags.push(u)}function removeFocusWaitFlag(u){clearFlag(u),waitFlags.length===0&&queue.length!==0&&(queue[queue.length-1](),queue=[])}function addFocusFn(u){waitFlags.length===0?u():queue.push(u)}function removeFocusFn(u){queue=queue.filter(d=>d!==u)}let portalIndex=1,target=document.body;function createGlobalNode(u,d){const g=document.createElement("div");if(g.id=d!==void 0?`q-portal--${d}--${portalIndex++}`:u,globalConfig.globalNodes!==void 0){const f=globalConfig.globalNodes.class;f!==void 0&&(g.className=f)}return target.appendChild(g),g}function removeGlobalNode(u){u.remove()}const portalProxyList=[];function getPortalProxy(u){return portalProxyList.find(d=>d.contentEl!==null&&d.contentEl.contains(u))}function closePortalMenus(u,d){do{if(u.$options.name==="QMenu"){if(u.hide(d),u.$props.separateClosePopup===!0)return getParentProxy(u)}else if(u.__qPortal===!0){const g=getParentProxy(u);return g!==void 0&&g.$options.name==="QPopupProxy"?(u.hide(d),g):u}u=getParentProxy(u)}while(u!=null)}function closePortals(u,d,g){for(;g!==0&&u!==void 0&&u!==null;){if(u.__qPortal===!0){if(g--,u.$options.name==="QMenu"){u=closePortalMenus(u,d);continue}u.hide(d)}u=getParentProxy(u)}}const QPortal=createComponent({name:"QPortal",setup(u,{slots:d}){return()=>d.default()}});function isOnGlobalDialog(u){for(u=u.parent;u!=null;){if(u.type.name==="QGlobalDialog")return!0;if(u.type.name==="QDialog"||u.type.name==="QMenu")return!1;u=u.parent}return!1}function usePortal(u,d,g,f){const b=ref(!1),m=ref(!1);let y=null;const k={},a=f==="dialog"&&isOnGlobalDialog(u);function q($){if($===!0){removeFocusWaitFlag(k),m.value=!0;return}m.value=!1,b.value===!1&&(a===!1&&y===null&&(y=createGlobalNode(!1,f)),b.value=!0,portalProxyList.push(u.proxy),addFocusWaitFlag(k))}function w($){if(m.value=!1,$!==!0)return;removeFocusWaitFlag(k),b.value=!1;const Q=portalProxyList.indexOf(u.proxy);Q!==-1&&portalProxyList.splice(Q,1),y!==null&&(removeGlobalNode(y),y=null)}return onUnmounted(()=>{w(!0)}),u.proxy.__qPortal=!0,injectProp(u.proxy,"contentEl",()=>d.value),{showPortal:q,hidePortal:w,portalIsActive:b,portalIsAccessible:m,renderPortal:()=>a===!0?g():b.value===!0?[h(Teleport,{to:y},h(QPortal,g))]:void 0}}const useTransitionProps={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function useTransition(u,d=()=>{},g=()=>{}){return{transitionProps:computed(()=>{const f=`q-transition--${u.transitionShow||d()}`,b=`q-transition--${u.transitionHide||g()}`;return{appear:!0,enterFromClass:`${f}-enter-from`,enterActiveClass:`${f}-enter-active`,enterToClass:`${f}-enter-to`,leaveFromClass:`${b}-leave-from`,leaveActiveClass:`${b}-leave-active`,leaveToClass:`${b}-leave-to`}}),transitionStyle:computed(()=>`--q-transition-duration: ${u.transitionDuration}ms`)}}function useTick(){let u;const d=getCurrentInstance();function g(){u=void 0}return onDeactivated(g),onBeforeUnmount(g),{removeTick:g,registerTick(f){u=f,nextTick(()=>{u===f&&(vmIsDestroyed(d)===!1&&u(),u=void 0)})}}}const handlers$1=[];let escDown;function onKeydown(u){escDown=u.keyCode===27}function onBlur(){escDown===!0&&(escDown=!1)}function onKeyup(u){escDown===!0&&(escDown=!1,isKeyCode(u,27)===!0&&handlers$1[handlers$1.length-1](u))}function update(u){window[u]("keydown",onKeydown),window[u]("blur",onBlur),window[u]("keyup",onKeyup),escDown=!1}function addEscapeKey(u){client.is.desktop===!0&&(handlers$1.push(u),handlers$1.length===1&&update("addEventListener"))}function removeEscapeKey(u){const d=handlers$1.indexOf(u);d!==-1&&(handlers$1.splice(d,1),handlers$1.length===0&&update("removeEventListener"))}const handlers=[];function trigger(u){handlers[handlers.length-1](u)}function addFocusout(u){client.is.desktop===!0&&(handlers.push(u),handlers.length===1&&document.body.addEventListener("focusin",trigger))}function removeFocusout(u){const d=handlers.indexOf(u);d!==-1&&(handlers.splice(d,1),handlers.length===0&&document.body.removeEventListener("focusin",trigger))}const{notPassiveCapture}=listenOpts,registeredList=[];function globalHandler(u){const d=u.target;if(d===void 0||d.nodeType===8||d.classList.contains("no-pointer-events")===!0)return;let g=portalProxyList.length-1;for(;g>=0;){const f=portalProxyList[g].$;if(f.type.name==="QTooltip"){g--;continue}if(f.type.name!=="QDialog")break;if(f.props.seamless!==!0)return;g--}for(let f=registeredList.length-1;f>=0;f--){const b=registeredList[f];if((b.anchorEl.value===null||b.anchorEl.value.contains(d)===!1)&&(d===document.body||b.innerRef.value!==null&&b.innerRef.value.contains(d)===!1))u.qClickOutside=!0,b.onClickOutside(u);else return}}function addClickOutside(u){registeredList.push(u),registeredList.length===1&&(document.addEventListener("mousedown",globalHandler,notPassiveCapture),document.addEventListener("touchstart",globalHandler,notPassiveCapture))}function removeClickOutside(u){const d=registeredList.findIndex(g=>g===u);d!==-1&&(registeredList.splice(d,1),registeredList.length===0&&(document.removeEventListener("mousedown",globalHandler,notPassiveCapture),document.removeEventListener("touchstart",globalHandler,notPassiveCapture)))}let vpLeft,vpTop;function validatePosition(u){const d=u.split(" ");return d.length!==2?!1:["top","center","bottom"].includes(d[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(d[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function validateOffset(u){return u?!(u.length!==2||typeof u[0]!="number"||typeof u[1]!="number"):!0}const horizontalPos={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(u=>{horizontalPos[`${u}#ltr`]=u,horizontalPos[`${u}#rtl`]=u});function parsePosition(u,d){const g=u.split(" ");return{vertical:g[0],horizontal:horizontalPos[`${g[1]}#${d===!0?"rtl":"ltr"}`]}}function getAnchorProps(u,d){let{top:g,left:f,right:b,bottom:m,width:y,height:k}=u.getBoundingClientRect();return d!==void 0&&(g-=d[1],f-=d[0],m+=d[1],b+=d[0],y+=d[0],k+=d[1]),{top:g,bottom:m,height:k,left:f,right:b,width:y,middle:f+(b-f)/2,center:g+(m-g)/2}}function getAbsoluteAnchorProps(u,d,g){let{top:f,left:b}=u.getBoundingClientRect();return f+=d.top,b+=d.left,g!==void 0&&(f+=g[1],b+=g[0]),{top:f,bottom:f+1,height:1,left:b,right:b+1,width:1,middle:b,center:f}}function getTargetProps(u,d){return{top:0,center:d/2,bottom:d,left:0,middle:u/2,right:u}}function getTopLeftProps(u,d,g,f){return{top:u[g.vertical]-d[f.vertical],left:u[g.horizontal]-d[f.horizontal]}}function setPosition(u,d=0){if(u.targetEl===null||u.anchorEl===null||d>5)return;if(u.targetEl.offsetHeight===0||u.targetEl.offsetWidth===0){setTimeout(()=>{setPosition(u,d+1)},10);return}const{targetEl:g,offset:f,anchorEl:b,anchorOrigin:m,selfOrigin:y,absoluteOffset:k,fit:a,cover:q,maxHeight:w,maxWidth:$}=u;if(client.is.ios===!0&&window.visualViewport!==void 0){const R=document.body.style,{offsetLeft:T,offsetTop:O}=window.visualViewport;T!==vpLeft&&(R.setProperty("--q-pe-left",T+"px"),vpLeft=T),O!==vpTop&&(R.setProperty("--q-pe-top",O+"px"),vpTop=O)}const{scrollLeft:Q,scrollTop:C}=g,v=k===void 0?getAnchorProps(b,q===!0?[0,0]:f):getAbsoluteAnchorProps(b,k,f);Object.assign(g.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:$,maxHeight:w,visibility:"visible"});const{offsetWidth:J,offsetHeight:ae}=g,{elWidth:H,elHeight:Y}=a===!0||q===!0?{elWidth:Math.max(v.width,J),elHeight:q===!0?Math.max(v.height,ae):ae}:{elWidth:J,elHeight:ae};let G={maxWidth:$,maxHeight:w};(a===!0||q===!0)&&(G.minWidth=v.width+"px",q===!0&&(G.minHeight=v.height+"px")),Object.assign(g.style,G);const j=getTargetProps(H,Y);let L=getTopLeftProps(v,j,m,y);if(k===void 0||f===void 0)applyBoundaries(L,v,j,m,y);else{const{top:R,left:T}=L;applyBoundaries(L,v,j,m,y);let O=!1;if(L.top!==R){O=!0;const P=2*f[1];v.center=v.top-=P,v.bottom-=P+2}if(L.left!==T){O=!0;const P=2*f[0];v.middle=v.left-=P,v.right-=P+2}O===!0&&(L=getTopLeftProps(v,j,m,y),applyBoundaries(L,v,j,m,y))}G={top:L.top+"px",left:L.left+"px"},L.maxHeight!==void 0&&(G.maxHeight=L.maxHeight+"px",v.height>L.maxHeight&&(G.minHeight=G.maxHeight)),L.maxWidth!==void 0&&(G.maxWidth=L.maxWidth+"px",v.width>L.maxWidth&&(G.minWidth=G.maxWidth)),Object.assign(g.style,G),g.scrollTop!==C&&(g.scrollTop=C),g.scrollLeft!==Q&&(g.scrollLeft=Q)}function applyBoundaries(u,d,g,f,b){const m=g.bottom,y=g.right,k=getScrollbarWidth(),a=window.innerHeight-k,q=document.body.clientWidth;if(u.top<0||u.top+m>a)if(b.vertical==="center")u.top=d[f.vertical]>a/2?Math.max(0,a-m):0,u.maxHeight=Math.min(m,a);else if(d[f.vertical]>a/2){const w=Math.min(a,f.vertical==="center"?d.center:f.vertical===b.vertical?d.bottom:d.top);u.maxHeight=Math.min(m,w),u.top=Math.max(0,w-m)}else u.top=Math.max(0,f.vertical==="center"?d.center:f.vertical===b.vertical?d.top:d.bottom),u.maxHeight=Math.min(m,a-u.top);if(u.left<0||u.left+y>q)if(u.maxWidth=Math.min(y,q),b.horizontal==="middle")u.left=d[f.horizontal]>q/2?Math.max(0,q-y):0;else if(d[f.horizontal]>q/2){const w=Math.min(q,f.horizontal==="middle"?d.middle:f.horizontal===b.horizontal?d.right:d.left);u.maxWidth=Math.min(y,w),u.left=Math.max(0,w-u.maxWidth)}else u.left=Math.max(0,f.horizontal==="middle"?d.middle:f.horizontal===b.horizontal?d.left:d.right),u.maxWidth=Math.min(y,q-u.left)}var QMenu=createComponent({name:"QMenu",inheritAttrs:!1,props:{...useAnchorProps,...useModelToggleProps,...useDarkProps,...useTransitionProps,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:validatePosition},self:{type:String,validator:validatePosition},offset:{type:Array,validator:validateOffset},scrollTarget:scrollTargetProp,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...useModelToggleEmits,"click","escapeKey"],setup(u,{slots:d,emit:g,attrs:f}){let b=null,m,y,k;const a=getCurrentInstance(),{proxy:q}=a,{$q:w}=q,$=ref(null),Q=ref(!1),C=computed(()=>u.persistent!==!0&&u.noRouteDismiss!==!0),v=useDark(u,w),{registerTick:J,removeTick:ae}=useTick(),{registerTimeout:H}=useTimeout(),{transitionProps:Y,transitionStyle:G}=useTransition(u),{localScrollTarget:j,changeScrollEvent:L,unconfigureScrollTarget:R}=useScrollTarget(u,re),{anchorEl:T,canShow:O}=useAnchor({showing:Q}),{hide:P}=useModelToggle({showing:Q,canShow:O,handleShow:z,handleHide:te,hideOnRouteChange:C,processOnMount:!0}),{showPortal:B,hidePortal:M,renderPortal:F}=usePortal(a,$,se,"menu"),S={anchorEl:T,innerRef:$,onClickOutside(ie){if(u.persistent!==!0&&Q.value===!0)return P(ie),(ie.type==="touchstart"||ie.target.classList.contains("q-dialog__backdrop"))&&stopAndPrevent(ie),!0}},A=computed(()=>parsePosition(u.anchor||(u.cover===!0?"center middle":"bottom start"),w.lang.rtl)),E=computed(()=>u.cover===!0?A.value:parsePosition(u.self||"top start",w.lang.rtl)),_=computed(()=>(u.square===!0?" q-menu--square":"")+(v.value===!0?" q-menu--dark q-dark":"")),D=computed(()=>u.autoClose===!0?{onClick:ee}:{}),N=computed(()=>Q.value===!0&&u.persistent!==!0);watch(N,ie=>{ie===!0?(addEscapeKey(K),addClickOutside(S)):(removeEscapeKey(K),removeClickOutside(S))});function U(){addFocusFn(()=>{let ie=$.value;ie&&ie.contains(document.activeElement)!==!0&&(ie=ie.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||ie.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||ie.querySelector("[autofocus], [data-autofocus]")||ie,ie.focus({preventScroll:!0}))})}function z(ie){if(b=u.noRefocus===!1?document.activeElement:null,addFocusout(X),B(),re(),m=void 0,ie!==void 0&&(u.touchPosition||u.contextMenu)){const de=position(ie);if(de.left!==void 0){const{top:ce,left:he}=T.value.getBoundingClientRect();m={left:de.left-he,top:de.top-ce}}}y===void 0&&(y=watch(()=>w.screen.width+"|"+w.screen.height+"|"+u.self+"|"+u.anchor+"|"+w.lang.rtl,Z)),u.noFocus!==!0&&document.activeElement.blur(),J(()=>{Z(),u.noFocus!==!0&&U()}),H(()=>{w.platform.is.ios===!0&&(k=u.autoClose,$.value.click()),Z(),B(!0),g("show",ie)},u.transitionDuration)}function te(ie){ae(),M(),W(!0),b!==null&&(ie===void 0||ie.qClickOutside!==!0)&&(((ie&&ie.type.indexOf("key")===0?b.closest('[tabindex]:not([tabindex^="-"])'):void 0)||b).focus(),b=null),H(()=>{M(!0),g("hide",ie)},u.transitionDuration)}function W(ie){m=void 0,y!==void 0&&(y(),y=void 0),(ie===!0||Q.value===!0)&&(removeFocusout(X),R(),removeClickOutside(S),removeEscapeKey(K)),ie!==!0&&(b=null)}function re(){(T.value!==null||u.scrollTarget!==void 0)&&(j.value=getScrollTarget(T.value,u.scrollTarget),L(j.value,Z))}function ee(ie){k!==!0?(closePortalMenus(q,ie),g("click",ie)):k=!1}function X(ie){N.value===!0&&u.noFocus!==!0&&childHasFocus($.value,ie.target)!==!0&&U()}function K(ie){g("escapeKey"),P(ie)}function Z(){setPosition({targetEl:$.value,offset:u.offset,anchorEl:T.value,anchorOrigin:A.value,selfOrigin:E.value,absoluteOffset:m,fit:u.fit,cover:u.cover,maxHeight:u.maxHeight,maxWidth:u.maxWidth})}function se(){return h(Transition,Y.value,()=>Q.value===!0?h("div",{role:"menu",...f,ref:$,tabindex:-1,class:["q-menu q-position-engine scroll"+_.value,f.class],style:[f.style,G.value],...D.value},hSlot(d.default)):null)}return onBeforeUnmount(W),Object.assign(q,{focus:U,updatePosition:Z}),F}});const useSpinnerProps={size:{type:[String,Number],default:"1em"},color:String};function useSpinner(u){return{cSize:computed(()=>u.size in useSizeDefaults?`${useSizeDefaults[u.size]}px`:u.size),classes:computed(()=>"q-spinner"+(u.color?` text-${u.color}`:""))}}var QSpinner=createComponent({name:"QSpinner",props:{...useSpinnerProps,thickness:{type:Number,default:5}},setup(u){const{cSize:d,classes:g}=useSpinner(u);return()=>h("svg",{class:g.value+" q-spinner-mat",width:d.value,height:d.value,viewBox:"25 25 50 50"},[h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":u.thickness,"stroke-miterlimit":"10"})])}});function throttle$1(u,d=250){let g=!1,f;return function(){return g===!1&&(g=!0,setTimeout(()=>{g=!1},d),f=u.apply(this,arguments)),f}}function showRipple(u,d,g,f){g.modifiers.stop===!0&&stop(u);const b=g.modifiers.color;let m=g.modifiers.center;m=m===!0||f===!0;const y=document.createElement("span"),k=document.createElement("span"),a=position(u),{left:q,top:w,width:$,height:Q}=d.getBoundingClientRect(),C=Math.sqrt($*$+Q*Q),v=C/2,J=`${($-C)/2}px`,ae=m?J:`${a.left-q-v}px`,H=`${(Q-C)/2}px`,Y=m?H:`${a.top-w-v}px`;k.className="q-ripple__inner",css(k,{height:`${C}px`,width:`${C}px`,transform:`translate3d(${ae},${Y},0) scale3d(.2,.2,1)`,opacity:0}),y.className=`q-ripple${b?" text-"+b:""}`,y.setAttribute("dir","ltr"),y.appendChild(k),d.appendChild(y);const G=()=>{y.remove(),clearTimeout(j)};g.abort.push(G);let j=setTimeout(()=>{k.classList.add("q-ripple__inner--enter"),k.style.transform=`translate3d(${J},${H},0) scale3d(1,1,1)`,k.style.opacity=.2,j=setTimeout(()=>{k.classList.remove("q-ripple__inner--enter"),k.classList.add("q-ripple__inner--leave"),k.style.opacity=0,j=setTimeout(()=>{y.remove(),g.abort.splice(g.abort.indexOf(G),1)},275)},250)},50)}function updateModifiers(u,{modifiers:d,value:g,arg:f}){const b=Object.assign({},u.cfg.ripple,d,g);u.modifiers={early:b.early===!0,stop:b.stop===!0,center:b.center===!0,color:b.color||f,keyCodes:[].concat(b.keyCodes||13)}}var Ripple=createDirective({name:"ripple",beforeMount(u,d){const g=d.instance.$.appContext.config.globalProperties.$q.config||{};if(g.ripple===!1)return;const f={cfg:g,enabled:d.value!==!1,modifiers:{},abort:[],start(b){f.enabled===!0&&b.qSkipRipple!==!0&&b.type===(f.modifiers.early===!0?"pointerdown":"click")&&showRipple(b,u,f,b.qKeyEvent===!0)},keystart:throttle$1(b=>{f.enabled===!0&&b.qSkipRipple!==!0&&isKeyCode(b,f.modifiers.keyCodes)===!0&&b.type===`key${f.modifiers.early===!0?"down":"up"}`&&showRipple(b,u,f,!0)},300)};updateModifiers(f,d),u.__qripple=f,addEvt(f,"main",[[u,"pointerdown","start","passive"],[u,"click","start","passive"],[u,"keydown","keystart","passive"],[u,"keyup","keystart","passive"]])},updated(u,d){if(d.oldValue!==d.value){const g=u.__qripple;g!==void 0&&(g.enabled=d.value!==!1,g.enabled===!0&&Object(d.value)===d.value&&updateModifiers(g,d))}},beforeUnmount(u){const d=u.__qripple;d!==void 0&&(d.abort.forEach(g=>{g()}),cleanEvt(d,"main"),delete u._qripple)}});const alignMap={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},alignValues=Object.keys(alignMap),useAlignProps={align:{type:String,validator:u=>alignValues.includes(u)}};function useAlign(u){return computed(()=>{const d=u.align===void 0?u.vertical===!0?"stretch":"left":u.align;return`${u.vertical===!0?"items":"justify"}-${alignMap[d]}`})}const btnPadding={none:0,xs:4,sm:8,md:16,lg:24,xl:32},defaultSizes$2={xs:8,sm:10,md:14,lg:20,xl:24},formTypes=["button","submit","reset"],mediaTypeRE=/[^\s]\/[^\s]/,btnDesignOptions=["flat","outline","push","unelevated"];function getBtnDesign(u,d){return u.flat===!0?"flat":u.outline===!0?"outline":u.push===!0?"push":u.unelevated===!0?"unelevated":d}const nonRoundBtnProps={...useSizeProps,...useRouterLinkNonMatchingProps,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...btnDesignOptions.reduce((u,d)=>(u[d]=Boolean)&&u,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...useAlignProps.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},useBtnProps={...nonRoundBtnProps,round:Boolean};function useBtn(u){const d=useSize(u,defaultSizes$2),g=useAlign(u),{hasRouterLink:f,hasLink:b,linkTag:m,linkAttrs:y,navigateOnClick:k}=useRouterLink({fallbackTag:"button"}),a=computed(()=>{const ae=u.fab===!1&&u.fabMini===!1?d.value:{};return u.padding!==void 0?Object.assign({},ae,{padding:u.padding.split(/\s+/).map(H=>H in btnPadding?btnPadding[H]+"px":H).join(" "),minWidth:"0",minHeight:"0"}):ae}),q=computed(()=>u.rounded===!0||u.fab===!0||u.fabMini===!0),w=computed(()=>u.disable!==!0&&u.loading!==!0),$=computed(()=>w.value===!0?u.tabindex||0:-1),Q=computed(()=>getBtnDesign(u,"standard")),C=computed(()=>{const ae={tabindex:$.value};return b.value===!0?Object.assign(ae,y.value):formTypes.includes(u.type)===!0&&(ae.type=u.type),m.value==="a"?(u.disable===!0?ae["aria-disabled"]="true":ae.href===void 0&&(ae.role="button"),f.value!==!0&&mediaTypeRE.test(u.type)===!0&&(ae.type=u.type)):u.disable===!0&&(ae.disabled="",ae["aria-disabled"]="true"),u.loading===!0&&u.percentage!==void 0&&Object.assign(ae,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u.percentage}),ae}),v=computed(()=>{let ae;u.color!==void 0?u.flat===!0||u.outline===!0?ae=`text-${u.textColor||u.color}`:ae=`bg-${u.color} text-${u.textColor||"white"}`:u.textColor&&(ae=`text-${u.textColor}`);const H=u.round===!0?"round":`rectangle${q.value===!0?" q-btn--rounded":u.square===!0?" q-btn--square":""}`;return`q-btn--${Q.value} q-btn--${H}`+(ae!==void 0?" "+ae:"")+(w.value===!0?" q-btn--actionable q-focusable q-hoverable":u.disable===!0?" disabled":"")+(u.fab===!0?" q-btn--fab":u.fabMini===!0?" q-btn--fab-mini":"")+(u.noCaps===!0?" q-btn--no-uppercase":"")+(u.dense===!0?" q-btn--dense":"")+(u.stretch===!0?" no-border-radius self-stretch":"")+(u.glossy===!0?" glossy":"")+(u.square?" q-btn--square":"")}),J=computed(()=>g.value+(u.stack===!0?" column":" row")+(u.noWrap===!0?" no-wrap text-no-wrap":"")+(u.loading===!0?" q-btn__content--hidden":""));return{classes:v,style:a,innerClasses:J,attributes:C,hasLink:b,linkTag:m,navigateOnClick:k,isActionable:w}}const{passiveCapture}=listenOpts;let touchTarget=null,keyboardTarget=null,mouseTarget=null;var QBtn=createComponent({name:"QBtn",props:{...useBtnProps,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(u,{slots:d,emit:g}){const{proxy:f}=getCurrentInstance(),{classes:b,style:m,innerClasses:y,attributes:k,hasLink:a,linkTag:q,navigateOnClick:w,isActionable:$}=useBtn(u),Q=ref(null),C=ref(null);let v=null,J,ae=null;const H=computed(()=>u.label!==void 0&&u.label!==null&&u.label!==""),Y=computed(()=>u.disable===!0||u.ripple===!1?!1:{keyCodes:a.value===!0?[13,32]:[13],...u.ripple===!0?{}:u.ripple}),G=computed(()=>({center:u.round})),j=computed(()=>{const A=Math.max(0,Math.min(100,u.percentage));return A>0?{transition:"transform 0.6s",transform:`translateX(${A-100}%)`}:{}}),L=computed(()=>{if(u.loading===!0)return{onMousedown:S,onTouchstart:S,onClick:S,onKeydown:S,onKeyup:S};if($.value===!0){const A={onClick:T,onKeydown:O,onMousedown:B};if(f.$q.platform.has.touch===!0){const E=u.onTouchstart!==void 0?"":"Passive";A[`onTouchstart${E}`]=P}return A}return{onClick:stopAndPrevent}}),R=computed(()=>({ref:Q,class:"q-btn q-btn-item non-selectable no-outline "+b.value,style:m.value,...k.value,...L.value}));function T(A){if(Q.value!==null){if(A!==void 0){if(A.defaultPrevented===!0)return;const E=document.activeElement;if(u.type==="submit"&&E!==document.body&&Q.value.contains(E)===!1&&E.contains(Q.value)===!1){Q.value.focus();const _=()=>{document.removeEventListener("keydown",stopAndPrevent,!0),document.removeEventListener("keyup",_,passiveCapture),Q.value!==null&&Q.value.removeEventListener("blur",_,passiveCapture)};document.addEventListener("keydown",stopAndPrevent,!0),document.addEventListener("keyup",_,passiveCapture),Q.value.addEventListener("blur",_,passiveCapture)}}w(A)}}function O(A){Q.value!==null&&(g("keydown",A),isKeyCode(A,[13,32])===!0&&keyboardTarget!==Q.value&&(keyboardTarget!==null&&F(),A.defaultPrevented!==!0&&(Q.value.focus(),keyboardTarget=Q.value,Q.value.classList.add("q-btn--active"),document.addEventListener("keyup",M,!0),Q.value.addEventListener("blur",M,passiveCapture)),stopAndPrevent(A)))}function P(A){Q.value!==null&&(g("touchstart",A),A.defaultPrevented!==!0&&(touchTarget!==Q.value&&(touchTarget!==null&&F(),touchTarget=Q.value,v=A.target,v.addEventListener("touchcancel",M,passiveCapture),v.addEventListener("touchend",M,passiveCapture)),J=!0,ae!==null&&clearTimeout(ae),ae=setTimeout(()=>{ae=null,J=!1},200)))}function B(A){Q.value!==null&&(A.qSkipRipple=J===!0,g("mousedown",A),A.defaultPrevented!==!0&&mouseTarget!==Q.value&&(mouseTarget!==null&&F(),mouseTarget=Q.value,Q.value.classList.add("q-btn--active"),document.addEventListener("mouseup",M,passiveCapture)))}function M(A){if(Q.value!==null&&!(A!==void 0&&A.type==="blur"&&document.activeElement===Q.value)){if(A!==void 0&&A.type==="keyup"){if(keyboardTarget===Q.value&&isKeyCode(A,[13,32])===!0){const E=new MouseEvent("click",A);E.qKeyEvent=!0,A.defaultPrevented===!0&&prevent(E),A.cancelBubble===!0&&stop(E),Q.value.dispatchEvent(E),stopAndPrevent(A),A.qKeyEvent=!0}g("keyup",A)}F()}}function F(A){const E=C.value;A!==!0&&(touchTarget===Q.value||mouseTarget===Q.value)&&E!==null&&E!==document.activeElement&&(E.setAttribute("tabindex",-1),E.focus()),touchTarget===Q.value&&(v!==null&&(v.removeEventListener("touchcancel",M,passiveCapture),v.removeEventListener("touchend",M,passiveCapture)),touchTarget=v=null),mouseTarget===Q.value&&(document.removeEventListener("mouseup",M,passiveCapture),mouseTarget=null),keyboardTarget===Q.value&&(document.removeEventListener("keyup",M,!0),Q.value!==null&&Q.value.removeEventListener("blur",M,passiveCapture),keyboardTarget=null),Q.value!==null&&Q.value.classList.remove("q-btn--active")}function S(A){stopAndPrevent(A),A.qSkipRipple=!0}return onBeforeUnmount(()=>{F(!0)}),Object.assign(f,{click:A=>{$.value===!0&&T(A)}}),()=>{let A=[];u.icon!==void 0&&A.push(h(QIcon,{name:u.icon,left:u.stack!==!0&&H.value===!0,role:"img"})),H.value===!0&&A.push(h("span",{class:"block"},[u.label])),A=hMergeSlot(d.default,A),u.iconRight!==void 0&&u.round===!1&&A.push(h(QIcon,{name:u.iconRight,right:u.stack!==!0&&H.value===!0,role:"img"}));const E=[h("span",{class:"q-focus-helper",ref:C})];return u.loading===!0&&u.percentage!==void 0&&E.push(h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(u.darkPercentage===!0?" q-btn__progress--dark":"")},[h("span",{class:"q-btn__progress-indicator fit block",style:j.value})])),E.push(h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+y.value},A)),u.loading!==null&&E.push(h(Transition,{name:"q-transition--fade"},()=>u.loading===!0?[h("span",{key:"loading",class:"absolute-full flex flex-center"},d.loading!==void 0?d.loading():[h(QSpinner)])]:null)),withDirectives(h(q.value,R.value,E),[[Ripple,Y.value,void 0,G.value]])}}}),QCardSection=createComponent({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(u,{slots:d}){const g=computed(()=>`q-card__section q-card__section--${u.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>h(u.tag,{class:g.value},hSlot(d.default))}}),QCardActions=createComponent({name:"QCardActions",props:{...useAlignProps,vertical:Boolean},setup(u,{slots:d}){const g=useAlign(u),f=computed(()=>`q-card__actions ${g.value} q-card__actions--${u.vertical===!0?"vert column":"horiz row"}`);return()=>h("div",{class:f.value},hSlot(d.default))}}),QCard=createComponent({name:"QCard",props:{...useDarkProps,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(u,{slots:d}){const{proxy:{$q:g}}=getCurrentInstance(),f=useDark(u,g),b=computed(()=>"q-card"+(f.value===!0?" q-card--dark q-dark":"")+(u.bordered===!0?" q-card--bordered":"")+(u.square===!0?" q-card--square no-border-radius":"")+(u.flat===!0?" q-card--flat no-shadow":""));return()=>h(u.tag,{class:b.value},hSlot(d.default))}});let maximizedModals=0;const positionClass$1={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},defaultTransitions={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]};var QDialog=createComponent({name:"QDialog",inheritAttrs:!1,props:{...useModelToggleProps,...useTransitionProps,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:u=>["standard","top","bottom","left","right"].includes(u)}},emits:[...useModelToggleEmits,"shake","click","escapeKey"],setup(u,{slots:d,emit:g,attrs:f}){const b=getCurrentInstance(),m=ref(null),y=ref(!1),k=ref(!1);let a=null,q=null,w,$;const Q=computed(()=>u.persistent!==!0&&u.noRouteDismiss!==!0&&u.seamless!==!0),{preventBodyScroll:C}=usePreventScroll(),{registerTimeout:v}=useTimeout(),{registerTick:J,removeTick:ae}=useTick(),{transitionProps:H,transitionStyle:Y}=useTransition(u,()=>defaultTransitions[u.position][0],()=>defaultTransitions[u.position][1]),G=computed(()=>Y.value+(u.backdropFilter!==void 0?`;backdrop-filter:${u.backdropFilter};-webkit-backdrop-filter:${u.backdropFilter}`:"")),{showPortal:j,hidePortal:L,portalIsAccessible:R,renderPortal:T}=usePortal(b,m,X,"dialog"),{hide:O}=useModelToggle({showing:y,hideOnRouteChange:Q,handleShow:E,handleHide:_,processOnMount:!0}),{addToHistory:P,removeFromHistory:B}=useHistory(y,O,Q),M=computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${u.maximized===!0?"maximized":"minimized"} q-dialog__inner--${u.position} ${positionClass$1[u.position]}`+(k.value===!0?" q-dialog__inner--animating":"")+(u.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(u.fullHeight===!0?" q-dialog__inner--fullheight":"")+(u.square===!0?" q-dialog__inner--square":"")),F=computed(()=>y.value===!0&&u.seamless!==!0),S=computed(()=>u.autoClose===!0?{onClick:W}:{}),A=computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${F.value===!0?"modal":"seamless"}`,f.class]);watch(()=>u.maximized,K=>{y.value===!0&&te(K)}),watch(F,K=>{C(K),K===!0?(addFocusout(ee),addEscapeKey(U)):(removeFocusout(ee),removeEscapeKey(U))});function E(K){P(),q=u.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,te(u.maximized),j(),k.value=!0,u.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),J(D)):ae(),v(()=>{if(b.proxy.$q.platform.is.ios===!0){if(u.seamless!==!0&&document.activeElement){const{top:Z,bottom:se}=document.activeElement.getBoundingClientRect(),{innerHeight:ie}=window,de=window.visualViewport!==void 0?window.visualViewport.height:ie;Z>0&&se>de/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-de,se>=ie?1/0:Math.ceil(document.scrollingElement.scrollTop+se-de/2))),document.activeElement.scrollIntoView()}$=!0,m.value.click(),$=!1}j(!0),k.value=!1,g("show",K)},u.transitionDuration)}function _(K){ae(),B(),z(!0),k.value=!0,L(),q!==null&&(((K&&K.type.indexOf("key")===0?q.closest('[tabindex]:not([tabindex^="-"])'):void 0)||q).focus(),q=null),v(()=>{L(!0),k.value=!1,g("hide",K)},u.transitionDuration)}function D(K){addFocusFn(()=>{let Z=m.value;if(Z!==null){if(K!==void 0){const se=Z.querySelector(K);if(se!==null){se.focus({preventScroll:!0});return}}Z.contains(document.activeElement)!==!0&&(Z=Z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||Z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||Z.querySelector("[autofocus], [data-autofocus]")||Z,Z.focus({preventScroll:!0}))}})}function N(K){K&&typeof K.focus=="function"?K.focus({preventScroll:!0}):D(),g("shake");const Z=m.value;Z!==null&&(Z.classList.remove("q-animate--scale"),Z.classList.add("q-animate--scale"),a!==null&&clearTimeout(a),a=setTimeout(()=>{a=null,m.value!==null&&(Z.classList.remove("q-animate--scale"),D())},170))}function U(){u.seamless!==!0&&(u.persistent===!0||u.noEscDismiss===!0?u.maximized!==!0&&u.noShake!==!0&&N():(g("escapeKey"),O()))}function z(K){a!==null&&(clearTimeout(a),a=null),(K===!0||y.value===!0)&&(te(!1),u.seamless!==!0&&(C(!1),removeFocusout(ee),removeEscapeKey(U))),K!==!0&&(q=null)}function te(K){K===!0?w!==!0&&(maximizedModals<1&&document.body.classList.add("q-body--dialog"),maximizedModals++,w=!0):w===!0&&(maximizedModals<2&&document.body.classList.remove("q-body--dialog"),maximizedModals--,w=!1)}function W(K){$!==!0&&(O(K),g("click",K))}function re(K){u.persistent!==!0&&u.noBackdropDismiss!==!0?O(K):u.noShake!==!0&&N()}function ee(K){u.allowFocusOutside!==!0&&R.value===!0&&childHasFocus(m.value,K.target)!==!0&&D('[tabindex]:not([tabindex="-1"])')}Object.assign(b.proxy,{focus:D,shake:N,__updateRefocusTarget(K){q=K||null}}),onBeforeUnmount(z);function X(){return h("div",{role:"dialog","aria-modal":F.value===!0?"true":"false",...f,class:A.value},[h(Transition,{name:"q-transition--fade",appear:!0},()=>F.value===!0?h("div",{class:"q-dialog__backdrop fixed-full",style:G.value,"aria-hidden":"true",tabindex:-1,onClick:re}):null),h(Transition,H.value,()=>y.value===!0?h("div",{ref:m,class:M.value,style:Y.value,tabindex:-1,...S.value},hSlot(d.default)):null)])}return T}});function getDepth(u){if(u===!1)return 0;if(u===!0||u===void 0)return 1;const d=parseInt(u,10);return isNaN(d)?0:d}var ClosePopup=createDirective({name:"close-popup",beforeMount(u,{value:d}){const g={depth:getDepth(d),handler(f){g.depth!==0&&setTimeout(()=>{const b=getPortalProxy(u);b!==void 0&&closePortals(b,f,g.depth)})},handlerKey(f){isKeyCode(f,13)===!0&&g.handler(f)}};u.__qclosepopup=g,u.addEventListener("click",g.handler),u.addEventListener("keyup",g.handlerKey)},updated(u,{value:d,oldValue:g}){d!==g&&(u.__qclosepopup.depth=getDepth(d))},beforeUnmount(u){const d=u.__qclosepopup;u.removeEventListener("click",d.handler),u.removeEventListener("keyup",d.handlerKey),delete u.__qclosepopup}});let buf,bufIdx=0;const hexBytes=new Array(256);for(let u=0;u<256;u++)hexBytes[u]=(u+256).toString(16).substring(1);const randomBytes=(()=>{const u=typeof crypto!="undefined"?crypto:typeof window!="undefined"?window.crypto||window.msCrypto:void 0;if(u!==void 0){if(u.randomBytes!==void 0)return u.randomBytes;if(u.getRandomValues!==void 0)return d=>{const g=new Uint8Array(d);return u.getRandomValues(g),g}}return d=>{const g=[];for(let f=d;f>0;f--)g.push(Math.floor(Math.random()*256));return g}})(),BUFFER_SIZE=4096;function uid$1(){(buf===void 0||bufIdx+16>BUFFER_SIZE)&&(bufIdx=0,buf=randomBytes(BUFFER_SIZE));const u=Array.prototype.slice.call(buf,bufIdx,bufIdx+=16);return u[6]=u[6]&15|64,u[8]=u[8]&63|128,hexBytes[u[0]]+hexBytes[u[1]]+hexBytes[u[2]]+hexBytes[u[3]]+"-"+hexBytes[u[4]]+hexBytes[u[5]]+"-"+hexBytes[u[6]]+hexBytes[u[7]]+"-"+hexBytes[u[8]]+hexBytes[u[9]]+"-"+hexBytes[u[10]]+hexBytes[u[11]]+hexBytes[u[12]]+hexBytes[u[13]]+hexBytes[u[14]]+hexBytes[u[15]]}function parseValue(u){return u==null?null:u}function getId(u,d){return u==null?d===!0?`f_${uid$1()}`:null:u}function useId({getValue:u,required:d=!0}={}){if(isRuntimeSsrPreHydration.value===!0){const g=ref(u!==void 0?parseValue(u()):null);return d===!0&&g.value===null&&onMounted(()=>{g.value=`f_${uid$1()}`}),u!==void 0&&watch(u,f=>{g.value=getId(f,d)}),g}return u!==void 0?computed(()=>getId(u(),d)):ref(`f_${uid$1()}`)}const listenerRE=/^on[A-Z]/;function useSplitAttrs(){const{attrs:u,vnode:d}=getCurrentInstance(),g={listeners:ref({}),attributes:ref({})};function f(){const b={},m={};for(const y in u)y!=="class"&&y!=="style"&&listenerRE.test(y)===!1&&(b[y]=u[y]);for(const y in d.props)listenerRE.test(y)===!0&&(m[y]=d.props[y]);g.attributes.value=b,g.listeners.value=m}return onBeforeUpdate(f),f(),g}function useFormChild({validate:u,resetValidation:d,requiresQForm:g}){const f=inject(formKey,!1);if(f!==!1){const{props:b,proxy:m}=getCurrentInstance();Object.assign(m,{validate:u,resetValidation:d}),watch(()=>b.disable,y=>{y===!0?(typeof d=="function"&&d(),f.unbindComponent(m)):f.bindComponent(m)}),onMounted(()=>{b.disable!==!0&&f.bindComponent(m)}),onBeforeUnmount(()=>{b.disable!==!0&&f.unbindComponent(m)})}else g===!0&&console.error("Parent QForm not found on useFormChild()!")}const hex=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,hexa=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,hexOrHexa=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,rgb=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,rgba=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,testPattern={date:u=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(u),time:u=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(u),fulltime:u=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(u),timeOrFulltime:u=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(u),email:u=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(u),hexColor:u=>hex.test(u),hexaColor:u=>hexa.test(u),hexOrHexaColor:u=>hexOrHexa.test(u),rgbColor:u=>rgb.test(u),rgbaColor:u=>rgba.test(u),rgbOrRgbaColor:u=>rgb.test(u)||rgba.test(u),hexOrRgbColor:u=>hex.test(u)||rgb.test(u),hexaOrRgbaColor:u=>hexa.test(u)||rgba.test(u),anyColor:u=>hexOrHexa.test(u)||rgb.test(u)||rgba.test(u)},lazyRulesValues=[!0,!1,"ondemand"],useValidateProps={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:u=>lazyRulesValues.includes(u)}};function useValidate(u,d){const{props:g,proxy:f}=getCurrentInstance(),b=ref(!1),m=ref(null),y=ref(!1);useFormChild({validate:J,resetValidation:v});let k=0,a;const q=computed(()=>g.rules!==void 0&&g.rules!==null&&g.rules.length!==0),w=computed(()=>g.disable!==!0&&q.value===!0&&d.value===!1),$=computed(()=>g.error===!0||b.value===!0),Q=computed(()=>typeof g.errorMessage=="string"&&g.errorMessage.length!==0?g.errorMessage:m.value);watch(()=>g.modelValue,()=>{y.value=!0,w.value===!0&&g.lazyRules===!1&&ae()});function C(){g.lazyRules!=="ondemand"&&w.value===!0&&y.value===!0&&ae()}watch(()=>g.reactiveRules,H=>{H===!0?a===void 0&&(a=watch(()=>g.rules,C,{immediate:!0,deep:!0})):a!==void 0&&(a(),a=void 0)},{immediate:!0}),watch(()=>g.lazyRules,C),watch(u,H=>{H===!0?y.value=!0:w.value===!0&&g.lazyRules!=="ondemand"&&ae()});function v(){k++,d.value=!1,y.value=!1,b.value=!1,m.value=null,ae.cancel()}function J(H=g.modelValue){if(g.disable===!0||q.value===!1)return!0;const Y=++k,G=d.value!==!0?()=>{y.value=!0}:()=>{},j=(R,T)=>{R===!0&&G(),b.value=R,m.value=T||null,d.value=!1},L=[];for(let R=0;R<g.rules.length;R++){const T=g.rules[R];let O;if(typeof T=="function"?O=T(H,testPattern):typeof T=="string"&&testPattern[T]!==void 0&&(O=testPattern[T](H)),O===!1||typeof O=="string")return j(!0,O),!1;O!==!0&&O!==void 0&&L.push(O)}return L.length===0?(j(!1),!0):(d.value=!0,Promise.all(L).then(R=>{if(R===void 0||Array.isArray(R)===!1||R.length===0)return Y===k&&j(!1),!0;const T=R.find(O=>O===!1||typeof O=="string");return Y===k&&j(T!==void 0,T),T===void 0},R=>(Y===k&&(console.error(R),j(!0)),!1)))}const ae=debounce(J,0);return onBeforeUnmount(()=>{a!==void 0&&a(),ae.cancel()}),Object.assign(f,{resetValidation:v,validate:J}),injectProp(f,"hasError",()=>$.value),{isDirtyModel:y,hasRules:q,hasError:$,errorMessage:Q,validate:J,resetValidation:v}}function fieldValueIsFilled(u){return u!=null&&(""+u).length!==0}const useNonInputFieldProps={...useDarkProps,...useValidateProps,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},useFieldProps={...useNonInputFieldProps,maxlength:[Number,String]},useFieldEmits=["update:modelValue","clear","focus","blur"];function useFieldState({requiredForAttr:u=!0,tagProp:d,changeEvent:g=!1}={}){const{props:f,proxy:b}=getCurrentInstance(),m=useDark(f,b.$q),y=useId({required:u,getValue:()=>f.for});return{requiredForAttr:u,changeEvent:g,tag:d===!0?computed(()=>f.tag):{value:"label"},isDark:m,editable:computed(()=>f.disable!==!0&&f.readonly!==!0),innerLoading:ref(!1),focused:ref(!1),hasPopupOpen:!1,splitAttrs:useSplitAttrs(),targetUid:y,rootRef:ref(null),targetRef:ref(null),controlRef:ref(null)}}function useField(u){const{props:d,emit:g,slots:f,attrs:b,proxy:m}=getCurrentInstance(),{$q:y}=m;let k=null;u.hasValue===void 0&&(u.hasValue=computed(()=>fieldValueIsFilled(d.modelValue))),u.emitValue===void 0&&(u.emitValue=N=>{g("update:modelValue",N)}),u.controlEvents===void 0&&(u.controlEvents={onFocusin:P,onFocusout:B}),Object.assign(u,{clearValue:M,onControlFocusin:P,onControlFocusout:B,focus:T}),u.computedCounter===void 0&&(u.computedCounter=computed(()=>{if(d.counter!==!1){const N=typeof d.modelValue=="string"||typeof d.modelValue=="number"?(""+d.modelValue).length:Array.isArray(d.modelValue)===!0?d.modelValue.length:0,U=d.maxlength!==void 0?d.maxlength:d.maxValues;return N+(U!==void 0?" / "+U:"")}}));const{isDirtyModel:a,hasRules:q,hasError:w,errorMessage:$,resetValidation:Q}=useValidate(u.focused,u.innerLoading),C=u.floatingLabel!==void 0?computed(()=>d.stackLabel===!0||u.focused.value===!0||u.floatingLabel.value===!0):computed(()=>d.stackLabel===!0||u.focused.value===!0||u.hasValue.value===!0),v=computed(()=>d.bottomSlots===!0||d.hint!==void 0||q.value===!0||d.counter===!0||d.error!==null),J=computed(()=>d.filled===!0?"filled":d.outlined===!0?"outlined":d.borderless===!0?"borderless":d.standout?"standout":"standard"),ae=computed(()=>`q-field row no-wrap items-start q-field--${J.value}`+(u.fieldClass!==void 0?` ${u.fieldClass.value}`:"")+(d.rounded===!0?" q-field--rounded":"")+(d.square===!0?" q-field--square":"")+(C.value===!0?" q-field--float":"")+(Y.value===!0?" q-field--labeled":"")+(d.dense===!0?" q-field--dense":"")+(d.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(u.isDark.value===!0?" q-field--dark":"")+(u.getControl===void 0?" q-field--auto-height":"")+(u.focused.value===!0?" q-field--focused":"")+(w.value===!0?" q-field--error":"")+(w.value===!0||u.focused.value===!0?" q-field--highlighted":"")+(d.hideBottomSpace!==!0&&v.value===!0?" q-field--with-bottom":"")+(d.disable===!0?" q-field--disabled":d.readonly===!0?" q-field--readonly":"")),H=computed(()=>"q-field__control relative-position row no-wrap"+(d.bgColor!==void 0?` bg-${d.bgColor}`:"")+(w.value===!0?" text-negative":typeof d.standout=="string"&&d.standout.length!==0&&u.focused.value===!0?` ${d.standout}`:d.color!==void 0?` text-${d.color}`:"")),Y=computed(()=>d.labelSlot===!0||d.label!==void 0),G=computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(d.labelColor!==void 0&&w.value!==!0?` text-${d.labelColor}`:"")),j=computed(()=>({id:u.targetUid.value,editable:u.editable.value,focused:u.focused.value,floatingLabel:C.value,modelValue:d.modelValue,emitValue:u.emitValue})),L=computed(()=>{const N={};return u.targetUid.value&&(N.for=u.targetUid.value),d.disable===!0&&(N["aria-disabled"]="true"),N});function R(){const N=document.activeElement;let U=u.targetRef!==void 0&&u.targetRef.value;U&&(N===null||N.id!==u.targetUid.value)&&(U.hasAttribute("tabindex")===!0||(U=U.querySelector("[tabindex]")),U&&U!==N&&U.focus({preventScroll:!0}))}function T(){addFocusFn(R)}function O(){removeFocusFn(R);const N=document.activeElement;N!==null&&u.rootRef.value.contains(N)&&N.blur()}function P(N){k!==null&&(clearTimeout(k),k=null),u.editable.value===!0&&u.focused.value===!1&&(u.focused.value=!0,g("focus",N))}function B(N,U){k!==null&&clearTimeout(k),k=setTimeout(()=>{k=null,!(document.hasFocus()===!0&&(u.hasPopupOpen===!0||u.controlRef===void 0||u.controlRef.value===null||u.controlRef.value.contains(document.activeElement)!==!1))&&(u.focused.value===!0&&(u.focused.value=!1,g("blur",N)),U!==void 0&&U())})}function M(N){stopAndPrevent(N),y.platform.is.mobile!==!0?(u.targetRef!==void 0&&u.targetRef.value||u.rootRef.value).focus():u.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),d.type==="file"&&(u.inputRef.value.value=null),g("update:modelValue",null),u.changeEvent===!0&&g("change",null),g("clear",d.modelValue),nextTick(()=>{const U=a.value;Q(),a.value=U})}function F(N){[13,32].includes(N.keyCode)&&M(N)}function S(){const N=[];return f.prepend!==void 0&&N.push(h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:prevent},f.prepend())),N.push(h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},A())),w.value===!0&&d.noErrorIcon===!1&&N.push(_("error",[h(QIcon,{name:y.iconSet.field.error,color:"negative"})])),d.loading===!0||u.innerLoading.value===!0?N.push(_("inner-loading-append",f.loading!==void 0?f.loading():[h(QSpinner,{color:d.color})])):d.clearable===!0&&u.hasValue.value===!0&&u.editable.value===!0&&N.push(_("inner-clearable-append",[h(QIcon,{class:"q-field__focusable-action",name:d.clearIcon||y.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":y.lang.label.clear,onKeyup:F,onClick:M})])),f.append!==void 0&&N.push(h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:prevent},f.append())),u.getInnerAppend!==void 0&&N.push(_("inner-append",u.getInnerAppend())),u.getControlChild!==void 0&&N.push(u.getControlChild()),N}function A(){const N=[];return d.prefix!==void 0&&d.prefix!==null&&N.push(h("div",{class:"q-field__prefix no-pointer-events row items-center"},d.prefix)),u.getShadowControl!==void 0&&u.hasShadow.value===!0&&N.push(u.getShadowControl()),u.getControl!==void 0?N.push(u.getControl()):f.rawControl!==void 0?N.push(f.rawControl()):f.control!==void 0&&N.push(h("div",{ref:u.targetRef,class:"q-field__native row",tabindex:-1,...u.splitAttrs.attributes.value,"data-autofocus":d.autofocus===!0||void 0},f.control(j.value))),Y.value===!0&&N.push(h("div",{class:G.value},hSlot(f.label,d.label))),d.suffix!==void 0&&d.suffix!==null&&N.push(h("div",{class:"q-field__suffix no-pointer-events row items-center"},d.suffix)),N.concat(hSlot(f.default))}function E(){let N,U;w.value===!0?$.value!==null?(N=[h("div",{role:"alert"},$.value)],U=`q--slot-error-${$.value}`):(N=hSlot(f.error),U="q--slot-error"):(d.hideHint!==!0||u.focused.value===!0)&&(d.hint!==void 0?(N=[h("div",d.hint)],U=`q--slot-hint-${d.hint}`):(N=hSlot(f.hint),U="q--slot-hint"));const z=d.counter===!0||f.counter!==void 0;if(d.hideBottomSpace===!0&&z===!1&&N===void 0)return;const te=h("div",{key:U,class:"q-field__messages col"},N);return h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(d.hideBottomSpace!==!0?"animated":"stale"),onClick:prevent},[d.hideBottomSpace===!0?te:h(Transition,{name:"q-transition--field-message"},()=>te),z===!0?h("div",{class:"q-field__counter"},f.counter!==void 0?f.counter():u.computedCounter.value):null])}function _(N,U){return U===null?null:h("div",{key:N,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},U)}let D=!1;return onDeactivated(()=>{D=!0}),onActivated(()=>{D===!0&&d.autofocus===!0&&m.focus()}),d.autofocus===!0&&onMounted(()=>{m.focus()}),onBeforeUnmount(()=>{k!==null&&clearTimeout(k)}),Object.assign(m,{focus:T,blur:O}),function(){const U=u.getControl===void 0&&f.control===void 0?{...u.splitAttrs.attributes.value,"data-autofocus":d.autofocus===!0||void 0,...L.value}:L.value;return h(u.tag.value,{ref:u.rootRef,class:[ae.value,b.class],style:b.style,...U},[f.before!==void 0?h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:prevent},f.before()):null,h("div",{class:"q-field__inner relative-position col self-stretch"},[h("div",{ref:u.controlRef,class:H.value,tabindex:-1,...u.controlEvents},S()),v.value===!0?E():null]),f.after!==void 0?h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:prevent},f.after()):null])}}const NAMED_MASKS={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},TOKENS={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:u=>u.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:u=>u.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:u=>u.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:u=>u.toLocaleLowerCase()}},KEYS=Object.keys(TOKENS);KEYS.forEach(u=>{TOKENS[u].regex=new RegExp(TOKENS[u].pattern)});const tokenRegexMask=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+KEYS.join("")+"])|(.)","g"),escRegex=/[.*+?^${}()|[\]\\]/g,MARKER=String.fromCharCode(1),useMaskProps={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function useMask(u,d,g,f){let b,m,y,k,a,q;const w=ref(null),$=ref(C());function Q(){return u.autogrow===!0||["textarea","text","search","url","tel","password"].includes(u.type)}watch(()=>u.type+u.autogrow,J),watch(()=>u.mask,P=>{if(P!==void 0)ae($.value,!0);else{const B=T($.value);J(),u.modelValue!==B&&d("update:modelValue",B)}}),watch(()=>u.fillMask+u.reverseFillMask,()=>{w.value===!0&&ae($.value,!0)}),watch(()=>u.unmaskedValue,()=>{w.value===!0&&ae($.value)});function C(){if(J(),w.value===!0){const P=L(T(u.modelValue));return u.fillMask!==!1?O(P):P}return u.modelValue}function v(P){if(P<b.length)return b.slice(-P);let B="",M=b;const F=M.indexOf(MARKER);if(F!==-1){for(let S=P-M.length;S>0;S--)B+=MARKER;M=M.slice(0,F)+B+M.slice(F)}return M}function J(){if(w.value=u.mask!==void 0&&u.mask.length!==0&&Q(),w.value===!1){k=void 0,b="",m="";return}const P=NAMED_MASKS[u.mask]===void 0?u.mask:NAMED_MASKS[u.mask],B=typeof u.fillMask=="string"&&u.fillMask.length!==0?u.fillMask.slice(0,1):"_",M=B.replace(escRegex,"\\$&"),F=[],S=[],A=[];let E=u.reverseFillMask===!0,_="",D="";P.replace(tokenRegexMask,(te,W,re,ee,X)=>{if(ee!==void 0){const K=TOKENS[ee];A.push(K),D=K.negate,E===!0&&(S.push("(?:"+D+"+)?("+K.pattern+"+)?(?:"+D+"+)?("+K.pattern+"+)?"),E=!1),S.push("(?:"+D+"+)?("+K.pattern+")?")}else if(re!==void 0)_="\\"+(re==="\\"?"":re),A.push(re),F.push("([^"+_+"]+)?"+_+"?");else{const K=W!==void 0?W:X;_=K==="\\"?"\\\\\\\\":K.replace(escRegex,"\\\\$&"),A.push(K),F.push("([^"+_+"]+)?"+_+"?")}});const N=new RegExp("^"+F.join("")+"("+(_===""?".":"[^"+_+"]")+"+)?"+(_===""?"":"["+_+"]*")+"$"),U=S.length-1,z=S.map((te,W)=>W===0&&u.reverseFillMask===!0?new RegExp("^"+M+"*"+te):W===U?new RegExp("^"+te+"("+(D===""?".":D)+"+)?"+(u.reverseFillMask===!0?"$":M+"*")):new RegExp("^"+te));y=A,k=te=>{const W=N.exec(u.reverseFillMask===!0?te:te.slice(0,A.length+1));W!==null&&(te=W.slice(1).join(""));const re=[],ee=z.length;for(let X=0,K=te;X<ee;X++){const Z=z[X].exec(K);if(Z===null)break;K=K.slice(Z.shift().length),re.push(...Z)}return re.length!==0?re.join(""):te},b=A.map(te=>typeof te=="string"?te:MARKER).join(""),m=b.split(MARKER).join(B)}function ae(P,B,M){const F=f.value,S=F.selectionEnd,A=F.value.length-S,E=T(P);B===!0&&J();const _=L(E),D=u.fillMask!==!1?O(_):_,N=$.value!==D;F.value!==D&&(F.value=D),N===!0&&($.value=D),document.activeElement===F&&nextTick(()=>{if(D===m){const z=u.reverseFillMask===!0?m.length:0;F.setSelectionRange(z,z,"forward");return}if(M==="insertFromPaste"&&u.reverseFillMask!==!0){const z=F.selectionEnd;let te=S-1;for(let W=a;W<=te&&W<z;W++)b[W]!==MARKER&&te++;Y.right(F,te);return}if(["deleteContentBackward","deleteContentForward"].indexOf(M)!==-1){const z=u.reverseFillMask===!0?S===0?D.length>_.length?1:0:Math.max(0,D.length-(D===m?0:Math.min(_.length,A)+1))+1:S;F.setSelectionRange(z,z,"forward");return}if(u.reverseFillMask===!0)if(N===!0){const z=Math.max(0,D.length-(D===m?0:Math.min(_.length,A+1)));z===1&&S===1?F.setSelectionRange(z,z,"forward"):Y.rightReverse(F,z)}else{const z=D.length-A;F.setSelectionRange(z,z,"backward")}else if(N===!0){const z=Math.max(0,b.indexOf(MARKER),Math.min(_.length,S)-1);Y.right(F,z)}else{const z=S-1;Y.right(F,z)}});const U=u.unmaskedValue===!0?T(D):D;String(u.modelValue)!==U&&(u.modelValue!==null||U!=="")&&g(U,!0)}function H(P,B,M){const F=L(T(P.value));B=Math.max(0,b.indexOf(MARKER),Math.min(F.length,B)),a=B,P.setSelectionRange(B,M,"forward")}const Y={left(P,B){const M=b.slice(B-1).indexOf(MARKER)===-1;let F=Math.max(0,B-1);for(;F>=0;F--)if(b[F]===MARKER){B=F,M===!0&&B++;break}if(F<0&&b[B]!==void 0&&b[B]!==MARKER)return Y.right(P,0);B>=0&&P.setSelectionRange(B,B,"backward")},right(P,B){const M=P.value.length;let F=Math.min(M,B+1);for(;F<=M;F++)if(b[F]===MARKER){B=F;break}else b[F-1]===MARKER&&(B=F);if(F>M&&b[B-1]!==void 0&&b[B-1]!==MARKER)return Y.left(P,M);P.setSelectionRange(B,B,"forward")},leftReverse(P,B){const M=v(P.value.length);let F=Math.max(0,B-1);for(;F>=0;F--)if(M[F-1]===MARKER){B=F;break}else if(M[F]===MARKER&&(B=F,F===0))break;if(F<0&&M[B]!==void 0&&M[B]!==MARKER)return Y.rightReverse(P,0);B>=0&&P.setSelectionRange(B,B,"backward")},rightReverse(P,B){const M=P.value.length,F=v(M),S=F.slice(0,B+1).indexOf(MARKER)===-1;let A=Math.min(M,B+1);for(;A<=M;A++)if(F[A-1]===MARKER){B=A,B>0&&S===!0&&B--;break}if(A>M&&F[B-1]!==void 0&&F[B-1]!==MARKER)return Y.leftReverse(P,M);P.setSelectionRange(B,B,"forward")}};function G(P){d("click",P),q=void 0}function j(P){if(d("keydown",P),shouldIgnoreKey(P)===!0||P.altKey===!0)return;const B=f.value,M=B.selectionStart,F=B.selectionEnd;if(P.shiftKey||(q=void 0),P.keyCode===37||P.keyCode===39){P.shiftKey&&q===void 0&&(q=B.selectionDirection==="forward"?M:F);const S=Y[(P.keyCode===39?"right":"left")+(u.reverseFillMask===!0?"Reverse":"")];if(P.preventDefault(),S(B,q===M?F:M),P.shiftKey){const A=B.selectionStart;B.setSelectionRange(Math.min(q,A),Math.max(q,A),"forward")}}else P.keyCode===8&&u.reverseFillMask!==!0&&M===F?(Y.left(B,M),B.setSelectionRange(B.selectionStart,F,"backward")):P.keyCode===46&&u.reverseFillMask===!0&&M===F&&(Y.rightReverse(B,F),B.setSelectionRange(M,B.selectionEnd,"forward"))}function L(P){if(P==null||P==="")return"";if(u.reverseFillMask===!0)return R(P);const B=y;let M=0,F="";for(let S=0;S<B.length;S++){const A=P[M],E=B[S];if(typeof E=="string")F+=E,A===E&&M++;else if(A!==void 0&&E.regex.test(A))F+=E.transform!==void 0?E.transform(A):A,M++;else return F}return F}function R(P){const B=y,M=b.indexOf(MARKER);let F=P.length-1,S="";for(let A=B.length-1;A>=0&&F!==-1;A--){const E=B[A];let _=P[F];if(typeof E=="string")S=E+S,_===E&&F--;else if(_!==void 0&&E.regex.test(_))do S=(E.transform!==void 0?E.transform(_):_)+S,F--,_=P[F];while(M===A&&_!==void 0&&E.regex.test(_));else return S}return S}function T(P){return typeof P!="string"||k===void 0?typeof P=="number"?k(""+P):P:k(P)}function O(P){return m.length-P.length<=0?P:u.reverseFillMask===!0&&P.length!==0?m.slice(0,-P.length)+P:P+m.slice(P.length)}return{innerValue:$,hasMask:w,moveCursorForPaste:H,updateMaskValue:ae,onMaskedKeydown:j,onMaskedClick:G}}const useFormProps={name:String};function useFormInject(u={}){return(d,g,f)=>{d[g](h("input",{class:"hidden"+(f||""),...u.value}))}}function useFormInputNameAttr(u){return computed(()=>u.name||u.for)}function useFileFormDomProps(u,d){function g(){const f=u.modelValue;try{const b="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(f)===f&&("length"in f?Array.from(f):[f]).forEach(m=>{b.items.add(m)}),{files:b.files}}catch{return{files:void 0}}}return computed(d===!0?()=>{if(u.type==="file")return g()}:g)}const isJapanese=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,isChinese=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,isKorean=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,isPlainText=/[a-z0-9_ -]$/i;function useKeyComposition(u){return function(g){if(g.type==="compositionend"||g.type==="change"){if(g.target.qComposing!==!0)return;g.target.qComposing=!1,u(g)}else g.type==="compositionupdate"&&g.target.qComposing!==!0&&typeof g.data=="string"&&(client.is.firefox===!0?isPlainText.test(g.data)===!1:isJapanese.test(g.data)===!0||isChinese.test(g.data)===!0||isKorean.test(g.data)===!0)===!0&&(g.target.qComposing=!0)}}var QInput=createComponent({name:"QInput",inheritAttrs:!1,props:{...useFieldProps,...useMaskProps,...useFormProps,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...useFieldEmits,"paste","change","keydown","click","animationend"],setup(u,{emit:d,attrs:g}){const{proxy:f}=getCurrentInstance(),{$q:b}=f,m={};let y=NaN,k,a,q=null,w;const $=ref(null),Q=useFormInputNameAttr(u),{innerValue:C,hasMask:v,moveCursorForPaste:J,updateMaskValue:ae,onMaskedKeydown:H,onMaskedClick:Y}=useMask(u,d,_,$),G=useFileFormDomProps(u,!0),j=computed(()=>fieldValueIsFilled(C.value)),L=useKeyComposition(A),R=useFieldState({changeEvent:!0}),T=computed(()=>u.type==="textarea"||u.autogrow===!0),O=computed(()=>T.value===!0||["text","search","url","tel","password"].includes(u.type)),P=computed(()=>{const W={...R.splitAttrs.listeners.value,onInput:A,onPaste:S,onChange:N,onBlur:U,onFocus:stop};return W.onCompositionstart=W.onCompositionupdate=W.onCompositionend=L,v.value===!0&&(W.onKeydown=H,W.onClick=Y),u.autogrow===!0&&(W.onAnimationend=E),W}),B=computed(()=>{const W={tabindex:0,"data-autofocus":u.autofocus===!0||void 0,rows:u.type==="textarea"?6:void 0,"aria-label":u.label,name:Q.value,...R.splitAttrs.attributes.value,id:R.targetUid.value,maxlength:u.maxlength,disabled:u.disable===!0,readonly:u.readonly===!0};return T.value===!1&&(W.type=u.type),u.autogrow===!0&&(W.rows=1),W});watch(()=>u.type,()=>{$.value&&($.value.value=u.modelValue)}),watch(()=>u.modelValue,W=>{if(v.value===!0){if(a===!0&&(a=!1,String(W)===y))return;ae(W)}else C.value!==W&&(C.value=W,u.type==="number"&&m.hasOwnProperty("value")===!0&&(k===!0?k=!1:delete m.value));u.autogrow===!0&&nextTick(D)}),watch(()=>u.autogrow,W=>{W===!0?nextTick(D):$.value!==null&&g.rows>0&&($.value.style.height="auto")}),watch(()=>u.dense,()=>{u.autogrow===!0&&nextTick(D)});function M(){addFocusFn(()=>{const W=document.activeElement;$.value!==null&&$.value!==W&&(W===null||W.id!==R.targetUid.value)&&$.value.focus({preventScroll:!0})})}function F(){$.value!==null&&$.value.select()}function S(W){if(v.value===!0&&u.reverseFillMask!==!0){const re=W.target;J(re,re.selectionStart,re.selectionEnd)}d("paste",W)}function A(W){if(!W||!W.target)return;if(u.type==="file"){d("update:modelValue",W.target.files);return}const re=W.target.value;if(W.target.qComposing===!0){m.value=re;return}if(v.value===!0)ae(re,!1,W.inputType);else if(_(re),O.value===!0&&W.target===document.activeElement){const{selectionStart:ee,selectionEnd:X}=W.target;ee!==void 0&&X!==void 0&&nextTick(()=>{W.target===document.activeElement&&re.indexOf(W.target.value)===0&&W.target.setSelectionRange(ee,X)})}u.autogrow===!0&&D()}function E(W){d("animationend",W),D()}function _(W,re){w=()=>{q=null,u.type!=="number"&&m.hasOwnProperty("value")===!0&&delete m.value,u.modelValue!==W&&y!==W&&(y=W,re===!0&&(a=!0),d("update:modelValue",W),nextTick(()=>{y===W&&(y=NaN)})),w=void 0},u.type==="number"&&(k=!0,m.value=W),u.debounce!==void 0?(q!==null&&clearTimeout(q),m.value=W,q=setTimeout(w,u.debounce)):w()}function D(){requestAnimationFrame(()=>{const W=$.value;if(W!==null){const re=W.parentNode.style,{scrollTop:ee}=W,{overflowY:X,maxHeight:K}=b.platform.is.firefox===!0?{}:window.getComputedStyle(W),Z=X!==void 0&&X!=="scroll";Z===!0&&(W.style.overflowY="hidden"),re.marginBottom=W.scrollHeight-1+"px",W.style.height="1px",W.style.height=W.scrollHeight+"px",Z===!0&&(W.style.overflowY=parseInt(K,10)<W.scrollHeight?"auto":"hidden"),re.marginBottom="",W.scrollTop=ee}})}function N(W){L(W),q!==null&&(clearTimeout(q),q=null),w!==void 0&&w(),d("change",W.target.value)}function U(W){W!==void 0&&stop(W),q!==null&&(clearTimeout(q),q=null),w!==void 0&&w(),k=!1,a=!1,delete m.value,u.type!=="file"&&setTimeout(()=>{$.value!==null&&($.value.value=C.value!==void 0?C.value:"")})}function z(){return m.hasOwnProperty("value")===!0?m.value:C.value!==void 0?C.value:""}onBeforeUnmount(()=>{U()}),onMounted(()=>{u.autogrow===!0&&D()}),Object.assign(R,{innerValue:C,fieldClass:computed(()=>`q-${T.value===!0?"textarea":"input"}`+(u.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:computed(()=>u.type!=="file"&&typeof u.shadowText=="string"&&u.shadowText.length!==0),inputRef:$,emitValue:_,hasValue:j,floatingLabel:computed(()=>j.value===!0&&(u.type!=="number"||isNaN(C.value)===!1)||fieldValueIsFilled(u.displayValue)),getControl:()=>h(T.value===!0?"textarea":"input",{ref:$,class:["q-field__native q-placeholder",u.inputClass],style:u.inputStyle,...B.value,...P.value,...u.type!=="file"?{value:z()}:G.value}),getShadowControl:()=>h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(T.value===!0?"":" text-no-wrap")},[h("span",{class:"invisible"},z()),h("span",u.shadowText)])});const te=useField(R);return Object.assign(f,{focus:M,select:F,getNativeElement:()=>$.value}),injectProp(f,"nativeEl",()=>$.value),te}}),QForm=createComponent({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validationSuccess","validationError"],setup(u,{slots:d,emit:g}){const f=getCurrentInstance(),b=ref(null);let m=0;const y=[];function k(C){const v=typeof C=="boolean"?C:u.noErrorFocus!==!0,J=++m,ae=(G,j)=>{g(`validation${G===!0?"Success":"Error"}`,j)},H=G=>{const j=G.validate();return typeof j.then=="function"?j.then(L=>({valid:L,comp:G}),L=>({valid:!1,comp:G,err:L})):Promise.resolve({valid:j,comp:G})};return(u.greedy===!0?Promise.all(y.map(H)).then(G=>G.filter(j=>j.valid!==!0)):y.reduce((G,j)=>G.then(()=>H(j).then(L=>{if(L.valid===!1)return Promise.reject(L)})),Promise.resolve()).catch(G=>[G])).then(G=>{if(G===void 0||G.length===0)return J===m&&ae(!0),!0;if(J===m){const{comp:j,err:L}=G[0];if(L!==void 0&&console.error(L),ae(!1,j),v===!0){const R=G.find(({comp:T})=>typeof T.focus=="function"&&vmIsDestroyed(T.$)===!1);R!==void 0&&R.comp.focus()}}return!1})}function a(){m++,y.forEach(C=>{typeof C.resetValidation=="function"&&C.resetValidation()})}function q(C){C!==void 0&&stopAndPrevent(C);const v=m+1;k().then(J=>{v===m&&J===!0&&(u.onSubmit!==void 0?g("submit",C):C!==void 0&&C.target!==void 0&&typeof C.target.submit=="function"&&C.target.submit())})}function w(C){C!==void 0&&stopAndPrevent(C),g("reset"),nextTick(()=>{a(),u.autofocus===!0&&u.noResetFocus!==!0&&$()})}function $(){addFocusFn(()=>{if(b.value===null)return;const C=b.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||b.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||b.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(b.value.querySelectorAll("[tabindex]"),v=>v.tabIndex!==-1);C!=null&&C.focus({preventScroll:!0})})}provide(formKey,{bindComponent(C){y.push(C)},unbindComponent(C){const v=y.indexOf(C);v!==-1&&y.splice(v,1)}});let Q=!1;return onDeactivated(()=>{Q=!0}),onActivated(()=>{Q===!0&&u.autofocus===!0&&$()}),onMounted(()=>{u.autofocus===!0&&$()}),Object.assign(f.proxy,{validate:k,resetValidation:a,submit:q,reset:w,focus:$,getValidationComponents:()=>y}),()=>h("form",{class:"q-form",ref:b,onSubmit:q,onReset:w},hSlot(d.default))}});function bind(u,d){return function(){return u.apply(d,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(u=>d=>{const g=toString.call(d);return u[g]||(u[g]=g.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=u=>(u=u.toLowerCase(),d=>kindOf(d)===u),typeOfTest=u=>d=>typeof d===u,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(u){return u!==null&&!isUndefined(u)&&u.constructor!==null&&!isUndefined(u.constructor)&&isFunction(u.constructor.isBuffer)&&u.constructor.isBuffer(u)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(u){let d;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?d=ArrayBuffer.isView(u):d=u&&u.buffer&&isArrayBuffer(u.buffer),d}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber$2=typeOfTest("number"),isObject=u=>u!==null&&typeof u=="object",isBoolean=u=>u===!0||u===!1,isPlainObject=u=>{if(kindOf(u)!=="object")return!1;const d=getPrototypeOf(u);return(d===null||d===Object.prototype||Object.getPrototypeOf(d)===null)&&!(Symbol.toStringTag in u)&&!(Symbol.iterator in u)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=u=>isObject(u)&&isFunction(u.pipe),isFormData=u=>{let d;return u&&(typeof FormData=="function"&&u instanceof FormData||isFunction(u.append)&&((d=kindOf(u))==="formdata"||d==="object"&&isFunction(u.toString)&&u.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=u=>u.trim?u.trim():u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(u,d,{allOwnKeys:g=!1}={}){if(u===null||typeof u=="undefined")return;let f,b;if(typeof u!="object"&&(u=[u]),isArray(u))for(f=0,b=u.length;f<b;f++)d.call(null,u[f],f,u);else{const m=g?Object.getOwnPropertyNames(u):Object.keys(u),y=m.length;let k;for(f=0;f<y;f++)k=m[f],d.call(null,u[k],k,u)}}function findKey(u,d){d=d.toLowerCase();const g=Object.keys(u);let f=g.length,b;for(;f-- >0;)if(b=g[f],d===b.toLowerCase())return b;return null}const _global=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),isContextDefined=u=>!isUndefined(u)&&u!==_global;function merge(){const{caseless:u}=isContextDefined(this)&&this||{},d={},g=(f,b)=>{const m=u&&findKey(d,b)||b;isPlainObject(d[m])&&isPlainObject(f)?d[m]=merge(d[m],f):isPlainObject(f)?d[m]=merge({},f):isArray(f)?d[m]=f.slice():d[m]=f};for(let f=0,b=arguments.length;f<b;f++)arguments[f]&&forEach(arguments[f],g);return d}const extend=(u,d,g,{allOwnKeys:f}={})=>(forEach(d,(b,m)=>{g&&isFunction(b)?u[m]=bind(b,g):u[m]=b},{allOwnKeys:f}),u),stripBOM=u=>(u.charCodeAt(0)===65279&&(u=u.slice(1)),u),inherits=(u,d,g,f)=>{u.prototype=Object.create(d.prototype,f),u.prototype.constructor=u,Object.defineProperty(u,"super",{value:d.prototype}),g&&Object.assign(u.prototype,g)},toFlatObject=(u,d,g,f)=>{let b,m,y;const k={};if(d=d||{},u==null)return d;do{for(b=Object.getOwnPropertyNames(u),m=b.length;m-- >0;)y=b[m],(!f||f(y,u,d))&&!k[y]&&(d[y]=u[y],k[y]=!0);u=g!==!1&&getPrototypeOf(u)}while(u&&(!g||g(u,d))&&u!==Object.prototype);return d},endsWith=(u,d,g)=>{u=String(u),(g===void 0||g>u.length)&&(g=u.length),g-=d.length;const f=u.indexOf(d,g);return f!==-1&&f===g},toArray=u=>{if(!u)return null;if(isArray(u))return u;let d=u.length;if(!isNumber$2(d))return null;const g=new Array(d);for(;d-- >0;)g[d]=u[d];return g},isTypedArray=(u=>d=>u&&d instanceof u)(typeof Uint8Array!="undefined"&&getPrototypeOf(Uint8Array)),forEachEntry=(u,d)=>{const f=(u&&u[Symbol.iterator]).call(u);let b;for(;(b=f.next())&&!b.done;){const m=b.value;d.call(u,m[0],m[1])}},matchAll=(u,d)=>{let g;const f=[];for(;(g=u.exec(d))!==null;)f.push(g);return f},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=u=>u.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(g,f,b){return f.toUpperCase()+b}),hasOwnProperty=(({hasOwnProperty:u})=>(d,g)=>u.call(d,g))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(u,d)=>{const g=Object.getOwnPropertyDescriptors(u),f={};forEach(g,(b,m)=>{let y;(y=d(b,m,u))!==!1&&(f[m]=y||b)}),Object.defineProperties(u,f)},freezeMethods=u=>{reduceDescriptors(u,(d,g)=>{if(isFunction(u)&&["arguments","caller","callee"].indexOf(g)!==-1)return!1;const f=u[g];if(!!isFunction(f)){if(d.enumerable=!1,"writable"in d){d.writable=!1;return}d.set||(d.set=()=>{throw Error("Can not rewrite read-only method '"+g+"'")})}})},toObjectSet=(u,d)=>{const g={},f=b=>{b.forEach(m=>{g[m]=!0})};return isArray(u)?f(u):f(String(u).split(d)),g},noop=()=>{},toFiniteNumber=(u,d)=>u!=null&&Number.isFinite(u=+u)?u:d,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(u=16,d=ALPHABET.ALPHA_DIGIT)=>{let g="";const{length:f}=d;for(;u--;)g+=d[Math.random()*f|0];return g};function isSpecCompliantForm(u){return!!(u&&isFunction(u.append)&&u[Symbol.toStringTag]==="FormData"&&u[Symbol.iterator])}const toJSONObject=u=>{const d=new Array(10),g=(f,b)=>{if(isObject(f)){if(d.indexOf(f)>=0)return;if(!("toJSON"in f)){d[b]=f;const m=isArray(f)?[]:{};return forEach(f,(y,k)=>{const a=g(y,b+1);!isUndefined(a)&&(m[k]=a)}),d[b]=void 0,m}}return f};return g(u,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=u=>u&&(isObject(u)||isFunction(u))&&isFunction(u.then)&&isFunction(u.catch),_setImmediate=((u,d)=>u?setImmediate:d?((g,f)=>(_global.addEventListener("message",({source:b,data:m})=>{b===_global&&m===g&&f.length&&f.shift()()},!1),b=>{f.push(b),_global.postMessage(g,"*")}))(`axios@${Math.random()}`,[]):g=>setTimeout(g))(typeof setImmediate=="function",isFunction(_global.postMessage)),asap=typeof queueMicrotask!="undefined"?queueMicrotask.bind(_global):typeof process!="undefined"&&process.nextTick||_setImmediate;var utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber:isNumber$2,isBoolean,isObject,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError(u,d,g,f,b){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=u,this.name="AxiosError",d&&(this.code=d),g&&(this.config=g),f&&(this.request=f),b&&(this.response=b,this.status=b.status?b.status:null)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(u=>{descriptors[u]={value:u}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(u,d,g,f,b,m)=>{const y=Object.create(prototype$1);return utils$1.toFlatObject(u,y,function(a){return a!==Error.prototype},k=>k!=="isAxiosError"),AxiosError.call(y,u.message,d,g,f,b),y.cause=u,y.name=u.name,m&&Object.assign(y,m),y};var httpAdapter=null;function isVisitable(u){return utils$1.isPlainObject(u)||utils$1.isArray(u)}function removeBrackets(u){return utils$1.endsWith(u,"[]")?u.slice(0,-2):u}function renderKey(u,d,g){return u?u.concat(d).map(function(b,m){return b=removeBrackets(b),!g&&m?"["+b+"]":b}).join(g?".":""):d}function isFlatArray(u){return utils$1.isArray(u)&&!u.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(d){return/^is[A-Z]/.test(d)});function toFormData(u,d,g){if(!utils$1.isObject(u))throw new TypeError("target must be an object");d=d||new FormData,g=utils$1.toFlatObject(g,{metaTokens:!0,dots:!1,indexes:!1},!1,function(J,ae){return!utils$1.isUndefined(ae[J])});const f=g.metaTokens,b=g.visitor||w,m=g.dots,y=g.indexes,a=(g.Blob||typeof Blob!="undefined"&&Blob)&&utils$1.isSpecCompliantForm(d);if(!utils$1.isFunction(b))throw new TypeError("visitor must be a function");function q(v){if(v===null)return"";if(utils$1.isDate(v))return v.toISOString();if(!a&&utils$1.isBlob(v))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(v)||utils$1.isTypedArray(v)?a&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function w(v,J,ae){let H=v;if(v&&!ae&&typeof v=="object"){if(utils$1.endsWith(J,"{}"))J=f?J:J.slice(0,-2),v=JSON.stringify(v);else if(utils$1.isArray(v)&&isFlatArray(v)||(utils$1.isFileList(v)||utils$1.endsWith(J,"[]"))&&(H=utils$1.toArray(v)))return J=removeBrackets(J),H.forEach(function(G,j){!(utils$1.isUndefined(G)||G===null)&&d.append(y===!0?renderKey([J],j,m):y===null?J:J+"[]",q(G))}),!1}return isVisitable(v)?!0:(d.append(renderKey(ae,J,m),q(v)),!1)}const $=[],Q=Object.assign(predicates,{defaultVisitor:w,convertValue:q,isVisitable});function C(v,J){if(!utils$1.isUndefined(v)){if($.indexOf(v)!==-1)throw Error("Circular reference detected in "+J.join("."));$.push(v),utils$1.forEach(v,function(H,Y){(!(utils$1.isUndefined(H)||H===null)&&b.call(d,H,utils$1.isString(Y)?Y.trim():Y,J,Q))===!0&&C(H,J?J.concat(Y):[Y])}),$.pop()}}if(!utils$1.isObject(u))throw new TypeError("data must be an object");return C(u),d}function encode$2(u){const d={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(u).replace(/[!'()~]|%20|%00/g,function(f){return d[f]})}function AxiosURLSearchParams(u,d){this._pairs=[],u&&toFormData(u,this,d)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(d,g){this._pairs.push([d,g])};prototype.toString=function(d){const g=d?function(f){return d.call(this,f,encode$2)}:encode$2;return this._pairs.map(function(b){return g(b[0])+"="+g(b[1])},"").join("&")};function encode$1(u){return encodeURIComponent(u).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(u,d,g){if(!d)return u;const f=g&&g.encode||encode$1;utils$1.isFunction(g)&&(g={serialize:g});const b=g&&g.serialize;let m;if(b?m=b(d,g):m=utils$1.isURLSearchParams(d)?d.toString():new AxiosURLSearchParams(d,g).toString(f),m){const y=u.indexOf("#");y!==-1&&(u=u.slice(0,y)),u+=(u.indexOf("?")===-1?"?":"&")+m}return u}class InterceptorManager{constructor(){this.handlers=[]}use(d,g,f){return this.handlers.push({fulfilled:d,rejected:g,synchronous:f?f.synchronous:!1,runWhen:f?f.runWhen:null}),this.handlers.length-1}eject(d){this.handlers[d]&&(this.handlers[d]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(d){utils$1.forEach(this.handlers,function(f){f!==null&&d(f)})}}var InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams!="undefined"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData!="undefined"?FormData:null,Blob$1=typeof Blob!="undefined"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]};const hasBrowserEnv=typeof window!="undefined"&&typeof document!="undefined",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),origin=hasBrowserEnv&&window.location.href||"http://localhost";var utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserWebWorkerEnv,hasStandardBrowserEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(u,d){return toFormData(u,new platform.classes.URLSearchParams,Object.assign({visitor:function(g,f,b,m){return platform.isNode&&utils$1.isBuffer(g)?(this.append(f,g.toString("base64")),!1):m.defaultVisitor.apply(this,arguments)}},d))}function parsePropPath(u){return utils$1.matchAll(/\w+|\[(\w*)]/g,u).map(d=>d[0]==="[]"?"":d[1]||d[0])}function arrayToObject(u){const d={},g=Object.keys(u);let f;const b=g.length;let m;for(f=0;f<b;f++)m=g[f],d[m]=u[m];return d}function formDataToJSON(u){function d(g,f,b,m){let y=g[m++];if(y==="__proto__")return!0;const k=Number.isFinite(+y),a=m>=g.length;return y=!y&&utils$1.isArray(b)?b.length:y,a?(utils$1.hasOwnProp(b,y)?b[y]=[b[y],f]:b[y]=f,!k):((!b[y]||!utils$1.isObject(b[y]))&&(b[y]=[]),d(g,f,b[y],m)&&utils$1.isArray(b[y])&&(b[y]=arrayToObject(b[y])),!k)}if(utils$1.isFormData(u)&&utils$1.isFunction(u.entries)){const g={};return utils$1.forEachEntry(u,(f,b)=>{d(parsePropPath(f),b,g,0)}),g}return null}function stringifySafely(u,d,g){if(utils$1.isString(u))try{return(d||JSON.parse)(u),utils$1.trim(u)}catch(f){if(f.name!=="SyntaxError")throw f}return(g||JSON.stringify)(u)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(d,g){const f=g.getContentType()||"",b=f.indexOf("application/json")>-1,m=utils$1.isObject(d);if(m&&utils$1.isHTMLForm(d)&&(d=new FormData(d)),utils$1.isFormData(d))return b?JSON.stringify(formDataToJSON(d)):d;if(utils$1.isArrayBuffer(d)||utils$1.isBuffer(d)||utils$1.isStream(d)||utils$1.isFile(d)||utils$1.isBlob(d)||utils$1.isReadableStream(d))return d;if(utils$1.isArrayBufferView(d))return d.buffer;if(utils$1.isURLSearchParams(d))return g.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),d.toString();let k;if(m){if(f.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(d,this.formSerializer).toString();if((k=utils$1.isFileList(d))||f.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return toFormData(k?{"files[]":d}:d,a&&new a,this.formSerializer)}}return m||b?(g.setContentType("application/json",!1),stringifySafely(d)):d}],transformResponse:[function(d){const g=this.transitional||defaults$1.transitional,f=g&&g.forcedJSONParsing,b=this.responseType==="json";if(utils$1.isResponse(d)||utils$1.isReadableStream(d))return d;if(d&&utils$1.isString(d)&&(f&&!this.responseType||b)){const y=!(g&&g.silentJSONParsing)&&b;try{return JSON.parse(d)}catch(k){if(y)throw k.name==="SyntaxError"?AxiosError.from(k,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):k}}return d}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(d){return d>=200&&d<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],u=>{defaults$1.headers[u]={}});var defaults$2=defaults$1;const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=u=>{const d={};let g,f,b;return u&&u.split(`
28
+ */const isBrowser=typeof document!="undefined";function isRouteComponent(u){return typeof u=="object"||"displayName"in u||"props"in u||"__vccOpts"in u}function isESModule(u){return u.__esModule||u[Symbol.toStringTag]==="Module"||u.default&&isRouteComponent(u.default)}const assign=Object.assign;function applyToParams(u,d){const g={};for(const f in d){const b=d[f];g[f]=isArray$1(b)?b.map(u):u(b)}return g}const noop$1=()=>{},isArray$1=Array.isArray,HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(u){return encodeURI(""+u).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(u){return commonEncode(u).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(u){return commonEncode(u).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(u){return encodeQueryValue(u).replace(EQUAL_RE,"%3D")}function encodePath(u){return commonEncode(u).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(u){return u==null?"":encodePath(u).replace(SLASH_RE,"%2F")}function decode$1(u){try{return decodeURIComponent(""+u)}catch{}return""+u}const TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=u=>u.replace(TRAILING_SLASH_RE,"");function parseURL(u,d,g="/"){let f,b={},m="",y="";const k=d.indexOf("#");let a=d.indexOf("?");return k<a&&k>=0&&(a=-1),a>-1&&(f=d.slice(0,a),m=d.slice(a+1,k>-1?k:d.length),b=u(m)),k>-1&&(f=f||d.slice(0,k),y=d.slice(k,d.length)),f=resolveRelativePath(f!=null?f:d,g),{fullPath:f+(m&&"?")+m+y,path:f,query:b,hash:decode$1(y)}}function stringifyURL(u,d){const g=d.query?u(d.query):"";return d.path+(g&&"?")+g+(d.hash||"")}function stripBase(u,d){return!d||!u.toLowerCase().startsWith(d.toLowerCase())?u:u.slice(d.length)||"/"}function isSameRouteLocation(u,d,g){const f=d.matched.length-1,b=g.matched.length-1;return f>-1&&f===b&&isSameRouteRecord$1(d.matched[f],g.matched[b])&&isSameRouteLocationParams$1(d.params,g.params)&&u(d.query)===u(g.query)&&d.hash===g.hash}function isSameRouteRecord$1(u,d){return(u.aliasOf||u)===(d.aliasOf||d)}function isSameRouteLocationParams$1(u,d){if(Object.keys(u).length!==Object.keys(d).length)return!1;for(const g in u)if(!isSameRouteLocationParamsValue$1(u[g],d[g]))return!1;return!0}function isSameRouteLocationParamsValue$1(u,d){return isArray$1(u)?isEquivalentArray$1(u,d):isArray$1(d)?isEquivalentArray$1(d,u):u===d}function isEquivalentArray$1(u,d){return isArray$1(d)?u.length===d.length&&u.every((g,f)=>g===d[f]):u.length===1&&u[0]===d}function resolveRelativePath(u,d){if(u.startsWith("/"))return u;if(!u)return d;const g=d.split("/"),f=u.split("/"),b=f[f.length-1];(b===".."||b===".")&&f.push("");let m=g.length-1,y,k;for(y=0;y<f.length;y++)if(k=f[y],k!==".")if(k==="..")m>1&&m--;else break;return g.slice(0,m).join("/")+"/"+f.slice(y).join("/")}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var NavigationType;(function(u){u.pop="pop",u.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(u){u.back="back",u.forward="forward",u.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(u){if(!u)if(isBrowser){const d=document.querySelector("base");u=d&&d.getAttribute("href")||"/",u=u.replace(/^\w+:\/\/[^\/]+/,"")}else u="/";return u[0]!=="/"&&u[0]!=="#"&&(u="/"+u),removeTrailingSlash(u)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(u,d){return u.replace(BEFORE_HASH_RE,"#")+d}function getElementPosition(u,d){const g=document.documentElement.getBoundingClientRect(),f=u.getBoundingClientRect();return{behavior:d.behavior,left:f.left-g.left-(d.left||0),top:f.top-g.top-(d.top||0)}}const computeScrollPosition=()=>({left:window.scrollX,top:window.scrollY});function scrollToPosition(u){let d;if("el"in u){const g=u.el,f=typeof g=="string"&&g.startsWith("#"),b=typeof g=="string"?f?document.getElementById(g.slice(1)):document.querySelector(g):g;if(!b)return;d=getElementPosition(b,u)}else d=u;"scrollBehavior"in document.documentElement.style?window.scrollTo(d):window.scrollTo(d.left!=null?d.left:window.scrollX,d.top!=null?d.top:window.scrollY)}function getScrollKey(u,d){return(history.state?history.state.position-d:-1)+u}const scrollPositions=new Map;function saveScrollPosition(u,d){scrollPositions.set(u,d)}function getSavedScrollPosition(u){const d=scrollPositions.get(u);return scrollPositions.delete(u),d}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(u,d){const{pathname:g,search:f,hash:b}=d,m=u.indexOf("#");if(m>-1){let k=b.includes(u.slice(m))?u.slice(m).length:1,a=b.slice(k);return a[0]!=="/"&&(a="/"+a),stripBase(a,"")}return stripBase(g,u)+f+b}function useHistoryListeners(u,d,g,f){let b=[],m=[],y=null;const k=({state:Q})=>{const C=createCurrentLocation(u,location),v=g.value,J=d.value;let ae=0;if(Q){if(g.value=C,d.value=Q,y&&y===v){y=null;return}ae=J?Q.position-J.position:0}else f(C);b.forEach(H=>{H(g.value,v,{delta:ae,type:NavigationType.pop,direction:ae?ae>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function a(){y=g.value}function q(Q){b.push(Q);const C=()=>{const v=b.indexOf(Q);v>-1&&b.splice(v,1)};return m.push(C),C}function w(){const{history:Q}=window;!Q.state||Q.replaceState(assign({},Q.state,{scroll:computeScrollPosition()}),"")}function $(){for(const Q of m)Q();m=[],window.removeEventListener("popstate",k),window.removeEventListener("beforeunload",w)}return window.addEventListener("popstate",k),window.addEventListener("beforeunload",w,{passive:!0}),{pauseListeners:a,listen:q,destroy:$}}function buildState(u,d,g,f=!1,b=!1){return{back:u,current:d,forward:g,replaced:f,position:window.history.length,scroll:b?computeScrollPosition():null}}function useHistoryStateNavigation(u){const{history:d,location:g}=window,f={value:createCurrentLocation(u,g)},b={value:d.state};b.value||m(f.value,{back:null,current:f.value,forward:null,position:d.length-1,replaced:!0,scroll:null},!0);function m(a,q,w){const $=u.indexOf("#"),Q=$>-1?(g.host&&document.querySelector("base")?u:u.slice($))+a:createBaseLocation()+u+a;try{d[w?"replaceState":"pushState"](q,"",Q),b.value=q}catch(C){console.error(C),g[w?"replace":"assign"](Q)}}function y(a,q){const w=assign({},d.state,buildState(b.value.back,a,b.value.forward,!0),q,{position:b.value.position});m(a,w,!0),f.value=a}function k(a,q){const w=assign({},b.value,d.state,{forward:a,scroll:computeScrollPosition()});m(w.current,w,!0);const $=assign({},buildState(f.value,a,null),{position:w.position+1},q);m(a,$,!1),f.value=a}return{location:f,state:b,push:k,replace:y}}function createWebHistory(u){u=normalizeBase(u);const d=useHistoryStateNavigation(u),g=useHistoryListeners(u,d.state,d.location,d.replace);function f(m,y=!0){y||g.pauseListeners(),history.go(m)}const b=assign({location:"",base:u,go:f,createHref:createHref.bind(null,u)},d,g);return Object.defineProperty(b,"location",{enumerable:!0,get:()=>d.location.value}),Object.defineProperty(b,"state",{enumerable:!0,get:()=>d.state.value}),b}function isRouteLocation(u){return typeof u=="string"||u&&typeof u=="object"}function isRouteName(u){return typeof u=="string"||typeof u=="symbol"}const NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function(u){u[u.aborted=4]="aborted",u[u.cancelled=8]="cancelled",u[u.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(u,d){return assign(new Error,{type:u,[NavigationFailureSymbol]:!0},d)}function isNavigationFailure(u,d){return u instanceof Error&&NavigationFailureSymbol in u&&(d==null||!!(u.type&d))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(u,d){const g=assign({},BASE_PATH_PARSER_OPTIONS,d),f=[];let b=g.start?"^":"";const m=[];for(const q of u){const w=q.length?[]:[90];g.strict&&!q.length&&(b+="/");for(let $=0;$<q.length;$++){const Q=q[$];let C=40+(g.sensitive?.25:0);if(Q.type===0)$||(b+="/"),b+=Q.value.replace(REGEX_CHARS_RE,"\\$&"),C+=40;else if(Q.type===1){const{value:v,repeatable:J,optional:ae,regexp:H}=Q;m.push({name:v,repeatable:J,optional:ae});const Y=H||BASE_PARAM_PATTERN;if(Y!==BASE_PARAM_PATTERN){C+=10;try{new RegExp(`(${Y})`)}catch(j){throw new Error(`Invalid custom RegExp for param "${v}" (${Y}): `+j.message)}}let G=J?`((?:${Y})(?:/(?:${Y}))*)`:`(${Y})`;$||(G=ae&&q.length<2?`(?:/${G})`:"/"+G),ae&&(G+="?"),b+=G,C+=20,ae&&(C+=-8),J&&(C+=-20),Y===".*"&&(C+=-50)}w.push(C)}f.push(w)}if(g.strict&&g.end){const q=f.length-1;f[q][f[q].length-1]+=.7000000000000001}g.strict||(b+="/?"),g.end?b+="$":g.strict&&!b.endsWith("/")&&(b+="(?:/|$)");const y=new RegExp(b,g.sensitive?"":"i");function k(q){const w=q.match(y),$={};if(!w)return null;for(let Q=1;Q<w.length;Q++){const C=w[Q]||"",v=m[Q-1];$[v.name]=C&&v.repeatable?C.split("/"):C}return $}function a(q){let w="",$=!1;for(const Q of u){(!$||!w.endsWith("/"))&&(w+="/"),$=!1;for(const C of Q)if(C.type===0)w+=C.value;else if(C.type===1){const{value:v,repeatable:J,optional:ae}=C,H=v in q?q[v]:"";if(isArray$1(H)&&!J)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const Y=isArray$1(H)?H.join("/"):H;if(!Y)if(ae)Q.length<2&&(w.endsWith("/")?w=w.slice(0,-1):$=!0);else throw new Error(`Missing required param "${v}"`);w+=Y}}return w||"/"}return{re:y,score:f,keys:m,parse:k,stringify:a}}function compareScoreArray(u,d){let g=0;for(;g<u.length&&g<d.length;){const f=d[g]-u[g];if(f)return f;g++}return u.length<d.length?u.length===1&&u[0]===40+40?-1:1:u.length>d.length?d.length===1&&d[0]===40+40?1:-1:0}function comparePathParserScore(u,d){let g=0;const f=u.score,b=d.score;for(;g<f.length&&g<b.length;){const m=compareScoreArray(f[g],b[g]);if(m)return m;g++}if(Math.abs(b.length-f.length)===1){if(isLastScoreNegative(f))return 1;if(isLastScoreNegative(b))return-1}return b.length-f.length}function isLastScoreNegative(u){const d=u[u.length-1];return u.length>0&&d[d.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(u){if(!u)return[[]];if(u==="/")return[[ROOT_TOKEN]];if(!u.startsWith("/"))throw new Error(`Invalid path "${u}"`);function d(C){throw new Error(`ERR (${g})/"${q}": ${C}`)}let g=0,f=g;const b=[];let m;function y(){m&&b.push(m),m=[]}let k=0,a,q="",w="";function $(){!q||(g===0?m.push({type:0,value:q}):g===1||g===2||g===3?(m.length>1&&(a==="*"||a==="+")&&d(`A repeatable param (${q}) must be alone in its segment. eg: '/:ids+.`),m.push({type:1,value:q,regexp:w,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):d("Invalid state to consume buffer"),q="")}function Q(){q+=a}for(;k<u.length;){if(a=u[k++],a==="\\"&&g!==2){f=g,g=4;continue}switch(g){case 0:a==="/"?(q&&$(),y()):a===":"?($(),g=1):Q();break;case 4:Q(),g=f;break;case 1:a==="("?g=2:VALID_PARAM_RE.test(a)?Q():($(),g=0,a!=="*"&&a!=="?"&&a!=="+"&&k--);break;case 2:a===")"?w[w.length-1]=="\\"?w=w.slice(0,-1)+a:g=3:w+=a;break;case 3:$(),g=0,a!=="*"&&a!=="?"&&a!=="+"&&k--,w="";break;default:d("Unknown state");break}}return g===2&&d(`Unfinished custom RegExp for param "${q}"`),$(),y(),b}function createRouteRecordMatcher(u,d,g){const f=tokensToParser(tokenizePath(u.path),g),b=assign(f,{record:u,parent:d,children:[],alias:[]});return d&&!b.record.aliasOf==!d.record.aliasOf&&d.children.push(b),b}function createRouterMatcher(u,d){const g=[],f=new Map;d=mergeOptions({strict:!1,end:!0,sensitive:!1},d);function b($){return f.get($)}function m($,Q,C){const v=!C,J=normalizeRouteRecord($);J.aliasOf=C&&C.record;const ae=mergeOptions(d,$),H=[J];if("alias"in $){const j=typeof $.alias=="string"?[$.alias]:$.alias;for(const L of j)H.push(normalizeRouteRecord(assign({},J,{components:C?C.record.components:J.components,path:L,aliasOf:C?C.record:J})))}let Y,G;for(const j of H){const{path:L}=j;if(Q&&L[0]!=="/"){const R=Q.record.path,T=R[R.length-1]==="/"?"":"/";j.path=Q.record.path+(L&&T+L)}if(Y=createRouteRecordMatcher(j,Q,ae),C?C.alias.push(Y):(G=G||Y,G!==Y&&G.alias.push(Y),v&&$.name&&!isAliasRecord(Y)&&y($.name)),isMatchable(Y)&&a(Y),J.children){const R=J.children;for(let T=0;T<R.length;T++)m(R[T],Y,C&&C.children[T])}C=C||Y}return G?()=>{y(G)}:noop$1}function y($){if(isRouteName($)){const Q=f.get($);Q&&(f.delete($),g.splice(g.indexOf(Q),1),Q.children.forEach(y),Q.alias.forEach(y))}else{const Q=g.indexOf($);Q>-1&&(g.splice(Q,1),$.record.name&&f.delete($.record.name),$.children.forEach(y),$.alias.forEach(y))}}function k(){return g}function a($){const Q=findInsertionIndex($,g);g.splice(Q,0,$),$.record.name&&!isAliasRecord($)&&f.set($.record.name,$)}function q($,Q){let C,v={},J,ae;if("name"in $&&$.name){if(C=f.get($.name),!C)throw createRouterError(1,{location:$});ae=C.record.name,v=assign(paramsFromLocation(Q.params,C.keys.filter(G=>!G.optional).concat(C.parent?C.parent.keys.filter(G=>G.optional):[]).map(G=>G.name)),$.params&&paramsFromLocation($.params,C.keys.map(G=>G.name))),J=C.stringify(v)}else if($.path!=null)J=$.path,C=g.find(G=>G.re.test(J)),C&&(v=C.parse(J),ae=C.record.name);else{if(C=Q.name?f.get(Q.name):g.find(G=>G.re.test(Q.path)),!C)throw createRouterError(1,{location:$,currentLocation:Q});ae=C.record.name,v=assign({},Q.params,$.params),J=C.stringify(v)}const H=[];let Y=C;for(;Y;)H.unshift(Y.record),Y=Y.parent;return{name:ae,path:J,params:v,matched:H,meta:mergeMetaFields(H)}}u.forEach($=>m($));function w(){g.length=0,f.clear()}return{addRoute:m,resolve:q,removeRoute:y,clearRoutes:w,getRoutes:k,getRecordMatcher:b}}function paramsFromLocation(u,d){const g={};for(const f of d)f in u&&(g[f]=u[f]);return g}function normalizeRouteRecord(u){const d={path:u.path,redirect:u.redirect,name:u.name,meta:u.meta||{},aliasOf:u.aliasOf,beforeEnter:u.beforeEnter,props:normalizeRecordProps(u),children:u.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in u?u.components||null:u.component&&{default:u.component}};return Object.defineProperty(d,"mods",{value:{}}),d}function normalizeRecordProps(u){const d={},g=u.props||!1;if("component"in u)d.default=g;else for(const f in u.components)d[f]=typeof g=="object"?g[f]:g;return d}function isAliasRecord(u){for(;u;){if(u.record.aliasOf)return!0;u=u.parent}return!1}function mergeMetaFields(u){return u.reduce((d,g)=>assign(d,g.meta),{})}function mergeOptions(u,d){const g={};for(const f in u)g[f]=f in d?d[f]:u[f];return g}function findInsertionIndex(u,d){let g=0,f=d.length;for(;g!==f;){const m=g+f>>1;comparePathParserScore(u,d[m])<0?f=m:g=m+1}const b=getInsertionAncestor(u);return b&&(f=d.lastIndexOf(b,f-1)),f}function getInsertionAncestor(u){let d=u;for(;d=d.parent;)if(isMatchable(d)&&comparePathParserScore(u,d)===0)return d}function isMatchable({record:u}){return!!(u.name||u.components&&Object.keys(u.components).length||u.redirect)}function parseQuery(u){const d={};if(u===""||u==="?")return d;const f=(u[0]==="?"?u.slice(1):u).split("&");for(let b=0;b<f.length;++b){const m=f[b].replace(PLUS_RE," "),y=m.indexOf("="),k=decode$1(y<0?m:m.slice(0,y)),a=y<0?null:decode$1(m.slice(y+1));if(k in d){let q=d[k];isArray$1(q)||(q=d[k]=[q]),q.push(a)}else d[k]=a}return d}function stringifyQuery(u){let d="";for(let g in u){const f=u[g];if(g=encodeQueryKey(g),f==null){f!==void 0&&(d+=(d.length?"&":"")+g);continue}(isArray$1(f)?f.map(m=>m&&encodeQueryValue(m)):[f&&encodeQueryValue(f)]).forEach(m=>{m!==void 0&&(d+=(d.length?"&":"")+g,m!=null&&(d+="="+m))})}return d}function normalizeQuery(u){const d={};for(const g in u){const f=u[g];f!==void 0&&(d[g]=isArray$1(f)?f.map(b=>b==null?null:""+b):f==null?f:""+f)}return d}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let u=[];function d(f){return u.push(f),()=>{const b=u.indexOf(f);b>-1&&u.splice(b,1)}}function g(){u=[]}return{add:d,list:()=>u.slice(),reset:g}}function guardToPromiseFn(u,d,g,f,b,m=y=>y()){const y=f&&(f.enterCallbacks[b]=f.enterCallbacks[b]||[]);return()=>new Promise((k,a)=>{const q=Q=>{Q===!1?a(createRouterError(4,{from:g,to:d})):Q instanceof Error?a(Q):isRouteLocation(Q)?a(createRouterError(2,{from:d,to:Q})):(y&&f.enterCallbacks[b]===y&&typeof Q=="function"&&y.push(Q),k())},w=m(()=>u.call(f&&f.instances[b],d,g,q));let $=Promise.resolve(w);u.length<3&&($=$.then(q)),$.catch(Q=>a(Q))})}function extractComponentsGuards(u,d,g,f,b=m=>m()){const m=[];for(const y of u)for(const k in y.components){let a=y.components[k];if(!(d!=="beforeRouteEnter"&&!y.instances[k]))if(isRouteComponent(a)){const w=(a.__vccOpts||a)[d];w&&m.push(guardToPromiseFn(w,g,f,y,k,b))}else{let q=a();m.push(()=>q.then(w=>{if(!w)throw new Error(`Couldn't resolve component "${k}" at "${y.path}"`);const $=isESModule(w)?w.default:w;y.mods[k]=w,y.components[k]=$;const C=($.__vccOpts||$)[d];return C&&guardToPromiseFn(C,g,f,y,k,b)()}))}}return m}function useLink(u){const d=inject(routerKey),g=inject(routeLocationKey),f=computed(()=>{const a=unref(u.to);return d.resolve(a)}),b=computed(()=>{const{matched:a}=f.value,{length:q}=a,w=a[q-1],$=g.matched;if(!w||!$.length)return-1;const Q=$.findIndex(isSameRouteRecord$1.bind(null,w));if(Q>-1)return Q;const C=getOriginalPath$1(a[q-2]);return q>1&&getOriginalPath$1(w)===C&&$[$.length-1].path!==C?$.findIndex(isSameRouteRecord$1.bind(null,a[q-2])):Q}),m=computed(()=>b.value>-1&&includesParams$1(g.params,f.value.params)),y=computed(()=>b.value>-1&&b.value===g.matched.length-1&&isSameRouteLocationParams$1(g.params,f.value.params));function k(a={}){if(guardEvent(a)){const q=d[unref(u.replace)?"replace":"push"](unref(u.to)).catch(noop$1);return u.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>q),q}return Promise.resolve()}return{route:f,href:computed(()=>f.value.href),isActive:m,isExactActive:y,navigate:k}}function preferSingleVNode(u){return u.length===1?u[0]:u}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup(u,{slots:d}){const g=reactive(useLink(u)),{options:f}=inject(routerKey),b=computed(()=>({[getLinkClass(u.activeClass,f.linkActiveClass,"router-link-active")]:g.isActive,[getLinkClass(u.exactActiveClass,f.linkExactActiveClass,"router-link-exact-active")]:g.isExactActive}));return()=>{const m=d.default&&preferSingleVNode(d.default(g));return u.custom?m:h("a",{"aria-current":g.isExactActive?u.ariaCurrentValue:null,href:g.href,onClick:g.navigate,class:b.value},m)}}}),RouterLink=RouterLinkImpl;function guardEvent(u){if(!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)&&!u.defaultPrevented&&!(u.button!==void 0&&u.button!==0)){if(u.currentTarget&&u.currentTarget.getAttribute){const d=u.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(d))return}return u.preventDefault&&u.preventDefault(),!0}}function includesParams$1(u,d){for(const g in d){const f=d[g],b=u[g];if(typeof f=="string"){if(f!==b)return!1}else if(!isArray$1(b)||b.length!==f.length||f.some((m,y)=>m!==b[y]))return!1}return!0}function getOriginalPath$1(u){return u?u.aliasOf?u.aliasOf.path:u.path:""}const getLinkClass=(u,d,g)=>u!=null?u:d!=null?d:g,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(u,{attrs:d,slots:g}){const f=inject(routerViewLocationKey),b=computed(()=>u.route||f.value),m=inject(viewDepthKey,0),y=computed(()=>{let q=unref(m);const{matched:w}=b.value;let $;for(;($=w[q])&&!$.components;)q++;return q}),k=computed(()=>b.value.matched[y.value]);provide(viewDepthKey,computed(()=>y.value+1)),provide(matchedRouteKey,k),provide(routerViewLocationKey,b);const a=ref();return watch(()=>[a.value,k.value,u.name],([q,w,$],[Q,C,v])=>{w&&(w.instances[$]=q,C&&C!==w&&q&&q===Q&&(w.leaveGuards.size||(w.leaveGuards=C.leaveGuards),w.updateGuards.size||(w.updateGuards=C.updateGuards))),q&&w&&(!C||!isSameRouteRecord$1(w,C)||!Q)&&(w.enterCallbacks[$]||[]).forEach(J=>J(q))},{flush:"post"}),()=>{const q=b.value,w=u.name,$=k.value,Q=$&&$.components[w];if(!Q)return normalizeSlot(g.default,{Component:Q,route:q});const C=$.props[w],v=C?C===!0?q.params:typeof C=="function"?C(q):C:null,ae=h(Q,assign({},v,d,{onVnodeUnmounted:H=>{H.component.isUnmounted&&($.instances[w]=null)},ref:a}));return normalizeSlot(g.default,{Component:ae,route:q})||ae}}});function normalizeSlot(u,d){if(!u)return null;const g=u(d);return g.length===1?g[0]:g}const RouterView=RouterViewImpl;function createRouter$1(u){const d=createRouterMatcher(u.routes,u),g=u.parseQuery||parseQuery,f=u.stringifyQuery||stringifyQuery,b=u.history,m=useCallbacks(),y=useCallbacks(),k=useCallbacks(),a=shallowRef(START_LOCATION_NORMALIZED);let q=START_LOCATION_NORMALIZED;isBrowser&&u.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const w=applyToParams.bind(null,Z=>""+Z),$=applyToParams.bind(null,encodeParam),Q=applyToParams.bind(null,decode$1);function C(Z,se){let ie,de;return isRouteName(Z)?(ie=d.getRecordMatcher(Z),de=se):de=Z,d.addRoute(de,ie)}function v(Z){const se=d.getRecordMatcher(Z);se&&d.removeRoute(se)}function J(){return d.getRoutes().map(Z=>Z.record)}function ae(Z){return!!d.getRecordMatcher(Z)}function H(Z,se){if(se=assign({},se||a.value),typeof Z=="string"){const ne=parseURL(g,Z,se.path),ue=d.resolve({path:ne.path},se),le=b.createHref(ne.fullPath);return assign(ne,ue,{params:Q(ue.params),hash:decode$1(ne.hash),redirectedFrom:void 0,href:le})}let ie;if(Z.path!=null)ie=assign({},Z,{path:parseURL(g,Z.path,se.path).path});else{const ne=assign({},Z.params);for(const ue in ne)ne[ue]==null&&delete ne[ue];ie=assign({},Z,{params:$(ne)}),se.params=$(se.params)}const de=d.resolve(ie,se),ce=Z.hash||"";de.params=w(Q(de.params));const he=stringifyURL(f,assign({},Z,{hash:encodeHash(ce),path:de.path})),oe=b.createHref(he);return assign({fullPath:he,hash:ce,query:f===stringifyQuery?normalizeQuery(Z.query):Z.query||{}},de,{redirectedFrom:void 0,href:oe})}function Y(Z){return typeof Z=="string"?parseURL(g,Z,a.value.path):assign({},Z)}function G(Z,se){if(q!==Z)return createRouterError(8,{from:se,to:Z})}function j(Z){return T(Z)}function L(Z){return j(assign(Y(Z),{replace:!0}))}function R(Z){const se=Z.matched[Z.matched.length-1];if(se&&se.redirect){const{redirect:ie}=se;let de=typeof ie=="function"?ie(Z):ie;return typeof de=="string"&&(de=de.includes("?")||de.includes("#")?de=Y(de):{path:de},de.params={}),assign({query:Z.query,hash:Z.hash,params:de.path!=null?{}:Z.params},de)}}function T(Z,se){const ie=q=H(Z),de=a.value,ce=Z.state,he=Z.force,oe=Z.replace===!0,ne=R(ie);if(ne)return T(assign(Y(ne),{state:typeof ne=="object"?assign({},ce,ne.state):ce,force:he,replace:oe}),se||ie);const ue=ie;ue.redirectedFrom=se;let le;return!he&&isSameRouteLocation(f,de,ie)&&(le=createRouterError(16,{to:ue,from:de}),te(de,de,!0,!1)),(le?Promise.resolve(le):B(ue,de)).catch(fe=>isNavigationFailure(fe)?isNavigationFailure(fe,2)?fe:z(fe):N(fe,ue,de)).then(fe=>{if(fe){if(isNavigationFailure(fe,2))return T(assign({replace:oe},Y(fe.to),{state:typeof fe.to=="object"?assign({},ce,fe.to.state):ce,force:he}),se||ue)}else fe=F(ue,de,!0,oe,ce);return M(ue,de,fe),fe})}function O(Z,se){const ie=G(Z,se);return ie?Promise.reject(ie):Promise.resolve()}function P(Z){const se=ee.values().next().value;return se&&typeof se.runWithContext=="function"?se.runWithContext(Z):Z()}function B(Z,se){let ie;const[de,ce,he]=extractChangingRecords(Z,se);ie=extractComponentsGuards(de.reverse(),"beforeRouteLeave",Z,se);for(const ne of de)ne.leaveGuards.forEach(ue=>{ie.push(guardToPromiseFn(ue,Z,se))});const oe=O.bind(null,Z,se);return ie.push(oe),K(ie).then(()=>{ie=[];for(const ne of m.list())ie.push(guardToPromiseFn(ne,Z,se));return ie.push(oe),K(ie)}).then(()=>{ie=extractComponentsGuards(ce,"beforeRouteUpdate",Z,se);for(const ne of ce)ne.updateGuards.forEach(ue=>{ie.push(guardToPromiseFn(ue,Z,se))});return ie.push(oe),K(ie)}).then(()=>{ie=[];for(const ne of he)if(ne.beforeEnter)if(isArray$1(ne.beforeEnter))for(const ue of ne.beforeEnter)ie.push(guardToPromiseFn(ue,Z,se));else ie.push(guardToPromiseFn(ne.beforeEnter,Z,se));return ie.push(oe),K(ie)}).then(()=>(Z.matched.forEach(ne=>ne.enterCallbacks={}),ie=extractComponentsGuards(he,"beforeRouteEnter",Z,se,P),ie.push(oe),K(ie))).then(()=>{ie=[];for(const ne of y.list())ie.push(guardToPromiseFn(ne,Z,se));return ie.push(oe),K(ie)}).catch(ne=>isNavigationFailure(ne,8)?ne:Promise.reject(ne))}function M(Z,se,ie){k.list().forEach(de=>P(()=>de(Z,se,ie)))}function F(Z,se,ie,de,ce){const he=G(Z,se);if(he)return he;const oe=se===START_LOCATION_NORMALIZED,ne=isBrowser?history.state:{};ie&&(de||oe?b.replace(Z.fullPath,assign({scroll:oe&&ne&&ne.scroll},ce)):b.push(Z.fullPath,ce)),a.value=Z,te(Z,se,ie,oe),z()}let S;function A(){S||(S=b.listen((Z,se,ie)=>{if(!X.listening)return;const de=H(Z),ce=R(de);if(ce){T(assign(ce,{replace:!0,force:!0}),de).catch(noop$1);return}q=de;const he=a.value;isBrowser&&saveScrollPosition(getScrollKey(he.fullPath,ie.delta),computeScrollPosition()),B(de,he).catch(oe=>isNavigationFailure(oe,12)?oe:isNavigationFailure(oe,2)?(T(assign(Y(oe.to),{force:!0}),de).then(ne=>{isNavigationFailure(ne,20)&&!ie.delta&&ie.type===NavigationType.pop&&b.go(-1,!1)}).catch(noop$1),Promise.reject()):(ie.delta&&b.go(-ie.delta,!1),N(oe,de,he))).then(oe=>{oe=oe||F(de,he,!1),oe&&(ie.delta&&!isNavigationFailure(oe,8)?b.go(-ie.delta,!1):ie.type===NavigationType.pop&&isNavigationFailure(oe,20)&&b.go(-1,!1)),M(de,he,oe)}).catch(noop$1)}))}let E=useCallbacks(),_=useCallbacks(),D;function N(Z,se,ie){z(Z);const de=_.list();return de.length?de.forEach(ce=>ce(Z,se,ie)):console.error(Z),Promise.reject(Z)}function U(){return D&&a.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Z,se)=>{E.add([Z,se])})}function z(Z){return D||(D=!Z,A(),E.list().forEach(([se,ie])=>Z?ie(Z):se()),E.reset()),Z}function te(Z,se,ie,de){const{scrollBehavior:ce}=u;if(!isBrowser||!ce)return Promise.resolve();const he=!ie&&getSavedScrollPosition(getScrollKey(Z.fullPath,0))||(de||!ie)&&history.state&&history.state.scroll||null;return nextTick().then(()=>ce(Z,se,he)).then(oe=>oe&&scrollToPosition(oe)).catch(oe=>N(oe,Z,se))}const W=Z=>b.go(Z);let re;const ee=new Set,X={currentRoute:a,listening:!0,addRoute:C,removeRoute:v,clearRoutes:d.clearRoutes,hasRoute:ae,getRoutes:J,resolve:H,options:u,push:j,replace:L,go:W,back:()=>W(-1),forward:()=>W(1),beforeEach:m.add,beforeResolve:y.add,afterEach:k.add,onError:_.add,isReady:U,install(Z){const se=this;Z.component("RouterLink",RouterLink),Z.component("RouterView",RouterView),Z.config.globalProperties.$router=se,Object.defineProperty(Z.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(a)}),isBrowser&&!re&&a.value===START_LOCATION_NORMALIZED&&(re=!0,j(b.location).catch(ce=>{}));const ie={};for(const ce in START_LOCATION_NORMALIZED)Object.defineProperty(ie,ce,{get:()=>a.value[ce],enumerable:!0});Z.provide(routerKey,se),Z.provide(routeLocationKey,shallowReactive(ie)),Z.provide(routerViewLocationKey,a);const de=Z.unmount;ee.add(Z),Z.unmount=function(){ee.delete(Z),ee.size<1&&(q=START_LOCATION_NORMALIZED,S&&S(),S=null,a.value=START_LOCATION_NORMALIZED,re=!1,D=!1),de()}}};function K(Z){return Z.reduce((se,ie)=>se.then(()=>P(ie)),Promise.resolve())}return X}function extractChangingRecords(u,d){const g=[],f=[],b=[],m=Math.max(d.matched.length,u.matched.length);for(let y=0;y<m;y++){const k=d.matched[y];k&&(u.matched.find(q=>isSameRouteRecord$1(q,k))?f.push(k):g.push(k));const a=u.matched[y];a&&(d.matched.find(q=>isSameRouteRecord$1(q,a))||b.push(a))}return[g,f,b]}function hSlot(u,d){return u!==void 0&&u()||d}function hUniqueSlot(u,d){if(u!==void 0){const g=u();if(g!=null)return g.slice()}return d}function hMergeSlot(u,d){return u!==void 0?d.concat(u()):d}function hMergeSlotSafely(u,d){return u===void 0?d:d!==void 0?d.concat(u()):u()}function hDir(u,d,g,f,b,m){d.key=f+b;const y=h(u,d,g);return b===!0?withDirectives(y,m()):y}var QToolbar=createComponent({name:"QToolbar",props:{inset:Boolean},setup(u,{slots:d}){const g=computed(()=>"q-toolbar row no-wrap items-center"+(u.inset===!0?" q-toolbar--inset":""));return()=>h("div",{class:g.value,role:"toolbar"},hSlot(d.default))}});function useHydration(){const u=ref(!isRuntimeSsrPreHydration.value);return u.value===!1&&onMounted(()=>{u.value=!0}),{isHydrated:u}}const hasObserver=typeof ResizeObserver!="undefined",resizeProps=hasObserver===!0?{}:{style:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1;",url:"about:blank"};var QResizeObserver=createComponent({name:"QResizeObserver",props:{debounce:{type:[String,Number],default:100}},emits:["resize"],setup(u,{emit:d}){let g=null,f,b={width:-1,height:-1};function m(a){a===!0||u.debounce===0||u.debounce==="0"?y():g===null&&(g=setTimeout(y,u.debounce))}function y(){if(g!==null&&(clearTimeout(g),g=null),f){const{offsetWidth:a,offsetHeight:q}=f;(a!==b.width||q!==b.height)&&(b={width:a,height:q},d("resize",b))}}const{proxy:k}=getCurrentInstance();if(k.trigger=m,hasObserver===!0){let a;const q=w=>{f=k.$el.parentNode,f?(a=new ResizeObserver(m),a.observe(f),y()):w!==!0&&nextTick(()=>{q(!0)})};return onMounted(()=>{q()}),onBeforeUnmount(()=>{g!==null&&clearTimeout(g),a!==void 0&&(a.disconnect!==void 0?a.disconnect():f&&a.unobserve(f))}),noop$3}else{let w=function(){g!==null&&(clearTimeout(g),g=null),q!==void 0&&(q.removeEventListener!==void 0&&q.removeEventListener("resize",m,listenOpts.passive),q=void 0)},$=function(){w(),f&&f.contentDocument&&(q=f.contentDocument.defaultView,q.addEventListener("resize",m,listenOpts.passive),y())};const{isHydrated:a}=useHydration();let q;return onMounted(()=>{nextTick(()=>{f=k.$el,f&&$()})}),onBeforeUnmount(w),()=>{if(a.value===!0)return h("object",{class:"q--avoid-card-border",style:resizeProps.style,tabindex:-1,type:"text/html",data:resizeProps.url,"aria-hidden":"true",onLoad:$})}}}}),QHeader=createComponent({name:"QHeader",props:{modelValue:{type:Boolean,default:!0},reveal:Boolean,revealOffset:{type:Number,default:250},bordered:Boolean,elevated:Boolean,heightHint:{type:[String,Number],default:50}},emits:["reveal","focusin"],setup(u,{slots:d,emit:g}){const{proxy:{$q:f}}=getCurrentInstance(),b=inject(layoutKey,emptyRenderFn);if(b===emptyRenderFn)return console.error("QHeader needs to be child of QLayout"),emptyRenderFn;const m=ref(parseInt(u.heightHint,10)),y=ref(!0),k=computed(()=>u.reveal===!0||b.view.value.indexOf("H")!==-1||f.platform.is.ios&&b.isContainer.value===!0),a=computed(()=>{if(u.modelValue!==!0)return 0;if(k.value===!0)return y.value===!0?m.value:0;const Y=m.value-b.scroll.value.position;return Y>0?Y:0}),q=computed(()=>u.modelValue!==!0||k.value===!0&&y.value!==!0),w=computed(()=>u.modelValue===!0&&q.value===!0&&u.reveal===!0),$=computed(()=>"q-header q-layout__section--marginal "+(k.value===!0?"fixed":"absolute")+"-top"+(u.bordered===!0?" q-header--bordered":"")+(q.value===!0?" q-header--hidden":"")+(u.modelValue!==!0?" q-layout--prevent-focus":"")),Q=computed(()=>{const Y=b.rows.value.top,G={};return Y[0]==="l"&&b.left.space===!0&&(G[f.lang.rtl===!0?"right":"left"]=`${b.left.size}px`),Y[2]==="r"&&b.right.space===!0&&(G[f.lang.rtl===!0?"left":"right"]=`${b.right.size}px`),G});function C(Y,G){b.update("header",Y,G)}function v(Y,G){Y.value!==G&&(Y.value=G)}function J({height:Y}){v(m,Y),C("size",Y)}function ae(Y){w.value===!0&&v(y,!0),g("focusin",Y)}watch(()=>u.modelValue,Y=>{C("space",Y),v(y,!0),b.animate()}),watch(a,Y=>{C("offset",Y)}),watch(()=>u.reveal,Y=>{Y===!1&&v(y,u.modelValue)}),watch(y,Y=>{b.animate(),g("reveal",Y)}),watch(b.scroll,Y=>{u.reveal===!0&&v(y,Y.direction==="up"||Y.position<=u.revealOffset||Y.position-Y.inflectionPoint<100)});const H={};return b.instances.header=H,u.modelValue===!0&&C("size",m.value),C("space",u.modelValue),C("offset",a.value),onBeforeUnmount(()=>{b.instances.header===H&&(b.instances.header=void 0,C("size",0),C("offset",0),C("space",!1))}),()=>{const Y=hUniqueSlot(d.default,[]);return u.elevated===!0&&Y.push(h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),Y.push(h(QResizeObserver,{debounce:0,onResize:J})),h("header",{class:$.value,style:Q.value,onFocusin:ae},Y)}}});function useHistory(u,d,g){let f;function b(){f!==void 0&&(History.remove(f),f=void 0)}return onBeforeUnmount(()=>{u.value===!0&&b()}),{removeFromHistory:b,addToHistory(){f={condition:()=>g.value===!0,handler:d},History.add(f)}}}function getParentProxy(u){if(Object(u.$parent)===u.$parent)return u.$parent;let{parent:d}=u.$;for(;Object(d)===d;){if(Object(d.proxy)===d.proxy)return d.proxy;d=d.parent}}function fillNormalizedVNodes(u,d){typeof d.type=="symbol"?Array.isArray(d.children)===!0&&d.children.forEach(g=>{fillNormalizedVNodes(u,g)}):u.add(d)}function getNormalizedVNodes(u){const d=new Set;return u.forEach(g=>{fillNormalizedVNodes(d,g)}),Array.from(d)}function vmHasRouter(u){return u.appContext.config.globalProperties.$router!==void 0}function vmIsDestroyed(u){return u.isUnmounted===!0||u.isDeactivated===!0}const useModelToggleProps={modelValue:{type:Boolean,default:null},"onUpdate:modelValue":[Function,Array]},useModelToggleEmits=["beforeShow","show","beforeHide","hide"];function useModelToggle({showing:u,canShow:d,hideOnRouteChange:g,handleShow:f,handleHide:b,processOnMount:m}){const y=getCurrentInstance(),{props:k,emit:a,proxy:q}=y;let w;function $(Y){u.value===!0?v(Y):Q(Y)}function Q(Y){if(k.disable===!0||Y!==void 0&&Y.qAnchorHandled===!0||d!==void 0&&d(Y)!==!0)return;const G=k["onUpdate:modelValue"]!==void 0;G===!0&&(a("update:modelValue",!0),w=Y,nextTick(()=>{w===Y&&(w=void 0)})),(k.modelValue===null||G===!1)&&C(Y)}function C(Y){u.value!==!0&&(u.value=!0,a("beforeShow",Y),f!==void 0?f(Y):a("show",Y))}function v(Y){if(k.disable===!0)return;const G=k["onUpdate:modelValue"]!==void 0;G===!0&&(a("update:modelValue",!1),w=Y,nextTick(()=>{w===Y&&(w=void 0)})),(k.modelValue===null||G===!1)&&J(Y)}function J(Y){u.value!==!1&&(u.value=!1,a("beforeHide",Y),b!==void 0?b(Y):a("hide",Y))}function ae(Y){k.disable===!0&&Y===!0?k["onUpdate:modelValue"]!==void 0&&a("update:modelValue",!1):Y===!0!==u.value&&(Y===!0?C:J)(w)}watch(()=>k.modelValue,ae),g!==void 0&&vmHasRouter(y)===!0&&watch(()=>q.$route.fullPath,()=>{g.value===!0&&u.value===!0&&v()}),m===!0&&onMounted(()=>{ae(k.modelValue)});const H={show:Q,hide:v,toggle:$};return Object.assign(q,H),H}function height(u){return u===window?window.innerHeight:u.getBoundingClientRect().height}function css(u,d){const g=u.style;for(const f in d)g[f]=d[f]}function getElement(u){if(u==null)return;if(typeof u=="string")try{return document.querySelector(u)||void 0}catch{return}const d=unref(u);if(d)return d.$el||d}function childHasFocus(u,d){if(u==null||u.contains(d)===!0)return!0;for(let g=u.nextElementSibling;g!==null;g=g.nextElementSibling)if(g.contains(d))return!0;return!1}const scrollTargetProp=[Element,String],scrollTargets=[null,document,document.body,document.scrollingElement,document.documentElement];function getScrollTarget(u,d){let g=getElement(d);if(g===void 0){if(u==null)return window;g=u.closest(".scroll,.scroll-y,.overflow-auto")}return scrollTargets.includes(g)?window:g}function getScrollHeight(u){return(u===window?document.body:u).scrollHeight}function getVerticalScrollPosition(u){return u===window?window.pageYOffset||window.scrollY||document.body.scrollTop||0:u.scrollTop}function getHorizontalScrollPosition(u){return u===window?window.pageXOffset||window.scrollX||document.body.scrollLeft||0:u.scrollLeft}function animVerticalScrollTo(u,d,g=0){const f=arguments[3]===void 0?performance.now():arguments[3],b=getVerticalScrollPosition(u);if(g<=0){b!==d&&setScroll$1(u,d);return}requestAnimationFrame(m=>{const y=m-f,k=b+(d-b)/Math.max(y,g)*y;setScroll$1(u,k),k!==d&&animVerticalScrollTo(u,d,g-y,m)})}function setScroll$1(u,d){if(u===window){window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d);return}u.scrollTop=d}function setVerticalScrollPosition(u,d,g){if(g){animVerticalScrollTo(u,d,g);return}setScroll$1(u,d)}let size;function getScrollbarWidth(){if(size!==void 0)return size;const u=document.createElement("p"),d=document.createElement("div");css(u,{width:"100%",height:"200px"}),css(d,{position:"absolute",top:"0px",left:"0px",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),d.appendChild(u),document.body.appendChild(d);const g=u.offsetWidth;d.style.overflow="scroll";let f=u.offsetWidth;return g===f&&(f=d.clientWidth),d.remove(),size=g-f,size}function hasScrollbar(u,d=!0){return!u||u.nodeType!==Node.ELEMENT_NODE?!1:d?u.scrollHeight>u.clientHeight&&(u.classList.contains("scroll")||u.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(u)["overflow-y"])):u.scrollWidth>u.clientWidth&&(u.classList.contains("scroll")||u.classList.contains("overflow-auto")||["auto","scroll"].includes(window.getComputedStyle(u)["overflow-x"]))}let registered=0,scrollPositionX,scrollPositionY,maxScrollTop,vpPendingUpdate=!1,bodyLeft,bodyTop,href,closeTimer=null;function onWheel(u){shouldPreventScroll(u)&&stopAndPrevent(u)}function shouldPreventScroll(u){if(u.target===document.body||u.target.classList.contains("q-layout__backdrop"))return!0;const d=getEventPath(u),g=u.shiftKey&&!u.deltaX,f=!g&&Math.abs(u.deltaX)<=Math.abs(u.deltaY),b=g||f?u.deltaY:u.deltaX;for(let m=0;m<d.length;m++){const y=d[m];if(hasScrollbar(y,f))return f?b<0&&y.scrollTop===0?!0:b>0&&y.scrollTop+y.clientHeight===y.scrollHeight:b<0&&y.scrollLeft===0?!0:b>0&&y.scrollLeft+y.clientWidth===y.scrollWidth}return!0}function onAppleScroll(u){u.target===document&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollTop)}function onAppleResize(u){vpPendingUpdate!==!0&&(vpPendingUpdate=!0,requestAnimationFrame(()=>{vpPendingUpdate=!1;const{height:d}=u.target,{clientHeight:g,scrollTop:f}=document.scrollingElement;(maxScrollTop===void 0||d!==window.innerHeight)&&(maxScrollTop=g-d,document.scrollingElement.scrollTop=f),f>maxScrollTop&&(document.scrollingElement.scrollTop-=Math.ceil((f-maxScrollTop)/8))}))}function apply(u){const d=document.body,g=window.visualViewport!==void 0;if(u==="add"){const{overflowY:f,overflowX:b}=window.getComputedStyle(d);scrollPositionX=getHorizontalScrollPosition(window),scrollPositionY=getVerticalScrollPosition(window),bodyLeft=d.style.left,bodyTop=d.style.top,href=window.location.href,d.style.left=`-${scrollPositionX}px`,d.style.top=`-${scrollPositionY}px`,b!=="hidden"&&(b==="scroll"||d.scrollWidth>window.innerWidth)&&d.classList.add("q-body--force-scrollbar-x"),f!=="hidden"&&(f==="scroll"||d.scrollHeight>window.innerHeight)&&d.classList.add("q-body--force-scrollbar-y"),d.classList.add("q-body--prevent-scroll"),document.qScrollPrevented=!0,client.is.ios===!0&&(g===!0?(window.scrollTo(0,0),window.visualViewport.addEventListener("resize",onAppleResize,listenOpts.passiveCapture),window.visualViewport.addEventListener("scroll",onAppleResize,listenOpts.passiveCapture),window.scrollTo(0,0)):window.addEventListener("scroll",onAppleScroll,listenOpts.passiveCapture))}client.is.desktop===!0&&client.is.mac===!0&&window[`${u}EventListener`]("wheel",onWheel,listenOpts.notPassive),u==="remove"&&(client.is.ios===!0&&(g===!0?(window.visualViewport.removeEventListener("resize",onAppleResize,listenOpts.passiveCapture),window.visualViewport.removeEventListener("scroll",onAppleResize,listenOpts.passiveCapture)):window.removeEventListener("scroll",onAppleScroll,listenOpts.passiveCapture)),d.classList.remove("q-body--prevent-scroll"),d.classList.remove("q-body--force-scrollbar-x"),d.classList.remove("q-body--force-scrollbar-y"),document.qScrollPrevented=!1,d.style.left=bodyLeft,d.style.top=bodyTop,window.location.href===href&&window.scrollTo(scrollPositionX,scrollPositionY),maxScrollTop=void 0)}function preventScroll(u){let d="add";if(u===!0){if(registered++,closeTimer!==null){clearTimeout(closeTimer),closeTimer=null;return}if(registered>1)return}else{if(registered===0||(registered--,registered>0))return;if(d="remove",client.is.ios===!0&&client.is.nativeMobile===!0){closeTimer!==null&&clearTimeout(closeTimer),closeTimer=setTimeout(()=>{apply(d),closeTimer=null},100);return}}apply(d)}function usePreventScroll(){let u;return{preventBodyScroll(d){d!==u&&(u!==void 0||d===!0)&&(u=d,preventScroll(d))}}}function useTimeout(){let u=null;const d=getCurrentInstance();function g(){u!==null&&(clearTimeout(u),u=null)}return onDeactivated(g),onBeforeUnmount(g),{removeTimeout:g,registerTimeout(f,b){g(),vmIsDestroyed(d)===!1&&(u=setTimeout(()=>{u=null,f()},b))}}}const useDarkProps={dark:{type:Boolean,default:null}};function useDark(u,d){return computed(()=>u.dark===null?d.dark.isActive:u.dark)}const modifiersAll={left:!0,right:!0,up:!0,down:!0,horizontal:!0,vertical:!0},directionList=Object.keys(modifiersAll);modifiersAll.all=!0;function getModifierDirections(u){const d={};for(const g of directionList)u[g]===!0&&(d[g]=!0);return Object.keys(d).length===0?modifiersAll:(d.horizontal===!0?d.left=d.right=!0:d.left===!0&&d.right===!0&&(d.horizontal=!0),d.vertical===!0?d.up=d.down=!0:d.up===!0&&d.down===!0&&(d.vertical=!0),d.horizontal===!0&&d.vertical===!0&&(d.all=!0),d)}const avoidNodeNamesList=["INPUT","TEXTAREA"];function shouldStart(u,d){return d.event===void 0&&u.target!==void 0&&u.target.draggable!==!0&&typeof d.handler=="function"&&avoidNodeNamesList.includes(u.target.nodeName.toUpperCase())===!1&&(u.qClonedBy===void 0||u.qClonedBy.indexOf(d.uid)===-1)}function clearSelection(){if(window.getSelection!==void 0){const u=window.getSelection();u.empty!==void 0?u.empty():u.removeAllRanges!==void 0&&(u.removeAllRanges(),Platform.is.mobile!==!0&&u.addRange(document.createRange()))}else document.selection!==void 0&&document.selection.empty()}function getChanges(u,d,g){const f=position(u);let b,m=f.left-d.event.x,y=f.top-d.event.y,k=Math.abs(m),a=Math.abs(y);const q=d.direction;q.horizontal===!0&&q.vertical!==!0?b=m<0?"left":"right":q.horizontal!==!0&&q.vertical===!0?b=y<0?"up":"down":q.up===!0&&y<0?(b="up",k>a&&(q.left===!0&&m<0?b="left":q.right===!0&&m>0&&(b="right"))):q.down===!0&&y>0?(b="down",k>a&&(q.left===!0&&m<0?b="left":q.right===!0&&m>0&&(b="right"))):q.left===!0&&m<0?(b="left",k<a&&(q.up===!0&&y<0?b="up":q.down===!0&&y>0&&(b="down"))):q.right===!0&&m>0&&(b="right",k<a&&(q.up===!0&&y<0?b="up":q.down===!0&&y>0&&(b="down")));let w=!1;if(b===void 0&&g===!1){if(d.event.isFirst===!0||d.event.lastDir===void 0)return{};b=d.event.lastDir,w=!0,b==="left"||b==="right"?(f.left-=m,k=0,m=0):(f.top-=y,a=0,y=0)}return{synthetic:w,payload:{evt:u,touch:d.event.mouse!==!0,mouse:d.event.mouse===!0,position:f,direction:b,isFirst:d.event.isFirst,isFinal:g===!0,duration:Date.now()-d.event.time,distance:{x:k,y:a},offset:{x:m,y},delta:{x:f.left-d.event.lastX,y:f.top-d.event.lastY}}}}let uid$2=0;var TouchPan=createDirective({name:"touch-pan",beforeMount(u,{value:d,modifiers:g}){if(g.mouse!==!0&&client.has.touch!==!0)return;function f(m,y){g.mouse===!0&&y===!0?stopAndPrevent(m):(g.stop===!0&&stop(m),g.prevent===!0&&prevent(m))}const b={uid:"qvtp_"+uid$2++,handler:d,modifiers:g,direction:getModifierDirections(g),noop:noop$3,mouseStart(m){shouldStart(m,b)&&leftClick(m)&&(addEvt(b,"temp",[[document,"mousemove","move","notPassiveCapture"],[document,"mouseup","end","passiveCapture"]]),b.start(m,!0))},touchStart(m){if(shouldStart(m,b)){const y=m.target;addEvt(b,"temp",[[y,"touchmove","move","notPassiveCapture"],[y,"touchcancel","end","passiveCapture"],[y,"touchend","end","passiveCapture"]]),b.start(m)}},start(m,y){if(client.is.firefox===!0&&preventDraggable(u,!0),b.lastEvt=m,y===!0||g.stop===!0){if(b.direction.all!==!0&&(y!==!0||b.modifiers.mouseAllDir!==!0&&b.modifiers.mousealldir!==!0)){const q=m.type.indexOf("mouse")!==-1?new MouseEvent(m.type,m):new TouchEvent(m.type,m);m.defaultPrevented===!0&&prevent(q),m.cancelBubble===!0&&stop(q),Object.assign(q,{qKeyEvent:m.qKeyEvent,qClickOutside:m.qClickOutside,qAnchorHandled:m.qAnchorHandled,qClonedBy:m.qClonedBy===void 0?[b.uid]:m.qClonedBy.concat(b.uid)}),b.initialEvent={target:m.target,event:q}}stop(m)}const{left:k,top:a}=position(m);b.event={x:k,y:a,time:Date.now(),mouse:y===!0,detected:!1,isFirst:!0,isFinal:!1,lastX:k,lastY:a}},move(m){if(b.event===void 0)return;const y=position(m),k=y.left-b.event.x,a=y.top-b.event.y;if(k===0&&a===0)return;b.lastEvt=m;const q=b.event.mouse===!0,w=()=>{f(m,q);let C;g.preserveCursor!==!0&&g.preservecursor!==!0&&(C=document.documentElement.style.cursor||"",document.documentElement.style.cursor="grabbing"),q===!0&&document.body.classList.add("no-pointer-events--children"),document.body.classList.add("non-selectable"),clearSelection(),b.styleCleanup=v=>{if(b.styleCleanup=void 0,C!==void 0&&(document.documentElement.style.cursor=C),document.body.classList.remove("non-selectable"),q===!0){const J=()=>{document.body.classList.remove("no-pointer-events--children")};v!==void 0?setTimeout(()=>{J(),v()},50):J()}else v!==void 0&&v()}};if(b.event.detected===!0){b.event.isFirst!==!0&&f(m,b.event.mouse);const{payload:C,synthetic:v}=getChanges(m,b,!1);C!==void 0&&(b.handler(C)===!1?b.end(m):(b.styleCleanup===void 0&&b.event.isFirst===!0&&w(),b.event.lastX=C.position.left,b.event.lastY=C.position.top,b.event.lastDir=v===!0?void 0:C.direction,b.event.isFirst=!1));return}if(b.direction.all===!0||q===!0&&(b.modifiers.mouseAllDir===!0||b.modifiers.mousealldir===!0)){w(),b.event.detected=!0,b.move(m);return}const $=Math.abs(k),Q=Math.abs(a);$!==Q&&(b.direction.horizontal===!0&&$>Q||b.direction.vertical===!0&&$<Q||b.direction.up===!0&&$<Q&&a<0||b.direction.down===!0&&$<Q&&a>0||b.direction.left===!0&&$>Q&&k<0||b.direction.right===!0&&$>Q&&k>0?(b.event.detected=!0,b.move(m)):b.end(m,!0))},end(m,y){if(b.event!==void 0){if(cleanEvt(b,"temp"),client.is.firefox===!0&&preventDraggable(u,!1),y===!0)b.styleCleanup!==void 0&&b.styleCleanup(),b.event.detected!==!0&&b.initialEvent!==void 0&&b.initialEvent.target.dispatchEvent(b.initialEvent.event);else if(b.event.detected===!0){b.event.isFirst===!0&&b.handler(getChanges(m===void 0?b.lastEvt:m,b).payload);const{payload:k}=getChanges(m===void 0?b.lastEvt:m,b,!0),a=()=>{b.handler(k)};b.styleCleanup!==void 0?b.styleCleanup(a):a()}b.event=void 0,b.initialEvent=void 0,b.lastEvt=void 0}}};if(u.__qtouchpan=b,g.mouse===!0){const m=g.mouseCapture===!0||g.mousecapture===!0?"Capture":"";addEvt(b,"main",[[u,"mousedown","mouseStart",`passive${m}`]])}client.has.touch===!0&&addEvt(b,"main",[[u,"touchstart","touchStart",`passive${g.capture===!0?"Capture":""}`],[u,"touchmove","noop","notPassiveCapture"]])},updated(u,d){const g=u.__qtouchpan;g!==void 0&&(d.oldValue!==d.value&&(typeof value!="function"&&g.end(),g.handler=d.value),g.direction=getModifierDirections(d.modifiers))},beforeUnmount(u){const d=u.__qtouchpan;d!==void 0&&(d.event!==void 0&&d.end(),cleanEvt(d,"main"),cleanEvt(d,"temp"),client.is.firefox===!0&&preventDraggable(u,!1),d.styleCleanup!==void 0&&d.styleCleanup(),delete u.__qtouchpan)}});function between(u,d,g){return g<=d?d:Math.min(g,Math.max(d,u))}function normalizeToInterval(u,d,g){if(g<=d)return d;const f=g-d+1;let b=d+(u-d)%f;return b<d&&(b=f+b),b===0?0:b}const duration=150;var QDrawer=createComponent({name:"QDrawer",inheritAttrs:!1,props:{...useModelToggleProps,...useDarkProps,side:{type:String,default:"left",validator:u=>["left","right"].includes(u)},width:{type:Number,default:300},mini:Boolean,miniToOverlay:Boolean,miniWidth:{type:Number,default:57},noMiniAnimation:Boolean,breakpoint:{type:Number,default:1023},showIfAbove:Boolean,behavior:{type:String,validator:u=>["default","desktop","mobile"].includes(u),default:"default"},bordered:Boolean,elevated:Boolean,overlay:Boolean,persistent:Boolean,noSwipeOpen:Boolean,noSwipeClose:Boolean,noSwipeBackdrop:Boolean},emits:[...useModelToggleEmits,"onLayout","miniState"],setup(u,{slots:d,emit:g,attrs:f}){const b=getCurrentInstance(),{proxy:{$q:m}}=b,y=useDark(u,m),{preventBodyScroll:k}=usePreventScroll(),{registerTimeout:a,removeTimeout:q}=useTimeout(),w=inject(layoutKey,emptyRenderFn);if(w===emptyRenderFn)return console.error("QDrawer needs to be child of QLayout"),emptyRenderFn;let $,Q=null,C;const v=ref(u.behavior==="mobile"||u.behavior!=="desktop"&&w.totalWidth.value<=u.breakpoint),J=computed(()=>u.mini===!0&&v.value!==!0),ae=computed(()=>J.value===!0?u.miniWidth:u.width),H=ref(u.showIfAbove===!0&&v.value===!1?!0:u.modelValue===!0),Y=computed(()=>u.persistent!==!0&&(v.value===!0||z.value===!0));function G(me,ge){if(T(),me!==!1&&w.animate(),oe(0),v.value===!0){const ye=w.instances[_.value];ye!==void 0&&ye.belowBreakpoint===!0&&ye.hide(!1),ne(1),w.isContainer.value!==!0&&k(!0)}else ne(0),me!==!1&&ue(!1);a(()=>{me!==!1&&ue(!0),ge!==!0&&g("show",me)},duration)}function j(me,ge){O(),me!==!1&&w.animate(),ne(0),oe(M.value*ae.value),ve(),ge!==!0?a(()=>{g("hide",me)},duration):q()}const{show:L,hide:R}=useModelToggle({showing:H,hideOnRouteChange:Y,handleShow:G,handleHide:j}),{addToHistory:T,removeFromHistory:O}=useHistory(H,R,Y),P={belowBreakpoint:v,hide:R},B=computed(()=>u.side==="right"),M=computed(()=>(m.lang.rtl===!0?-1:1)*(B.value===!0?1:-1)),F=ref(0),S=ref(!1),A=ref(!1),E=ref(ae.value*M.value),_=computed(()=>B.value===!0?"left":"right"),D=computed(()=>H.value===!0&&v.value===!1&&u.overlay===!1?u.miniToOverlay===!0?u.miniWidth:ae.value:0),N=computed(()=>u.overlay===!0||u.miniToOverlay===!0||w.view.value.indexOf(B.value?"R":"L")!==-1||m.platform.is.ios===!0&&w.isContainer.value===!0),U=computed(()=>u.overlay===!1&&H.value===!0&&v.value===!1),z=computed(()=>u.overlay===!0&&H.value===!0&&v.value===!1),te=computed(()=>"fullscreen q-drawer__backdrop"+(H.value===!1&&S.value===!1?" hidden":"")),W=computed(()=>({backgroundColor:`rgba(0,0,0,${F.value*.4})`})),re=computed(()=>B.value===!0?w.rows.value.top[2]==="r":w.rows.value.top[0]==="l"),ee=computed(()=>B.value===!0?w.rows.value.bottom[2]==="r":w.rows.value.bottom[0]==="l"),X=computed(()=>{const me={};return w.header.space===!0&&re.value===!1&&(N.value===!0?me.top=`${w.header.offset}px`:w.header.space===!0&&(me.top=`${w.header.size}px`)),w.footer.space===!0&&ee.value===!1&&(N.value===!0?me.bottom=`${w.footer.offset}px`:w.footer.space===!0&&(me.bottom=`${w.footer.size}px`)),me}),K=computed(()=>{const me={width:`${ae.value}px`,transform:`translateX(${E.value}px)`};return v.value===!0?me:Object.assign(me,X.value)}),Z=computed(()=>"q-drawer__content fit "+(w.isContainer.value!==!0?"scroll":"overflow-auto")),se=computed(()=>`q-drawer q-drawer--${u.side}`+(A.value===!0?" q-drawer--mini-animate":"")+(u.bordered===!0?" q-drawer--bordered":"")+(y.value===!0?" q-drawer--dark q-dark":"")+(S.value===!0?" no-transition":H.value===!0?"":" q-layout--prevent-focus")+(v.value===!0?" fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding":` q-drawer--${J.value===!0?"mini":"standard"}`+(N.value===!0||U.value!==!0?" fixed":"")+(u.overlay===!0||u.miniToOverlay===!0?" q-drawer--on-top":"")+(re.value===!0?" q-drawer--top-padding":""))),ie=computed(()=>{const me=m.lang.rtl===!0?u.side:_.value;return[[TouchPan,fe,void 0,{[me]:!0,mouse:!0}]]}),de=computed(()=>{const me=m.lang.rtl===!0?_.value:u.side;return[[TouchPan,pe,void 0,{[me]:!0,mouse:!0}]]}),ce=computed(()=>{const me=m.lang.rtl===!0?_.value:u.side;return[[TouchPan,pe,void 0,{[me]:!0,mouse:!0,mouseAllDir:!0}]]});function he(){Ce(v,u.behavior==="mobile"||u.behavior!=="desktop"&&w.totalWidth.value<=u.breakpoint)}watch(v,me=>{me===!0?($=H.value,H.value===!0&&R(!1)):u.overlay===!1&&u.behavior!=="mobile"&&$!==!1&&(H.value===!0?(oe(0),ne(0),ve()):L(!1))}),watch(()=>u.side,(me,ge)=>{w.instances[ge]===P&&(w.instances[ge]=void 0,w[ge].space=!1,w[ge].offset=0),w.instances[me]=P,w[me].size=ae.value,w[me].space=U.value,w[me].offset=D.value}),watch(w.totalWidth,()=>{(w.isContainer.value===!0||document.qScrollPrevented!==!0)&&he()}),watch(()=>u.behavior+u.breakpoint,he),watch(w.isContainer,me=>{H.value===!0&&k(me!==!0),me===!0&&he()}),watch(w.scrollbarWidth,()=>{oe(H.value===!0?0:void 0)}),watch(D,me=>{xe("offset",me)}),watch(U,me=>{g("onLayout",me),xe("space",me)}),watch(B,()=>{oe()}),watch(ae,me=>{oe(),be(u.miniToOverlay,me)}),watch(()=>u.miniToOverlay,me=>{be(me,ae.value)}),watch(()=>m.lang.rtl,()=>{oe()}),watch(()=>u.mini,()=>{u.noMiniAnimation||u.modelValue===!0&&(le(),w.animate())}),watch(J,me=>{g("miniState",me)});function oe(me){me===void 0?nextTick(()=>{me=H.value===!0?0:ae.value,oe(M.value*me)}):(w.isContainer.value===!0&&B.value===!0&&(v.value===!0||Math.abs(me)===ae.value)&&(me+=M.value*w.scrollbarWidth.value),E.value=me)}function ne(me){F.value=me}function ue(me){const ge=me===!0?"remove":w.isContainer.value!==!0?"add":"";ge!==""&&document.body.classList[ge]("q-body--drawer-toggle")}function le(){Q!==null&&clearTimeout(Q),b.proxy&&b.proxy.$el&&b.proxy.$el.classList.add("q-drawer--mini-animate"),A.value=!0,Q=setTimeout(()=>{Q=null,A.value=!1,b&&b.proxy&&b.proxy.$el&&b.proxy.$el.classList.remove("q-drawer--mini-animate")},150)}function fe(me){if(H.value!==!1)return;const ge=ae.value,ye=between(me.distance.x,0,ge);if(me.isFinal===!0){ye>=Math.min(75,ge)===!0?L():(w.animate(),ne(0),oe(M.value*ge)),S.value=!1;return}oe((m.lang.rtl===!0?B.value!==!0:B.value)?Math.max(ge-ye,0):Math.min(0,ye-ge)),ne(between(ye/ge,0,1)),me.isFirst===!0&&(S.value=!0)}function pe(me){if(H.value!==!0)return;const ge=ae.value,ye=me.direction===u.side,Se=(m.lang.rtl===!0?ye!==!0:ye)?between(me.distance.x,0,ge):0;if(me.isFinal===!0){Math.abs(Se)<Math.min(75,ge)===!0?(w.animate(),ne(1),oe(0)):R(),S.value=!1;return}oe(M.value*Se),ne(between(1-Se/ge,0,1)),me.isFirst===!0&&(S.value=!0)}function ve(){k(!1),ue(!0)}function xe(me,ge){w.update(u.side,me,ge)}function Ce(me,ge){me.value!==ge&&(me.value=ge)}function be(me,ge){xe("size",me===!0?u.miniWidth:ge)}return w.instances[u.side]=P,be(u.miniToOverlay,ae.value),xe("space",U.value),xe("offset",D.value),u.showIfAbove===!0&&u.modelValue!==!0&&H.value===!0&&u["onUpdate:modelValue"]!==void 0&&g("update:modelValue",!0),onMounted(()=>{g("onLayout",U.value),g("miniState",J.value),$=u.showIfAbove===!0;const me=()=>{(H.value===!0?G:j)(!1,!0)};if(w.totalWidth.value!==0){nextTick(me);return}C=watch(w.totalWidth,()=>{C(),C=void 0,H.value===!1&&u.showIfAbove===!0&&v.value===!1?L(!1):me()})}),onBeforeUnmount(()=>{C!==void 0&&C(),Q!==null&&(clearTimeout(Q),Q=null),H.value===!0&&ve(),w.instances[u.side]===P&&(w.instances[u.side]=void 0,xe("size",0),xe("offset",0),xe("space",!1))}),()=>{const me=[];v.value===!0&&(u.noSwipeOpen===!1&&me.push(withDirectives(h("div",{key:"open",class:`q-drawer__opener fixed-${u.side}`,"aria-hidden":"true"}),ie.value)),me.push(hDir("div",{ref:"backdrop",class:te.value,style:W.value,"aria-hidden":"true",onClick:R},void 0,"backdrop",u.noSwipeBackdrop!==!0&&H.value===!0,()=>ce.value)));const ge=J.value===!0&&d.mini!==void 0,ye=[h("div",{...f,key:""+ge,class:[Z.value,f.class]},ge===!0?d.mini():hSlot(d.default))];return u.elevated===!0&&H.value===!0&&ye.push(h("div",{class:"q-layout__shadow absolute-full overflow-hidden no-pointer-events"})),me.push(hDir("aside",{ref:"content",class:se.value,style:K.value},ye,"contentclose",u.noSwipeClose!==!0&&v.value===!0,()=>de.value)),h("div",{class:"q-drawer-container"},me)}}}),QPageContainer=createComponent({name:"QPageContainer",setup(u,{slots:d}){const{proxy:{$q:g}}=getCurrentInstance(),f=inject(layoutKey,emptyRenderFn);if(f===emptyRenderFn)return console.error("QPageContainer needs to be child of QLayout"),emptyRenderFn;provide(pageContainerKey,!0);const b=computed(()=>{const m={};return f.header.space===!0&&(m.paddingTop=`${f.header.size}px`),f.right.space===!0&&(m[`padding${g.lang.rtl===!0?"Left":"Right"}`]=`${f.right.size}px`),f.footer.space===!0&&(m.paddingBottom=`${f.footer.size}px`),f.left.space===!0&&(m[`padding${g.lang.rtl===!0?"Right":"Left"}`]=`${f.left.size}px`),m});return()=>h("div",{class:"q-page-container",style:b.value},hSlot(d.default))}});const{passive:passive$1}=listenOpts,axisValues=["both","horizontal","vertical"];var QScrollObserver=createComponent({name:"QScrollObserver",props:{axis:{type:String,validator:u=>axisValues.includes(u),default:"vertical"},debounce:[String,Number],scrollTarget:scrollTargetProp},emits:["scroll"],setup(u,{emit:d}){const g={position:{top:0,left:0},direction:"down",directionChanged:!1,delta:{top:0,left:0},inflectionPoint:{top:0,left:0}};let f=null,b,m;watch(()=>u.scrollTarget,()=>{a(),k()});function y(){f!==null&&f();const $=Math.max(0,getVerticalScrollPosition(b)),Q=getHorizontalScrollPosition(b),C={top:$-g.position.top,left:Q-g.position.left};if(u.axis==="vertical"&&C.top===0||u.axis==="horizontal"&&C.left===0)return;const v=Math.abs(C.top)>=Math.abs(C.left)?C.top<0?"up":"down":C.left<0?"left":"right";g.position={top:$,left:Q},g.directionChanged=g.direction!==v,g.delta=C,g.directionChanged===!0&&(g.direction=v,g.inflectionPoint=g.position),d("scroll",{...g})}function k(){b=getScrollTarget(m,u.scrollTarget),b.addEventListener("scroll",q,passive$1),q(!0)}function a(){b!==void 0&&(b.removeEventListener("scroll",q,passive$1),b=void 0)}function q($){if($===!0||u.debounce===0||u.debounce==="0")y();else if(f===null){const[Q,C]=u.debounce?[setTimeout(y,u.debounce),clearTimeout]:[requestAnimationFrame(y),cancelAnimationFrame];f=()=>{C(Q),f=null}}}const{proxy:w}=getCurrentInstance();return watch(()=>w.$q.lang.rtl,y),onMounted(()=>{m=w.$el.parentNode,k()}),onBeforeUnmount(()=>{f!==null&&f(),a()}),Object.assign(w,{trigger:q,getPosition:()=>g}),noop$3}}),QLayout=createComponent({name:"QLayout",props:{container:Boolean,view:{type:String,default:"hhh lpr fff",validator:u=>/^(h|l)h(h|r) lpr (f|l)f(f|r)$/.test(u.toLowerCase())},onScroll:Function,onScrollHeight:Function,onResize:Function},setup(u,{slots:d,emit:g}){const{proxy:{$q:f}}=getCurrentInstance(),b=ref(null),m=ref(f.screen.height),y=ref(u.container===!0?0:f.screen.width),k=ref({position:0,direction:"down",inflectionPoint:0}),a=ref(0),q=ref(isRuntimeSsrPreHydration.value===!0?0:getScrollbarWidth()),w=computed(()=>"q-layout q-layout--"+(u.container===!0?"containerized":"standard")),$=computed(()=>u.container===!1?{minHeight:f.screen.height+"px"}:null),Q=computed(()=>q.value!==0?{[f.lang.rtl===!0?"left":"right"]:`${q.value}px`}:null),C=computed(()=>q.value!==0?{[f.lang.rtl===!0?"right":"left"]:0,[f.lang.rtl===!0?"left":"right"]:`-${q.value}px`,width:`calc(100% + ${q.value}px)`}:null);function v(j){if(u.container===!0||document.qScrollPrevented!==!0){const L={position:j.position.top,direction:j.direction,directionChanged:j.directionChanged,inflectionPoint:j.inflectionPoint.top,delta:j.delta.top};k.value=L,u.onScroll!==void 0&&g("scroll",L)}}function J(j){const{height:L,width:R}=j;let T=!1;m.value!==L&&(T=!0,m.value=L,u.onScrollHeight!==void 0&&g("scrollHeight",L),H()),y.value!==R&&(T=!0,y.value=R),T===!0&&u.onResize!==void 0&&g("resize",j)}function ae({height:j}){a.value!==j&&(a.value=j,H())}function H(){if(u.container===!0){const j=m.value>a.value?getScrollbarWidth():0;q.value!==j&&(q.value=j)}}let Y=null;const G={instances:{},view:computed(()=>u.view),isContainer:computed(()=>u.container),rootRef:b,height:m,containerHeight:a,scrollbarWidth:q,totalWidth:computed(()=>y.value+q.value),rows:computed(()=>{const j=u.view.toLowerCase().split(" ");return{top:j[0].split(""),middle:j[1].split(""),bottom:j[2].split("")}}),header:reactive({size:0,offset:0,space:!1}),right:reactive({size:300,offset:0,space:!1}),footer:reactive({size:0,offset:0,space:!1}),left:reactive({size:300,offset:0,space:!1}),scroll:k,animate(){Y!==null?clearTimeout(Y):document.body.classList.add("q-body--layout-animate"),Y=setTimeout(()=>{Y=null,document.body.classList.remove("q-body--layout-animate")},155)},update(j,L,R){G[j][L]=R}};if(provide(layoutKey,G),getScrollbarWidth()>0){let R=function(){j=null,L.classList.remove("hide-scrollbar")},T=function(){if(j===null){if(L.scrollHeight>f.screen.height)return;L.classList.add("hide-scrollbar")}else clearTimeout(j);j=setTimeout(R,300)},O=function(P){j!==null&&P==="remove"&&(clearTimeout(j),R()),window[`${P}EventListener`]("resize",T)},j=null;const L=document.body;watch(()=>u.container!==!0?"add":"remove",O),u.container!==!0&&O("add"),onUnmounted(()=>{O("remove")})}return()=>{const j=hMergeSlot(d.default,[h(QScrollObserver,{onScroll:v}),h(QResizeObserver,{onResize:J})]),L=h("div",{class:w.value,style:$.value,ref:u.container===!0?void 0:b,tabindex:-1},j);return u.container===!0?h("div",{class:"q-layout-container overflow-hidden",ref:b},[h(QResizeObserver,{onResize:ae}),h("div",{class:"absolute-full",style:Q.value},[h("div",{class:"scroll",style:C.value},[L])])]):L}}});const useSizeDefaults={xs:18,sm:24,md:32,lg:38,xl:46},useSizeProps={size:String};function useSize(u,d=useSizeDefaults){return computed(()=>u.size!==void 0?{fontSize:u.size in d?`${d[u.size]}px`:u.size}:null)}const defaultViewBox="0 0 24 24",sameFn=u=>u,ionFn=u=>`ionicons ${u}`,libMap={"mdi-":u=>`mdi ${u}`,"icon-":sameFn,"bt-":u=>`bt ${u}`,"eva-":u=>`eva ${u}`,"ion-md":ionFn,"ion-ios":ionFn,"ion-logo":ionFn,"iconfont ":sameFn,"ti-":u=>`themify-icon ${u}`,"bi-":u=>`bootstrap-icons ${u}`},matMap={o_:"-outlined",r_:"-round",s_:"-sharp"},symMap={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},libRE=new RegExp("^("+Object.keys(libMap).join("|")+")"),matRE=new RegExp("^("+Object.keys(matMap).join("|")+")"),symRE=new RegExp("^("+Object.keys(symMap).join("|")+")"),mRE=/^[Mm]\s?[-+]?\.?\d/,imgRE=/^img:/,svgUseRE=/^svguse:/,ionRE=/^ion-/,faRE=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /;var QIcon=createComponent({name:"QIcon",props:{...useSizeProps,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(u,{slots:d}){const{proxy:{$q:g}}=getCurrentInstance(),f=useSize(u),b=computed(()=>"q-icon"+(u.left===!0?" on-left":"")+(u.right===!0?" on-right":"")+(u.color!==void 0?` text-${u.color}`:"")),m=computed(()=>{let y,k=u.name;if(k==="none"||!k)return{none:!0};if(g.iconMapFn!==null){const w=g.iconMapFn(k);if(w!==void 0)if(w.icon!==void 0){if(k=w.icon,k==="none"||!k)return{none:!0}}else return{cls:w.cls,content:w.content!==void 0?w.content:" "}}if(mRE.test(k)===!0){const[w,$=defaultViewBox]=k.split("|");return{svg:!0,viewBox:$,nodes:w.split("&&").map(Q=>{const[C,v,J]=Q.split("@@");return h("path",{style:v,d:C,transform:J})})}}if(imgRE.test(k)===!0)return{img:!0,src:k.substring(4)};if(svgUseRE.test(k)===!0){const[w,$=defaultViewBox]=k.split("|");return{svguse:!0,src:w.substring(7),viewBox:$}}let a=" ";const q=k.match(libRE);if(q!==null)y=libMap[q[1]](k);else if(faRE.test(k)===!0)y=k;else if(ionRE.test(k)===!0)y=`ionicons ion-${g.platform.is.ios===!0?"ios":"md"}${k.substring(3)}`;else if(symRE.test(k)===!0){y="notranslate material-symbols";const w=k.match(symRE);w!==null&&(k=k.substring(6),y+=symMap[w[1]]),a=k}else{y="notranslate material-icons";const w=k.match(matRE);w!==null&&(k=k.substring(2),y+=matMap[w[1]]),a=k}return{cls:y,content:a}});return()=>{const y={class:b.value,style:f.value,"aria-hidden":"true",role:"presentation"};return m.value.none===!0?h(u.tag,y,hSlot(d.default)):m.value.img===!0?h(u.tag,y,hMergeSlot(d.default,[h("img",{src:m.value.src})])):m.value.svg===!0?h(u.tag,y,hMergeSlot(d.default,[h("svg",{viewBox:m.value.viewBox||"0 0 24 24"},m.value.nodes)])):m.value.svguse===!0?h(u.tag,y,hMergeSlot(d.default,[h("svg",{viewBox:m.value.viewBox},[h("use",{"xlink:href":m.value.src})])])):(m.value.cls!==void 0&&(y.class+=" "+m.value.cls),h(u.tag,y,hMergeSlot(d.default,[m.value.content])))}}});const useSpinnerProps={size:{type:[String,Number],default:"1em"},color:String};function useSpinner(u){return{cSize:computed(()=>u.size in useSizeDefaults?`${useSizeDefaults[u.size]}px`:u.size),classes:computed(()=>"q-spinner"+(u.color?` text-${u.color}`:""))}}var QSpinner=createComponent({name:"QSpinner",props:{...useSpinnerProps,thickness:{type:Number,default:5}},setup(u){const{cSize:d,classes:g}=useSpinner(u);return()=>h("svg",{class:g.value+" q-spinner-mat",width:d.value,height:d.value,viewBox:"25 25 50 50"},[h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":u.thickness,"stroke-miterlimit":"10"})])}});function throttle$1(u,d=250){let g=!1,f;return function(){return g===!1&&(g=!0,setTimeout(()=>{g=!1},d),f=u.apply(this,arguments)),f}}function showRipple(u,d,g,f){g.modifiers.stop===!0&&stop(u);const b=g.modifiers.color;let m=g.modifiers.center;m=m===!0||f===!0;const y=document.createElement("span"),k=document.createElement("span"),a=position(u),{left:q,top:w,width:$,height:Q}=d.getBoundingClientRect(),C=Math.sqrt($*$+Q*Q),v=C/2,J=`${($-C)/2}px`,ae=m?J:`${a.left-q-v}px`,H=`${(Q-C)/2}px`,Y=m?H:`${a.top-w-v}px`;k.className="q-ripple__inner",css(k,{height:`${C}px`,width:`${C}px`,transform:`translate3d(${ae},${Y},0) scale3d(.2,.2,1)`,opacity:0}),y.className=`q-ripple${b?" text-"+b:""}`,y.setAttribute("dir","ltr"),y.appendChild(k),d.appendChild(y);const G=()=>{y.remove(),clearTimeout(j)};g.abort.push(G);let j=setTimeout(()=>{k.classList.add("q-ripple__inner--enter"),k.style.transform=`translate3d(${J},${H},0) scale3d(1,1,1)`,k.style.opacity=.2,j=setTimeout(()=>{k.classList.remove("q-ripple__inner--enter"),k.classList.add("q-ripple__inner--leave"),k.style.opacity=0,j=setTimeout(()=>{y.remove(),g.abort.splice(g.abort.indexOf(G),1)},275)},250)},50)}function updateModifiers(u,{modifiers:d,value:g,arg:f}){const b=Object.assign({},u.cfg.ripple,d,g);u.modifiers={early:b.early===!0,stop:b.stop===!0,center:b.center===!0,color:b.color||f,keyCodes:[].concat(b.keyCodes||13)}}var Ripple=createDirective({name:"ripple",beforeMount(u,d){const g=d.instance.$.appContext.config.globalProperties.$q.config||{};if(g.ripple===!1)return;const f={cfg:g,enabled:d.value!==!1,modifiers:{},abort:[],start(b){f.enabled===!0&&b.qSkipRipple!==!0&&b.type===(f.modifiers.early===!0?"pointerdown":"click")&&showRipple(b,u,f,b.qKeyEvent===!0)},keystart:throttle$1(b=>{f.enabled===!0&&b.qSkipRipple!==!0&&isKeyCode(b,f.modifiers.keyCodes)===!0&&b.type===`key${f.modifiers.early===!0?"down":"up"}`&&showRipple(b,u,f,!0)},300)};updateModifiers(f,d),u.__qripple=f,addEvt(f,"main",[[u,"pointerdown","start","passive"],[u,"click","start","passive"],[u,"keydown","keystart","passive"],[u,"keyup","keystart","passive"]])},updated(u,d){if(d.oldValue!==d.value){const g=u.__qripple;g!==void 0&&(g.enabled=d.value!==!1,g.enabled===!0&&Object(d.value)===d.value&&updateModifiers(g,d))}},beforeUnmount(u){const d=u.__qripple;d!==void 0&&(d.abort.forEach(g=>{g()}),cleanEvt(d,"main"),delete u._qripple)}});const alignMap={left:"start",center:"center",right:"end",between:"between",around:"around",evenly:"evenly",stretch:"stretch"},alignValues=Object.keys(alignMap),useAlignProps={align:{type:String,validator:u=>alignValues.includes(u)}};function useAlign(u){return computed(()=>{const d=u.align===void 0?u.vertical===!0?"stretch":"left":u.align;return`${u.vertical===!0?"items":"justify"}-${alignMap[d]}`})}function getOriginalPath(u){return u?u.aliasOf?u.aliasOf.path:u.path:""}function isSameRouteRecord(u,d){return(u.aliasOf||u)===(d.aliasOf||d)}function includesParams(u,d){for(const g in d){const f=d[g],b=u[g];if(typeof f=="string"){if(f!==b)return!1}else if(Array.isArray(b)===!1||b.length!==f.length||f.some((m,y)=>m!==b[y]))return!1}return!0}function isEquivalentArray(u,d){return Array.isArray(d)===!0?u.length===d.length&&u.every((g,f)=>g===d[f]):u.length===1&&u[0]===d}function isSameRouteLocationParamsValue(u,d){return Array.isArray(u)===!0?isEquivalentArray(u,d):Array.isArray(d)===!0?isEquivalentArray(d,u):u===d}function isSameRouteLocationParams(u,d){if(Object.keys(u).length!==Object.keys(d).length)return!1;for(const g in u)if(isSameRouteLocationParamsValue(u[g],d[g])===!1)return!1;return!0}const useRouterLinkNonMatchingProps={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},useRouterLinkProps={...useRouterLinkNonMatchingProps,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function useRouterLink({fallbackTag:u,useDisableForRouterLinkProps:d=!0}={}){const g=getCurrentInstance(),{props:f,proxy:b,emit:m}=g,y=vmHasRouter(g),k=computed(()=>f.disable!==!0&&f.href!==void 0),a=computed(d===!0?()=>y===!0&&f.disable!==!0&&k.value!==!0&&f.to!==void 0&&f.to!==null&&f.to!=="":()=>y===!0&&k.value!==!0&&f.to!==void 0&&f.to!==null&&f.to!==""),q=computed(()=>a.value===!0?Y(f.to):null),w=computed(()=>q.value!==null),$=computed(()=>k.value===!0||w.value===!0),Q=computed(()=>f.type==="a"||$.value===!0?"a":f.tag||u||"div"),C=computed(()=>k.value===!0?{href:f.href,target:f.target}:w.value===!0?{href:q.value.href,target:f.target}:{}),v=computed(()=>{if(w.value===!1)return-1;const{matched:L}=q.value,{length:R}=L,T=L[R-1];if(T===void 0)return-1;const O=b.$route.matched;if(O.length===0)return-1;const P=O.findIndex(isSameRouteRecord.bind(null,T));if(P!==-1)return P;const B=getOriginalPath(L[R-2]);return R>1&&getOriginalPath(T)===B&&O[O.length-1].path!==B?O.findIndex(isSameRouteRecord.bind(null,L[R-2])):P}),J=computed(()=>w.value===!0&&v.value!==-1&&includesParams(b.$route.params,q.value.params)),ae=computed(()=>J.value===!0&&v.value===b.$route.matched.length-1&&isSameRouteLocationParams(b.$route.params,q.value.params)),H=computed(()=>w.value===!0?ae.value===!0?` ${f.exactActiveClass} ${f.activeClass}`:f.exact===!0?"":J.value===!0?` ${f.activeClass}`:"":"");function Y(L){try{return b.$router.resolve(L)}catch{}return null}function G(L,{returnRouterError:R,to:T=f.to,replace:O=f.replace}={}){if(f.disable===!0)return L.preventDefault(),Promise.resolve(!1);if(L.metaKey||L.altKey||L.ctrlKey||L.shiftKey||L.button!==void 0&&L.button!==0||f.target==="_blank")return Promise.resolve(!1);L.preventDefault();const P=b.$router[O===!0?"replace":"push"](T);return R===!0?P:P.then(()=>{}).catch(()=>{})}function j(L){if(w.value===!0){const R=T=>G(L,T);m("click",L,R),L.defaultPrevented!==!0&&R()}else m("click",L)}return{hasRouterLink:w,hasHrefLink:k,hasLink:$,linkTag:Q,resolvedLink:q,linkIsActive:J,linkIsExactActive:ae,linkClass:H,linkAttrs:C,getLink:Y,navigateToRouterLink:G,navigateOnClick:j}}const btnPadding={none:0,xs:4,sm:8,md:16,lg:24,xl:32},defaultSizes$2={xs:8,sm:10,md:14,lg:20,xl:24},formTypes=["button","submit","reset"],mediaTypeRE=/[^\s]\/[^\s]/,btnDesignOptions=["flat","outline","push","unelevated"];function getBtnDesign(u,d){return u.flat===!0?"flat":u.outline===!0?"outline":u.push===!0?"push":u.unelevated===!0?"unelevated":d}const nonRoundBtnProps={...useSizeProps,...useRouterLinkNonMatchingProps,type:{type:String,default:"button"},label:[Number,String],icon:String,iconRight:String,...btnDesignOptions.reduce((u,d)=>(u[d]=Boolean)&&u,{}),square:Boolean,rounded:Boolean,glossy:Boolean,size:String,fab:Boolean,fabMini:Boolean,padding:String,color:String,textColor:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,tabindex:[Number,String],ripple:{type:[Boolean,Object],default:!0},align:{...useAlignProps.align,default:"center"},stack:Boolean,stretch:Boolean,loading:{type:Boolean,default:null},disable:Boolean},useBtnProps={...nonRoundBtnProps,round:Boolean};function useBtn(u){const d=useSize(u,defaultSizes$2),g=useAlign(u),{hasRouterLink:f,hasLink:b,linkTag:m,linkAttrs:y,navigateOnClick:k}=useRouterLink({fallbackTag:"button"}),a=computed(()=>{const ae=u.fab===!1&&u.fabMini===!1?d.value:{};return u.padding!==void 0?Object.assign({},ae,{padding:u.padding.split(/\s+/).map(H=>H in btnPadding?btnPadding[H]+"px":H).join(" "),minWidth:"0",minHeight:"0"}):ae}),q=computed(()=>u.rounded===!0||u.fab===!0||u.fabMini===!0),w=computed(()=>u.disable!==!0&&u.loading!==!0),$=computed(()=>w.value===!0?u.tabindex||0:-1),Q=computed(()=>getBtnDesign(u,"standard")),C=computed(()=>{const ae={tabindex:$.value};return b.value===!0?Object.assign(ae,y.value):formTypes.includes(u.type)===!0&&(ae.type=u.type),m.value==="a"?(u.disable===!0?ae["aria-disabled"]="true":ae.href===void 0&&(ae.role="button"),f.value!==!0&&mediaTypeRE.test(u.type)===!0&&(ae.type=u.type)):u.disable===!0&&(ae.disabled="",ae["aria-disabled"]="true"),u.loading===!0&&u.percentage!==void 0&&Object.assign(ae,{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u.percentage}),ae}),v=computed(()=>{let ae;u.color!==void 0?u.flat===!0||u.outline===!0?ae=`text-${u.textColor||u.color}`:ae=`bg-${u.color} text-${u.textColor||"white"}`:u.textColor&&(ae=`text-${u.textColor}`);const H=u.round===!0?"round":`rectangle${q.value===!0?" q-btn--rounded":u.square===!0?" q-btn--square":""}`;return`q-btn--${Q.value} q-btn--${H}`+(ae!==void 0?" "+ae:"")+(w.value===!0?" q-btn--actionable q-focusable q-hoverable":u.disable===!0?" disabled":"")+(u.fab===!0?" q-btn--fab":u.fabMini===!0?" q-btn--fab-mini":"")+(u.noCaps===!0?" q-btn--no-uppercase":"")+(u.dense===!0?" q-btn--dense":"")+(u.stretch===!0?" no-border-radius self-stretch":"")+(u.glossy===!0?" glossy":"")+(u.square?" q-btn--square":"")}),J=computed(()=>g.value+(u.stack===!0?" column":" row")+(u.noWrap===!0?" no-wrap text-no-wrap":"")+(u.loading===!0?" q-btn__content--hidden":""));return{classes:v,style:a,innerClasses:J,attributes:C,hasLink:b,linkTag:m,navigateOnClick:k,isActionable:w}}const{passiveCapture}=listenOpts;let touchTarget=null,keyboardTarget=null,mouseTarget=null;var QBtn=createComponent({name:"QBtn",props:{...useBtnProps,percentage:Number,darkPercentage:Boolean,onTouchstart:[Function,Array]},emits:["click","keydown","mousedown","keyup"],setup(u,{slots:d,emit:g}){const{proxy:f}=getCurrentInstance(),{classes:b,style:m,innerClasses:y,attributes:k,hasLink:a,linkTag:q,navigateOnClick:w,isActionable:$}=useBtn(u),Q=ref(null),C=ref(null);let v=null,J,ae=null;const H=computed(()=>u.label!==void 0&&u.label!==null&&u.label!==""),Y=computed(()=>u.disable===!0||u.ripple===!1?!1:{keyCodes:a.value===!0?[13,32]:[13],...u.ripple===!0?{}:u.ripple}),G=computed(()=>({center:u.round})),j=computed(()=>{const A=Math.max(0,Math.min(100,u.percentage));return A>0?{transition:"transform 0.6s",transform:`translateX(${A-100}%)`}:{}}),L=computed(()=>{if(u.loading===!0)return{onMousedown:S,onTouchstart:S,onClick:S,onKeydown:S,onKeyup:S};if($.value===!0){const A={onClick:T,onKeydown:O,onMousedown:B};if(f.$q.platform.has.touch===!0){const E=u.onTouchstart!==void 0?"":"Passive";A[`onTouchstart${E}`]=P}return A}return{onClick:stopAndPrevent}}),R=computed(()=>({ref:Q,class:"q-btn q-btn-item non-selectable no-outline "+b.value,style:m.value,...k.value,...L.value}));function T(A){if(Q.value!==null){if(A!==void 0){if(A.defaultPrevented===!0)return;const E=document.activeElement;if(u.type==="submit"&&E!==document.body&&Q.value.contains(E)===!1&&E.contains(Q.value)===!1){Q.value.focus();const _=()=>{document.removeEventListener("keydown",stopAndPrevent,!0),document.removeEventListener("keyup",_,passiveCapture),Q.value!==null&&Q.value.removeEventListener("blur",_,passiveCapture)};document.addEventListener("keydown",stopAndPrevent,!0),document.addEventListener("keyup",_,passiveCapture),Q.value.addEventListener("blur",_,passiveCapture)}}w(A)}}function O(A){Q.value!==null&&(g("keydown",A),isKeyCode(A,[13,32])===!0&&keyboardTarget!==Q.value&&(keyboardTarget!==null&&F(),A.defaultPrevented!==!0&&(Q.value.focus(),keyboardTarget=Q.value,Q.value.classList.add("q-btn--active"),document.addEventListener("keyup",M,!0),Q.value.addEventListener("blur",M,passiveCapture)),stopAndPrevent(A)))}function P(A){Q.value!==null&&(g("touchstart",A),A.defaultPrevented!==!0&&(touchTarget!==Q.value&&(touchTarget!==null&&F(),touchTarget=Q.value,v=A.target,v.addEventListener("touchcancel",M,passiveCapture),v.addEventListener("touchend",M,passiveCapture)),J=!0,ae!==null&&clearTimeout(ae),ae=setTimeout(()=>{ae=null,J=!1},200)))}function B(A){Q.value!==null&&(A.qSkipRipple=J===!0,g("mousedown",A),A.defaultPrevented!==!0&&mouseTarget!==Q.value&&(mouseTarget!==null&&F(),mouseTarget=Q.value,Q.value.classList.add("q-btn--active"),document.addEventListener("mouseup",M,passiveCapture)))}function M(A){if(Q.value!==null&&!(A!==void 0&&A.type==="blur"&&document.activeElement===Q.value)){if(A!==void 0&&A.type==="keyup"){if(keyboardTarget===Q.value&&isKeyCode(A,[13,32])===!0){const E=new MouseEvent("click",A);E.qKeyEvent=!0,A.defaultPrevented===!0&&prevent(E),A.cancelBubble===!0&&stop(E),Q.value.dispatchEvent(E),stopAndPrevent(A),A.qKeyEvent=!0}g("keyup",A)}F()}}function F(A){const E=C.value;A!==!0&&(touchTarget===Q.value||mouseTarget===Q.value)&&E!==null&&E!==document.activeElement&&(E.setAttribute("tabindex",-1),E.focus()),touchTarget===Q.value&&(v!==null&&(v.removeEventListener("touchcancel",M,passiveCapture),v.removeEventListener("touchend",M,passiveCapture)),touchTarget=v=null),mouseTarget===Q.value&&(document.removeEventListener("mouseup",M,passiveCapture),mouseTarget=null),keyboardTarget===Q.value&&(document.removeEventListener("keyup",M,!0),Q.value!==null&&Q.value.removeEventListener("blur",M,passiveCapture),keyboardTarget=null),Q.value!==null&&Q.value.classList.remove("q-btn--active")}function S(A){stopAndPrevent(A),A.qSkipRipple=!0}return onBeforeUnmount(()=>{F(!0)}),Object.assign(f,{click:A=>{$.value===!0&&T(A)}}),()=>{let A=[];u.icon!==void 0&&A.push(h(QIcon,{name:u.icon,left:u.stack!==!0&&H.value===!0,role:"img"})),H.value===!0&&A.push(h("span",{class:"block"},[u.label])),A=hMergeSlot(d.default,A),u.iconRight!==void 0&&u.round===!1&&A.push(h(QIcon,{name:u.iconRight,right:u.stack!==!0&&H.value===!0,role:"img"}));const E=[h("span",{class:"q-focus-helper",ref:C})];return u.loading===!0&&u.percentage!==void 0&&E.push(h("span",{class:"q-btn__progress absolute-full overflow-hidden"+(u.darkPercentage===!0?" q-btn__progress--dark":"")},[h("span",{class:"q-btn__progress-indicator fit block",style:j.value})])),E.push(h("span",{class:"q-btn__content text-center col items-center q-anchor--skip "+y.value},A)),u.loading!==null&&E.push(h(Transition,{name:"q-transition--fade"},()=>u.loading===!0?[h("span",{key:"loading",class:"absolute-full flex flex-center"},d.loading!==void 0?d.loading():[h(QSpinner)])]:null)),withDirectives(h(q.value,R.value,E),[[Ripple,Y.value,void 0,G.value]])}}}),QItemLabel=createComponent({name:"QItemLabel",props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(u,{slots:d}){const g=computed(()=>parseInt(u.lines,10)),f=computed(()=>"q-item__label"+(u.overline===!0?" q-item__label--overline text-overline":"")+(u.caption===!0?" q-item__label--caption text-caption":"")+(u.header===!0?" q-item__label--header":"")+(g.value===1?" ellipsis":"")),b=computed(()=>u.lines!==void 0&&g.value>1?{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":g.value}:null);return()=>h("div",{style:b.value,class:f.value},hSlot(d.default))}}),QItemSection=createComponent({name:"QItemSection",props:{avatar:Boolean,thumbnail:Boolean,side:Boolean,top:Boolean,noWrap:Boolean},setup(u,{slots:d}){const g=computed(()=>`q-item__section column q-item__section--${u.avatar===!0||u.side===!0||u.thumbnail===!0?"side":"main"}`+(u.top===!0?" q-item__section--top justify-start":" justify-center")+(u.avatar===!0?" q-item__section--avatar":"")+(u.thumbnail===!0?" q-item__section--thumbnail":"")+(u.noWrap===!0?" q-item__section--nowrap":""));return()=>h("div",{class:g.value},hSlot(d.default))}}),QItem=createComponent({name:"QItem",props:{...useDarkProps,...useRouterLinkProps,tag:{type:String,default:"div"},active:{type:Boolean,default:null},clickable:Boolean,dense:Boolean,insetLevel:Number,tabindex:[String,Number],focused:Boolean,manualFocus:Boolean},emits:["click","keyup"],setup(u,{slots:d,emit:g}){const{proxy:{$q:f}}=getCurrentInstance(),b=useDark(u,f),{hasLink:m,linkAttrs:y,linkClass:k,linkTag:a,navigateOnClick:q}=useRouterLink(),w=ref(null),$=ref(null),Q=computed(()=>u.clickable===!0||m.value===!0||u.tag==="label"),C=computed(()=>u.disable!==!0&&Q.value===!0),v=computed(()=>"q-item q-item-type row no-wrap"+(u.dense===!0?" q-item--dense":"")+(b.value===!0?" q-item--dark":"")+(m.value===!0&&u.active===null?k.value:u.active===!0?` q-item--active${u.activeClass!==void 0?` ${u.activeClass}`:""}`:"")+(u.disable===!0?" disabled":"")+(C.value===!0?" q-item--clickable q-link cursor-pointer "+(u.manualFocus===!0?"q-manual-focusable":"q-focusable q-hoverable")+(u.focused===!0?" q-manual-focusable--focused":""):"")),J=computed(()=>{if(u.insetLevel===void 0)return null;const G=f.lang.rtl===!0?"Right":"Left";return{["padding"+G]:16+u.insetLevel*56+"px"}});function ae(G){C.value===!0&&($.value!==null&&(G.qKeyEvent!==!0&&document.activeElement===w.value?$.value.focus():document.activeElement===$.value&&w.value.focus()),q(G))}function H(G){if(C.value===!0&&isKeyCode(G,[13,32])===!0){stopAndPrevent(G),G.qKeyEvent=!0;const j=new MouseEvent("click",G);j.qKeyEvent=!0,w.value.dispatchEvent(j)}g("keyup",G)}function Y(){const G=hUniqueSlot(d.default,[]);return C.value===!0&&G.unshift(h("div",{class:"q-focus-helper",tabindex:-1,ref:$})),G}return()=>{const G={ref:w,class:v.value,style:J.value,role:"listitem",onClick:ae,onKeyup:H};return C.value===!0?(G.tabindex=u.tabindex||"0",Object.assign(G,y.value)):Q.value===!0&&(G["aria-disabled"]="true"),h(a.value,G,Y())}}});const roleAttrExceptions=["ul","ol"];var QList=createComponent({name:"QList",props:{...useDarkProps,bordered:Boolean,dense:Boolean,separator:Boolean,padding:Boolean,tag:{type:String,default:"div"}},setup(u,{slots:d}){const g=getCurrentInstance(),f=useDark(u,g.proxy.$q),b=computed(()=>roleAttrExceptions.includes(u.tag)?null:"list"),m=computed(()=>"q-list"+(u.bordered===!0?" q-list--bordered":"")+(u.dense===!0?" q-list--dense":"")+(u.separator===!0?" q-list--separator":"")+(f.value===!0?" q-list--dark":"")+(u.padding===!0?" q-list--padding":""));return()=>h(u.tag,{class:m.value,role:b.value},hSlot(d.default))}});const useAnchorStaticProps={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},useAnchorProps={...useAnchorStaticProps,contextMenu:Boolean};function useAnchor({showing:u,avoidEmit:d,configureAnchorEl:g}){const{props:f,proxy:b,emit:m}=getCurrentInstance(),y=ref(null);let k=null;function a(C){return y.value===null?!1:C===void 0||C.touches===void 0||C.touches.length<=1}const q={};g===void 0&&(Object.assign(q,{hide(C){b.hide(C)},toggle(C){b.toggle(C),C.qAnchorHandled=!0},toggleKey(C){isKeyCode(C,13)===!0&&q.toggle(C)},contextClick(C){b.hide(C),prevent(C),nextTick(()=>{b.show(C),C.qAnchorHandled=!0})},prevent,mobileTouch(C){if(q.mobileCleanup(C),a(C)!==!0)return;b.hide(C),y.value.classList.add("non-selectable");const v=C.target;addEvt(q,"anchor",[[v,"touchmove","mobileCleanup","passive"],[v,"touchend","mobileCleanup","passive"],[v,"touchcancel","mobileCleanup","passive"],[y.value,"contextmenu","prevent","notPassive"]]),k=setTimeout(()=>{k=null,b.show(C),C.qAnchorHandled=!0},300)},mobileCleanup(C){y.value.classList.remove("non-selectable"),k!==null&&(clearTimeout(k),k=null),u.value===!0&&C!==void 0&&clearSelection()}}),g=function(C=f.contextMenu){if(f.noParentEvent===!0||y.value===null)return;let v;C===!0?b.$q.platform.is.mobile===!0?v=[[y.value,"touchstart","mobileTouch","passive"]]:v=[[y.value,"mousedown","hide","passive"],[y.value,"contextmenu","contextClick","notPassive"]]:v=[[y.value,"click","toggle","passive"],[y.value,"keyup","toggleKey","passive"]],addEvt(q,"anchor",v)});function w(){cleanEvt(q,"anchor")}function $(C){for(y.value=C;y.value.classList.contains("q-anchor--skip");)y.value=y.value.parentNode;g()}function Q(){if(f.target===!1||f.target===""||b.$el.parentNode===null)y.value=null;else if(f.target===!0)$(b.$el.parentNode);else{let C=f.target;if(typeof f.target=="string")try{C=document.querySelector(f.target)}catch{C=void 0}C!=null?(y.value=C.$el||C,g()):(y.value=null,console.error(`Anchor: target "${f.target}" not found`))}}return watch(()=>f.contextMenu,C=>{y.value!==null&&(w(),g(C))}),watch(()=>f.target,()=>{y.value!==null&&w(),Q()}),watch(()=>f.noParentEvent,C=>{y.value!==null&&(C===!0?w():g())}),onMounted(()=>{Q(),d!==!0&&f.modelValue===!0&&y.value===null&&m("update:modelValue",!1)}),onBeforeUnmount(()=>{k!==null&&clearTimeout(k),w()}),{anchorEl:y,canShow:a,anchorEvents:q}}function useScrollTarget(u,d){const g=ref(null);let f;function b(k,a){const q=`${a!==void 0?"add":"remove"}EventListener`,w=a!==void 0?a:f;k!==window&&k[q]("scroll",w,listenOpts.passive),window[q]("scroll",w,listenOpts.passive),f=a}function m(){g.value!==null&&(b(g.value),g.value=null)}const y=watch(()=>u.noParentEvent,()=>{g.value!==null&&(m(),d())});return onBeforeUnmount(y),{localScrollTarget:g,unconfigureScrollTarget:m,changeScrollEvent:b}}let queue=[],waitFlags=[];function clearFlag(u){waitFlags=waitFlags.filter(d=>d!==u)}function addFocusWaitFlag(u){clearFlag(u),waitFlags.push(u)}function removeFocusWaitFlag(u){clearFlag(u),waitFlags.length===0&&queue.length!==0&&(queue[queue.length-1](),queue=[])}function addFocusFn(u){waitFlags.length===0?u():queue.push(u)}function removeFocusFn(u){queue=queue.filter(d=>d!==u)}let portalIndex=1,target=document.body;function createGlobalNode(u,d){const g=document.createElement("div");if(g.id=d!==void 0?`q-portal--${d}--${portalIndex++}`:u,globalConfig.globalNodes!==void 0){const f=globalConfig.globalNodes.class;f!==void 0&&(g.className=f)}return target.appendChild(g),g}function removeGlobalNode(u){u.remove()}const portalProxyList=[];function getPortalProxy(u){return portalProxyList.find(d=>d.contentEl!==null&&d.contentEl.contains(u))}function closePortalMenus(u,d){do{if(u.$options.name==="QMenu"){if(u.hide(d),u.$props.separateClosePopup===!0)return getParentProxy(u)}else if(u.__qPortal===!0){const g=getParentProxy(u);return g!==void 0&&g.$options.name==="QPopupProxy"?(u.hide(d),g):u}u=getParentProxy(u)}while(u!=null)}function closePortals(u,d,g){for(;g!==0&&u!==void 0&&u!==null;){if(u.__qPortal===!0){if(g--,u.$options.name==="QMenu"){u=closePortalMenus(u,d);continue}u.hide(d)}u=getParentProxy(u)}}const QPortal=createComponent({name:"QPortal",setup(u,{slots:d}){return()=>d.default()}});function isOnGlobalDialog(u){for(u=u.parent;u!=null;){if(u.type.name==="QGlobalDialog")return!0;if(u.type.name==="QDialog"||u.type.name==="QMenu")return!1;u=u.parent}return!1}function usePortal(u,d,g,f){const b=ref(!1),m=ref(!1);let y=null;const k={},a=f==="dialog"&&isOnGlobalDialog(u);function q($){if($===!0){removeFocusWaitFlag(k),m.value=!0;return}m.value=!1,b.value===!1&&(a===!1&&y===null&&(y=createGlobalNode(!1,f)),b.value=!0,portalProxyList.push(u.proxy),addFocusWaitFlag(k))}function w($){if(m.value=!1,$!==!0)return;removeFocusWaitFlag(k),b.value=!1;const Q=portalProxyList.indexOf(u.proxy);Q!==-1&&portalProxyList.splice(Q,1),y!==null&&(removeGlobalNode(y),y=null)}return onUnmounted(()=>{w(!0)}),u.proxy.__qPortal=!0,injectProp(u.proxy,"contentEl",()=>d.value),{showPortal:q,hidePortal:w,portalIsActive:b,portalIsAccessible:m,renderPortal:()=>a===!0?g():b.value===!0?[h(Teleport,{to:y},h(QPortal,g))]:void 0}}const useTransitionProps={transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"},transitionDuration:{type:[String,Number],default:300}};function useTransition(u,d=()=>{},g=()=>{}){return{transitionProps:computed(()=>{const f=`q-transition--${u.transitionShow||d()}`,b=`q-transition--${u.transitionHide||g()}`;return{appear:!0,enterFromClass:`${f}-enter-from`,enterActiveClass:`${f}-enter-active`,enterToClass:`${f}-enter-to`,leaveFromClass:`${b}-leave-from`,leaveActiveClass:`${b}-leave-active`,leaveToClass:`${b}-leave-to`}}),transitionStyle:computed(()=>`--q-transition-duration: ${u.transitionDuration}ms`)}}function useTick(){let u;const d=getCurrentInstance();function g(){u=void 0}return onDeactivated(g),onBeforeUnmount(g),{removeTick:g,registerTick(f){u=f,nextTick(()=>{u===f&&(vmIsDestroyed(d)===!1&&u(),u=void 0)})}}}const handlers$1=[];let escDown;function onKeydown(u){escDown=u.keyCode===27}function onBlur(){escDown===!0&&(escDown=!1)}function onKeyup(u){escDown===!0&&(escDown=!1,isKeyCode(u,27)===!0&&handlers$1[handlers$1.length-1](u))}function update(u){window[u]("keydown",onKeydown),window[u]("blur",onBlur),window[u]("keyup",onKeyup),escDown=!1}function addEscapeKey(u){client.is.desktop===!0&&(handlers$1.push(u),handlers$1.length===1&&update("addEventListener"))}function removeEscapeKey(u){const d=handlers$1.indexOf(u);d!==-1&&(handlers$1.splice(d,1),handlers$1.length===0&&update("removeEventListener"))}const handlers=[];function trigger(u){handlers[handlers.length-1](u)}function addFocusout(u){client.is.desktop===!0&&(handlers.push(u),handlers.length===1&&document.body.addEventListener("focusin",trigger))}function removeFocusout(u){const d=handlers.indexOf(u);d!==-1&&(handlers.splice(d,1),handlers.length===0&&document.body.removeEventListener("focusin",trigger))}const{notPassiveCapture}=listenOpts,registeredList=[];function globalHandler(u){const d=u.target;if(d===void 0||d.nodeType===8||d.classList.contains("no-pointer-events")===!0)return;let g=portalProxyList.length-1;for(;g>=0;){const f=portalProxyList[g].$;if(f.type.name==="QTooltip"){g--;continue}if(f.type.name!=="QDialog")break;if(f.props.seamless!==!0)return;g--}for(let f=registeredList.length-1;f>=0;f--){const b=registeredList[f];if((b.anchorEl.value===null||b.anchorEl.value.contains(d)===!1)&&(d===document.body||b.innerRef.value!==null&&b.innerRef.value.contains(d)===!1))u.qClickOutside=!0,b.onClickOutside(u);else return}}function addClickOutside(u){registeredList.push(u),registeredList.length===1&&(document.addEventListener("mousedown",globalHandler,notPassiveCapture),document.addEventListener("touchstart",globalHandler,notPassiveCapture))}function removeClickOutside(u){const d=registeredList.findIndex(g=>g===u);d!==-1&&(registeredList.splice(d,1),registeredList.length===0&&(document.removeEventListener("mousedown",globalHandler,notPassiveCapture),document.removeEventListener("touchstart",globalHandler,notPassiveCapture)))}let vpLeft,vpTop;function validatePosition(u){const d=u.split(" ");return d.length!==2?!1:["top","center","bottom"].includes(d[0])!==!0?(console.error("Anchor/Self position must start with one of top/center/bottom"),!1):["left","middle","right","start","end"].includes(d[1])!==!0?(console.error("Anchor/Self position must end with one of left/middle/right/start/end"),!1):!0}function validateOffset(u){return u?!(u.length!==2||typeof u[0]!="number"||typeof u[1]!="number"):!0}const horizontalPos={"start#ltr":"left","start#rtl":"right","end#ltr":"right","end#rtl":"left"};["left","middle","right"].forEach(u=>{horizontalPos[`${u}#ltr`]=u,horizontalPos[`${u}#rtl`]=u});function parsePosition(u,d){const g=u.split(" ");return{vertical:g[0],horizontal:horizontalPos[`${g[1]}#${d===!0?"rtl":"ltr"}`]}}function getAnchorProps(u,d){let{top:g,left:f,right:b,bottom:m,width:y,height:k}=u.getBoundingClientRect();return d!==void 0&&(g-=d[1],f-=d[0],m+=d[1],b+=d[0],y+=d[0],k+=d[1]),{top:g,bottom:m,height:k,left:f,right:b,width:y,middle:f+(b-f)/2,center:g+(m-g)/2}}function getAbsoluteAnchorProps(u,d,g){let{top:f,left:b}=u.getBoundingClientRect();return f+=d.top,b+=d.left,g!==void 0&&(f+=g[1],b+=g[0]),{top:f,bottom:f+1,height:1,left:b,right:b+1,width:1,middle:b,center:f}}function getTargetProps(u,d){return{top:0,center:d/2,bottom:d,left:0,middle:u/2,right:u}}function getTopLeftProps(u,d,g,f){return{top:u[g.vertical]-d[f.vertical],left:u[g.horizontal]-d[f.horizontal]}}function setPosition(u,d=0){if(u.targetEl===null||u.anchorEl===null||d>5)return;if(u.targetEl.offsetHeight===0||u.targetEl.offsetWidth===0){setTimeout(()=>{setPosition(u,d+1)},10);return}const{targetEl:g,offset:f,anchorEl:b,anchorOrigin:m,selfOrigin:y,absoluteOffset:k,fit:a,cover:q,maxHeight:w,maxWidth:$}=u;if(client.is.ios===!0&&window.visualViewport!==void 0){const R=document.body.style,{offsetLeft:T,offsetTop:O}=window.visualViewport;T!==vpLeft&&(R.setProperty("--q-pe-left",T+"px"),vpLeft=T),O!==vpTop&&(R.setProperty("--q-pe-top",O+"px"),vpTop=O)}const{scrollLeft:Q,scrollTop:C}=g,v=k===void 0?getAnchorProps(b,q===!0?[0,0]:f):getAbsoluteAnchorProps(b,k,f);Object.assign(g.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:$,maxHeight:w,visibility:"visible"});const{offsetWidth:J,offsetHeight:ae}=g,{elWidth:H,elHeight:Y}=a===!0||q===!0?{elWidth:Math.max(v.width,J),elHeight:q===!0?Math.max(v.height,ae):ae}:{elWidth:J,elHeight:ae};let G={maxWidth:$,maxHeight:w};(a===!0||q===!0)&&(G.minWidth=v.width+"px",q===!0&&(G.minHeight=v.height+"px")),Object.assign(g.style,G);const j=getTargetProps(H,Y);let L=getTopLeftProps(v,j,m,y);if(k===void 0||f===void 0)applyBoundaries(L,v,j,m,y);else{const{top:R,left:T}=L;applyBoundaries(L,v,j,m,y);let O=!1;if(L.top!==R){O=!0;const P=2*f[1];v.center=v.top-=P,v.bottom-=P+2}if(L.left!==T){O=!0;const P=2*f[0];v.middle=v.left-=P,v.right-=P+2}O===!0&&(L=getTopLeftProps(v,j,m,y),applyBoundaries(L,v,j,m,y))}G={top:L.top+"px",left:L.left+"px"},L.maxHeight!==void 0&&(G.maxHeight=L.maxHeight+"px",v.height>L.maxHeight&&(G.minHeight=G.maxHeight)),L.maxWidth!==void 0&&(G.maxWidth=L.maxWidth+"px",v.width>L.maxWidth&&(G.minWidth=G.maxWidth)),Object.assign(g.style,G),g.scrollTop!==C&&(g.scrollTop=C),g.scrollLeft!==Q&&(g.scrollLeft=Q)}function applyBoundaries(u,d,g,f,b){const m=g.bottom,y=g.right,k=getScrollbarWidth(),a=window.innerHeight-k,q=document.body.clientWidth;if(u.top<0||u.top+m>a)if(b.vertical==="center")u.top=d[f.vertical]>a/2?Math.max(0,a-m):0,u.maxHeight=Math.min(m,a);else if(d[f.vertical]>a/2){const w=Math.min(a,f.vertical==="center"?d.center:f.vertical===b.vertical?d.bottom:d.top);u.maxHeight=Math.min(m,w),u.top=Math.max(0,w-m)}else u.top=Math.max(0,f.vertical==="center"?d.center:f.vertical===b.vertical?d.top:d.bottom),u.maxHeight=Math.min(m,a-u.top);if(u.left<0||u.left+y>q)if(u.maxWidth=Math.min(y,q),b.horizontal==="middle")u.left=d[f.horizontal]>q/2?Math.max(0,q-y):0;else if(d[f.horizontal]>q/2){const w=Math.min(q,f.horizontal==="middle"?d.middle:f.horizontal===b.horizontal?d.right:d.left);u.maxWidth=Math.min(y,w),u.left=Math.max(0,w-u.maxWidth)}else u.left=Math.max(0,f.horizontal==="middle"?d.middle:f.horizontal===b.horizontal?d.left:d.right),u.maxWidth=Math.min(y,q-u.left)}var QMenu=createComponent({name:"QMenu",inheritAttrs:!1,props:{...useAnchorProps,...useModelToggleProps,...useDarkProps,...useTransitionProps,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:validatePosition},self:{type:String,validator:validatePosition},offset:{type:Array,validator:validateOffset},scrollTarget:scrollTargetProp,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...useModelToggleEmits,"click","escapeKey"],setup(u,{slots:d,emit:g,attrs:f}){let b=null,m,y,k;const a=getCurrentInstance(),{proxy:q}=a,{$q:w}=q,$=ref(null),Q=ref(!1),C=computed(()=>u.persistent!==!0&&u.noRouteDismiss!==!0),v=useDark(u,w),{registerTick:J,removeTick:ae}=useTick(),{registerTimeout:H}=useTimeout(),{transitionProps:Y,transitionStyle:G}=useTransition(u),{localScrollTarget:j,changeScrollEvent:L,unconfigureScrollTarget:R}=useScrollTarget(u,re),{anchorEl:T,canShow:O}=useAnchor({showing:Q}),{hide:P}=useModelToggle({showing:Q,canShow:O,handleShow:z,handleHide:te,hideOnRouteChange:C,processOnMount:!0}),{showPortal:B,hidePortal:M,renderPortal:F}=usePortal(a,$,se,"menu"),S={anchorEl:T,innerRef:$,onClickOutside(ie){if(u.persistent!==!0&&Q.value===!0)return P(ie),(ie.type==="touchstart"||ie.target.classList.contains("q-dialog__backdrop"))&&stopAndPrevent(ie),!0}},A=computed(()=>parsePosition(u.anchor||(u.cover===!0?"center middle":"bottom start"),w.lang.rtl)),E=computed(()=>u.cover===!0?A.value:parsePosition(u.self||"top start",w.lang.rtl)),_=computed(()=>(u.square===!0?" q-menu--square":"")+(v.value===!0?" q-menu--dark q-dark":"")),D=computed(()=>u.autoClose===!0?{onClick:ee}:{}),N=computed(()=>Q.value===!0&&u.persistent!==!0);watch(N,ie=>{ie===!0?(addEscapeKey(K),addClickOutside(S)):(removeEscapeKey(K),removeClickOutside(S))});function U(){addFocusFn(()=>{let ie=$.value;ie&&ie.contains(document.activeElement)!==!0&&(ie=ie.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||ie.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||ie.querySelector("[autofocus], [data-autofocus]")||ie,ie.focus({preventScroll:!0}))})}function z(ie){if(b=u.noRefocus===!1?document.activeElement:null,addFocusout(X),B(),re(),m=void 0,ie!==void 0&&(u.touchPosition||u.contextMenu)){const de=position(ie);if(de.left!==void 0){const{top:ce,left:he}=T.value.getBoundingClientRect();m={left:de.left-he,top:de.top-ce}}}y===void 0&&(y=watch(()=>w.screen.width+"|"+w.screen.height+"|"+u.self+"|"+u.anchor+"|"+w.lang.rtl,Z)),u.noFocus!==!0&&document.activeElement.blur(),J(()=>{Z(),u.noFocus!==!0&&U()}),H(()=>{w.platform.is.ios===!0&&(k=u.autoClose,$.value.click()),Z(),B(!0),g("show",ie)},u.transitionDuration)}function te(ie){ae(),M(),W(!0),b!==null&&(ie===void 0||ie.qClickOutside!==!0)&&(((ie&&ie.type.indexOf("key")===0?b.closest('[tabindex]:not([tabindex^="-"])'):void 0)||b).focus(),b=null),H(()=>{M(!0),g("hide",ie)},u.transitionDuration)}function W(ie){m=void 0,y!==void 0&&(y(),y=void 0),(ie===!0||Q.value===!0)&&(removeFocusout(X),R(),removeClickOutside(S),removeEscapeKey(K)),ie!==!0&&(b=null)}function re(){(T.value!==null||u.scrollTarget!==void 0)&&(j.value=getScrollTarget(T.value,u.scrollTarget),L(j.value,Z))}function ee(ie){k!==!0?(closePortalMenus(q,ie),g("click",ie)):k=!1}function X(ie){N.value===!0&&u.noFocus!==!0&&childHasFocus($.value,ie.target)!==!0&&U()}function K(ie){g("escapeKey"),P(ie)}function Z(){setPosition({targetEl:$.value,offset:u.offset,anchorEl:T.value,anchorOrigin:A.value,selfOrigin:E.value,absoluteOffset:m,fit:u.fit,cover:u.cover,maxHeight:u.maxHeight,maxWidth:u.maxWidth})}function se(){return h(Transition,Y.value,()=>Q.value===!0?h("div",{role:"menu",...f,ref:$,tabindex:-1,class:["q-menu q-position-engine scroll"+_.value,f.class],style:[f.style,G.value],...D.value},hSlot(d.default)):null)}return onBeforeUnmount(W),Object.assign(q,{focus:U,updatePosition:Z}),F}}),QCardSection=createComponent({name:"QCardSection",props:{tag:{type:String,default:"div"},horizontal:Boolean},setup(u,{slots:d}){const g=computed(()=>`q-card__section q-card__section--${u.horizontal===!0?"horiz row no-wrap":"vert"}`);return()=>h(u.tag,{class:g.value},hSlot(d.default))}}),QCardActions=createComponent({name:"QCardActions",props:{...useAlignProps,vertical:Boolean},setup(u,{slots:d}){const g=useAlign(u),f=computed(()=>`q-card__actions ${g.value} q-card__actions--${u.vertical===!0?"vert column":"horiz row"}`);return()=>h("div",{class:f.value},hSlot(d.default))}}),QCard=createComponent({name:"QCard",props:{...useDarkProps,tag:{type:String,default:"div"},square:Boolean,flat:Boolean,bordered:Boolean},setup(u,{slots:d}){const{proxy:{$q:g}}=getCurrentInstance(),f=useDark(u,g),b=computed(()=>"q-card"+(f.value===!0?" q-card--dark q-dark":"")+(u.bordered===!0?" q-card--bordered":"")+(u.square===!0?" q-card--square no-border-radius":"")+(u.flat===!0?" q-card--flat no-shadow":""));return()=>h(u.tag,{class:b.value},hSlot(d.default))}});let maximizedModals=0;const positionClass$1={standard:"fixed-full flex-center",top:"fixed-top justify-center",bottom:"fixed-bottom justify-center",right:"fixed-right items-center",left:"fixed-left items-center"},defaultTransitions={standard:["scale","scale"],top:["slide-down","slide-up"],bottom:["slide-up","slide-down"],right:["slide-left","slide-right"],left:["slide-right","slide-left"]};var QDialog=createComponent({name:"QDialog",inheritAttrs:!1,props:{...useModelToggleProps,...useTransitionProps,transitionShow:String,transitionHide:String,persistent:Boolean,autoClose:Boolean,allowFocusOutside:Boolean,noEscDismiss:Boolean,noBackdropDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,noShake:Boolean,seamless:Boolean,maximized:Boolean,fullWidth:Boolean,fullHeight:Boolean,square:Boolean,backdropFilter:String,position:{type:String,default:"standard",validator:u=>["standard","top","bottom","left","right"].includes(u)}},emits:[...useModelToggleEmits,"shake","click","escapeKey"],setup(u,{slots:d,emit:g,attrs:f}){const b=getCurrentInstance(),m=ref(null),y=ref(!1),k=ref(!1);let a=null,q=null,w,$;const Q=computed(()=>u.persistent!==!0&&u.noRouteDismiss!==!0&&u.seamless!==!0),{preventBodyScroll:C}=usePreventScroll(),{registerTimeout:v}=useTimeout(),{registerTick:J,removeTick:ae}=useTick(),{transitionProps:H,transitionStyle:Y}=useTransition(u,()=>defaultTransitions[u.position][0],()=>defaultTransitions[u.position][1]),G=computed(()=>Y.value+(u.backdropFilter!==void 0?`;backdrop-filter:${u.backdropFilter};-webkit-backdrop-filter:${u.backdropFilter}`:"")),{showPortal:j,hidePortal:L,portalIsAccessible:R,renderPortal:T}=usePortal(b,m,X,"dialog"),{hide:O}=useModelToggle({showing:y,hideOnRouteChange:Q,handleShow:E,handleHide:_,processOnMount:!0}),{addToHistory:P,removeFromHistory:B}=useHistory(y,O,Q),M=computed(()=>`q-dialog__inner flex no-pointer-events q-dialog__inner--${u.maximized===!0?"maximized":"minimized"} q-dialog__inner--${u.position} ${positionClass$1[u.position]}`+(k.value===!0?" q-dialog__inner--animating":"")+(u.fullWidth===!0?" q-dialog__inner--fullwidth":"")+(u.fullHeight===!0?" q-dialog__inner--fullheight":"")+(u.square===!0?" q-dialog__inner--square":"")),F=computed(()=>y.value===!0&&u.seamless!==!0),S=computed(()=>u.autoClose===!0?{onClick:W}:{}),A=computed(()=>[`q-dialog fullscreen no-pointer-events q-dialog--${F.value===!0?"modal":"seamless"}`,f.class]);watch(()=>u.maximized,K=>{y.value===!0&&te(K)}),watch(F,K=>{C(K),K===!0?(addFocusout(ee),addEscapeKey(U)):(removeFocusout(ee),removeEscapeKey(U))});function E(K){P(),q=u.noRefocus===!1&&document.activeElement!==null?document.activeElement:null,te(u.maximized),j(),k.value=!0,u.noFocus!==!0?(document.activeElement!==null&&document.activeElement.blur(),J(D)):ae(),v(()=>{if(b.proxy.$q.platform.is.ios===!0){if(u.seamless!==!0&&document.activeElement){const{top:Z,bottom:se}=document.activeElement.getBoundingClientRect(),{innerHeight:ie}=window,de=window.visualViewport!==void 0?window.visualViewport.height:ie;Z>0&&se>de/2&&(document.scrollingElement.scrollTop=Math.min(document.scrollingElement.scrollHeight-de,se>=ie?1/0:Math.ceil(document.scrollingElement.scrollTop+se-de/2))),document.activeElement.scrollIntoView()}$=!0,m.value.click(),$=!1}j(!0),k.value=!1,g("show",K)},u.transitionDuration)}function _(K){ae(),B(),z(!0),k.value=!0,L(),q!==null&&(((K&&K.type.indexOf("key")===0?q.closest('[tabindex]:not([tabindex^="-"])'):void 0)||q).focus(),q=null),v(()=>{L(!0),k.value=!1,g("hide",K)},u.transitionDuration)}function D(K){addFocusFn(()=>{let Z=m.value;if(Z!==null){if(K!==void 0){const se=Z.querySelector(K);if(se!==null){se.focus({preventScroll:!0});return}}Z.contains(document.activeElement)!==!0&&(Z=Z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||Z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||Z.querySelector("[autofocus], [data-autofocus]")||Z,Z.focus({preventScroll:!0}))}})}function N(K){K&&typeof K.focus=="function"?K.focus({preventScroll:!0}):D(),g("shake");const Z=m.value;Z!==null&&(Z.classList.remove("q-animate--scale"),Z.classList.add("q-animate--scale"),a!==null&&clearTimeout(a),a=setTimeout(()=>{a=null,m.value!==null&&(Z.classList.remove("q-animate--scale"),D())},170))}function U(){u.seamless!==!0&&(u.persistent===!0||u.noEscDismiss===!0?u.maximized!==!0&&u.noShake!==!0&&N():(g("escapeKey"),O()))}function z(K){a!==null&&(clearTimeout(a),a=null),(K===!0||y.value===!0)&&(te(!1),u.seamless!==!0&&(C(!1),removeFocusout(ee),removeEscapeKey(U))),K!==!0&&(q=null)}function te(K){K===!0?w!==!0&&(maximizedModals<1&&document.body.classList.add("q-body--dialog"),maximizedModals++,w=!0):w===!0&&(maximizedModals<2&&document.body.classList.remove("q-body--dialog"),maximizedModals--,w=!1)}function W(K){$!==!0&&(O(K),g("click",K))}function re(K){u.persistent!==!0&&u.noBackdropDismiss!==!0?O(K):u.noShake!==!0&&N()}function ee(K){u.allowFocusOutside!==!0&&R.value===!0&&childHasFocus(m.value,K.target)!==!0&&D('[tabindex]:not([tabindex="-1"])')}Object.assign(b.proxy,{focus:D,shake:N,__updateRefocusTarget(K){q=K||null}}),onBeforeUnmount(z);function X(){return h("div",{role:"dialog","aria-modal":F.value===!0?"true":"false",...f,class:A.value},[h(Transition,{name:"q-transition--fade",appear:!0},()=>F.value===!0?h("div",{class:"q-dialog__backdrop fixed-full",style:G.value,"aria-hidden":"true",tabindex:-1,onClick:re}):null),h(Transition,H.value,()=>y.value===!0?h("div",{ref:m,class:M.value,style:Y.value,tabindex:-1,...S.value},hSlot(d.default)):null)])}return T}});function getDepth(u){if(u===!1)return 0;if(u===!0||u===void 0)return 1;const d=parseInt(u,10);return isNaN(d)?0:d}var ClosePopup=createDirective({name:"close-popup",beforeMount(u,{value:d}){const g={depth:getDepth(d),handler(f){g.depth!==0&&setTimeout(()=>{const b=getPortalProxy(u);b!==void 0&&closePortals(b,f,g.depth)})},handlerKey(f){isKeyCode(f,13)===!0&&g.handler(f)}};u.__qclosepopup=g,u.addEventListener("click",g.handler),u.addEventListener("keyup",g.handlerKey)},updated(u,{value:d,oldValue:g}){d!==g&&(u.__qclosepopup.depth=getDepth(d))},beforeUnmount(u){const d=u.__qclosepopup;u.removeEventListener("click",d.handler),u.removeEventListener("keyup",d.handlerKey),delete u.__qclosepopup}});let buf,bufIdx=0;const hexBytes=new Array(256);for(let u=0;u<256;u++)hexBytes[u]=(u+256).toString(16).substring(1);const randomBytes=(()=>{const u=typeof crypto!="undefined"?crypto:typeof window!="undefined"?window.crypto||window.msCrypto:void 0;if(u!==void 0){if(u.randomBytes!==void 0)return u.randomBytes;if(u.getRandomValues!==void 0)return d=>{const g=new Uint8Array(d);return u.getRandomValues(g),g}}return d=>{const g=[];for(let f=d;f>0;f--)g.push(Math.floor(Math.random()*256));return g}})(),BUFFER_SIZE=4096;function uid$1(){(buf===void 0||bufIdx+16>BUFFER_SIZE)&&(bufIdx=0,buf=randomBytes(BUFFER_SIZE));const u=Array.prototype.slice.call(buf,bufIdx,bufIdx+=16);return u[6]=u[6]&15|64,u[8]=u[8]&63|128,hexBytes[u[0]]+hexBytes[u[1]]+hexBytes[u[2]]+hexBytes[u[3]]+"-"+hexBytes[u[4]]+hexBytes[u[5]]+"-"+hexBytes[u[6]]+hexBytes[u[7]]+"-"+hexBytes[u[8]]+hexBytes[u[9]]+"-"+hexBytes[u[10]]+hexBytes[u[11]]+hexBytes[u[12]]+hexBytes[u[13]]+hexBytes[u[14]]+hexBytes[u[15]]}function parseValue(u){return u==null?null:u}function getId(u,d){return u==null?d===!0?`f_${uid$1()}`:null:u}function useId({getValue:u,required:d=!0}={}){if(isRuntimeSsrPreHydration.value===!0){const g=ref(u!==void 0?parseValue(u()):null);return d===!0&&g.value===null&&onMounted(()=>{g.value=`f_${uid$1()}`}),u!==void 0&&watch(u,f=>{g.value=getId(f,d)}),g}return u!==void 0?computed(()=>getId(u(),d)):ref(`f_${uid$1()}`)}const listenerRE=/^on[A-Z]/;function useSplitAttrs(){const{attrs:u,vnode:d}=getCurrentInstance(),g={listeners:ref({}),attributes:ref({})};function f(){const b={},m={};for(const y in u)y!=="class"&&y!=="style"&&listenerRE.test(y)===!1&&(b[y]=u[y]);for(const y in d.props)listenerRE.test(y)===!0&&(m[y]=d.props[y]);g.attributes.value=b,g.listeners.value=m}return onBeforeUpdate(f),f(),g}function useFormChild({validate:u,resetValidation:d,requiresQForm:g}){const f=inject(formKey,!1);if(f!==!1){const{props:b,proxy:m}=getCurrentInstance();Object.assign(m,{validate:u,resetValidation:d}),watch(()=>b.disable,y=>{y===!0?(typeof d=="function"&&d(),f.unbindComponent(m)):f.bindComponent(m)}),onMounted(()=>{b.disable!==!0&&f.bindComponent(m)}),onBeforeUnmount(()=>{b.disable!==!0&&f.unbindComponent(m)})}else g===!0&&console.error("Parent QForm not found on useFormChild()!")}const hex=/^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/,hexa=/^#[0-9a-fA-F]{4}([0-9a-fA-F]{4})?$/,hexOrHexa=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,rgb=/^rgb\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5])\)$/,rgba=/^rgba\(((0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),){2}(0|[1-9][\d]?|1[\d]{0,2}|2[\d]?|2[0-4][\d]|25[0-5]),(0|0\.[0-9]+[1-9]|0\.[1-9]+|1)\)$/,testPattern={date:u=>/^-?[\d]+\/[0-1]\d\/[0-3]\d$/.test(u),time:u=>/^([0-1]?\d|2[0-3]):[0-5]\d$/.test(u),fulltime:u=>/^([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(u),timeOrFulltime:u=>/^([0-1]?\d|2[0-3]):[0-5]\d(:[0-5]\d)?$/.test(u),email:u=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(u),hexColor:u=>hex.test(u),hexaColor:u=>hexa.test(u),hexOrHexaColor:u=>hexOrHexa.test(u),rgbColor:u=>rgb.test(u),rgbaColor:u=>rgba.test(u),rgbOrRgbaColor:u=>rgb.test(u)||rgba.test(u),hexOrRgbColor:u=>hex.test(u)||rgb.test(u),hexaOrRgbaColor:u=>hexa.test(u)||rgba.test(u),anyColor:u=>hexOrHexa.test(u)||rgb.test(u)||rgba.test(u)},lazyRulesValues=[!0,!1,"ondemand"],useValidateProps={modelValue:{},error:{type:Boolean,default:null},errorMessage:String,noErrorIcon:Boolean,rules:Array,reactiveRules:Boolean,lazyRules:{type:[Boolean,String],default:!1,validator:u=>lazyRulesValues.includes(u)}};function useValidate(u,d){const{props:g,proxy:f}=getCurrentInstance(),b=ref(!1),m=ref(null),y=ref(!1);useFormChild({validate:J,resetValidation:v});let k=0,a;const q=computed(()=>g.rules!==void 0&&g.rules!==null&&g.rules.length!==0),w=computed(()=>g.disable!==!0&&q.value===!0&&d.value===!1),$=computed(()=>g.error===!0||b.value===!0),Q=computed(()=>typeof g.errorMessage=="string"&&g.errorMessage.length!==0?g.errorMessage:m.value);watch(()=>g.modelValue,()=>{y.value=!0,w.value===!0&&g.lazyRules===!1&&ae()});function C(){g.lazyRules!=="ondemand"&&w.value===!0&&y.value===!0&&ae()}watch(()=>g.reactiveRules,H=>{H===!0?a===void 0&&(a=watch(()=>g.rules,C,{immediate:!0,deep:!0})):a!==void 0&&(a(),a=void 0)},{immediate:!0}),watch(()=>g.lazyRules,C),watch(u,H=>{H===!0?y.value=!0:w.value===!0&&g.lazyRules!=="ondemand"&&ae()});function v(){k++,d.value=!1,y.value=!1,b.value=!1,m.value=null,ae.cancel()}function J(H=g.modelValue){if(g.disable===!0||q.value===!1)return!0;const Y=++k,G=d.value!==!0?()=>{y.value=!0}:()=>{},j=(R,T)=>{R===!0&&G(),b.value=R,m.value=T||null,d.value=!1},L=[];for(let R=0;R<g.rules.length;R++){const T=g.rules[R];let O;if(typeof T=="function"?O=T(H,testPattern):typeof T=="string"&&testPattern[T]!==void 0&&(O=testPattern[T](H)),O===!1||typeof O=="string")return j(!0,O),!1;O!==!0&&O!==void 0&&L.push(O)}return L.length===0?(j(!1),!0):(d.value=!0,Promise.all(L).then(R=>{if(R===void 0||Array.isArray(R)===!1||R.length===0)return Y===k&&j(!1),!0;const T=R.find(O=>O===!1||typeof O=="string");return Y===k&&j(T!==void 0,T),T===void 0},R=>(Y===k&&(console.error(R),j(!0)),!1)))}const ae=debounce(J,0);return onBeforeUnmount(()=>{a!==void 0&&a(),ae.cancel()}),Object.assign(f,{resetValidation:v,validate:J}),injectProp(f,"hasError",()=>$.value),{isDirtyModel:y,hasRules:q,hasError:$,errorMessage:Q,validate:J,resetValidation:v}}function fieldValueIsFilled(u){return u!=null&&(""+u).length!==0}const useNonInputFieldProps={...useDarkProps,...useValidateProps,label:String,stackLabel:Boolean,hint:String,hideHint:Boolean,prefix:String,suffix:String,labelColor:String,color:String,bgColor:String,filled:Boolean,outlined:Boolean,borderless:Boolean,standout:[Boolean,String],square:Boolean,loading:Boolean,labelSlot:Boolean,bottomSlots:Boolean,hideBottomSpace:Boolean,rounded:Boolean,dense:Boolean,itemAligned:Boolean,counter:Boolean,clearable:Boolean,clearIcon:String,disable:Boolean,readonly:Boolean,autofocus:Boolean,for:String},useFieldProps={...useNonInputFieldProps,maxlength:[Number,String]},useFieldEmits=["update:modelValue","clear","focus","blur"];function useFieldState({requiredForAttr:u=!0,tagProp:d,changeEvent:g=!1}={}){const{props:f,proxy:b}=getCurrentInstance(),m=useDark(f,b.$q),y=useId({required:u,getValue:()=>f.for});return{requiredForAttr:u,changeEvent:g,tag:d===!0?computed(()=>f.tag):{value:"label"},isDark:m,editable:computed(()=>f.disable!==!0&&f.readonly!==!0),innerLoading:ref(!1),focused:ref(!1),hasPopupOpen:!1,splitAttrs:useSplitAttrs(),targetUid:y,rootRef:ref(null),targetRef:ref(null),controlRef:ref(null)}}function useField(u){const{props:d,emit:g,slots:f,attrs:b,proxy:m}=getCurrentInstance(),{$q:y}=m;let k=null;u.hasValue===void 0&&(u.hasValue=computed(()=>fieldValueIsFilled(d.modelValue))),u.emitValue===void 0&&(u.emitValue=N=>{g("update:modelValue",N)}),u.controlEvents===void 0&&(u.controlEvents={onFocusin:P,onFocusout:B}),Object.assign(u,{clearValue:M,onControlFocusin:P,onControlFocusout:B,focus:T}),u.computedCounter===void 0&&(u.computedCounter=computed(()=>{if(d.counter!==!1){const N=typeof d.modelValue=="string"||typeof d.modelValue=="number"?(""+d.modelValue).length:Array.isArray(d.modelValue)===!0?d.modelValue.length:0,U=d.maxlength!==void 0?d.maxlength:d.maxValues;return N+(U!==void 0?" / "+U:"")}}));const{isDirtyModel:a,hasRules:q,hasError:w,errorMessage:$,resetValidation:Q}=useValidate(u.focused,u.innerLoading),C=u.floatingLabel!==void 0?computed(()=>d.stackLabel===!0||u.focused.value===!0||u.floatingLabel.value===!0):computed(()=>d.stackLabel===!0||u.focused.value===!0||u.hasValue.value===!0),v=computed(()=>d.bottomSlots===!0||d.hint!==void 0||q.value===!0||d.counter===!0||d.error!==null),J=computed(()=>d.filled===!0?"filled":d.outlined===!0?"outlined":d.borderless===!0?"borderless":d.standout?"standout":"standard"),ae=computed(()=>`q-field row no-wrap items-start q-field--${J.value}`+(u.fieldClass!==void 0?` ${u.fieldClass.value}`:"")+(d.rounded===!0?" q-field--rounded":"")+(d.square===!0?" q-field--square":"")+(C.value===!0?" q-field--float":"")+(Y.value===!0?" q-field--labeled":"")+(d.dense===!0?" q-field--dense":"")+(d.itemAligned===!0?" q-field--item-aligned q-item-type":"")+(u.isDark.value===!0?" q-field--dark":"")+(u.getControl===void 0?" q-field--auto-height":"")+(u.focused.value===!0?" q-field--focused":"")+(w.value===!0?" q-field--error":"")+(w.value===!0||u.focused.value===!0?" q-field--highlighted":"")+(d.hideBottomSpace!==!0&&v.value===!0?" q-field--with-bottom":"")+(d.disable===!0?" q-field--disabled":d.readonly===!0?" q-field--readonly":"")),H=computed(()=>"q-field__control relative-position row no-wrap"+(d.bgColor!==void 0?` bg-${d.bgColor}`:"")+(w.value===!0?" text-negative":typeof d.standout=="string"&&d.standout.length!==0&&u.focused.value===!0?` ${d.standout}`:d.color!==void 0?` text-${d.color}`:"")),Y=computed(()=>d.labelSlot===!0||d.label!==void 0),G=computed(()=>"q-field__label no-pointer-events absolute ellipsis"+(d.labelColor!==void 0&&w.value!==!0?` text-${d.labelColor}`:"")),j=computed(()=>({id:u.targetUid.value,editable:u.editable.value,focused:u.focused.value,floatingLabel:C.value,modelValue:d.modelValue,emitValue:u.emitValue})),L=computed(()=>{const N={};return u.targetUid.value&&(N.for=u.targetUid.value),d.disable===!0&&(N["aria-disabled"]="true"),N});function R(){const N=document.activeElement;let U=u.targetRef!==void 0&&u.targetRef.value;U&&(N===null||N.id!==u.targetUid.value)&&(U.hasAttribute("tabindex")===!0||(U=U.querySelector("[tabindex]")),U&&U!==N&&U.focus({preventScroll:!0}))}function T(){addFocusFn(R)}function O(){removeFocusFn(R);const N=document.activeElement;N!==null&&u.rootRef.value.contains(N)&&N.blur()}function P(N){k!==null&&(clearTimeout(k),k=null),u.editable.value===!0&&u.focused.value===!1&&(u.focused.value=!0,g("focus",N))}function B(N,U){k!==null&&clearTimeout(k),k=setTimeout(()=>{k=null,!(document.hasFocus()===!0&&(u.hasPopupOpen===!0||u.controlRef===void 0||u.controlRef.value===null||u.controlRef.value.contains(document.activeElement)!==!1))&&(u.focused.value===!0&&(u.focused.value=!1,g("blur",N)),U!==void 0&&U())})}function M(N){stopAndPrevent(N),y.platform.is.mobile!==!0?(u.targetRef!==void 0&&u.targetRef.value||u.rootRef.value).focus():u.rootRef.value.contains(document.activeElement)===!0&&document.activeElement.blur(),d.type==="file"&&(u.inputRef.value.value=null),g("update:modelValue",null),u.changeEvent===!0&&g("change",null),g("clear",d.modelValue),nextTick(()=>{const U=a.value;Q(),a.value=U})}function F(N){[13,32].includes(N.keyCode)&&M(N)}function S(){const N=[];return f.prepend!==void 0&&N.push(h("div",{class:"q-field__prepend q-field__marginal row no-wrap items-center",key:"prepend",onClick:prevent},f.prepend())),N.push(h("div",{class:"q-field__control-container col relative-position row no-wrap q-anchor--skip"},A())),w.value===!0&&d.noErrorIcon===!1&&N.push(_("error",[h(QIcon,{name:y.iconSet.field.error,color:"negative"})])),d.loading===!0||u.innerLoading.value===!0?N.push(_("inner-loading-append",f.loading!==void 0?f.loading():[h(QSpinner,{color:d.color})])):d.clearable===!0&&u.hasValue.value===!0&&u.editable.value===!0&&N.push(_("inner-clearable-append",[h(QIcon,{class:"q-field__focusable-action",name:d.clearIcon||y.iconSet.field.clear,tabindex:0,role:"button","aria-hidden":"false","aria-label":y.lang.label.clear,onKeyup:F,onClick:M})])),f.append!==void 0&&N.push(h("div",{class:"q-field__append q-field__marginal row no-wrap items-center",key:"append",onClick:prevent},f.append())),u.getInnerAppend!==void 0&&N.push(_("inner-append",u.getInnerAppend())),u.getControlChild!==void 0&&N.push(u.getControlChild()),N}function A(){const N=[];return d.prefix!==void 0&&d.prefix!==null&&N.push(h("div",{class:"q-field__prefix no-pointer-events row items-center"},d.prefix)),u.getShadowControl!==void 0&&u.hasShadow.value===!0&&N.push(u.getShadowControl()),u.getControl!==void 0?N.push(u.getControl()):f.rawControl!==void 0?N.push(f.rawControl()):f.control!==void 0&&N.push(h("div",{ref:u.targetRef,class:"q-field__native row",tabindex:-1,...u.splitAttrs.attributes.value,"data-autofocus":d.autofocus===!0||void 0},f.control(j.value))),Y.value===!0&&N.push(h("div",{class:G.value},hSlot(f.label,d.label))),d.suffix!==void 0&&d.suffix!==null&&N.push(h("div",{class:"q-field__suffix no-pointer-events row items-center"},d.suffix)),N.concat(hSlot(f.default))}function E(){let N,U;w.value===!0?$.value!==null?(N=[h("div",{role:"alert"},$.value)],U=`q--slot-error-${$.value}`):(N=hSlot(f.error),U="q--slot-error"):(d.hideHint!==!0||u.focused.value===!0)&&(d.hint!==void 0?(N=[h("div",d.hint)],U=`q--slot-hint-${d.hint}`):(N=hSlot(f.hint),U="q--slot-hint"));const z=d.counter===!0||f.counter!==void 0;if(d.hideBottomSpace===!0&&z===!1&&N===void 0)return;const te=h("div",{key:U,class:"q-field__messages col"},N);return h("div",{class:"q-field__bottom row items-start q-field__bottom--"+(d.hideBottomSpace!==!0?"animated":"stale"),onClick:prevent},[d.hideBottomSpace===!0?te:h(Transition,{name:"q-transition--field-message"},()=>te),z===!0?h("div",{class:"q-field__counter"},f.counter!==void 0?f.counter():u.computedCounter.value):null])}function _(N,U){return U===null?null:h("div",{key:N,class:"q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"},U)}let D=!1;return onDeactivated(()=>{D=!0}),onActivated(()=>{D===!0&&d.autofocus===!0&&m.focus()}),d.autofocus===!0&&onMounted(()=>{m.focus()}),onBeforeUnmount(()=>{k!==null&&clearTimeout(k)}),Object.assign(m,{focus:T,blur:O}),function(){const U=u.getControl===void 0&&f.control===void 0?{...u.splitAttrs.attributes.value,"data-autofocus":d.autofocus===!0||void 0,...L.value}:L.value;return h(u.tag.value,{ref:u.rootRef,class:[ae.value,b.class],style:b.style,...U},[f.before!==void 0?h("div",{class:"q-field__before q-field__marginal row no-wrap items-center",onClick:prevent},f.before()):null,h("div",{class:"q-field__inner relative-position col self-stretch"},[h("div",{ref:u.controlRef,class:H.value,tabindex:-1,...u.controlEvents},S()),v.value===!0?E():null]),f.after!==void 0?h("div",{class:"q-field__after q-field__marginal row no-wrap items-center",onClick:prevent},f.after()):null])}}const NAMED_MASKS={date:"####/##/##",datetime:"####/##/## ##:##",time:"##:##",fulltime:"##:##:##",phone:"(###) ### - ####",card:"#### #### #### ####"},TOKENS={"#":{pattern:"[\\d]",negate:"[^\\d]"},S:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]"},N:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]"},A:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:u=>u.toLocaleUpperCase()},a:{pattern:"[a-zA-Z]",negate:"[^a-zA-Z]",transform:u=>u.toLocaleLowerCase()},X:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:u=>u.toLocaleUpperCase()},x:{pattern:"[0-9a-zA-Z]",negate:"[^0-9a-zA-Z]",transform:u=>u.toLocaleLowerCase()}},KEYS=Object.keys(TOKENS);KEYS.forEach(u=>{TOKENS[u].regex=new RegExp(TOKENS[u].pattern)});const tokenRegexMask=new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|(["+KEYS.join("")+"])|(.)","g"),escRegex=/[.*+?^${}()|[\]\\]/g,MARKER=String.fromCharCode(1),useMaskProps={mask:String,reverseFillMask:Boolean,fillMask:[Boolean,String],unmaskedValue:Boolean};function useMask(u,d,g,f){let b,m,y,k,a,q;const w=ref(null),$=ref(C());function Q(){return u.autogrow===!0||["textarea","text","search","url","tel","password"].includes(u.type)}watch(()=>u.type+u.autogrow,J),watch(()=>u.mask,P=>{if(P!==void 0)ae($.value,!0);else{const B=T($.value);J(),u.modelValue!==B&&d("update:modelValue",B)}}),watch(()=>u.fillMask+u.reverseFillMask,()=>{w.value===!0&&ae($.value,!0)}),watch(()=>u.unmaskedValue,()=>{w.value===!0&&ae($.value)});function C(){if(J(),w.value===!0){const P=L(T(u.modelValue));return u.fillMask!==!1?O(P):P}return u.modelValue}function v(P){if(P<b.length)return b.slice(-P);let B="",M=b;const F=M.indexOf(MARKER);if(F!==-1){for(let S=P-M.length;S>0;S--)B+=MARKER;M=M.slice(0,F)+B+M.slice(F)}return M}function J(){if(w.value=u.mask!==void 0&&u.mask.length!==0&&Q(),w.value===!1){k=void 0,b="",m="";return}const P=NAMED_MASKS[u.mask]===void 0?u.mask:NAMED_MASKS[u.mask],B=typeof u.fillMask=="string"&&u.fillMask.length!==0?u.fillMask.slice(0,1):"_",M=B.replace(escRegex,"\\$&"),F=[],S=[],A=[];let E=u.reverseFillMask===!0,_="",D="";P.replace(tokenRegexMask,(te,W,re,ee,X)=>{if(ee!==void 0){const K=TOKENS[ee];A.push(K),D=K.negate,E===!0&&(S.push("(?:"+D+"+)?("+K.pattern+"+)?(?:"+D+"+)?("+K.pattern+"+)?"),E=!1),S.push("(?:"+D+"+)?("+K.pattern+")?")}else if(re!==void 0)_="\\"+(re==="\\"?"":re),A.push(re),F.push("([^"+_+"]+)?"+_+"?");else{const K=W!==void 0?W:X;_=K==="\\"?"\\\\\\\\":K.replace(escRegex,"\\\\$&"),A.push(K),F.push("([^"+_+"]+)?"+_+"?")}});const N=new RegExp("^"+F.join("")+"("+(_===""?".":"[^"+_+"]")+"+)?"+(_===""?"":"["+_+"]*")+"$"),U=S.length-1,z=S.map((te,W)=>W===0&&u.reverseFillMask===!0?new RegExp("^"+M+"*"+te):W===U?new RegExp("^"+te+"("+(D===""?".":D)+"+)?"+(u.reverseFillMask===!0?"$":M+"*")):new RegExp("^"+te));y=A,k=te=>{const W=N.exec(u.reverseFillMask===!0?te:te.slice(0,A.length+1));W!==null&&(te=W.slice(1).join(""));const re=[],ee=z.length;for(let X=0,K=te;X<ee;X++){const Z=z[X].exec(K);if(Z===null)break;K=K.slice(Z.shift().length),re.push(...Z)}return re.length!==0?re.join(""):te},b=A.map(te=>typeof te=="string"?te:MARKER).join(""),m=b.split(MARKER).join(B)}function ae(P,B,M){const F=f.value,S=F.selectionEnd,A=F.value.length-S,E=T(P);B===!0&&J();const _=L(E),D=u.fillMask!==!1?O(_):_,N=$.value!==D;F.value!==D&&(F.value=D),N===!0&&($.value=D),document.activeElement===F&&nextTick(()=>{if(D===m){const z=u.reverseFillMask===!0?m.length:0;F.setSelectionRange(z,z,"forward");return}if(M==="insertFromPaste"&&u.reverseFillMask!==!0){const z=F.selectionEnd;let te=S-1;for(let W=a;W<=te&&W<z;W++)b[W]!==MARKER&&te++;Y.right(F,te);return}if(["deleteContentBackward","deleteContentForward"].indexOf(M)!==-1){const z=u.reverseFillMask===!0?S===0?D.length>_.length?1:0:Math.max(0,D.length-(D===m?0:Math.min(_.length,A)+1))+1:S;F.setSelectionRange(z,z,"forward");return}if(u.reverseFillMask===!0)if(N===!0){const z=Math.max(0,D.length-(D===m?0:Math.min(_.length,A+1)));z===1&&S===1?F.setSelectionRange(z,z,"forward"):Y.rightReverse(F,z)}else{const z=D.length-A;F.setSelectionRange(z,z,"backward")}else if(N===!0){const z=Math.max(0,b.indexOf(MARKER),Math.min(_.length,S)-1);Y.right(F,z)}else{const z=S-1;Y.right(F,z)}});const U=u.unmaskedValue===!0?T(D):D;String(u.modelValue)!==U&&(u.modelValue!==null||U!=="")&&g(U,!0)}function H(P,B,M){const F=L(T(P.value));B=Math.max(0,b.indexOf(MARKER),Math.min(F.length,B)),a=B,P.setSelectionRange(B,M,"forward")}const Y={left(P,B){const M=b.slice(B-1).indexOf(MARKER)===-1;let F=Math.max(0,B-1);for(;F>=0;F--)if(b[F]===MARKER){B=F,M===!0&&B++;break}if(F<0&&b[B]!==void 0&&b[B]!==MARKER)return Y.right(P,0);B>=0&&P.setSelectionRange(B,B,"backward")},right(P,B){const M=P.value.length;let F=Math.min(M,B+1);for(;F<=M;F++)if(b[F]===MARKER){B=F;break}else b[F-1]===MARKER&&(B=F);if(F>M&&b[B-1]!==void 0&&b[B-1]!==MARKER)return Y.left(P,M);P.setSelectionRange(B,B,"forward")},leftReverse(P,B){const M=v(P.value.length);let F=Math.max(0,B-1);for(;F>=0;F--)if(M[F-1]===MARKER){B=F;break}else if(M[F]===MARKER&&(B=F,F===0))break;if(F<0&&M[B]!==void 0&&M[B]!==MARKER)return Y.rightReverse(P,0);B>=0&&P.setSelectionRange(B,B,"backward")},rightReverse(P,B){const M=P.value.length,F=v(M),S=F.slice(0,B+1).indexOf(MARKER)===-1;let A=Math.min(M,B+1);for(;A<=M;A++)if(F[A-1]===MARKER){B=A,B>0&&S===!0&&B--;break}if(A>M&&F[B-1]!==void 0&&F[B-1]!==MARKER)return Y.leftReverse(P,M);P.setSelectionRange(B,B,"forward")}};function G(P){d("click",P),q=void 0}function j(P){if(d("keydown",P),shouldIgnoreKey(P)===!0||P.altKey===!0)return;const B=f.value,M=B.selectionStart,F=B.selectionEnd;if(P.shiftKey||(q=void 0),P.keyCode===37||P.keyCode===39){P.shiftKey&&q===void 0&&(q=B.selectionDirection==="forward"?M:F);const S=Y[(P.keyCode===39?"right":"left")+(u.reverseFillMask===!0?"Reverse":"")];if(P.preventDefault(),S(B,q===M?F:M),P.shiftKey){const A=B.selectionStart;B.setSelectionRange(Math.min(q,A),Math.max(q,A),"forward")}}else P.keyCode===8&&u.reverseFillMask!==!0&&M===F?(Y.left(B,M),B.setSelectionRange(B.selectionStart,F,"backward")):P.keyCode===46&&u.reverseFillMask===!0&&M===F&&(Y.rightReverse(B,F),B.setSelectionRange(M,B.selectionEnd,"forward"))}function L(P){if(P==null||P==="")return"";if(u.reverseFillMask===!0)return R(P);const B=y;let M=0,F="";for(let S=0;S<B.length;S++){const A=P[M],E=B[S];if(typeof E=="string")F+=E,A===E&&M++;else if(A!==void 0&&E.regex.test(A))F+=E.transform!==void 0?E.transform(A):A,M++;else return F}return F}function R(P){const B=y,M=b.indexOf(MARKER);let F=P.length-1,S="";for(let A=B.length-1;A>=0&&F!==-1;A--){const E=B[A];let _=P[F];if(typeof E=="string")S=E+S,_===E&&F--;else if(_!==void 0&&E.regex.test(_))do S=(E.transform!==void 0?E.transform(_):_)+S,F--,_=P[F];while(M===A&&_!==void 0&&E.regex.test(_));else return S}return S}function T(P){return typeof P!="string"||k===void 0?typeof P=="number"?k(""+P):P:k(P)}function O(P){return m.length-P.length<=0?P:u.reverseFillMask===!0&&P.length!==0?m.slice(0,-P.length)+P:P+m.slice(P.length)}return{innerValue:$,hasMask:w,moveCursorForPaste:H,updateMaskValue:ae,onMaskedKeydown:j,onMaskedClick:G}}const useFormProps={name:String};function useFormInject(u={}){return(d,g,f)=>{d[g](h("input",{class:"hidden"+(f||""),...u.value}))}}function useFormInputNameAttr(u){return computed(()=>u.name||u.for)}function useFileFormDomProps(u,d){function g(){const f=u.modelValue;try{const b="DataTransfer"in window?new DataTransfer:"ClipboardEvent"in window?new ClipboardEvent("").clipboardData:void 0;return Object(f)===f&&("length"in f?Array.from(f):[f]).forEach(m=>{b.items.add(m)}),{files:b.files}}catch{return{files:void 0}}}return computed(d===!0?()=>{if(u.type==="file")return g()}:g)}const isJapanese=/[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/,isChinese=/[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u,isKorean=/[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/,isPlainText=/[a-z0-9_ -]$/i;function useKeyComposition(u){return function(g){if(g.type==="compositionend"||g.type==="change"){if(g.target.qComposing!==!0)return;g.target.qComposing=!1,u(g)}else g.type==="compositionupdate"&&g.target.qComposing!==!0&&typeof g.data=="string"&&(client.is.firefox===!0?isPlainText.test(g.data)===!1:isJapanese.test(g.data)===!0||isChinese.test(g.data)===!0||isKorean.test(g.data)===!0)===!0&&(g.target.qComposing=!0)}}var QInput=createComponent({name:"QInput",inheritAttrs:!1,props:{...useFieldProps,...useMaskProps,...useFormProps,modelValue:[String,Number,FileList],shadowText:String,type:{type:String,default:"text"},debounce:[String,Number],autogrow:Boolean,inputClass:[Array,String,Object],inputStyle:[Array,String,Object]},emits:[...useFieldEmits,"paste","change","keydown","click","animationend"],setup(u,{emit:d,attrs:g}){const{proxy:f}=getCurrentInstance(),{$q:b}=f,m={};let y=NaN,k,a,q=null,w;const $=ref(null),Q=useFormInputNameAttr(u),{innerValue:C,hasMask:v,moveCursorForPaste:J,updateMaskValue:ae,onMaskedKeydown:H,onMaskedClick:Y}=useMask(u,d,_,$),G=useFileFormDomProps(u,!0),j=computed(()=>fieldValueIsFilled(C.value)),L=useKeyComposition(A),R=useFieldState({changeEvent:!0}),T=computed(()=>u.type==="textarea"||u.autogrow===!0),O=computed(()=>T.value===!0||["text","search","url","tel","password"].includes(u.type)),P=computed(()=>{const W={...R.splitAttrs.listeners.value,onInput:A,onPaste:S,onChange:N,onBlur:U,onFocus:stop};return W.onCompositionstart=W.onCompositionupdate=W.onCompositionend=L,v.value===!0&&(W.onKeydown=H,W.onClick=Y),u.autogrow===!0&&(W.onAnimationend=E),W}),B=computed(()=>{const W={tabindex:0,"data-autofocus":u.autofocus===!0||void 0,rows:u.type==="textarea"?6:void 0,"aria-label":u.label,name:Q.value,...R.splitAttrs.attributes.value,id:R.targetUid.value,maxlength:u.maxlength,disabled:u.disable===!0,readonly:u.readonly===!0};return T.value===!1&&(W.type=u.type),u.autogrow===!0&&(W.rows=1),W});watch(()=>u.type,()=>{$.value&&($.value.value=u.modelValue)}),watch(()=>u.modelValue,W=>{if(v.value===!0){if(a===!0&&(a=!1,String(W)===y))return;ae(W)}else C.value!==W&&(C.value=W,u.type==="number"&&m.hasOwnProperty("value")===!0&&(k===!0?k=!1:delete m.value));u.autogrow===!0&&nextTick(D)}),watch(()=>u.autogrow,W=>{W===!0?nextTick(D):$.value!==null&&g.rows>0&&($.value.style.height="auto")}),watch(()=>u.dense,()=>{u.autogrow===!0&&nextTick(D)});function M(){addFocusFn(()=>{const W=document.activeElement;$.value!==null&&$.value!==W&&(W===null||W.id!==R.targetUid.value)&&$.value.focus({preventScroll:!0})})}function F(){$.value!==null&&$.value.select()}function S(W){if(v.value===!0&&u.reverseFillMask!==!0){const re=W.target;J(re,re.selectionStart,re.selectionEnd)}d("paste",W)}function A(W){if(!W||!W.target)return;if(u.type==="file"){d("update:modelValue",W.target.files);return}const re=W.target.value;if(W.target.qComposing===!0){m.value=re;return}if(v.value===!0)ae(re,!1,W.inputType);else if(_(re),O.value===!0&&W.target===document.activeElement){const{selectionStart:ee,selectionEnd:X}=W.target;ee!==void 0&&X!==void 0&&nextTick(()=>{W.target===document.activeElement&&re.indexOf(W.target.value)===0&&W.target.setSelectionRange(ee,X)})}u.autogrow===!0&&D()}function E(W){d("animationend",W),D()}function _(W,re){w=()=>{q=null,u.type!=="number"&&m.hasOwnProperty("value")===!0&&delete m.value,u.modelValue!==W&&y!==W&&(y=W,re===!0&&(a=!0),d("update:modelValue",W),nextTick(()=>{y===W&&(y=NaN)})),w=void 0},u.type==="number"&&(k=!0,m.value=W),u.debounce!==void 0?(q!==null&&clearTimeout(q),m.value=W,q=setTimeout(w,u.debounce)):w()}function D(){requestAnimationFrame(()=>{const W=$.value;if(W!==null){const re=W.parentNode.style,{scrollTop:ee}=W,{overflowY:X,maxHeight:K}=b.platform.is.firefox===!0?{}:window.getComputedStyle(W),Z=X!==void 0&&X!=="scroll";Z===!0&&(W.style.overflowY="hidden"),re.marginBottom=W.scrollHeight-1+"px",W.style.height="1px",W.style.height=W.scrollHeight+"px",Z===!0&&(W.style.overflowY=parseInt(K,10)<W.scrollHeight?"auto":"hidden"),re.marginBottom="",W.scrollTop=ee}})}function N(W){L(W),q!==null&&(clearTimeout(q),q=null),w!==void 0&&w(),d("change",W.target.value)}function U(W){W!==void 0&&stop(W),q!==null&&(clearTimeout(q),q=null),w!==void 0&&w(),k=!1,a=!1,delete m.value,u.type!=="file"&&setTimeout(()=>{$.value!==null&&($.value.value=C.value!==void 0?C.value:"")})}function z(){return m.hasOwnProperty("value")===!0?m.value:C.value!==void 0?C.value:""}onBeforeUnmount(()=>{U()}),onMounted(()=>{u.autogrow===!0&&D()}),Object.assign(R,{innerValue:C,fieldClass:computed(()=>`q-${T.value===!0?"textarea":"input"}`+(u.autogrow===!0?" q-textarea--autogrow":"")),hasShadow:computed(()=>u.type!=="file"&&typeof u.shadowText=="string"&&u.shadowText.length!==0),inputRef:$,emitValue:_,hasValue:j,floatingLabel:computed(()=>j.value===!0&&(u.type!=="number"||isNaN(C.value)===!1)||fieldValueIsFilled(u.displayValue)),getControl:()=>h(T.value===!0?"textarea":"input",{ref:$,class:["q-field__native q-placeholder",u.inputClass],style:u.inputStyle,...B.value,...P.value,...u.type!=="file"?{value:z()}:G.value}),getShadowControl:()=>h("div",{class:"q-field__native q-field__shadow absolute-bottom no-pointer-events"+(T.value===!0?"":" text-no-wrap")},[h("span",{class:"invisible"},z()),h("span",u.shadowText)])});const te=useField(R);return Object.assign(f,{focus:M,select:F,getNativeElement:()=>$.value}),injectProp(f,"nativeEl",()=>$.value),te}}),QForm=createComponent({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validationSuccess","validationError"],setup(u,{slots:d,emit:g}){const f=getCurrentInstance(),b=ref(null);let m=0;const y=[];function k(C){const v=typeof C=="boolean"?C:u.noErrorFocus!==!0,J=++m,ae=(G,j)=>{g(`validation${G===!0?"Success":"Error"}`,j)},H=G=>{const j=G.validate();return typeof j.then=="function"?j.then(L=>({valid:L,comp:G}),L=>({valid:!1,comp:G,err:L})):Promise.resolve({valid:j,comp:G})};return(u.greedy===!0?Promise.all(y.map(H)).then(G=>G.filter(j=>j.valid!==!0)):y.reduce((G,j)=>G.then(()=>H(j).then(L=>{if(L.valid===!1)return Promise.reject(L)})),Promise.resolve()).catch(G=>[G])).then(G=>{if(G===void 0||G.length===0)return J===m&&ae(!0),!0;if(J===m){const{comp:j,err:L}=G[0];if(L!==void 0&&console.error(L),ae(!1,j),v===!0){const R=G.find(({comp:T})=>typeof T.focus=="function"&&vmIsDestroyed(T.$)===!1);R!==void 0&&R.comp.focus()}}return!1})}function a(){m++,y.forEach(C=>{typeof C.resetValidation=="function"&&C.resetValidation()})}function q(C){C!==void 0&&stopAndPrevent(C);const v=m+1;k().then(J=>{v===m&&J===!0&&(u.onSubmit!==void 0?g("submit",C):C!==void 0&&C.target!==void 0&&typeof C.target.submit=="function"&&C.target.submit())})}function w(C){C!==void 0&&stopAndPrevent(C),g("reset"),nextTick(()=>{a(),u.autofocus===!0&&u.noResetFocus!==!0&&$()})}function $(){addFocusFn(()=>{if(b.value===null)return;const C=b.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||b.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||b.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(b.value.querySelectorAll("[tabindex]"),v=>v.tabIndex!==-1);C!=null&&C.focus({preventScroll:!0})})}provide(formKey,{bindComponent(C){y.push(C)},unbindComponent(C){const v=y.indexOf(C);v!==-1&&y.splice(v,1)}});let Q=!1;return onDeactivated(()=>{Q=!0}),onActivated(()=>{Q===!0&&u.autofocus===!0&&$()}),onMounted(()=>{u.autofocus===!0&&$()}),Object.assign(f.proxy,{validate:k,resetValidation:a,submit:q,reset:w,focus:$,getValidationComponents:()=>y}),()=>h("form",{class:"q-form",ref:b,onSubmit:q,onReset:w},hSlot(d.default))}});function bind(u,d){return function(){return u.apply(d,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(u=>d=>{const g=toString.call(d);return u[g]||(u[g]=g.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=u=>(u=u.toLowerCase(),d=>kindOf(d)===u),typeOfTest=u=>d=>typeof d===u,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(u){return u!==null&&!isUndefined(u)&&u.constructor!==null&&!isUndefined(u.constructor)&&isFunction(u.constructor.isBuffer)&&u.constructor.isBuffer(u)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(u){let d;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?d=ArrayBuffer.isView(u):d=u&&u.buffer&&isArrayBuffer(u.buffer),d}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber$2=typeOfTest("number"),isObject=u=>u!==null&&typeof u=="object",isBoolean=u=>u===!0||u===!1,isPlainObject=u=>{if(kindOf(u)!=="object")return!1;const d=getPrototypeOf(u);return(d===null||d===Object.prototype||Object.getPrototypeOf(d)===null)&&!(Symbol.toStringTag in u)&&!(Symbol.iterator in u)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=u=>isObject(u)&&isFunction(u.pipe),isFormData=u=>{let d;return u&&(typeof FormData=="function"&&u instanceof FormData||isFunction(u.append)&&((d=kindOf(u))==="formdata"||d==="object"&&isFunction(u.toString)&&u.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=u=>u.trim?u.trim():u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(u,d,{allOwnKeys:g=!1}={}){if(u===null||typeof u=="undefined")return;let f,b;if(typeof u!="object"&&(u=[u]),isArray(u))for(f=0,b=u.length;f<b;f++)d.call(null,u[f],f,u);else{const m=g?Object.getOwnPropertyNames(u):Object.keys(u),y=m.length;let k;for(f=0;f<y;f++)k=m[f],d.call(null,u[k],k,u)}}function findKey(u,d){d=d.toLowerCase();const g=Object.keys(u);let f=g.length,b;for(;f-- >0;)if(b=g[f],d===b.toLowerCase())return b;return null}const _global=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),isContextDefined=u=>!isUndefined(u)&&u!==_global;function merge(){const{caseless:u}=isContextDefined(this)&&this||{},d={},g=(f,b)=>{const m=u&&findKey(d,b)||b;isPlainObject(d[m])&&isPlainObject(f)?d[m]=merge(d[m],f):isPlainObject(f)?d[m]=merge({},f):isArray(f)?d[m]=f.slice():d[m]=f};for(let f=0,b=arguments.length;f<b;f++)arguments[f]&&forEach(arguments[f],g);return d}const extend=(u,d,g,{allOwnKeys:f}={})=>(forEach(d,(b,m)=>{g&&isFunction(b)?u[m]=bind(b,g):u[m]=b},{allOwnKeys:f}),u),stripBOM=u=>(u.charCodeAt(0)===65279&&(u=u.slice(1)),u),inherits=(u,d,g,f)=>{u.prototype=Object.create(d.prototype,f),u.prototype.constructor=u,Object.defineProperty(u,"super",{value:d.prototype}),g&&Object.assign(u.prototype,g)},toFlatObject=(u,d,g,f)=>{let b,m,y;const k={};if(d=d||{},u==null)return d;do{for(b=Object.getOwnPropertyNames(u),m=b.length;m-- >0;)y=b[m],(!f||f(y,u,d))&&!k[y]&&(d[y]=u[y],k[y]=!0);u=g!==!1&&getPrototypeOf(u)}while(u&&(!g||g(u,d))&&u!==Object.prototype);return d},endsWith=(u,d,g)=>{u=String(u),(g===void 0||g>u.length)&&(g=u.length),g-=d.length;const f=u.indexOf(d,g);return f!==-1&&f===g},toArray=u=>{if(!u)return null;if(isArray(u))return u;let d=u.length;if(!isNumber$2(d))return null;const g=new Array(d);for(;d-- >0;)g[d]=u[d];return g},isTypedArray=(u=>d=>u&&d instanceof u)(typeof Uint8Array!="undefined"&&getPrototypeOf(Uint8Array)),forEachEntry=(u,d)=>{const f=(u&&u[Symbol.iterator]).call(u);let b;for(;(b=f.next())&&!b.done;){const m=b.value;d.call(u,m[0],m[1])}},matchAll=(u,d)=>{let g;const f=[];for(;(g=u.exec(d))!==null;)f.push(g);return f},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=u=>u.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(g,f,b){return f.toUpperCase()+b}),hasOwnProperty=(({hasOwnProperty:u})=>(d,g)=>u.call(d,g))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(u,d)=>{const g=Object.getOwnPropertyDescriptors(u),f={};forEach(g,(b,m)=>{let y;(y=d(b,m,u))!==!1&&(f[m]=y||b)}),Object.defineProperties(u,f)},freezeMethods=u=>{reduceDescriptors(u,(d,g)=>{if(isFunction(u)&&["arguments","caller","callee"].indexOf(g)!==-1)return!1;const f=u[g];if(!!isFunction(f)){if(d.enumerable=!1,"writable"in d){d.writable=!1;return}d.set||(d.set=()=>{throw Error("Can not rewrite read-only method '"+g+"'")})}})},toObjectSet=(u,d)=>{const g={},f=b=>{b.forEach(m=>{g[m]=!0})};return isArray(u)?f(u):f(String(u).split(d)),g},noop=()=>{},toFiniteNumber=(u,d)=>u!=null&&Number.isFinite(u=+u)?u:d,ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(u=16,d=ALPHABET.ALPHA_DIGIT)=>{let g="";const{length:f}=d;for(;u--;)g+=d[Math.random()*f|0];return g};function isSpecCompliantForm(u){return!!(u&&isFunction(u.append)&&u[Symbol.toStringTag]==="FormData"&&u[Symbol.iterator])}const toJSONObject=u=>{const d=new Array(10),g=(f,b)=>{if(isObject(f)){if(d.indexOf(f)>=0)return;if(!("toJSON"in f)){d[b]=f;const m=isArray(f)?[]:{};return forEach(f,(y,k)=>{const a=g(y,b+1);!isUndefined(a)&&(m[k]=a)}),d[b]=void 0,m}}return f};return g(u,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=u=>u&&(isObject(u)||isFunction(u))&&isFunction(u.then)&&isFunction(u.catch),_setImmediate=((u,d)=>u?setImmediate:d?((g,f)=>(_global.addEventListener("message",({source:b,data:m})=>{b===_global&&m===g&&f.length&&f.shift()()},!1),b=>{f.push(b),_global.postMessage(g,"*")}))(`axios@${Math.random()}`,[]):g=>setTimeout(g))(typeof setImmediate=="function",isFunction(_global.postMessage)),asap=typeof queueMicrotask!="undefined"?queueMicrotask.bind(_global):typeof process!="undefined"&&process.nextTick||_setImmediate;var utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber:isNumber$2,isBoolean,isObject,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap};function AxiosError(u,d,g,f,b){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=u,this.name="AxiosError",d&&(this.code=d),g&&(this.config=g),f&&(this.request=f),b&&(this.response=b,this.status=b.status?b.status:null)}utils$1.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(u=>{descriptors[u]={value:u}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(u,d,g,f,b,m)=>{const y=Object.create(prototype$1);return utils$1.toFlatObject(u,y,function(a){return a!==Error.prototype},k=>k!=="isAxiosError"),AxiosError.call(y,u.message,d,g,f,b),y.cause=u,y.name=u.name,m&&Object.assign(y,m),y};var httpAdapter=null;function isVisitable(u){return utils$1.isPlainObject(u)||utils$1.isArray(u)}function removeBrackets(u){return utils$1.endsWith(u,"[]")?u.slice(0,-2):u}function renderKey(u,d,g){return u?u.concat(d).map(function(b,m){return b=removeBrackets(b),!g&&m?"["+b+"]":b}).join(g?".":""):d}function isFlatArray(u){return utils$1.isArray(u)&&!u.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(d){return/^is[A-Z]/.test(d)});function toFormData(u,d,g){if(!utils$1.isObject(u))throw new TypeError("target must be an object");d=d||new FormData,g=utils$1.toFlatObject(g,{metaTokens:!0,dots:!1,indexes:!1},!1,function(J,ae){return!utils$1.isUndefined(ae[J])});const f=g.metaTokens,b=g.visitor||w,m=g.dots,y=g.indexes,a=(g.Blob||typeof Blob!="undefined"&&Blob)&&utils$1.isSpecCompliantForm(d);if(!utils$1.isFunction(b))throw new TypeError("visitor must be a function");function q(v){if(v===null)return"";if(utils$1.isDate(v))return v.toISOString();if(!a&&utils$1.isBlob(v))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(v)||utils$1.isTypedArray(v)?a&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function w(v,J,ae){let H=v;if(v&&!ae&&typeof v=="object"){if(utils$1.endsWith(J,"{}"))J=f?J:J.slice(0,-2),v=JSON.stringify(v);else if(utils$1.isArray(v)&&isFlatArray(v)||(utils$1.isFileList(v)||utils$1.endsWith(J,"[]"))&&(H=utils$1.toArray(v)))return J=removeBrackets(J),H.forEach(function(G,j){!(utils$1.isUndefined(G)||G===null)&&d.append(y===!0?renderKey([J],j,m):y===null?J:J+"[]",q(G))}),!1}return isVisitable(v)?!0:(d.append(renderKey(ae,J,m),q(v)),!1)}const $=[],Q=Object.assign(predicates,{defaultVisitor:w,convertValue:q,isVisitable});function C(v,J){if(!utils$1.isUndefined(v)){if($.indexOf(v)!==-1)throw Error("Circular reference detected in "+J.join("."));$.push(v),utils$1.forEach(v,function(H,Y){(!(utils$1.isUndefined(H)||H===null)&&b.call(d,H,utils$1.isString(Y)?Y.trim():Y,J,Q))===!0&&C(H,J?J.concat(Y):[Y])}),$.pop()}}if(!utils$1.isObject(u))throw new TypeError("data must be an object");return C(u),d}function encode$2(u){const d={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(u).replace(/[!'()~]|%20|%00/g,function(f){return d[f]})}function AxiosURLSearchParams(u,d){this._pairs=[],u&&toFormData(u,this,d)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(d,g){this._pairs.push([d,g])};prototype.toString=function(d){const g=d?function(f){return d.call(this,f,encode$2)}:encode$2;return this._pairs.map(function(b){return g(b[0])+"="+g(b[1])},"").join("&")};function encode$1(u){return encodeURIComponent(u).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(u,d,g){if(!d)return u;const f=g&&g.encode||encode$1;utils$1.isFunction(g)&&(g={serialize:g});const b=g&&g.serialize;let m;if(b?m=b(d,g):m=utils$1.isURLSearchParams(d)?d.toString():new AxiosURLSearchParams(d,g).toString(f),m){const y=u.indexOf("#");y!==-1&&(u=u.slice(0,y)),u+=(u.indexOf("?")===-1?"?":"&")+m}return u}class InterceptorManager{constructor(){this.handlers=[]}use(d,g,f){return this.handlers.push({fulfilled:d,rejected:g,synchronous:f?f.synchronous:!1,runWhen:f?f.runWhen:null}),this.handlers.length-1}eject(d){this.handlers[d]&&(this.handlers[d]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(d){utils$1.forEach(this.handlers,function(f){f!==null&&d(f)})}}var InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams!="undefined"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData!="undefined"?FormData:null,Blob$1=typeof Blob!="undefined"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]};const hasBrowserEnv=typeof window!="undefined"&&typeof document!="undefined",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),origin=hasBrowserEnv&&window.location.href||"http://localhost";var utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserWebWorkerEnv,hasStandardBrowserEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(u,d){return toFormData(u,new platform.classes.URLSearchParams,Object.assign({visitor:function(g,f,b,m){return platform.isNode&&utils$1.isBuffer(g)?(this.append(f,g.toString("base64")),!1):m.defaultVisitor.apply(this,arguments)}},d))}function parsePropPath(u){return utils$1.matchAll(/\w+|\[(\w*)]/g,u).map(d=>d[0]==="[]"?"":d[1]||d[0])}function arrayToObject(u){const d={},g=Object.keys(u);let f;const b=g.length;let m;for(f=0;f<b;f++)m=g[f],d[m]=u[m];return d}function formDataToJSON(u){function d(g,f,b,m){let y=g[m++];if(y==="__proto__")return!0;const k=Number.isFinite(+y),a=m>=g.length;return y=!y&&utils$1.isArray(b)?b.length:y,a?(utils$1.hasOwnProp(b,y)?b[y]=[b[y],f]:b[y]=f,!k):((!b[y]||!utils$1.isObject(b[y]))&&(b[y]=[]),d(g,f,b[y],m)&&utils$1.isArray(b[y])&&(b[y]=arrayToObject(b[y])),!k)}if(utils$1.isFormData(u)&&utils$1.isFunction(u.entries)){const g={};return utils$1.forEachEntry(u,(f,b)=>{d(parsePropPath(f),b,g,0)}),g}return null}function stringifySafely(u,d,g){if(utils$1.isString(u))try{return(d||JSON.parse)(u),utils$1.trim(u)}catch(f){if(f.name!=="SyntaxError")throw f}return(g||JSON.stringify)(u)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(d,g){const f=g.getContentType()||"",b=f.indexOf("application/json")>-1,m=utils$1.isObject(d);if(m&&utils$1.isHTMLForm(d)&&(d=new FormData(d)),utils$1.isFormData(d))return b?JSON.stringify(formDataToJSON(d)):d;if(utils$1.isArrayBuffer(d)||utils$1.isBuffer(d)||utils$1.isStream(d)||utils$1.isFile(d)||utils$1.isBlob(d)||utils$1.isReadableStream(d))return d;if(utils$1.isArrayBufferView(d))return d.buffer;if(utils$1.isURLSearchParams(d))return g.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),d.toString();let k;if(m){if(f.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(d,this.formSerializer).toString();if((k=utils$1.isFileList(d))||f.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return toFormData(k?{"files[]":d}:d,a&&new a,this.formSerializer)}}return m||b?(g.setContentType("application/json",!1),stringifySafely(d)):d}],transformResponse:[function(d){const g=this.transitional||defaults$1.transitional,f=g&&g.forcedJSONParsing,b=this.responseType==="json";if(utils$1.isResponse(d)||utils$1.isReadableStream(d))return d;if(d&&utils$1.isString(d)&&(f&&!this.responseType||b)){const y=!(g&&g.silentJSONParsing)&&b;try{return JSON.parse(d)}catch(k){if(y)throw k.name==="SyntaxError"?AxiosError.from(k,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):k}}return d}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(d){return d>=200&&d<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],u=>{defaults$1.headers[u]={}});var defaults$2=defaults$1;const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=u=>{const d={};let g,f,b;return u&&u.split(`
29
29
  `).forEach(function(y){b=y.indexOf(":"),g=y.substring(0,b).trim().toLowerCase(),f=y.substring(b+1).trim(),!(!g||d[g]&&ignoreDuplicateOf[g])&&(g==="set-cookie"?d[g]?d[g].push(f):d[g]=[f]:d[g]=d[g]?d[g]+", "+f:f)}),d};const $internals=Symbol("internals");function normalizeHeader(u){return u&&String(u).trim().toLowerCase()}function normalizeValue(u){return u===!1||u==null?u:utils$1.isArray(u)?u.map(normalizeValue):String(u)}function parseTokens(u){const d=Object.create(null),g=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let f;for(;f=g.exec(u);)d[f[1]]=f[2];return d}const isValidHeaderName=u=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(u.trim());function matchHeaderValue(u,d,g,f,b){if(utils$1.isFunction(f))return f.call(this,d,g);if(b&&(d=g),!!utils$1.isString(d)){if(utils$1.isString(f))return d.indexOf(f)!==-1;if(utils$1.isRegExp(f))return f.test(d)}}function formatHeader(u){return u.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(d,g,f)=>g.toUpperCase()+f)}function buildAccessors(u,d){const g=utils$1.toCamelCase(" "+d);["get","set","has"].forEach(f=>{Object.defineProperty(u,f+g,{value:function(b,m,y){return this[f].call(this,d,b,m,y)},configurable:!0})})}class AxiosHeaders{constructor(d){d&&this.set(d)}set(d,g,f){const b=this;function m(k,a,q){const w=normalizeHeader(a);if(!w)throw new Error("header name must be a non-empty string");const $=utils$1.findKey(b,w);(!$||b[$]===void 0||q===!0||q===void 0&&b[$]!==!1)&&(b[$||a]=normalizeValue(k))}const y=(k,a)=>utils$1.forEach(k,(q,w)=>m(q,w,a));if(utils$1.isPlainObject(d)||d instanceof this.constructor)y(d,g);else if(utils$1.isString(d)&&(d=d.trim())&&!isValidHeaderName(d))y(parseHeaders(d),g);else if(utils$1.isHeaders(d))for(const[k,a]of d.entries())m(a,k,f);else d!=null&&m(g,d,f);return this}get(d,g){if(d=normalizeHeader(d),d){const f=utils$1.findKey(this,d);if(f){const b=this[f];if(!g)return b;if(g===!0)return parseTokens(b);if(utils$1.isFunction(g))return g.call(this,b,f);if(utils$1.isRegExp(g))return g.exec(b);throw new TypeError("parser must be boolean|regexp|function")}}}has(d,g){if(d=normalizeHeader(d),d){const f=utils$1.findKey(this,d);return!!(f&&this[f]!==void 0&&(!g||matchHeaderValue(this,this[f],f,g)))}return!1}delete(d,g){const f=this;let b=!1;function m(y){if(y=normalizeHeader(y),y){const k=utils$1.findKey(f,y);k&&(!g||matchHeaderValue(f,f[k],k,g))&&(delete f[k],b=!0)}}return utils$1.isArray(d)?d.forEach(m):m(d),b}clear(d){const g=Object.keys(this);let f=g.length,b=!1;for(;f--;){const m=g[f];(!d||matchHeaderValue(this,this[m],m,d,!0))&&(delete this[m],b=!0)}return b}normalize(d){const g=this,f={};return utils$1.forEach(this,(b,m)=>{const y=utils$1.findKey(f,m);if(y){g[y]=normalizeValue(b),delete g[m];return}const k=d?formatHeader(m):String(m).trim();k!==m&&delete g[m],g[k]=normalizeValue(b),f[k]=!0}),this}concat(...d){return this.constructor.concat(this,...d)}toJSON(d){const g=Object.create(null);return utils$1.forEach(this,(f,b)=>{f!=null&&f!==!1&&(g[b]=d&&utils$1.isArray(f)?f.join(", "):f)}),g}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([d,g])=>d+": "+g).join(`
30
30
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(d){return d instanceof this?d:new this(d)}static concat(d,...g){const f=new this(d);return g.forEach(b=>f.set(b)),f}static accessor(d){const f=(this[$internals]=this[$internals]={accessors:{}}).accessors,b=this.prototype;function m(y){const k=normalizeHeader(y);f[k]||(buildAccessors(b,y),f[k]=!0)}return utils$1.isArray(d)?d.forEach(m):m(d),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:u},d)=>{let g=d[0].toUpperCase()+d.slice(1);return{get:()=>u,set(f){this[g]=f}}});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;function transformData(u,d){const g=this||defaults$2,f=d||g,b=AxiosHeaders$1.from(f.headers);let m=f.data;return utils$1.forEach(u,function(k){m=k.call(g,m,b.normalize(),d?d.status:void 0)}),b.normalize(),m}function isCancel(u){return!!(u&&u.__CANCEL__)}function CanceledError(u,d,g){AxiosError.call(this,u==null?"canceled":u,AxiosError.ERR_CANCELED,d,g),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(u,d,g){const f=g.config.validateStatus;!g.status||!f||f(g.status)?u(g):d(new AxiosError("Request failed with status code "+g.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(g.status/100)-4],g.config,g.request,g))}function parseProtocol(u){const d=/^([-+\w]{1,25})(:?\/\/|:)/.exec(u);return d&&d[1]||""}function speedometer(u,d){u=u||10;const g=new Array(u),f=new Array(u);let b=0,m=0,y;return d=d!==void 0?d:1e3,function(a){const q=Date.now(),w=f[m];y||(y=q),g[b]=a,f[b]=q;let $=m,Q=0;for(;$!==b;)Q+=g[$++],$=$%u;if(b=(b+1)%u,b===m&&(m=(m+1)%u),q-y<d)return;const C=w&&q-w;return C?Math.round(Q*1e3/C):void 0}}function throttle(u,d){let g=0,f=1e3/d,b,m;const y=(q,w=Date.now())=>{g=w,b=null,m&&(clearTimeout(m),m=null),u.apply(null,q)};return[(...q)=>{const w=Date.now(),$=w-g;$>=f?y(q,w):(b=q,m||(m=setTimeout(()=>{m=null,y(b)},f-$)))},()=>b&&y(b)]}const progressEventReducer=(u,d,g=3)=>{let f=0;const b=speedometer(50,250);return throttle(m=>{const y=m.loaded,k=m.lengthComputable?m.total:void 0,a=y-f,q=b(a),w=y<=k;f=y;const $={loaded:y,total:k,progress:k?y/k:void 0,bytes:a,rate:q||void 0,estimated:q&&k&&w?(k-y)/q:void 0,event:m,lengthComputable:k!=null,[d?"download":"upload"]:!0};u($)},g)},progressEventDecorator=(u,d)=>{const g=u!=null;return[f=>d[0]({lengthComputable:g,total:u,loaded:f}),d[1]]},asyncDecorator=u=>(...d)=>utils$1.asap(()=>u(...d));var isURLSameOrigin=platform.hasStandardBrowserEnv?((u,d)=>g=>(g=new URL(g,platform.origin),u.protocol===g.protocol&&u.host===g.host&&(d||u.port===g.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(u,d,g,f,b,m){const y=[u+"="+encodeURIComponent(d)];utils$1.isNumber(g)&&y.push("expires="+new Date(g).toGMTString()),utils$1.isString(f)&&y.push("path="+f),utils$1.isString(b)&&y.push("domain="+b),m===!0&&y.push("secure"),document.cookie=y.join("; ")},read(u){const d=document.cookie.match(new RegExp("(^|;\\s*)("+u+")=([^;]*)"));return d?decodeURIComponent(d[3]):null},remove(u){this.write(u,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(u){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(u)}function combineURLs(u,d){return d?u.replace(/\/?\/$/,"")+"/"+d.replace(/^\/+/,""):u}function buildFullPath(u,d){return u&&!isAbsoluteURL(d)?combineURLs(u,d):d}const headersToObject=u=>u instanceof AxiosHeaders$1?{...u}:u;function mergeConfig(u,d){d=d||{};const g={};function f(q,w,$,Q){return utils$1.isPlainObject(q)&&utils$1.isPlainObject(w)?utils$1.merge.call({caseless:Q},q,w):utils$1.isPlainObject(w)?utils$1.merge({},w):utils$1.isArray(w)?w.slice():w}function b(q,w,$,Q){if(utils$1.isUndefined(w)){if(!utils$1.isUndefined(q))return f(void 0,q,$,Q)}else return f(q,w,$,Q)}function m(q,w){if(!utils$1.isUndefined(w))return f(void 0,w)}function y(q,w){if(utils$1.isUndefined(w)){if(!utils$1.isUndefined(q))return f(void 0,q)}else return f(void 0,w)}function k(q,w,$){if($ in d)return f(q,w);if($ in u)return f(void 0,q)}const a={url:m,method:m,data:m,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:k,headers:(q,w,$)=>b(headersToObject(q),headersToObject(w),$,!0)};return utils$1.forEach(Object.keys(Object.assign({},u,d)),function(w){const $=a[w]||b,Q=$(u[w],d[w],w);utils$1.isUndefined(Q)&&$!==k||(g[w]=Q)}),g}var resolveConfig=u=>{const d=mergeConfig({},u);let{data:g,withXSRFToken:f,xsrfHeaderName:b,xsrfCookieName:m,headers:y,auth:k}=d;d.headers=y=AxiosHeaders$1.from(y),d.url=buildURL(buildFullPath(d.baseURL,d.url),u.params,u.paramsSerializer),k&&y.set("Authorization","Basic "+btoa((k.username||"")+":"+(k.password?unescape(encodeURIComponent(k.password)):"")));let a;if(utils$1.isFormData(g)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((a=y.getContentType())!==!1){const[q,...w]=a?a.split(";").map($=>$.trim()).filter(Boolean):[];y.setContentType([q||"multipart/form-data",...w].join("; "))}}if(platform.hasStandardBrowserEnv&&(f&&utils$1.isFunction(f)&&(f=f(d)),f||f!==!1&&isURLSameOrigin(d.url))){const q=b&&m&&cookies.read(m);q&&y.set(b,q)}return d};const isXHRAdapterSupported=typeof XMLHttpRequest!="undefined";var xhrAdapter=isXHRAdapterSupported&&function(u){return new Promise(function(g,f){const b=resolveConfig(u);let m=b.data;const y=AxiosHeaders$1.from(b.headers).normalize();let{responseType:k,onUploadProgress:a,onDownloadProgress:q}=b,w,$,Q,C,v;function J(){C&&C(),v&&v(),b.cancelToken&&b.cancelToken.unsubscribe(w),b.signal&&b.signal.removeEventListener("abort",w)}let ae=new XMLHttpRequest;ae.open(b.method.toUpperCase(),b.url,!0),ae.timeout=b.timeout;function H(){if(!ae)return;const G=AxiosHeaders$1.from("getAllResponseHeaders"in ae&&ae.getAllResponseHeaders()),L={data:!k||k==="text"||k==="json"?ae.responseText:ae.response,status:ae.status,statusText:ae.statusText,headers:G,config:u,request:ae};settle(function(T){g(T),J()},function(T){f(T),J()},L),ae=null}"onloadend"in ae?ae.onloadend=H:ae.onreadystatechange=function(){!ae||ae.readyState!==4||ae.status===0&&!(ae.responseURL&&ae.responseURL.indexOf("file:")===0)||setTimeout(H)},ae.onabort=function(){!ae||(f(new AxiosError("Request aborted",AxiosError.ECONNABORTED,u,ae)),ae=null)},ae.onerror=function(){f(new AxiosError("Network Error",AxiosError.ERR_NETWORK,u,ae)),ae=null},ae.ontimeout=function(){let j=b.timeout?"timeout of "+b.timeout+"ms exceeded":"timeout exceeded";const L=b.transitional||transitionalDefaults;b.timeoutErrorMessage&&(j=b.timeoutErrorMessage),f(new AxiosError(j,L.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,u,ae)),ae=null},m===void 0&&y.setContentType(null),"setRequestHeader"in ae&&utils$1.forEach(y.toJSON(),function(j,L){ae.setRequestHeader(L,j)}),utils$1.isUndefined(b.withCredentials)||(ae.withCredentials=!!b.withCredentials),k&&k!=="json"&&(ae.responseType=b.responseType),q&&([Q,v]=progressEventReducer(q,!0),ae.addEventListener("progress",Q)),a&&ae.upload&&([$,C]=progressEventReducer(a),ae.upload.addEventListener("progress",$),ae.upload.addEventListener("loadend",C)),(b.cancelToken||b.signal)&&(w=G=>{!ae||(f(!G||G.type?new CanceledError(null,u,ae):G),ae.abort(),ae=null)},b.cancelToken&&b.cancelToken.subscribe(w),b.signal&&(b.signal.aborted?w():b.signal.addEventListener("abort",w)));const Y=parseProtocol(b.url);if(Y&&platform.protocols.indexOf(Y)===-1){f(new AxiosError("Unsupported protocol "+Y+":",AxiosError.ERR_BAD_REQUEST,u));return}ae.send(m||null)})};const composeSignals=(u,d)=>{const{length:g}=u=u?u.filter(Boolean):[];if(d||g){let f=new AbortController,b;const m=function(q){if(!b){b=!0,k();const w=q instanceof Error?q:this.reason;f.abort(w instanceof AxiosError?w:new CanceledError(w instanceof Error?w.message:w))}};let y=d&&setTimeout(()=>{y=null,m(new AxiosError(`timeout ${d} of ms exceeded`,AxiosError.ETIMEDOUT))},d);const k=()=>{u&&(y&&clearTimeout(y),y=null,u.forEach(q=>{q.unsubscribe?q.unsubscribe(m):q.removeEventListener("abort",m)}),u=null)};u.forEach(q=>q.addEventListener("abort",m));const{signal:a}=f;return a.unsubscribe=()=>utils$1.asap(k),a}};var composeSignals$1=composeSignals;const streamChunk=function*(u,d){let g=u.byteLength;if(!d||g<d){yield u;return}let f=0,b;for(;f<g;)b=f+d,yield u.slice(f,b),f=b},readBytes=async function*(u,d){for await(const g of readStream(u))yield*streamChunk(g,d)},readStream=async function*(u){if(u[Symbol.asyncIterator]){yield*u;return}const d=u.getReader();try{for(;;){const{done:g,value:f}=await d.read();if(g)break;yield f}}finally{await d.cancel()}},trackStream=(u,d,g,f)=>{const b=readBytes(u,d);let m=0,y,k=a=>{y||(y=!0,f&&f(a))};return new ReadableStream({async pull(a){try{const{done:q,value:w}=await b.next();if(q){k(),a.close();return}let $=w.byteLength;if(g){let Q=m+=$;g(Q)}a.enqueue(new Uint8Array(w))}catch(q){throw k(q),q}},cancel(a){return k(a),b.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(u=>d=>u.encode(d))(new TextEncoder):async u=>new Uint8Array(await new Response(u).arrayBuffer())),test=(u,...d)=>{try{return!!u(...d)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let u=!1;const d=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return u=!0,"half"}}).headers.has("Content-Type");return u&&!d}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$1.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(u=>u.body)};isFetchSupported&&(u=>{["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!resolvers[d]&&(resolvers[d]=utils$1.isFunction(u[d])?g=>g[d]():(g,f)=>{throw new AxiosError(`Response type '${d}' is not supported`,AxiosError.ERR_NOT_SUPPORT,f)})})})(new Response);const getBodyLength=async u=>{if(u==null)return 0;if(utils$1.isBlob(u))return u.size;if(utils$1.isSpecCompliantForm(u))return(await new Request(platform.origin,{method:"POST",body:u}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(u)||utils$1.isArrayBuffer(u))return u.byteLength;if(utils$1.isURLSearchParams(u)&&(u=u+""),utils$1.isString(u))return(await encodeText(u)).byteLength},resolveBodyLength=async(u,d)=>{const g=utils$1.toFiniteNumber(u.getContentLength());return g==null?getBodyLength(d):g};var fetchAdapter=isFetchSupported&&(async u=>{let{url:d,method:g,data:f,signal:b,cancelToken:m,timeout:y,onDownloadProgress:k,onUploadProgress:a,responseType:q,headers:w,withCredentials:$="same-origin",fetchOptions:Q}=resolveConfig(u);q=q?(q+"").toLowerCase():"text";let C=composeSignals$1([b,m&&m.toAbortSignal()],y),v;const J=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let ae;try{if(a&&supportsRequestStream&&g!=="get"&&g!=="head"&&(ae=await resolveBodyLength(w,f))!==0){let L=new Request(d,{method:"POST",body:f,duplex:"half"}),R;if(utils$1.isFormData(f)&&(R=L.headers.get("content-type"))&&w.setContentType(R),L.body){const[T,O]=progressEventDecorator(ae,progressEventReducer(asyncDecorator(a)));f=trackStream(L.body,DEFAULT_CHUNK_SIZE,T,O)}}utils$1.isString($)||($=$?"include":"omit");const H="credentials"in Request.prototype;v=new Request(d,{...Q,signal:C,method:g.toUpperCase(),headers:w.normalize().toJSON(),body:f,duplex:"half",credentials:H?$:void 0});let Y=await fetch(v);const G=supportsResponseStream&&(q==="stream"||q==="response");if(supportsResponseStream&&(k||G&&J)){const L={};["status","statusText","headers"].forEach(P=>{L[P]=Y[P]});const R=utils$1.toFiniteNumber(Y.headers.get("content-length")),[T,O]=k&&progressEventDecorator(R,progressEventReducer(asyncDecorator(k),!0))||[];Y=new Response(trackStream(Y.body,DEFAULT_CHUNK_SIZE,T,()=>{O&&O(),J&&J()}),L)}q=q||"text";let j=await resolvers[utils$1.findKey(resolvers,q)||"text"](Y,u);return!G&&J&&J(),await new Promise((L,R)=>{settle(L,R,{data:j,headers:AxiosHeaders$1.from(Y.headers),status:Y.status,statusText:Y.statusText,config:u,request:v})})}catch(H){throw J&&J(),H&&H.name==="TypeError"&&/fetch/i.test(H.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,u,v),{cause:H.cause||H}):AxiosError.from(H,H&&H.code,u,v)}});const knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(u,d)=>{if(u){try{Object.defineProperty(u,"name",{value:d})}catch{}Object.defineProperty(u,"adapterName",{value:d})}});const renderReason=u=>`- ${u}`,isResolvedHandle=u=>utils$1.isFunction(u)||u===null||u===!1;var adapters={getAdapter:u=>{u=utils$1.isArray(u)?u:[u];const{length:d}=u;let g,f;const b={};for(let m=0;m<d;m++){g=u[m];let y;if(f=g,!isResolvedHandle(g)&&(f=knownAdapters[(y=String(g)).toLowerCase()],f===void 0))throw new AxiosError(`Unknown adapter '${y}'`);if(f)break;b[y||"#"+m]=f}if(!f){const m=Object.entries(b).map(([k,a])=>`adapter ${k} `+(a===!1?"is not supported by the environment":"is not available in the build"));let y=d?m.length>1?`since :
31
31
  `+m.map(renderReason).join(`
32
32
  `):" "+renderReason(m[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return f},adapters:knownAdapters};function throwIfCancellationRequested(u){if(u.cancelToken&&u.cancelToken.throwIfRequested(),u.signal&&u.signal.aborted)throw new CanceledError(null,u)}function dispatchRequest(u){return throwIfCancellationRequested(u),u.headers=AxiosHeaders$1.from(u.headers),u.data=transformData.call(u,u.transformRequest),["post","put","patch"].indexOf(u.method)!==-1&&u.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(u.adapter||defaults$2.adapter)(u).then(function(f){return throwIfCancellationRequested(u),f.data=transformData.call(u,u.transformResponse,f),f.headers=AxiosHeaders$1.from(f.headers),f},function(f){return isCancel(f)||(throwIfCancellationRequested(u),f&&f.response&&(f.response.data=transformData.call(u,u.transformResponse,f.response),f.response.headers=AxiosHeaders$1.from(f.response.headers))),Promise.reject(f)})}const VERSION="1.7.8",validators$1={};["object","boolean","number","function","string","symbol"].forEach((u,d)=>{validators$1[u]=function(f){return typeof f===u||"a"+(d<1?"n ":" ")+u}});const deprecatedWarnings={};validators$1.transitional=function(d,g,f){function b(m,y){return"[Axios v"+VERSION+"] Transitional option '"+m+"'"+y+(f?". "+f:"")}return(m,y,k)=>{if(d===!1)throw new AxiosError(b(y," has been removed"+(g?" in "+g:"")),AxiosError.ERR_DEPRECATED);return g&&!deprecatedWarnings[y]&&(deprecatedWarnings[y]=!0,console.warn(b(y," has been deprecated since v"+g+" and will be removed in the near future"))),d?d(m,y,k):!0}};validators$1.spelling=function(d){return(g,f)=>(console.warn(`${f} is likely a misspelling of ${d}`),!0)};function assertOptions(u,d,g){if(typeof u!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const f=Object.keys(u);let b=f.length;for(;b-- >0;){const m=f[b],y=d[m];if(y){const k=u[m],a=k===void 0||y(k,m,u);if(a!==!0)throw new AxiosError("option "+m+" must be "+a,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(g!==!0)throw new AxiosError("Unknown option "+m,AxiosError.ERR_BAD_OPTION)}}var validator={assertOptions,validators:validators$1};const validators=validator.validators;class Axios{constructor(d){this.defaults=d,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}async request(d,g){try{return await this._request(d,g)}catch(f){if(f instanceof Error){let b={};Error.captureStackTrace?Error.captureStackTrace(b):b=new Error;const m=b.stack?b.stack.replace(/^.+\n/,""):"";try{f.stack?m&&!String(f.stack).endsWith(m.replace(/^.+\n.+\n/,""))&&(f.stack+=`
33
- `+m):f.stack=m}catch{}}throw f}}_request(d,g){typeof d=="string"?(g=g||{},g.url=d):g=d||{},g=mergeConfig(this.defaults,g);const{transitional:f,paramsSerializer:b,headers:m}=g;f!==void 0&&validator.assertOptions(f,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),b!=null&&(utils$1.isFunction(b)?g.paramsSerializer={serialize:b}:validator.assertOptions(b,{encode:validators.function,serialize:validators.function},!0)),validator.assertOptions(g,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),g.method=(g.method||this.defaults.method||"get").toLowerCase();let y=m&&utils$1.merge(m.common,m[g.method]);m&&utils$1.forEach(["delete","get","head","post","put","patch","common"],v=>{delete m[v]}),g.headers=AxiosHeaders$1.concat(y,m);const k=[];let a=!0;this.interceptors.request.forEach(function(J){typeof J.runWhen=="function"&&J.runWhen(g)===!1||(a=a&&J.synchronous,k.unshift(J.fulfilled,J.rejected))});const q=[];this.interceptors.response.forEach(function(J){q.push(J.fulfilled,J.rejected)});let w,$=0,Q;if(!a){const v=[dispatchRequest.bind(this),void 0];for(v.unshift.apply(v,k),v.push.apply(v,q),Q=v.length,w=Promise.resolve(g);$<Q;)w=w.then(v[$++],v[$++]);return w}Q=k.length;let C=g;for($=0;$<Q;){const v=k[$++],J=k[$++];try{C=v(C)}catch(ae){J.call(this,ae);break}}try{w=dispatchRequest.call(this,C)}catch(v){return Promise.reject(v)}for($=0,Q=q.length;$<Q;)w=w.then(q[$++],q[$++]);return w}getUri(d){d=mergeConfig(this.defaults,d);const g=buildFullPath(d.baseURL,d.url);return buildURL(g,d.params,d.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(d){Axios.prototype[d]=function(g,f){return this.request(mergeConfig(f||{},{method:d,url:g,data:(f||{}).data}))}});utils$1.forEach(["post","put","patch"],function(d){function g(f){return function(m,y,k){return this.request(mergeConfig(k||{},{method:d,headers:f?{"Content-Type":"multipart/form-data"}:{},url:m,data:y}))}}Axios.prototype[d]=g(),Axios.prototype[d+"Form"]=g(!0)});var Axios$1=Axios;class CancelToken{constructor(d){if(typeof d!="function")throw new TypeError("executor must be a function.");let g;this.promise=new Promise(function(m){g=m});const f=this;this.promise.then(b=>{if(!f._listeners)return;let m=f._listeners.length;for(;m-- >0;)f._listeners[m](b);f._listeners=null}),this.promise.then=b=>{let m;const y=new Promise(k=>{f.subscribe(k),m=k}).then(b);return y.cancel=function(){f.unsubscribe(m)},y},d(function(m,y,k){f.reason||(f.reason=new CanceledError(m,y,k),g(f.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(d){if(this.reason){d(this.reason);return}this._listeners?this._listeners.push(d):this._listeners=[d]}unsubscribe(d){if(!this._listeners)return;const g=this._listeners.indexOf(d);g!==-1&&this._listeners.splice(g,1)}toAbortSignal(){const d=new AbortController,g=f=>{d.abort(f)};return this.subscribe(g),d.signal.unsubscribe=()=>this.unsubscribe(g),d.signal}static source(){let d;return{token:new CancelToken(function(b){d=b}),cancel:d}}}var CancelToken$1=CancelToken;function spread(u){return function(g){return u.apply(null,g)}}function isAxiosError(u){return utils$1.isObject(u)&&u.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([u,d])=>{HttpStatusCode[d]=u});var HttpStatusCode$1=HttpStatusCode;function createInstance(u){const d=new Axios$1(u),g=bind(Axios$1.prototype.request,d);return utils$1.extend(g,Axios$1.prototype,d,{allOwnKeys:!0}),utils$1.extend(g,d,null,{allOwnKeys:!0}),g.create=function(b){return createInstance(mergeConfig(u,b))},g}const axios$2=createInstance(defaults$2);axios$2.Axios=Axios$1;axios$2.CanceledError=CanceledError;axios$2.CancelToken=CancelToken$1;axios$2.isCancel=isCancel;axios$2.VERSION=VERSION;axios$2.toFormData=toFormData;axios$2.AxiosError=AxiosError;axios$2.Cancel=axios$2.CanceledError;axios$2.all=function(d){return Promise.all(d)};axios$2.spread=spread;axios$2.isAxiosError=isAxiosError;axios$2.mergeConfig=mergeConfig;axios$2.AxiosHeaders=AxiosHeaders$1;axios$2.formToJSON=u=>formDataToJSON(utils$1.isHTMLForm(u)?new FormData(u):u);axios$2.getAdapter=adapters.getAdapter;axios$2.HttpStatusCode=HttpStatusCode$1;axios$2.default=axios$2;var axios$3=axios$2;let url=window.location.origin;const api=axios$3.create({baseURL:`${url}/api`});var axios=({app:u})=>{u.config.globalProperties.$axios=axios$3,u.config.globalProperties.$api=api},axios$1=Object.freeze(Object.defineProperty({__proto__:null,default:axios,api},Symbol.toStringTag,{value:"Module"}));const useMainStore=defineStore("main",{state:()=>({apiReadonly:!0,auth:{},config:{},version:"",showHiddenFiles:!1,buckets:[]}),getters:{serverUrl(){return window.location.origin}},actions:{async loadServerConfigs(u,d,g=!1){try{const f=await api.get("/server/config",{validateStatus:m=>m>=200&&m<300});this.apiReadonly=f.data.config.readonly,this.config=f.data.config,this.auth=f.data.auth,this.version=f.data.version,this.showHiddenFiles=f.data.config.showHiddenFiles,this.buckets=f.data.buckets;const b=new URL(window.location.href);return b.searchParams.get("next")?await u.replace(b.searchParams.get("next")):(b.pathname==="/"||b.pathname==="/auth/login")&&await u.push({name:"files-home",params:{bucket:this.buckets[0].name}}),!0}catch(f){if(console.log(f),f.response.status===302){const b=f.response.headers.Location;b&&window.location.replace(b)}if(g){const b=await f.response.data;if(b==="Authentication error: Basic Auth required"){await u.push({name:"login",query:{next:u.currentRoute.value.fullPath}});return}d.notify({type:"negative",message:b,timeout:1e4})}else throw f}return!1}}}),ROOT_FOLDER="IA==";function mapFile(u,d){const g=new Date(u.uploaded);return{...u,hash:encode(u.key),nameHash:encode(u.key.replace(d,"")),name:u.key.replace(d,""),lastModified:timeSince(g),timestamp:g.getTime(),size:bytesToSize(u.size),sizeRaw:u.size,type:"file",icon:"article",color:"grey"}}const timeSince=u=>{const d=Math.floor((new Date-u)/1e3);let g=d/31536e3,f;return g>1||(g=d/2592e3,g>1)||(g=d/86400,g>1)?u.toLocaleDateString():(g=d/3600,g>1?(f=Math.floor(g),f+(f===1?" hour":" hours")):(g=d/60,g>1?(f=Math.floor(g),f+(f===1?" minute":" minutes")):(f=Math.floor(g),f+(f===1?" second":" seconds"))))},bytesToSize=u=>{const d=["Bytes","KB","MB","GB","TB"];if(u===0)return"0 Byte";const g=Number.parseInt(Math.floor(Math.log(u)/Math.log(1024)));return`${Math.round(u/1024**g,2)} ${d[g]}`},bytesToMegabytes=u=>Math.round(u/1024**2),encode=u=>(u&&u!=="/"&&u.startsWith("/")&&(u=u.slice(1)),btoa(unescape(encodeURIComponent(u)))),decode=u=>decodeURIComponent(escape(atob(u))),apiHandler={createFolder:(u,d)=>api.post(`/buckets/${d}/folder`,{key:encode(u)}),deleteObject:(u,d)=>api.post(`/buckets/${d}/delete`,{key:encode(u)}),downloadFile:(u,d,g,f,b)=>{const m={};return(g.downloadType==="objectUrl"||g.downloadType==="blob")&&(m.responseType="arraybuffer"),b&&(m.signal=b.signal),f&&(m.onDownloadProgress=f),api.get(`/buckets/${u}/${encode(d)}`,m)},headFile:async(u,d)=>{let g="";d.includes("/")&&(g=d.replace(d.split("/").pop(),""));const f=await api.get(`/buckets/${u}/${encode(d)}/head`);if(f.status===200)return mapFile(f.data,g)},renameObject:(u,d,g)=>api.post(`/buckets/${u}/move`,{oldKey:encode(d),newKey:encode(g)}),updateMetadata:async(u,d,g,f={})=>{let b="";d.includes("/")&&(b=d.replace(d.split("/").pop(),""));const m=await api.post(`/buckets/${u}/${encode(d)}`,{customMetadata:g,httpMetadata:f});if(m.status===200)return mapFile(m.data,b)},multipartCreate:(u,d,g)=>api.post(`/buckets/${g}/multipart/create`,null,{params:{key:encode(d),httpMetadata:encode(JSON.stringify({contentType:u.type}))}}),multipartComplete:(u,d,g,f,b)=>api.post(`/buckets/${g}/multipart/complete`,{key:encode(d),uploadId:b,parts:f}),multipartUpload:(u,d,g,f,b,m)=>api.post(`/buckets/${g}/multipart/upload`,b,{params:{key:encode(f),uploadId:u,partNumber:d},onUploadProgress:m,headers:{"Content-Type":"multipart/form-data"}}),uploadObjects:(u,d,g,f)=>api.post(`/buckets/${g}/upload`,u,{params:{key:encode(d),httpMetadata:encode(JSON.stringify({contentType:u.type}))},headers:{"Content-Type":"multipart/form-data"},onUploadProgress:f}),listObjects:async(u,d,g="/",f=null)=>await api.get(`/buckets/${u}?include=customMetadata&include=httpMetadata`,{params:{delimiter:g,prefix:d&&d!=="/"?encode(d):"",cursor:f}}),fetchFile:async(u,d,g="/")=>{const f=useMainStore();let b=!0,m=null;const y=[],k=[];for(;b;){const a=await apiHandler.listObjects(u,d,g,m);if(b=a.data.truncated,m=a.data.cursor,a.data.objects){const q=a.data.objects.filter(w=>!(w.key.endsWith("/")&&g!=="")&&w.key!==d).map(w=>mapFile(w,d)).filter(w=>!(f.showHiddenFiles!==!0&&w.name.startsWith(".")));for(const w of q)y.push(w)}if(a.data.delimitedPrefixes){const q=a.data.delimitedPrefixes.map(w=>({name:w.replace(d,""),hash:encode(w.key),key:w,lastModified:"--",timestamp:0,size:"--",sizeRaw:0,type:"folder",icon:"folder",color:"orange"})).filter(w=>!(f.showHiddenFiles!==!0&&w.name.startsWith(".")));for(const w of q)k.push(w)}}return[...k,...y]}},_sfc_main$i=defineComponent({name:"CreateFile",data:()=>({modal:!1,newFileName:"",loading:!1}),methods:{cancel:function(){this.modal=!1,this.newFileName="",this.loading=!1},onSubmit:async function(){this.loading=!0;const u=new Blob([""],{type:"text/plain"});await apiHandler.uploadObjects(u,this.selectedFolder+this.newFileName,this.selectedBucket),this.$bus.emit("fetchFiles"),this.loading=!1,this.modal=!1,this.newFileName=""},open:function(){this.modal=!0}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},setup(){return{mainStore:useMainStore()}}});function _sfc_render$h(u,d,g,f,b,m){return openBlock(),createBlock(QDialog,{modelValue:u.modal,"onUpdate:modelValue":d[1]||(d[1]=y=>u.modal=y),onHide:u.cancel},{default:withCtx(()=>[createVNode(QCard,{style:{"min-width":"350px"}},{default:withCtx(()=>[createVNode(QForm,{onSubmit:u.onSubmit},{default:withCtx(()=>[createVNode(QCardSection,null,{default:withCtx(()=>d[2]||(d[2]=[createBaseVNode("div",{class:"text-h6"},"New File Name",-1)])),_:1}),createVNode(QCardSection,{class:"q-pt-none"},{default:withCtx(()=>[createVNode(QInput,{dense:"",modelValue:u.newFileName,"onUpdate:modelValue":d[0]||(d[0]=y=>u.newFileName=y),autofocus:"","lazy-rules":"",rules:[y=>y&&y.length>0||"Please type something"]},null,8,["modelValue","rules"])]),_:1}),createVNode(QCardActions,{align:"right",class:"text-primary"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Create",type:"submit",loading:u.loading},null,8,["loading"])]),_:1})]),_:1},8,["onSubmit"])]),_:1})]),_:1},8,["modelValue","onHide"])}var CreateFile=_export_sfc(_sfc_main$i,[["render",_sfc_render$h]]);const _sfc_main$h=defineComponent({name:"CreateFolder",data:()=>({modal:!1,newFolderName:"",loading:!1}),methods:{cancel:function(){this.modal=!1,this.newFolderName="",this.loading=!1},onSubmit:async function(){this.loading=!0,await apiHandler.createFolder(`${this.selectedFolder+this.newFolderName}/`,this.selectedBucket),this.$bus.emit("fetchFiles"),this.loading=!1,this.modal=!1,this.newFolderName=""},open:function(){this.modal=!0}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},setup(){return{mainStore:useMainStore()}}});function _sfc_render$g(u,d,g,f,b,m){return openBlock(),createBlock(QDialog,{modelValue:u.modal,"onUpdate:modelValue":d[1]||(d[1]=y=>u.modal=y),onHide:u.cancel},{default:withCtx(()=>[createVNode(QCard,{style:{"min-width":"350px"}},{default:withCtx(()=>[createVNode(QForm,{onSubmit:u.onSubmit},{default:withCtx(()=>[createVNode(QCardSection,null,{default:withCtx(()=>d[2]||(d[2]=[createBaseVNode("div",{class:"text-h6"},"New Folder Name",-1)])),_:1}),createVNode(QCardSection,{class:"q-pt-none"},{default:withCtx(()=>[createVNode(QInput,{dense:"",modelValue:u.newFolderName,"onUpdate:modelValue":d[0]||(d[0]=y=>u.newFolderName=y),autofocus:"","lazy-rules":"",rules:[y=>y&&y.length>0||"Please type something"]},null,8,["modelValue","rules"])]),_:1}),createVNode(QCardActions,{align:"right",class:"text-primary"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Create",type:"submit",loading:u.loading},null,8,["loading"])]),_:1})]),_:1},8,["onSubmit"])]),_:1})]),_:1},8,["modelValue","onHide"])}var CreateFolder=_export_sfc(_sfc_main$h,[["render",_sfc_render$g]]),LeftSidebar_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$g=defineComponent({name:"LeftSidebar",data:()=>({infoPopup:!1,updateAvailable:!1,latestVersion:""}),components:{CreateFolder,CreateFile},methods:{gotoEmail:function(){this.selectedApp!=="email"&&this.changeApp("email")},gotoFiles:function(){this.selectedApp!=="files"&&this.changeApp("files")},changeApp:function(u){this.$router.push({name:`${u}-home`,params:{bucket:this.selectedBucket}})},isUpdateAvailable:(u,d)=>{const g=u.split(".").map(Number),f=d.split(".").map(Number);return f[0]>g[0]?!0:f[0]<g[0]?!1:f[1]>g[1]?!0:f[1]<g[1]?!1:f[2]>g[2]}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedApp:function(){return this.$route.name.split("-")[0]}},async mounted(){const u=await fetch("https://api.github.com/repos/G4brym/R2-Explorer/releases/latest");if(!u.ok)console.log("Unable to retrieve latest r2-explorer updates :("),console.log("Manually check them here: https://github.com/G4brym/R2-Explorer/releases");else{const g=(await u.json()).tag_name.replace("v","");this.isUpdateAvailable(this.mainStore.version,g)&&(this.latestVersion=g,this.updateAvailable=!0)}},setup(){return{mainStore:useMainStore()}}}),_hoisted_1$9={class:"q-pa-md",style:{height:"100%"}},_hoisted_2$5={class:"flex column",style:{height:"100%"}};function _sfc_render$f(u,d,g,f,b,m){const y=resolveComponent("create-folder"),k=resolveComponent("create-file");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$9,[createBaseVNode("div",_hoisted_2$5,[createVNode(QBtn,{color:"green",icon:"add",stack:"",class:"q-mb-lg",label:"New"},{default:withCtx(()=>[createVNode(QMenu,null,{default:withCtx(()=>[createVNode(QList,null,{default:withCtx(()=>[withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:d[0]||(d[0]=a=>u.$refs.createFile.open())},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>[createVNode(QItemLabel,null,{default:withCtx(()=>[createVNode(QIcon,{name:"note_add",size:"sm"}),d[6]||(d[6]=createTextVNode(" New File "))]),_:1})]),_:1})]),_:1})),[[ClosePopup]]),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:d[1]||(d[1]=a=>u.$refs.createFolder.open())},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>[createVNode(QItemLabel,null,{default:withCtx(()=>[createVNode(QIcon,{name:"create_new_folder",size:"sm"}),d[7]||(d[7]=createTextVNode(" New Folder "))]),_:1})]),_:1})]),_:1})),[[ClosePopup]]),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:d[2]||(d[2]=a=>u.$bus.emit("openFilesUploader"))},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>[createVNode(QItemLabel,null,{default:withCtx(()=>[createVNode(QIcon,{name:"upload_file",size:"sm"}),d[8]||(d[8]=createTextVNode(" Upload Files "))]),_:1})]),_:1})]),_:1})),[[ClosePopup]]),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:d[3]||(d[3]=a=>u.$bus.emit("openFoldersUploader"))},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>[createVNode(QItemLabel,null,{default:withCtx(()=>[createVNode(QIcon,{name:"folder",size:"sm"}),d[9]||(d[9]=createTextVNode(" Upload Folders "))]),_:1})]),_:1})]),_:1})),[[ClosePopup]])]),_:1})]),_:1})]),_:1}),createVNode(QBtn,{class:"q-mb-sm",onClick:u.gotoFiles,color:"blue",icon:"folder_copy",label:"Files",stack:""},null,8,["onClick"]),createVNode(QBtn,{class:"q-mb-sm",onClick:u.gotoEmail,color:"blue",icon:"email",label:"Email",stack:""},null,8,["onClick"]),createVNode(QBtn,{class:"q-mb-sm q-mt-auto q-mb-0",onClick:d[4]||(d[4]=a=>u.infoPopup=!0),color:"secondary",icon:"question_mark",label:"Info",stack:""})])]),createVNode(QDialog,{modelValue:u.infoPopup,"onUpdate:modelValue":d[5]||(d[5]=a=>u.infoPopup=a),persistent:"","no-route-dismiss":""},{default:withCtx(()=>[createVNode(QCard,null,{default:withCtx(()=>[createVNode(QCardSection,null,{default:withCtx(()=>d[10]||(d[10]=[createBaseVNode("div",{class:"text-h6"},"\u{1F389} Thank you for using R2-Explorer! \u{1F680}",-1)])),_:1}),createVNode(QCardSection,{class:"q-pt-none"},{default:withCtx(()=>[d[19]||(d[19]=createTextVNode(" You are running version ")),createBaseVNode("b",null,toDisplayString(u.mainStore.version),1),d[20]||(d[20]=createBaseVNode("br",null,null,-1)),u.updateAvailable?(openBlock(),createElementBlock(Fragment,{key:0},[d[11]||(d[11]=createTextVNode(" Latest version is ")),createBaseVNode("b",null,toDisplayString(u.latestVersion),1),d[12]||(d[12]=createTextVNode(", learn how to ")),d[13]||(d[13]=createBaseVNode("a",{href:"https://r2explorer.dev/getting-started/updating-your-project/",target:"_blank"},"update your instance here",-1)),d[14]||(d[14]=createTextVNode(".")),d[15]||(d[15]=createBaseVNode("br",null,null,-1))],64)):createCommentVNode("",!0),d[21]||(d[21]=createBaseVNode("br",null,null,-1)),u.mainStore.auth?(openBlock(),createElementBlock(Fragment,{key:1},[d[16]||(d[16]=createBaseVNode("b",null,"Authentication",-1)),d[17]||(d[17]=createBaseVNode("br",null,null,-1)),createTextVNode(" Method: "+toDisplayString(u.mainStore.auth.type),1),d[18]||(d[18]=createBaseVNode("br",null,null,-1)),createTextVNode(" Username: "+toDisplayString(u.mainStore.auth.username),1)],64)):(openBlock(),createElementBlock(Fragment,{key:2},[createTextVNode(" Not authenticated ")],64)),d[22]||(d[22]=createBaseVNode("br",null,null,-1)),d[23]||(d[23]=createBaseVNode("br",null,null,-1)),d[24]||(d[24]=createBaseVNode("b",null,"Server Configuration",-1)),d[25]||(d[25]=createBaseVNode("br",null,null,-1)),createTextVNode(" "+toDisplayString(JSON.stringify(u.mainStore.config,null,2)),1)]),_:1}),createVNode(QCardActions,{align:"right"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"OK",color:"primary"},null,512),[[ClosePopup]])]),_:1})]),_:1})]),_:1},8,["modelValue"]),createVNode(y,{ref:"createFolder"},null,512),createVNode(k,{ref:"createFile"},null,512)],64)}var LeftSidebar=_export_sfc(_sfc_main$g,[["render",_sfc_render$f],["__scopeId","data-v-65a54291"]]),QTh=createComponent({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(u,{slots:d,emit:g}){const f=getCurrentInstance(),{proxy:{$q:b}}=f,m=y=>{g("click",y)};return()=>{if(u.props===void 0)return h("th",{class:u.autoWidth===!0?"q-table--col-auto-width":"",onClick:m},hSlot(d.default));let y,k;const a=f.vnode.key;if(a){if(y=u.props.colsMap[a],y===void 0)return}else y=u.props.col;if(y.sortable===!0){const w=y.align==="right"?"unshift":"push";k=hUniqueSlot(d.default,[]),k[w](h(QIcon,{class:y.__iconClass,name:b.iconSet.table.arrowUp}))}else k=hSlot(d.default);const q={class:y.__thClass+(u.autoWidth===!0?" q-table--col-auto-width":""),style:y.headerStyle,onClick:w=>{y.sortable===!0&&u.props.sort(y),m(w)}};return h("th",q,k)}}});const insetMap={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},margins={xs:2,sm:4,md:8,lg:16,xl:24};var QSeparator=createComponent({name:"QSeparator",props:{...useDarkProps,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(u){const d=getCurrentInstance(),g=useDark(u,d.proxy.$q),f=computed(()=>u.vertical===!0?"vertical":"horizontal"),b=computed(()=>` q-separator--${f.value}`),m=computed(()=>u.inset!==!1?`${b.value}-${insetMap[u.inset]}`:""),y=computed(()=>`q-separator${b.value}${m.value}`+(u.color!==void 0?` bg-${u.color}`:"")+(g.value===!0?" q-separator--dark":"")),k=computed(()=>{const a={};if(u.size!==void 0&&(a[u.vertical===!0?"width":"height"]=u.size),u.spaced!==!1){const q=u.spaced===!0?`${margins.md}px`:u.spaced in margins?`${margins[u.spaced]}px`:u.spaced,w=u.vertical===!0?["Left","Right"]:["Top","Bottom"];a[`margin${w[0]}`]=a[`margin${w[1]}`]=q}return a});return()=>h("hr",{class:y.value,style:k.value,"aria-orientation":f.value})}});const separatorValues=["horizontal","vertical","cell","none"];var QMarkupTable=createComponent({name:"QMarkupTable",props:{...useDarkProps,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:u=>separatorValues.includes(u)}},setup(u,{slots:d}){const g=getCurrentInstance(),f=useDark(u,g.proxy.$q),b=computed(()=>`q-markup-table q-table__container q-table__card q-table--${u.separator}-separator`+(f.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(u.dense===!0?" q-table--dense":"")+(u.flat===!0?" q-table--flat":"")+(u.bordered===!0?" q-table--bordered":"")+(u.square===!0?" q-table--square":"")+(u.wrapCells===!1?" q-table--no-wrap":""));return()=>h("div",{class:b.value},[h("table",{class:"q-table"},hSlot(d.default))])}});function getTableMiddle(u,d){return h("div",u,[h("table",{class:"q-table"},d)])}let rtlHasScrollBug=!1;{const u=document.createElement("div");u.setAttribute("dir","rtl"),Object.assign(u.style,{width:"1px",height:"1px",overflow:"auto"});const d=document.createElement("div");Object.assign(d.style,{width:"1000px",height:"1px"}),document.body.appendChild(u),u.appendChild(d),u.scrollLeft=-1e3,rtlHasScrollBug=u.scrollLeft>=0,u.remove()}const aggBucketSize=1e3,scrollToEdges=["start","center","end","start-force","center-force","end-force"],filterProto=Array.prototype.filter,setOverflowAnchor=window.getComputedStyle(document.body).overflowAnchor===void 0?noop$3:function(u,d){u!==null&&(u._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(u._qOverflowAnimationFrame),u._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(u===null)return;u._qOverflowAnimationFrame=void 0;const g=u.children||[];filterProto.call(g,b=>b.dataset&&b.dataset.qVsAnchor!==void 0).forEach(b=>{delete b.dataset.qVsAnchor});const f=g[d];f&&f.dataset&&(f.dataset.qVsAnchor="")}))};function sumFn(u,d){return u+d}function getScrollDetails(u,d,g,f,b,m,y,k){const a=u===window?document.scrollingElement||document.documentElement:u,q=b===!0?"offsetWidth":"offsetHeight",w={scrollStart:0,scrollViewSize:-y-k,scrollMaxSize:0,offsetStart:-y,offsetEnd:-k};if(b===!0?(u===window?(w.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,w.scrollViewSize+=document.documentElement.clientWidth):(w.scrollStart=a.scrollLeft,w.scrollViewSize+=a.clientWidth),w.scrollMaxSize=a.scrollWidth,m===!0&&(w.scrollStart=(rtlHasScrollBug===!0?w.scrollMaxSize-w.scrollViewSize:0)-w.scrollStart)):(u===window?(w.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,w.scrollViewSize+=document.documentElement.clientHeight):(w.scrollStart=a.scrollTop,w.scrollViewSize+=a.clientHeight),w.scrollMaxSize=a.scrollHeight),g!==null)for(let $=g.previousElementSibling;$!==null;$=$.previousElementSibling)$.classList.contains("q-virtual-scroll--skip")===!1&&(w.offsetStart+=$[q]);if(f!==null)for(let $=f.nextElementSibling;$!==null;$=$.nextElementSibling)$.classList.contains("q-virtual-scroll--skip")===!1&&(w.offsetEnd+=$[q]);if(d!==u){const $=a.getBoundingClientRect(),Q=d.getBoundingClientRect();b===!0?(w.offsetStart+=Q.left-$.left,w.offsetEnd-=Q.width):(w.offsetStart+=Q.top-$.top,w.offsetEnd-=Q.height),u!==window&&(w.offsetStart+=w.scrollStart),w.offsetEnd+=w.scrollMaxSize-w.offsetStart}return w}function setScroll(u,d,g,f){d==="end"&&(d=(u===window?document.body:u)[g===!0?"scrollWidth":"scrollHeight"]),u===window?g===!0?(f===!0&&(d=(rtlHasScrollBug===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-d),window.scrollTo(d,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d):g===!0?(f===!0&&(d=(rtlHasScrollBug===!0?u.scrollWidth-u.offsetWidth:0)-d),u.scrollLeft=d):u.scrollTop=d}function sumSize(u,d,g,f){if(g>=f)return 0;const b=d.length,m=Math.floor(g/aggBucketSize),y=Math.floor((f-1)/aggBucketSize)+1;let k=u.slice(m,y).reduce(sumFn,0);return g%aggBucketSize!==0&&(k-=d.slice(m*aggBucketSize,g).reduce(sumFn,0)),f%aggBucketSize!==0&&f!==b&&(k-=d.slice(f,y*aggBucketSize).reduce(sumFn,0)),k}const commonVirtScrollProps={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},commonVirtScrollPropsList=Object.keys(commonVirtScrollProps),useVirtualScrollProps={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...commonVirtScrollProps};function useVirtualScroll({virtualScrollLength:u,getVirtualScrollTarget:d,getVirtualScrollEl:g,virtualScrollItemSizeComputed:f}){const b=getCurrentInstance(),{props:m,emit:y,proxy:k}=b,{$q:a}=k;let q,w,$,Q=[],C;const v=ref(0),J=ref(0),ae=ref({}),H=ref(null),Y=ref(null),G=ref(null),j=ref({from:0,to:0}),L=computed(()=>m.tableColspan!==void 0?m.tableColspan:100);f===void 0&&(f=computed(()=>m.virtualScrollItemSize));const R=computed(()=>f.value+";"+m.virtualScrollHorizontal),T=computed(()=>R.value+";"+m.virtualScrollSliceRatioBefore+";"+m.virtualScrollSliceRatioAfter);watch(T,()=>{_()}),watch(R,O);function O(){E(w,!0)}function P(te){E(te===void 0?w:te)}function B(te,W){const re=d();if(re==null||re.nodeType===8)return;const ee=getScrollDetails(re,g(),H.value,Y.value,m.virtualScrollHorizontal,a.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd);$!==ee.scrollViewSize&&_(ee.scrollViewSize),F(re,ee,Math.min(u.value-1,Math.max(0,parseInt(te,10)||0)),0,scrollToEdges.indexOf(W)!==-1?W:w!==-1&&te>w?"end":"start")}function M(){const te=d();if(te==null||te.nodeType===8)return;const W=getScrollDetails(te,g(),H.value,Y.value,m.virtualScrollHorizontal,a.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd),re=u.value-1,ee=W.scrollMaxSize-W.offsetStart-W.offsetEnd-J.value;if(q===W.scrollStart)return;if(W.scrollMaxSize<=0){F(te,W,0,0);return}$!==W.scrollViewSize&&_(W.scrollViewSize),S(j.value.from);const X=Math.floor(W.scrollMaxSize-Math.max(W.scrollViewSize,W.offsetEnd)-Math.min(C[re],W.scrollViewSize/2));if(X>0&&Math.ceil(W.scrollStart)>=X){F(te,W,re,W.scrollMaxSize-W.offsetEnd-Q.reduce(sumFn,0));return}let K=0,Z=W.scrollStart-W.offsetStart,se=Z;if(Z<=ee&&Z+W.scrollViewSize>=v.value)Z-=v.value,K=j.value.from,se=Z;else for(let ie=0;Z>=Q[ie]&&K<re;ie++)Z-=Q[ie],K+=aggBucketSize;for(;Z>0&&K<re;)Z-=C[K],Z>-W.scrollViewSize?(K++,se=Z):se=C[K]+Z;F(te,W,K,se)}function F(te,W,re,ee,X){const K=typeof X=="string"&&X.indexOf("-force")!==-1,Z=K===!0?X.replace("-force",""):X,se=Z!==void 0?Z:"start";let ie=Math.max(0,re-ae.value[se]),de=ie+ae.value.total;de>u.value&&(de=u.value,ie=Math.max(0,de-ae.value.total)),q=W.scrollStart;const ce=ie!==j.value.from||de!==j.value.to;if(ce===!1&&Z===void 0){N(re);return}const{activeElement:he}=document,oe=G.value;ce===!0&&oe!==null&&oe!==he&&oe.contains(he)===!0&&(oe.addEventListener("focusout",A),setTimeout(()=>{oe!==null&&oe.removeEventListener("focusout",A)})),setOverflowAnchor(oe,re-ie);const ne=Z!==void 0?C.slice(ie,re).reduce(sumFn,0):0;if(ce===!0){const ue=de>=j.value.from&&ie<=j.value.to?j.value.to:de;j.value={from:ie,to:ue},v.value=sumSize(Q,C,0,ie),J.value=sumSize(Q,C,de,u.value),requestAnimationFrame(()=>{j.value.to!==de&&q===W.scrollStart&&(j.value={from:j.value.from,to:de},J.value=sumSize(Q,C,de,u.value))})}requestAnimationFrame(()=>{if(q!==W.scrollStart)return;ce===!0&&S(ie);const ue=C.slice(ie,re).reduce(sumFn,0),le=ue+W.offsetStart+v.value,fe=le+C[re];let pe=le+ee;if(Z!==void 0){const ve=ue-ne,xe=W.scrollStart+ve;pe=K!==!0&&xe<le&&fe<xe+W.scrollViewSize?xe:Z==="end"?fe-W.scrollViewSize:le-(Z==="start"?0:Math.round((W.scrollViewSize-C[re])/2))}q=pe,setScroll(te,pe,m.virtualScrollHorizontal,a.lang.rtl),N(re)})}function S(te){const W=G.value;if(W){const re=filterProto.call(W.children,ie=>ie.classList&&ie.classList.contains("q-virtual-scroll--skip")===!1),ee=re.length,X=m.virtualScrollHorizontal===!0?ie=>ie.getBoundingClientRect().width:ie=>ie.offsetHeight;let K=te,Z,se;for(let ie=0;ie<ee;){for(Z=X(re[ie]),ie++;ie<ee&&re[ie].classList.contains("q-virtual-scroll--with-prev")===!0;)Z+=X(re[ie]),ie++;se=Z-C[K],se!==0&&(C[K]+=se,Q[Math.floor(K/aggBucketSize)]+=se),K++}}}function A(){G.value!==null&&G.value!==void 0&&G.value.focus()}function E(te,W){const re=1*f.value;(W===!0||Array.isArray(C)===!1)&&(C=[]);const ee=C.length;C.length=u.value;for(let K=u.value-1;K>=ee;K--)C[K]=re;const X=Math.floor((u.value-1)/aggBucketSize);Q=[];for(let K=0;K<=X;K++){let Z=0;const se=Math.min((K+1)*aggBucketSize,u.value);for(let ie=K*aggBucketSize;ie<se;ie++)Z+=C[ie];Q.push(Z)}w=-1,q=void 0,v.value=sumSize(Q,C,0,j.value.from),J.value=sumSize(Q,C,j.value.to,u.value),te>=0?(S(j.value.from),nextTick(()=>{B(te)})):U()}function _(te){if(te===void 0&&typeof window!="undefined"){const Z=d();Z!=null&&Z.nodeType!==8&&(te=getScrollDetails(Z,g(),H.value,Y.value,m.virtualScrollHorizontal,a.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd).scrollViewSize)}$=te;const W=parseFloat(m.virtualScrollSliceRatioBefore)||0,re=parseFloat(m.virtualScrollSliceRatioAfter)||0,ee=1+W+re,X=te===void 0||te<=0?1:Math.ceil(te/f.value),K=Math.max(1,X,Math.ceil((m.virtualScrollSliceSize>0?m.virtualScrollSliceSize:10)/ee));ae.value={total:Math.ceil(K*ee),start:Math.ceil(K*W),center:Math.ceil(K*(.5+W)),end:Math.ceil(K*(1+W)),view:X}}function D(te,W){const re=m.virtualScrollHorizontal===!0?"width":"height",ee={["--q-virtual-scroll-item-"+re]:f.value+"px"};return[te==="tbody"?h(te,{class:"q-virtual-scroll__padding",key:"before",ref:H},[h("tr",[h("td",{style:{[re]:`${v.value}px`,...ee},colspan:L.value})])]):h(te,{class:"q-virtual-scroll__padding",key:"before",ref:H,style:{[re]:`${v.value}px`,...ee}}),h(te,{class:"q-virtual-scroll__content",key:"content",ref:G,tabindex:-1},W.flat()),te==="tbody"?h(te,{class:"q-virtual-scroll__padding",key:"after",ref:Y},[h("tr",[h("td",{style:{[re]:`${J.value}px`,...ee},colspan:L.value})])]):h(te,{class:"q-virtual-scroll__padding",key:"after",ref:Y,style:{[re]:`${J.value}px`,...ee}})]}function N(te){w!==te&&(m.onVirtualScroll!==void 0&&y("virtualScroll",{index:te,from:j.value.from,to:j.value.to-1,direction:te<w?"decrease":"increase",ref:k}),w=te)}_();const U=debounce(M,a.platform.is.ios===!0?120:35);onBeforeMount(()=>{_()});let z=!1;return onDeactivated(()=>{z=!0}),onActivated(()=>{if(z!==!0)return;const te=d();q!==void 0&&te!==void 0&&te!==null&&te.nodeType!==8?setScroll(te,q,m.virtualScrollHorizontal,a.lang.rtl):B(w)}),onBeforeUnmount(()=>{U.cancel()}),Object.assign(k,{scrollTo:B,reset:O,refresh:P}),{virtualScrollSliceRange:j,virtualScrollSliceSizeComputed:ae,setVirtualScrollSize:_,onVirtualScrollEvt:U,localResetVirtualScroll:E,padVirtualScroll:D,scrollTo:B,reset:O,refresh:P}}const comps={list:QList,table:QMarkupTable},typeOptions=["list","table","__qtable"];var QVirtualScroll=createComponent({name:"QVirtualScroll",props:{...useVirtualScrollProps,type:{type:String,default:"list",validator:u=>typeOptions.includes(u)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:scrollTargetProp},setup(u,{slots:d,attrs:g}){let f;const b=ref(null),m=computed(()=>u.itemsSize>=0&&u.itemsFn!==void 0?parseInt(u.itemsSize,10):Array.isArray(u.items)?u.items.length:0),{virtualScrollSliceRange:y,localResetVirtualScroll:k,padVirtualScroll:a,onVirtualScrollEvt:q}=useVirtualScroll({virtualScrollLength:m,getVirtualScrollTarget:v,getVirtualScrollEl:C}),w=computed(()=>{if(m.value===0)return[];const Y=(G,j)=>({index:y.value.from+j,item:G});return u.itemsFn===void 0?u.items.slice(y.value.from,y.value.to).map(Y):u.itemsFn(y.value.from,y.value.to-y.value.from).map(Y)}),$=computed(()=>"q-virtual-scroll q-virtual-scroll"+(u.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(u.scrollTarget!==void 0?"":" scroll")),Q=computed(()=>u.scrollTarget!==void 0?{}:{tabindex:0});watch(m,()=>{k()}),watch(()=>u.scrollTarget,()=>{ae(),J()});function C(){return b.value.$el||b.value}function v(){return f}function J(){f=getScrollTarget(C(),u.scrollTarget),f.addEventListener("scroll",q,listenOpts.passive)}function ae(){f!==void 0&&(f.removeEventListener("scroll",q,listenOpts.passive),f=void 0)}function H(){let Y=a(u.type==="list"?"div":"tbody",w.value.map(d.default));return d.before!==void 0&&(Y=d.before().concat(Y)),hMergeSlot(d.after,Y)}return onBeforeMount(()=>{k()}),onMounted(()=>{J()}),onActivated(()=>{J()}),onDeactivated(()=>{ae()}),onBeforeUnmount(()=>{ae()}),()=>{if(d.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return u.type==="__qtable"?getTableMiddle({ref:b,class:"q-table__middle "+$.value},H()):h(comps[u.type],{...g,ref:b,class:[g.class,$.value],...Q.value},H)}}}),QField=createComponent({name:"QField",inheritAttrs:!1,props:{...useFieldProps,tag:{type:String,default:"label"}},emits:useFieldEmits,setup(){return useField(useFieldState({tagProp:!0}))}});const defaultSizes$1={xs:8,sm:10,md:14,lg:20,xl:24};var QChip=createComponent({name:"QChip",props:{...useDarkProps,...useSizeProps,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(u,{slots:d,emit:g}){const{proxy:{$q:f}}=getCurrentInstance(),b=useDark(u,f),m=useSize(u,defaultSizes$1),y=computed(()=>u.selected===!0||u.icon!==void 0),k=computed(()=>u.selected===!0?u.iconSelected||f.iconSet.chip.selected:u.icon),a=computed(()=>u.iconRemove||f.iconSet.chip.remove),q=computed(()=>u.disable===!1&&(u.clickable===!0||u.selected!==null)),w=computed(()=>{const ae=u.outline===!0&&u.color||u.textColor;return"q-chip row inline no-wrap items-center"+(u.outline===!1&&u.color!==void 0?` bg-${u.color}`:"")+(ae?` text-${ae} q-chip--colored`:"")+(u.disable===!0?" disabled":"")+(u.dense===!0?" q-chip--dense":"")+(u.outline===!0?" q-chip--outline":"")+(u.selected===!0?" q-chip--selected":"")+(q.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(u.square===!0?" q-chip--square":"")+(b.value===!0?" q-chip--dark q-dark":"")}),$=computed(()=>{const ae=u.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:u.tabindex||0},H={...ae,role:"button","aria-hidden":"false","aria-label":u.removeAriaLabel||f.lang.label.remove};return{chip:ae,remove:H}});function Q(ae){ae.keyCode===13&&C(ae)}function C(ae){u.disable||(g("update:selected",!u.selected),g("click",ae))}function v(ae){(ae.keyCode===void 0||ae.keyCode===13)&&(stopAndPrevent(ae),u.disable===!1&&(g("update:modelValue",!1),g("remove")))}function J(){const ae=[];q.value===!0&&ae.push(h("div",{class:"q-focus-helper"})),y.value===!0&&ae.push(h(QIcon,{class:"q-chip__icon q-chip__icon--left",name:k.value}));const H=u.label!==void 0?[h("div",{class:"ellipsis"},[u.label])]:void 0;return ae.push(h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},hMergeSlotSafely(d.default,H))),u.iconRight&&ae.push(h(QIcon,{class:"q-chip__icon q-chip__icon--right",name:u.iconRight})),u.removable===!0&&ae.push(h(QIcon,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:a.value,...$.value.remove,onClick:v,onKeyup:v})),ae}return()=>{if(u.modelValue===!1)return;const ae={class:w.value,style:m.value};return q.value===!0&&Object.assign(ae,$.value.chip,{onClick:C,onKeyup:Q}),hDir("div",ae,J(),"ripple",u.ripple!==!1&&u.disable!==!0,()=>[[Ripple,u.ripple]])}}});const validateNewValueMode=u=>["add","add-unique","toggle"].includes(u),reEscapeList=".*+?^${}()|[]\\",fieldPropsList=Object.keys(useFieldProps);function getPropValueFn(u,d){if(typeof u=="function")return u;const g=u!==void 0?u:d;return f=>f!==null&&typeof f=="object"&&g in f?f[g]:f}var QSelect=createComponent({name:"QSelect",inheritAttrs:!1,props:{...useVirtualScrollProps,...useFormProps,...useFieldProps,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:validateNewValueMode},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:u=>["default","menu","dialog"].includes(u),default:"default"},virtualScrollItemSize:useVirtualScrollProps.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...useFieldEmits,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(u,{slots:d,emit:g}){const{proxy:f}=getCurrentInstance(),{$q:b}=f,m=ref(!1),y=ref(!1),k=ref(-1),a=ref(""),q=ref(!1),w=ref(!1);let $=null,Q=null,C,v,J,ae=null,H,Y,G,j;const L=ref(null),R=ref(null),T=ref(null),O=ref(null),P=ref(null),B=useFormInputNameAttr(u),M=useKeyComposition(Re),F=computed(()=>Array.isArray(u.options)?u.options.length:0),S=computed(()=>u.virtualScrollItemSize===void 0?u.optionsDense===!0?24:48:u.virtualScrollItemSize),{virtualScrollSliceRange:A,virtualScrollSliceSizeComputed:E,localResetVirtualScroll:_,padVirtualScroll:D,onVirtualScrollEvt:N,scrollTo:U,setVirtualScrollSize:z}=useVirtualScroll({virtualScrollLength:F,getVirtualScrollTarget:Ge,getVirtualScrollEl:Oe,virtualScrollItemSizeComputed:S}),te=useFieldState(),W=computed(()=>{const Ie=u.mapOptions===!0&&u.multiple!==!0,rt=u.modelValue!==void 0&&(u.modelValue!==null||Ie===!0)?u.multiple===!0&&Array.isArray(u.modelValue)?u.modelValue:[u.modelValue]:[];if(u.mapOptions===!0&&Array.isArray(u.options)===!0){const Je=u.mapOptions===!0&&C!==void 0?C:[],mt=rt.map(vt=>we(vt,Je));return u.modelValue===null&&Ie===!0?mt.filter(vt=>vt!==null):mt}return rt}),re=computed(()=>{const Ie={};return fieldPropsList.forEach(rt=>{const Je=u[rt];Je!==void 0&&(Ie[rt]=Je)}),Ie}),ee=computed(()=>u.optionsDark===null?te.isDark.value:u.optionsDark),X=computed(()=>fieldValueIsFilled(W.value)),K=computed(()=>{let Ie="q-field__input q-placeholder col";return u.hideSelected===!0||W.value.length===0?[Ie,u.inputClass]:(Ie+=" q-field__input--padding",u.inputClass===void 0?Ie:[Ie,u.inputClass])}),Z=computed(()=>(u.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(u.popupContentClass?" "+u.popupContentClass:"")),se=computed(()=>F.value===0),ie=computed(()=>W.value.map(Ie=>be.value(Ie)).join(", ")),de=computed(()=>u.displayValue!==void 0?u.displayValue:ie.value),ce=computed(()=>u.optionsHtml===!0?()=>!0:Ie=>Ie!=null&&Ie.html===!0),he=computed(()=>u.displayValueHtml===!0||u.displayValue===void 0&&(u.optionsHtml===!0||W.value.some(ce.value))),oe=computed(()=>te.focused.value===!0?u.tabindex:-1),ne=computed(()=>{const Ie={tabindex:u.tabindex,role:"combobox","aria-label":u.label,"aria-readonly":u.readonly===!0?"true":"false","aria-autocomplete":u.useInput===!0?"list":"none","aria-expanded":m.value===!0?"true":"false","aria-controls":`${te.targetUid.value}_lb`};return k.value>=0&&(Ie["aria-activedescendant"]=`${te.targetUid.value}_${k.value}`),Ie}),ue=computed(()=>({id:`${te.targetUid.value}_lb`,role:"listbox","aria-multiselectable":u.multiple===!0?"true":"false"})),le=computed(()=>W.value.map((Ie,rt)=>({index:rt,opt:Ie,html:ce.value(Ie),selected:!0,removeAtIndex:De,toggleOption:Be,tabindex:oe.value}))),fe=computed(()=>{if(F.value===0)return[];const{from:Ie,to:rt}=A.value;return u.options.slice(Ie,rt).map((Je,mt)=>{const vt=me.value(Je)===!0,yt=Ae(Je)===!0,Bt=Ie+mt,_t={clickable:!0,active:yt,activeClass:xe.value,manualFocus:!0,focused:!1,disable:vt,tabindex:-1,dense:u.optionsDense,dark:ee.value,role:"option","aria-selected":yt===!0?"true":"false",id:`${te.targetUid.value}_${Bt}`,onClick:()=>{Be(Je)}};return vt!==!0&&(k.value===Bt&&(_t.focused=!0),b.platform.is.desktop===!0&&(_t.onMousemove=()=>{m.value===!0&&Te(Bt)})),{index:Bt,opt:Je,html:ce.value(Je),label:be.value(Je),selected:_t.active,focused:_t.focused,toggleOption:Be,setOptionIndex:Te,itemProps:_t}})}),pe=computed(()=>u.dropdownIcon!==void 0?u.dropdownIcon:b.iconSet.arrow.dropdown),ve=computed(()=>u.optionsCover===!1&&u.outlined!==!0&&u.standout!==!0&&u.borderless!==!0&&u.rounded!==!0),xe=computed(()=>u.optionsSelectedClass!==void 0?u.optionsSelectedClass:u.color!==void 0?`text-${u.color}`:""),Ce=computed(()=>getPropValueFn(u.optionValue,"value")),be=computed(()=>getPropValueFn(u.optionLabel,"label")),me=computed(()=>getPropValueFn(u.optionDisable,"disable")),ge=computed(()=>W.value.map(Ce.value)),ye=computed(()=>{const Ie={onInput:Re,onChange:M,onKeydown:qe,onKeyup:Le,onKeypress:Ne,onFocus:ke,onClick(rt){v===!0&&stop(rt)}};return Ie.onCompositionstart=Ie.onCompositionupdate=Ie.onCompositionend=M,Ie});watch(W,Ie=>{C=Ie,u.useInput===!0&&u.fillInput===!0&&u.multiple!==!0&&te.innerLoading.value!==!0&&(y.value!==!0&&m.value!==!0||X.value!==!0)&&(J!==!0&&Lt(),(y.value===!0||m.value===!0)&&$e(""))},{immediate:!0}),watch(()=>u.fillInput,Lt),watch(m,$t),watch(F,Vt);function Se(Ie){return u.emitValue===!0?Ce.value(Ie):Ie}function Ee(Ie){if(Ie!==-1&&Ie<W.value.length)if(u.multiple===!0){const rt=u.modelValue.slice();g("remove",{index:Ie,value:rt.splice(Ie,1)[0]}),g("update:modelValue",rt)}else g("update:modelValue",null)}function De(Ie){Ee(Ie),te.focus()}function _e(Ie,rt){const Je=Se(Ie);if(u.multiple!==!0){u.fillInput===!0&&ze(be.value(Ie),!0,!0),g("update:modelValue",Je);return}if(W.value.length===0){g("add",{index:0,value:Je}),g("update:modelValue",u.multiple===!0?[Je]:Je);return}if(rt===!0&&Ae(Ie)===!0||u.maxValues!==void 0&&u.modelValue.length>=u.maxValues)return;const mt=u.modelValue.slice();g("add",{index:mt.length,value:Je}),mt.push(Je),g("update:modelValue",mt)}function Be(Ie,rt){if(te.editable.value!==!0||Ie===void 0||me.value(Ie)===!0)return;const Je=Ce.value(Ie);if(u.multiple!==!0){rt!==!0&&(ze(u.fillInput===!0?be.value(Ie):"",!0,!0),Rt()),R.value!==null&&R.value.focus(),(W.value.length===0||isDeepEqual(Ce.value(W.value[0]),Je)!==!0)&&g("update:modelValue",u.emitValue===!0?Je:Ie);return}if((v!==!0||q.value===!0)&&te.focus(),ke(),W.value.length===0){const yt=u.emitValue===!0?Je:Ie;g("add",{index:0,value:yt}),g("update:modelValue",u.multiple===!0?[yt]:yt);return}const mt=u.modelValue.slice(),vt=ge.value.findIndex(yt=>isDeepEqual(yt,Je));if(vt!==-1)g("remove",{index:vt,value:mt.splice(vt,1)[0]});else{if(u.maxValues!==void 0&&mt.length>=u.maxValues)return;const yt=u.emitValue===!0?Je:Ie;g("add",{index:mt.length,value:yt}),mt.push(yt)}g("update:modelValue",mt)}function Te(Ie){if(b.platform.is.desktop!==!0)return;const rt=Ie!==-1&&Ie<F.value?Ie:-1;k.value!==rt&&(k.value=rt)}function Fe(Ie=1,rt){if(m.value===!0){let Je=k.value;do Je=normalizeToInterval(Je+Ie,-1,F.value-1);while(Je!==-1&&Je!==k.value&&me.value(u.options[Je])===!0);k.value!==Je&&(Te(Je),U(Je),rt!==!0&&u.useInput===!0&&u.fillInput===!0&&Me(Je>=0?be.value(u.options[Je]):H,!0))}}function we(Ie,rt){const Je=mt=>isDeepEqual(Ce.value(mt),Ie);return u.options.find(Je)||rt.find(Je)||Ie}function Ae(Ie){const rt=Ce.value(Ie);return ge.value.find(Je=>isDeepEqual(Je,rt))!==void 0}function ke(Ie){u.useInput===!0&&R.value!==null&&(Ie===void 0||R.value===Ie.target&&Ie.target.value===ie.value)&&R.value.select()}function Pe(Ie){isKeyCode(Ie,27)===!0&&m.value===!0&&(stop(Ie),Rt(),Lt()),g("keyup",Ie)}function Le(Ie){const{value:rt}=Ie.target;if(Ie.keyCode!==void 0){Pe(Ie);return}if(Ie.target.value="",$!==null&&(clearTimeout($),$=null),Q!==null&&(clearTimeout(Q),Q=null),Lt(),typeof rt=="string"&&rt.length!==0){const Je=rt.toLocaleLowerCase(),mt=yt=>{const Bt=u.options.find(_t=>String(yt.value(_t)).toLocaleLowerCase()===Je);return Bt===void 0?!1:(W.value.indexOf(Bt)===-1?Be(Bt):Rt(),!0)},vt=yt=>{mt(Ce)!==!0&&yt!==!0&&mt(be)!==!0&&$e(rt,!0,()=>vt(!0))};vt()}else te.clearValue(Ie)}function Ne(Ie){g("keypress",Ie)}function qe(Ie){if(g("keydown",Ie),shouldIgnoreKey(Ie)===!0)return;const rt=a.value.length!==0&&(u.newValueMode!==void 0||u.onNewValue!==void 0),Je=Ie.shiftKey!==!0&&u.disableTabSelection!==!0&&u.multiple!==!0&&(k.value!==-1||rt===!0);if(Ie.keyCode===27){prevent(Ie);return}if(Ie.keyCode===9&&Je===!1){Dt();return}if(Ie.target===void 0||Ie.target.id!==te.targetUid.value||te.editable.value!==!0)return;if(Ie.keyCode===40&&te.innerLoading.value!==!0&&m.value===!1){stopAndPrevent(Ie),At();return}if(Ie.keyCode===8&&(u.useChips===!0||u.clearable===!0)&&u.hideSelected!==!0&&a.value.length===0){u.multiple===!0&&Array.isArray(u.modelValue)===!0?Ee(u.modelValue.length-1):u.multiple!==!0&&u.modelValue!==null&&g("update:modelValue",null);return}(Ie.keyCode===35||Ie.keyCode===36)&&(typeof a.value!="string"||a.value.length===0)&&(stopAndPrevent(Ie),k.value=-1,Fe(Ie.keyCode===36?1:-1,u.multiple)),(Ie.keyCode===33||Ie.keyCode===34)&&E.value!==void 0&&(stopAndPrevent(Ie),k.value=Math.max(-1,Math.min(F.value,k.value+(Ie.keyCode===33?-1:1)*E.value.view)),Fe(Ie.keyCode===33?1:-1,u.multiple)),(Ie.keyCode===38||Ie.keyCode===40)&&(stopAndPrevent(Ie),Fe(Ie.keyCode===38?-1:1,u.multiple));const mt=F.value;if((G===void 0||j<Date.now())&&(G=""),mt>0&&u.useInput!==!0&&Ie.key!==void 0&&Ie.key.length===1&&Ie.altKey===!1&&Ie.ctrlKey===!1&&Ie.metaKey===!1&&(Ie.keyCode!==32||G.length!==0)){m.value!==!0&&At(Ie);const vt=Ie.key.toLocaleLowerCase(),yt=G.length===1&&G[0]===vt;j=Date.now()+1500,yt===!1&&(stopAndPrevent(Ie),G+=vt);const Bt=new RegExp("^"+G.split("").map(zt=>reEscapeList.indexOf(zt)!==-1?"\\"+zt:zt).join(".*"),"i");let _t=k.value;if(yt===!0||_t<0||Bt.test(be.value(u.options[_t]))!==!0)do _t=normalizeToInterval(_t+1,-1,mt-1);while(_t!==k.value&&(me.value(u.options[_t])===!0||Bt.test(be.value(u.options[_t]))!==!0));k.value!==_t&&nextTick(()=>{Te(_t),U(_t),_t>=0&&u.useInput===!0&&u.fillInput===!0&&Me(be.value(u.options[_t]),!0)});return}if(!(Ie.keyCode!==13&&(Ie.keyCode!==32||u.useInput===!0||G!=="")&&(Ie.keyCode!==9||Je===!1))){if(Ie.keyCode!==9&&stopAndPrevent(Ie),k.value!==-1&&k.value<mt){Be(u.options[k.value]);return}if(rt===!0){const vt=(yt,Bt)=>{if(Bt){if(validateNewValueMode(Bt)!==!0)return}else Bt=u.newValueMode;if(ze("",u.multiple!==!0,!0),yt==null)return;(Bt==="toggle"?Be:_e)(yt,Bt==="add-unique"),u.multiple!==!0&&(R.value!==null&&R.value.focus(),Rt())};if(u.onNewValue!==void 0?g("newValue",a.value,vt):vt(a.value),u.multiple!==!0)return}m.value===!0?Dt():te.innerLoading.value!==!0&&At()}}function Oe(){return v===!0?P.value:T.value!==null&&T.value.contentEl!==null?T.value.contentEl:void 0}function Ge(){return Oe()}function Ve(){return u.hideSelected===!0?[]:d["selected-item"]!==void 0?le.value.map(Ie=>d["selected-item"](Ie)).slice():d.selected!==void 0?[].concat(d.selected()):u.useChips===!0?le.value.map((Ie,rt)=>h(QChip,{key:"option-"+rt,removable:te.editable.value===!0&&me.value(Ie.opt)!==!0,dense:!0,textColor:u.color,tabindex:oe.value,onRemove(){Ie.removeAtIndex(rt)}},()=>h("span",{class:"ellipsis",[Ie.html===!0?"innerHTML":"textContent"]:be.value(Ie.opt)}))):[h("span",{[he.value===!0?"innerHTML":"textContent"]:de.value})]}function Xe(){if(se.value===!0)return d["no-option"]!==void 0?d["no-option"]({inputValue:a.value}):void 0;const Ie=d.option!==void 0?d.option:Je=>h(QItem,{key:Je.index,...Je.itemProps},()=>h(QItemSection,()=>h(QItemLabel,()=>h("span",{[Je.html===!0?"innerHTML":"textContent"]:Je.label}))));let rt=D("div",fe.value.map(Ie));return d["before-options"]!==void 0&&(rt=d["before-options"]().concat(rt)),hMergeSlot(d["after-options"],rt)}function at(Ie,rt){const Je=rt===!0?{...ne.value,...te.splitAttrs.attributes.value}:void 0,mt={ref:rt===!0?R:void 0,key:"i_t",class:K.value,style:u.inputStyle,value:a.value!==void 0?a.value:"",type:"search",...Je,id:rt===!0?te.targetUid.value:void 0,maxlength:u.maxlength,autocomplete:u.autocomplete,"data-autofocus":Ie===!0||u.autofocus===!0||void 0,disabled:u.disable===!0,readonly:u.readonly===!0,...ye.value};return Ie!==!0&&v===!0&&(Array.isArray(mt.class)===!0?mt.class=[...mt.class,"no-pointer-events"]:mt.class+=" no-pointer-events"),h("input",mt)}function Re(Ie){$!==null&&(clearTimeout($),$=null),Q!==null&&(clearTimeout(Q),Q=null),!(Ie&&Ie.target&&Ie.target.qComposing===!0)&&(Me(Ie.target.value||""),J=!0,H=a.value,te.focused.value!==!0&&(v!==!0||q.value===!0)&&te.focus(),u.onFilter!==void 0&&($=setTimeout(()=>{$=null,$e(a.value)},u.inputDebounce)))}function Me(Ie,rt){a.value!==Ie&&(a.value=Ie,rt===!0||u.inputDebounce===0||u.inputDebounce==="0"?g("inputValue",Ie):Q=setTimeout(()=>{Q=null,g("inputValue",Ie)},u.inputDebounce))}function ze(Ie,rt,Je){J=Je!==!0,u.useInput===!0&&(Me(Ie,!0),(rt===!0||Je!==!0)&&(H=Ie),rt!==!0&&$e(Ie))}function $e(Ie,rt,Je){if(u.onFilter===void 0||rt!==!0&&te.focused.value!==!0)return;te.innerLoading.value===!0?g("filterAbort"):(te.innerLoading.value=!0,w.value=!0),Ie!==""&&u.multiple!==!0&&W.value.length!==0&&J!==!0&&Ie===be.value(W.value[0])&&(Ie="");const mt=setTimeout(()=>{m.value===!0&&(m.value=!1)},10);ae!==null&&clearTimeout(ae),ae=mt,g("filter",Ie,(vt,yt)=>{(rt===!0||te.focused.value===!0)&&ae===mt&&(clearTimeout(ae),typeof vt=="function"&&vt(),w.value=!1,nextTick(()=>{te.innerLoading.value=!1,te.editable.value===!0&&(rt===!0?m.value===!0&&Rt():m.value===!0?$t(!0):m.value=!0),typeof yt=="function"&&nextTick(()=>{yt(f)}),typeof Je=="function"&&nextTick(()=>{Je(f)})}))},()=>{te.focused.value===!0&&ae===mt&&(clearTimeout(ae),te.innerLoading.value=!1,w.value=!1),m.value===!0&&(m.value=!1)})}function je(){return h(QMenu,{ref:T,class:Z.value,style:u.popupContentStyle,modelValue:m.value,fit:u.menuShrink!==!0,cover:u.optionsCover===!0&&se.value!==!0&&u.useInput!==!0,anchor:u.menuAnchor,self:u.menuSelf,offset:u.menuOffset,dark:ee.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:u.popupNoRouteDismiss,square:ve.value,transitionShow:u.transitionShow,transitionHide:u.transitionHide,transitionDuration:u.transitionDuration,separateClosePopup:!0,...ue.value,onScrollPassive:N,onBeforeShow:Gt,onBeforeHide:Ze,onShow:Qe},Xe)}function Ze(Ie){qt(Ie),Dt()}function Qe(){z()}function ut(Ie){stop(Ie),R.value!==null&&R.value.focus(),q.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function lt(Ie){stop(Ie),nextTick(()=>{q.value=!1})}function Ft(){const Ie=[h(QField,{class:`col-auto ${te.fieldClass.value}`,...re.value,for:te.targetUid.value,dark:ee.value,square:!0,loading:w.value,itemAligned:!1,filled:!0,stackLabel:a.value.length!==0,...te.splitAttrs.listeners.value,onFocus:ut,onBlur:lt},{...d,rawControl:()=>te.getControl(!0),before:void 0,after:void 0})];return m.value===!0&&Ie.push(h("div",{ref:P,class:Z.value+" scroll",style:u.popupContentStyle,...ue.value,onClick:prevent,onScrollPassive:N},Xe())),h(QDialog,{ref:O,modelValue:y.value,position:u.useInput===!0?"top":void 0,transitionShow:Y,transitionHide:u.transitionHide,transitionDuration:u.transitionDuration,noRouteDismiss:u.popupNoRouteDismiss,onBeforeShow:Gt,onBeforeHide:kt,onHide:ft,onShow:gt},()=>h("div",{class:"q-select__dialog"+(ee.value===!0?" q-select__dialog--dark q-dark":"")+(q.value===!0?" q-select__dialog--focused":"")},Ie))}function kt(Ie){qt(Ie),O.value!==null&&O.value.__updateRefocusTarget(te.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),te.focused.value=!1}function ft(Ie){Rt(),te.focused.value===!1&&g("blur",Ie),Lt()}function gt(){const Ie=document.activeElement;(Ie===null||Ie.id!==te.targetUid.value)&&R.value!==null&&R.value!==Ie&&R.value.focus(),z()}function Dt(){y.value!==!0&&(k.value=-1,m.value===!0&&(m.value=!1),te.focused.value===!1&&(ae!==null&&(clearTimeout(ae),ae=null),te.innerLoading.value===!0&&(g("filterAbort"),te.innerLoading.value=!1,w.value=!1)))}function At(Ie){te.editable.value===!0&&(v===!0?(te.onControlFocusin(Ie),y.value=!0,nextTick(()=>{te.focus()})):te.focus(),u.onFilter!==void 0?$e(a.value):(se.value!==!0||d["no-option"]!==void 0)&&(m.value=!0))}function Rt(){y.value=!1,Dt()}function Lt(){u.useInput===!0&&ze(u.multiple!==!0&&u.fillInput===!0&&W.value.length!==0&&be.value(W.value[0])||"",!0,!0)}function $t(Ie){let rt=-1;if(Ie===!0){if(W.value.length!==0){const Je=Ce.value(W.value[0]);rt=u.options.findIndex(mt=>isDeepEqual(Ce.value(mt),Je))}_(rt)}Te(rt)}function Vt(Ie,rt){m.value===!0&&te.innerLoading.value===!1&&(_(-1,!0),nextTick(()=>{m.value===!0&&te.innerLoading.value===!1&&(Ie>rt?_():$t(!0))}))}function Wt(){y.value===!1&&T.value!==null&&T.value.updatePosition()}function Gt(Ie){Ie!==void 0&&stop(Ie),g("popupShow",Ie),te.hasPopupOpen=!0,te.onControlFocusin(Ie)}function qt(Ie){Ie!==void 0&&stop(Ie),g("popupHide",Ie),te.hasPopupOpen=!1,te.onControlFocusout(Ie)}function Ht(){v=b.platform.is.mobile!==!0&&u.behavior!=="dialog"?!1:u.behavior!=="menu"&&(u.useInput===!0?d["no-option"]!==void 0||u.onFilter!==void 0||se.value===!1:!0),Y=b.platform.is.ios===!0&&v===!0&&u.useInput===!0?"fade":u.transitionShow}return onBeforeUpdate(Ht),onUpdated(Wt),Ht(),onBeforeUnmount(()=>{$!==null&&clearTimeout($),Q!==null&&clearTimeout(Q)}),Object.assign(f,{showPopup:At,hidePopup:Rt,removeAtIndex:Ee,add:_e,toggleOption:Be,getOptionIndex:()=>k.value,setOptionIndex:Te,moveOptionSelection:Fe,filter:$e,updateMenuPosition:Wt,updateInputValue:ze,isOptionSelected:Ae,getEmittingOptionValue:Se,isOptionDisabled:(...Ie)=>me.value.apply(null,Ie)===!0,getOptionValue:(...Ie)=>Ce.value.apply(null,Ie),getOptionLabel:(...Ie)=>be.value.apply(null,Ie)}),Object.assign(te,{innerValue:W,fieldClass:computed(()=>`q-select q-field--auto-height q-select--with${u.useInput!==!0?"out":""}-input q-select--with${u.useChips!==!0?"out":""}-chips q-select--${u.multiple===!0?"multiple":"single"}`),inputRef:L,targetRef:R,hasValue:X,showPopup:At,floatingLabel:computed(()=>u.hideSelected!==!0&&X.value===!0||typeof a.value=="number"||a.value.length!==0||fieldValueIsFilled(u.displayValue)),getControlChild:()=>{if(te.editable.value!==!1&&(y.value===!0||se.value!==!0||d["no-option"]!==void 0))return v===!0?Ft():je();te.hasPopupOpen===!0&&(te.hasPopupOpen=!1)},controlEvents:{onFocusin(Ie){te.onControlFocusin(Ie)},onFocusout(Ie){te.onControlFocusout(Ie,()=>{Lt(),Dt()})},onClick(Ie){if(prevent(Ie),v!==!0&&m.value===!0){Dt(),R.value!==null&&R.value.focus();return}At(Ie)}},getControl:Ie=>{const rt=Ve(),Je=Ie===!0||y.value!==!0||v!==!0;if(u.useInput===!0)rt.push(at(Ie,Je));else if(te.editable.value===!0){const vt=Je===!0?ne.value:void 0;rt.push(h("input",{ref:Je===!0?R:void 0,key:"d_t",class:"q-select__focus-target",id:Je===!0?te.targetUid.value:void 0,value:de.value,readonly:!0,"data-autofocus":Ie===!0||u.autofocus===!0||void 0,...vt,onKeydown:qe,onKeyup:Pe,onKeypress:Ne})),Je===!0&&typeof u.autocomplete=="string"&&u.autocomplete.length!==0&&rt.push(h("input",{class:"q-select__autocomplete-input",autocomplete:u.autocomplete,tabindex:-1,onKeyup:Le}))}if(B.value!==void 0&&u.disable!==!0&&ge.value.length!==0){const vt=ge.value.map(yt=>h("option",{value:yt,selected:!0}));rt.push(h("select",{class:"hidden",name:B.value,multiple:u.multiple},vt))}const mt=u.useInput===!0||Je!==!0?void 0:te.splitAttrs.attributes.value;return h("div",{class:"q-field__native row items-center",...mt,...te.splitAttrs.listeners.value},rt)},getInnerAppend:()=>u.loading!==!0&&w.value!==!0&&u.hideDropdownIcon!==!0?[h(QIcon,{class:"q-select__dropdown-icon"+(m.value===!0?" rotate-180":""),name:pe.value})]:null}),useField(te)}});const defaultSizes={xs:2,sm:4,md:6,lg:10,xl:14};function width(u,d,g){return{transform:d===!0?`translateX(${g.lang.rtl===!0?"-":""}100%) scale3d(${-u},1,1)`:`scale3d(${u},1,1)`}}var QLinearProgress=createComponent({name:"QLinearProgress",props:{...useDarkProps,...useSizeProps,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(u,{slots:d}){const{proxy:g}=getCurrentInstance(),f=useDark(u,g.$q),b=useSize(u,defaultSizes),m=computed(()=>u.indeterminate===!0||u.query===!0),y=computed(()=>u.reverse!==u.query),k=computed(()=>({...b.value!==null?b.value:{},"--q-linear-progress-speed":`${u.animationSpeed}ms`})),a=computed(()=>"q-linear-progress"+(u.color!==void 0?` text-${u.color}`:"")+(u.reverse===!0||u.query===!0?" q-linear-progress--reverse":"")+(u.rounded===!0?" rounded-borders":"")),q=computed(()=>width(u.buffer!==void 0?u.buffer:1,y.value,g.$q)),w=computed(()=>`with${u.instantFeedback===!0?"out":""}-transition`),$=computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${w.value} q-linear-progress__track--${f.value===!0?"dark":"light"}`+(u.trackColor!==void 0?` bg-${u.trackColor}`:"")),Q=computed(()=>width(m.value===!0?1:u.value,y.value,g.$q)),C=computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${w.value} q-linear-progress__model--${m.value===!0?"in":""}determinate`),v=computed(()=>({width:`${u.value*100}%`})),J=computed(()=>`q-linear-progress__stripe absolute-${u.reverse===!0?"right":"left"} q-linear-progress__stripe--${w.value}`);return()=>{const ae=[h("div",{class:$.value,style:q.value}),h("div",{class:C.value,style:Q.value})];return u.stripe===!0&&m.value===!1&&ae.push(h("div",{class:J.value,style:v.value})),h("div",{class:a.value,style:k.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":u.indeterminate===!0?void 0:u.value},hMergeSlot(d.default,ae))}}});function useRefocusTarget(u,d){const g=ref(null),f=computed(()=>u.disable===!0?null:h("span",{ref:g,class:"no-outline",tabindex:-1}));function b(m){const y=d.value;m!==void 0&&m.type.indexOf("key")===0?y!==null&&document.activeElement!==y&&y.contains(document.activeElement)===!0&&y.focus():g.value!==null&&(m===void 0||y!==null&&y.contains(m.target)===!0)&&g.value.focus()}return{refocusTargetEl:f,refocusTarget:b}}var optionSizes={xs:30,sm:35,md:40,lg:50,xl:60};const useCheckboxProps={...useDarkProps,...useSizeProps,...useFormProps,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:u=>u==="tf"||u==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},useCheckboxEmits=["update:modelValue"];function useCheckbox(u,d){const{props:g,slots:f,emit:b,proxy:m}=getCurrentInstance(),{$q:y}=m,k=useDark(g,y),a=ref(null),{refocusTargetEl:q,refocusTarget:w}=useRefocusTarget(g,a),$=useSize(g,optionSizes),Q=computed(()=>g.val!==void 0&&Array.isArray(g.modelValue)),C=computed(()=>{const F=toRaw(g.val);return Q.value===!0?g.modelValue.findIndex(S=>toRaw(S)===F):-1}),v=computed(()=>Q.value===!0?C.value!==-1:toRaw(g.modelValue)===toRaw(g.trueValue)),J=computed(()=>Q.value===!0?C.value===-1:toRaw(g.modelValue)===toRaw(g.falseValue)),ae=computed(()=>v.value===!1&&J.value===!1),H=computed(()=>g.disable===!0?-1:g.tabindex||0),Y=computed(()=>`q-${u} cursor-pointer no-outline row inline no-wrap items-center`+(g.disable===!0?" disabled":"")+(k.value===!0?` q-${u}--dark`:"")+(g.dense===!0?` q-${u}--dense`:"")+(g.leftLabel===!0?" reverse":"")),G=computed(()=>{const F=v.value===!0?"truthy":J.value===!0?"falsy":"indet",S=g.color!==void 0&&(g.keepColor===!0||(u==="toggle"?v.value===!0:J.value!==!0))?` text-${g.color}`:"";return`q-${u}__inner relative-position non-selectable q-${u}__inner--${F}${S}`}),j=computed(()=>{const F={type:"checkbox"};return g.name!==void 0&&Object.assign(F,{".checked":v.value,"^checked":v.value===!0?"checked":void 0,name:g.name,value:Q.value===!0?g.val:g.trueValue}),F}),L=useFormInject(j),R=computed(()=>{const F={tabindex:H.value,role:u==="toggle"?"switch":"checkbox","aria-label":g.label,"aria-checked":ae.value===!0?"mixed":v.value===!0?"true":"false"};return g.disable===!0&&(F["aria-disabled"]="true"),F});function T(F){F!==void 0&&(stopAndPrevent(F),w(F)),g.disable!==!0&&b("update:modelValue",O(),F)}function O(){if(Q.value===!0){if(v.value===!0){const F=g.modelValue.slice();return F.splice(C.value,1),F}return g.modelValue.concat([g.val])}if(v.value===!0){if(g.toggleOrder!=="ft"||g.toggleIndeterminate===!1)return g.falseValue}else if(J.value===!0){if(g.toggleOrder==="ft"||g.toggleIndeterminate===!1)return g.trueValue}else return g.toggleOrder!=="ft"?g.trueValue:g.falseValue;return g.indeterminateValue}function P(F){(F.keyCode===13||F.keyCode===32)&&stopAndPrevent(F)}function B(F){(F.keyCode===13||F.keyCode===32)&&T(F)}const M=d(v,ae);return Object.assign(m,{toggle:T}),()=>{const F=M();g.disable!==!0&&L(F,"unshift",` q-${u}__native absolute q-ma-none q-pa-none`);const S=[h("div",{class:G.value,style:$.value,"aria-hidden":"true"},F)];q.value!==null&&S.push(q.value);const A=g.label!==void 0?hMergeSlot(f.default,[g.label]):hSlot(f.default);return A!==void 0&&S.push(h("div",{class:`q-${u}__label q-anchor--skip`},A)),h("div",{ref:a,class:Y.value,...R.value,onClick:T,onKeydown:P,onKeyup:B},S)}}const createBgNode=()=>h("div",{key:"svg",class:"q-checkbox__bg absolute"},[h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]);var QCheckbox=createComponent({name:"QCheckbox",props:useCheckboxProps,emits:useCheckboxEmits,setup(u){const d=createBgNode();function g(f,b){const m=computed(()=>(f.value===!0?u.checkedIcon:b.value===!0?u.indeterminateIcon:u.uncheckedIcon)||null);return()=>m.value!==null?[h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[h(QIcon,{class:"q-checkbox__icon",name:m.value})])]:[d]}return useCheckbox("checkbox",g)}});let counter=0;const useFullscreenProps={fullscreen:Boolean,noRouteFullscreenExit:Boolean},useFullscreenEmits=["update:fullscreen","fullscreen"];function useFullscreen(){const u=getCurrentInstance(),{props:d,emit:g,proxy:f}=u;let b,m,y;const k=ref(!1);vmHasRouter(u)===!0&&watch(()=>f.$route.fullPath,()=>{d.noRouteFullscreenExit!==!0&&w()}),watch(()=>d.fullscreen,$=>{k.value!==$&&a()}),watch(k,$=>{g("update:fullscreen",$),g("fullscreen",$)});function a(){k.value===!0?w():q()}function q(){k.value!==!0&&(k.value=!0,y=f.$el.parentNode,y.replaceChild(m,f.$el),document.body.appendChild(f.$el),counter++,counter===1&&document.body.classList.add("q-body--fullscreen-mixin"),b={handler:w},History.add(b))}function w(){k.value===!0&&(b!==void 0&&(History.remove(b),b=void 0),y.replaceChild(f.$el,m),k.value=!1,counter=Math.max(0,counter-1),counter===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),f.$el.scrollIntoView!==void 0&&setTimeout(()=>{f.$el.scrollIntoView()})))}return onBeforeMount(()=>{m=document.createElement("span")}),onMounted(()=>{d.fullscreen===!0&&q()}),onBeforeUnmount(w),Object.assign(f,{toggleFullscreen:a,setFullscreen:q,exitFullscreen:w}),{inFullscreen:k,toggleFullscreen:a}}function sortDate(u,d){return new Date(u)-new Date(d)}const useTableSortProps={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:u=>u==="ad"||u==="da",default:"ad"}};function useTableSort(u,d,g,f){const b=computed(()=>{const{sortBy:k}=d.value;return k&&g.value.find(a=>a.name===k)||null}),m=computed(()=>u.sortMethod!==void 0?u.sortMethod:(k,a,q)=>{const w=g.value.find(C=>C.name===a);if(w===void 0||w.field===void 0)return k;const $=q===!0?-1:1,Q=typeof w.field=="function"?C=>w.field(C):C=>C[w.field];return k.sort((C,v)=>{let J=Q(C),ae=Q(v);return w.rawSort!==void 0?w.rawSort(J,ae,C,v)*$:J==null?-1*$:ae==null?1*$:w.sort!==void 0?w.sort(J,ae,C,v)*$:isNumber$3(J)===!0&&isNumber$3(ae)===!0?(J-ae)*$:isDate$1(J)===!0&&isDate$1(ae)===!0?sortDate(J,ae)*$:typeof J=="boolean"&&typeof ae=="boolean"?(J-ae)*$:([J,ae]=[J,ae].map(H=>(H+"").toLocaleString().toLowerCase()),J<ae?-1*$:J===ae?0:$)})});function y(k){let a=u.columnSortOrder;if(isObject$1(k)===!0)k.sortOrder&&(a=k.sortOrder),k=k.name;else{const $=g.value.find(Q=>Q.name===k);$!==void 0&&$.sortOrder&&(a=$.sortOrder)}let{sortBy:q,descending:w}=d.value;q!==k?(q=k,w=a==="da"):u.binaryStateSort===!0?w=!w:w===!0?a==="ad"?q=null:w=!1:a==="ad"?w=!0:q=null,f({sortBy:q,descending:w,page:1})}return{columnToSort:b,computedSortMethod:m,sort:y}}const useTableFilterProps={filter:[String,Object],filterMethod:Function};function useTableFilter(u,d){const g=computed(()=>u.filterMethod!==void 0?u.filterMethod:(f,b,m,y)=>{const k=b?b.toLowerCase():"";return f.filter(a=>m.some(q=>{const w=y(q,a)+"";return(w==="undefined"||w==="null"?"":w.toLowerCase()).indexOf(k)!==-1}))});return watch(()=>u.filter,()=>{nextTick(()=>{d({page:1},!0)})},{deep:!0}),{computedFilterMethod:g}}function samePagination(u,d){for(const g in d)if(d[g]!==u[g])return!1;return!0}function fixPagination(u){return u.page<1&&(u.page=1),u.rowsPerPage!==void 0&&u.rowsPerPage<1&&(u.rowsPerPage=0),u}const useTablePaginationProps={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function useTablePaginationState(u,d){const{props:g,emit:f}=u,b=ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:g.rowsPerPageOptions.length!==0?g.rowsPerPageOptions[0]:5},g.pagination)),m=computed(()=>{const w=g["onUpdate:pagination"]!==void 0?{...b.value,...g.pagination}:b.value;return fixPagination(w)}),y=computed(()=>m.value.rowsNumber!==void 0);function k(w){a({pagination:w,filter:g.filter})}function a(w={}){nextTick(()=>{f("request",{pagination:w.pagination||m.value,filter:w.filter||g.filter,getCellValue:d})})}function q(w,$){const Q=fixPagination({...m.value,...w});if(samePagination(m.value,Q)===!0){y.value===!0&&$===!0&&k(Q);return}if(y.value===!0){k(Q);return}g.pagination!==void 0&&g["onUpdate:pagination"]!==void 0?f("update:pagination",Q):b.value=Q}return{innerPagination:b,computedPagination:m,isServerSide:y,requestServerInteraction:a,setPagination:q}}function useTablePagination(u,d,g,f,b,m){const{props:y,emit:k,proxy:{$q:a}}=u,q=computed(()=>f.value===!0?g.value.rowsNumber||0:m.value),w=computed(()=>{const{page:j,rowsPerPage:L}=g.value;return(j-1)*L}),$=computed(()=>{const{page:j,rowsPerPage:L}=g.value;return j*L}),Q=computed(()=>g.value.page===1),C=computed(()=>g.value.rowsPerPage===0?1:Math.max(1,Math.ceil(q.value/g.value.rowsPerPage))),v=computed(()=>$.value===0?!0:g.value.page>=C.value),J=computed(()=>(y.rowsPerPageOptions.includes(d.value.rowsPerPage)?y.rowsPerPageOptions:[d.value.rowsPerPage].concat(y.rowsPerPageOptions)).map(L=>({label:L===0?a.lang.table.allRows:""+L,value:L})));watch(C,(j,L)=>{if(j===L)return;const R=g.value.page;j&&!R?b({page:1}):j<R&&b({page:j})});function ae(){b({page:1})}function H(){const{page:j}=g.value;j>1&&b({page:j-1})}function Y(){const{page:j,rowsPerPage:L}=g.value;$.value>0&&j*L<q.value&&b({page:j+1})}function G(){b({page:C.value})}return y["onUpdate:pagination"]!==void 0&&k("update:pagination",{...g.value}),{firstRowIndex:w,lastRowIndex:$,isFirstPage:Q,isLastPage:v,pagesNumber:C,computedRowsPerPageOptions:J,computedRowsNumber:q,firstPage:ae,prevPage:H,nextPage:Y,lastPage:G}}const useTableRowSelectionProps={selection:{type:String,default:"none",validator:u=>["single","multiple","none"].includes(u)},selected:{type:Array,default:()=>[]}},useTableRowSelectionEmits=["update:selected","selection"];function useTableRowSelection(u,d,g,f){const b=computed(()=>{const v={};return u.selected.map(f.value).forEach(J=>{v[J]=!0}),v}),m=computed(()=>u.selection!=="none"),y=computed(()=>u.selection==="single"),k=computed(()=>u.selection==="multiple"),a=computed(()=>g.value.length!==0&&g.value.every(v=>b.value[f.value(v)]===!0)),q=computed(()=>a.value!==!0&&g.value.some(v=>b.value[f.value(v)]===!0)),w=computed(()=>u.selected.length);function $(v){return b.value[v]===!0}function Q(){d("update:selected",[])}function C(v,J,ae,H){d("selection",{rows:J,added:ae,keys:v,evt:H});const Y=y.value===!0?ae===!0?J:[]:ae===!0?u.selected.concat(J):u.selected.filter(G=>v.includes(f.value(G))===!1);d("update:selected",Y)}return{hasSelectionMode:m,singleSelection:y,multipleSelection:k,allRowsSelected:a,someRowsSelected:q,rowsSelectedNumber:w,isRowSelected:$,clearSelection:Q,updateSelection:C}}function getVal(u){return Array.isArray(u)?u.slice():[]}const useTableRowExpandProps={expanded:Array},useTableRowExpandEmits=["update:expanded"];function useTableRowExpand(u,d){const g=ref(getVal(u.expanded));watch(()=>u.expanded,y=>{g.value=getVal(y)});function f(y){return g.value.includes(y)}function b(y){u.expanded!==void 0?d("update:expanded",y):g.value=y}function m(y,k){const a=g.value.slice(),q=a.indexOf(y);k===!0?q===-1&&(a.push(y),b(a)):q!==-1&&(a.splice(q,1),b(a))}return{isRowExpanded:f,setExpanded:b,updateExpanded:m}}const useTableColumnSelectionProps={visibleColumns:Array};function useTableColumnSelection(u,d,g){const f=computed(()=>{if(u.columns!==void 0)return u.columns;const k=u.rows[0];return k!==void 0?Object.keys(k).map(a=>({name:a,label:a.toUpperCase(),field:a,align:isNumber$3(k[a])?"right":"left",sortable:!0})):[]}),b=computed(()=>{const{sortBy:k,descending:a}=d.value;return(u.visibleColumns!==void 0?f.value.filter(w=>w.required===!0||u.visibleColumns.includes(w.name)===!0):f.value).map(w=>{const $=w.align||"right",Q=`text-${$}`;return{...w,align:$,__iconClass:`q-table__sort-icon q-table__sort-icon--${$}`,__thClass:Q+(w.headerClasses!==void 0?" "+w.headerClasses:"")+(w.sortable===!0?" sortable":"")+(w.name===k?` sorted ${a===!0?"sort-desc":""}`:""),__tdStyle:w.style!==void 0?typeof w.style!="function"?()=>w.style:w.style:()=>null,__tdClass:w.classes!==void 0?typeof w.classes!="function"?()=>Q+" "+w.classes:C=>Q+" "+w.classes(C):()=>Q}})}),m=computed(()=>{const k={};return b.value.forEach(a=>{k[a.name]=a}),k}),y=computed(()=>u.tableColspan!==void 0?u.tableColspan:b.value.length+(g.value===!0?1:0));return{colList:f,computedCols:b,computedColsMap:m,computedColspan:y}}const bottomClass="q-table__bottom row items-center",virtScrollPassthroughProps={};commonVirtScrollPropsList.forEach(u=>{virtScrollPassthroughProps[u]={}});var QTable=createComponent({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:u=>["horizontal","vertical","cell","none"].includes(u)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...virtScrollPassthroughProps,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...useDarkProps,...useFullscreenProps,...useTableColumnSelectionProps,...useTableFilterProps,...useTablePaginationProps,...useTableRowExpandProps,...useTableRowSelectionProps,...useTableSortProps},emits:["request","virtualScroll",...useFullscreenEmits,...useTableRowExpandEmits,...useTableRowSelectionEmits],setup(u,{slots:d,emit:g}){const f=getCurrentInstance(),{proxy:{$q:b}}=f,m=useDark(u,b),{inFullscreen:y,toggleFullscreen:k}=useFullscreen(),a=computed(()=>typeof u.rowKey=="function"?u.rowKey:Re=>Re[u.rowKey]),q=ref(null),w=ref(null),$=computed(()=>u.grid!==!0&&u.virtualScroll===!0),Q=computed(()=>" q-table__card"+(m.value===!0?" q-table__card--dark q-dark":"")+(u.square===!0?" q-table--square":"")+(u.flat===!0?" q-table--flat":"")+(u.bordered===!0?" q-table--bordered":"")),C=computed(()=>`q-table__container q-table--${u.separator}-separator column no-wrap`+(u.grid===!0?" q-table--grid":Q.value)+(m.value===!0?" q-table--dark":"")+(u.dense===!0?" q-table--dense":"")+(u.wrapCells===!1?" q-table--no-wrap":"")+(y.value===!0?" fullscreen scroll":"")),v=computed(()=>C.value+(u.loading===!0?" q-table--loading":""));watch(()=>u.tableStyle+u.tableClass+u.tableHeaderStyle+u.tableHeaderClass+C.value,()=>{$.value===!0&&w.value!==null&&w.value.reset()});const{innerPagination:J,computedPagination:ae,isServerSide:H,requestServerInteraction:Y,setPagination:G}=useTablePaginationState(f,Te),{computedFilterMethod:j}=useTableFilter(u,G),{isRowExpanded:L,setExpanded:R,updateExpanded:T}=useTableRowExpand(u,g),O=computed(()=>{let Re=u.rows;if(H.value===!0||Re.length===0)return Re;const{sortBy:Me,descending:ze}=ae.value;return u.filter&&(Re=j.value(Re,u.filter,te.value,Te)),ee.value!==null&&(Re=X.value(u.rows===Re?Re.slice():Re,Me,ze)),Re}),P=computed(()=>O.value.length),B=computed(()=>{let Re=O.value;if(H.value===!0)return Re;const{rowsPerPage:Me}=ae.value;return Me!==0&&(Z.value===0&&u.rows!==Re?Re.length>se.value&&(Re=Re.slice(0,se.value)):Re=Re.slice(Z.value,se.value)),Re}),{hasSelectionMode:M,singleSelection:F,multipleSelection:S,allRowsSelected:A,someRowsSelected:E,rowsSelectedNumber:_,isRowSelected:D,clearSelection:N,updateSelection:U}=useTableRowSelection(u,g,B,a),{colList:z,computedCols:te,computedColsMap:W,computedColspan:re}=useTableColumnSelection(u,ae,M),{columnToSort:ee,computedSortMethod:X,sort:K}=useTableSort(u,ae,z,G),{firstRowIndex:Z,lastRowIndex:se,isFirstPage:ie,isLastPage:de,pagesNumber:ce,computedRowsPerPageOptions:he,computedRowsNumber:oe,firstPage:ne,prevPage:ue,nextPage:le,lastPage:fe}=useTablePagination(f,J,ae,H,G,P),pe=computed(()=>B.value.length===0),ve=computed(()=>{const Re={};return commonVirtScrollPropsList.forEach(Me=>{Re[Me]=u[Me]}),Re.virtualScrollItemSize===void 0&&(Re.virtualScrollItemSize=u.dense===!0?28:48),Re});function xe(){$.value===!0&&w.value.reset()}function Ce(){if(u.grid===!0)return at();const Re=u.hideHeader!==!0?ke:null;if($.value===!0){const ze=d["top-row"],$e=d["bottom-row"],je={default:Ze=>ye(Ze.item,d.body,Ze.index)};if(ze!==void 0){const Ze=h("tbody",ze({cols:te.value}));je.before=Re===null?()=>Ze:()=>[Re()].concat(Ze)}else Re!==null&&(je.before=Re);return $e!==void 0&&(je.after=()=>h("tbody",$e({cols:te.value}))),h(QVirtualScroll,{ref:w,class:u.tableClass,style:u.tableStyle,...ve.value,scrollTarget:u.virtualScrollTarget,items:B.value,type:"__qtable",tableColspan:re.value,onVirtualScroll:me},je)}const Me=[Se()];return Re!==null&&Me.unshift(Re()),getTableMiddle({class:["q-table__middle scroll",u.tableClass],style:u.tableStyle},Me)}function be(Re,Me){if(w.value!==null){w.value.scrollTo(Re,Me);return}Re=parseInt(Re,10);const ze=q.value.querySelector(`tbody tr:nth-of-type(${Re+1})`);if(ze!==null){const $e=q.value.querySelector(".q-table__middle.scroll"),je=ze.offsetTop-u.virtualScrollStickySizeStart,Ze=je<$e.scrollTop?"decrease":"increase";$e.scrollTop=je,g("virtualScroll",{index:Re,from:0,to:J.value.rowsPerPage-1,direction:Ze})}}function me(Re){g("virtualScroll",Re)}function ge(){return[h(QLinearProgress,{class:"q-table__linear-progress",color:u.color,dark:m.value,indeterminate:!0,trackColor:"transparent"})]}function ye(Re,Me,ze){const $e=a.value(Re),je=D($e);if(Me!==void 0)return Me(Ee({key:$e,row:Re,pageIndex:ze,__trClass:je?"selected":""}));const Ze=d["body-cell"],Qe=te.value.map(lt=>{const Ft=d[`body-cell-${lt.name}`],kt=Ft!==void 0?Ft:Ze;return kt!==void 0?kt(De({key:$e,row:Re,pageIndex:ze,col:lt})):h("td",{class:lt.__tdClass(Re),style:lt.__tdStyle(Re)},Te(lt,Re))});if(M.value===!0){const lt=d["body-selection"],Ft=lt!==void 0?lt(_e({key:$e,row:Re,pageIndex:ze})):[h(QCheckbox,{modelValue:je,color:u.color,dark:m.value,dense:u.dense,"onUpdate:modelValue":(kt,ft)=>{U([$e],[Re],kt,ft)}})];Qe.unshift(h("td",{class:"q-table--col-auto-width"},Ft))}const ut={key:$e,class:{selected:je}};return u.onRowClick!==void 0&&(ut.class["cursor-pointer"]=!0,ut.onClick=lt=>{g("rowClick",lt,Re,ze)}),u.onRowDblclick!==void 0&&(ut.class["cursor-pointer"]=!0,ut.onDblclick=lt=>{g("rowDblclick",lt,Re,ze)}),u.onRowContextmenu!==void 0&&(ut.class["cursor-pointer"]=!0,ut.onContextmenu=lt=>{g("rowContextmenu",lt,Re,ze)}),h("tr",ut,Qe)}function Se(){const Re=d.body,Me=d["top-row"],ze=d["bottom-row"];let $e=B.value.map((je,Ze)=>ye(je,Re,Ze));return Me!==void 0&&($e=Me({cols:te.value}).concat($e)),ze!==void 0&&($e=$e.concat(ze({cols:te.value}))),h("tbody",$e)}function Ee(Re){return Be(Re),Re.cols=Re.cols.map(Me=>injectProp({...Me},"value",()=>Te(Me,Re.row))),Re}function De(Re){return Be(Re),injectProp(Re,"value",()=>Te(Re.col,Re.row)),Re}function _e(Re){return Be(Re),Re}function Be(Re){Object.assign(Re,{cols:te.value,colsMap:W.value,sort:K,rowIndex:Z.value+Re.pageIndex,color:u.color,dark:m.value,dense:u.dense}),M.value===!0&&injectProp(Re,"selected",()=>D(Re.key),(Me,ze)=>{U([Re.key],[Re.row],Me,ze)}),injectProp(Re,"expand",()=>L(Re.key),Me=>{T(Re.key,Me)})}function Te(Re,Me){const ze=typeof Re.field=="function"?Re.field(Me):Me[Re.field];return Re.format!==void 0?Re.format(ze,Me):ze}const Fe=computed(()=>({pagination:ae.value,pagesNumber:ce.value,isFirstPage:ie.value,isLastPage:de.value,firstPage:ne,prevPage:ue,nextPage:le,lastPage:fe,inFullscreen:y.value,toggleFullscreen:k}));function we(){const Re=d.top,Me=d["top-left"],ze=d["top-right"],$e=d["top-selection"],je=M.value===!0&&$e!==void 0&&_.value>0,Ze="q-table__top relative-position row items-center";if(Re!==void 0)return h("div",{class:Ze},[Re(Fe.value)]);let Qe;if(je===!0?Qe=$e(Fe.value).slice():(Qe=[],Me!==void 0?Qe.push(h("div",{class:"q-table__control"},[Me(Fe.value)])):u.title&&Qe.push(h("div",{class:"q-table__control"},[h("div",{class:["q-table__title",u.titleClass]},u.title)]))),ze!==void 0&&(Qe.push(h("div",{class:"q-table__separator col"})),Qe.push(h("div",{class:"q-table__control"},[ze(Fe.value)]))),Qe.length!==0)return h("div",{class:Ze},Qe)}const Ae=computed(()=>E.value===!0?null:A.value);function ke(){const Re=Pe();return u.loading===!0&&d.loading===void 0&&Re.push(h("tr",{class:"q-table__progress"},[h("th",{class:"relative-position",colspan:re.value},ge())])),h("thead",Re)}function Pe(){const Re=d.header,Me=d["header-cell"];if(Re!==void 0)return Re(Le({header:!0})).slice();const ze=te.value.map($e=>{const je=d[`header-cell-${$e.name}`],Ze=je!==void 0?je:Me,Qe=Le({col:$e});return Ze!==void 0?Ze(Qe):h(QTh,{key:$e.name,props:Qe},()=>$e.label)});if(F.value===!0&&u.grid!==!0)ze.unshift(h("th",{class:"q-table--col-auto-width"}," "));else if(S.value===!0){const $e=d["header-selection"],je=$e!==void 0?$e(Le({})):[h(QCheckbox,{color:u.color,modelValue:Ae.value,dark:m.value,dense:u.dense,"onUpdate:modelValue":Ne})];ze.unshift(h("th",{class:"q-table--col-auto-width"},je))}return[h("tr",{class:u.tableHeaderClass,style:u.tableHeaderStyle},ze)]}function Le(Re){return Object.assign(Re,{cols:te.value,sort:K,colsMap:W.value,color:u.color,dark:m.value,dense:u.dense}),S.value===!0&&injectProp(Re,"selected",()=>Ae.value,Ne),Re}function Ne(Re){E.value===!0&&(Re=!1),U(B.value.map(a.value),B.value,Re)}const qe=computed(()=>{const Re=[u.iconFirstPage||b.iconSet.table.firstPage,u.iconPrevPage||b.iconSet.table.prevPage,u.iconNextPage||b.iconSet.table.nextPage,u.iconLastPage||b.iconSet.table.lastPage];return b.lang.rtl===!0?Re.reverse():Re});function Oe(){if(u.hideBottom===!0)return;if(pe.value===!0){if(u.hideNoData===!0)return;const ze=u.loading===!0?u.loadingLabel||b.lang.table.loading:u.filter?u.noResultsLabel||b.lang.table.noResults:u.noDataLabel||b.lang.table.noData,$e=d["no-data"],je=$e!==void 0?[$e({message:ze,icon:b.iconSet.table.warning,filter:u.filter})]:[h(QIcon,{class:"q-table__bottom-nodata-icon",name:b.iconSet.table.warning}),ze];return h("div",{class:bottomClass+" q-table__bottom--nodata"},je)}const Re=d.bottom;if(Re!==void 0)return h("div",{class:bottomClass},[Re(Fe.value)]);const Me=u.hideSelectedBanner!==!0&&M.value===!0&&_.value>0?[h("div",{class:"q-table__control"},[h("div",[(u.selectedRowsLabel||b.lang.table.selectedRecords)(_.value)])])]:[];if(u.hidePagination!==!0)return h("div",{class:bottomClass+" justify-end"},Ve(Me));if(Me.length!==0)return h("div",{class:bottomClass},Me)}function Ge(Re){G({page:1,rowsPerPage:Re.value})}function Ve(Re){let Me;const{rowsPerPage:ze}=ae.value,$e=u.paginationLabel||b.lang.table.pagination,je=d.pagination,Ze=u.rowsPerPageOptions.length>1;if(Re.push(h("div",{class:"q-table__separator col"})),Ze===!0&&Re.push(h("div",{class:"q-table__control"},[h("span",{class:"q-table__bottom-item"},[u.rowsPerPageLabel||b.lang.table.recordsPerPage]),h(QSelect,{class:"q-table__select inline q-table__bottom-item",color:u.color,modelValue:ze,options:he.value,displayValue:ze===0?b.lang.table.allRows:ze,dark:m.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Ge})])),je!==void 0)Me=je(Fe.value);else if(Me=[h("span",ze!==0?{class:"q-table__bottom-item"}:{},[ze?$e(Z.value+1,Math.min(se.value,oe.value),oe.value):$e(1,P.value,oe.value)])],ze!==0&&ce.value>1){const Qe={color:u.color,round:!0,dense:!0,flat:!0};u.dense===!0&&(Qe.size="sm"),ce.value>2&&Me.push(h(QBtn,{key:"pgFirst",...Qe,icon:qe.value[0],disable:ie.value,onClick:ne})),Me.push(h(QBtn,{key:"pgPrev",...Qe,icon:qe.value[1],disable:ie.value,onClick:ue}),h(QBtn,{key:"pgNext",...Qe,icon:qe.value[2],disable:de.value,onClick:le})),ce.value>2&&Me.push(h(QBtn,{key:"pgLast",...Qe,icon:qe.value[3],disable:de.value,onClick:fe}))}return Re.push(h("div",{class:"q-table__control"},Me)),Re}function Xe(){const Re=u.gridHeader===!0?[h("table",{class:"q-table"},[ke()])]:u.loading===!0&&d.loading===void 0?ge():void 0;return h("div",{class:"q-table__middle"},Re)}function at(){const Re=d.item!==void 0?d.item:Me=>{const ze=Me.cols.map(je=>h("div",{class:"q-table__grid-item-row"},[h("div",{class:"q-table__grid-item-title"},[je.label]),h("div",{class:"q-table__grid-item-value"},[je.value])]));if(M.value===!0){const je=d["body-selection"],Ze=je!==void 0?je(Me):[h(QCheckbox,{modelValue:Me.selected,color:u.color,dark:m.value,dense:u.dense,"onUpdate:modelValue":(Qe,ut)=>{U([Me.key],[Me.row],Qe,ut)}})];ze.unshift(h("div",{class:"q-table__grid-item-row"},Ze),h(QSeparator,{dark:m.value}))}const $e={class:["q-table__grid-item-card"+Q.value,u.cardClass],style:u.cardStyle};return(u.onRowClick!==void 0||u.onRowDblclick!==void 0)&&($e.class[0]+=" cursor-pointer",u.onRowClick!==void 0&&($e.onClick=je=>{g("RowClick",je,Me.row,Me.pageIndex)}),u.onRowDblclick!==void 0&&($e.onDblclick=je=>{g("RowDblclick",je,Me.row,Me.pageIndex)})),h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(Me.selected===!0?" q-table__grid-item--selected":"")},[h("div",$e,ze)])};return h("div",{class:["q-table__grid-content row",u.cardContainerClass],style:u.cardContainerStyle},B.value.map((Me,ze)=>Re(Ee({key:a.value(Me),row:Me,pageIndex:ze}))))}return Object.assign(f.proxy,{requestServerInteraction:Y,setPagination:G,firstPage:ne,prevPage:ue,nextPage:le,lastPage:fe,isRowSelected:D,clearSelection:N,isRowExpanded:L,setExpanded:R,sort:K,resetVirtualScroll:xe,scrollTo:be,getCellValue:Te}),injectMultipleProps(f.proxy,{filteredSortedRows:()=>O.value,computedRows:()=>B.value,computedRowsNumber:()=>oe.value}),()=>{const Re=[we()],Me={ref:q,class:v.value};return u.grid===!0?Re.push(Xe()):Object.assign(Me,{class:[Me.class,u.cardClass],style:u.cardStyle}),Re.push(Ce(),Oe()),u.loading===!0&&d.loading!==void 0&&Re.push(d.loading()),h("div",Me,Re)}}});const _sfc_main$f=defineComponent({name:"RightSidebar",data:()=>({columns:[{name:"name",required:!0,label:"Dessert (100g serving)",align:"left",field:u=>u.name,format:u=>`${u}`,sortable:!0},{name:"calories",align:"center",label:"Calories",field:"calories",sortable:!0},{name:"fat",label:"Fat (g)",field:"fat",sortable:!0},{name:"carbs",label:"Carbs (g)",field:"carbs"},{name:"protein",label:"Protein (g)",field:"protein"},{name:"sodium",label:"Sodium (mg)",field:"sodium"},{name:"calcium",label:"Calcium (%)",field:"calcium",sortable:!0,sort:(u,d)=>Number.parseInt(u,10)-Number.parseInt(d,10)},{name:"iron",label:"Iron (%)",field:"iron",sortable:!0,sort:(u,d)=>Number.parseInt(u,10)-Number.parseInt(d,10)}],rows:[{name:"Frozen Yogurt",calories:159,fat:6,carbs:24,protein:4,sodium:87,calcium:"14%",iron:"1%"},{name:"Ice cream sandwich",calories:237,fat:9,carbs:37,protein:4.3,sodium:129,calcium:"8%",iron:"1%"},{name:"Eclair",calories:262,fat:16,carbs:23,protein:6,sodium:337,calcium:"6%",iron:"7%"},{name:"Cupcake",calories:305,fat:3.7,carbs:67,protein:4.3,sodium:413,calcium:"3%",iron:"8%"},{name:"Gingerbread",calories:356,fat:16,carbs:49,protein:3.9,sodium:327,calcium:"7%",iron:"16%"},{name:"Jelly bean",calories:375,fat:0,carbs:94,protein:0,sodium:50,calcium:"0%",iron:"0%"},{name:"Lollipop",calories:392,fat:.2,carbs:98,protein:0,sodium:38,calcium:"0%",iron:"2%"},{name:"Honeycomb",calories:408,fat:3.2,carbs:87,protein:6.5,sodium:562,calcium:"0%",iron:"45%"},{name:"Donut",calories:452,fat:25,carbs:51,protein:4.9,sodium:326,calcium:"2%",iron:"22%"},{name:"KitKat",calories:518,fat:26,carbs:65,protein:7,sodium:54,calcium:"12%",iron:"6%"}]}),methods:{openFileDetails:u=>{}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedApp:function(){return this.$route.name.split("-")[0]}},mounted(){this.$bus.on("openFileDetails",this.openFileDetails)},beforeUnmount(){this.$bus.off("openFileDetails")},setup(){return{mainStore:useMainStore()}}}),_hoisted_1$8={class:"fit"};function _sfc_render$e(u,d,g,f,b,m){return openBlock(),createElementBlock("div",_hoisted_1$8,[createVNode(QTable,{class:"fit",title:"Treats",rows:u.rows,columns:u.columns,"row-key":"name","hide-pagination":!0,"rows-per-page-options":[0],flat:!0},{default:withCtx(()=>[renderSlot(u.$slots,"top-right",{},()=>[createVNode(QBtn,{dense:"",flat:"",round:"",icon:"menu"})])]),_:3},8,["rows","columns"])])}var RightSidebar=_export_sfc(_sfc_main$f,[["render",_sfc_render$e]]),QAvatar=createComponent({name:"QAvatar",props:{...useSizeProps,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(u,{slots:d}){const g=useSize(u),f=computed(()=>"q-avatar"+(u.color?` bg-${u.color}`:"")+(u.textColor?` text-${u.textColor} q-chip--colored`:"")+(u.square===!0?" q-avatar--square":u.rounded===!0?" rounded-borders":"")),b=computed(()=>u.fontSize?{fontSize:u.fontSize}:null);return()=>{const m=u.icon!==void 0?[h(QIcon,{name:u.icon})]:void 0;return h("div",{class:f.value,style:g.value},[h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:b.value},hMergeSlotSafely(d.default,m))])}}}),QToolbarTitle=createComponent({name:"QToolbarTitle",props:{shrink:Boolean},setup(u,{slots:d}){const g=computed(()=>"q-toolbar__title ellipsis"+(u.shrink===!0?" col-shrink":""));return()=>h("div",{class:g.value},hSlot(d.default))}}),QSpace=createComponent({name:"QSpace",setup(){const u=h("div",{class:"q-space"});return()=>u}});const _sfc_main$e=defineComponent({name:"BucketPicker",methods:{changeBucket:function(u){this.$router.push({name:`${this.selectedApp}-home`,params:{bucket:u}})}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedApp:function(){return this.$route.name.split("-")[0]}},setup(){return{mainStore:useMainStore()}}});function _sfc_render$d(u,d,g,f,b,m){return openBlock(),createBlock(QSelect,{"model-value":u.selectedBucket,"onUpdate:modelValue":u.changeBucket,color:"blue","stack-label":"",dense:!0,filled:"","bg-color":"white",options:u.mainStore.buckets.map(y=>y.name),label:"Bucket",style:{"min-width":"100px"}},null,8,["model-value","onUpdate:modelValue","options"])}var BucketPicker=_export_sfc(_sfc_main$e,[["render",_sfc_render$d]]);const _sfc_main$d=defineComponent({name:"TopBar",emits:["toggle"],components:{BucketPicker}});function _sfc_render$c(u,d,g,f,b,m){const y=resolveComponent("bucket-picker");return openBlock(),createElementBlock(Fragment,null,[createVNode(QBtn,{dense:"",flat:"",round:"",icon:"menu",onClick:d[0]||(d[0]=k=>u.$emit("toggle"))}),createVNode(QToolbarTitle,{style:{overflow:"unset"},class:"text-bold"},{default:withCtx(()=>[createVNode(QAvatar,null,{default:withCtx(()=>d[1]||(d[1]=[createBaseVNode("img",{src:"/logo-white.svg"},null,-1)])),_:1}),d[2]||(d[2]=createTextVNode(" R2-Explorer "))]),_:1}),createVNode(QSpace),createBaseVNode("div",null,[createVNode(y)])],64)}var TopBar=_export_sfc(_sfc_main$d,[["render",_sfc_render$c]]);const _sfc_main$c={name:"MainLayout",components:{TopBar,RightSidebar,LeftSidebar},setup(){const u=ref(!1),d=ref(!1);return{leftDrawerOpen:u,toggleLeftDrawer(){u.value=!u.value},rightDrawerOpen:d,updateRightDrawer(g){d.value=g}}},mounted(){this.updateRightDrawer(!1)}};function _sfc_render$b(u,d,g,f,b,m){const y=resolveComponent("top-bar"),k=resolveComponent("left-sidebar"),a=resolveComponent("router-view");return openBlock(),createBlock(QLayout,{view:"hHh LpR lFr"},{default:withCtx(()=>[createVNode(QHeader,{reveal:"",class:"bg-green text-white"},{default:withCtx(()=>[createVNode(QToolbar,null,{default:withCtx(()=>[createVNode(y,{onToggle:f.toggleLeftDrawer},null,8,["onToggle"])]),_:1})]),_:1}),createVNode(QDrawer,{width:100,"show-if-above":"",modelValue:f.leftDrawerOpen,"onUpdate:modelValue":d[0]||(d[0]=q=>f.leftDrawerOpen=q),side:"left",bordered:""},{default:withCtx(()=>[createVNode(k)]),_:1},8,["modelValue"]),createVNode(QPageContainer,null,{default:withCtx(()=>[createVNode(a)]),_:1})]),_:1})}var MainLayout=_export_sfc(_sfc_main$c,[["render",_sfc_render$b]]),QInnerLoading=createComponent({name:"QInnerLoading",props:{...useDarkProps,...useTransitionProps,showing:Boolean,color:String,size:{type:[String,Number],default:"42px"},label:String,labelClass:String,labelStyle:[String,Array,Object]},setup(u,{slots:d}){const g=getCurrentInstance(),f=useDark(u,g.proxy.$q),{transitionProps:b,transitionStyle:m}=useTransition(u),y=computed(()=>"q-inner-loading q--avoid-card-border absolute-full column flex-center"+(f.value===!0?" q-inner-loading--dark":"")),k=computed(()=>"q-inner-loading__label"+(u.labelClass!==void 0?` ${u.labelClass}`:""));function a(){const w=[h(QSpinner,{size:u.size,color:u.color})];return u.label!==void 0&&w.push(h("div",{class:k.value,style:u.labelStyle},[u.label])),w}function q(){return u.showing===!0?h("div",{class:y.value,style:m.value},d.default!==void 0?d.default():a()):null}return()=>h(Transition,b.value,q)}}),QPage=createComponent({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(u,{slots:d}){const{proxy:{$q:g}}=getCurrentInstance(),f=inject(layoutKey,emptyRenderFn);if(f===emptyRenderFn)return console.error("QPage needs to be a deep child of QLayout"),emptyRenderFn;if(inject(pageContainerKey,emptyRenderFn)===emptyRenderFn)return console.error("QPage needs to be child of QPageContainer"),emptyRenderFn;const m=computed(()=>{const k=(f.header.space===!0?f.header.size:0)+(f.footer.space===!0?f.footer.size:0);if(typeof u.styleFn=="function"){const a=f.isContainer.value===!0?f.containerHeight.value:g.screen.height;return u.styleFn(k,a)}return{minHeight:f.isContainer.value===!0?f.containerHeight.value-k+"px":g.screen.height===0?k!==0?`calc(100vh - ${k}px)`:"100vh":g.screen.height-k+"px"}}),y=computed(()=>`q-page${u.padding===!0?" q-layout-padding":""}`);return()=>h("main",{class:y.value,style:m.value},hSlot(d.default))}});const _sfc_main$b=defineComponent({name:"HomePage",setup(){return{mainStore:useMainStore()}}});function _sfc_render$a(u,d,g,f,b,m){return openBlock(),createBlock(QPage,{class:"flex flex-center"},{default:withCtx(()=>[createVNode(QInnerLoading,{showing:!0,label:"Loading..."})]),_:1})}var HomePage=_export_sfc(_sfc_main$b,[["render",_sfc_render$a]]),QTd=createComponent({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(u,{slots:d}){const g=getCurrentInstance(),f=computed(()=>"q-td"+(u.autoWidth===!0?" q-table--col-auto-width":"")+(u.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(u.props===void 0)return h("td",{class:f.value},hSlot(d.default));const b=g.vnode.key,m=(u.props.colsMap!==void 0?u.props.colsMap[b]:null)||u.props.col;if(m===void 0)return;const{row:y}=u.props;return h("td",{class:f.value+m.__tdClass(y),style:m.__tdStyle(y)},hSlot(d.default))}}});const innerHTML='<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity=".3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from=".5" to=".5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>';var QSpinnerDots=createComponent({name:"QSpinnerDots",props:useSpinnerProps,setup(u){const{cSize:d,classes:g}=useSpinner(u);return()=>h("svg",{class:g.value,fill:"currentColor",width:d.value,height:d.value,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",innerHTML})}});const{passive}=listenOpts;var QInfiniteScroll=createComponent({name:"QInfiniteScroll",props:{offset:{type:Number,default:500},debounce:{type:[String,Number],default:100},scrollTarget:scrollTargetProp,initialIndex:{type:Number,default:0},disable:Boolean,reverse:Boolean},emits:["load"],setup(u,{slots:d,emit:g}){const f=ref(!1),b=ref(!0),m=ref(null),y=ref(null);let k=u.initialIndex,a,q;const w=computed(()=>"q-infinite-scroll__loading"+(f.value===!0?"":" invisible"));function $(){if(u.disable===!0||f.value===!0||b.value===!1)return;const T=getScrollHeight(a),O=getVerticalScrollPosition(a),P=height(a);u.reverse===!1?Math.round(O+P+u.offset)>=Math.round(T)&&Q():Math.round(O)<=u.offset&&Q()}function Q(){if(u.disable===!0||f.value===!0||b.value===!1)return;k++,f.value=!0;const T=getScrollHeight(a);g("load",k,O=>{b.value===!0&&(f.value=!1,nextTick(()=>{if(u.reverse===!0){const P=getScrollHeight(a),B=getVerticalScrollPosition(a),M=P-T;setVerticalScrollPosition(a,B+M)}O===!0?J():m.value&&m.value.closest("body")&&q()}))})}function C(){k=0}function v(){b.value===!1&&(b.value=!0,a.addEventListener("scroll",q,passive)),$()}function J(){b.value===!0&&(b.value=!1,f.value=!1,a.removeEventListener("scroll",q,passive),q!==void 0&&q.cancel!==void 0&&q.cancel())}function ae(){if(a&&b.value===!0&&a.removeEventListener("scroll",q,passive),a=getScrollTarget(m.value,u.scrollTarget),b.value===!0){if(a.addEventListener("scroll",q,passive),u.reverse===!0){const T=getScrollHeight(a),O=height(a);setVerticalScrollPosition(a,T-O)}$()}}function H(T){k=T}function Y(T){T=parseInt(T,10);const O=q;q=T<=0?$:debounce($,isNaN(T)===!0?100:T),a&&b.value===!0&&(O!==void 0&&a.removeEventListener("scroll",O,passive),a.addEventListener("scroll",q,passive))}function G(T){if(j.value===!0){if(y.value===null){T!==!0&&nextTick(()=>{G(!0)});return}const O=`${f.value===!0?"un":""}pauseAnimations`;Array.from(y.value.getElementsByTagName("svg")).forEach(P=>{P[O]()})}}const j=computed(()=>u.disable!==!0&&b.value===!0);watch([f,j],()=>{G()}),watch(()=>u.disable,T=>{T===!0?J():v()}),watch(()=>u.reverse,()=>{f.value===!1&&b.value===!0&&$()}),watch(()=>u.scrollTarget,ae),watch(()=>u.debounce,Y);let L=!1;onActivated(()=>{L!==!1&&a&&setVerticalScrollPosition(a,L)}),onDeactivated(()=>{L=a?getVerticalScrollPosition(a):!1}),onBeforeUnmount(()=>{b.value===!0&&a.removeEventListener("scroll",q,passive)}),onMounted(()=>{Y(u.debounce),ae(),f.value===!1&&G()});const R=getCurrentInstance();return Object.assign(R.proxy,{poll:()=>{q!==void 0&&q()},trigger:Q,stop:J,reset:C,resume:v,setIndex:H,updateScrollTarget:ae}),()=>{const T=hUniqueSlot(d.default,[]);return j.value===!0&&T[u.reverse===!1?"push":"unshift"](h("div",{ref:y,class:w.value},hSlot(d.loading))),h("div",{class:"q-infinite-scroll",ref:m},T)}}}),EmailFolderPage_vue_vue_type_style_index_0_lang="";const _sfc_main$a=defineComponent({name:"EmailFolderPage",data:()=>({timeInterval:null,indexCursors:null,loading:!1,loadMoreAutomatically:!0,hasMorePages:!0,rows:[],columns:[{name:"sender",required:!0,field:"sender",align:"left",sortable:!1},{name:"subject",required:!0,field:"subject",align:"left",sortable:!1},{name:"lastModified",required:!0,align:"left",field:"lastModified",sortable:!1},{name:"has_attachments",required:!0,align:"left",field:"has_attachments",sortable:!1}]}),computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:()=>"inbox"},watch:{selectedBucket(u){this.fetchFiles()}},methods:{rowClass:u=>u.row.customMetadata.read==="true"?"email-read":"email-unread",rowClick:function(u,d,g){const f=d.key.replace(/^.*[\\/]/,"");this.$router.push({name:"email-file",params:{bucket:this.selectedBucket,folder:this.selectedFolder,file:encode(f)}})},createOrUpdateIndex:async function(u){let d=!0,g=null,f=0,b={version:1,cursors:[]};if(u&&(b=u,u.cursors.length>0)){const m=u.cursors.pop();f=m.page,g=m.cursor}for(;d;){console.log(`Updating index page ${f}`);const m=await api.get(`/buckets/${this.selectedBucket}?include=customMetadata&include=httpMetadata`,{params:{delimiter:"/",prefix:encode(`.r2-explorer/emails/${this.selectedFolder}/`),cursor:g}});b.cursors.push({page:f,cursor:g,items:m.data.objects.length}),g=m.data.cursor,d=m.data.truncated,f++}return b},getOrCreateIndex:async function(){const u=`.r2-explorer/emails/index-${this.selectedFolder}.json`,d=await apiHandler.downloadFile(this.selectedBucket,u,{}).then(b=>b.data).catch(b=>null),g=await this.createOrUpdateIndex(d),f=new Blob([JSON.stringify(g)],{type:"application/json"});try{await apiHandler.uploadObjects(f,u,this.selectedBucket)}catch{}return g},loadNextPage:async function(u,d){const g=this.indexCursors[u];g?await this.loadIndexPage(g):(this.loadMoreAutomatically=!0,this.hasMorePages=!1),d()},fetchFiles:async function(){this.loading=!0,this.rows=[];const u=await this.getOrCreateIndex();this.indexCursors=u.cursors.reverse(),await this.loadNextPage(0,()=>{}),await this.$refs.infScroll.setIndex(0),await this.$refs.infScroll.poll(),this.loadMoreAutomatically=!1,this.loading=!1},loadIndexPage:async function(u){const d=await apiHandler.listObjects(this.selectedBucket,`.r2-explorer/emails/${this.selectedFolder}/`,"/",u.cursor);if(d.data.objects){const g=d.data.objects.filter(f=>!f.key.endsWith("/")).map(f=>{const b=new Date(Number.parseInt(f.customMetadata.timestamp));return{...f,sender:f.customMetadata.from_name||f.customMetadata.from_address,subject:f.customMetadata.subject,has_attachments:f.customMetadata.has_attachments==="true",read:f.customMetadata.read,lastModified:timeSince(b),timestamp:Number.parseInt(f.customMetadata.timestamp)}});for(const f of g.reverse())this.rows.push(f)}}},unmounted(){clearInterval(this.timeInterval),this.timeInterval=null},mounted(){this.timeInterval=setInterval(()=>{this.fetchFiles()},3e5)},created(){this.fetchFiles()},setup(){return{mainStore:useMainStore()}}}),_hoisted_1$7={class:""},_hoisted_2$4={class:"full-width q-my-lg"},_hoisted_3$4={class:"flex items-center justify-center"},_hoisted_4$4={class:"q-mb-md"},_hoisted_5$4={class:"text-left"},_hoisted_6$4={class:"flex column"},_hoisted_7$4={class:"flex"},_hoisted_8$3={class:"mobile-title"},_hoisted_9$2={class:"mobile-last-modified mobile-subject"},_hoisted_10$2={class:"email-subject mobile-subject"},_hoisted_11$2={key:0,class:"full-width q-my-lg"},_hoisted_12$2={class:"flex items-center justify-center"},_hoisted_13$2={key:0,class:"row justify-center q-my-md"},_hoisted_14$2={class:"row justify-center q-my-md"};function _sfc_render$9(u,d,g,f,b,m){return openBlock(),createBlock(QPage,{class:""},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$7,[createVNode(QInfiniteScroll,{ref:"infScroll",disable:u.loadMoreAutomatically,onLoad:u.loadNextPage,offset:250,debounce:100},{loading:withCtx(()=>[createBaseVNode("div",_hoisted_14$2,[createVNode(QSpinnerDots,{color:"primary",size:"40px"})])]),default:withCtx(()=>[createVNode(QTable,{ref:"table",rows:u.rows,columns:u.columns,"row-key":"name",loading:u.loading,"hide-pagination":!0,"rows-per-page-options":[0],flat:!0,"table-class":"email-list",onRowClick:u.rowClick},{loading:withCtx(()=>[createBaseVNode("div",_hoisted_2$4,[createBaseVNode("h6",_hoisted_3$4,[createVNode(QSpinner,{color:"primary",size:"xl"})])])]),"body-cell":withCtx(y=>[createVNode(QTd,{props:y,class:normalizeClass(u.rowClass(y))},{default:withCtx(()=>[createTextVNode(toDisplayString(y.value),1)]),_:2},1032,["props","class"])]),header:withCtx(()=>[createBaseVNode("tr",_hoisted_4$4,[createBaseVNode("th",_hoisted_5$4,[createVNode(QBtn,{color:"green",icon:"refresh",loading:u.loading,onClick:u.fetchFiles},{loading:withCtx(()=>[createVNode(QSpinner,{color:"white"})]),_:1},8,["loading","onClick"])])])]),"body-cell-sender":withCtx(y=>[createVNode(QTd,{props:y,class:normalizeClass(["email-sender",u.rowClass(y)])},{default:withCtx(()=>[createBaseVNode("div",_hoisted_6$4,[createBaseVNode("div",_hoisted_7$4,[createBaseVNode("div",_hoisted_8$3,toDisplayString(y.value),1),createBaseVNode("div",_hoisted_9$2,[createTextVNode(toDisplayString(y.row.lastModified)+" ",1),y.row.has_attachments?(openBlock(),createBlock(QIcon,{key:0,name:"attachment",size:"sm",color:"black"})):createCommentVNode("",!0)])]),createBaseVNode("div",_hoisted_10$2,toDisplayString(y.row.subject),1)])]),_:2},1032,["props","class"])]),"body-cell-subject":withCtx(y=>[createVNode(QTd,{props:y,class:normalizeClass(["email-subject",u.rowClass(y)])},{default:withCtx(()=>[createTextVNode(toDisplayString(y.value),1)]),_:2},1032,["props","class"])]),"no-data":withCtx(()=>[u.loading?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_11$2,[createBaseVNode("h6",_hoisted_12$2,[createVNode(QIcon,{name:"alternate_email",color:"orange",size:"lg"}),d[0]||(d[0]=createTextVNode(" This bucket doesn't have Emails "))])]))]),"body-cell-has_attachments":withCtx(y=>[createVNode(QTd,{props:y,class:normalizeClass(u.rowClass(y))},{default:withCtx(()=>[y.row.has_attachments?(openBlock(),createBlock(QIcon,{key:0,name:"attachment",size:"sm",color:"black"})):(openBlock(),createBlock(QIcon,{key:1,size:"sm",color:"white"}))]),_:2},1032,["props","class"])]),_:1},8,["rows","columns","loading","onRowClick"]),u.hasMorePages?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_13$2,d[1]||(d[1]=[createBaseVNode("span",null,"No more emails to load",-1)])))]),_:1},8,["disable","onLoad"])])]),_:1})}var EmailFolderPage=_export_sfc(_sfc_main$a,[["render",_sfc_render$9]]),QBreadcrumbsEl=createComponent({name:"QBreadcrumbsEl",props:{...useRouterLinkProps,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(u,{slots:d}){const{linkTag:g,linkAttrs:f,linkClass:b,navigateOnClick:m}=useRouterLink(),y=computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(u.disable!==!0?"q-link--focusable"+b.value:"q-breadcrumbs__el--disable"),...f.value,onClick:m})),k=computed(()=>"q-breadcrumbs__el-icon"+(u.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const a=[];return u.icon!==void 0&&a.push(h(QIcon,{class:k.value,name:u.icon})),u.label!==void 0&&a.push(u.label),h(g.value,{...y.value},hMergeSlot(d.default,a))}}});const disabledValues=["",!0];var QBreadcrumbs=createComponent({name:"QBreadcrumbs",props:{...useAlignProps,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:u=>["none","xs","sm","md","lg","xl"].includes(u),default:"sm"}},setup(u,{slots:d}){const g=useAlign(u),f=computed(()=>`flex items-center ${g.value}${u.gutter==="none"?"":` q-gutter-${u.gutter}`}`),b=computed(()=>u.separatorColor?` text-${u.separatorColor}`:""),m=computed(()=>` text-${u.activeColor}`);return()=>{if(d.default===void 0)return;const y=getNormalizedVNodes(hSlot(d.default));if(y.length===0)return;let k=1;const a=[],q=y.filter($=>$.type!==void 0&&$.type.name==="QBreadcrumbsEl").length,w=d.separator!==void 0?d.separator:()=>u.separator;return y.forEach($=>{if($.type!==void 0&&$.type.name==="QBreadcrumbsEl"){const Q=k<q,C=$.props!==null&&disabledValues.includes($.props.disable),v=(Q===!0?"":" q-breadcrumbs--last")+(C!==!0&&Q===!0?m.value:"");k++,a.push(h("div",{class:`flex items-center${v}`},[$])),Q===!0&&a.push(h("div",{class:"q-breadcrumbs__separator"+b.value},w()))}else a.push($)}),h("div",{class:"q-breadcrumbs"},[h("div",{class:f.value},a)])}}});function useQuasar(){return inject(quasarKey)}var FileOptions_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$9=defineComponent({name:"FileOptions",data:()=>({row:null,deleteFolderContents:[],deleteModal:!1,renameModal:!1,updateMetadataModal:!1,deleteFolderInnerFilesCount:null,newFolderName:"",renameInput:"",updateCustomMetadata:[],updateHttpMetadata:[],loading:!1}),methods:{deleteObject:async function(u){this.deleteModal=!0,this.row=u,u.type==="folder"&&(this.deleteFolderContents=await apiHandler.fetchFile(this.selectedBucket,u.key,""),this.deleteFolderInnerFilesCount=this.deleteFolderContents.length)},renameObject:async function(u){this.renameModal=!0,this.row=u,this.renameInput=u.name},updateMetadataObject:async function(u){this.updateMetadataModal=!0,this.row=u,u.httpMetadata&&(this.updateHttpMetadata=Object.entries(u.httpMetadata).map(([d,g])=>({key:d,value:g}))),u.customMetadata&&(this.updateCustomMetadata=Object.entries(u.customMetadata).map(([d,g])=>({key:d,value:g})))},renameConfirm:async function(){this.renameInput.length!==0&&(this.loading=!0,await apiHandler.renameObject(this.selectedBucket,this.row.key,this.row.key.replace(this.row.name,this.renameInput)),this.$bus.emit("fetchFiles"),this.reset(),this.q.notify({group:!1,icon:"done",spinner:!1,message:"File renamed!",timeout:2500}))},updateConfirm:async function(){this.loading=!0,await apiHandler.updateMetadata(this.selectedBucket,this.row.key,this.updateCustomMetadata.reduce((u,d)=>({...u,[d.key]:d.value}),{}),this.updateHttpMetadata.reduce((u,d)=>({...u,[d.key]:d.value}),{})),this.$bus.emit("fetchFiles"),this.reset(),this.q.notify({group:!1,icon:"done",spinner:!1,message:"File Updated!",timeout:2500})},deleteConfirm:async function(){if(this.row.type==="folder"){const u={...this.row},d=[...this.deleteFolderContents],g=this.deleteFolderInnerFilesCount;this.deleteModal=!1;const f=this.q.notify({group:!1,spinner:!0,message:"Deleting files...",caption:"0%",timeout:0});for(const[b,m]of d.entries())m.key&&await apiHandler.deleteObject(m.key,this.selectedBucket),f({caption:`${Number.parseInt(b*100/(g+1))}%`});await apiHandler.deleteObject(u.key,this.selectedBucket),f({icon:"done",spinner:!1,caption:"100%",message:"Folder deleted!",timeout:2500})}else this.deleteModal=!1,await apiHandler.deleteObject(this.row.key,this.selectedBucket),this.q.notify({group:!1,icon:"done",spinner:!1,message:"File deleted!",timeout:2500});this.$bus.emit("fetchFiles"),this.reset()},reset:function(){this.loading=!1,this.deleteModal=!1,this.renameModal=!1,this.updateMetadataModal=!1,this.renameInput="",this.updateCustomMetadata=[],this.updateHttpMetadata=[],this.row=null,this.deleteFolderInnerFilesCount=null,this.deleteFolderContents=[]},onSubmit:async function(){await apiHandler.createFolder(`${this.selectedFolder+this.newFolderName}/`,this.selectedBucket),this.$bus.emit("fetchFiles"),this.modal=!1},open:function(){this.modal=!0}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},setup(){return{mainStore:useMainStore(),q:useQuasar()}}}),_hoisted_1$6={key:0,class:"q-ml-sm"},_hoisted_2$3={key:0},_hoisted_3$3={key:1},_hoisted_4$3={key:1,class:"q-ml-sm"},_hoisted_5$3={class:"q-mt-none q-mb-sm flex"},_hoisted_6$3={class:"flex"},_hoisted_7$3={class:"q-mt-xl q-mb-sm flex"},_hoisted_8$2={class:"flex"};function _sfc_render$8(u,d,g,f,b,m){return openBlock(),createElementBlock(Fragment,null,[createVNode(QDialog,{modelValue:u.deleteModal,"onUpdate:modelValue":d[0]||(d[0]=y=>u.deleteModal=y),onHide:u.reset},{default:withCtx(()=>[createVNode(QCard,null,{default:withCtx(()=>[u.row?(openBlock(),createBlock(QCardSection,{key:0,class:"row column"},{default:withCtx(()=>[createVNode(QAvatar,{class:"q-mb-md",icon:"delete",color:"red","text-color":"white"}),u.row.type==="folder"?(openBlock(),createElementBlock("span",_hoisted_1$6,[d[6]||(d[6]=createTextVNode("Are you sure you want to delete the folder ")),createBaseVNode("code",null,toDisplayString(u.row.name),1),d[7]||(d[7]=createTextVNode(", and ")),u.deleteFolderInnerFilesCount!==null?(openBlock(),createElementBlock("code",_hoisted_2$3,toDisplayString(u.deleteFolderInnerFilesCount),1)):(openBlock(),createElementBlock("code",_hoisted_3$3,[createVNode(QSpinner,{color:"primary"})])),d[8]||(d[8]=createTextVNode(" files inside?"))])):(openBlock(),createElementBlock("span",_hoisted_4$3,[d[9]||(d[9]=createTextVNode("Are you sure you want to delete the file ")),createBaseVNode("code",null,toDisplayString(u.row.name),1),d[10]||(d[10]=createTextVNode("?"))]))]),_:1})):createCommentVNode("",!0),createVNode(QCardActions,{align:"right"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel",color:"primary"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Delete",color:"red",loading:u.loading,onClick:u.deleteConfirm},null,8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onHide"]),createVNode(QDialog,{modelValue:u.renameModal,"onUpdate:modelValue":d[2]||(d[2]=y=>u.renameModal=y),onHide:u.reset},{default:withCtx(()=>[createVNode(QCard,{style:{"min-width":"300px"}},{default:withCtx(()=>[u.row?(openBlock(),createBlock(QCardSection,{key:0,class:"row column"},{default:withCtx(()=>[createVNode(QAvatar,{class:"q-mb-md",icon:"edit",color:"orange","text-color":"white"}),createVNode(QInput,{modelValue:u.renameInput,"onUpdate:modelValue":d[1]||(d[1]=y=>u.renameInput=y),label:"Standard"},null,8,["modelValue"])]),_:1})):createCommentVNode("",!0),createVNode(QCardActions,{align:"right"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel",color:"primary"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Rename",color:"orange",loading:u.loading,onClick:u.renameConfirm},null,8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onHide"]),createVNode(QDialog,{modelValue:u.updateMetadataModal,"onUpdate:modelValue":d[5]||(d[5]=y=>u.updateMetadataModal=y),onHide:u.reset},{default:withCtx(()=>[createVNode(QCard,{style:{"min-width":"300px"}},{default:withCtx(()=>[u.row?(openBlock(),createBlock(QCardSection,{key:0,class:"row column"},{default:withCtx(()=>[createBaseVNode("h6",_hoisted_5$3,[d[11]||(d[11]=createTextVNode("HTTP Metadata ")),createVNode(QBtn,{class:"q-mr-none q-ml-auto",round:"",size:"sm",color:"primary",icon:"add",onClick:d[3]||(d[3]=y=>u.updateHttpMetadata.push({key:"",value:""}))})]),(openBlock(!0),createElementBlock(Fragment,null,renderList(u.updateHttpMetadata,(y,k)=>(openBlock(),createElementBlock("div",{class:"flex row",key:k},[createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateHttpMetadata[k].key,"onUpdate:modelValue":a=>u.updateHttpMetadata[k].key=a,label:"Key"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateHttpMetadata[k].value,"onUpdate:modelValue":a=>u.updateHttpMetadata[k].value=a,label:"Value"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",_hoisted_6$3,[createVNode(QBtn,{class:"q-my-auto",round:"",size:"sm",color:"orange",icon:"remove",onClick:a=>u.updateHttpMetadata.splice(k,1)},null,8,["onClick"])])]))),128)),createBaseVNode("h6",_hoisted_7$3,[d[12]||(d[12]=createTextVNode("Custom Metadata ")),createVNode(QBtn,{class:"q-mr-none q-ml-auto",round:"",size:"sm",color:"primary",icon:"add",onClick:d[4]||(d[4]=y=>u.updateCustomMetadata.push({key:"",value:""}))})]),(openBlock(!0),createElementBlock(Fragment,null,renderList(u.updateCustomMetadata,(y,k)=>(openBlock(),createElementBlock("div",{class:"flex row",key:k},[createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateCustomMetadata[k].key,"onUpdate:modelValue":a=>u.updateCustomMetadata[k].key=a,label:"Key"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateCustomMetadata[k].value,"onUpdate:modelValue":a=>u.updateCustomMetadata[k].value=a,label:"Value"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",_hoisted_8$2,[createVNode(QBtn,{class:"q-my-auto",round:"",size:"sm",color:"orange",icon:"remove",onClick:a=>u.updateCustomMetadata.splice(k,1)},null,8,["onClick"])])]))),128))]),_:1})):createCommentVNode("",!0),createVNode(QCardActions,{align:"right"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel",color:"primary"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Update Metadata",color:"orange",loading:u.loading,onClick:u.updateConfirm},null,8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onHide"])],64)}var FileOptions=_export_sfc(_sfc_main$9,[["render",_sfc_render$8],["__scopeId","data-v-227ab214"]]),ElementType;(function(u){u.Root="root",u.Text="text",u.Directive="directive",u.Comment="comment",u.Script="script",u.Style="style",u.Tag="tag",u.CDATA="cdata",u.Doctype="doctype"})(ElementType||(ElementType={}));function isTag$1(u){return u.type===ElementType.Tag||u.type===ElementType.Script||u.type===ElementType.Style}const Root=ElementType.Root,Text$1=ElementType.Text,Directive=ElementType.Directive,Comment$1=ElementType.Comment,Script=ElementType.Script,Style=ElementType.Style,Tag=ElementType.Tag,CDATA$1=ElementType.CDATA,Doctype=ElementType.Doctype;class Node$1{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(d){this.parent=d}get previousSibling(){return this.prev}set previousSibling(d){this.prev=d}get nextSibling(){return this.next}set nextSibling(d){this.next=d}cloneNode(d=!1){return cloneNode(this,d)}}class DataNode extends Node$1{constructor(d){super(),this.data=d}get nodeValue(){return this.data}set nodeValue(d){this.data=d}}class Text extends DataNode{constructor(){super(...arguments),this.type=ElementType.Text}get nodeType(){return 3}}class Comment extends DataNode{constructor(){super(...arguments),this.type=ElementType.Comment}get nodeType(){return 8}}class ProcessingInstruction extends DataNode{constructor(d,g){super(g),this.name=d,this.type=ElementType.Directive}get nodeType(){return 1}}class NodeWithChildren extends Node$1{constructor(d){super(),this.children=d}get firstChild(){var d;return(d=this.children[0])!==null&&d!==void 0?d:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(d){this.children=d}}class CDATA extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.CDATA}get nodeType(){return 4}}class Document extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.Root}get nodeType(){return 9}}class Element$1 extends NodeWithChildren{constructor(d,g,f=[],b=d==="script"?ElementType.Script:d==="style"?ElementType.Style:ElementType.Tag){super(f),this.name=d,this.attribs=g,this.type=b}get nodeType(){return 1}get tagName(){return this.name}set tagName(d){this.name=d}get attributes(){return Object.keys(this.attribs).map(d=>{var g,f;return{name:d,value:this.attribs[d],namespace:(g=this["x-attribsNamespace"])===null||g===void 0?void 0:g[d],prefix:(f=this["x-attribsPrefix"])===null||f===void 0?void 0:f[d]}})}}function isTag(u){return isTag$1(u)}function isCDATA(u){return u.type===ElementType.CDATA}function isText(u){return u.type===ElementType.Text}function isComment(u){return u.type===ElementType.Comment}function isDirective(u){return u.type===ElementType.Directive}function isDocument(u){return u.type===ElementType.Root}function cloneNode(u,d=!1){let g;if(isText(u))g=new Text(u.data);else if(isComment(u))g=new Comment(u.data);else if(isTag(u)){const f=d?cloneChildren(u.children):[],b=new Element$1(u.name,{...u.attribs},f);f.forEach(m=>m.parent=b),u.namespace!=null&&(b.namespace=u.namespace),u["x-attribsNamespace"]&&(b["x-attribsNamespace"]={...u["x-attribsNamespace"]}),u["x-attribsPrefix"]&&(b["x-attribsPrefix"]={...u["x-attribsPrefix"]}),g=b}else if(isCDATA(u)){const f=d?cloneChildren(u.children):[],b=new CDATA(f);f.forEach(m=>m.parent=b),g=b}else if(isDocument(u)){const f=d?cloneChildren(u.children):[],b=new Document(f);f.forEach(m=>m.parent=b),u["x-mode"]&&(b["x-mode"]=u["x-mode"]),g=b}else if(isDirective(u)){const f=new ProcessingInstruction(u.name,u.data);u["x-name"]!=null&&(f["x-name"]=u["x-name"],f["x-publicId"]=u["x-publicId"],f["x-systemId"]=u["x-systemId"]),g=f}else throw new Error(`Not implemented yet: ${u.type}`);return g.startIndex=u.startIndex,g.endIndex=u.endIndex,u.sourceCodeLocation!=null&&(g.sourceCodeLocation=u.sourceCodeLocation),g}function cloneChildren(u){const d=u.map(g=>cloneNode(g,!0));for(let g=1;g<d.length;g++)d[g].prev=d[g-1],d[g-1].next=d[g];return d}const defaultOpts={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class DomHandler{constructor(d,g,f){this.dom=[],this.root=new Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof g=="function"&&(f=g,g=defaultOpts),typeof d=="object"&&(g=d,d=void 0),this.callback=d!=null?d:null,this.options=g!=null?g:defaultOpts,this.elementCB=f!=null?f:null}onparserinit(d){this.parser=d}onreset(){this.dom=[],this.root=new Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(d){this.handleCallback(d)}onclosetag(){this.lastNode=null;const d=this.tagStack.pop();this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(d)}onopentag(d,g){const f=this.options.xmlMode?ElementType.Tag:void 0,b=new Element$1(d,g,void 0,f);this.addNode(b),this.tagStack.push(b)}ontext(d){const{lastNode:g}=this;if(g&&g.type===ElementType.Text)g.data+=d,this.options.withEndIndices&&(g.endIndex=this.parser.endIndex);else{const f=new Text(d);this.addNode(f),this.lastNode=f}}oncomment(d){if(this.lastNode&&this.lastNode.type===ElementType.Comment){this.lastNode.data+=d;return}const g=new Comment(d);this.addNode(g),this.lastNode=g}oncommentend(){this.lastNode=null}oncdatastart(){const d=new Text(""),g=new CDATA([d]);this.addNode(g),d.parent=g,this.lastNode=d}oncdataend(){this.lastNode=null}onprocessinginstruction(d,g){const f=new ProcessingInstruction(d,g);this.addNode(f)}handleCallback(d){if(typeof this.callback=="function")this.callback(d,this.dom);else if(d)throw d}addNode(d){const g=this.tagStack[this.tagStack.length-1],f=g.children[g.children.length-1];this.options.withStartIndices&&(d.startIndex=this.parser.startIndex),this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),g.children.push(d),f&&(d.prev=f,f.next=d),d.parent=g,this.lastNode=null}}const e=/\n/g;function n(u){const d=[...u.matchAll(e)].map(f=>f.index||0);d.unshift(-1);const g=t(d,0,d.length);return f=>r(g,f)}function t(u,d,g){if(g-d==1)return{offset:u[d],index:d+1};const f=Math.ceil((d+g)/2),b=t(u,d,f),m=t(u,f,g);return{offset:b.offset,low:b,high:m}}function r(u,d){return function(g){return Object.prototype.hasOwnProperty.call(g,"index")}(u)?{line:u.index,column:d-u.offset}:r(u.high.offset<d?u.high:u.low,d)}function o(u,d="",g={}){const f=typeof d!="string"?d:g,b=typeof d=="string"?d:"",m=u.map(s),y=!!f.lineNumbers;return function(k,a=0){const q=y?n(k):()=>({line:0,column:0});let w=a;const $=[];e:for(;w<k.length;){let Q=!1;for(const C of m){C.regex.lastIndex=w;const v=C.regex.exec(k);if(v&&v[0].length>0){if(!C.discard){const J=q(w),ae=typeof C.replace=="string"?v[0].replace(new RegExp(C.regex.source,C.regex.flags),C.replace):v[0];$.push({state:b,name:C.name,text:ae,offset:w,len:v[0].length,line:J.line,column:J.column})}if(w=C.regex.lastIndex,Q=!0,C.push){const J=C.push(k,w);$.push(...J.tokens),w=J.offset}if(C.pop)break e;break}}if(!Q)break}return{tokens:$,offset:w,complete:k.length<=w}}}function s(u,d){return{...u,regex:l(u,d)}}function l(u,d){if(u.name.length===0)throw new Error(`Rule #${d} has empty name, which is not allowed.`);if(function(g){return Object.prototype.hasOwnProperty.call(g,"regex")}(u))return function(g){if(g.global)throw new Error(`Regular expression /${g.source}/${g.flags} contains the global flag, which is not allowed.`);return g.sticky?g:new RegExp(g.source,g.flags+"y")}(u.regex);if(function(g){return Object.prototype.hasOwnProperty.call(g,"str")}(u)){if(u.str.length===0)throw new Error(`Rule #${d} ("${u.name}") has empty "str" property, which is not allowed.`);return new RegExp(c(u.str),"y")}return new RegExp(c(u.name),"y")}function c(u){return u.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,"\\$&")}function token(u,d){return(g,f)=>{let b=f,m;return f<g.tokens.length?(m=u(g.tokens[f],g,f),m!==void 0&&b++):d==null||d(g,f),m===void 0?{matched:!1}:{matched:!0,position:b,value:m}}}function mapInner(u,d){return u.matched?{matched:!0,position:u.position,value:d(u.value,u.position)}:u}function mapOuter(u,d){return u.matched?d(u):u}function map(u,d){return(g,f)=>mapInner(u(g,f),(b,m)=>d(b,g,f,m))}function option(u,d){return(g,f)=>{const b=u(g,f);return b.matched?b:{matched:!0,position:f,value:d}}}function choice(...u){return(d,g)=>{for(const f of u){const b=f(d,g);if(b.matched)return b}return{matched:!1}}}function otherwise(u,d){return(g,f)=>{const b=u(g,f);return b.matched?b:d(g,f)}}function takeWhile(u,d){return(g,f)=>{const b=[];let m=!0;do{const y=u(g,f);y.matched&&d(y.value,b.length+1,g,f,y.position)?(b.push(y.value),f=y.position):m=!1}while(m);return{matched:!0,position:f,value:b}}}function many(u){return takeWhile(u,()=>!0)}function many1(u){return ab(u,many(u),(d,g)=>[d,...g])}function ab(u,d,g){return(f,b)=>mapOuter(u(f,b),m=>mapInner(d(f,m.position),(y,k)=>g(m.value,y,f,b,k)))}function left(u,d){return ab(u,d,g=>g)}function right(u,d){return ab(u,d,(g,f)=>f)}function abc(u,d,g,f){return(b,m)=>mapOuter(u(b,m),y=>mapOuter(d(b,y.position),k=>mapInner(g(b,k.position),(a,q)=>f(y.value,k.value,a,b,m,q))))}function middle(u,d,g){return abc(u,d,g,(f,b)=>b)}function all(...u){return(d,g)=>{const f=[];let b=g;for(const m of u){const y=m(d,b);if(y.matched)f.push(y.value),b=y.position;else return{matched:!1}}return{matched:!0,position:b,value:f}}}function flatten(...u){return flatten1(all(...u))}function flatten1(u){return map(u,d=>d.flatMap(g=>g))}function chainReduce(u,d){return(g,f)=>{let b=!0,m=u,y=f;do{const k=d(m,g,y)(g,y);k.matched?(m=k.value,y=k.position):b=!1}while(b);return{matched:!0,position:y,value:m}}}function reduceLeft(u,d,g){return chainReduce(u,f=>map(d,(b,m,y,k)=>g(f,b,m,y,k)))}function leftAssoc2(u,d,g){return chain(u,f=>reduceLeft(f,ab(d,g,(b,m)=>[b,m]),(b,[m,y])=>m(b,y)))}function chain(u,d){return(g,f)=>mapOuter(u(g,f),b=>d(b.value,g,f,b.position)(g,b.position))}const ws="(?:[ \\t\\r\\n\\f]*)",nl="(?:\\n|\\r\\n|\\r|\\f)",nonascii="[^\\x00-\\x7F]",unicode="(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)",escape$1="(?:\\\\[^\\n\\r\\f0-9a-f])",nmstart=`(?:[_a-z]|${nonascii}|${unicode}|${escape$1})`,nmchar=`(?:[_a-z0-9-]|${nonascii}|${unicode}|${escape$1})`,name=`(?:${nmchar}+)`,ident=`(?:[-]?${nmstart}${nmchar}*)`,string1=`'([^\\n\\r\\f\\\\']|\\\\${nl}|${nonascii}|${unicode}|${escape$1})*'`,string2=`"([^\\n\\r\\f\\\\"]|\\\\${nl}|${nonascii}|${unicode}|${escape$1})*"`,lexSelector=o([{name:"ws",regex:new RegExp(ws)},{name:"hash",regex:new RegExp(`#${name}`,"i")},{name:"ident",regex:new RegExp(ident,"i")},{name:"str1",regex:new RegExp(string1,"i")},{name:"str2",regex:new RegExp(string2,"i")},{name:"*"},{name:"."},{name:","},{name:"["},{name:"]"},{name:"="},{name:">"},{name:"|"},{name:"+"},{name:"~"},{name:"^"},{name:"$"}]),lexEscapedString=o([{name:"unicode",regex:new RegExp(unicode,"i")},{name:"escape",regex:new RegExp(escape$1,"i")},{name:"any",regex:new RegExp("[\\s\\S]","i")}]);function sumSpec([u,d,g],[f,b,m]){return[u+f,d+b,g+m]}function sumAllSpec(u){return u.reduce(sumSpec,[0,0,0])}const unicodeEscapedSequence_=token(u=>u.name==="unicode"?String.fromCodePoint(parseInt(u.text.slice(1),16)):void 0),escapedSequence_=token(u=>u.name==="escape"?u.text.slice(1):void 0),anyChar_=token(u=>u.name==="any"?u.text:void 0),escapedString_=map(many(choice(unicodeEscapedSequence_,escapedSequence_,anyChar_)),u=>u.join(""));function unescape$1(u){const d=lexEscapedString(u);return escapedString_({tokens:d.tokens,options:void 0},0).value}function literal(u){return token(d=>d.name===u?!0:void 0)}const whitespace_=token(u=>u.name==="ws"?null:void 0),optionalWhitespace_=option(whitespace_,null);function optionallySpaced(u){return middle(optionalWhitespace_,u,optionalWhitespace_)}const identifier_=token(u=>u.name==="ident"?unescape$1(u.text):void 0),hashId_=token(u=>u.name==="hash"?unescape$1(u.text.slice(1)):void 0),string_=token(u=>u.name.startsWith("str")?unescape$1(u.text.slice(1,-1)):void 0),namespace_=left(option(identifier_,""),literal("|")),qualifiedName_=otherwise(ab(namespace_,identifier_,(u,d)=>({name:d,namespace:u})),map(identifier_,u=>({name:u,namespace:null}))),uniSelector_=otherwise(ab(namespace_,literal("*"),u=>({type:"universal",namespace:u,specificity:[0,0,0]})),map(literal("*"),()=>({type:"universal",namespace:null,specificity:[0,0,0]}))),tagSelector_=map(qualifiedName_,({name:u,namespace:d})=>({type:"tag",name:u,namespace:d,specificity:[0,0,1]})),classSelector_=ab(literal("."),identifier_,(u,d)=>({type:"class",name:d,specificity:[0,1,0]})),idSelector_=map(hashId_,u=>({type:"id",name:u,specificity:[1,0,0]})),attrModifier_=token(u=>{if(u.name==="ident"){if(u.text==="i"||u.text==="I")return"i";if(u.text==="s"||u.text==="S")return"s"}}),attrValue_=otherwise(ab(string_,option(right(optionalWhitespace_,attrModifier_),null),(u,d)=>({value:u,modifier:d})),ab(identifier_,option(right(whitespace_,attrModifier_),null),(u,d)=>({value:u,modifier:d}))),attrMatcher_=choice(map(literal("="),()=>"="),ab(literal("~"),literal("="),()=>"~="),ab(literal("|"),literal("="),()=>"|="),ab(literal("^"),literal("="),()=>"^="),ab(literal("$"),literal("="),()=>"$="),ab(literal("*"),literal("="),()=>"*=")),attrPresenceSelector_=abc(literal("["),optionallySpaced(qualifiedName_),literal("]"),(u,{name:d,namespace:g})=>({type:"attrPresence",name:d,namespace:g,specificity:[0,1,0]})),attrValueSelector_=middle(literal("["),abc(optionallySpaced(qualifiedName_),attrMatcher_,optionallySpaced(attrValue_),({name:u,namespace:d},g,{value:f,modifier:b})=>({type:"attrValue",name:u,namespace:d,matcher:g,value:f,modifier:b,specificity:[0,1,0]})),literal("]")),attrSelector_=otherwise(attrPresenceSelector_,attrValueSelector_),typeSelector_=otherwise(uniSelector_,tagSelector_),subclassSelector_=choice(idSelector_,classSelector_,attrSelector_),compoundSelector_=map(otherwise(flatten(typeSelector_,many(subclassSelector_)),many1(subclassSelector_)),u=>({type:"compound",list:u,specificity:sumAllSpec(u.map(d=>d.specificity))})),combinator_=choice(map(literal(">"),()=>">"),map(literal("+"),()=>"+"),map(literal("~"),()=>"~"),ab(literal("|"),literal("|"),()=>"||")),combinatorSeparator_=otherwise(optionallySpaced(combinator_),map(whitespace_,()=>" ")),complexSelector_=leftAssoc2(compoundSelector_,map(combinatorSeparator_,u=>(d,g)=>({type:"compound",list:[...g.list,{type:"combinator",combinator:u,left:d,specificity:d.specificity}],specificity:sumSpec(d.specificity,g.specificity)})),compoundSelector_);function parse_(u,d){if(!(typeof d=="string"||d instanceof String))throw new Error("Expected a selector string. Actual input is not a string!");const g=lexSelector(d);if(!g.complete)throw new Error(`The input "${d}" was only partially tokenized, stopped at offset ${g.offset}!
33
+ `+m):f.stack=m}catch{}}throw f}}_request(d,g){typeof d=="string"?(g=g||{},g.url=d):g=d||{},g=mergeConfig(this.defaults,g);const{transitional:f,paramsSerializer:b,headers:m}=g;f!==void 0&&validator.assertOptions(f,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),b!=null&&(utils$1.isFunction(b)?g.paramsSerializer={serialize:b}:validator.assertOptions(b,{encode:validators.function,serialize:validators.function},!0)),validator.assertOptions(g,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),g.method=(g.method||this.defaults.method||"get").toLowerCase();let y=m&&utils$1.merge(m.common,m[g.method]);m&&utils$1.forEach(["delete","get","head","post","put","patch","common"],v=>{delete m[v]}),g.headers=AxiosHeaders$1.concat(y,m);const k=[];let a=!0;this.interceptors.request.forEach(function(J){typeof J.runWhen=="function"&&J.runWhen(g)===!1||(a=a&&J.synchronous,k.unshift(J.fulfilled,J.rejected))});const q=[];this.interceptors.response.forEach(function(J){q.push(J.fulfilled,J.rejected)});let w,$=0,Q;if(!a){const v=[dispatchRequest.bind(this),void 0];for(v.unshift.apply(v,k),v.push.apply(v,q),Q=v.length,w=Promise.resolve(g);$<Q;)w=w.then(v[$++],v[$++]);return w}Q=k.length;let C=g;for($=0;$<Q;){const v=k[$++],J=k[$++];try{C=v(C)}catch(ae){J.call(this,ae);break}}try{w=dispatchRequest.call(this,C)}catch(v){return Promise.reject(v)}for($=0,Q=q.length;$<Q;)w=w.then(q[$++],q[$++]);return w}getUri(d){d=mergeConfig(this.defaults,d);const g=buildFullPath(d.baseURL,d.url);return buildURL(g,d.params,d.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(d){Axios.prototype[d]=function(g,f){return this.request(mergeConfig(f||{},{method:d,url:g,data:(f||{}).data}))}});utils$1.forEach(["post","put","patch"],function(d){function g(f){return function(m,y,k){return this.request(mergeConfig(k||{},{method:d,headers:f?{"Content-Type":"multipart/form-data"}:{},url:m,data:y}))}}Axios.prototype[d]=g(),Axios.prototype[d+"Form"]=g(!0)});var Axios$1=Axios;class CancelToken{constructor(d){if(typeof d!="function")throw new TypeError("executor must be a function.");let g;this.promise=new Promise(function(m){g=m});const f=this;this.promise.then(b=>{if(!f._listeners)return;let m=f._listeners.length;for(;m-- >0;)f._listeners[m](b);f._listeners=null}),this.promise.then=b=>{let m;const y=new Promise(k=>{f.subscribe(k),m=k}).then(b);return y.cancel=function(){f.unsubscribe(m)},y},d(function(m,y,k){f.reason||(f.reason=new CanceledError(m,y,k),g(f.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(d){if(this.reason){d(this.reason);return}this._listeners?this._listeners.push(d):this._listeners=[d]}unsubscribe(d){if(!this._listeners)return;const g=this._listeners.indexOf(d);g!==-1&&this._listeners.splice(g,1)}toAbortSignal(){const d=new AbortController,g=f=>{d.abort(f)};return this.subscribe(g),d.signal.unsubscribe=()=>this.unsubscribe(g),d.signal}static source(){let d;return{token:new CancelToken(function(b){d=b}),cancel:d}}}var CancelToken$1=CancelToken;function spread(u){return function(g){return u.apply(null,g)}}function isAxiosError(u){return utils$1.isObject(u)&&u.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([u,d])=>{HttpStatusCode[d]=u});var HttpStatusCode$1=HttpStatusCode;function createInstance(u){const d=new Axios$1(u),g=bind(Axios$1.prototype.request,d);return utils$1.extend(g,Axios$1.prototype,d,{allOwnKeys:!0}),utils$1.extend(g,d,null,{allOwnKeys:!0}),g.create=function(b){return createInstance(mergeConfig(u,b))},g}const axios$2=createInstance(defaults$2);axios$2.Axios=Axios$1;axios$2.CanceledError=CanceledError;axios$2.CancelToken=CancelToken$1;axios$2.isCancel=isCancel;axios$2.VERSION=VERSION;axios$2.toFormData=toFormData;axios$2.AxiosError=AxiosError;axios$2.Cancel=axios$2.CanceledError;axios$2.all=function(d){return Promise.all(d)};axios$2.spread=spread;axios$2.isAxiosError=isAxiosError;axios$2.mergeConfig=mergeConfig;axios$2.AxiosHeaders=AxiosHeaders$1;axios$2.formToJSON=u=>formDataToJSON(utils$1.isHTMLForm(u)?new FormData(u):u);axios$2.getAdapter=adapters.getAdapter;axios$2.HttpStatusCode=HttpStatusCode$1;axios$2.default=axios$2;var axios$3=axios$2;let url=window.location.origin;const api=axios$3.create({baseURL:`${url}/api`});var axios=({app:u})=>{u.config.globalProperties.$axios=axios$3,u.config.globalProperties.$api=api},axios$1=Object.freeze(Object.defineProperty({__proto__:null,default:axios,api},Symbol.toStringTag,{value:"Module"}));const useMainStore=defineStore("main",{state:()=>({apiReadonly:!0,auth:{},config:{},version:"",showHiddenFiles:!1,buckets:[]}),getters:{serverUrl(){return window.location.origin}},actions:{async loadServerConfigs(u,d,g=!1){try{const f=await api.get("/server/config",{validateStatus:m=>m>=200&&m<300});this.apiReadonly=f.data.config.readonly,this.config=f.data.config,this.auth=f.data.auth,this.version=f.data.version,this.showHiddenFiles=f.data.config.showHiddenFiles,this.buckets=f.data.buckets;const b=new URL(window.location.href);return b.searchParams.get("next")?await u.replace(b.searchParams.get("next")):(b.pathname==="/"||b.pathname==="/auth/login")&&await u.push({name:"files-home",params:{bucket:this.buckets[0].name}}),!0}catch(f){if(console.log(f),f.response.status===302){const b=f.response.headers.Location;b&&window.location.replace(b)}if(g){const b=await f.response.data;if(b==="Authentication error: Basic Auth required"){await u.push({name:"login",query:{next:u.currentRoute.value.fullPath}});return}d.notify({type:"negative",message:b,timeout:1e4})}else throw f}return!1}}}),ROOT_FOLDER="IA==";function mapFile(u,d){const g=new Date(u.uploaded);return{...u,hash:encode(u.key),nameHash:encode(u.key.replace(d,"")),name:u.key.replace(d,""),lastModified:timeSince(g),timestamp:g.getTime(),size:bytesToSize(u.size),sizeRaw:u.size,type:"file",icon:"article",color:"grey"}}const timeSince=u=>{const d=Math.floor((new Date-u)/1e3);let g=d/31536e3,f;return g>1||(g=d/2592e3,g>1)||(g=d/86400,g>1)?u.toLocaleDateString():(g=d/3600,g>1?(f=Math.floor(g),f+(f===1?" hour":" hours")):(g=d/60,g>1?(f=Math.floor(g),f+(f===1?" minute":" minutes")):(f=Math.floor(g),f+(f===1?" second":" seconds"))))},bytesToSize=u=>{const d=["Bytes","KB","MB","GB","TB"];if(u===0)return"0 Byte";const g=Number.parseInt(Math.floor(Math.log(u)/Math.log(1024)));return`${Math.round(u/1024**g,2)} ${d[g]}`},bytesToMegabytes=u=>Math.round(u/1024**2),encode=u=>(u&&u!=="/"&&u.startsWith("/")&&(u=u.slice(1)),btoa(unescape(encodeURIComponent(u)))),decode=u=>decodeURIComponent(escape(atob(u))),apiHandler={createFolder:(u,d)=>api.post(`/buckets/${d}/folder`,{key:encode(u)}),deleteObject:(u,d)=>api.post(`/buckets/${d}/delete`,{key:encode(u)}),downloadFile:(u,d,g,f,b)=>{const m={};return(g.downloadType==="objectUrl"||g.downloadType==="blob")&&(m.responseType="arraybuffer"),b&&(m.signal=b.signal),f&&(m.onDownloadProgress=f),api.get(`/buckets/${u}/${encode(d)}`,m)},headFile:async(u,d)=>{let g="";d.includes("/")&&(g=d.replace(d.split("/").pop(),""));const f=await api.get(`/buckets/${u}/${encode(d)}/head`);if(f.status===200)return mapFile(f.data,g)},renameObject:(u,d,g)=>api.post(`/buckets/${u}/move`,{oldKey:encode(d),newKey:encode(g)}),updateMetadata:async(u,d,g,f={})=>{let b="";d.includes("/")&&(b=d.replace(d.split("/").pop(),""));const m=await api.post(`/buckets/${u}/${encode(d)}`,{customMetadata:g,httpMetadata:f});if(m.status===200)return mapFile(m.data,b)},multipartCreate:(u,d,g)=>api.post(`/buckets/${g}/multipart/create`,null,{params:{key:encode(d),httpMetadata:encode(JSON.stringify({contentType:u.type}))}}),multipartComplete:(u,d,g,f,b)=>api.post(`/buckets/${g}/multipart/complete`,{key:encode(d),uploadId:b,parts:f}),multipartUpload:(u,d,g,f,b,m)=>api.post(`/buckets/${g}/multipart/upload`,b,{params:{key:encode(f),uploadId:u,partNumber:d},onUploadProgress:m,headers:{"Content-Type":"multipart/form-data"}}),uploadObjects:(u,d,g,f)=>api.post(`/buckets/${g}/upload`,u,{params:{key:encode(d),httpMetadata:encode(JSON.stringify({contentType:u.type}))},headers:{"Content-Type":"multipart/form-data"},onUploadProgress:f}),listObjects:async(u,d,g="/",f=null)=>await api.get(`/buckets/${u}?include=customMetadata&include=httpMetadata`,{params:{delimiter:g,prefix:d&&d!=="/"?encode(d):"",cursor:f}}),fetchFile:async(u,d,g="/")=>{const f=useMainStore();let b=!0,m=null;const y=[],k=[];for(;b;){const a=await apiHandler.listObjects(u,d,g,m);if(b=a.data.truncated,m=a.data.cursor,a.data.objects){const q=a.data.objects.filter(w=>!(w.key.endsWith("/")&&g!=="")&&w.key!==d).map(w=>mapFile(w,d)).filter(w=>!(f.showHiddenFiles!==!0&&w.name.startsWith(".")));for(const w of q)y.push(w)}if(a.data.delimitedPrefixes){const q=a.data.delimitedPrefixes.map(w=>({name:w.replace(d,""),hash:encode(w.key),key:w,lastModified:"--",timestamp:0,size:"--",sizeRaw:0,type:"folder",icon:"folder",color:"orange"})).filter(w=>!(f.showHiddenFiles!==!0&&w.name.startsWith(".")));for(const w of q)k.push(w)}}return[...k,...y]}},_sfc_main$i=defineComponent({name:"CreateFile",data:()=>({modal:!1,newFileName:"",loading:!1}),methods:{cancel:function(){this.modal=!1,this.newFileName="",this.loading=!1},onSubmit:async function(){this.loading=!0;const u=new Blob([""],{type:"text/plain"});await apiHandler.uploadObjects(u,this.selectedFolder+this.newFileName,this.selectedBucket),this.$bus.emit("fetchFiles"),this.loading=!1,this.modal=!1,this.newFileName=""},open:function(){this.modal=!0}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},setup(){return{mainStore:useMainStore()}}});function _sfc_render$h(u,d,g,f,b,m){return openBlock(),createBlock(QDialog,{modelValue:u.modal,"onUpdate:modelValue":d[1]||(d[1]=y=>u.modal=y),onHide:u.cancel},{default:withCtx(()=>[createVNode(QCard,{style:{"min-width":"350px"}},{default:withCtx(()=>[createVNode(QForm,{onSubmit:u.onSubmit},{default:withCtx(()=>[createVNode(QCardSection,null,{default:withCtx(()=>d[2]||(d[2]=[createBaseVNode("div",{class:"text-h6"},"New File Name",-1)])),_:1}),createVNode(QCardSection,{class:"q-pt-none"},{default:withCtx(()=>[createVNode(QInput,{dense:"",modelValue:u.newFileName,"onUpdate:modelValue":d[0]||(d[0]=y=>u.newFileName=y),autofocus:"","lazy-rules":"",rules:[y=>y&&y.length>0||"Please type something"]},null,8,["modelValue","rules"])]),_:1}),createVNode(QCardActions,{align:"right",class:"text-primary"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Create",type:"submit",loading:u.loading},null,8,["loading"])]),_:1})]),_:1},8,["onSubmit"])]),_:1})]),_:1},8,["modelValue","onHide"])}var CreateFile=_export_sfc(_sfc_main$i,[["render",_sfc_render$h]]);const _sfc_main$h=defineComponent({name:"CreateFolder",data:()=>({modal:!1,newFolderName:"",loading:!1}),methods:{cancel:function(){this.modal=!1,this.newFolderName="",this.loading=!1},onSubmit:async function(){this.loading=!0,await apiHandler.createFolder(`${this.selectedFolder+this.newFolderName}/`,this.selectedBucket),this.$bus.emit("fetchFiles"),this.loading=!1,this.modal=!1,this.newFolderName=""},open:function(){this.modal=!0}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},setup(){return{mainStore:useMainStore()}}});function _sfc_render$g(u,d,g,f,b,m){return openBlock(),createBlock(QDialog,{modelValue:u.modal,"onUpdate:modelValue":d[1]||(d[1]=y=>u.modal=y),onHide:u.cancel},{default:withCtx(()=>[createVNode(QCard,{style:{"min-width":"350px"}},{default:withCtx(()=>[createVNode(QForm,{onSubmit:u.onSubmit},{default:withCtx(()=>[createVNode(QCardSection,null,{default:withCtx(()=>d[2]||(d[2]=[createBaseVNode("div",{class:"text-h6"},"New Folder Name",-1)])),_:1}),createVNode(QCardSection,{class:"q-pt-none"},{default:withCtx(()=>[createVNode(QInput,{dense:"",modelValue:u.newFolderName,"onUpdate:modelValue":d[0]||(d[0]=y=>u.newFolderName=y),autofocus:"","lazy-rules":"",rules:[y=>y&&y.length>0||"Please type something"]},null,8,["modelValue","rules"])]),_:1}),createVNode(QCardActions,{align:"right",class:"text-primary"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Create",type:"submit",loading:u.loading},null,8,["loading"])]),_:1})]),_:1},8,["onSubmit"])]),_:1})]),_:1},8,["modelValue","onHide"])}var CreateFolder=_export_sfc(_sfc_main$h,[["render",_sfc_render$g]]),LeftSidebar_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$g=defineComponent({name:"LeftSidebar",data:()=>({infoPopup:!1,updateAvailable:!1,latestVersion:""}),components:{CreateFolder,CreateFile},methods:{gotoEmail:function(){this.selectedApp!=="email"&&this.changeApp("email")},gotoFiles:function(){this.selectedApp!=="files"&&this.changeApp("files")},changeApp:function(u){this.$router.push({name:`${u}-home`,params:{bucket:this.selectedBucket}})},isUpdateAvailable:(u,d)=>{const g=u.split(".").map(Number),f=d.split(".").map(Number);return f[0]>g[0]?!0:f[0]<g[0]?!1:f[1]>g[1]?!0:f[1]<g[1]?!1:f[2]>g[2]}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedApp:function(){return this.$route.name.split("-")[0]}},async mounted(){const u=await fetch("https://api.github.com/repos/G4brym/R2-Explorer/releases/latest");if(!u.ok)console.log("Unable to retrieve latest r2-explorer updates :("),console.log("Manually check them here: https://github.com/G4brym/R2-Explorer/releases");else{const g=(await u.json()).tag_name.replace("v","");this.isUpdateAvailable(this.mainStore.version,g)&&(this.latestVersion=g,this.updateAvailable=!0)}},setup(){return{mainStore:useMainStore()}}}),_hoisted_1$9={class:"q-pa-md",style:{height:"100%"}},_hoisted_2$5={class:"flex column",style:{height:"100%"}};function _sfc_render$f(u,d,g,f,b,m){const y=resolveComponent("create-folder"),k=resolveComponent("create-file");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$9,[createBaseVNode("div",_hoisted_2$5,[u.mainStore.apiReadonly?(openBlock(),createBlock(QBtn,{key:0,color:"red",stack:"",class:"q-mb-lg",label:"Read only"})):(openBlock(),createBlock(QBtn,{key:1,color:"green",icon:"add",stack:"",class:"q-mb-lg",label:"New"},{default:withCtx(()=>[createVNode(QMenu,null,{default:withCtx(()=>[createVNode(QList,null,{default:withCtx(()=>[withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:d[0]||(d[0]=a=>u.$refs.createFile.open())},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>[createVNode(QItemLabel,null,{default:withCtx(()=>[createVNode(QIcon,{name:"note_add",size:"sm"}),d[6]||(d[6]=createTextVNode(" New File "))]),_:1})]),_:1})]),_:1})),[[ClosePopup]]),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:d[1]||(d[1]=a=>u.$refs.createFolder.open())},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>[createVNode(QItemLabel,null,{default:withCtx(()=>[createVNode(QIcon,{name:"create_new_folder",size:"sm"}),d[7]||(d[7]=createTextVNode(" New Folder "))]),_:1})]),_:1})]),_:1})),[[ClosePopup]]),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:d[2]||(d[2]=a=>u.$bus.emit("openFilesUploader"))},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>[createVNode(QItemLabel,null,{default:withCtx(()=>[createVNode(QIcon,{name:"upload_file",size:"sm"}),d[8]||(d[8]=createTextVNode(" Upload Files "))]),_:1})]),_:1})]),_:1})),[[ClosePopup]]),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:d[3]||(d[3]=a=>u.$bus.emit("openFoldersUploader"))},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>[createVNode(QItemLabel,null,{default:withCtx(()=>[createVNode(QIcon,{name:"folder",size:"sm"}),d[9]||(d[9]=createTextVNode(" Upload Folders "))]),_:1})]),_:1})]),_:1})),[[ClosePopup]])]),_:1})]),_:1})]),_:1})),createVNode(QBtn,{class:"q-mb-sm",onClick:u.gotoFiles,color:"blue",icon:"folder_copy",label:"Files",stack:""},null,8,["onClick"]),createVNode(QBtn,{class:"q-mb-sm",onClick:u.gotoEmail,color:"blue",icon:"email",label:"Email",stack:""},null,8,["onClick"]),createVNode(QBtn,{class:"q-mb-sm q-mt-auto q-mb-0",onClick:d[4]||(d[4]=a=>u.infoPopup=!0),color:"secondary",icon:"question_mark",label:"Info",stack:""})])]),createVNode(QDialog,{modelValue:u.infoPopup,"onUpdate:modelValue":d[5]||(d[5]=a=>u.infoPopup=a),persistent:"","no-route-dismiss":""},{default:withCtx(()=>[createVNode(QCard,null,{default:withCtx(()=>[createVNode(QCardSection,null,{default:withCtx(()=>d[10]||(d[10]=[createBaseVNode("div",{class:"text-h6"},"\u{1F389} Thank you for using R2-Explorer! \u{1F680}",-1)])),_:1}),createVNode(QCardSection,{class:"q-pt-none"},{default:withCtx(()=>[d[19]||(d[19]=createTextVNode(" You are running version ")),createBaseVNode("b",null,toDisplayString(u.mainStore.version),1),d[20]||(d[20]=createBaseVNode("br",null,null,-1)),u.updateAvailable?(openBlock(),createElementBlock(Fragment,{key:0},[d[11]||(d[11]=createTextVNode(" Latest version is ")),createBaseVNode("b",null,toDisplayString(u.latestVersion),1),d[12]||(d[12]=createTextVNode(", learn how to ")),d[13]||(d[13]=createBaseVNode("a",{href:"https://r2explorer.com/getting-started/updating-your-project/",target:"_blank"},"update your instance here",-1)),d[14]||(d[14]=createTextVNode(".")),d[15]||(d[15]=createBaseVNode("br",null,null,-1))],64)):createCommentVNode("",!0),d[21]||(d[21]=createBaseVNode("br",null,null,-1)),u.mainStore.auth?(openBlock(),createElementBlock(Fragment,{key:1},[d[16]||(d[16]=createBaseVNode("b",null,"Authentication",-1)),d[17]||(d[17]=createBaseVNode("br",null,null,-1)),createTextVNode(" Method: "+toDisplayString(u.mainStore.auth.type),1),d[18]||(d[18]=createBaseVNode("br",null,null,-1)),createTextVNode(" Username: "+toDisplayString(u.mainStore.auth.username),1)],64)):(openBlock(),createElementBlock(Fragment,{key:2},[createTextVNode(" Not authenticated ")],64)),d[22]||(d[22]=createBaseVNode("br",null,null,-1)),d[23]||(d[23]=createBaseVNode("br",null,null,-1)),d[24]||(d[24]=createBaseVNode("b",null,"Server Configuration",-1)),d[25]||(d[25]=createBaseVNode("br",null,null,-1)),createTextVNode(" "+toDisplayString(JSON.stringify(u.mainStore.config,null,2)),1)]),_:1}),createVNode(QCardActions,{align:"right"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"OK",color:"primary"},null,512),[[ClosePopup]])]),_:1})]),_:1})]),_:1},8,["modelValue"]),createVNode(y,{ref:"createFolder"},null,512),createVNode(k,{ref:"createFile"},null,512)],64)}var LeftSidebar=_export_sfc(_sfc_main$g,[["render",_sfc_render$f],["__scopeId","data-v-0fff61a7"]]),QTh=createComponent({name:"QTh",props:{props:Object,autoWidth:Boolean},emits:["click"],setup(u,{slots:d,emit:g}){const f=getCurrentInstance(),{proxy:{$q:b}}=f,m=y=>{g("click",y)};return()=>{if(u.props===void 0)return h("th",{class:u.autoWidth===!0?"q-table--col-auto-width":"",onClick:m},hSlot(d.default));let y,k;const a=f.vnode.key;if(a){if(y=u.props.colsMap[a],y===void 0)return}else y=u.props.col;if(y.sortable===!0){const w=y.align==="right"?"unshift":"push";k=hUniqueSlot(d.default,[]),k[w](h(QIcon,{class:y.__iconClass,name:b.iconSet.table.arrowUp}))}else k=hSlot(d.default);const q={class:y.__thClass+(u.autoWidth===!0?" q-table--col-auto-width":""),style:y.headerStyle,onClick:w=>{y.sortable===!0&&u.props.sort(y),m(w)}};return h("th",q,k)}}});const insetMap={true:"inset",item:"item-inset","item-thumbnail":"item-thumbnail-inset"},margins={xs:2,sm:4,md:8,lg:16,xl:24};var QSeparator=createComponent({name:"QSeparator",props:{...useDarkProps,spaced:[Boolean,String],inset:[Boolean,String],vertical:Boolean,color:String,size:String},setup(u){const d=getCurrentInstance(),g=useDark(u,d.proxy.$q),f=computed(()=>u.vertical===!0?"vertical":"horizontal"),b=computed(()=>` q-separator--${f.value}`),m=computed(()=>u.inset!==!1?`${b.value}-${insetMap[u.inset]}`:""),y=computed(()=>`q-separator${b.value}${m.value}`+(u.color!==void 0?` bg-${u.color}`:"")+(g.value===!0?" q-separator--dark":"")),k=computed(()=>{const a={};if(u.size!==void 0&&(a[u.vertical===!0?"width":"height"]=u.size),u.spaced!==!1){const q=u.spaced===!0?`${margins.md}px`:u.spaced in margins?`${margins[u.spaced]}px`:u.spaced,w=u.vertical===!0?["Left","Right"]:["Top","Bottom"];a[`margin${w[0]}`]=a[`margin${w[1]}`]=q}return a});return()=>h("hr",{class:y.value,style:k.value,"aria-orientation":f.value})}});const separatorValues=["horizontal","vertical","cell","none"];var QMarkupTable=createComponent({name:"QMarkupTable",props:{...useDarkProps,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,wrapCells:Boolean,separator:{type:String,default:"horizontal",validator:u=>separatorValues.includes(u)}},setup(u,{slots:d}){const g=getCurrentInstance(),f=useDark(u,g.proxy.$q),b=computed(()=>`q-markup-table q-table__container q-table__card q-table--${u.separator}-separator`+(f.value===!0?" q-table--dark q-table__card--dark q-dark":"")+(u.dense===!0?" q-table--dense":"")+(u.flat===!0?" q-table--flat":"")+(u.bordered===!0?" q-table--bordered":"")+(u.square===!0?" q-table--square":"")+(u.wrapCells===!1?" q-table--no-wrap":""));return()=>h("div",{class:b.value},[h("table",{class:"q-table"},hSlot(d.default))])}});function getTableMiddle(u,d){return h("div",u,[h("table",{class:"q-table"},d)])}let rtlHasScrollBug=!1;{const u=document.createElement("div");u.setAttribute("dir","rtl"),Object.assign(u.style,{width:"1px",height:"1px",overflow:"auto"});const d=document.createElement("div");Object.assign(d.style,{width:"1000px",height:"1px"}),document.body.appendChild(u),u.appendChild(d),u.scrollLeft=-1e3,rtlHasScrollBug=u.scrollLeft>=0,u.remove()}const aggBucketSize=1e3,scrollToEdges=["start","center","end","start-force","center-force","end-force"],filterProto=Array.prototype.filter,setOverflowAnchor=window.getComputedStyle(document.body).overflowAnchor===void 0?noop$3:function(u,d){u!==null&&(u._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(u._qOverflowAnimationFrame),u._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(u===null)return;u._qOverflowAnimationFrame=void 0;const g=u.children||[];filterProto.call(g,b=>b.dataset&&b.dataset.qVsAnchor!==void 0).forEach(b=>{delete b.dataset.qVsAnchor});const f=g[d];f&&f.dataset&&(f.dataset.qVsAnchor="")}))};function sumFn(u,d){return u+d}function getScrollDetails(u,d,g,f,b,m,y,k){const a=u===window?document.scrollingElement||document.documentElement:u,q=b===!0?"offsetWidth":"offsetHeight",w={scrollStart:0,scrollViewSize:-y-k,scrollMaxSize:0,offsetStart:-y,offsetEnd:-k};if(b===!0?(u===window?(w.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,w.scrollViewSize+=document.documentElement.clientWidth):(w.scrollStart=a.scrollLeft,w.scrollViewSize+=a.clientWidth),w.scrollMaxSize=a.scrollWidth,m===!0&&(w.scrollStart=(rtlHasScrollBug===!0?w.scrollMaxSize-w.scrollViewSize:0)-w.scrollStart)):(u===window?(w.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,w.scrollViewSize+=document.documentElement.clientHeight):(w.scrollStart=a.scrollTop,w.scrollViewSize+=a.clientHeight),w.scrollMaxSize=a.scrollHeight),g!==null)for(let $=g.previousElementSibling;$!==null;$=$.previousElementSibling)$.classList.contains("q-virtual-scroll--skip")===!1&&(w.offsetStart+=$[q]);if(f!==null)for(let $=f.nextElementSibling;$!==null;$=$.nextElementSibling)$.classList.contains("q-virtual-scroll--skip")===!1&&(w.offsetEnd+=$[q]);if(d!==u){const $=a.getBoundingClientRect(),Q=d.getBoundingClientRect();b===!0?(w.offsetStart+=Q.left-$.left,w.offsetEnd-=Q.width):(w.offsetStart+=Q.top-$.top,w.offsetEnd-=Q.height),u!==window&&(w.offsetStart+=w.scrollStart),w.offsetEnd+=w.scrollMaxSize-w.offsetStart}return w}function setScroll(u,d,g,f){d==="end"&&(d=(u===window?document.body:u)[g===!0?"scrollWidth":"scrollHeight"]),u===window?g===!0?(f===!0&&(d=(rtlHasScrollBug===!0?document.body.scrollWidth-document.documentElement.clientWidth:0)-d),window.scrollTo(d,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,d):g===!0?(f===!0&&(d=(rtlHasScrollBug===!0?u.scrollWidth-u.offsetWidth:0)-d),u.scrollLeft=d):u.scrollTop=d}function sumSize(u,d,g,f){if(g>=f)return 0;const b=d.length,m=Math.floor(g/aggBucketSize),y=Math.floor((f-1)/aggBucketSize)+1;let k=u.slice(m,y).reduce(sumFn,0);return g%aggBucketSize!==0&&(k-=d.slice(m*aggBucketSize,g).reduce(sumFn,0)),f%aggBucketSize!==0&&f!==b&&(k-=d.slice(f,y*aggBucketSize).reduce(sumFn,0)),k}const commonVirtScrollProps={virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]},commonVirtScrollPropsList=Object.keys(commonVirtScrollProps),useVirtualScrollProps={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,...commonVirtScrollProps};function useVirtualScroll({virtualScrollLength:u,getVirtualScrollTarget:d,getVirtualScrollEl:g,virtualScrollItemSizeComputed:f}){const b=getCurrentInstance(),{props:m,emit:y,proxy:k}=b,{$q:a}=k;let q,w,$,Q=[],C;const v=ref(0),J=ref(0),ae=ref({}),H=ref(null),Y=ref(null),G=ref(null),j=ref({from:0,to:0}),L=computed(()=>m.tableColspan!==void 0?m.tableColspan:100);f===void 0&&(f=computed(()=>m.virtualScrollItemSize));const R=computed(()=>f.value+";"+m.virtualScrollHorizontal),T=computed(()=>R.value+";"+m.virtualScrollSliceRatioBefore+";"+m.virtualScrollSliceRatioAfter);watch(T,()=>{_()}),watch(R,O);function O(){E(w,!0)}function P(te){E(te===void 0?w:te)}function B(te,W){const re=d();if(re==null||re.nodeType===8)return;const ee=getScrollDetails(re,g(),H.value,Y.value,m.virtualScrollHorizontal,a.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd);$!==ee.scrollViewSize&&_(ee.scrollViewSize),F(re,ee,Math.min(u.value-1,Math.max(0,parseInt(te,10)||0)),0,scrollToEdges.indexOf(W)!==-1?W:w!==-1&&te>w?"end":"start")}function M(){const te=d();if(te==null||te.nodeType===8)return;const W=getScrollDetails(te,g(),H.value,Y.value,m.virtualScrollHorizontal,a.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd),re=u.value-1,ee=W.scrollMaxSize-W.offsetStart-W.offsetEnd-J.value;if(q===W.scrollStart)return;if(W.scrollMaxSize<=0){F(te,W,0,0);return}$!==W.scrollViewSize&&_(W.scrollViewSize),S(j.value.from);const X=Math.floor(W.scrollMaxSize-Math.max(W.scrollViewSize,W.offsetEnd)-Math.min(C[re],W.scrollViewSize/2));if(X>0&&Math.ceil(W.scrollStart)>=X){F(te,W,re,W.scrollMaxSize-W.offsetEnd-Q.reduce(sumFn,0));return}let K=0,Z=W.scrollStart-W.offsetStart,se=Z;if(Z<=ee&&Z+W.scrollViewSize>=v.value)Z-=v.value,K=j.value.from,se=Z;else for(let ie=0;Z>=Q[ie]&&K<re;ie++)Z-=Q[ie],K+=aggBucketSize;for(;Z>0&&K<re;)Z-=C[K],Z>-W.scrollViewSize?(K++,se=Z):se=C[K]+Z;F(te,W,K,se)}function F(te,W,re,ee,X){const K=typeof X=="string"&&X.indexOf("-force")!==-1,Z=K===!0?X.replace("-force",""):X,se=Z!==void 0?Z:"start";let ie=Math.max(0,re-ae.value[se]),de=ie+ae.value.total;de>u.value&&(de=u.value,ie=Math.max(0,de-ae.value.total)),q=W.scrollStart;const ce=ie!==j.value.from||de!==j.value.to;if(ce===!1&&Z===void 0){N(re);return}const{activeElement:he}=document,oe=G.value;ce===!0&&oe!==null&&oe!==he&&oe.contains(he)===!0&&(oe.addEventListener("focusout",A),setTimeout(()=>{oe!==null&&oe.removeEventListener("focusout",A)})),setOverflowAnchor(oe,re-ie);const ne=Z!==void 0?C.slice(ie,re).reduce(sumFn,0):0;if(ce===!0){const ue=de>=j.value.from&&ie<=j.value.to?j.value.to:de;j.value={from:ie,to:ue},v.value=sumSize(Q,C,0,ie),J.value=sumSize(Q,C,de,u.value),requestAnimationFrame(()=>{j.value.to!==de&&q===W.scrollStart&&(j.value={from:j.value.from,to:de},J.value=sumSize(Q,C,de,u.value))})}requestAnimationFrame(()=>{if(q!==W.scrollStart)return;ce===!0&&S(ie);const ue=C.slice(ie,re).reduce(sumFn,0),le=ue+W.offsetStart+v.value,fe=le+C[re];let pe=le+ee;if(Z!==void 0){const ve=ue-ne,xe=W.scrollStart+ve;pe=K!==!0&&xe<le&&fe<xe+W.scrollViewSize?xe:Z==="end"?fe-W.scrollViewSize:le-(Z==="start"?0:Math.round((W.scrollViewSize-C[re])/2))}q=pe,setScroll(te,pe,m.virtualScrollHorizontal,a.lang.rtl),N(re)})}function S(te){const W=G.value;if(W){const re=filterProto.call(W.children,ie=>ie.classList&&ie.classList.contains("q-virtual-scroll--skip")===!1),ee=re.length,X=m.virtualScrollHorizontal===!0?ie=>ie.getBoundingClientRect().width:ie=>ie.offsetHeight;let K=te,Z,se;for(let ie=0;ie<ee;){for(Z=X(re[ie]),ie++;ie<ee&&re[ie].classList.contains("q-virtual-scroll--with-prev")===!0;)Z+=X(re[ie]),ie++;se=Z-C[K],se!==0&&(C[K]+=se,Q[Math.floor(K/aggBucketSize)]+=se),K++}}}function A(){G.value!==null&&G.value!==void 0&&G.value.focus()}function E(te,W){const re=1*f.value;(W===!0||Array.isArray(C)===!1)&&(C=[]);const ee=C.length;C.length=u.value;for(let K=u.value-1;K>=ee;K--)C[K]=re;const X=Math.floor((u.value-1)/aggBucketSize);Q=[];for(let K=0;K<=X;K++){let Z=0;const se=Math.min((K+1)*aggBucketSize,u.value);for(let ie=K*aggBucketSize;ie<se;ie++)Z+=C[ie];Q.push(Z)}w=-1,q=void 0,v.value=sumSize(Q,C,0,j.value.from),J.value=sumSize(Q,C,j.value.to,u.value),te>=0?(S(j.value.from),nextTick(()=>{B(te)})):U()}function _(te){if(te===void 0&&typeof window!="undefined"){const Z=d();Z!=null&&Z.nodeType!==8&&(te=getScrollDetails(Z,g(),H.value,Y.value,m.virtualScrollHorizontal,a.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd).scrollViewSize)}$=te;const W=parseFloat(m.virtualScrollSliceRatioBefore)||0,re=parseFloat(m.virtualScrollSliceRatioAfter)||0,ee=1+W+re,X=te===void 0||te<=0?1:Math.ceil(te/f.value),K=Math.max(1,X,Math.ceil((m.virtualScrollSliceSize>0?m.virtualScrollSliceSize:10)/ee));ae.value={total:Math.ceil(K*ee),start:Math.ceil(K*W),center:Math.ceil(K*(.5+W)),end:Math.ceil(K*(1+W)),view:X}}function D(te,W){const re=m.virtualScrollHorizontal===!0?"width":"height",ee={["--q-virtual-scroll-item-"+re]:f.value+"px"};return[te==="tbody"?h(te,{class:"q-virtual-scroll__padding",key:"before",ref:H},[h("tr",[h("td",{style:{[re]:`${v.value}px`,...ee},colspan:L.value})])]):h(te,{class:"q-virtual-scroll__padding",key:"before",ref:H,style:{[re]:`${v.value}px`,...ee}}),h(te,{class:"q-virtual-scroll__content",key:"content",ref:G,tabindex:-1},W.flat()),te==="tbody"?h(te,{class:"q-virtual-scroll__padding",key:"after",ref:Y},[h("tr",[h("td",{style:{[re]:`${J.value}px`,...ee},colspan:L.value})])]):h(te,{class:"q-virtual-scroll__padding",key:"after",ref:Y,style:{[re]:`${J.value}px`,...ee}})]}function N(te){w!==te&&(m.onVirtualScroll!==void 0&&y("virtualScroll",{index:te,from:j.value.from,to:j.value.to-1,direction:te<w?"decrease":"increase",ref:k}),w=te)}_();const U=debounce(M,a.platform.is.ios===!0?120:35);onBeforeMount(()=>{_()});let z=!1;return onDeactivated(()=>{z=!0}),onActivated(()=>{if(z!==!0)return;const te=d();q!==void 0&&te!==void 0&&te!==null&&te.nodeType!==8?setScroll(te,q,m.virtualScrollHorizontal,a.lang.rtl):B(w)}),onBeforeUnmount(()=>{U.cancel()}),Object.assign(k,{scrollTo:B,reset:O,refresh:P}),{virtualScrollSliceRange:j,virtualScrollSliceSizeComputed:ae,setVirtualScrollSize:_,onVirtualScrollEvt:U,localResetVirtualScroll:E,padVirtualScroll:D,scrollTo:B,reset:O,refresh:P}}const comps={list:QList,table:QMarkupTable},typeOptions=["list","table","__qtable"];var QVirtualScroll=createComponent({name:"QVirtualScroll",props:{...useVirtualScrollProps,type:{type:String,default:"list",validator:u=>typeOptions.includes(u)},items:{type:Array,default:()=>[]},itemsFn:Function,itemsSize:Number,scrollTarget:scrollTargetProp},setup(u,{slots:d,attrs:g}){let f;const b=ref(null),m=computed(()=>u.itemsSize>=0&&u.itemsFn!==void 0?parseInt(u.itemsSize,10):Array.isArray(u.items)?u.items.length:0),{virtualScrollSliceRange:y,localResetVirtualScroll:k,padVirtualScroll:a,onVirtualScrollEvt:q}=useVirtualScroll({virtualScrollLength:m,getVirtualScrollTarget:v,getVirtualScrollEl:C}),w=computed(()=>{if(m.value===0)return[];const Y=(G,j)=>({index:y.value.from+j,item:G});return u.itemsFn===void 0?u.items.slice(y.value.from,y.value.to).map(Y):u.itemsFn(y.value.from,y.value.to-y.value.from).map(Y)}),$=computed(()=>"q-virtual-scroll q-virtual-scroll"+(u.virtualScrollHorizontal===!0?"--horizontal":"--vertical")+(u.scrollTarget!==void 0?"":" scroll")),Q=computed(()=>u.scrollTarget!==void 0?{}:{tabindex:0});watch(m,()=>{k()}),watch(()=>u.scrollTarget,()=>{ae(),J()});function C(){return b.value.$el||b.value}function v(){return f}function J(){f=getScrollTarget(C(),u.scrollTarget),f.addEventListener("scroll",q,listenOpts.passive)}function ae(){f!==void 0&&(f.removeEventListener("scroll",q,listenOpts.passive),f=void 0)}function H(){let Y=a(u.type==="list"?"div":"tbody",w.value.map(d.default));return d.before!==void 0&&(Y=d.before().concat(Y)),hMergeSlot(d.after,Y)}return onBeforeMount(()=>{k()}),onMounted(()=>{J()}),onActivated(()=>{J()}),onDeactivated(()=>{ae()}),onBeforeUnmount(()=>{ae()}),()=>{if(d.default===void 0){console.error("QVirtualScroll: default scoped slot is required for rendering");return}return u.type==="__qtable"?getTableMiddle({ref:b,class:"q-table__middle "+$.value},H()):h(comps[u.type],{...g,ref:b,class:[g.class,$.value],...Q.value},H)}}}),QField=createComponent({name:"QField",inheritAttrs:!1,props:{...useFieldProps,tag:{type:String,default:"label"}},emits:useFieldEmits,setup(){return useField(useFieldState({tagProp:!0}))}});const defaultSizes$1={xs:8,sm:10,md:14,lg:20,xl:24};var QChip=createComponent({name:"QChip",props:{...useDarkProps,...useSizeProps,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:["update:modelValue","update:selected","remove","click"],setup(u,{slots:d,emit:g}){const{proxy:{$q:f}}=getCurrentInstance(),b=useDark(u,f),m=useSize(u,defaultSizes$1),y=computed(()=>u.selected===!0||u.icon!==void 0),k=computed(()=>u.selected===!0?u.iconSelected||f.iconSet.chip.selected:u.icon),a=computed(()=>u.iconRemove||f.iconSet.chip.remove),q=computed(()=>u.disable===!1&&(u.clickable===!0||u.selected!==null)),w=computed(()=>{const ae=u.outline===!0&&u.color||u.textColor;return"q-chip row inline no-wrap items-center"+(u.outline===!1&&u.color!==void 0?` bg-${u.color}`:"")+(ae?` text-${ae} q-chip--colored`:"")+(u.disable===!0?" disabled":"")+(u.dense===!0?" q-chip--dense":"")+(u.outline===!0?" q-chip--outline":"")+(u.selected===!0?" q-chip--selected":"")+(q.value===!0?" q-chip--clickable cursor-pointer non-selectable q-hoverable":"")+(u.square===!0?" q-chip--square":"")+(b.value===!0?" q-chip--dark q-dark":"")}),$=computed(()=>{const ae=u.disable===!0?{tabindex:-1,"aria-disabled":"true"}:{tabindex:u.tabindex||0},H={...ae,role:"button","aria-hidden":"false","aria-label":u.removeAriaLabel||f.lang.label.remove};return{chip:ae,remove:H}});function Q(ae){ae.keyCode===13&&C(ae)}function C(ae){u.disable||(g("update:selected",!u.selected),g("click",ae))}function v(ae){(ae.keyCode===void 0||ae.keyCode===13)&&(stopAndPrevent(ae),u.disable===!1&&(g("update:modelValue",!1),g("remove")))}function J(){const ae=[];q.value===!0&&ae.push(h("div",{class:"q-focus-helper"})),y.value===!0&&ae.push(h(QIcon,{class:"q-chip__icon q-chip__icon--left",name:k.value}));const H=u.label!==void 0?[h("div",{class:"ellipsis"},[u.label])]:void 0;return ae.push(h("div",{class:"q-chip__content col row no-wrap items-center q-anchor--skip"},hMergeSlotSafely(d.default,H))),u.iconRight&&ae.push(h(QIcon,{class:"q-chip__icon q-chip__icon--right",name:u.iconRight})),u.removable===!0&&ae.push(h(QIcon,{class:"q-chip__icon q-chip__icon--remove cursor-pointer",name:a.value,...$.value.remove,onClick:v,onKeyup:v})),ae}return()=>{if(u.modelValue===!1)return;const ae={class:w.value,style:m.value};return q.value===!0&&Object.assign(ae,$.value.chip,{onClick:C,onKeyup:Q}),hDir("div",ae,J(),"ripple",u.ripple!==!1&&u.disable!==!0,()=>[[Ripple,u.ripple]])}}});const validateNewValueMode=u=>["add","add-unique","toggle"].includes(u),reEscapeList=".*+?^${}()|[]\\",fieldPropsList=Object.keys(useFieldProps);function getPropValueFn(u,d){if(typeof u=="function")return u;const g=u!==void 0?u:d;return f=>f!==null&&typeof f=="object"&&g in f?f[g]:f}var QSelect=createComponent({name:"QSelect",inheritAttrs:!1,props:{...useVirtualScrollProps,...useFormProps,...useFieldProps,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:validateNewValueMode},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:u=>["default","menu","dialog"].includes(u),default:"default"},virtualScrollItemSize:useVirtualScrollProps.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...useFieldEmits,"add","remove","inputValue","keyup","keypress","keydown","popupShow","popupHide","filterAbort"],setup(u,{slots:d,emit:g}){const{proxy:f}=getCurrentInstance(),{$q:b}=f,m=ref(!1),y=ref(!1),k=ref(-1),a=ref(""),q=ref(!1),w=ref(!1);let $=null,Q=null,C,v,J,ae=null,H,Y,G,j;const L=ref(null),R=ref(null),T=ref(null),O=ref(null),P=ref(null),B=useFormInputNameAttr(u),M=useKeyComposition(Re),F=computed(()=>Array.isArray(u.options)?u.options.length:0),S=computed(()=>u.virtualScrollItemSize===void 0?u.optionsDense===!0?24:48:u.virtualScrollItemSize),{virtualScrollSliceRange:A,virtualScrollSliceSizeComputed:E,localResetVirtualScroll:_,padVirtualScroll:D,onVirtualScrollEvt:N,scrollTo:U,setVirtualScrollSize:z}=useVirtualScroll({virtualScrollLength:F,getVirtualScrollTarget:Ge,getVirtualScrollEl:Oe,virtualScrollItemSizeComputed:S}),te=useFieldState(),W=computed(()=>{const Ie=u.mapOptions===!0&&u.multiple!==!0,rt=u.modelValue!==void 0&&(u.modelValue!==null||Ie===!0)?u.multiple===!0&&Array.isArray(u.modelValue)?u.modelValue:[u.modelValue]:[];if(u.mapOptions===!0&&Array.isArray(u.options)===!0){const Je=u.mapOptions===!0&&C!==void 0?C:[],mt=rt.map(vt=>we(vt,Je));return u.modelValue===null&&Ie===!0?mt.filter(vt=>vt!==null):mt}return rt}),re=computed(()=>{const Ie={};return fieldPropsList.forEach(rt=>{const Je=u[rt];Je!==void 0&&(Ie[rt]=Je)}),Ie}),ee=computed(()=>u.optionsDark===null?te.isDark.value:u.optionsDark),X=computed(()=>fieldValueIsFilled(W.value)),K=computed(()=>{let Ie="q-field__input q-placeholder col";return u.hideSelected===!0||W.value.length===0?[Ie,u.inputClass]:(Ie+=" q-field__input--padding",u.inputClass===void 0?Ie:[Ie,u.inputClass])}),Z=computed(()=>(u.virtualScrollHorizontal===!0?"q-virtual-scroll--horizontal":"")+(u.popupContentClass?" "+u.popupContentClass:"")),se=computed(()=>F.value===0),ie=computed(()=>W.value.map(Ie=>be.value(Ie)).join(", ")),de=computed(()=>u.displayValue!==void 0?u.displayValue:ie.value),ce=computed(()=>u.optionsHtml===!0?()=>!0:Ie=>Ie!=null&&Ie.html===!0),he=computed(()=>u.displayValueHtml===!0||u.displayValue===void 0&&(u.optionsHtml===!0||W.value.some(ce.value))),oe=computed(()=>te.focused.value===!0?u.tabindex:-1),ne=computed(()=>{const Ie={tabindex:u.tabindex,role:"combobox","aria-label":u.label,"aria-readonly":u.readonly===!0?"true":"false","aria-autocomplete":u.useInput===!0?"list":"none","aria-expanded":m.value===!0?"true":"false","aria-controls":`${te.targetUid.value}_lb`};return k.value>=0&&(Ie["aria-activedescendant"]=`${te.targetUid.value}_${k.value}`),Ie}),ue=computed(()=>({id:`${te.targetUid.value}_lb`,role:"listbox","aria-multiselectable":u.multiple===!0?"true":"false"})),le=computed(()=>W.value.map((Ie,rt)=>({index:rt,opt:Ie,html:ce.value(Ie),selected:!0,removeAtIndex:De,toggleOption:Be,tabindex:oe.value}))),fe=computed(()=>{if(F.value===0)return[];const{from:Ie,to:rt}=A.value;return u.options.slice(Ie,rt).map((Je,mt)=>{const vt=me.value(Je)===!0,yt=Ae(Je)===!0,Bt=Ie+mt,_t={clickable:!0,active:yt,activeClass:xe.value,manualFocus:!0,focused:!1,disable:vt,tabindex:-1,dense:u.optionsDense,dark:ee.value,role:"option","aria-selected":yt===!0?"true":"false",id:`${te.targetUid.value}_${Bt}`,onClick:()=>{Be(Je)}};return vt!==!0&&(k.value===Bt&&(_t.focused=!0),b.platform.is.desktop===!0&&(_t.onMousemove=()=>{m.value===!0&&Te(Bt)})),{index:Bt,opt:Je,html:ce.value(Je),label:be.value(Je),selected:_t.active,focused:_t.focused,toggleOption:Be,setOptionIndex:Te,itemProps:_t}})}),pe=computed(()=>u.dropdownIcon!==void 0?u.dropdownIcon:b.iconSet.arrow.dropdown),ve=computed(()=>u.optionsCover===!1&&u.outlined!==!0&&u.standout!==!0&&u.borderless!==!0&&u.rounded!==!0),xe=computed(()=>u.optionsSelectedClass!==void 0?u.optionsSelectedClass:u.color!==void 0?`text-${u.color}`:""),Ce=computed(()=>getPropValueFn(u.optionValue,"value")),be=computed(()=>getPropValueFn(u.optionLabel,"label")),me=computed(()=>getPropValueFn(u.optionDisable,"disable")),ge=computed(()=>W.value.map(Ce.value)),ye=computed(()=>{const Ie={onInput:Re,onChange:M,onKeydown:qe,onKeyup:Le,onKeypress:Ne,onFocus:ke,onClick(rt){v===!0&&stop(rt)}};return Ie.onCompositionstart=Ie.onCompositionupdate=Ie.onCompositionend=M,Ie});watch(W,Ie=>{C=Ie,u.useInput===!0&&u.fillInput===!0&&u.multiple!==!0&&te.innerLoading.value!==!0&&(y.value!==!0&&m.value!==!0||X.value!==!0)&&(J!==!0&&Lt(),(y.value===!0||m.value===!0)&&$e(""))},{immediate:!0}),watch(()=>u.fillInput,Lt),watch(m,$t),watch(F,Vt);function Se(Ie){return u.emitValue===!0?Ce.value(Ie):Ie}function Ee(Ie){if(Ie!==-1&&Ie<W.value.length)if(u.multiple===!0){const rt=u.modelValue.slice();g("remove",{index:Ie,value:rt.splice(Ie,1)[0]}),g("update:modelValue",rt)}else g("update:modelValue",null)}function De(Ie){Ee(Ie),te.focus()}function _e(Ie,rt){const Je=Se(Ie);if(u.multiple!==!0){u.fillInput===!0&&ze(be.value(Ie),!0,!0),g("update:modelValue",Je);return}if(W.value.length===0){g("add",{index:0,value:Je}),g("update:modelValue",u.multiple===!0?[Je]:Je);return}if(rt===!0&&Ae(Ie)===!0||u.maxValues!==void 0&&u.modelValue.length>=u.maxValues)return;const mt=u.modelValue.slice();g("add",{index:mt.length,value:Je}),mt.push(Je),g("update:modelValue",mt)}function Be(Ie,rt){if(te.editable.value!==!0||Ie===void 0||me.value(Ie)===!0)return;const Je=Ce.value(Ie);if(u.multiple!==!0){rt!==!0&&(ze(u.fillInput===!0?be.value(Ie):"",!0,!0),Rt()),R.value!==null&&R.value.focus(),(W.value.length===0||isDeepEqual(Ce.value(W.value[0]),Je)!==!0)&&g("update:modelValue",u.emitValue===!0?Je:Ie);return}if((v!==!0||q.value===!0)&&te.focus(),ke(),W.value.length===0){const yt=u.emitValue===!0?Je:Ie;g("add",{index:0,value:yt}),g("update:modelValue",u.multiple===!0?[yt]:yt);return}const mt=u.modelValue.slice(),vt=ge.value.findIndex(yt=>isDeepEqual(yt,Je));if(vt!==-1)g("remove",{index:vt,value:mt.splice(vt,1)[0]});else{if(u.maxValues!==void 0&&mt.length>=u.maxValues)return;const yt=u.emitValue===!0?Je:Ie;g("add",{index:mt.length,value:yt}),mt.push(yt)}g("update:modelValue",mt)}function Te(Ie){if(b.platform.is.desktop!==!0)return;const rt=Ie!==-1&&Ie<F.value?Ie:-1;k.value!==rt&&(k.value=rt)}function Fe(Ie=1,rt){if(m.value===!0){let Je=k.value;do Je=normalizeToInterval(Je+Ie,-1,F.value-1);while(Je!==-1&&Je!==k.value&&me.value(u.options[Je])===!0);k.value!==Je&&(Te(Je),U(Je),rt!==!0&&u.useInput===!0&&u.fillInput===!0&&Me(Je>=0?be.value(u.options[Je]):H,!0))}}function we(Ie,rt){const Je=mt=>isDeepEqual(Ce.value(mt),Ie);return u.options.find(Je)||rt.find(Je)||Ie}function Ae(Ie){const rt=Ce.value(Ie);return ge.value.find(Je=>isDeepEqual(Je,rt))!==void 0}function ke(Ie){u.useInput===!0&&R.value!==null&&(Ie===void 0||R.value===Ie.target&&Ie.target.value===ie.value)&&R.value.select()}function Pe(Ie){isKeyCode(Ie,27)===!0&&m.value===!0&&(stop(Ie),Rt(),Lt()),g("keyup",Ie)}function Le(Ie){const{value:rt}=Ie.target;if(Ie.keyCode!==void 0){Pe(Ie);return}if(Ie.target.value="",$!==null&&(clearTimeout($),$=null),Q!==null&&(clearTimeout(Q),Q=null),Lt(),typeof rt=="string"&&rt.length!==0){const Je=rt.toLocaleLowerCase(),mt=yt=>{const Bt=u.options.find(_t=>String(yt.value(_t)).toLocaleLowerCase()===Je);return Bt===void 0?!1:(W.value.indexOf(Bt)===-1?Be(Bt):Rt(),!0)},vt=yt=>{mt(Ce)!==!0&&yt!==!0&&mt(be)!==!0&&$e(rt,!0,()=>vt(!0))};vt()}else te.clearValue(Ie)}function Ne(Ie){g("keypress",Ie)}function qe(Ie){if(g("keydown",Ie),shouldIgnoreKey(Ie)===!0)return;const rt=a.value.length!==0&&(u.newValueMode!==void 0||u.onNewValue!==void 0),Je=Ie.shiftKey!==!0&&u.disableTabSelection!==!0&&u.multiple!==!0&&(k.value!==-1||rt===!0);if(Ie.keyCode===27){prevent(Ie);return}if(Ie.keyCode===9&&Je===!1){Dt();return}if(Ie.target===void 0||Ie.target.id!==te.targetUid.value||te.editable.value!==!0)return;if(Ie.keyCode===40&&te.innerLoading.value!==!0&&m.value===!1){stopAndPrevent(Ie),At();return}if(Ie.keyCode===8&&(u.useChips===!0||u.clearable===!0)&&u.hideSelected!==!0&&a.value.length===0){u.multiple===!0&&Array.isArray(u.modelValue)===!0?Ee(u.modelValue.length-1):u.multiple!==!0&&u.modelValue!==null&&g("update:modelValue",null);return}(Ie.keyCode===35||Ie.keyCode===36)&&(typeof a.value!="string"||a.value.length===0)&&(stopAndPrevent(Ie),k.value=-1,Fe(Ie.keyCode===36?1:-1,u.multiple)),(Ie.keyCode===33||Ie.keyCode===34)&&E.value!==void 0&&(stopAndPrevent(Ie),k.value=Math.max(-1,Math.min(F.value,k.value+(Ie.keyCode===33?-1:1)*E.value.view)),Fe(Ie.keyCode===33?1:-1,u.multiple)),(Ie.keyCode===38||Ie.keyCode===40)&&(stopAndPrevent(Ie),Fe(Ie.keyCode===38?-1:1,u.multiple));const mt=F.value;if((G===void 0||j<Date.now())&&(G=""),mt>0&&u.useInput!==!0&&Ie.key!==void 0&&Ie.key.length===1&&Ie.altKey===!1&&Ie.ctrlKey===!1&&Ie.metaKey===!1&&(Ie.keyCode!==32||G.length!==0)){m.value!==!0&&At(Ie);const vt=Ie.key.toLocaleLowerCase(),yt=G.length===1&&G[0]===vt;j=Date.now()+1500,yt===!1&&(stopAndPrevent(Ie),G+=vt);const Bt=new RegExp("^"+G.split("").map(zt=>reEscapeList.indexOf(zt)!==-1?"\\"+zt:zt).join(".*"),"i");let _t=k.value;if(yt===!0||_t<0||Bt.test(be.value(u.options[_t]))!==!0)do _t=normalizeToInterval(_t+1,-1,mt-1);while(_t!==k.value&&(me.value(u.options[_t])===!0||Bt.test(be.value(u.options[_t]))!==!0));k.value!==_t&&nextTick(()=>{Te(_t),U(_t),_t>=0&&u.useInput===!0&&u.fillInput===!0&&Me(be.value(u.options[_t]),!0)});return}if(!(Ie.keyCode!==13&&(Ie.keyCode!==32||u.useInput===!0||G!=="")&&(Ie.keyCode!==9||Je===!1))){if(Ie.keyCode!==9&&stopAndPrevent(Ie),k.value!==-1&&k.value<mt){Be(u.options[k.value]);return}if(rt===!0){const vt=(yt,Bt)=>{if(Bt){if(validateNewValueMode(Bt)!==!0)return}else Bt=u.newValueMode;if(ze("",u.multiple!==!0,!0),yt==null)return;(Bt==="toggle"?Be:_e)(yt,Bt==="add-unique"),u.multiple!==!0&&(R.value!==null&&R.value.focus(),Rt())};if(u.onNewValue!==void 0?g("newValue",a.value,vt):vt(a.value),u.multiple!==!0)return}m.value===!0?Dt():te.innerLoading.value!==!0&&At()}}function Oe(){return v===!0?P.value:T.value!==null&&T.value.contentEl!==null?T.value.contentEl:void 0}function Ge(){return Oe()}function Ve(){return u.hideSelected===!0?[]:d["selected-item"]!==void 0?le.value.map(Ie=>d["selected-item"](Ie)).slice():d.selected!==void 0?[].concat(d.selected()):u.useChips===!0?le.value.map((Ie,rt)=>h(QChip,{key:"option-"+rt,removable:te.editable.value===!0&&me.value(Ie.opt)!==!0,dense:!0,textColor:u.color,tabindex:oe.value,onRemove(){Ie.removeAtIndex(rt)}},()=>h("span",{class:"ellipsis",[Ie.html===!0?"innerHTML":"textContent"]:be.value(Ie.opt)}))):[h("span",{[he.value===!0?"innerHTML":"textContent"]:de.value})]}function Xe(){if(se.value===!0)return d["no-option"]!==void 0?d["no-option"]({inputValue:a.value}):void 0;const Ie=d.option!==void 0?d.option:Je=>h(QItem,{key:Je.index,...Je.itemProps},()=>h(QItemSection,()=>h(QItemLabel,()=>h("span",{[Je.html===!0?"innerHTML":"textContent"]:Je.label}))));let rt=D("div",fe.value.map(Ie));return d["before-options"]!==void 0&&(rt=d["before-options"]().concat(rt)),hMergeSlot(d["after-options"],rt)}function at(Ie,rt){const Je=rt===!0?{...ne.value,...te.splitAttrs.attributes.value}:void 0,mt={ref:rt===!0?R:void 0,key:"i_t",class:K.value,style:u.inputStyle,value:a.value!==void 0?a.value:"",type:"search",...Je,id:rt===!0?te.targetUid.value:void 0,maxlength:u.maxlength,autocomplete:u.autocomplete,"data-autofocus":Ie===!0||u.autofocus===!0||void 0,disabled:u.disable===!0,readonly:u.readonly===!0,...ye.value};return Ie!==!0&&v===!0&&(Array.isArray(mt.class)===!0?mt.class=[...mt.class,"no-pointer-events"]:mt.class+=" no-pointer-events"),h("input",mt)}function Re(Ie){$!==null&&(clearTimeout($),$=null),Q!==null&&(clearTimeout(Q),Q=null),!(Ie&&Ie.target&&Ie.target.qComposing===!0)&&(Me(Ie.target.value||""),J=!0,H=a.value,te.focused.value!==!0&&(v!==!0||q.value===!0)&&te.focus(),u.onFilter!==void 0&&($=setTimeout(()=>{$=null,$e(a.value)},u.inputDebounce)))}function Me(Ie,rt){a.value!==Ie&&(a.value=Ie,rt===!0||u.inputDebounce===0||u.inputDebounce==="0"?g("inputValue",Ie):Q=setTimeout(()=>{Q=null,g("inputValue",Ie)},u.inputDebounce))}function ze(Ie,rt,Je){J=Je!==!0,u.useInput===!0&&(Me(Ie,!0),(rt===!0||Je!==!0)&&(H=Ie),rt!==!0&&$e(Ie))}function $e(Ie,rt,Je){if(u.onFilter===void 0||rt!==!0&&te.focused.value!==!0)return;te.innerLoading.value===!0?g("filterAbort"):(te.innerLoading.value=!0,w.value=!0),Ie!==""&&u.multiple!==!0&&W.value.length!==0&&J!==!0&&Ie===be.value(W.value[0])&&(Ie="");const mt=setTimeout(()=>{m.value===!0&&(m.value=!1)},10);ae!==null&&clearTimeout(ae),ae=mt,g("filter",Ie,(vt,yt)=>{(rt===!0||te.focused.value===!0)&&ae===mt&&(clearTimeout(ae),typeof vt=="function"&&vt(),w.value=!1,nextTick(()=>{te.innerLoading.value=!1,te.editable.value===!0&&(rt===!0?m.value===!0&&Rt():m.value===!0?$t(!0):m.value=!0),typeof yt=="function"&&nextTick(()=>{yt(f)}),typeof Je=="function"&&nextTick(()=>{Je(f)})}))},()=>{te.focused.value===!0&&ae===mt&&(clearTimeout(ae),te.innerLoading.value=!1,w.value=!1),m.value===!0&&(m.value=!1)})}function je(){return h(QMenu,{ref:T,class:Z.value,style:u.popupContentStyle,modelValue:m.value,fit:u.menuShrink!==!0,cover:u.optionsCover===!0&&se.value!==!0&&u.useInput!==!0,anchor:u.menuAnchor,self:u.menuSelf,offset:u.menuOffset,dark:ee.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:u.popupNoRouteDismiss,square:ve.value,transitionShow:u.transitionShow,transitionHide:u.transitionHide,transitionDuration:u.transitionDuration,separateClosePopup:!0,...ue.value,onScrollPassive:N,onBeforeShow:Gt,onBeforeHide:Ze,onShow:Qe},Xe)}function Ze(Ie){qt(Ie),Dt()}function Qe(){z()}function ut(Ie){stop(Ie),R.value!==null&&R.value.focus(),q.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function lt(Ie){stop(Ie),nextTick(()=>{q.value=!1})}function Ft(){const Ie=[h(QField,{class:`col-auto ${te.fieldClass.value}`,...re.value,for:te.targetUid.value,dark:ee.value,square:!0,loading:w.value,itemAligned:!1,filled:!0,stackLabel:a.value.length!==0,...te.splitAttrs.listeners.value,onFocus:ut,onBlur:lt},{...d,rawControl:()=>te.getControl(!0),before:void 0,after:void 0})];return m.value===!0&&Ie.push(h("div",{ref:P,class:Z.value+" scroll",style:u.popupContentStyle,...ue.value,onClick:prevent,onScrollPassive:N},Xe())),h(QDialog,{ref:O,modelValue:y.value,position:u.useInput===!0?"top":void 0,transitionShow:Y,transitionHide:u.transitionHide,transitionDuration:u.transitionDuration,noRouteDismiss:u.popupNoRouteDismiss,onBeforeShow:Gt,onBeforeHide:kt,onHide:ft,onShow:gt},()=>h("div",{class:"q-select__dialog"+(ee.value===!0?" q-select__dialog--dark q-dark":"")+(q.value===!0?" q-select__dialog--focused":"")},Ie))}function kt(Ie){qt(Ie),O.value!==null&&O.value.__updateRefocusTarget(te.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")),te.focused.value=!1}function ft(Ie){Rt(),te.focused.value===!1&&g("blur",Ie),Lt()}function gt(){const Ie=document.activeElement;(Ie===null||Ie.id!==te.targetUid.value)&&R.value!==null&&R.value!==Ie&&R.value.focus(),z()}function Dt(){y.value!==!0&&(k.value=-1,m.value===!0&&(m.value=!1),te.focused.value===!1&&(ae!==null&&(clearTimeout(ae),ae=null),te.innerLoading.value===!0&&(g("filterAbort"),te.innerLoading.value=!1,w.value=!1)))}function At(Ie){te.editable.value===!0&&(v===!0?(te.onControlFocusin(Ie),y.value=!0,nextTick(()=>{te.focus()})):te.focus(),u.onFilter!==void 0?$e(a.value):(se.value!==!0||d["no-option"]!==void 0)&&(m.value=!0))}function Rt(){y.value=!1,Dt()}function Lt(){u.useInput===!0&&ze(u.multiple!==!0&&u.fillInput===!0&&W.value.length!==0&&be.value(W.value[0])||"",!0,!0)}function $t(Ie){let rt=-1;if(Ie===!0){if(W.value.length!==0){const Je=Ce.value(W.value[0]);rt=u.options.findIndex(mt=>isDeepEqual(Ce.value(mt),Je))}_(rt)}Te(rt)}function Vt(Ie,rt){m.value===!0&&te.innerLoading.value===!1&&(_(-1,!0),nextTick(()=>{m.value===!0&&te.innerLoading.value===!1&&(Ie>rt?_():$t(!0))}))}function Wt(){y.value===!1&&T.value!==null&&T.value.updatePosition()}function Gt(Ie){Ie!==void 0&&stop(Ie),g("popupShow",Ie),te.hasPopupOpen=!0,te.onControlFocusin(Ie)}function qt(Ie){Ie!==void 0&&stop(Ie),g("popupHide",Ie),te.hasPopupOpen=!1,te.onControlFocusout(Ie)}function Ht(){v=b.platform.is.mobile!==!0&&u.behavior!=="dialog"?!1:u.behavior!=="menu"&&(u.useInput===!0?d["no-option"]!==void 0||u.onFilter!==void 0||se.value===!1:!0),Y=b.platform.is.ios===!0&&v===!0&&u.useInput===!0?"fade":u.transitionShow}return onBeforeUpdate(Ht),onUpdated(Wt),Ht(),onBeforeUnmount(()=>{$!==null&&clearTimeout($),Q!==null&&clearTimeout(Q)}),Object.assign(f,{showPopup:At,hidePopup:Rt,removeAtIndex:Ee,add:_e,toggleOption:Be,getOptionIndex:()=>k.value,setOptionIndex:Te,moveOptionSelection:Fe,filter:$e,updateMenuPosition:Wt,updateInputValue:ze,isOptionSelected:Ae,getEmittingOptionValue:Se,isOptionDisabled:(...Ie)=>me.value.apply(null,Ie)===!0,getOptionValue:(...Ie)=>Ce.value.apply(null,Ie),getOptionLabel:(...Ie)=>be.value.apply(null,Ie)}),Object.assign(te,{innerValue:W,fieldClass:computed(()=>`q-select q-field--auto-height q-select--with${u.useInput!==!0?"out":""}-input q-select--with${u.useChips!==!0?"out":""}-chips q-select--${u.multiple===!0?"multiple":"single"}`),inputRef:L,targetRef:R,hasValue:X,showPopup:At,floatingLabel:computed(()=>u.hideSelected!==!0&&X.value===!0||typeof a.value=="number"||a.value.length!==0||fieldValueIsFilled(u.displayValue)),getControlChild:()=>{if(te.editable.value!==!1&&(y.value===!0||se.value!==!0||d["no-option"]!==void 0))return v===!0?Ft():je();te.hasPopupOpen===!0&&(te.hasPopupOpen=!1)},controlEvents:{onFocusin(Ie){te.onControlFocusin(Ie)},onFocusout(Ie){te.onControlFocusout(Ie,()=>{Lt(),Dt()})},onClick(Ie){if(prevent(Ie),v!==!0&&m.value===!0){Dt(),R.value!==null&&R.value.focus();return}At(Ie)}},getControl:Ie=>{const rt=Ve(),Je=Ie===!0||y.value!==!0||v!==!0;if(u.useInput===!0)rt.push(at(Ie,Je));else if(te.editable.value===!0){const vt=Je===!0?ne.value:void 0;rt.push(h("input",{ref:Je===!0?R:void 0,key:"d_t",class:"q-select__focus-target",id:Je===!0?te.targetUid.value:void 0,value:de.value,readonly:!0,"data-autofocus":Ie===!0||u.autofocus===!0||void 0,...vt,onKeydown:qe,onKeyup:Pe,onKeypress:Ne})),Je===!0&&typeof u.autocomplete=="string"&&u.autocomplete.length!==0&&rt.push(h("input",{class:"q-select__autocomplete-input",autocomplete:u.autocomplete,tabindex:-1,onKeyup:Le}))}if(B.value!==void 0&&u.disable!==!0&&ge.value.length!==0){const vt=ge.value.map(yt=>h("option",{value:yt,selected:!0}));rt.push(h("select",{class:"hidden",name:B.value,multiple:u.multiple},vt))}const mt=u.useInput===!0||Je!==!0?void 0:te.splitAttrs.attributes.value;return h("div",{class:"q-field__native row items-center",...mt,...te.splitAttrs.listeners.value},rt)},getInnerAppend:()=>u.loading!==!0&&w.value!==!0&&u.hideDropdownIcon!==!0?[h(QIcon,{class:"q-select__dropdown-icon"+(m.value===!0?" rotate-180":""),name:pe.value})]:null}),useField(te)}});const defaultSizes={xs:2,sm:4,md:6,lg:10,xl:14};function width(u,d,g){return{transform:d===!0?`translateX(${g.lang.rtl===!0?"-":""}100%) scale3d(${-u},1,1)`:`scale3d(${u},1,1)`}}var QLinearProgress=createComponent({name:"QLinearProgress",props:{...useDarkProps,...useSizeProps,value:{type:Number,default:0},buffer:Number,color:String,trackColor:String,reverse:Boolean,stripe:Boolean,indeterminate:Boolean,query:Boolean,rounded:Boolean,animationSpeed:{type:[String,Number],default:2100},instantFeedback:Boolean},setup(u,{slots:d}){const{proxy:g}=getCurrentInstance(),f=useDark(u,g.$q),b=useSize(u,defaultSizes),m=computed(()=>u.indeterminate===!0||u.query===!0),y=computed(()=>u.reverse!==u.query),k=computed(()=>({...b.value!==null?b.value:{},"--q-linear-progress-speed":`${u.animationSpeed}ms`})),a=computed(()=>"q-linear-progress"+(u.color!==void 0?` text-${u.color}`:"")+(u.reverse===!0||u.query===!0?" q-linear-progress--reverse":"")+(u.rounded===!0?" rounded-borders":"")),q=computed(()=>width(u.buffer!==void 0?u.buffer:1,y.value,g.$q)),w=computed(()=>`with${u.instantFeedback===!0?"out":""}-transition`),$=computed(()=>`q-linear-progress__track absolute-full q-linear-progress__track--${w.value} q-linear-progress__track--${f.value===!0?"dark":"light"}`+(u.trackColor!==void 0?` bg-${u.trackColor}`:"")),Q=computed(()=>width(m.value===!0?1:u.value,y.value,g.$q)),C=computed(()=>`q-linear-progress__model absolute-full q-linear-progress__model--${w.value} q-linear-progress__model--${m.value===!0?"in":""}determinate`),v=computed(()=>({width:`${u.value*100}%`})),J=computed(()=>`q-linear-progress__stripe absolute-${u.reverse===!0?"right":"left"} q-linear-progress__stripe--${w.value}`);return()=>{const ae=[h("div",{class:$.value,style:q.value}),h("div",{class:C.value,style:Q.value})];return u.stripe===!0&&m.value===!1&&ae.push(h("div",{class:J.value,style:v.value})),h("div",{class:a.value,style:k.value,role:"progressbar","aria-valuemin":0,"aria-valuemax":1,"aria-valuenow":u.indeterminate===!0?void 0:u.value},hMergeSlot(d.default,ae))}}});function useRefocusTarget(u,d){const g=ref(null),f=computed(()=>u.disable===!0?null:h("span",{ref:g,class:"no-outline",tabindex:-1}));function b(m){const y=d.value;m!==void 0&&m.type.indexOf("key")===0?y!==null&&document.activeElement!==y&&y.contains(document.activeElement)===!0&&y.focus():g.value!==null&&(m===void 0||y!==null&&y.contains(m.target)===!0)&&g.value.focus()}return{refocusTargetEl:f,refocusTarget:b}}var optionSizes={xs:30,sm:35,md:40,lg:50,xl:60};const useCheckboxProps={...useDarkProps,...useSizeProps,...useFormProps,modelValue:{required:!0,default:null},val:{},trueValue:{default:!0},falseValue:{default:!1},indeterminateValue:{default:null},checkedIcon:String,uncheckedIcon:String,indeterminateIcon:String,toggleOrder:{type:String,validator:u=>u==="tf"||u==="ft"},toggleIndeterminate:Boolean,label:String,leftLabel:Boolean,color:String,keepColor:Boolean,dense:Boolean,disable:Boolean,tabindex:[String,Number]},useCheckboxEmits=["update:modelValue"];function useCheckbox(u,d){const{props:g,slots:f,emit:b,proxy:m}=getCurrentInstance(),{$q:y}=m,k=useDark(g,y),a=ref(null),{refocusTargetEl:q,refocusTarget:w}=useRefocusTarget(g,a),$=useSize(g,optionSizes),Q=computed(()=>g.val!==void 0&&Array.isArray(g.modelValue)),C=computed(()=>{const F=toRaw(g.val);return Q.value===!0?g.modelValue.findIndex(S=>toRaw(S)===F):-1}),v=computed(()=>Q.value===!0?C.value!==-1:toRaw(g.modelValue)===toRaw(g.trueValue)),J=computed(()=>Q.value===!0?C.value===-1:toRaw(g.modelValue)===toRaw(g.falseValue)),ae=computed(()=>v.value===!1&&J.value===!1),H=computed(()=>g.disable===!0?-1:g.tabindex||0),Y=computed(()=>`q-${u} cursor-pointer no-outline row inline no-wrap items-center`+(g.disable===!0?" disabled":"")+(k.value===!0?` q-${u}--dark`:"")+(g.dense===!0?` q-${u}--dense`:"")+(g.leftLabel===!0?" reverse":"")),G=computed(()=>{const F=v.value===!0?"truthy":J.value===!0?"falsy":"indet",S=g.color!==void 0&&(g.keepColor===!0||(u==="toggle"?v.value===!0:J.value!==!0))?` text-${g.color}`:"";return`q-${u}__inner relative-position non-selectable q-${u}__inner--${F}${S}`}),j=computed(()=>{const F={type:"checkbox"};return g.name!==void 0&&Object.assign(F,{".checked":v.value,"^checked":v.value===!0?"checked":void 0,name:g.name,value:Q.value===!0?g.val:g.trueValue}),F}),L=useFormInject(j),R=computed(()=>{const F={tabindex:H.value,role:u==="toggle"?"switch":"checkbox","aria-label":g.label,"aria-checked":ae.value===!0?"mixed":v.value===!0?"true":"false"};return g.disable===!0&&(F["aria-disabled"]="true"),F});function T(F){F!==void 0&&(stopAndPrevent(F),w(F)),g.disable!==!0&&b("update:modelValue",O(),F)}function O(){if(Q.value===!0){if(v.value===!0){const F=g.modelValue.slice();return F.splice(C.value,1),F}return g.modelValue.concat([g.val])}if(v.value===!0){if(g.toggleOrder!=="ft"||g.toggleIndeterminate===!1)return g.falseValue}else if(J.value===!0){if(g.toggleOrder==="ft"||g.toggleIndeterminate===!1)return g.trueValue}else return g.toggleOrder!=="ft"?g.trueValue:g.falseValue;return g.indeterminateValue}function P(F){(F.keyCode===13||F.keyCode===32)&&stopAndPrevent(F)}function B(F){(F.keyCode===13||F.keyCode===32)&&T(F)}const M=d(v,ae);return Object.assign(m,{toggle:T}),()=>{const F=M();g.disable!==!0&&L(F,"unshift",` q-${u}__native absolute q-ma-none q-pa-none`);const S=[h("div",{class:G.value,style:$.value,"aria-hidden":"true"},F)];q.value!==null&&S.push(q.value);const A=g.label!==void 0?hMergeSlot(f.default,[g.label]):hSlot(f.default);return A!==void 0&&S.push(h("div",{class:`q-${u}__label q-anchor--skip`},A)),h("div",{ref:a,class:Y.value,...R.value,onClick:T,onKeydown:P,onKeyup:B},S)}}const createBgNode=()=>h("div",{key:"svg",class:"q-checkbox__bg absolute"},[h("svg",{class:"q-checkbox__svg fit absolute-full",viewBox:"0 0 24 24"},[h("path",{class:"q-checkbox__truthy",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}),h("path",{class:"q-checkbox__indet",d:"M4,14H20V10H4"})])]);var QCheckbox=createComponent({name:"QCheckbox",props:useCheckboxProps,emits:useCheckboxEmits,setup(u){const d=createBgNode();function g(f,b){const m=computed(()=>(f.value===!0?u.checkedIcon:b.value===!0?u.indeterminateIcon:u.uncheckedIcon)||null);return()=>m.value!==null?[h("div",{key:"icon",class:"q-checkbox__icon-container absolute-full flex flex-center no-wrap"},[h(QIcon,{class:"q-checkbox__icon",name:m.value})])]:[d]}return useCheckbox("checkbox",g)}});let counter=0;const useFullscreenProps={fullscreen:Boolean,noRouteFullscreenExit:Boolean},useFullscreenEmits=["update:fullscreen","fullscreen"];function useFullscreen(){const u=getCurrentInstance(),{props:d,emit:g,proxy:f}=u;let b,m,y;const k=ref(!1);vmHasRouter(u)===!0&&watch(()=>f.$route.fullPath,()=>{d.noRouteFullscreenExit!==!0&&w()}),watch(()=>d.fullscreen,$=>{k.value!==$&&a()}),watch(k,$=>{g("update:fullscreen",$),g("fullscreen",$)});function a(){k.value===!0?w():q()}function q(){k.value!==!0&&(k.value=!0,y=f.$el.parentNode,y.replaceChild(m,f.$el),document.body.appendChild(f.$el),counter++,counter===1&&document.body.classList.add("q-body--fullscreen-mixin"),b={handler:w},History.add(b))}function w(){k.value===!0&&(b!==void 0&&(History.remove(b),b=void 0),y.replaceChild(f.$el,m),k.value=!1,counter=Math.max(0,counter-1),counter===0&&(document.body.classList.remove("q-body--fullscreen-mixin"),f.$el.scrollIntoView!==void 0&&setTimeout(()=>{f.$el.scrollIntoView()})))}return onBeforeMount(()=>{m=document.createElement("span")}),onMounted(()=>{d.fullscreen===!0&&q()}),onBeforeUnmount(w),Object.assign(f,{toggleFullscreen:a,setFullscreen:q,exitFullscreen:w}),{inFullscreen:k,toggleFullscreen:a}}function sortDate(u,d){return new Date(u)-new Date(d)}const useTableSortProps={sortMethod:Function,binaryStateSort:Boolean,columnSortOrder:{type:String,validator:u=>u==="ad"||u==="da",default:"ad"}};function useTableSort(u,d,g,f){const b=computed(()=>{const{sortBy:k}=d.value;return k&&g.value.find(a=>a.name===k)||null}),m=computed(()=>u.sortMethod!==void 0?u.sortMethod:(k,a,q)=>{const w=g.value.find(C=>C.name===a);if(w===void 0||w.field===void 0)return k;const $=q===!0?-1:1,Q=typeof w.field=="function"?C=>w.field(C):C=>C[w.field];return k.sort((C,v)=>{let J=Q(C),ae=Q(v);return w.rawSort!==void 0?w.rawSort(J,ae,C,v)*$:J==null?-1*$:ae==null?1*$:w.sort!==void 0?w.sort(J,ae,C,v)*$:isNumber$3(J)===!0&&isNumber$3(ae)===!0?(J-ae)*$:isDate$1(J)===!0&&isDate$1(ae)===!0?sortDate(J,ae)*$:typeof J=="boolean"&&typeof ae=="boolean"?(J-ae)*$:([J,ae]=[J,ae].map(H=>(H+"").toLocaleString().toLowerCase()),J<ae?-1*$:J===ae?0:$)})});function y(k){let a=u.columnSortOrder;if(isObject$1(k)===!0)k.sortOrder&&(a=k.sortOrder),k=k.name;else{const $=g.value.find(Q=>Q.name===k);$!==void 0&&$.sortOrder&&(a=$.sortOrder)}let{sortBy:q,descending:w}=d.value;q!==k?(q=k,w=a==="da"):u.binaryStateSort===!0?w=!w:w===!0?a==="ad"?q=null:w=!1:a==="ad"?w=!0:q=null,f({sortBy:q,descending:w,page:1})}return{columnToSort:b,computedSortMethod:m,sort:y}}const useTableFilterProps={filter:[String,Object],filterMethod:Function};function useTableFilter(u,d){const g=computed(()=>u.filterMethod!==void 0?u.filterMethod:(f,b,m,y)=>{const k=b?b.toLowerCase():"";return f.filter(a=>m.some(q=>{const w=y(q,a)+"";return(w==="undefined"||w==="null"?"":w.toLowerCase()).indexOf(k)!==-1}))});return watch(()=>u.filter,()=>{nextTick(()=>{d({page:1},!0)})},{deep:!0}),{computedFilterMethod:g}}function samePagination(u,d){for(const g in d)if(d[g]!==u[g])return!1;return!0}function fixPagination(u){return u.page<1&&(u.page=1),u.rowsPerPage!==void 0&&u.rowsPerPage<1&&(u.rowsPerPage=0),u}const useTablePaginationProps={pagination:Object,rowsPerPageOptions:{type:Array,default:()=>[5,7,10,15,20,25,50,0]},"onUpdate:pagination":[Function,Array]};function useTablePaginationState(u,d){const{props:g,emit:f}=u,b=ref(Object.assign({sortBy:null,descending:!1,page:1,rowsPerPage:g.rowsPerPageOptions.length!==0?g.rowsPerPageOptions[0]:5},g.pagination)),m=computed(()=>{const w=g["onUpdate:pagination"]!==void 0?{...b.value,...g.pagination}:b.value;return fixPagination(w)}),y=computed(()=>m.value.rowsNumber!==void 0);function k(w){a({pagination:w,filter:g.filter})}function a(w={}){nextTick(()=>{f("request",{pagination:w.pagination||m.value,filter:w.filter||g.filter,getCellValue:d})})}function q(w,$){const Q=fixPagination({...m.value,...w});if(samePagination(m.value,Q)===!0){y.value===!0&&$===!0&&k(Q);return}if(y.value===!0){k(Q);return}g.pagination!==void 0&&g["onUpdate:pagination"]!==void 0?f("update:pagination",Q):b.value=Q}return{innerPagination:b,computedPagination:m,isServerSide:y,requestServerInteraction:a,setPagination:q}}function useTablePagination(u,d,g,f,b,m){const{props:y,emit:k,proxy:{$q:a}}=u,q=computed(()=>f.value===!0?g.value.rowsNumber||0:m.value),w=computed(()=>{const{page:j,rowsPerPage:L}=g.value;return(j-1)*L}),$=computed(()=>{const{page:j,rowsPerPage:L}=g.value;return j*L}),Q=computed(()=>g.value.page===1),C=computed(()=>g.value.rowsPerPage===0?1:Math.max(1,Math.ceil(q.value/g.value.rowsPerPage))),v=computed(()=>$.value===0?!0:g.value.page>=C.value),J=computed(()=>(y.rowsPerPageOptions.includes(d.value.rowsPerPage)?y.rowsPerPageOptions:[d.value.rowsPerPage].concat(y.rowsPerPageOptions)).map(L=>({label:L===0?a.lang.table.allRows:""+L,value:L})));watch(C,(j,L)=>{if(j===L)return;const R=g.value.page;j&&!R?b({page:1}):j<R&&b({page:j})});function ae(){b({page:1})}function H(){const{page:j}=g.value;j>1&&b({page:j-1})}function Y(){const{page:j,rowsPerPage:L}=g.value;$.value>0&&j*L<q.value&&b({page:j+1})}function G(){b({page:C.value})}return y["onUpdate:pagination"]!==void 0&&k("update:pagination",{...g.value}),{firstRowIndex:w,lastRowIndex:$,isFirstPage:Q,isLastPage:v,pagesNumber:C,computedRowsPerPageOptions:J,computedRowsNumber:q,firstPage:ae,prevPage:H,nextPage:Y,lastPage:G}}const useTableRowSelectionProps={selection:{type:String,default:"none",validator:u=>["single","multiple","none"].includes(u)},selected:{type:Array,default:()=>[]}},useTableRowSelectionEmits=["update:selected","selection"];function useTableRowSelection(u,d,g,f){const b=computed(()=>{const v={};return u.selected.map(f.value).forEach(J=>{v[J]=!0}),v}),m=computed(()=>u.selection!=="none"),y=computed(()=>u.selection==="single"),k=computed(()=>u.selection==="multiple"),a=computed(()=>g.value.length!==0&&g.value.every(v=>b.value[f.value(v)]===!0)),q=computed(()=>a.value!==!0&&g.value.some(v=>b.value[f.value(v)]===!0)),w=computed(()=>u.selected.length);function $(v){return b.value[v]===!0}function Q(){d("update:selected",[])}function C(v,J,ae,H){d("selection",{rows:J,added:ae,keys:v,evt:H});const Y=y.value===!0?ae===!0?J:[]:ae===!0?u.selected.concat(J):u.selected.filter(G=>v.includes(f.value(G))===!1);d("update:selected",Y)}return{hasSelectionMode:m,singleSelection:y,multipleSelection:k,allRowsSelected:a,someRowsSelected:q,rowsSelectedNumber:w,isRowSelected:$,clearSelection:Q,updateSelection:C}}function getVal(u){return Array.isArray(u)?u.slice():[]}const useTableRowExpandProps={expanded:Array},useTableRowExpandEmits=["update:expanded"];function useTableRowExpand(u,d){const g=ref(getVal(u.expanded));watch(()=>u.expanded,y=>{g.value=getVal(y)});function f(y){return g.value.includes(y)}function b(y){u.expanded!==void 0?d("update:expanded",y):g.value=y}function m(y,k){const a=g.value.slice(),q=a.indexOf(y);k===!0?q===-1&&(a.push(y),b(a)):q!==-1&&(a.splice(q,1),b(a))}return{isRowExpanded:f,setExpanded:b,updateExpanded:m}}const useTableColumnSelectionProps={visibleColumns:Array};function useTableColumnSelection(u,d,g){const f=computed(()=>{if(u.columns!==void 0)return u.columns;const k=u.rows[0];return k!==void 0?Object.keys(k).map(a=>({name:a,label:a.toUpperCase(),field:a,align:isNumber$3(k[a])?"right":"left",sortable:!0})):[]}),b=computed(()=>{const{sortBy:k,descending:a}=d.value;return(u.visibleColumns!==void 0?f.value.filter(w=>w.required===!0||u.visibleColumns.includes(w.name)===!0):f.value).map(w=>{const $=w.align||"right",Q=`text-${$}`;return{...w,align:$,__iconClass:`q-table__sort-icon q-table__sort-icon--${$}`,__thClass:Q+(w.headerClasses!==void 0?" "+w.headerClasses:"")+(w.sortable===!0?" sortable":"")+(w.name===k?` sorted ${a===!0?"sort-desc":""}`:""),__tdStyle:w.style!==void 0?typeof w.style!="function"?()=>w.style:w.style:()=>null,__tdClass:w.classes!==void 0?typeof w.classes!="function"?()=>Q+" "+w.classes:C=>Q+" "+w.classes(C):()=>Q}})}),m=computed(()=>{const k={};return b.value.forEach(a=>{k[a.name]=a}),k}),y=computed(()=>u.tableColspan!==void 0?u.tableColspan:b.value.length+(g.value===!0?1:0));return{colList:f,computedCols:b,computedColsMap:m,computedColspan:y}}const bottomClass="q-table__bottom row items-center",virtScrollPassthroughProps={};commonVirtScrollPropsList.forEach(u=>{virtScrollPassthroughProps[u]={}});var QTable=createComponent({name:"QTable",props:{rows:{type:Array,required:!0},rowKey:{type:[String,Function],default:"id"},columns:Array,loading:Boolean,iconFirstPage:String,iconPrevPage:String,iconNextPage:String,iconLastPage:String,title:String,hideHeader:Boolean,grid:Boolean,gridHeader:Boolean,dense:Boolean,flat:Boolean,bordered:Boolean,square:Boolean,separator:{type:String,default:"horizontal",validator:u=>["horizontal","vertical","cell","none"].includes(u)},wrapCells:Boolean,virtualScroll:Boolean,virtualScrollTarget:{},...virtScrollPassthroughProps,noDataLabel:String,noResultsLabel:String,loadingLabel:String,selectedRowsLabel:Function,rowsPerPageLabel:String,paginationLabel:Function,color:{type:String,default:"grey-8"},titleClass:[String,Array,Object],tableStyle:[String,Array,Object],tableClass:[String,Array,Object],tableHeaderStyle:[String,Array,Object],tableHeaderClass:[String,Array,Object],cardContainerClass:[String,Array,Object],cardContainerStyle:[String,Array,Object],cardStyle:[String,Array,Object],cardClass:[String,Array,Object],hideBottom:Boolean,hideSelectedBanner:Boolean,hideNoData:Boolean,hidePagination:Boolean,onRowClick:Function,onRowDblclick:Function,onRowContextmenu:Function,...useDarkProps,...useFullscreenProps,...useTableColumnSelectionProps,...useTableFilterProps,...useTablePaginationProps,...useTableRowExpandProps,...useTableRowSelectionProps,...useTableSortProps},emits:["request","virtualScroll",...useFullscreenEmits,...useTableRowExpandEmits,...useTableRowSelectionEmits],setup(u,{slots:d,emit:g}){const f=getCurrentInstance(),{proxy:{$q:b}}=f,m=useDark(u,b),{inFullscreen:y,toggleFullscreen:k}=useFullscreen(),a=computed(()=>typeof u.rowKey=="function"?u.rowKey:Re=>Re[u.rowKey]),q=ref(null),w=ref(null),$=computed(()=>u.grid!==!0&&u.virtualScroll===!0),Q=computed(()=>" q-table__card"+(m.value===!0?" q-table__card--dark q-dark":"")+(u.square===!0?" q-table--square":"")+(u.flat===!0?" q-table--flat":"")+(u.bordered===!0?" q-table--bordered":"")),C=computed(()=>`q-table__container q-table--${u.separator}-separator column no-wrap`+(u.grid===!0?" q-table--grid":Q.value)+(m.value===!0?" q-table--dark":"")+(u.dense===!0?" q-table--dense":"")+(u.wrapCells===!1?" q-table--no-wrap":"")+(y.value===!0?" fullscreen scroll":"")),v=computed(()=>C.value+(u.loading===!0?" q-table--loading":""));watch(()=>u.tableStyle+u.tableClass+u.tableHeaderStyle+u.tableHeaderClass+C.value,()=>{$.value===!0&&w.value!==null&&w.value.reset()});const{innerPagination:J,computedPagination:ae,isServerSide:H,requestServerInteraction:Y,setPagination:G}=useTablePaginationState(f,Te),{computedFilterMethod:j}=useTableFilter(u,G),{isRowExpanded:L,setExpanded:R,updateExpanded:T}=useTableRowExpand(u,g),O=computed(()=>{let Re=u.rows;if(H.value===!0||Re.length===0)return Re;const{sortBy:Me,descending:ze}=ae.value;return u.filter&&(Re=j.value(Re,u.filter,te.value,Te)),ee.value!==null&&(Re=X.value(u.rows===Re?Re.slice():Re,Me,ze)),Re}),P=computed(()=>O.value.length),B=computed(()=>{let Re=O.value;if(H.value===!0)return Re;const{rowsPerPage:Me}=ae.value;return Me!==0&&(Z.value===0&&u.rows!==Re?Re.length>se.value&&(Re=Re.slice(0,se.value)):Re=Re.slice(Z.value,se.value)),Re}),{hasSelectionMode:M,singleSelection:F,multipleSelection:S,allRowsSelected:A,someRowsSelected:E,rowsSelectedNumber:_,isRowSelected:D,clearSelection:N,updateSelection:U}=useTableRowSelection(u,g,B,a),{colList:z,computedCols:te,computedColsMap:W,computedColspan:re}=useTableColumnSelection(u,ae,M),{columnToSort:ee,computedSortMethod:X,sort:K}=useTableSort(u,ae,z,G),{firstRowIndex:Z,lastRowIndex:se,isFirstPage:ie,isLastPage:de,pagesNumber:ce,computedRowsPerPageOptions:he,computedRowsNumber:oe,firstPage:ne,prevPage:ue,nextPage:le,lastPage:fe}=useTablePagination(f,J,ae,H,G,P),pe=computed(()=>B.value.length===0),ve=computed(()=>{const Re={};return commonVirtScrollPropsList.forEach(Me=>{Re[Me]=u[Me]}),Re.virtualScrollItemSize===void 0&&(Re.virtualScrollItemSize=u.dense===!0?28:48),Re});function xe(){$.value===!0&&w.value.reset()}function Ce(){if(u.grid===!0)return at();const Re=u.hideHeader!==!0?ke:null;if($.value===!0){const ze=d["top-row"],$e=d["bottom-row"],je={default:Ze=>ye(Ze.item,d.body,Ze.index)};if(ze!==void 0){const Ze=h("tbody",ze({cols:te.value}));je.before=Re===null?()=>Ze:()=>[Re()].concat(Ze)}else Re!==null&&(je.before=Re);return $e!==void 0&&(je.after=()=>h("tbody",$e({cols:te.value}))),h(QVirtualScroll,{ref:w,class:u.tableClass,style:u.tableStyle,...ve.value,scrollTarget:u.virtualScrollTarget,items:B.value,type:"__qtable",tableColspan:re.value,onVirtualScroll:me},je)}const Me=[Se()];return Re!==null&&Me.unshift(Re()),getTableMiddle({class:["q-table__middle scroll",u.tableClass],style:u.tableStyle},Me)}function be(Re,Me){if(w.value!==null){w.value.scrollTo(Re,Me);return}Re=parseInt(Re,10);const ze=q.value.querySelector(`tbody tr:nth-of-type(${Re+1})`);if(ze!==null){const $e=q.value.querySelector(".q-table__middle.scroll"),je=ze.offsetTop-u.virtualScrollStickySizeStart,Ze=je<$e.scrollTop?"decrease":"increase";$e.scrollTop=je,g("virtualScroll",{index:Re,from:0,to:J.value.rowsPerPage-1,direction:Ze})}}function me(Re){g("virtualScroll",Re)}function ge(){return[h(QLinearProgress,{class:"q-table__linear-progress",color:u.color,dark:m.value,indeterminate:!0,trackColor:"transparent"})]}function ye(Re,Me,ze){const $e=a.value(Re),je=D($e);if(Me!==void 0)return Me(Ee({key:$e,row:Re,pageIndex:ze,__trClass:je?"selected":""}));const Ze=d["body-cell"],Qe=te.value.map(lt=>{const Ft=d[`body-cell-${lt.name}`],kt=Ft!==void 0?Ft:Ze;return kt!==void 0?kt(De({key:$e,row:Re,pageIndex:ze,col:lt})):h("td",{class:lt.__tdClass(Re),style:lt.__tdStyle(Re)},Te(lt,Re))});if(M.value===!0){const lt=d["body-selection"],Ft=lt!==void 0?lt(_e({key:$e,row:Re,pageIndex:ze})):[h(QCheckbox,{modelValue:je,color:u.color,dark:m.value,dense:u.dense,"onUpdate:modelValue":(kt,ft)=>{U([$e],[Re],kt,ft)}})];Qe.unshift(h("td",{class:"q-table--col-auto-width"},Ft))}const ut={key:$e,class:{selected:je}};return u.onRowClick!==void 0&&(ut.class["cursor-pointer"]=!0,ut.onClick=lt=>{g("rowClick",lt,Re,ze)}),u.onRowDblclick!==void 0&&(ut.class["cursor-pointer"]=!0,ut.onDblclick=lt=>{g("rowDblclick",lt,Re,ze)}),u.onRowContextmenu!==void 0&&(ut.class["cursor-pointer"]=!0,ut.onContextmenu=lt=>{g("rowContextmenu",lt,Re,ze)}),h("tr",ut,Qe)}function Se(){const Re=d.body,Me=d["top-row"],ze=d["bottom-row"];let $e=B.value.map((je,Ze)=>ye(je,Re,Ze));return Me!==void 0&&($e=Me({cols:te.value}).concat($e)),ze!==void 0&&($e=$e.concat(ze({cols:te.value}))),h("tbody",$e)}function Ee(Re){return Be(Re),Re.cols=Re.cols.map(Me=>injectProp({...Me},"value",()=>Te(Me,Re.row))),Re}function De(Re){return Be(Re),injectProp(Re,"value",()=>Te(Re.col,Re.row)),Re}function _e(Re){return Be(Re),Re}function Be(Re){Object.assign(Re,{cols:te.value,colsMap:W.value,sort:K,rowIndex:Z.value+Re.pageIndex,color:u.color,dark:m.value,dense:u.dense}),M.value===!0&&injectProp(Re,"selected",()=>D(Re.key),(Me,ze)=>{U([Re.key],[Re.row],Me,ze)}),injectProp(Re,"expand",()=>L(Re.key),Me=>{T(Re.key,Me)})}function Te(Re,Me){const ze=typeof Re.field=="function"?Re.field(Me):Me[Re.field];return Re.format!==void 0?Re.format(ze,Me):ze}const Fe=computed(()=>({pagination:ae.value,pagesNumber:ce.value,isFirstPage:ie.value,isLastPage:de.value,firstPage:ne,prevPage:ue,nextPage:le,lastPage:fe,inFullscreen:y.value,toggleFullscreen:k}));function we(){const Re=d.top,Me=d["top-left"],ze=d["top-right"],$e=d["top-selection"],je=M.value===!0&&$e!==void 0&&_.value>0,Ze="q-table__top relative-position row items-center";if(Re!==void 0)return h("div",{class:Ze},[Re(Fe.value)]);let Qe;if(je===!0?Qe=$e(Fe.value).slice():(Qe=[],Me!==void 0?Qe.push(h("div",{class:"q-table__control"},[Me(Fe.value)])):u.title&&Qe.push(h("div",{class:"q-table__control"},[h("div",{class:["q-table__title",u.titleClass]},u.title)]))),ze!==void 0&&(Qe.push(h("div",{class:"q-table__separator col"})),Qe.push(h("div",{class:"q-table__control"},[ze(Fe.value)]))),Qe.length!==0)return h("div",{class:Ze},Qe)}const Ae=computed(()=>E.value===!0?null:A.value);function ke(){const Re=Pe();return u.loading===!0&&d.loading===void 0&&Re.push(h("tr",{class:"q-table__progress"},[h("th",{class:"relative-position",colspan:re.value},ge())])),h("thead",Re)}function Pe(){const Re=d.header,Me=d["header-cell"];if(Re!==void 0)return Re(Le({header:!0})).slice();const ze=te.value.map($e=>{const je=d[`header-cell-${$e.name}`],Ze=je!==void 0?je:Me,Qe=Le({col:$e});return Ze!==void 0?Ze(Qe):h(QTh,{key:$e.name,props:Qe},()=>$e.label)});if(F.value===!0&&u.grid!==!0)ze.unshift(h("th",{class:"q-table--col-auto-width"}," "));else if(S.value===!0){const $e=d["header-selection"],je=$e!==void 0?$e(Le({})):[h(QCheckbox,{color:u.color,modelValue:Ae.value,dark:m.value,dense:u.dense,"onUpdate:modelValue":Ne})];ze.unshift(h("th",{class:"q-table--col-auto-width"},je))}return[h("tr",{class:u.tableHeaderClass,style:u.tableHeaderStyle},ze)]}function Le(Re){return Object.assign(Re,{cols:te.value,sort:K,colsMap:W.value,color:u.color,dark:m.value,dense:u.dense}),S.value===!0&&injectProp(Re,"selected",()=>Ae.value,Ne),Re}function Ne(Re){E.value===!0&&(Re=!1),U(B.value.map(a.value),B.value,Re)}const qe=computed(()=>{const Re=[u.iconFirstPage||b.iconSet.table.firstPage,u.iconPrevPage||b.iconSet.table.prevPage,u.iconNextPage||b.iconSet.table.nextPage,u.iconLastPage||b.iconSet.table.lastPage];return b.lang.rtl===!0?Re.reverse():Re});function Oe(){if(u.hideBottom===!0)return;if(pe.value===!0){if(u.hideNoData===!0)return;const ze=u.loading===!0?u.loadingLabel||b.lang.table.loading:u.filter?u.noResultsLabel||b.lang.table.noResults:u.noDataLabel||b.lang.table.noData,$e=d["no-data"],je=$e!==void 0?[$e({message:ze,icon:b.iconSet.table.warning,filter:u.filter})]:[h(QIcon,{class:"q-table__bottom-nodata-icon",name:b.iconSet.table.warning}),ze];return h("div",{class:bottomClass+" q-table__bottom--nodata"},je)}const Re=d.bottom;if(Re!==void 0)return h("div",{class:bottomClass},[Re(Fe.value)]);const Me=u.hideSelectedBanner!==!0&&M.value===!0&&_.value>0?[h("div",{class:"q-table__control"},[h("div",[(u.selectedRowsLabel||b.lang.table.selectedRecords)(_.value)])])]:[];if(u.hidePagination!==!0)return h("div",{class:bottomClass+" justify-end"},Ve(Me));if(Me.length!==0)return h("div",{class:bottomClass},Me)}function Ge(Re){G({page:1,rowsPerPage:Re.value})}function Ve(Re){let Me;const{rowsPerPage:ze}=ae.value,$e=u.paginationLabel||b.lang.table.pagination,je=d.pagination,Ze=u.rowsPerPageOptions.length>1;if(Re.push(h("div",{class:"q-table__separator col"})),Ze===!0&&Re.push(h("div",{class:"q-table__control"},[h("span",{class:"q-table__bottom-item"},[u.rowsPerPageLabel||b.lang.table.recordsPerPage]),h(QSelect,{class:"q-table__select inline q-table__bottom-item",color:u.color,modelValue:ze,options:he.value,displayValue:ze===0?b.lang.table.allRows:ze,dark:m.value,borderless:!0,dense:!0,optionsDense:!0,optionsCover:!0,"onUpdate:modelValue":Ge})])),je!==void 0)Me=je(Fe.value);else if(Me=[h("span",ze!==0?{class:"q-table__bottom-item"}:{},[ze?$e(Z.value+1,Math.min(se.value,oe.value),oe.value):$e(1,P.value,oe.value)])],ze!==0&&ce.value>1){const Qe={color:u.color,round:!0,dense:!0,flat:!0};u.dense===!0&&(Qe.size="sm"),ce.value>2&&Me.push(h(QBtn,{key:"pgFirst",...Qe,icon:qe.value[0],disable:ie.value,onClick:ne})),Me.push(h(QBtn,{key:"pgPrev",...Qe,icon:qe.value[1],disable:ie.value,onClick:ue}),h(QBtn,{key:"pgNext",...Qe,icon:qe.value[2],disable:de.value,onClick:le})),ce.value>2&&Me.push(h(QBtn,{key:"pgLast",...Qe,icon:qe.value[3],disable:de.value,onClick:fe}))}return Re.push(h("div",{class:"q-table__control"},Me)),Re}function Xe(){const Re=u.gridHeader===!0?[h("table",{class:"q-table"},[ke()])]:u.loading===!0&&d.loading===void 0?ge():void 0;return h("div",{class:"q-table__middle"},Re)}function at(){const Re=d.item!==void 0?d.item:Me=>{const ze=Me.cols.map(je=>h("div",{class:"q-table__grid-item-row"},[h("div",{class:"q-table__grid-item-title"},[je.label]),h("div",{class:"q-table__grid-item-value"},[je.value])]));if(M.value===!0){const je=d["body-selection"],Ze=je!==void 0?je(Me):[h(QCheckbox,{modelValue:Me.selected,color:u.color,dark:m.value,dense:u.dense,"onUpdate:modelValue":(Qe,ut)=>{U([Me.key],[Me.row],Qe,ut)}})];ze.unshift(h("div",{class:"q-table__grid-item-row"},Ze),h(QSeparator,{dark:m.value}))}const $e={class:["q-table__grid-item-card"+Q.value,u.cardClass],style:u.cardStyle};return(u.onRowClick!==void 0||u.onRowDblclick!==void 0)&&($e.class[0]+=" cursor-pointer",u.onRowClick!==void 0&&($e.onClick=je=>{g("RowClick",je,Me.row,Me.pageIndex)}),u.onRowDblclick!==void 0&&($e.onDblclick=je=>{g("RowDblclick",je,Me.row,Me.pageIndex)})),h("div",{class:"q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3"+(Me.selected===!0?" q-table__grid-item--selected":"")},[h("div",$e,ze)])};return h("div",{class:["q-table__grid-content row",u.cardContainerClass],style:u.cardContainerStyle},B.value.map((Me,ze)=>Re(Ee({key:a.value(Me),row:Me,pageIndex:ze}))))}return Object.assign(f.proxy,{requestServerInteraction:Y,setPagination:G,firstPage:ne,prevPage:ue,nextPage:le,lastPage:fe,isRowSelected:D,clearSelection:N,isRowExpanded:L,setExpanded:R,sort:K,resetVirtualScroll:xe,scrollTo:be,getCellValue:Te}),injectMultipleProps(f.proxy,{filteredSortedRows:()=>O.value,computedRows:()=>B.value,computedRowsNumber:()=>oe.value}),()=>{const Re=[we()],Me={ref:q,class:v.value};return u.grid===!0?Re.push(Xe()):Object.assign(Me,{class:[Me.class,u.cardClass],style:u.cardStyle}),Re.push(Ce(),Oe()),u.loading===!0&&d.loading!==void 0&&Re.push(d.loading()),h("div",Me,Re)}}});const _sfc_main$f=defineComponent({name:"RightSidebar",data:()=>({columns:[{name:"name",required:!0,label:"Dessert (100g serving)",align:"left",field:u=>u.name,format:u=>`${u}`,sortable:!0},{name:"calories",align:"center",label:"Calories",field:"calories",sortable:!0},{name:"fat",label:"Fat (g)",field:"fat",sortable:!0},{name:"carbs",label:"Carbs (g)",field:"carbs"},{name:"protein",label:"Protein (g)",field:"protein"},{name:"sodium",label:"Sodium (mg)",field:"sodium"},{name:"calcium",label:"Calcium (%)",field:"calcium",sortable:!0,sort:(u,d)=>Number.parseInt(u,10)-Number.parseInt(d,10)},{name:"iron",label:"Iron (%)",field:"iron",sortable:!0,sort:(u,d)=>Number.parseInt(u,10)-Number.parseInt(d,10)}],rows:[{name:"Frozen Yogurt",calories:159,fat:6,carbs:24,protein:4,sodium:87,calcium:"14%",iron:"1%"},{name:"Ice cream sandwich",calories:237,fat:9,carbs:37,protein:4.3,sodium:129,calcium:"8%",iron:"1%"},{name:"Eclair",calories:262,fat:16,carbs:23,protein:6,sodium:337,calcium:"6%",iron:"7%"},{name:"Cupcake",calories:305,fat:3.7,carbs:67,protein:4.3,sodium:413,calcium:"3%",iron:"8%"},{name:"Gingerbread",calories:356,fat:16,carbs:49,protein:3.9,sodium:327,calcium:"7%",iron:"16%"},{name:"Jelly bean",calories:375,fat:0,carbs:94,protein:0,sodium:50,calcium:"0%",iron:"0%"},{name:"Lollipop",calories:392,fat:.2,carbs:98,protein:0,sodium:38,calcium:"0%",iron:"2%"},{name:"Honeycomb",calories:408,fat:3.2,carbs:87,protein:6.5,sodium:562,calcium:"0%",iron:"45%"},{name:"Donut",calories:452,fat:25,carbs:51,protein:4.9,sodium:326,calcium:"2%",iron:"22%"},{name:"KitKat",calories:518,fat:26,carbs:65,protein:7,sodium:54,calcium:"12%",iron:"6%"}]}),methods:{openFileDetails:u=>{}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedApp:function(){return this.$route.name.split("-")[0]}},mounted(){this.$bus.on("openFileDetails",this.openFileDetails)},beforeUnmount(){this.$bus.off("openFileDetails")},setup(){return{mainStore:useMainStore()}}}),_hoisted_1$8={class:"fit"};function _sfc_render$e(u,d,g,f,b,m){return openBlock(),createElementBlock("div",_hoisted_1$8,[createVNode(QTable,{class:"fit",title:"Treats",rows:u.rows,columns:u.columns,"row-key":"name","hide-pagination":!0,"rows-per-page-options":[0],flat:!0},{default:withCtx(()=>[renderSlot(u.$slots,"top-right",{},()=>[createVNode(QBtn,{dense:"",flat:"",round:"",icon:"menu"})])]),_:3},8,["rows","columns"])])}var RightSidebar=_export_sfc(_sfc_main$f,[["render",_sfc_render$e]]),QAvatar=createComponent({name:"QAvatar",props:{...useSizeProps,fontSize:String,color:String,textColor:String,icon:String,square:Boolean,rounded:Boolean},setup(u,{slots:d}){const g=useSize(u),f=computed(()=>"q-avatar"+(u.color?` bg-${u.color}`:"")+(u.textColor?` text-${u.textColor} q-chip--colored`:"")+(u.square===!0?" q-avatar--square":u.rounded===!0?" rounded-borders":"")),b=computed(()=>u.fontSize?{fontSize:u.fontSize}:null);return()=>{const m=u.icon!==void 0?[h(QIcon,{name:u.icon})]:void 0;return h("div",{class:f.value,style:g.value},[h("div",{class:"q-avatar__content row flex-center overflow-hidden",style:b.value},hMergeSlotSafely(d.default,m))])}}}),QToolbarTitle=createComponent({name:"QToolbarTitle",props:{shrink:Boolean},setup(u,{slots:d}){const g=computed(()=>"q-toolbar__title ellipsis"+(u.shrink===!0?" col-shrink":""));return()=>h("div",{class:g.value},hSlot(d.default))}}),QSpace=createComponent({name:"QSpace",setup(){const u=h("div",{class:"q-space"});return()=>u}});const _sfc_main$e=defineComponent({name:"BucketPicker",methods:{changeBucket:function(u){this.$router.push({name:`${this.selectedApp}-home`,params:{bucket:u}})}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedApp:function(){return this.$route.name.split("-")[0]}},setup(){return{mainStore:useMainStore()}}});function _sfc_render$d(u,d,g,f,b,m){return openBlock(),createBlock(QSelect,{"model-value":u.selectedBucket,"onUpdate:modelValue":u.changeBucket,color:"blue","stack-label":"",dense:!0,filled:"","bg-color":"white",options:u.mainStore.buckets.map(y=>y.name),label:"Bucket",style:{"min-width":"100px"}},null,8,["model-value","onUpdate:modelValue","options"])}var BucketPicker=_export_sfc(_sfc_main$e,[["render",_sfc_render$d]]);const _sfc_main$d=defineComponent({name:"TopBar",emits:["toggle"],components:{BucketPicker}});function _sfc_render$c(u,d,g,f,b,m){const y=resolveComponent("bucket-picker");return openBlock(),createElementBlock(Fragment,null,[createVNode(QBtn,{dense:"",flat:"",round:"",icon:"menu",onClick:d[0]||(d[0]=k=>u.$emit("toggle"))}),createVNode(QToolbarTitle,{style:{overflow:"unset"},class:"text-bold"},{default:withCtx(()=>[createVNode(QAvatar,null,{default:withCtx(()=>d[1]||(d[1]=[createBaseVNode("img",{src:"/logo-white.svg"},null,-1)])),_:1}),d[2]||(d[2]=createTextVNode(" R2-Explorer "))]),_:1}),createVNode(QSpace),createBaseVNode("div",null,[createVNode(y)])],64)}var TopBar=_export_sfc(_sfc_main$d,[["render",_sfc_render$c]]);const _sfc_main$c={name:"MainLayout",components:{TopBar,RightSidebar,LeftSidebar},setup(){const u=ref(!1),d=ref(!1);return{leftDrawerOpen:u,toggleLeftDrawer(){u.value=!u.value},rightDrawerOpen:d,updateRightDrawer(g){d.value=g}}},mounted(){this.updateRightDrawer(!1)}};function _sfc_render$b(u,d,g,f,b,m){const y=resolveComponent("top-bar"),k=resolveComponent("left-sidebar"),a=resolveComponent("router-view");return openBlock(),createBlock(QLayout,{view:"hHh LpR lFr"},{default:withCtx(()=>[createVNode(QHeader,{reveal:"",class:"bg-green text-white"},{default:withCtx(()=>[createVNode(QToolbar,null,{default:withCtx(()=>[createVNode(y,{onToggle:f.toggleLeftDrawer},null,8,["onToggle"])]),_:1})]),_:1}),createVNode(QDrawer,{width:100,"show-if-above":"",modelValue:f.leftDrawerOpen,"onUpdate:modelValue":d[0]||(d[0]=q=>f.leftDrawerOpen=q),side:"left",bordered:""},{default:withCtx(()=>[createVNode(k)]),_:1},8,["modelValue"]),createVNode(QPageContainer,null,{default:withCtx(()=>[createVNode(a)]),_:1})]),_:1})}var MainLayout=_export_sfc(_sfc_main$c,[["render",_sfc_render$b]]),QInnerLoading=createComponent({name:"QInnerLoading",props:{...useDarkProps,...useTransitionProps,showing:Boolean,color:String,size:{type:[String,Number],default:"42px"},label:String,labelClass:String,labelStyle:[String,Array,Object]},setup(u,{slots:d}){const g=getCurrentInstance(),f=useDark(u,g.proxy.$q),{transitionProps:b,transitionStyle:m}=useTransition(u),y=computed(()=>"q-inner-loading q--avoid-card-border absolute-full column flex-center"+(f.value===!0?" q-inner-loading--dark":"")),k=computed(()=>"q-inner-loading__label"+(u.labelClass!==void 0?` ${u.labelClass}`:""));function a(){const w=[h(QSpinner,{size:u.size,color:u.color})];return u.label!==void 0&&w.push(h("div",{class:k.value,style:u.labelStyle},[u.label])),w}function q(){return u.showing===!0?h("div",{class:y.value,style:m.value},d.default!==void 0?d.default():a()):null}return()=>h(Transition,b.value,q)}}),QPage=createComponent({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(u,{slots:d}){const{proxy:{$q:g}}=getCurrentInstance(),f=inject(layoutKey,emptyRenderFn);if(f===emptyRenderFn)return console.error("QPage needs to be a deep child of QLayout"),emptyRenderFn;if(inject(pageContainerKey,emptyRenderFn)===emptyRenderFn)return console.error("QPage needs to be child of QPageContainer"),emptyRenderFn;const m=computed(()=>{const k=(f.header.space===!0?f.header.size:0)+(f.footer.space===!0?f.footer.size:0);if(typeof u.styleFn=="function"){const a=f.isContainer.value===!0?f.containerHeight.value:g.screen.height;return u.styleFn(k,a)}return{minHeight:f.isContainer.value===!0?f.containerHeight.value-k+"px":g.screen.height===0?k!==0?`calc(100vh - ${k}px)`:"100vh":g.screen.height-k+"px"}}),y=computed(()=>`q-page${u.padding===!0?" q-layout-padding":""}`);return()=>h("main",{class:y.value,style:m.value},hSlot(d.default))}});const _sfc_main$b=defineComponent({name:"HomePage",setup(){return{mainStore:useMainStore()}}});function _sfc_render$a(u,d,g,f,b,m){return openBlock(),createBlock(QPage,{class:"flex flex-center"},{default:withCtx(()=>[createVNode(QInnerLoading,{showing:!0,label:"Loading..."})]),_:1})}var HomePage=_export_sfc(_sfc_main$b,[["render",_sfc_render$a]]),QTd=createComponent({name:"QTd",props:{props:Object,autoWidth:Boolean,noHover:Boolean},setup(u,{slots:d}){const g=getCurrentInstance(),f=computed(()=>"q-td"+(u.autoWidth===!0?" q-table--col-auto-width":"")+(u.noHover===!0?" q-td--no-hover":"")+" ");return()=>{if(u.props===void 0)return h("td",{class:f.value},hSlot(d.default));const b=g.vnode.key,m=(u.props.colsMap!==void 0?u.props.colsMap[b]:null)||u.props.col;if(m===void 0)return;const{row:y}=u.props;return h("td",{class:f.value+m.__tdClass(y),style:m.__tdStyle(y)},hSlot(d.default))}}});const innerHTML='<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity=".3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from=".5" to=".5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>';var QSpinnerDots=createComponent({name:"QSpinnerDots",props:useSpinnerProps,setup(u){const{cSize:d,classes:g}=useSpinner(u);return()=>h("svg",{class:g.value,fill:"currentColor",width:d.value,height:d.value,viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",innerHTML})}});const{passive}=listenOpts;var QInfiniteScroll=createComponent({name:"QInfiniteScroll",props:{offset:{type:Number,default:500},debounce:{type:[String,Number],default:100},scrollTarget:scrollTargetProp,initialIndex:{type:Number,default:0},disable:Boolean,reverse:Boolean},emits:["load"],setup(u,{slots:d,emit:g}){const f=ref(!1),b=ref(!0),m=ref(null),y=ref(null);let k=u.initialIndex,a,q;const w=computed(()=>"q-infinite-scroll__loading"+(f.value===!0?"":" invisible"));function $(){if(u.disable===!0||f.value===!0||b.value===!1)return;const T=getScrollHeight(a),O=getVerticalScrollPosition(a),P=height(a);u.reverse===!1?Math.round(O+P+u.offset)>=Math.round(T)&&Q():Math.round(O)<=u.offset&&Q()}function Q(){if(u.disable===!0||f.value===!0||b.value===!1)return;k++,f.value=!0;const T=getScrollHeight(a);g("load",k,O=>{b.value===!0&&(f.value=!1,nextTick(()=>{if(u.reverse===!0){const P=getScrollHeight(a),B=getVerticalScrollPosition(a),M=P-T;setVerticalScrollPosition(a,B+M)}O===!0?J():m.value&&m.value.closest("body")&&q()}))})}function C(){k=0}function v(){b.value===!1&&(b.value=!0,a.addEventListener("scroll",q,passive)),$()}function J(){b.value===!0&&(b.value=!1,f.value=!1,a.removeEventListener("scroll",q,passive),q!==void 0&&q.cancel!==void 0&&q.cancel())}function ae(){if(a&&b.value===!0&&a.removeEventListener("scroll",q,passive),a=getScrollTarget(m.value,u.scrollTarget),b.value===!0){if(a.addEventListener("scroll",q,passive),u.reverse===!0){const T=getScrollHeight(a),O=height(a);setVerticalScrollPosition(a,T-O)}$()}}function H(T){k=T}function Y(T){T=parseInt(T,10);const O=q;q=T<=0?$:debounce($,isNaN(T)===!0?100:T),a&&b.value===!0&&(O!==void 0&&a.removeEventListener("scroll",O,passive),a.addEventListener("scroll",q,passive))}function G(T){if(j.value===!0){if(y.value===null){T!==!0&&nextTick(()=>{G(!0)});return}const O=`${f.value===!0?"un":""}pauseAnimations`;Array.from(y.value.getElementsByTagName("svg")).forEach(P=>{P[O]()})}}const j=computed(()=>u.disable!==!0&&b.value===!0);watch([f,j],()=>{G()}),watch(()=>u.disable,T=>{T===!0?J():v()}),watch(()=>u.reverse,()=>{f.value===!1&&b.value===!0&&$()}),watch(()=>u.scrollTarget,ae),watch(()=>u.debounce,Y);let L=!1;onActivated(()=>{L!==!1&&a&&setVerticalScrollPosition(a,L)}),onDeactivated(()=>{L=a?getVerticalScrollPosition(a):!1}),onBeforeUnmount(()=>{b.value===!0&&a.removeEventListener("scroll",q,passive)}),onMounted(()=>{Y(u.debounce),ae(),f.value===!1&&G()});const R=getCurrentInstance();return Object.assign(R.proxy,{poll:()=>{q!==void 0&&q()},trigger:Q,stop:J,reset:C,resume:v,setIndex:H,updateScrollTarget:ae}),()=>{const T=hUniqueSlot(d.default,[]);return j.value===!0&&T[u.reverse===!1?"push":"unshift"](h("div",{ref:y,class:w.value},hSlot(d.loading))),h("div",{class:"q-infinite-scroll",ref:m},T)}}}),EmailFolderPage_vue_vue_type_style_index_0_lang="";const _sfc_main$a=defineComponent({name:"EmailFolderPage",data:()=>({timeInterval:null,indexCursors:null,loading:!1,loadMoreAutomatically:!0,hasMorePages:!0,rows:[],columns:[{name:"sender",required:!0,field:"sender",align:"left",sortable:!1},{name:"subject",required:!0,field:"subject",align:"left",sortable:!1},{name:"lastModified",required:!0,align:"left",field:"lastModified",sortable:!1},{name:"has_attachments",required:!0,align:"left",field:"has_attachments",sortable:!1}]}),computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:()=>"inbox"},watch:{selectedBucket(u){this.fetchFiles()}},methods:{rowClass:u=>u.row.customMetadata.read==="true"?"email-read":"email-unread",rowClick:function(u,d,g){const f=d.key.replace(/^.*[\\/]/,"");this.$router.push({name:"email-file",params:{bucket:this.selectedBucket,folder:this.selectedFolder,file:encode(f)}})},createOrUpdateIndex:async function(u){let d=!0,g=null,f=0,b={version:1,cursors:[]};if(u&&(b=u,u.cursors.length>0)){const m=u.cursors.pop();f=m.page,g=m.cursor}for(;d;){console.log(`Updating index page ${f}`);const m=await api.get(`/buckets/${this.selectedBucket}?include=customMetadata&include=httpMetadata`,{params:{delimiter:"/",prefix:encode(`.r2-explorer/emails/${this.selectedFolder}/`),cursor:g}});b.cursors.push({page:f,cursor:g,items:m.data.objects.length}),g=m.data.cursor,d=m.data.truncated,f++}return b},getOrCreateIndex:async function(){const u=`.r2-explorer/emails/index-${this.selectedFolder}.json`,d=await apiHandler.downloadFile(this.selectedBucket,u,{}).then(b=>b.data).catch(b=>null),g=await this.createOrUpdateIndex(d),f=new Blob([JSON.stringify(g)],{type:"application/json"});try{await apiHandler.uploadObjects(f,u,this.selectedBucket)}catch{}return g},loadNextPage:async function(u,d){const g=this.indexCursors[u];g?await this.loadIndexPage(g):(this.loadMoreAutomatically=!0,this.hasMorePages=!1),d()},fetchFiles:async function(){this.loading=!0,this.rows=[];const u=await this.getOrCreateIndex();this.indexCursors=u.cursors.reverse(),await this.loadNextPage(0,()=>{}),await this.$refs.infScroll.setIndex(0),await this.$refs.infScroll.poll(),this.loadMoreAutomatically=!1,this.loading=!1},loadIndexPage:async function(u){const d=await apiHandler.listObjects(this.selectedBucket,`.r2-explorer/emails/${this.selectedFolder}/`,"/",u.cursor);if(d.data.objects){const g=d.data.objects.filter(f=>!f.key.endsWith("/")).map(f=>{const b=new Date(Number.parseInt(f.customMetadata.timestamp));return{...f,sender:f.customMetadata.from_name||f.customMetadata.from_address,subject:f.customMetadata.subject,has_attachments:f.customMetadata.has_attachments==="true",read:f.customMetadata.read,lastModified:timeSince(b),timestamp:Number.parseInt(f.customMetadata.timestamp)}});for(const f of g.reverse())this.rows.push(f)}}},unmounted(){clearInterval(this.timeInterval),this.timeInterval=null},mounted(){this.timeInterval=setInterval(()=>{this.fetchFiles()},3e5)},created(){this.fetchFiles()},setup(){return{mainStore:useMainStore()}}}),_hoisted_1$7={class:""},_hoisted_2$4={class:"full-width q-my-lg"},_hoisted_3$4={class:"flex items-center justify-center"},_hoisted_4$4={class:"q-mb-md"},_hoisted_5$4={class:"text-left"},_hoisted_6$4={class:"flex column"},_hoisted_7$4={class:"flex"},_hoisted_8$3={class:"mobile-title"},_hoisted_9$2={class:"mobile-last-modified mobile-subject"},_hoisted_10$2={class:"email-subject mobile-subject"},_hoisted_11$2={key:0,class:"full-width q-my-lg"},_hoisted_12$2={class:"flex items-center justify-center"},_hoisted_13$2={key:0,class:"row justify-center q-my-md"},_hoisted_14$2={class:"row justify-center q-my-md"};function _sfc_render$9(u,d,g,f,b,m){return openBlock(),createBlock(QPage,{class:""},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$7,[createVNode(QInfiniteScroll,{ref:"infScroll",disable:u.loadMoreAutomatically,onLoad:u.loadNextPage,offset:250,debounce:100},{loading:withCtx(()=>[createBaseVNode("div",_hoisted_14$2,[createVNode(QSpinnerDots,{color:"primary",size:"40px"})])]),default:withCtx(()=>[createVNode(QTable,{ref:"table",rows:u.rows,columns:u.columns,"row-key":"name",loading:u.loading,"hide-pagination":!0,"rows-per-page-options":[0],flat:!0,"table-class":"email-list",onRowClick:u.rowClick},{loading:withCtx(()=>[createBaseVNode("div",_hoisted_2$4,[createBaseVNode("h6",_hoisted_3$4,[createVNode(QSpinner,{color:"primary",size:"xl"})])])]),"body-cell":withCtx(y=>[createVNode(QTd,{props:y,class:normalizeClass(u.rowClass(y))},{default:withCtx(()=>[createTextVNode(toDisplayString(y.value),1)]),_:2},1032,["props","class"])]),header:withCtx(()=>[createBaseVNode("tr",_hoisted_4$4,[createBaseVNode("th",_hoisted_5$4,[createVNode(QBtn,{color:"green",icon:"refresh",loading:u.loading,onClick:u.fetchFiles},{loading:withCtx(()=>[createVNode(QSpinner,{color:"white"})]),_:1},8,["loading","onClick"])])])]),"body-cell-sender":withCtx(y=>[createVNode(QTd,{props:y,class:normalizeClass(["email-sender",u.rowClass(y)])},{default:withCtx(()=>[createBaseVNode("div",_hoisted_6$4,[createBaseVNode("div",_hoisted_7$4,[createBaseVNode("div",_hoisted_8$3,toDisplayString(y.value),1),createBaseVNode("div",_hoisted_9$2,[createTextVNode(toDisplayString(y.row.lastModified)+" ",1),y.row.has_attachments?(openBlock(),createBlock(QIcon,{key:0,name:"attachment",size:"sm",color:"black"})):createCommentVNode("",!0)])]),createBaseVNode("div",_hoisted_10$2,toDisplayString(y.row.subject),1)])]),_:2},1032,["props","class"])]),"body-cell-subject":withCtx(y=>[createVNode(QTd,{props:y,class:normalizeClass(["email-subject",u.rowClass(y)])},{default:withCtx(()=>[createTextVNode(toDisplayString(y.value),1)]),_:2},1032,["props","class"])]),"no-data":withCtx(()=>[u.loading?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_11$2,[createBaseVNode("h6",_hoisted_12$2,[createVNode(QIcon,{name:"alternate_email",color:"orange",size:"lg"}),d[0]||(d[0]=createTextVNode(" This bucket doesn't have Emails "))])]))]),"body-cell-has_attachments":withCtx(y=>[createVNode(QTd,{props:y,class:normalizeClass(u.rowClass(y))},{default:withCtx(()=>[y.row.has_attachments?(openBlock(),createBlock(QIcon,{key:0,name:"attachment",size:"sm",color:"black"})):(openBlock(),createBlock(QIcon,{key:1,size:"sm",color:"white"}))]),_:2},1032,["props","class"])]),_:1},8,["rows","columns","loading","onRowClick"]),u.hasMorePages?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_13$2,d[1]||(d[1]=[createBaseVNode("span",null,"No more emails to load",-1)])))]),_:1},8,["disable","onLoad"])])]),_:1})}var EmailFolderPage=_export_sfc(_sfc_main$a,[["render",_sfc_render$9]]),QBreadcrumbsEl=createComponent({name:"QBreadcrumbsEl",props:{...useRouterLinkProps,label:String,icon:String,tag:{type:String,default:"span"}},emits:["click"],setup(u,{slots:d}){const{linkTag:g,linkAttrs:f,linkClass:b,navigateOnClick:m}=useRouterLink(),y=computed(()=>({class:"q-breadcrumbs__el q-link flex inline items-center relative-position "+(u.disable!==!0?"q-link--focusable"+b.value:"q-breadcrumbs__el--disable"),...f.value,onClick:m})),k=computed(()=>"q-breadcrumbs__el-icon"+(u.label!==void 0?" q-breadcrumbs__el-icon--with-label":""));return()=>{const a=[];return u.icon!==void 0&&a.push(h(QIcon,{class:k.value,name:u.icon})),u.label!==void 0&&a.push(u.label),h(g.value,{...y.value},hMergeSlot(d.default,a))}}});const disabledValues=["",!0];var QBreadcrumbs=createComponent({name:"QBreadcrumbs",props:{...useAlignProps,separator:{type:String,default:"/"},separatorColor:String,activeColor:{type:String,default:"primary"},gutter:{type:String,validator:u=>["none","xs","sm","md","lg","xl"].includes(u),default:"sm"}},setup(u,{slots:d}){const g=useAlign(u),f=computed(()=>`flex items-center ${g.value}${u.gutter==="none"?"":` q-gutter-${u.gutter}`}`),b=computed(()=>u.separatorColor?` text-${u.separatorColor}`:""),m=computed(()=>` text-${u.activeColor}`);return()=>{if(d.default===void 0)return;const y=getNormalizedVNodes(hSlot(d.default));if(y.length===0)return;let k=1;const a=[],q=y.filter($=>$.type!==void 0&&$.type.name==="QBreadcrumbsEl").length,w=d.separator!==void 0?d.separator:()=>u.separator;return y.forEach($=>{if($.type!==void 0&&$.type.name==="QBreadcrumbsEl"){const Q=k<q,C=$.props!==null&&disabledValues.includes($.props.disable),v=(Q===!0?"":" q-breadcrumbs--last")+(C!==!0&&Q===!0?m.value:"");k++,a.push(h("div",{class:`flex items-center${v}`},[$])),Q===!0&&a.push(h("div",{class:"q-breadcrumbs__separator"+b.value},w()))}else a.push($)}),h("div",{class:"q-breadcrumbs"},[h("div",{class:f.value},a)])}}});function useQuasar(){return inject(quasarKey)}var FileOptions_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$9=defineComponent({name:"FileOptions",data:()=>({row:null,deleteFolderContents:[],deleteModal:!1,renameModal:!1,updateMetadataModal:!1,deleteFolderInnerFilesCount:null,newFolderName:"",renameInput:"",updateCustomMetadata:[],updateHttpMetadata:[],loading:!1}),methods:{deleteObject:async function(u){this.deleteModal=!0,this.row=u,u.type==="folder"&&(this.deleteFolderContents=await apiHandler.fetchFile(this.selectedBucket,u.key,""),this.deleteFolderInnerFilesCount=this.deleteFolderContents.length)},renameObject:async function(u){this.renameModal=!0,this.row=u,this.renameInput=u.name},updateMetadataObject:async function(u){this.updateMetadataModal=!0,this.row=u,u.httpMetadata&&(this.updateHttpMetadata=Object.entries(u.httpMetadata).map(([d,g])=>({key:d,value:g}))),u.customMetadata&&(this.updateCustomMetadata=Object.entries(u.customMetadata).map(([d,g])=>({key:d,value:g})))},renameConfirm:async function(){this.renameInput.length!==0&&(this.loading=!0,await apiHandler.renameObject(this.selectedBucket,this.row.key,this.row.key.replace(this.row.name,this.renameInput)),this.$bus.emit("fetchFiles"),this.reset(),this.q.notify({group:!1,icon:"done",spinner:!1,message:"File renamed!",timeout:2500}))},updateConfirm:async function(){this.loading=!0,await apiHandler.updateMetadata(this.selectedBucket,this.row.key,this.updateCustomMetadata.reduce((u,d)=>({...u,[d.key]:d.value}),{}),this.updateHttpMetadata.reduce((u,d)=>({...u,[d.key]:d.value}),{})),this.$bus.emit("fetchFiles"),this.reset(),this.q.notify({group:!1,icon:"done",spinner:!1,message:"File Updated!",timeout:2500})},deleteConfirm:async function(){if(this.row.type==="folder"){const u={...this.row},d=[...this.deleteFolderContents],g=this.deleteFolderInnerFilesCount;this.deleteModal=!1;const f=this.q.notify({group:!1,spinner:!0,message:"Deleting files...",caption:"0%",timeout:0});for(const[b,m]of d.entries())m.key&&await apiHandler.deleteObject(m.key,this.selectedBucket),f({caption:`${Number.parseInt(b*100/(g+1))}%`});await apiHandler.deleteObject(u.key,this.selectedBucket),f({icon:"done",spinner:!1,caption:"100%",message:"Folder deleted!",timeout:2500})}else this.deleteModal=!1,await apiHandler.deleteObject(this.row.key,this.selectedBucket),this.q.notify({group:!1,icon:"done",spinner:!1,message:"File deleted!",timeout:2500});this.$bus.emit("fetchFiles"),this.reset()},reset:function(){this.loading=!1,this.deleteModal=!1,this.renameModal=!1,this.updateMetadataModal=!1,this.renameInput="",this.updateCustomMetadata=[],this.updateHttpMetadata=[],this.row=null,this.deleteFolderInnerFilesCount=null,this.deleteFolderContents=[]},onSubmit:async function(){await apiHandler.createFolder(`${this.selectedFolder+this.newFolderName}/`,this.selectedBucket),this.$bus.emit("fetchFiles"),this.modal=!1},open:function(){this.modal=!0}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},setup(){return{mainStore:useMainStore(),q:useQuasar()}}}),_hoisted_1$6={key:0,class:"q-ml-sm"},_hoisted_2$3={key:0},_hoisted_3$3={key:1},_hoisted_4$3={key:1,class:"q-ml-sm"},_hoisted_5$3={class:"q-mt-none q-mb-sm flex"},_hoisted_6$3={class:"flex"},_hoisted_7$3={class:"q-mt-xl q-mb-sm flex"},_hoisted_8$2={class:"flex"};function _sfc_render$8(u,d,g,f,b,m){return openBlock(),createElementBlock(Fragment,null,[createVNode(QDialog,{modelValue:u.deleteModal,"onUpdate:modelValue":d[0]||(d[0]=y=>u.deleteModal=y),onHide:u.reset},{default:withCtx(()=>[createVNode(QCard,null,{default:withCtx(()=>[u.row?(openBlock(),createBlock(QCardSection,{key:0,class:"row column"},{default:withCtx(()=>[createVNode(QAvatar,{class:"q-mb-md",icon:"delete",color:"red","text-color":"white"}),u.row.type==="folder"?(openBlock(),createElementBlock("span",_hoisted_1$6,[d[6]||(d[6]=createTextVNode("Are you sure you want to delete the folder ")),createBaseVNode("code",null,toDisplayString(u.row.name),1),d[7]||(d[7]=createTextVNode(", and ")),u.deleteFolderInnerFilesCount!==null?(openBlock(),createElementBlock("code",_hoisted_2$3,toDisplayString(u.deleteFolderInnerFilesCount),1)):(openBlock(),createElementBlock("code",_hoisted_3$3,[createVNode(QSpinner,{color:"primary"})])),d[8]||(d[8]=createTextVNode(" files inside?"))])):(openBlock(),createElementBlock("span",_hoisted_4$3,[d[9]||(d[9]=createTextVNode("Are you sure you want to delete the file ")),createBaseVNode("code",null,toDisplayString(u.row.name),1),d[10]||(d[10]=createTextVNode("?"))]))]),_:1})):createCommentVNode("",!0),createVNode(QCardActions,{align:"right"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel",color:"primary"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Delete",color:"red",loading:u.loading,onClick:u.deleteConfirm},null,8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onHide"]),createVNode(QDialog,{modelValue:u.renameModal,"onUpdate:modelValue":d[2]||(d[2]=y=>u.renameModal=y),onHide:u.reset},{default:withCtx(()=>[createVNode(QCard,{style:{"min-width":"300px"}},{default:withCtx(()=>[u.row?(openBlock(),createBlock(QCardSection,{key:0,class:"row column"},{default:withCtx(()=>[createVNode(QAvatar,{class:"q-mb-md",icon:"edit",color:"orange","text-color":"white"}),createVNode(QInput,{modelValue:u.renameInput,"onUpdate:modelValue":d[1]||(d[1]=y=>u.renameInput=y),label:"Standard"},null,8,["modelValue"])]),_:1})):createCommentVNode("",!0),createVNode(QCardActions,{align:"right"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel",color:"primary"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Rename",color:"orange",loading:u.loading,onClick:u.renameConfirm},null,8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onHide"]),createVNode(QDialog,{modelValue:u.updateMetadataModal,"onUpdate:modelValue":d[5]||(d[5]=y=>u.updateMetadataModal=y),onHide:u.reset},{default:withCtx(()=>[createVNode(QCard,{style:{"min-width":"300px"}},{default:withCtx(()=>[u.row?(openBlock(),createBlock(QCardSection,{key:0,class:"row column"},{default:withCtx(()=>[createBaseVNode("h6",_hoisted_5$3,[d[11]||(d[11]=createTextVNode("HTTP Metadata ")),createVNode(QBtn,{class:"q-mr-none q-ml-auto",round:"",size:"sm",color:"primary",icon:"add",onClick:d[3]||(d[3]=y=>u.updateHttpMetadata.push({key:"",value:""}))})]),(openBlock(!0),createElementBlock(Fragment,null,renderList(u.updateHttpMetadata,(y,k)=>(openBlock(),createElementBlock("div",{class:"flex row",key:k},[createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateHttpMetadata[k].key,"onUpdate:modelValue":a=>u.updateHttpMetadata[k].key=a,label:"Key"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateHttpMetadata[k].value,"onUpdate:modelValue":a=>u.updateHttpMetadata[k].value=a,label:"Value"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",_hoisted_6$3,[createVNode(QBtn,{class:"q-my-auto",round:"",size:"sm",color:"orange",icon:"remove",onClick:a=>u.updateHttpMetadata.splice(k,1)},null,8,["onClick"])])]))),128)),createBaseVNode("h6",_hoisted_7$3,[d[12]||(d[12]=createTextVNode("Custom Metadata ")),createVNode(QBtn,{class:"q-mr-none q-ml-auto",round:"",size:"sm",color:"primary",icon:"add",onClick:d[4]||(d[4]=y=>u.updateCustomMetadata.push({key:"",value:""}))})]),(openBlock(!0),createElementBlock(Fragment,null,renderList(u.updateCustomMetadata,(y,k)=>(openBlock(),createElementBlock("div",{class:"flex row",key:k},[createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateCustomMetadata[k].key,"onUpdate:modelValue":a=>u.updateCustomMetadata[k].key=a,label:"Key"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateCustomMetadata[k].value,"onUpdate:modelValue":a=>u.updateCustomMetadata[k].value=a,label:"Value"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",_hoisted_8$2,[createVNode(QBtn,{class:"q-my-auto",round:"",size:"sm",color:"orange",icon:"remove",onClick:a=>u.updateCustomMetadata.splice(k,1)},null,8,["onClick"])])]))),128))]),_:1})):createCommentVNode("",!0),createVNode(QCardActions,{align:"right"},{default:withCtx(()=>[withDirectives(createVNode(QBtn,{flat:"",label:"Cancel",color:"primary"},null,512),[[ClosePopup]]),createVNode(QBtn,{flat:"",label:"Update Metadata",color:"orange",loading:u.loading,onClick:u.updateConfirm},null,8,["loading","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue","onHide"])],64)}var FileOptions=_export_sfc(_sfc_main$9,[["render",_sfc_render$8],["__scopeId","data-v-227ab214"]]),ElementType;(function(u){u.Root="root",u.Text="text",u.Directive="directive",u.Comment="comment",u.Script="script",u.Style="style",u.Tag="tag",u.CDATA="cdata",u.Doctype="doctype"})(ElementType||(ElementType={}));function isTag$1(u){return u.type===ElementType.Tag||u.type===ElementType.Script||u.type===ElementType.Style}const Root=ElementType.Root,Text$1=ElementType.Text,Directive=ElementType.Directive,Comment$1=ElementType.Comment,Script=ElementType.Script,Style=ElementType.Style,Tag=ElementType.Tag,CDATA$1=ElementType.CDATA,Doctype=ElementType.Doctype;class Node$1{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(d){this.parent=d}get previousSibling(){return this.prev}set previousSibling(d){this.prev=d}get nextSibling(){return this.next}set nextSibling(d){this.next=d}cloneNode(d=!1){return cloneNode(this,d)}}class DataNode extends Node$1{constructor(d){super(),this.data=d}get nodeValue(){return this.data}set nodeValue(d){this.data=d}}class Text extends DataNode{constructor(){super(...arguments),this.type=ElementType.Text}get nodeType(){return 3}}class Comment extends DataNode{constructor(){super(...arguments),this.type=ElementType.Comment}get nodeType(){return 8}}class ProcessingInstruction extends DataNode{constructor(d,g){super(g),this.name=d,this.type=ElementType.Directive}get nodeType(){return 1}}class NodeWithChildren extends Node$1{constructor(d){super(),this.children=d}get firstChild(){var d;return(d=this.children[0])!==null&&d!==void 0?d:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(d){this.children=d}}class CDATA extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.CDATA}get nodeType(){return 4}}class Document extends NodeWithChildren{constructor(){super(...arguments),this.type=ElementType.Root}get nodeType(){return 9}}class Element$1 extends NodeWithChildren{constructor(d,g,f=[],b=d==="script"?ElementType.Script:d==="style"?ElementType.Style:ElementType.Tag){super(f),this.name=d,this.attribs=g,this.type=b}get nodeType(){return 1}get tagName(){return this.name}set tagName(d){this.name=d}get attributes(){return Object.keys(this.attribs).map(d=>{var g,f;return{name:d,value:this.attribs[d],namespace:(g=this["x-attribsNamespace"])===null||g===void 0?void 0:g[d],prefix:(f=this["x-attribsPrefix"])===null||f===void 0?void 0:f[d]}})}}function isTag(u){return isTag$1(u)}function isCDATA(u){return u.type===ElementType.CDATA}function isText(u){return u.type===ElementType.Text}function isComment(u){return u.type===ElementType.Comment}function isDirective(u){return u.type===ElementType.Directive}function isDocument(u){return u.type===ElementType.Root}function cloneNode(u,d=!1){let g;if(isText(u))g=new Text(u.data);else if(isComment(u))g=new Comment(u.data);else if(isTag(u)){const f=d?cloneChildren(u.children):[],b=new Element$1(u.name,{...u.attribs},f);f.forEach(m=>m.parent=b),u.namespace!=null&&(b.namespace=u.namespace),u["x-attribsNamespace"]&&(b["x-attribsNamespace"]={...u["x-attribsNamespace"]}),u["x-attribsPrefix"]&&(b["x-attribsPrefix"]={...u["x-attribsPrefix"]}),g=b}else if(isCDATA(u)){const f=d?cloneChildren(u.children):[],b=new CDATA(f);f.forEach(m=>m.parent=b),g=b}else if(isDocument(u)){const f=d?cloneChildren(u.children):[],b=new Document(f);f.forEach(m=>m.parent=b),u["x-mode"]&&(b["x-mode"]=u["x-mode"]),g=b}else if(isDirective(u)){const f=new ProcessingInstruction(u.name,u.data);u["x-name"]!=null&&(f["x-name"]=u["x-name"],f["x-publicId"]=u["x-publicId"],f["x-systemId"]=u["x-systemId"]),g=f}else throw new Error(`Not implemented yet: ${u.type}`);return g.startIndex=u.startIndex,g.endIndex=u.endIndex,u.sourceCodeLocation!=null&&(g.sourceCodeLocation=u.sourceCodeLocation),g}function cloneChildren(u){const d=u.map(g=>cloneNode(g,!0));for(let g=1;g<d.length;g++)d[g].prev=d[g-1],d[g-1].next=d[g];return d}const defaultOpts={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class DomHandler{constructor(d,g,f){this.dom=[],this.root=new Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof g=="function"&&(f=g,g=defaultOpts),typeof d=="object"&&(g=d,d=void 0),this.callback=d!=null?d:null,this.options=g!=null?g:defaultOpts,this.elementCB=f!=null?f:null}onparserinit(d){this.parser=d}onreset(){this.dom=[],this.root=new Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(d){this.handleCallback(d)}onclosetag(){this.lastNode=null;const d=this.tagStack.pop();this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(d)}onopentag(d,g){const f=this.options.xmlMode?ElementType.Tag:void 0,b=new Element$1(d,g,void 0,f);this.addNode(b),this.tagStack.push(b)}ontext(d){const{lastNode:g}=this;if(g&&g.type===ElementType.Text)g.data+=d,this.options.withEndIndices&&(g.endIndex=this.parser.endIndex);else{const f=new Text(d);this.addNode(f),this.lastNode=f}}oncomment(d){if(this.lastNode&&this.lastNode.type===ElementType.Comment){this.lastNode.data+=d;return}const g=new Comment(d);this.addNode(g),this.lastNode=g}oncommentend(){this.lastNode=null}oncdatastart(){const d=new Text(""),g=new CDATA([d]);this.addNode(g),d.parent=g,this.lastNode=d}oncdataend(){this.lastNode=null}onprocessinginstruction(d,g){const f=new ProcessingInstruction(d,g);this.addNode(f)}handleCallback(d){if(typeof this.callback=="function")this.callback(d,this.dom);else if(d)throw d}addNode(d){const g=this.tagStack[this.tagStack.length-1],f=g.children[g.children.length-1];this.options.withStartIndices&&(d.startIndex=this.parser.startIndex),this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),g.children.push(d),f&&(d.prev=f,f.next=d),d.parent=g,this.lastNode=null}}const e=/\n/g;function n(u){const d=[...u.matchAll(e)].map(f=>f.index||0);d.unshift(-1);const g=t(d,0,d.length);return f=>r(g,f)}function t(u,d,g){if(g-d==1)return{offset:u[d],index:d+1};const f=Math.ceil((d+g)/2),b=t(u,d,f),m=t(u,f,g);return{offset:b.offset,low:b,high:m}}function r(u,d){return function(g){return Object.prototype.hasOwnProperty.call(g,"index")}(u)?{line:u.index,column:d-u.offset}:r(u.high.offset<d?u.high:u.low,d)}function o(u,d="",g={}){const f=typeof d!="string"?d:g,b=typeof d=="string"?d:"",m=u.map(s),y=!!f.lineNumbers;return function(k,a=0){const q=y?n(k):()=>({line:0,column:0});let w=a;const $=[];e:for(;w<k.length;){let Q=!1;for(const C of m){C.regex.lastIndex=w;const v=C.regex.exec(k);if(v&&v[0].length>0){if(!C.discard){const J=q(w),ae=typeof C.replace=="string"?v[0].replace(new RegExp(C.regex.source,C.regex.flags),C.replace):v[0];$.push({state:b,name:C.name,text:ae,offset:w,len:v[0].length,line:J.line,column:J.column})}if(w=C.regex.lastIndex,Q=!0,C.push){const J=C.push(k,w);$.push(...J.tokens),w=J.offset}if(C.pop)break e;break}}if(!Q)break}return{tokens:$,offset:w,complete:k.length<=w}}}function s(u,d){return{...u,regex:l(u,d)}}function l(u,d){if(u.name.length===0)throw new Error(`Rule #${d} has empty name, which is not allowed.`);if(function(g){return Object.prototype.hasOwnProperty.call(g,"regex")}(u))return function(g){if(g.global)throw new Error(`Regular expression /${g.source}/${g.flags} contains the global flag, which is not allowed.`);return g.sticky?g:new RegExp(g.source,g.flags+"y")}(u.regex);if(function(g){return Object.prototype.hasOwnProperty.call(g,"str")}(u)){if(u.str.length===0)throw new Error(`Rule #${d} ("${u.name}") has empty "str" property, which is not allowed.`);return new RegExp(c(u.str),"y")}return new RegExp(c(u.name),"y")}function c(u){return u.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,"\\$&")}function token(u,d){return(g,f)=>{let b=f,m;return f<g.tokens.length?(m=u(g.tokens[f],g,f),m!==void 0&&b++):d==null||d(g,f),m===void 0?{matched:!1}:{matched:!0,position:b,value:m}}}function mapInner(u,d){return u.matched?{matched:!0,position:u.position,value:d(u.value,u.position)}:u}function mapOuter(u,d){return u.matched?d(u):u}function map(u,d){return(g,f)=>mapInner(u(g,f),(b,m)=>d(b,g,f,m))}function option(u,d){return(g,f)=>{const b=u(g,f);return b.matched?b:{matched:!0,position:f,value:d}}}function choice(...u){return(d,g)=>{for(const f of u){const b=f(d,g);if(b.matched)return b}return{matched:!1}}}function otherwise(u,d){return(g,f)=>{const b=u(g,f);return b.matched?b:d(g,f)}}function takeWhile(u,d){return(g,f)=>{const b=[];let m=!0;do{const y=u(g,f);y.matched&&d(y.value,b.length+1,g,f,y.position)?(b.push(y.value),f=y.position):m=!1}while(m);return{matched:!0,position:f,value:b}}}function many(u){return takeWhile(u,()=>!0)}function many1(u){return ab(u,many(u),(d,g)=>[d,...g])}function ab(u,d,g){return(f,b)=>mapOuter(u(f,b),m=>mapInner(d(f,m.position),(y,k)=>g(m.value,y,f,b,k)))}function left(u,d){return ab(u,d,g=>g)}function right(u,d){return ab(u,d,(g,f)=>f)}function abc(u,d,g,f){return(b,m)=>mapOuter(u(b,m),y=>mapOuter(d(b,y.position),k=>mapInner(g(b,k.position),(a,q)=>f(y.value,k.value,a,b,m,q))))}function middle(u,d,g){return abc(u,d,g,(f,b)=>b)}function all(...u){return(d,g)=>{const f=[];let b=g;for(const m of u){const y=m(d,b);if(y.matched)f.push(y.value),b=y.position;else return{matched:!1}}return{matched:!0,position:b,value:f}}}function flatten(...u){return flatten1(all(...u))}function flatten1(u){return map(u,d=>d.flatMap(g=>g))}function chainReduce(u,d){return(g,f)=>{let b=!0,m=u,y=f;do{const k=d(m,g,y)(g,y);k.matched?(m=k.value,y=k.position):b=!1}while(b);return{matched:!0,position:y,value:m}}}function reduceLeft(u,d,g){return chainReduce(u,f=>map(d,(b,m,y,k)=>g(f,b,m,y,k)))}function leftAssoc2(u,d,g){return chain(u,f=>reduceLeft(f,ab(d,g,(b,m)=>[b,m]),(b,[m,y])=>m(b,y)))}function chain(u,d){return(g,f)=>mapOuter(u(g,f),b=>d(b.value,g,f,b.position)(g,b.position))}const ws="(?:[ \\t\\r\\n\\f]*)",nl="(?:\\n|\\r\\n|\\r|\\f)",nonascii="[^\\x00-\\x7F]",unicode="(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)",escape$1="(?:\\\\[^\\n\\r\\f0-9a-f])",nmstart=`(?:[_a-z]|${nonascii}|${unicode}|${escape$1})`,nmchar=`(?:[_a-z0-9-]|${nonascii}|${unicode}|${escape$1})`,name=`(?:${nmchar}+)`,ident=`(?:[-]?${nmstart}${nmchar}*)`,string1=`'([^\\n\\r\\f\\\\']|\\\\${nl}|${nonascii}|${unicode}|${escape$1})*'`,string2=`"([^\\n\\r\\f\\\\"]|\\\\${nl}|${nonascii}|${unicode}|${escape$1})*"`,lexSelector=o([{name:"ws",regex:new RegExp(ws)},{name:"hash",regex:new RegExp(`#${name}`,"i")},{name:"ident",regex:new RegExp(ident,"i")},{name:"str1",regex:new RegExp(string1,"i")},{name:"str2",regex:new RegExp(string2,"i")},{name:"*"},{name:"."},{name:","},{name:"["},{name:"]"},{name:"="},{name:">"},{name:"|"},{name:"+"},{name:"~"},{name:"^"},{name:"$"}]),lexEscapedString=o([{name:"unicode",regex:new RegExp(unicode,"i")},{name:"escape",regex:new RegExp(escape$1,"i")},{name:"any",regex:new RegExp("[\\s\\S]","i")}]);function sumSpec([u,d,g],[f,b,m]){return[u+f,d+b,g+m]}function sumAllSpec(u){return u.reduce(sumSpec,[0,0,0])}const unicodeEscapedSequence_=token(u=>u.name==="unicode"?String.fromCodePoint(parseInt(u.text.slice(1),16)):void 0),escapedSequence_=token(u=>u.name==="escape"?u.text.slice(1):void 0),anyChar_=token(u=>u.name==="any"?u.text:void 0),escapedString_=map(many(choice(unicodeEscapedSequence_,escapedSequence_,anyChar_)),u=>u.join(""));function unescape$1(u){const d=lexEscapedString(u);return escapedString_({tokens:d.tokens,options:void 0},0).value}function literal(u){return token(d=>d.name===u?!0:void 0)}const whitespace_=token(u=>u.name==="ws"?null:void 0),optionalWhitespace_=option(whitespace_,null);function optionallySpaced(u){return middle(optionalWhitespace_,u,optionalWhitespace_)}const identifier_=token(u=>u.name==="ident"?unescape$1(u.text):void 0),hashId_=token(u=>u.name==="hash"?unescape$1(u.text.slice(1)):void 0),string_=token(u=>u.name.startsWith("str")?unescape$1(u.text.slice(1,-1)):void 0),namespace_=left(option(identifier_,""),literal("|")),qualifiedName_=otherwise(ab(namespace_,identifier_,(u,d)=>({name:d,namespace:u})),map(identifier_,u=>({name:u,namespace:null}))),uniSelector_=otherwise(ab(namespace_,literal("*"),u=>({type:"universal",namespace:u,specificity:[0,0,0]})),map(literal("*"),()=>({type:"universal",namespace:null,specificity:[0,0,0]}))),tagSelector_=map(qualifiedName_,({name:u,namespace:d})=>({type:"tag",name:u,namespace:d,specificity:[0,0,1]})),classSelector_=ab(literal("."),identifier_,(u,d)=>({type:"class",name:d,specificity:[0,1,0]})),idSelector_=map(hashId_,u=>({type:"id",name:u,specificity:[1,0,0]})),attrModifier_=token(u=>{if(u.name==="ident"){if(u.text==="i"||u.text==="I")return"i";if(u.text==="s"||u.text==="S")return"s"}}),attrValue_=otherwise(ab(string_,option(right(optionalWhitespace_,attrModifier_),null),(u,d)=>({value:u,modifier:d})),ab(identifier_,option(right(whitespace_,attrModifier_),null),(u,d)=>({value:u,modifier:d}))),attrMatcher_=choice(map(literal("="),()=>"="),ab(literal("~"),literal("="),()=>"~="),ab(literal("|"),literal("="),()=>"|="),ab(literal("^"),literal("="),()=>"^="),ab(literal("$"),literal("="),()=>"$="),ab(literal("*"),literal("="),()=>"*=")),attrPresenceSelector_=abc(literal("["),optionallySpaced(qualifiedName_),literal("]"),(u,{name:d,namespace:g})=>({type:"attrPresence",name:d,namespace:g,specificity:[0,1,0]})),attrValueSelector_=middle(literal("["),abc(optionallySpaced(qualifiedName_),attrMatcher_,optionallySpaced(attrValue_),({name:u,namespace:d},g,{value:f,modifier:b})=>({type:"attrValue",name:u,namespace:d,matcher:g,value:f,modifier:b,specificity:[0,1,0]})),literal("]")),attrSelector_=otherwise(attrPresenceSelector_,attrValueSelector_),typeSelector_=otherwise(uniSelector_,tagSelector_),subclassSelector_=choice(idSelector_,classSelector_,attrSelector_),compoundSelector_=map(otherwise(flatten(typeSelector_,many(subclassSelector_)),many1(subclassSelector_)),u=>({type:"compound",list:u,specificity:sumAllSpec(u.map(d=>d.specificity))})),combinator_=choice(map(literal(">"),()=>">"),map(literal("+"),()=>"+"),map(literal("~"),()=>"~"),ab(literal("|"),literal("|"),()=>"||")),combinatorSeparator_=otherwise(optionallySpaced(combinator_),map(whitespace_,()=>" ")),complexSelector_=leftAssoc2(compoundSelector_,map(combinatorSeparator_,u=>(d,g)=>({type:"compound",list:[...g.list,{type:"combinator",combinator:u,left:d,specificity:d.specificity}],specificity:sumSpec(d.specificity,g.specificity)})),compoundSelector_);function parse_(u,d){if(!(typeof d=="string"||d instanceof String))throw new Error("Expected a selector string. Actual input is not a string!");const g=lexSelector(d);if(!g.complete)throw new Error(`The input "${d}" was only partially tokenized, stopped at offset ${g.offset}!
34
34
  `+prettyPrintPosition(d,g.offset));const f=optionallySpaced(u)({tokens:g.tokens,options:void 0},0);if(!f.matched)throw new Error(`No match for "${d}" input!`);if(f.position<g.tokens.length){const b=g.tokens[f.position];throw new Error(`The input "${d}" was only partially parsed, stopped at offset ${b.offset}!
35
35
  `+prettyPrintPosition(d,b.offset,b.len))}return f.value}function prettyPrintPosition(u,d,g=1){return`${u.replace(/(\t)|(\r)|(\n)/g,(f,b,m)=>b?"\u2409":m?"\u240D":"\u240A")}
36
36
  ${"".padEnd(d)}${"^".repeat(g)}`}function parse1(u){return parse_(complexSelector_,u)}function serialize(u){if(!u.type)throw new Error("This is not an AST node.");switch(u.type){case"universal":return _serNs(u.namespace)+"*";case"tag":return _serNs(u.namespace)+_serIdent(u.name);case"class":return"."+_serIdent(u.name);case"id":return"#"+_serIdent(u.name);case"attrPresence":return`[${_serNs(u.namespace)}${_serIdent(u.name)}]`;case"attrValue":return`[${_serNs(u.namespace)}${_serIdent(u.name)}${u.matcher}"${_serStr(u.value)}"${u.modifier?u.modifier:""}]`;case"combinator":return serialize(u.left)+u.combinator;case"compound":return u.list.reduce((d,g)=>g.type==="combinator"?serialize(g)+d:d+serialize(g),"");case"list":return u.list.map(serialize).join(",")}}function _serNs(u){return u||u===""?_serIdent(u)+"|":""}function _codePoint(u){return`\\${u.codePointAt(0).toString(16)} `}function _serIdent(u){return u.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,(d,g,f,b,m,y,k,a)=>g?_codePoint(g):f?"-"+_codePoint(f.slice(1)):b?"\\-":m||(y?"\uFFFD":k?_codePoint(k):"\\"+a))}function _serStr(u){return u.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,(d,g,f,b,m)=>g?'\\"':f?"\\\\":b?"\uFFFD":_codePoint(m))}function normalize(u){if(!u.type)throw new Error("This is not an AST node.");switch(u.type){case"compound":{u.list.forEach(normalize),u.list.sort((d,g)=>_compareArrays(_getSelectorPriority(d),_getSelectorPriority(g)));break}case"combinator":{normalize(u.left);break}case"list":{u.list.forEach(normalize),u.list.sort((d,g)=>serialize(d)<serialize(g)?-1:1);break}}return u}function _getSelectorPriority(u){switch(u.type){case"universal":return[1];case"tag":return[1];case"id":return[2];case"class":return[3,u.name];case"attrPresence":return[4,serialize(u)];case"attrValue":return[5,serialize(u)];case"combinator":return[15,serialize(u)]}}function compareSpecificity(u,d){return _compareArrays(u,d)}function _compareArrays(u,d){if(!Array.isArray(u)||!Array.isArray(d))throw new Error("Arguments must be arrays.");const g=u.length<d.length?u.length:d.length;for(let f=0;f<g;f++)if(u[f]!==d[f])return u[f]<d[f]?-1:1;return u.length-d.length}class DecisionTree{constructor(d){this.branches=weave(toAstTerminalPairs(d))}build(d){return d(this.branches)}}function toAstTerminalPairs(u){const d=u.length,g=new Array(d);for(let f=0;f<d;f++){const[b,m]=u[f],y=preprocess(parse1(b));g[f]={ast:y,terminal:{type:"terminal",valueContainer:{index:f,value:m,specificity:y.specificity}}}}return g}function preprocess(u){return reduceSelectorVariants(u),normalize(u),u}function reduceSelectorVariants(u){const d=[];u.list.forEach(g=>{switch(g.type){case"class":d.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:g.specificity,type:"attrValue",value:g.name});break;case"id":d.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:g.specificity,type:"attrValue",value:g.name});break;case"combinator":reduceSelectorVariants(g.left),d.push(g);break;case"universal":break;default:d.push(g);break}}),u.list=d}function weave(u){const d=[];for(;u.length;){const g=findTopKey(u,y=>!0,getSelectorKind),{matches:f,nonmatches:b,empty:m}=breakByKind(u,g);u=b,f.length&&d.push(branchOfKind(g,f)),m.length&&d.push(...terminate(m))}return d}function terminate(u){const d=[];for(const g of u){const f=g.terminal;if(f.type==="terminal")d.push(f);else{const{matches:b,rest:m}=partition(f.cont,y=>y.type==="terminal");b.forEach(y=>d.push(y)),m.length&&(f.cont=m,d.push(f))}}return d}function breakByKind(u,d){const g=[],f=[],b=[];for(const m of u){const y=m.ast.list;y.length?(y.some(a=>getSelectorKind(a)===d)?g:f).push(m):b.push(m)}return{matches:g,nonmatches:f,empty:b}}function getSelectorKind(u){switch(u.type){case"attrPresence":return`attrPresence ${u.name}`;case"attrValue":return`attrValue ${u.name}`;case"combinator":return`combinator ${u.combinator}`;default:return u.type}}function branchOfKind(u,d){if(u==="tag")return tagNameBranch(d);if(u.startsWith("attrValue "))return attrValueBranch(u.substring(10),d);if(u.startsWith("attrPresence "))return attrPresenceBranch(u.substring(13),d);if(u==="combinator >")return combinatorBranch(">",d);if(u==="combinator +")return combinatorBranch("+",d);throw new Error(`Unsupported selector kind: ${u}`)}function tagNameBranch(u){const d=spliceAndGroup(u,f=>f.type==="tag",f=>f.name),g=Object.entries(d).map(([f,b])=>({type:"variant",value:f,cont:weave(b.items)}));return{type:"tagName",variants:g}}function attrPresenceBranch(u,d){for(const g of d)spliceSimpleSelector(g,f=>f.type==="attrPresence"&&f.name===u);return{type:"attrPresence",name:u,cont:weave(d)}}function attrValueBranch(u,d){const g=spliceAndGroup(d,b=>b.type==="attrValue"&&b.name===u,b=>`${b.matcher} ${b.modifier||""} ${b.value}`),f=[];for(const b of Object.values(g)){const m=b.oneSimpleSelector,y=getAttrPredicate(m),k=weave(b.items);f.push({type:"matcher",matcher:m.matcher,modifier:m.modifier,value:m.value,predicate:y,cont:k})}return{type:"attrValue",name:u,matchers:f}}function getAttrPredicate(u){if(u.modifier==="i"){const d=u.value.toLowerCase();switch(u.matcher){case"=":return g=>d===g.toLowerCase();case"~=":return g=>g.toLowerCase().split(/[ \t]+/).includes(d);case"^=":return g=>g.toLowerCase().startsWith(d);case"$=":return g=>g.toLowerCase().endsWith(d);case"*=":return g=>g.toLowerCase().includes(d);case"|=":return g=>{const f=g.toLowerCase();return d===f||f.startsWith(d)&&f[d.length]==="-"}}}else{const d=u.value;switch(u.matcher){case"=":return g=>d===g;case"~=":return g=>g.split(/[ \t]+/).includes(d);case"^=":return g=>g.startsWith(d);case"$=":return g=>g.endsWith(d);case"*=":return g=>g.includes(d);case"|=":return g=>d===g||g.startsWith(d)&&g[d.length]==="-"}}}function combinatorBranch(u,d){const g=spliceAndGroup(d,b=>b.type==="combinator"&&b.combinator===u,b=>serialize(b.left)),f=[];for(const b of Object.values(g)){const m=weave(b.items),y=b.oneSimpleSelector.left;f.push({ast:y,terminal:{type:"popElement",cont:m}})}return{type:"pushElement",combinator:u,cont:weave(f)}}function spliceAndGroup(u,d,g){const f={};for(;u.length;){const b=findTopKey(u,d,g),m=w=>d(w)&&g(w)===b,y=w=>w.ast.list.some(m),{matches:k,rest:a}=partition1(u,y);let q=null;for(const w of k){const $=spliceSimpleSelector(w,m);q||(q=$)}if(q==null)throw new Error("No simple selector is found.");f[b]={oneSimpleSelector:q,items:k},u=a}return f}function spliceSimpleSelector(u,d){const g=u.ast.list,f=new Array(g.length);let b=-1;for(let y=g.length;y-- >0;)d(g[y])&&(f[y]=!0,b=y);if(b==-1)throw new Error("Couldn't find the required simple selector.");const m=g[b];return u.ast.list=g.filter((y,k)=>!f[k]),m}function findTopKey(u,d,g){const f={};for(const y of u){const k={};for(const a of y.ast.list.filter(d))k[g(a)]=!0;for(const a of Object.keys(k))f[a]?f[a]++:f[a]=1}let b="",m=0;for(const y of Object.entries(f))y[1]>m&&(b=y[0],m=y[1]);return b}function partition(u,d){const g=[],f=[];for(const b of u)d(b)?g.push(b):f.push(b);return{matches:g,rest:f}}function partition1(u,d){const g=[],f=[];for(const b of u)d(b)?g.push(b):f.push(b);return{matches:g,rest:f}}class Picker{constructor(d){this.f=d}pickAll(d){return this.f(d)}pick1(d,g=!1){const f=this.f(d),b=f.length;if(b===0)return null;if(b===1)return f[0].value;const m=g?comparatorPreferFirst:comparatorPreferLast;let y=f[0];for(let k=1;k<b;k++){const a=f[k];m(y,a)&&(y=a)}return y.value}}function comparatorPreferFirst(u,d){const g=compareSpecificity(d.specificity,u.specificity);return g>0||g===0&&d.index<u.index}function comparatorPreferLast(u,d){const g=compareSpecificity(d.specificity,u.specificity);return g>0||g===0&&d.index>u.index}function hp2Builder(u){return new Picker(handleArray(u))}function handleArray(u){const d=u.map(handleNode);return(g,...f)=>d.flatMap(b=>b(g,...f))}function handleNode(u){switch(u.type){case"terminal":{const d=[u.valueContainer];return(g,...f)=>d}case"tagName":return handleTagName(u);case"attrValue":return handleAttrValueName(u);case"attrPresence":return handleAttrPresenceName(u);case"pushElement":return handlePushElementNode(u);case"popElement":return handlePopElementNode(u)}}function handleTagName(u){const d={};for(const g of u.variants)d[g.value]=handleArray(g.cont);return(g,...f)=>{const b=d[g.name];return b?b(g,...f):[]}}function handleAttrPresenceName(u){const d=u.name,g=handleArray(u.cont);return(f,...b)=>Object.prototype.hasOwnProperty.call(f.attribs,d)?g(f,...b):[]}function handleAttrValueName(u){const d=[];for(const f of u.matchers){const b=f.predicate,m=handleArray(f.cont);d.push((y,k,...a)=>b(y)?m(k,...a):[])}const g=u.name;return(f,...b)=>{const m=f.attribs[g];return m||m===""?d.flatMap(y=>y(m,f,...b)):[]}}function handlePushElementNode(u){const d=handleArray(u.cont),g=u.combinator==="+"?getPrecedingElement:getParentElement;return(f,...b)=>{const m=g(f);return m===null?[]:d(m,f,...b)}}const getPrecedingElement=u=>{const d=u.prev;return d===null?null:isTag(d)?d:getPrecedingElement(d)},getParentElement=u=>{const d=u.parent;return d&&isTag(d)?d:null};function handlePopElementNode(u){const d=handleArray(u.cont);return(g,f,...b)=>d(f,...b)}var htmlDecodeTree=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(u=>u.charCodeAt(0))),xmlDecodeTree=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(u=>u.charCodeAt(0))),_a$1;const decodeMap=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),fromCodePoint=(_a$1=String.fromCodePoint)!==null&&_a$1!==void 0?_a$1:function(u){let d="";return u>65535&&(u-=65536,d+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),d+=String.fromCharCode(u),d};function replaceCodePoint(u){var d;return u>=55296&&u<=57343||u>1114111?65533:(d=decodeMap.get(u))!==null&&d!==void 0?d:u}var CharCodes$1;(function(u){u[u.NUM=35]="NUM",u[u.SEMI=59]="SEMI",u[u.EQUALS=61]="EQUALS",u[u.ZERO=48]="ZERO",u[u.NINE=57]="NINE",u[u.LOWER_A=97]="LOWER_A",u[u.LOWER_F=102]="LOWER_F",u[u.LOWER_X=120]="LOWER_X",u[u.LOWER_Z=122]="LOWER_Z",u[u.UPPER_A=65]="UPPER_A",u[u.UPPER_F=70]="UPPER_F",u[u.UPPER_Z=90]="UPPER_Z"})(CharCodes$1||(CharCodes$1={}));const TO_LOWER_BIT=32;var BinTrieFlags;(function(u){u[u.VALUE_LENGTH=49152]="VALUE_LENGTH",u[u.BRANCH_LENGTH=16256]="BRANCH_LENGTH",u[u.JUMP_TABLE=127]="JUMP_TABLE"})(BinTrieFlags||(BinTrieFlags={}));function isNumber$1(u){return u>=CharCodes$1.ZERO&&u<=CharCodes$1.NINE}function isHexadecimalCharacter(u){return u>=CharCodes$1.UPPER_A&&u<=CharCodes$1.UPPER_F||u>=CharCodes$1.LOWER_A&&u<=CharCodes$1.LOWER_F}function isAsciiAlphaNumeric(u){return u>=CharCodes$1.UPPER_A&&u<=CharCodes$1.UPPER_Z||u>=CharCodes$1.LOWER_A&&u<=CharCodes$1.LOWER_Z||isNumber$1(u)}function isEntityInAttributeInvalidEnd(u){return u===CharCodes$1.EQUALS||isAsciiAlphaNumeric(u)}var EntityDecoderState;(function(u){u[u.EntityStart=0]="EntityStart",u[u.NumericStart=1]="NumericStart",u[u.NumericDecimal=2]="NumericDecimal",u[u.NumericHex=3]="NumericHex",u[u.NamedEntity=4]="NamedEntity"})(EntityDecoderState||(EntityDecoderState={}));var DecodingMode;(function(u){u[u.Legacy=0]="Legacy",u[u.Strict=1]="Strict",u[u.Attribute=2]="Attribute"})(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(d,g,f){this.decodeTree=d,this.emitCodePoint=g,this.errors=f,this.state=EntityDecoderState.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=DecodingMode.Strict}startEntity(d){this.decodeMode=d,this.state=EntityDecoderState.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(d,g){switch(this.state){case EntityDecoderState.EntityStart:return d.charCodeAt(g)===CharCodes$1.NUM?(this.state=EntityDecoderState.NumericStart,this.consumed+=1,this.stateNumericStart(d,g+1)):(this.state=EntityDecoderState.NamedEntity,this.stateNamedEntity(d,g));case EntityDecoderState.NumericStart:return this.stateNumericStart(d,g);case EntityDecoderState.NumericDecimal:return this.stateNumericDecimal(d,g);case EntityDecoderState.NumericHex:return this.stateNumericHex(d,g);case EntityDecoderState.NamedEntity:return this.stateNamedEntity(d,g)}}stateNumericStart(d,g){return g>=d.length?-1:(d.charCodeAt(g)|TO_LOWER_BIT)===CharCodes$1.LOWER_X?(this.state=EntityDecoderState.NumericHex,this.consumed+=1,this.stateNumericHex(d,g+1)):(this.state=EntityDecoderState.NumericDecimal,this.stateNumericDecimal(d,g))}addToNumericResult(d,g,f,b){if(g!==f){const m=f-g;this.result=this.result*Math.pow(b,m)+parseInt(d.substr(g,m),b),this.consumed+=m}}stateNumericHex(d,g){const f=g;for(;g<d.length;){const b=d.charCodeAt(g);if(isNumber$1(b)||isHexadecimalCharacter(b))g+=1;else return this.addToNumericResult(d,f,g,16),this.emitNumericEntity(b,3)}return this.addToNumericResult(d,f,g,16),-1}stateNumericDecimal(d,g){const f=g;for(;g<d.length;){const b=d.charCodeAt(g);if(isNumber$1(b))g+=1;else return this.addToNumericResult(d,f,g,10),this.emitNumericEntity(b,2)}return this.addToNumericResult(d,f,g,10),-1}emitNumericEntity(d,g){var f;if(this.consumed<=g)return(f=this.errors)===null||f===void 0||f.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(d===CharCodes$1.SEMI)this.consumed+=1;else if(this.decodeMode===DecodingMode.Strict)return 0;return this.emitCodePoint(replaceCodePoint(this.result),this.consumed),this.errors&&(d!==CharCodes$1.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(d,g){const{decodeTree:f}=this;let b=f[this.treeIndex],m=(b&BinTrieFlags.VALUE_LENGTH)>>14;for(;g<d.length;g++,this.excess++){const y=d.charCodeAt(g);if(this.treeIndex=determineBranch(f,b,this.treeIndex+Math.max(1,m),y),this.treeIndex<0)return this.result===0||this.decodeMode===DecodingMode.Attribute&&(m===0||isEntityInAttributeInvalidEnd(y))?0:this.emitNotTerminatedNamedEntity();if(b=f[this.treeIndex],m=(b&BinTrieFlags.VALUE_LENGTH)>>14,m!==0){if(y===CharCodes$1.SEMI)return this.emitNamedEntityData(this.treeIndex,m,this.consumed+this.excess);this.decodeMode!==DecodingMode.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var d;const{result:g,decodeTree:f}=this,b=(f[g]&BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(g,b,this.consumed),(d=this.errors)===null||d===void 0||d.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(d,g,f){const{decodeTree:b}=this;return this.emitCodePoint(g===1?b[d]&~BinTrieFlags.VALUE_LENGTH:b[d+1],f),g===3&&this.emitCodePoint(b[d+2],f),f}end(){var d;switch(this.state){case EntityDecoderState.NamedEntity:return this.result!==0&&(this.decodeMode!==DecodingMode.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case EntityDecoderState.NumericDecimal:return this.emitNumericEntity(0,2);case EntityDecoderState.NumericHex:return this.emitNumericEntity(0,3);case EntityDecoderState.NumericStart:return(d=this.errors)===null||d===void 0||d.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case EntityDecoderState.EntityStart:return 0}}}function getDecoder$1(u){let d="";const g=new EntityDecoder(u,f=>d+=fromCodePoint(f));return function(b,m){let y=0,k=0;for(;(k=b.indexOf("&",k))>=0;){d+=b.slice(y,k),g.startEntity(m);const q=g.write(b,k+1);if(q<0){y=k+g.end();break}y=k+q,k=q===0?y+1:y}const a=d+b.slice(y);return d="",a}}function determineBranch(u,d,g,f){const b=(d&BinTrieFlags.BRANCH_LENGTH)>>7,m=d&BinTrieFlags.JUMP_TABLE;if(b===0)return m!==0&&f===m?g:-1;if(m){const a=f-m;return a<0||a>=b?-1:u[g+a]-1}let y=g,k=y+b-1;for(;y<=k;){const a=y+k>>>1,q=u[a];if(q<f)y=a+1;else if(q>f)k=a-1;else return u[a+b]}return-1}getDecoder$1(htmlDecodeTree);getDecoder$1(xmlDecodeTree);var CharCodes;(function(u){u[u.Tab=9]="Tab",u[u.NewLine=10]="NewLine",u[u.FormFeed=12]="FormFeed",u[u.CarriageReturn=13]="CarriageReturn",u[u.Space=32]="Space",u[u.ExclamationMark=33]="ExclamationMark",u[u.Number=35]="Number",u[u.Amp=38]="Amp",u[u.SingleQuote=39]="SingleQuote",u[u.DoubleQuote=34]="DoubleQuote",u[u.Dash=45]="Dash",u[u.Slash=47]="Slash",u[u.Zero=48]="Zero",u[u.Nine=57]="Nine",u[u.Semi=59]="Semi",u[u.Lt=60]="Lt",u[u.Eq=61]="Eq",u[u.Gt=62]="Gt",u[u.Questionmark=63]="Questionmark",u[u.UpperA=65]="UpperA",u[u.LowerA=97]="LowerA",u[u.UpperF=70]="UpperF",u[u.LowerF=102]="LowerF",u[u.UpperZ=90]="UpperZ",u[u.LowerZ=122]="LowerZ",u[u.LowerX=120]="LowerX",u[u.OpeningSquareBracket=91]="OpeningSquareBracket"})(CharCodes||(CharCodes={}));var State;(function(u){u[u.Text=1]="Text",u[u.BeforeTagName=2]="BeforeTagName",u[u.InTagName=3]="InTagName",u[u.InSelfClosingTag=4]="InSelfClosingTag",u[u.BeforeClosingTagName=5]="BeforeClosingTagName",u[u.InClosingTagName=6]="InClosingTagName",u[u.AfterClosingTagName=7]="AfterClosingTagName",u[u.BeforeAttributeName=8]="BeforeAttributeName",u[u.InAttributeName=9]="InAttributeName",u[u.AfterAttributeName=10]="AfterAttributeName",u[u.BeforeAttributeValue=11]="BeforeAttributeValue",u[u.InAttributeValueDq=12]="InAttributeValueDq",u[u.InAttributeValueSq=13]="InAttributeValueSq",u[u.InAttributeValueNq=14]="InAttributeValueNq",u[u.BeforeDeclaration=15]="BeforeDeclaration",u[u.InDeclaration=16]="InDeclaration",u[u.InProcessingInstruction=17]="InProcessingInstruction",u[u.BeforeComment=18]="BeforeComment",u[u.CDATASequence=19]="CDATASequence",u[u.InSpecialComment=20]="InSpecialComment",u[u.InCommentLike=21]="InCommentLike",u[u.BeforeSpecialS=22]="BeforeSpecialS",u[u.SpecialStartSequence=23]="SpecialStartSequence",u[u.InSpecialTag=24]="InSpecialTag",u[u.BeforeEntity=25]="BeforeEntity",u[u.BeforeNumericEntity=26]="BeforeNumericEntity",u[u.InNamedEntity=27]="InNamedEntity",u[u.InNumericEntity=28]="InNumericEntity",u[u.InHexEntity=29]="InHexEntity"})(State||(State={}));function isWhitespace(u){return u===CharCodes.Space||u===CharCodes.NewLine||u===CharCodes.Tab||u===CharCodes.FormFeed||u===CharCodes.CarriageReturn}function isEndOfTagSection(u){return u===CharCodes.Slash||u===CharCodes.Gt||isWhitespace(u)}function isNumber(u){return u>=CharCodes.Zero&&u<=CharCodes.Nine}function isASCIIAlpha(u){return u>=CharCodes.LowerA&&u<=CharCodes.LowerZ||u>=CharCodes.UpperA&&u<=CharCodes.UpperZ}function isHexDigit(u){return u>=CharCodes.UpperA&&u<=CharCodes.UpperF||u>=CharCodes.LowerA&&u<=CharCodes.LowerF}var QuoteType;(function(u){u[u.NoValue=0]="NoValue",u[u.Unquoted=1]="Unquoted",u[u.Single=2]="Single",u[u.Double=3]="Double"})(QuoteType||(QuoteType={}));const Sequences={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class Tokenizer$1{constructor({xmlMode:d=!1,decodeEntities:g=!0},f){this.cbs=f,this.state=State.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=State.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=d,this.decodeEntities=g,this.entityTrie=d?xmlDecodeTree:htmlDecodeTree}reset(){this.state=State.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=State.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(d){this.offset+=this.buffer.length,this.buffer=d,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(d){d===CharCodes.Lt||!this.decodeEntities&&this.fastForwardTo(CharCodes.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=State.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&d===CharCodes.Amp&&(this.state=State.BeforeEntity)}stateSpecialStartSequence(d){const g=this.sequenceIndex===this.currentSequence.length;if(!(g?isEndOfTagSection(d):(d|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!g){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=State.InTagName,this.stateInTagName(d)}stateInSpecialTag(d){if(this.sequenceIndex===this.currentSequence.length){if(d===CharCodes.Gt||isWhitespace(d)){const g=this.index-this.currentSequence.length;if(this.sectionStart<g){const f=this.index;this.index=g,this.cbs.ontext(this.sectionStart,g),this.index=f}this.isSpecial=!1,this.sectionStart=g+2,this.stateInClosingTagName(d);return}this.sequenceIndex=0}(d|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Sequences.TitleEnd?this.decodeEntities&&d===CharCodes.Amp&&(this.state=State.BeforeEntity):this.fastForwardTo(CharCodes.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(d===CharCodes.Lt)}stateCDATASequence(d){d===Sequences.Cdata[this.sequenceIndex]?++this.sequenceIndex===Sequences.Cdata.length&&(this.state=State.InCommentLike,this.currentSequence=Sequences.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=State.InDeclaration,this.stateInDeclaration(d))}fastForwardTo(d){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===d)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(d){d===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Sequences.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=State.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):d!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(d){return this.xmlMode?!isEndOfTagSection(d):isASCIIAlpha(d)}startSpecial(d,g){this.isSpecial=!0,this.currentSequence=d,this.sequenceIndex=g,this.state=State.SpecialStartSequence}stateBeforeTagName(d){if(d===CharCodes.ExclamationMark)this.state=State.BeforeDeclaration,this.sectionStart=this.index+1;else if(d===CharCodes.Questionmark)this.state=State.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(d)){const g=d|32;this.sectionStart=this.index,!this.xmlMode&&g===Sequences.TitleEnd[2]?this.startSpecial(Sequences.TitleEnd,3):this.state=!this.xmlMode&&g===Sequences.ScriptEnd[2]?State.BeforeSpecialS:State.InTagName}else d===CharCodes.Slash?this.state=State.BeforeClosingTagName:(this.state=State.Text,this.stateText(d))}stateInTagName(d){isEndOfTagSection(d)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(d))}stateBeforeClosingTagName(d){isWhitespace(d)||(d===CharCodes.Gt?this.state=State.Text:(this.state=this.isTagStartChar(d)?State.InClosingTagName:State.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(d){(d===CharCodes.Gt||isWhitespace(d))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=State.AfterClosingTagName,this.stateAfterClosingTagName(d))}stateAfterClosingTagName(d){(d===CharCodes.Gt||this.fastForwardTo(CharCodes.Gt))&&(this.state=State.Text,this.baseState=State.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(d){d===CharCodes.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=State.InSpecialTag,this.sequenceIndex=0):this.state=State.Text,this.baseState=this.state,this.sectionStart=this.index+1):d===CharCodes.Slash?this.state=State.InSelfClosingTag:isWhitespace(d)||(this.state=State.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(d){d===CharCodes.Gt?(this.cbs.onselfclosingtag(this.index),this.state=State.Text,this.baseState=State.Text,this.sectionStart=this.index+1,this.isSpecial=!1):isWhitespace(d)||(this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(d))}stateInAttributeName(d){(d===CharCodes.Eq||isEndOfTagSection(d))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=State.AfterAttributeName,this.stateAfterAttributeName(d))}stateAfterAttributeName(d){d===CharCodes.Eq?this.state=State.BeforeAttributeValue:d===CharCodes.Slash||d===CharCodes.Gt?(this.cbs.onattribend(QuoteType.NoValue,this.index),this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(d)):isWhitespace(d)||(this.cbs.onattribend(QuoteType.NoValue,this.index),this.state=State.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(d){d===CharCodes.DoubleQuote?(this.state=State.InAttributeValueDq,this.sectionStart=this.index+1):d===CharCodes.SingleQuote?(this.state=State.InAttributeValueSq,this.sectionStart=this.index+1):isWhitespace(d)||(this.sectionStart=this.index,this.state=State.InAttributeValueNq,this.stateInAttributeValueNoQuotes(d))}handleInAttributeValue(d,g){d===g||!this.decodeEntities&&this.fastForwardTo(g)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(g===CharCodes.DoubleQuote?QuoteType.Double:QuoteType.Single,this.index),this.state=State.BeforeAttributeName):this.decodeEntities&&d===CharCodes.Amp&&(this.baseState=this.state,this.state=State.BeforeEntity)}stateInAttributeValueDoubleQuotes(d){this.handleInAttributeValue(d,CharCodes.DoubleQuote)}stateInAttributeValueSingleQuotes(d){this.handleInAttributeValue(d,CharCodes.SingleQuote)}stateInAttributeValueNoQuotes(d){isWhitespace(d)||d===CharCodes.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(QuoteType.Unquoted,this.index),this.state=State.BeforeAttributeName,this.stateBeforeAttributeName(d)):this.decodeEntities&&d===CharCodes.Amp&&(this.baseState=this.state,this.state=State.BeforeEntity)}stateBeforeDeclaration(d){d===CharCodes.OpeningSquareBracket?(this.state=State.CDATASequence,this.sequenceIndex=0):this.state=d===CharCodes.Dash?State.BeforeComment:State.InDeclaration}stateInDeclaration(d){(d===CharCodes.Gt||this.fastForwardTo(CharCodes.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=State.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(d){(d===CharCodes.Gt||this.fastForwardTo(CharCodes.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=State.Text,this.sectionStart=this.index+1)}stateBeforeComment(d){d===CharCodes.Dash?(this.state=State.InCommentLike,this.currentSequence=Sequences.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=State.InDeclaration}stateInSpecialComment(d){(d===CharCodes.Gt||this.fastForwardTo(CharCodes.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=State.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(d){const g=d|32;g===Sequences.ScriptEnd[3]?this.startSpecial(Sequences.ScriptEnd,4):g===Sequences.StyleEnd[3]?this.startSpecial(Sequences.StyleEnd,4):(this.state=State.InTagName,this.stateInTagName(d))}stateBeforeEntity(d){this.entityExcess=1,this.entityResult=0,d===CharCodes.Number?this.state=State.BeforeNumericEntity:d===CharCodes.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=State.InNamedEntity,this.stateInNamedEntity(d))}stateInNamedEntity(d){if(this.entityExcess+=1,this.trieIndex=determineBranch(this.entityTrie,this.trieCurrent,this.trieIndex+1,d),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];const g=this.trieCurrent&BinTrieFlags.VALUE_LENGTH;if(g){const f=(g>>14)-1;if(!this.allowLegacyEntity()&&d!==CharCodes.Semi)this.trieIndex+=f;else{const b=this.index-this.entityExcess+1;b>this.sectionStart&&this.emitPartial(this.sectionStart,b),this.entityResult=this.trieIndex,this.trieIndex+=f,this.entityExcess=0,this.sectionStart=this.index+1,f===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&BinTrieFlags.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(d){(d|32)===CharCodes.LowerX?(this.entityExcess++,this.state=State.InHexEntity):(this.state=State.InNumericEntity,this.stateInNumericEntity(d))}emitNumericEntity(d){const g=this.index-this.entityExcess-1;g+2+Number(this.state===State.InHexEntity)!==this.index&&(g>this.sectionStart&&this.emitPartial(this.sectionStart,g),this.sectionStart=this.index+Number(d),this.emitCodePoint(replaceCodePoint(this.entityResult))),this.state=this.baseState}stateInNumericEntity(d){d===CharCodes.Semi?this.emitNumericEntity(!0):isNumber(d)?(this.entityResult=this.entityResult*10+(d-CharCodes.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(d){d===CharCodes.Semi?this.emitNumericEntity(!0):isNumber(d)?(this.entityResult=this.entityResult*16+(d-CharCodes.Zero),this.entityExcess++):isHexDigit(d)?(this.entityResult=this.entityResult*16+((d|32)-CharCodes.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===State.Text||this.baseState===State.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===State.Text||this.state===State.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===State.InAttributeValueDq||this.state===State.InAttributeValueSq||this.state===State.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const d=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case State.Text:{this.stateText(d);break}case State.SpecialStartSequence:{this.stateSpecialStartSequence(d);break}case State.InSpecialTag:{this.stateInSpecialTag(d);break}case State.CDATASequence:{this.stateCDATASequence(d);break}case State.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(d);break}case State.InAttributeName:{this.stateInAttributeName(d);break}case State.InCommentLike:{this.stateInCommentLike(d);break}case State.InSpecialComment:{this.stateInSpecialComment(d);break}case State.BeforeAttributeName:{this.stateBeforeAttributeName(d);break}case State.InTagName:{this.stateInTagName(d);break}case State.InClosingTagName:{this.stateInClosingTagName(d);break}case State.BeforeTagName:{this.stateBeforeTagName(d);break}case State.AfterAttributeName:{this.stateAfterAttributeName(d);break}case State.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(d);break}case State.BeforeAttributeValue:{this.stateBeforeAttributeValue(d);break}case State.BeforeClosingTagName:{this.stateBeforeClosingTagName(d);break}case State.AfterClosingTagName:{this.stateAfterClosingTagName(d);break}case State.BeforeSpecialS:{this.stateBeforeSpecialS(d);break}case State.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(d);break}case State.InSelfClosingTag:{this.stateInSelfClosingTag(d);break}case State.InDeclaration:{this.stateInDeclaration(d);break}case State.BeforeDeclaration:{this.stateBeforeDeclaration(d);break}case State.BeforeComment:{this.stateBeforeComment(d);break}case State.InProcessingInstruction:{this.stateInProcessingInstruction(d);break}case State.InNamedEntity:{this.stateInNamedEntity(d);break}case State.BeforeEntity:{this.stateBeforeEntity(d);break}case State.InHexEntity:{this.stateInHexEntity(d);break}case State.InNumericEntity:{this.stateInNumericEntity(d);break}default:this.stateBeforeNumericEntity(d)}this.index++}this.cleanup()}finish(){this.state===State.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const d=this.buffer.length+this.offset;this.state===State.InCommentLike?this.currentSequence===Sequences.CdataEnd?this.cbs.oncdata(this.sectionStart,d,0):this.cbs.oncomment(this.sectionStart,d,0):this.state===State.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===State.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===State.InTagName||this.state===State.BeforeAttributeName||this.state===State.BeforeAttributeValue||this.state===State.AfterAttributeName||this.state===State.InAttributeName||this.state===State.InAttributeValueSq||this.state===State.InAttributeValueDq||this.state===State.InAttributeValueNq||this.state===State.InClosingTagName||this.cbs.ontext(this.sectionStart,d)}emitPartial(d,g){this.baseState!==State.Text&&this.baseState!==State.InSpecialTag?this.cbs.onattribdata(d,g):this.cbs.ontext(d,g)}emitCodePoint(d){this.baseState!==State.Text&&this.baseState!==State.InSpecialTag?this.cbs.onattribentity(d):this.cbs.ontextentity(d)}}const formTags=new Set(["input","option","optgroup","select","button","datalist","textarea"]),pTag=new Set(["p"]),tableSectionTags=new Set(["thead","tbody"]),ddtTags=new Set(["dd","dt"]),rtpTags=new Set(["rt","rp"]),openImpliesClose=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",pTag],["h1",pTag],["h2",pTag],["h3",pTag],["h4",pTag],["h5",pTag],["h6",pTag],["select",formTags],["input",formTags],["output",formTags],["button",formTags],["datalist",formTags],["textarea",formTags],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",ddtTags],["dt",ddtTags],["address",pTag],["article",pTag],["aside",pTag],["blockquote",pTag],["details",pTag],["div",pTag],["dl",pTag],["fieldset",pTag],["figcaption",pTag],["figure",pTag],["footer",pTag],["form",pTag],["header",pTag],["hr",pTag],["main",pTag],["nav",pTag],["ol",pTag],["pre",pTag],["section",pTag],["table",pTag],["ul",pTag],["rt",rtpTags],["rp",rtpTags],["tbody",tableSectionTags],["tfoot",tableSectionTags]]),voidElements=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),foreignContextElements=new Set(["math","svg"]),htmlIntegrationElements=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),reNameEnd=/\s|\//;class Parser{constructor(d,g={}){var f,b,m,y,k;this.options=g,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=d!=null?d:{},this.lowerCaseTagNames=(f=g.lowerCaseTags)!==null&&f!==void 0?f:!g.xmlMode,this.lowerCaseAttributeNames=(b=g.lowerCaseAttributeNames)!==null&&b!==void 0?b:!g.xmlMode,this.tokenizer=new((m=g.Tokenizer)!==null&&m!==void 0?m:Tokenizer$1)(this.options,this),(k=(y=this.cbs).onparserinit)===null||k===void 0||k.call(y,this)}ontext(d,g){var f,b;const m=this.getSlice(d,g);this.endIndex=g-1,(b=(f=this.cbs).ontext)===null||b===void 0||b.call(f,m),this.startIndex=g}ontextentity(d){var g,f;const b=this.tokenizer.getSectionStart();this.endIndex=b-1,(f=(g=this.cbs).ontext)===null||f===void 0||f.call(g,fromCodePoint(d)),this.startIndex=b}isVoidElement(d){return!this.options.xmlMode&&voidElements.has(d)}onopentagname(d,g){this.endIndex=g;let f=this.getSlice(d,g);this.lowerCaseTagNames&&(f=f.toLowerCase()),this.emitOpenTag(f)}emitOpenTag(d){var g,f,b,m;this.openTagStart=this.startIndex,this.tagname=d;const y=!this.options.xmlMode&&openImpliesClose.get(d);if(y)for(;this.stack.length>0&&y.has(this.stack[this.stack.length-1]);){const k=this.stack.pop();(f=(g=this.cbs).onclosetag)===null||f===void 0||f.call(g,k,!0)}this.isVoidElement(d)||(this.stack.push(d),foreignContextElements.has(d)?this.foreignContext.push(!0):htmlIntegrationElements.has(d)&&this.foreignContext.push(!1)),(m=(b=this.cbs).onopentagname)===null||m===void 0||m.call(b,d),this.cbs.onopentag&&(this.attribs={})}endOpenTag(d){var g,f;this.startIndex=this.openTagStart,this.attribs&&((f=(g=this.cbs).onopentag)===null||f===void 0||f.call(g,this.tagname,this.attribs,d),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(d){this.endIndex=d,this.endOpenTag(!1),this.startIndex=d+1}onclosetag(d,g){var f,b,m,y,k,a;this.endIndex=g;let q=this.getSlice(d,g);if(this.lowerCaseTagNames&&(q=q.toLowerCase()),(foreignContextElements.has(q)||htmlIntegrationElements.has(q))&&this.foreignContext.pop(),this.isVoidElement(q))!this.options.xmlMode&&q==="br"&&((b=(f=this.cbs).onopentagname)===null||b===void 0||b.call(f,"br"),(y=(m=this.cbs).onopentag)===null||y===void 0||y.call(m,"br",{},!0),(a=(k=this.cbs).onclosetag)===null||a===void 0||a.call(k,"br",!1));else{const w=this.stack.lastIndexOf(q);if(w!==-1)if(this.cbs.onclosetag){let $=this.stack.length-w;for(;$--;)this.cbs.onclosetag(this.stack.pop(),$!==0)}else this.stack.length=w;else!this.options.xmlMode&&q==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=g+1}onselfclosingtag(d){this.endIndex=d,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=d+1):this.onopentagend(d)}closeCurrentTag(d){var g,f;const b=this.tagname;this.endOpenTag(d),this.stack[this.stack.length-1]===b&&((f=(g=this.cbs).onclosetag)===null||f===void 0||f.call(g,b,!d),this.stack.pop())}onattribname(d,g){this.startIndex=d;const f=this.getSlice(d,g);this.attribname=this.lowerCaseAttributeNames?f.toLowerCase():f}onattribdata(d,g){this.attribvalue+=this.getSlice(d,g)}onattribentity(d){this.attribvalue+=fromCodePoint(d)}onattribend(d,g){var f,b;this.endIndex=g,(b=(f=this.cbs).onattribute)===null||b===void 0||b.call(f,this.attribname,this.attribvalue,d===QuoteType.Double?'"':d===QuoteType.Single?"'":d===QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(d){const g=d.search(reNameEnd);let f=g<0?d:d.substr(0,g);return this.lowerCaseTagNames&&(f=f.toLowerCase()),f}ondeclaration(d,g){this.endIndex=g;const f=this.getSlice(d,g);if(this.cbs.onprocessinginstruction){const b=this.getInstructionName(f);this.cbs.onprocessinginstruction(`!${b}`,`!${f}`)}this.startIndex=g+1}onprocessinginstruction(d,g){this.endIndex=g;const f=this.getSlice(d,g);if(this.cbs.onprocessinginstruction){const b=this.getInstructionName(f);this.cbs.onprocessinginstruction(`?${b}`,`?${f}`)}this.startIndex=g+1}oncomment(d,g,f){var b,m,y,k;this.endIndex=g,(m=(b=this.cbs).oncomment)===null||m===void 0||m.call(b,this.getSlice(d,g-f)),(k=(y=this.cbs).oncommentend)===null||k===void 0||k.call(y),this.startIndex=g+1}oncdata(d,g,f){var b,m,y,k,a,q,w,$,Q,C;this.endIndex=g;const v=this.getSlice(d,g-f);this.options.xmlMode||this.options.recognizeCDATA?((m=(b=this.cbs).oncdatastart)===null||m===void 0||m.call(b),(k=(y=this.cbs).ontext)===null||k===void 0||k.call(y,v),(q=(a=this.cbs).oncdataend)===null||q===void 0||q.call(a)):(($=(w=this.cbs).oncomment)===null||$===void 0||$.call(w,`[CDATA[${v}]]`),(C=(Q=this.cbs).oncommentend)===null||C===void 0||C.call(Q)),this.startIndex=g+1}onend(){var d,g;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let f=this.stack.length;f>0;this.cbs.onclosetag(this.stack[--f],!0));}(g=(d=this.cbs).onend)===null||g===void 0||g.call(d)}reset(){var d,g,f,b;(g=(d=this.cbs).onreset)===null||g===void 0||g.call(d),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(b=(f=this.cbs).onparserinit)===null||b===void 0||b.call(f,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(d){this.reset(),this.end(d)}getSlice(d,g){for(;d-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let f=this.buffers[0].slice(d-this.bufferOffset,g-this.bufferOffset);for(;g-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),f+=this.buffers[0].slice(0,g-this.bufferOffset);return f}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(d){var g,f;if(this.ended){(f=(g=this.cbs).onerror)===null||f===void 0||f.call(g,new Error(".write() after done!"));return}this.buffers.push(d),this.tokenizer.running&&(this.tokenizer.write(d),this.writeIndex++)}end(d){var g,f;if(this.ended){(f=(g=this.cbs).onerror)===null||f===void 0||f.call(g,new Error(".end() after done!"));return}d&&this.write(d),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(d){this.write(d)}done(d){this.end(d)}}const xmlReplacer=/["&'<>$\x80-\uFFFF]/g,xmlCodeMap=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),getCodePoint=String.prototype.codePointAt!=null?(u,d)=>u.codePointAt(d):(u,d)=>(u.charCodeAt(d)&64512)===55296?(u.charCodeAt(d)-55296)*1024+u.charCodeAt(d+1)-56320+65536:u.charCodeAt(d);function encodeXML(u){let d="",g=0,f;for(;(f=xmlReplacer.exec(u))!==null;){const b=f.index,m=u.charCodeAt(b),y=xmlCodeMap.get(m);y!==void 0?(d+=u.substring(g,b)+y,g=b+1):(d+=`${u.substring(g,b)}&#x${getCodePoint(u,b).toString(16)};`,g=xmlReplacer.lastIndex+=Number((m&64512)===55296))}return d+u.substr(g)}function getEscaper(u,d){return function(f){let b,m=0,y="";for(;b=u.exec(f);)m!==b.index&&(y+=f.substring(m,b.index)),y+=d.get(b[0].charCodeAt(0)),m=b.index+1;return y+f.substring(m)}}const escapeAttribute=getEscaper(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),escapeText=getEscaper(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(u=>[u.toLowerCase(),u])),attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(u=>[u.toLowerCase(),u])),unencodedElements=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function replaceQuotes(u){return u.replace(/"/g,"&quot;")}function formatAttributes(u,d){var g;if(!u)return;const f=((g=d.encodeEntities)!==null&&g!==void 0?g:d.decodeEntities)===!1?replaceQuotes:d.xmlMode||d.encodeEntities!=="utf8"?encodeXML:escapeAttribute;return Object.keys(u).map(b=>{var m,y;const k=(m=u[b])!==null&&m!==void 0?m:"";return d.xmlMode==="foreign"&&(b=(y=attributeNames.get(b))!==null&&y!==void 0?y:b),!d.emptyAttrs&&!d.xmlMode&&k===""?b:`${b}="${f(k)}"`}).join(" ")}const singleTag=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function render(u,d={}){const g="length"in u?u:[u];let f="";for(let b=0;b<g.length;b++)f+=renderNode(g[b],d);return f}function renderNode(u,d){switch(u.type){case Root:return render(u.children,d);case Doctype:case Directive:return renderDirective(u);case Comment$1:return renderComment(u);case CDATA$1:return renderCdata(u);case Script:case Style:case Tag:return renderTag(u,d);case Text$1:return renderText(u,d)}}const foreignModeIntegrationPoints=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),foreignElements=new Set(["svg","math"]);function renderTag(u,d){var g;d.xmlMode==="foreign"&&(u.name=(g=elementNames.get(u.name))!==null&&g!==void 0?g:u.name,u.parent&&foreignModeIntegrationPoints.has(u.parent.name)&&(d={...d,xmlMode:!1})),!d.xmlMode&&foreignElements.has(u.name)&&(d={...d,xmlMode:"foreign"});let f=`<${u.name}`;const b=formatAttributes(u.attribs,d);return b&&(f+=` ${b}`),u.children.length===0&&(d.xmlMode?d.selfClosingTags!==!1:d.selfClosingTags&&singleTag.has(u.name))?(d.xmlMode||(f+=" "),f+="/>"):(f+=">",u.children.length>0&&(f+=render(u.children,d)),(d.xmlMode||!singleTag.has(u.name))&&(f+=`</${u.name}>`)),f}function renderDirective(u){return`<${u.data}>`}function renderText(u,d){var g;let f=u.data||"";return((g=d.encodeEntities)!==null&&g!==void 0?g:d.decodeEntities)!==!1&&!(!d.xmlMode&&u.parent&&unencodedElements.has(u.parent.name))&&(f=d.xmlMode||d.encodeEntities!=="utf8"?encodeXML(f):escapeText(f)),f}function renderCdata(u){return`<![CDATA[${u.children[0].data}]]>`}function renderComment(u){return`<!--${u.data}-->`}function parseDocument(u,d){const g=new DomHandler(void 0,d);return new Parser(g,d).end(u),g.root}var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getAugmentedNamespace(u){if(u.__esModule)return u;var d=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(u).forEach(function(g){var f=Object.getOwnPropertyDescriptor(u,g);Object.defineProperty(d,g,f.get?f:{enumerable:!0,get:function(){return u[g]}})}),d}function commonjsRequire(u){throw new Error('Could not dynamically require "'+u+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var isMergeableObject=function(d){return isNonNullObject(d)&&!isSpecial(d)};function isNonNullObject(u){return!!u&&typeof u=="object"}function isSpecial(u){var d=Object.prototype.toString.call(u);return d==="[object RegExp]"||d==="[object Date]"||isReactElement(u)}var canUseSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(u){return u.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(u){return Array.isArray(u)?[]:{}}function cloneUnlessOtherwiseSpecified(u,d){return d.clone!==!1&&d.isMergeableObject(u)?deepmerge(emptyTarget(u),u,d):u}function defaultArrayMerge(u,d,g){return u.concat(d).map(function(f){return cloneUnlessOtherwiseSpecified(f,g)})}function getMergeFunction(u,d){if(!d.customMerge)return deepmerge;var g=d.customMerge(u);return typeof g=="function"?g:deepmerge}function getEnumerableOwnPropertySymbols(u){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(u).filter(function(d){return Object.propertyIsEnumerable.call(u,d)}):[]}function getKeys(u){return Object.keys(u).concat(getEnumerableOwnPropertySymbols(u))}function propertyIsOnObject(u,d){try{return d in u}catch{return!1}}function propertyIsUnsafe(u,d){return propertyIsOnObject(u,d)&&!(Object.hasOwnProperty.call(u,d)&&Object.propertyIsEnumerable.call(u,d))}function mergeObject(u,d,g){var f={};return g.isMergeableObject(u)&&getKeys(u).forEach(function(b){f[b]=cloneUnlessOtherwiseSpecified(u[b],g)}),getKeys(d).forEach(function(b){propertyIsUnsafe(u,b)||(propertyIsOnObject(u,b)&&g.isMergeableObject(d[b])?f[b]=getMergeFunction(b,g)(u[b],d[b],g):f[b]=cloneUnlessOtherwiseSpecified(d[b],g))}),f}function deepmerge(u,d,g){g=g||{},g.arrayMerge=g.arrayMerge||defaultArrayMerge,g.isMergeableObject=g.isMergeableObject||isMergeableObject,g.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var f=Array.isArray(d),b=Array.isArray(u),m=f===b;return m?f?g.arrayMerge(u,d,g):mergeObject(u,d,g):cloneUnlessOtherwiseSpecified(d,g)}deepmerge.all=function(d,g){if(!Array.isArray(d))throw new Error("first argument should be an array");return d.reduce(function(f,b){return deepmerge(f,b,g)},{})};var deepmerge_1=deepmerge,cjs=deepmerge_1;function limitedDepthRecursive(u,d,g=()=>{}){if(u===void 0){const f=function(...b){return d(f,...b)};return f}return u>=0?function(...f){return d(limitedDepthRecursive(u-1,d,g),...f)}:g}function trimCharacter(u,d){let g=0,f=u.length;for(;g<f&&u[g]===d;)++g;for(;f>g&&u[f-1]===d;)--f;return g>0||f<u.length?u.substring(g,f):u}function trimCharacterEnd(u,d){let g=u.length;for(;g>0&&u[g-1]===d;)--g;return g<u.length?u.substring(0,g):u}function unicodeEscape(u){return u.replace(/[\s\S]/g,d=>"\\u"+d.charCodeAt().toString(16).padStart(4,"0"))}function mergeDuplicatesPreferLast(u,d){const g=new Map;for(let f=u.length;f-- >0;){const b=u[f],m=d(b);g.set(m,g.has(m)?cjs(b,g.get(m),{arrayMerge:overwriteMerge$1}):b)}return[...g.values()].reverse()}const overwriteMerge$1=(u,d,g)=>[...d];function get(u,d){for(const g of d){if(!u)return;u=u[g]}return u}function numberToLetterSequence(u,d="a",g=26){const f=[];do u-=1,f.push(u%g),u=u/g>>0;while(u>0);const b=d.charCodeAt(0);return f.reverse().map(m=>String.fromCharCode(b+m)).join("")}const I=["I","X","C","M"],V=["V","L","D"];function numberToRoman(u){return[...u+""].map(d=>+d).reverse().map((d,g)=>d%5<4?(d<5?"":V[g])+I[g].repeat(d%5):I[g]+(d<5?V[g]:I[g+1])).reverse().join("")}class InlineTextBuilder{constructor(d,g=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=g||d.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=get(d,["longWordSplit","wrapCharacters"])||[],this.forceWrapOnLimit=get(d,["longWordSplit","forceWrapOnLimit"])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(d,g=!1){this.nextLineAvailableChars<=0&&!g&&this.startNewLine();const f=this.nextLineWords.length===0,b=d.length+(f?0:1);if(b<=this.nextLineAvailableChars||g)this.nextLineWords.push(d),this.nextLineAvailableChars-=b;else{const[m,...y]=this.splitLongWord(d);f||this.startNewLine(),this.nextLineWords.push(m),this.nextLineAvailableChars-=m.length;for(const k of y)this.startNewLine(),this.nextLineWords.push(k),this.nextLineAvailableChars-=k.length}}popWord(){const d=this.nextLineWords.pop();if(d!==void 0){const g=this.nextLineWords.length===0,f=d.length+(g?0:1);this.nextLineAvailableChars+=f}return d}concatWord(d,g=!1){if(this.wordBreakOpportunity&&d.length>this.nextLineAvailableChars)this.pushWord(d,g),this.wordBreakOpportunity=!1;else{const f=this.popWord();this.pushWord(f?f.concat(d):d,g)}}startNewLine(d=1){this.lines.push(this.nextLineWords),d>1&&this.lines.push(...Array.from({length:d-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return this.lines.length===0&&this.nextLineWords.length===0}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(d=>d.join(" ")).join(`
@@ -101,4 +101,4 @@ ${u}
101
101
  `)).trim();var FilePreview_vue_vue_type_style_index_0_lang="";const _sfc_main$3={components:{LogGz,PdfViewer,EmailViewer},data:()=>({open:!1,editMode:!1,downloadProgress:0,abortControl:void 0,type:void 0,file:void 0,filename:void 0,fileData:void 0,fileDataEdited:void 0,previewConfig:[{extensions:["png","jpg","jpeg","webp","avif"],type:"image",downloadType:"objectUrl"},{extensions:["mp3"],type:"audio",downloadType:"objectUrl"},{extensions:["mp4","ogg"],type:"video",downloadType:"objectUrl"},{extensions:["pdf"],type:"pdf",downloadType:"objectUrl"},{extensions:["txt"],type:"text",downloadType:"text"},{extensions:["md"],type:"markdown",downloadType:"text"},{extensions:["csv"],type:"csv",downloadType:"text"},{extensions:["json"],type:"json",downloadType:"text"},{extensions:["html"],type:"html",downloadType:"text"},{extensions:["log.gz"],type:"logs",downloadType:"blob"},{extensions:["eml"],type:"email",downloadType:"text"}]}),methods:{getType(u){for(const d of this.previewConfig)for(const g of d.extensions)if(u.toLowerCase().endsWith(g))return{type:d.type,downloadType:d.downloadType};return{type:"unknown",downloadType:"text"}},async openFile(u){if(bytesToMegabytes(u.size)>200){this.q.notify({message:"File is too big to preview.",color:"orange"});return}const d=this.getType(u.name);if(this.abortControl=new AbortController,await this.$router.push({name:"files-file",params:{bucket:this.$route.params.bucket,folder:this.$route.params.folder||ROOT_FOLDER,file:u.nameHash}}),this.filename=u.name,this.file=u,this.open=!0,d){this.type=d.type;const g=await apiHandler.downloadFile(this.$route.params.bucket,u.key,d,b=>{this.downloadProgress=b.loaded/b.total},this.abortControl);let f;if(d.downloadType==="objectUrl"){const b=new Blob([g.data]);f=URL.createObjectURL(b)}else d.downloadType,f=g.data;this.fileData=f}},close(){this.abortControl&&this.abortControl.abort(),this.cancelEdit(),this.$route.params.file&&(this.$route.params.folder===ROOT_FOLDER?this.$router.push({name:"files-home",params:{bucket:this.$route.params.bucket}}):this.$router.push({name:"files-folder",params:{bucket:this.$route.params.bucket,folder:this.$route.params.folder}})),this.type=void 0,this.fileData=void 0,this.filename=void 0,this.abortControl=void 0,this.downloadProgress=0},markdownParser(u){return parseMarkdown(u)},csvParser:u=>{let d="";const g=u.split(`
102
102
  `);if(g.length===0)return"<h2>Empty csv</h2>";for(const[f,b]of g.entries()){let m="";const y=b.split(/(\s*"[^"]+"\s*|\s*[^,]+|,)(?=,|$)/g).filter(k=>k!==""&&k!==",");for(const k of y)f===0?m+=`<th>${k.replaceAll('"',"")}</th>`:m+=`<td>${k.replaceAll('"',"")}</td>`;d+=`<tr>${m}</tr>`}return`<table class="table">${d}</table>`},enableEdit:function(){typeof this.fileData=="object"?this.fileDataEdited=JSON.stringify(this.fileData,null,2):this.fileDataEdited=this.fileData,this.editMode=!0},cancelEdit:function(){this.editMode=!1,this.fileDataEdited=void 0},validateEdit:(u,d)=>{if(u==="json")try{return JSON.parse(d),!0}catch{return!1}return!0},saveEdit:async function(){var b,m;if(!this.validateEdit(this.type,this.fileDataEdited)){this.q.notify({type:"negative",message:`Content is not valid ${this.type}.`});return}const d=this.q.notify({group:!1,spinner:!0,message:"Updating file...",caption:"0%",timeout:0}),g={};(b=this.file.httpMetadata)!=null&&b.contentType&&(g.type=(m=this.file.httpMetadata)==null?void 0:m.contentType);const f=new Blob([this.fileDataEdited],g);await apiHandler.uploadObjects(f,this.file.key,this.selectedBucket,y=>{d({caption:`${Number.parseInt(y.loaded*100/f.size)}%`})}),d({icon:"done",spinner:!1,caption:"100%",message:"File updated!",timeout:5e3}),this.cancelEdit(),this.openFile(this.file)}},computed:{selectedBucket:function(){return this.$route.params.bucket}},setup(){return{q:useQuasar()}}},_hoisted_1$1={class:"text-center q-my-lg"},_hoisted_2$1={class:"text-center q-my-lg"},_hoisted_3$1={key:0,class:"flex column",style:{height:"100%"}},_hoisted_4$1={class:"file-edit"},_hoisted_5$1=["src"],_hoisted_6$1={key:3,class:"text-center"},_hoisted_7$1={controls:""},_hoisted_8=["src"],_hoisted_9={key:4,class:"text-center"},_hoisted_10={controls:"",style:{"max-width":"100%",height:"auto"}},_hoisted_11=["src"],_hoisted_12=["innerHTML"],_hoisted_13=["innerHTML"],_hoisted_14=["innerHTML"],_hoisted_15=["innerHTML"],_hoisted_16=["innerHTML"],_hoisted_17={key:12,class:"flex column",style:{height:"100%","flex-wrap":"nowrap","max-width":"100%","line-break":"anywhere"}},_hoisted_18={class:"file-edit"},_hoisted_19=["innerHTML"];function _sfc_render$3(u,d,g,f,b,m){const y=resolveComponent("pdf-viewer"),k=resolveComponent("log-gz"),a=resolveComponent("email-viewer");return openBlock(),createBlock(QDialog,{modelValue:u.open,"onUpdate:modelValue":d[1]||(d[1]=q=>u.open=q),"full-width":"","full-height":"",onHide:m.close},{default:withCtx(()=>[createVNode(QCard,{class:"flex column"},{default:withCtx(()=>[createVNode(QCardSection,{class:"row items-center q-p-sm bg-grey-3",style:{"font-size":"20px"}},{default:withCtx(()=>[createBaseVNode("div",null,toDisplayString(u.filename),1),u.editMode?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(QBtn,{icon:"delete",label:"Cancel",size:"md",class:"q-ml-md",color:"red",dense:"",onClick:m.cancelEdit},null,8,["onClick"]),createVNode(QBtn,{icon:"save",label:"Save",size:"md",class:"q-ml-md",color:"green",dense:"",onClick:m.saveEdit},null,8,["onClick"])],64)):(openBlock(),createBlock(QBtn,{key:1,icon:"edit",label:"edit",size:"md",class:"q-ml-md",color:"orange",dense:"",onClick:m.enableEdit},null,8,["onClick"])),createVNode(QSpace),withDirectives(createVNode(QBtn,{icon:"close",size:"md",round:"",dense:""},null,512),[[ClosePopup]])]),_:1}),createVNode(QCardSection,{class:"scroll",style:{flex:"1"}},{default:withCtx(()=>[u.fileData===void 0&&u.type?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("div",_hoisted_1$1,[createVNode(QSpinner,{color:"primary",size:"3em"})]),createBaseVNode("div",_hoisted_2$1,[createVNode(QLinearProgress,{stripe:"",size:"10px",value:u.downloadProgress},null,8,["value"])])],64)):(openBlock(),createElementBlock(Fragment,{key:1},[u.editMode?(openBlock(),createElementBlock("div",_hoisted_3$1,[createVNode(QCard,{class:"bg-orange-2",flat:"",square:""},{default:withCtx(()=>[createVNode(QCardSection,null,{default:withCtx(()=>d[2]||(d[2]=[createTextVNode(" File editing is still in tests! ")])),_:1})]),_:1}),createBaseVNode("div",_hoisted_4$1,[createVNode(QInput,{modelValue:u.fileDataEdited,"onUpdate:modelValue":d[0]||(d[0]=q=>u.fileDataEdited=q),filled:"",outlined:"",type:"textarea"},null,8,["modelValue"])])])):u.type==="pdf"?(openBlock(),createBlock(y,{key:1,pdfUrl:u.fileData},null,8,["pdfUrl"])):u.type==="image"?(openBlock(),createElementBlock("img",{key:2,src:u.fileData,class:"preview-image"},null,8,_hoisted_5$1)):u.type==="audio"?(openBlock(),createElementBlock("div",_hoisted_6$1,[createBaseVNode("audio",_hoisted_7$1,[createBaseVNode("source",{src:u.fileData},null,8,_hoisted_8),d[3]||(d[3]=createTextVNode(" Your browser does not support the audio element. "))])])):u.type==="video"?(openBlock(),createElementBlock("div",_hoisted_9,[createBaseVNode("video",_hoisted_10,[createBaseVNode("source",{src:u.fileData},null,8,_hoisted_11),d[4]||(d[4]=createTextVNode(" Your browser does not support the video tag. "))])])):u.type==="text"?(openBlock(),createElementBlock("div",{key:5,innerHTML:u.fileData.replaceAll(`
103
103
  `,"<br>")},null,8,_hoisted_12)):u.type==="json"?(openBlock(),createElementBlock("pre",{key:6,innerHTML:JSON.stringify(u.fileData,null,2)},null,8,_hoisted_13)):u.type==="html"?(openBlock(),createElementBlock("pre",{key:7,innerHTML:u.fileData},null,8,_hoisted_14)):u.type==="markdown"?(openBlock(),createElementBlock("div",{key:8,class:"markdown",innerHTML:m.markdownParser(u.fileData)},null,8,_hoisted_15)):u.type==="csv"?(openBlock(),createElementBlock("div",{key:9,class:"markdown",innerHTML:m.csvParser(u.fileData)},null,8,_hoisted_16)):u.type==="logs"?(openBlock(),createBlock(k,{key:10,filedata:u.fileData},null,8,["filedata"])):u.type==="email"?(openBlock(),createBlock(a,{key:11,filedata:u.fileData},null,8,["filedata"])):u.fileData?(openBlock(),createElementBlock("div",_hoisted_17,[createVNode(QCard,{class:"bg-orange-2",flat:"",square:""},{default:withCtx(()=>[createVNode(QCardSection,null,{default:withCtx(()=>d[5]||(d[5]=[createTextVNode(" This in a unknown file type, opening as text. ")])),_:1})]),_:1}),createBaseVNode("div",_hoisted_18,[createBaseVNode("div",{innerHTML:u.fileData.replaceAll(`
104
- `,"<br>")},null,8,_hoisted_19)])])):createCommentVNode("",!0)],64))]),_:1})]),_:1})]),_:1},8,["modelValue","onHide"])}var FilePreview=_export_sfc(_sfc_main$3,[["render",_sfc_render$3]]),DragAndDrop_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2={data:()=>({isHover:!1,filelist:[],dragContainer:{top:0,bottom:0,left:0,right:0}}),computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},methods:{openFilesUploader(){this.$refs.filesUploader.click()},openFoldersUploader(){this.$refs.foldersUploader.click()},dragover(u){if(this.mainStore.apiReadonly||this.isHover===!0)return;const d=this.$refs.dragContainer.getBoundingClientRect();this.dragContainer={top:d.top,bottom:d.bottom,left:d.left,right:d.right},this.isHover=!0},dragleave(u){this.isHover!==!1&&(u.clientX<this.dragContainer.left||u.clientX>this.dragContainer.right||u.clientY>this.dragContainer.bottom||u.clientY<this.dragContainer.top)&&(this.isHover=!1)},inputFiles(u){this.uploadFiles({"":u.target.files})},inputFolders(u){const d={};for(const g of u.target.files){const f=g.webkitRelativePath.lastIndexOf("/"),b=g.webkitRelativePath.slice(0,f);d[b]===void 0&&(d[b]=[]),d[b].push(g)}this.uploadFiles(d)},async uploadFiles(u){let d=0,g=0;const f=[];for(const[k,a]of Object.entries(u)){if(k!==""){const q=`${this.selectedFolder+k}/`;await apiHandler.createFolder(q,this.selectedBucket)}d+=a.length;for(const q of a)f.push(q.name),g+=q.size}this.$bus.emit("fetchFiles");const b=this.q.notify({group:!1,spinner:!0,message:`Uploading files 1/${f.length}...`,caption:"0%",timeout:0});let m=0,y=0;for(const[k,a]of Object.entries(u)){b({message:`Uploading files ${m+1}/${f.length}...`,caption:`${Number.parseInt((m+1)*100/f.length)}%`});let q=this.selectedFolder+k;q.length>0&&q.slice(-1)!=="/"&&(q+="/"),(q==="/"||q===ROOT_FOLDER)&&(q="");for(const w of a){m+=1;const $=q+w.name,Q=95*1024*1024;if(w.size>Q){const{uploadId:C}=(await apiHandler.multipartCreate(w,$,this.selectedBucket)).data;let v=1;const J=[];for(let ae=0;ae<w.size;ae+=Q){const H=Math.min(ae+Q,w.size),Y=w.slice(ae,H),{data:G}=await apiHandler.multipartUpload(C,v,this.selectedBucket,$,Y,j=>{b({caption:`${Number.parseInt((y+ae+j.loaded)*100/g)}%`})});J.push(G),v+=1}await apiHandler.multipartComplete(w,$,this.selectedBucket,J,C)}else await apiHandler.uploadObjects(w,$,this.selectedBucket,C=>{b({caption:`${Number.parseInt((y+C.loaded)*100/g)}%`})});y+=w.size}}b({icon:"done",spinner:!1,caption:"100%",message:"Files Uploaded!",timeout:5e3}),this.$bus.emit("fetchFiles")},async traverseFileTree(u,d,g,f){if(d=d||"",u.isFile&&f>0)await new Promise((m,y)=>{u.file(k=>{g[d].push(k),m()})});else if(u.isDirectory){const b=d?`${d}/${u.name}`:u.name;g[b]===void 0&&(g[b]=[]);const m=u.createReader();await new Promise((k,a)=>{m.readEntries(async q=>{for(let w=0;w<q.length;w++)await this.traverseFileTree(q[w],b,g,f+1);k()})})}},async drop(u){if(!this.isHover)return;const d=u.dataTransfer.files,g=await u.dataTransfer.items,f={};for(const m of g){const y=m.webkitGetAsEntry();y&&await this.traverseFileTree(y,"",f,0)}const b=[];for(const m of d)f[m.name]===void 0&&b.push(m);f[""]=b,this.uploadFiles(f),this.isHover=!1}},mounted(){this.$bus.on("openFilesUploader",this.openFilesUploader),this.$bus.on("openFoldersUploader",this.openFoldersUploader)},beforeUnmount(){this.$bus.off("openFilesUploader"),this.$bus.off("openFoldersUploader")},setup(){return{mainStore:useMainStore(),q:useQuasar()}}};function _sfc_render$2(u,d,g,f,b,m){return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",{ref:"dragContainer",class:normalizeClass(["upload-box",{active:u.isHover}]),onDragover:d[0]||(d[0]=withModifiers((...y)=>m.dragover&&m.dragover(...y),["prevent"])),onDragleave:d[1]||(d[1]=withModifiers((...y)=>m.dragleave&&m.dragleave(...y),["prevent"])),onDrop:d[2]||(d[2]=withModifiers((...y)=>m.drop&&m.drop(...y),["prevent"]))},[renderSlot(u.$slots,"default",{},void 0,!0),d[5]||(d[5]=createBaseVNode("div",{class:"drop-files"},[createBaseVNode("div",{class:"box"},[createBaseVNode("h3",null,"Drop files to upload"),createBaseVNode("span",{class:"font-28"},[createBaseVNode("i",{class:"bi bi-cloud-upload-fill"})])])],-1))],34),createBaseVNode("input",{style:{display:"none"},onChange:d[3]||(d[3]=(...y)=>m.inputFiles&&m.inputFiles(...y)),type:"file",name:"files[]",ref:"filesUploader",multiple:""},null,544),createBaseVNode("input",{style:{display:"none"},onChange:d[4]||(d[4]=(...y)=>m.inputFolders&&m.inputFolders(...y)),type:"file",webkitdirectory:"",name:"files[]",ref:"foldersUploader",multiple:""},null,544)],64)}var DragAndDrop=_export_sfc(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-8e99a572"]]);const _sfc_main$1={name:"FileContextMenu",props:{prop:{}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},methods:{renameObject:function(){this.$emit("renameObject",this.prop.row)},updateMetadataObject:function(){this.$emit("updateMetadataObject",this.prop.row)},openObject:function(){this.$emit("openObject",this.prop.row)},deleteObject:function(){this.$emit("deleteObject",this.prop.row)},shareObject:async function(){let u;this.prop.row.type==="folder"?u=window.location.origin+this.$router.resolve({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(this.prop.row.key)}}).href:u=window.location.origin+this.$router.resolve({name:"files-file",params:{bucket:this.selectedBucket,folder:this.selectedFolder?encode(this.selectedFolder):ROOT_FOLDER,file:this.prop.row.nameHash}}).href;try{await navigator.clipboard.writeText(u),this.q.notify({message:"Link to file copied to clipboard!",timeout:5e3,type:"positive"})}catch(d){this.q.notify({message:`Failed to copy: ${d}`,timeout:5e3,type:"negative"})}},downloadObject:function(){const u=document.createElement("a");u.download=this.prop.row.name,u.href=`${this.mainStore.serverUrl}/api/buckets/${this.selectedBucket}/${encode(this.prop.row.key)}`,document.body.appendChild(u),u.click(),document.body.removeChild(u)}},setup(){return{mainStore:useMainStore(),q:useQuasar()}}};function _sfc_render$1(u,d,g,f,b,m){return openBlock(),createBlock(QList,{style:{"min-width":"100px"}},{default:withCtx(()=>[withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:m.openObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[0]||(d[0]=[createTextVNode("Open")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]),g.prop.row.type==="file"?withDirectives((openBlock(),createBlock(QItem,{key:0,clickable:"",onClick:m.downloadObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[1]||(d[1]=[createTextVNode("Download")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]):createCommentVNode("",!0),g.prop.row.type==="file"?withDirectives((openBlock(),createBlock(QItem,{key:1,clickable:"",onClick:m.renameObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[2]||(d[2]=[createTextVNode("Rename")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]):createCommentVNode("",!0),g.prop.row.type==="file"?withDirectives((openBlock(),createBlock(QItem,{key:2,clickable:"",onClick:m.updateMetadataObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[3]||(d[3]=[createTextVNode("Update Metadata")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]):createCommentVNode("",!0),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:m.shareObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[4]||(d[4]=[createTextVNode("Get sharable link")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:m.deleteObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[5]||(d[5]=[createTextVNode("Delete")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]])]),_:1})}var FileContextMenu=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]),FilesFolderPage_vue_vue_type_style_index_0_lang="";const _sfc_main=defineComponent({name:"FilesIndexPage",components:{FileContextMenu,FileOptions,DragAndDrop,FilePreview},data:()=>({loading:!1,rows:[],columns:[{name:"name",required:!0,label:"Name",align:"left",field:"name",sortable:!0,sort:(u,d,g,f)=>g.type==="folder"?f.type==="folder"?u.localeCompare(d):1:f.type==="folder"?-1:u.localeCompare(d)},{name:"lastModified",required:!0,label:"Last Modified",align:"left",field:"lastModified",sortable:!0,sort:(u,d,g,f)=>g.timestamp-f.timestamp},{name:"size",required:!0,label:"Size",align:"left",field:"size",sortable:!0,sort:(u,d,g,f)=>g.sizeRaw-f.sizeRaw},{name:"options",label:"",sortable:!1}]}),computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""},breadcrumbs:function(){return this.selectedFolder?[{name:this.selectedBucket,path:"/"},...this.selectedFolder.split("/").filter(u=>u!=="").map((u,d,g)=>({name:u,path:`${g.slice(0,d+1).join("/").replace("Home/","")}/`}))]:[{name:this.selectedBucket,path:"/"}]}},watch:{selectedBucket(u){this.fetchFiles()},selectedFolder(u){this.fetchFiles()}},methods:{openRowClick:function(u,d,g){u.preventDefault(),this.openObject(d)},openRowDlbClick:function(u,d,g){u.preventDefault(),this.$bus.emit("openFileDetails",d)},breadcrumbsClick:function(u){this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(u.path)}})},rowClick:function(u,d){d.type==="folder"?this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(d.key)}}):this.$refs.preview.openFile(d)},openObject:function(u){u.type==="folder"?this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(u.key)}}):this.$refs.preview.openFile(u)},renameObject:function(u){u.type==="folder"?this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(u.key)}}):this.$refs.preview.openFile(u)},fetchFiles:async function(){this.loading=!0,this.rows=await apiHandler.fetchFile(this.selectedBucket,this.selectedFolder,"/"),this.loading=!1},openPreviewFromKey:async function(){let u=`${decode(this.$route.params.file)}`;this.selectedFolder&&this.selectedFolder!==ROOT_FOLDER&&(u=`${this.selectedFolder}${decode(this.$route.params.file)}`);const d=await apiHandler.headFile(this.selectedBucket,u);this.$refs.preview.openFile(d)}},created(){this.fetchFiles()},mounted(){this.$refs.table.sort("name"),this.$bus.on("fetchFiles",this.fetchFiles),this.$route.params.file&&this.openPreviewFromKey()},beforeUnmount(){this.$bus.off("fetchFiles")},setup(){return{mainStore:useMainStore(),q:useQuasar()}}}),_hoisted_1={class:"q-pa-md"},_hoisted_2={class:"full-width q-my-lg"},_hoisted_3={class:"flex items-center justify-center"},_hoisted_4={key:0,class:"full-width q-my-lg"},_hoisted_5={class:"flex items-center justify-center"},_hoisted_6={class:"flex",style:{"align-items":"center"}},_hoisted_7={class:"text-right"};function _sfc_render(u,d,g,f,b,m){const y=resolveComponent("FileContextMenu"),k=resolveComponent("drag-and-drop"),a=resolveComponent("file-preview"),q=resolveComponent("file-options");return openBlock(),createElementBlock(Fragment,null,[createVNode(QPage,{class:""},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1,[createVNode(QBreadcrumbs,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.breadcrumbs,w=>(openBlock(),createBlock(QBreadcrumbsEl,{style:{cursor:"pointer"},key:w.name,label:w.name,onClick:$=>u.breadcrumbsClick(w)},null,8,["label","onClick"]))),128))]),_:1}),createVNode(k,{ref:"uploader"},{default:withCtx(()=>[createVNode(QTable,{ref:"table",rows:u.rows,columns:u.columns,"row-key":"name",loading:u.loading,"hide-pagination":!0,"rows-per-page-options":[0],"column-sort-order":"da",flat:!0,"table-class":"file-list",onRowDblclick:u.openRowClick,onRowClick:u.openRowDlbClick},{loading:withCtx(()=>[createBaseVNode("div",_hoisted_2,[createBaseVNode("h6",_hoisted_3,[createVNode(QSpinner,{color:"primary",size:"xl"})])])]),"no-data":withCtx(()=>[u.loading?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_4,[createBaseVNode("h6",_hoisted_5,[createVNode(QIcon,{name:"folder",color:"orange",size:"lg"}),d[0]||(d[0]=createTextVNode("This folder is empty"))])]))]),"body-cell-name":withCtx(w=>[createBaseVNode("td",_hoisted_6,[createVNode(QIcon,{name:w.row.icon,size:"sm",color:w.row.color,class:"q-mr-xs"},null,8,["name","color"]),createTextVNode(" "+toDisplayString(w.row.name),1)])]),"body-cell":withCtx(w=>[createVNode(QTd,{props:w},{default:withCtx(()=>[createTextVNode(toDisplayString(w.value),1)]),_:2},1032,["props"]),createVNode(QMenu,{"touch-position":"","context-menu":""},{default:withCtx(()=>[createVNode(y,{prop:w,onOpenObject:u.openObject,onDeleteObject:u.$refs.options.deleteObject,onRenameObject:u.$refs.options.renameObject,onUpdateMetadataObject:u.$refs.options.updateMetadataObject},null,8,["prop","onOpenObject","onDeleteObject","onRenameObject","onUpdateMetadataObject"])]),_:2},1024)]),"body-cell-options":withCtx(w=>[createBaseVNode("td",_hoisted_7,[createVNode(QBtn,{round:"",flat:"",icon:"more_vert",size:"sm"},{default:withCtx(()=>[createVNode(QMenu,null,{default:withCtx(()=>[createVNode(y,{prop:w,onOpenObject:u.openObject,onDeleteObject:u.$refs.options.deleteObject,onRenameObject:u.$refs.options.renameObject,onUpdateMetadataObject:u.$refs.options.updateMetadataObject},null,8,["prop","onOpenObject","onDeleteObject","onRenameObject","onUpdateMetadataObject"])]),_:2},1024)]),_:2},1024)])]),_:1},8,["rows","columns","loading","onRowDblclick","onRowClick"])]),_:1},512)])]),_:1}),createVNode(a,{ref:"preview"},null,512),createVNode(q,{ref:"options"},null,512)],64)}var FilesFolderPage=_export_sfc(_sfc_main,[["render",_sfc_render]]);const routes=[{path:"/auth",component:()=>__vitePreload(()=>import("./AuthLayout.69a601d4.js"),[]),children:[{path:"login",name:"login",component:()=>__vitePreload(()=>import("./LoginPage.7cae560f.js"),["assets/LoginPage.7cae560f.js","assets/auth-store.adb4e0f1.js"])}]},{path:"/",component:MainLayout,children:[{path:"/",name:"home",component:HomePage},{path:"/:bucket/files",name:"files-home",component:FilesFolderPage},{path:"/:bucket/files/:folder",name:"files-folder",component:FilesFolderPage},{path:"/:bucket/files/:folder/:file",name:"files-file",component:FilesFolderPage},{path:"/:bucket/email",name:"email-home",component:EmailFolderPage},{path:"/:bucket/email/:folder",name:"email-folder",component:EmailFolderPage},{path:"/:bucket/email/:folder/:file",name:"email-file",component:()=>__vitePreload(()=>import("./EmailFilePage.b9af5203.js"),["assets/EmailFilePage.b9af5203.js","assets/EmailFilePage.c4890c9c.css"])},{path:"/storage/:bucket",redirect:u=>({name:"files-home",params:{bucket:u.params.bucket}})},{path:"/storage/:bucket/:folder",redirect:u=>({name:"files-folder",params:{bucket:u.params.bucket,folder:u.params.folder}})},{path:"/storage/:bucket/:folder/:file",redirect:u=>({name:"files-file",params:{bucket:u.params.bucket,folder:u.params.folder,file:u.params.file}})}]},{path:"/:catchAll(.*)*",component:()=>__vitePreload(()=>import("./ErrorNotFound.e25d48e7.js"),[])}];var createRouter=()=>createRouter$1({scrollBehavior:()=>({left:0,top:0}),routes,history:createWebHistory("/")});async function createQuasarApp(u,d){const g=u(App);g.use(Quasar,d);const f=typeof createStore=="function"?await createStore({}):createStore;g.use(f);const b=markRaw(typeof createRouter=="function"?await createRouter({store:f}):createRouter);return f.use(({store:m})=>{m.router=b}),{app:g,store:f,router:b}}let uid=0;const defaults={},groups={},notificationsList={},positionClass={},emptyRE=/^\s*$/,notifRefs=[],invalidTimeoutValues=[void 0,null,!0,!1,""],positionList=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],badgePositions=["top-left","top-right","bottom-left","bottom-right"],notifTypes={positive:{icon:u=>u.iconSet.type.positive,color:"positive"},negative:{icon:u=>u.iconSet.type.negative,color:"negative"},warning:{icon:u=>u.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:u=>u.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function addNotification(u,d,g){if(!u)return logError("parameter required");let f;const b={textColor:"white"};if(u.ignoreDefaults!==!0&&Object.assign(b,defaults),isObject$1(u)===!1&&(b.type&&Object.assign(b,notifTypes[b.type]),u={message:u}),Object.assign(b,notifTypes[u.type||b.type],u),typeof b.icon=="function"&&(b.icon=b.icon(d)),b.spinner?(b.spinner===!0&&(b.spinner=QSpinner),b.spinner=markRaw(b.spinner)):b.spinner=!1,b.meta={hasMedia:Boolean(b.spinner!==!1||b.icon||b.avatar),hasText:hasContent(b.message)||hasContent(b.caption)},b.position){if(positionList.includes(b.position)===!1)return logError("wrong position",u)}else b.position="bottom";if(invalidTimeoutValues.includes(b.timeout)===!0)b.timeout=5e3;else{const a=Number(b.timeout);if(isNaN(a)||a<0)return logError("wrong timeout",u);b.timeout=Number.isFinite(a)?a:0}b.timeout===0?b.progress=!1:b.progress===!0&&(b.meta.progressClass="q-notification__progress"+(b.progressClass?` ${b.progressClass}`:""),b.meta.progressStyle={animationDuration:`${b.timeout+1e3}ms`});const m=(Array.isArray(u.actions)===!0?u.actions:[]).concat(u.ignoreDefaults!==!0&&Array.isArray(defaults.actions)===!0?defaults.actions:[]).concat(notifTypes[u.type]!==void 0&&Array.isArray(notifTypes[u.type].actions)===!0?notifTypes[u.type].actions:[]),{closeBtn:y}=b;if(y&&m.push({label:typeof y=="string"?y:d.lang.label.close}),b.actions=m.map(({handler:a,noDismiss:q,...w})=>({flat:!0,...w,onClick:typeof a=="function"?()=>{a(),q!==!0&&k()}:()=>{k()}})),b.multiLine===void 0&&(b.multiLine=b.actions.length>1),Object.assign(b.meta,{class:`q-notification row items-stretch q-notification--${b.multiLine===!0?"multi-line":"standard"}`+(b.color!==void 0?` bg-${b.color}`:"")+(b.textColor!==void 0?` text-${b.textColor}`:"")+(b.classes!==void 0?` ${b.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(b.multiLine===!0?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(b.multiLine===!0?"":" col"),leftClass:b.meta.hasText===!0?"additional":"single",attrs:{role:"alert",...b.attrs}}),b.group===!1?(b.group=void 0,b.meta.group=void 0):((b.group===void 0||b.group===!0)&&(b.group=[b.message,b.caption,b.multiline].concat(b.actions.map(a=>`${a.label}*${a.icon}`)).join("|")),b.meta.group=b.group+"|"+b.position),b.actions.length===0?b.actions=void 0:b.meta.actionsClass="q-notification__actions row items-center "+(b.multiLine===!0?"justify-end":"col-auto")+(b.meta.hasMedia===!0?" q-notification__actions--with-media":""),g!==void 0){g.notif.meta.timer&&(clearTimeout(g.notif.meta.timer),g.notif.meta.timer=void 0),b.meta.uid=g.notif.meta.uid;const a=notificationsList[b.position].value.indexOf(g.notif);notificationsList[b.position].value[a]=b}else{const a=groups[b.meta.group];if(a===void 0){if(b.meta.uid=uid++,b.meta.badge=1,["left","right","center"].indexOf(b.position)!==-1)notificationsList[b.position].value.splice(Math.floor(notificationsList[b.position].value.length/2),0,b);else{const q=b.position.indexOf("top")!==-1?"unshift":"push";notificationsList[b.position].value[q](b)}b.group!==void 0&&(groups[b.meta.group]=b)}else{if(a.meta.timer&&(clearTimeout(a.meta.timer),a.meta.timer=void 0),b.badgePosition!==void 0){if(badgePositions.includes(b.badgePosition)===!1)return logError("wrong badgePosition",u)}else b.badgePosition=`top-${b.position.indexOf("left")!==-1?"right":"left"}`;b.meta.uid=a.meta.uid,b.meta.badge=a.meta.badge+1,b.meta.badgeClass=`q-notification__badge q-notification__badge--${b.badgePosition}`+(b.badgeColor!==void 0?` bg-${b.badgeColor}`:"")+(b.badgeTextColor!==void 0?` text-${b.badgeTextColor}`:"")+(b.badgeClass?` ${b.badgeClass}`:"");const q=notificationsList[b.position].value.indexOf(a);notificationsList[b.position].value[q]=groups[b.meta.group]=b}}const k=()=>{removeNotification(b),f=void 0};if(b.timeout>0&&(b.meta.timer=setTimeout(()=>{b.meta.timer=void 0,k()},b.timeout+1e3)),b.group!==void 0)return a=>{a!==void 0?logError("trying to update a grouped one which is forbidden",u):k()};if(f={dismiss:k,config:u,notif:b},g!==void 0){Object.assign(g,f);return}return a=>{if(f!==void 0)if(a===void 0)f.dismiss();else{const q=Object.assign({},f.config,a,{group:!1,position:b.position});addNotification(q,d,f)}}}function removeNotification(u){u.meta.timer&&(clearTimeout(u.meta.timer),u.meta.timer=void 0);const d=notificationsList[u.position].value.indexOf(u);if(d!==-1){u.group!==void 0&&delete groups[u.meta.group];const g=notifRefs[""+u.meta.uid];if(g){const{width:f,height:b}=getComputedStyle(g);g.style.left=`${g.offsetLeft}px`,g.style.width=f,g.style.height=b}notificationsList[u.position].value.splice(d,1),typeof u.onDismiss=="function"&&u.onDismiss()}}function hasContent(u){return u!=null&&emptyRE.test(u)!==!0}function logError(u,d){return console.error(`Notify: ${u}`,d),!1}function getComponent(){return createComponent({name:"QNotifications",devtools:{hide:!0},setup(){return()=>h("div",{class:"q-notifications"},positionList.map(u=>h(TransitionGroup,{key:u,class:positionClass[u],tag:"div",name:`q-notification--${u}`},()=>notificationsList[u].value.map(d=>{const g=d.meta,f=[];if(g.hasMedia===!0&&(d.spinner!==!1?f.push(h(d.spinner,{class:"q-notification__spinner q-notification__spinner--"+g.leftClass,color:d.spinnerColor,size:d.spinnerSize})):d.icon?f.push(h(QIcon,{class:"q-notification__icon q-notification__icon--"+g.leftClass,name:d.icon,color:d.iconColor,size:d.iconSize,role:"img"})):d.avatar&&f.push(h(QAvatar,{class:"q-notification__avatar q-notification__avatar--"+g.leftClass},()=>h("img",{src:d.avatar,"aria-hidden":"true"})))),g.hasText===!0){let m;const y={class:"q-notification__message col"};if(d.html===!0)y.innerHTML=d.caption?`<div>${d.message}</div><div class="q-notification__caption">${d.caption}</div>`:d.message;else{const k=[d.message];m=d.caption?[h("div",k),h("div",{class:"q-notification__caption"},[d.caption])]:k}f.push(h("div",y,m))}const b=[h("div",{class:g.contentClass},f)];return d.progress===!0&&b.push(h("div",{key:`${g.uid}|p|${g.badge}`,class:g.progressClass,style:g.progressStyle})),d.actions!==void 0&&b.push(h("div",{class:g.actionsClass},d.actions.map(m=>h(QBtn,m)))),g.badge>1&&b.push(h("div",{key:`${g.uid}|${g.badge}`,class:d.meta.badgeClass,style:d.badgeStyle},[g.badge])),h("div",{ref:m=>{notifRefs[""+g.uid]=m},key:g.uid,class:g.class,...g.attrs},[h("div",{class:g.wrapperClass},b)])}))))}})}var Notify={setDefaults(u){isObject$1(u)===!0&&Object.assign(defaults,u)},registerType(u,d){isObject$1(d)===!0&&(notifTypes[u]=d)},install({$q:u,parentApp:d}){if(u.notify=this.create=g=>addNotification(g,u),u.notify.setDefaults=this.setDefaults,u.notify.registerType=this.registerType,u.config.notify!==void 0&&this.setDefaults(u.config.notify),this.__installed!==!0){positionList.forEach(f=>{notificationsList[f]=ref([]);const b=["left","center","right"].includes(f)===!0?"center":f.indexOf("top")!==-1?"top":"bottom",m=f.indexOf("left")!==-1?"start":f.indexOf("right")!==-1?"end":"center",y=["left","right"].includes(f)?`items-${f==="left"?"start":"end"} justify-center`:f==="center"?"flex-center":`items-${m}`;positionClass[f]=`q-notifications__list q-notifications__list--${b} fixed column no-wrap ${y}`});const g=createGlobalNode("q-notify");createChildApp(getComponent(),d).mount(g)}}},quasarUserOptions={config:{},plugins:{Notify}};let appPrefetch=typeof App.preFetch=="function"?App.preFetch:App.__c!==void 0&&typeof App.__c.preFetch=="function"?App.__c.preFetch:!1;function getMatchedComponents(u,d){const g=u?u.matched?u:d.resolve(u).route:d.currentRoute.value;if(!g)return[];const f=g.matched.filter(b=>b.components!==void 0);return f.length===0?[]:Array.prototype.concat.apply([],f.map(b=>Object.keys(b.components).map(m=>{const y=b.components[m];return{path:b.path,c:y}})))}function addPreFetchHooks({router:u,store:d,publicPath:g}){u.beforeResolve((f,b,m)=>{const y=window.location.href.replace(window.location.origin,""),k=getMatchedComponents(f,u),a=getMatchedComponents(b,u);let q=!1;const w=k.filter((v,J)=>q||(q=!a[J]||a[J].c!==v.c||v.path.indexOf("/:")>-1)).filter(v=>v.c!==void 0&&(typeof v.c.preFetch=="function"||v.c.__c!==void 0&&typeof v.c.__c.preFetch=="function")).map(v=>v.c.__c!==void 0?v.c.__c.preFetch:v.c.preFetch);if(appPrefetch!==!1&&(w.unshift(appPrefetch),appPrefetch=!1),w.length===0)return m();let $=!1;const Q=v=>{$=!0,m(v)},C=()=>{$===!1&&m()};w.reduce((v,J)=>v.then(()=>$===!1&&J({store:d,currentRoute:f,previousRoute:b,redirect:Q,urlPath:y,publicPath:g})),Promise.resolve()).then(C).catch(v=>{console.error(v),C()})})}const publicPath="/";async function start({app:u,router:d,store:g},f){let b=!1;const m=a=>{try{return d.resolve(a).href}catch{}return Object(a)===a?null:a},y=a=>{if(b=!0,typeof a=="string"&&/^https?:\/\//.test(a)){window.location.href=a;return}const q=m(a);q!==null&&(window.location.href=q)},k=window.location.href.replace(window.location.origin,"");for(let a=0;b===!1&&a<f.length;a++)try{await f[a]({app:u,router:d,store:g,ssrContext:null,redirect:y,urlPath:k,publicPath})}catch(q){if(q&&q.url){y(q.url);return}console.error("[Quasar] boot error:",q);return}b!==!0&&(u.use(d),addPreFetchHooks({router:d,store:g}),u.mount("#q-app"))}createQuasarApp(createApp,quasarUserOptions).then(u=>{const[d,g]=Promise.allSettled!==void 0?["allSettled",f=>f.map(b=>{if(b.status==="rejected"){console.error("[Quasar] boot error:",b.reason);return}return b.value.default})]:["all",f=>f.map(b=>b.default)];return Promise[d]([__vitePreload(()=>Promise.resolve().then(function(){return axios$1}),void 0),__vitePreload(()=>import("./auth.888ee5c0.js"),["assets/auth.888ee5c0.js","assets/auth-store.adb4e0f1.js"]),__vitePreload(()=>import("./bus.f801e67b.js"),[])]).then(f=>{const b=g(f).filter(m=>typeof m=="function");start(u,b)})});export{cleanEvt as $,toDisplayString as A,createCommentVNode as B,QForm as C,QInput as D,QBtn as E,QCard as F,useAnchorStaticProps as G,useModelToggleProps as H,useTransitionProps as I,validatePosition as J,validateOffset as K,scrollTargetProp as L,useModelToggleEmits as M,ref as N,parsePosition as O,useTick as P,QLayout as Q,useTimeout as R,useTransition as S,useScrollTarget as T,useAnchor as U,useModelToggle as V,usePortal as W,watch as X,onBeforeUnmount as Y,removeClickOutside as Z,_export_sfc as _,api as a,setPosition as a0,clearSelection as a1,addEvt as a2,getScrollTarget as a3,Transition as a4,addClickOutside as a5,stopAndPrevent as a6,decode as a7,encode as a8,timeSince as a9,apiHandler as aa,useQuasar as ab,createElementBlock as ac,QSpinner as ad,Fragment as ae,QCardActions as af,QSeparator as ag,renderList as ah,boot as b,defineComponent as c,defineStore as d,createBlock as e,createVNode as f,QPageContainer as g,createComponent as h,useDarkProps as i,useDark as j,computed as k,h as l,hSlot as m,getCurrentInstance as n,openBlock as o,useCheckboxProps as p,useCheckboxEmits as q,resolveComponent as r,useCheckbox as s,QIcon as t,useMainStore as u,QPage as v,withCtx as w,QCardSection as x,createBaseVNode as y,createTextVNode as z};
104
+ `,"<br>")},null,8,_hoisted_19)])])):createCommentVNode("",!0)],64))]),_:1})]),_:1})]),_:1},8,["modelValue","onHide"])}var FilePreview=_export_sfc(_sfc_main$3,[["render",_sfc_render$3]]),DragAndDrop_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2={data:()=>({isHover:!1,filelist:[],dragContainer:{top:0,bottom:0,left:0,right:0}}),computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},methods:{openFilesUploader(){this.$refs.filesUploader.click()},openFoldersUploader(){this.$refs.foldersUploader.click()},dragover(u){if(this.mainStore.apiReadonly||this.isHover===!0)return;const d=this.$refs.dragContainer.getBoundingClientRect();this.dragContainer={top:d.top,bottom:d.bottom,left:d.left,right:d.right},this.isHover=!0},dragleave(u){this.isHover!==!1&&(u.clientX<this.dragContainer.left||u.clientX>this.dragContainer.right||u.clientY>this.dragContainer.bottom||u.clientY<this.dragContainer.top)&&(this.isHover=!1)},inputFiles(u){this.uploadFiles({"":u.target.files})},inputFolders(u){const d={};for(const g of u.target.files){const f=g.webkitRelativePath.lastIndexOf("/"),b=g.webkitRelativePath.slice(0,f);d[b]===void 0&&(d[b]=[]),d[b].push(g)}this.uploadFiles(d)},async uploadFiles(u){let d=0,g=0;const f=[];for(const[k,a]of Object.entries(u)){if(k!==""){const q=`${this.selectedFolder+k}/`;await apiHandler.createFolder(q,this.selectedBucket)}d+=a.length;for(const q of a)f.push(q.name),g+=q.size}this.$bus.emit("fetchFiles");const b=this.q.notify({group:!1,spinner:!0,message:`Uploading files 1/${f.length}...`,caption:"0%",timeout:0});let m=0,y=0;for(const[k,a]of Object.entries(u)){b({message:`Uploading files ${m+1}/${f.length}...`,caption:`${Number.parseInt((m+1)*100/f.length)}%`});let q=this.selectedFolder+k;q.length>0&&q.slice(-1)!=="/"&&(q+="/"),(q==="/"||q===ROOT_FOLDER)&&(q="");for(const w of a){m+=1;const $=q+w.name,Q=95*1024*1024;if(w.size>Q){const{uploadId:C}=(await apiHandler.multipartCreate(w,$,this.selectedBucket)).data;let v=1;const J=[];for(let ae=0;ae<w.size;ae+=Q){const H=Math.min(ae+Q,w.size),Y=w.slice(ae,H),{data:G}=await apiHandler.multipartUpload(C,v,this.selectedBucket,$,Y,j=>{b({caption:`${Number.parseInt((y+ae+j.loaded)*100/g)}%`})});J.push(G),v+=1}await apiHandler.multipartComplete(w,$,this.selectedBucket,J,C)}else await apiHandler.uploadObjects(w,$,this.selectedBucket,C=>{b({caption:`${Number.parseInt((y+C.loaded)*100/g)}%`})});y+=w.size}}b({icon:"done",spinner:!1,caption:"100%",message:"Files Uploaded!",timeout:5e3}),this.$bus.emit("fetchFiles")},async traverseFileTree(u,d,g,f){if(d=d||"",u.isFile&&f>0)await new Promise((m,y)=>{u.file(k=>{g[d].push(k),m()})});else if(u.isDirectory){const b=d?`${d}/${u.name}`:u.name;g[b]===void 0&&(g[b]=[]);const m=u.createReader();await new Promise((k,a)=>{m.readEntries(async q=>{for(let w=0;w<q.length;w++)await this.traverseFileTree(q[w],b,g,f+1);k()})})}},async drop(u){if(!this.isHover)return;const d=u.dataTransfer.files,g=await u.dataTransfer.items,f={};for(const m of g){const y=m.webkitGetAsEntry();y&&await this.traverseFileTree(y,"",f,0)}const b=[];for(const m of d)f[m.name]===void 0&&b.push(m);f[""]=b,this.uploadFiles(f),this.isHover=!1}},mounted(){this.$bus.on("openFilesUploader",this.openFilesUploader),this.$bus.on("openFoldersUploader",this.openFoldersUploader)},beforeUnmount(){this.$bus.off("openFilesUploader"),this.$bus.off("openFoldersUploader")},setup(){return{mainStore:useMainStore(),q:useQuasar()}}};function _sfc_render$2(u,d,g,f,b,m){return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",{ref:"dragContainer",class:normalizeClass(["upload-box",{active:u.isHover}]),onDragover:d[0]||(d[0]=withModifiers((...y)=>m.dragover&&m.dragover(...y),["prevent"])),onDragleave:d[1]||(d[1]=withModifiers((...y)=>m.dragleave&&m.dragleave(...y),["prevent"])),onDrop:d[2]||(d[2]=withModifiers((...y)=>m.drop&&m.drop(...y),["prevent"]))},[renderSlot(u.$slots,"default",{},void 0,!0),d[5]||(d[5]=createBaseVNode("div",{class:"drop-files"},[createBaseVNode("div",{class:"box"},[createBaseVNode("h3",null,"Drop files to upload"),createBaseVNode("span",{class:"font-28"},[createBaseVNode("i",{class:"bi bi-cloud-upload-fill"})])])],-1))],34),createBaseVNode("input",{style:{display:"none"},onChange:d[3]||(d[3]=(...y)=>m.inputFiles&&m.inputFiles(...y)),type:"file",name:"files[]",ref:"filesUploader",multiple:""},null,544),createBaseVNode("input",{style:{display:"none"},onChange:d[4]||(d[4]=(...y)=>m.inputFolders&&m.inputFolders(...y)),type:"file",webkitdirectory:"",name:"files[]",ref:"foldersUploader",multiple:""},null,544)],64)}var DragAndDrop=_export_sfc(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-8e99a572"]]);const _sfc_main$1={name:"FileContextMenu",props:{prop:{}},computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""}},methods:{renameObject:function(){this.$emit("renameObject",this.prop.row)},updateMetadataObject:function(){this.$emit("updateMetadataObject",this.prop.row)},openObject:function(){this.$emit("openObject",this.prop.row)},deleteObject:function(){this.$emit("deleteObject",this.prop.row)},shareObject:async function(){let u;this.prop.row.type==="folder"?u=window.location.origin+this.$router.resolve({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(this.prop.row.key)}}).href:u=window.location.origin+this.$router.resolve({name:"files-file",params:{bucket:this.selectedBucket,folder:this.selectedFolder?encode(this.selectedFolder):ROOT_FOLDER,file:this.prop.row.nameHash}}).href;try{await navigator.clipboard.writeText(u),this.q.notify({message:"Link to file copied to clipboard!",timeout:5e3,type:"positive"})}catch(d){this.q.notify({message:`Failed to copy: ${d}`,timeout:5e3,type:"negative"})}},downloadObject:function(){const u=document.createElement("a");u.download=this.prop.row.name,u.href=`${this.mainStore.serverUrl}/api/buckets/${this.selectedBucket}/${encode(this.prop.row.key)}`,document.body.appendChild(u),u.click(),document.body.removeChild(u)}},setup(){return{mainStore:useMainStore(),q:useQuasar()}}};function _sfc_render$1(u,d,g,f,b,m){return openBlock(),createBlock(QList,{style:{"min-width":"100px"}},{default:withCtx(()=>[withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:m.openObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[0]||(d[0]=[createTextVNode("Open")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]),g.prop.row.type==="file"?withDirectives((openBlock(),createBlock(QItem,{key:0,clickable:"",onClick:m.downloadObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[1]||(d[1]=[createTextVNode("Download")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]):createCommentVNode("",!0),g.prop.row.type==="file"?withDirectives((openBlock(),createBlock(QItem,{key:1,clickable:"",onClick:m.renameObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[2]||(d[2]=[createTextVNode("Rename")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]):createCommentVNode("",!0),g.prop.row.type==="file"?withDirectives((openBlock(),createBlock(QItem,{key:2,clickable:"",onClick:m.updateMetadataObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[3]||(d[3]=[createTextVNode("Update Metadata")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]):createCommentVNode("",!0),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:m.shareObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[4]||(d[4]=[createTextVNode("Get sharable link")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]]),withDirectives((openBlock(),createBlock(QItem,{clickable:"",onClick:m.deleteObject},{default:withCtx(()=>[createVNode(QItemSection,null,{default:withCtx(()=>d[5]||(d[5]=[createTextVNode("Delete")])),_:1})]),_:1},8,["onClick"])),[[ClosePopup]])]),_:1})}var FileContextMenu=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]),FilesFolderPage_vue_vue_type_style_index_0_lang="";const _sfc_main=defineComponent({name:"FilesIndexPage",components:{FileContextMenu,FileOptions,DragAndDrop,FilePreview},data:()=>({loading:!1,rows:[],columns:[{name:"name",required:!0,label:"Name",align:"left",field:"name",sortable:!0,sort:(u,d,g,f)=>g.type==="folder"?f.type==="folder"?u.localeCompare(d):1:f.type==="folder"?-1:u.localeCompare(d)},{name:"lastModified",required:!0,label:"Last Modified",align:"left",field:"lastModified",sortable:!0,sort:(u,d,g,f)=>g.timestamp-f.timestamp},{name:"size",required:!0,label:"Size",align:"left",field:"size",sortable:!0,sort:(u,d,g,f)=>g.sizeRaw-f.sizeRaw},{name:"options",label:"",sortable:!1}]}),computed:{selectedBucket:function(){return this.$route.params.bucket},selectedFolder:function(){return this.$route.params.folder&&this.$route.params.folder!==ROOT_FOLDER?decode(this.$route.params.folder):""},breadcrumbs:function(){return this.selectedFolder?[{name:this.selectedBucket,path:"/"},...this.selectedFolder.split("/").filter(u=>u!=="").map((u,d,g)=>({name:u,path:`${g.slice(0,d+1).join("/").replace("Home/","")}/`}))]:[{name:this.selectedBucket,path:"/"}]}},watch:{selectedBucket(u){this.fetchFiles()},selectedFolder(u){this.fetchFiles()}},methods:{openRowClick:function(u,d,g){u.preventDefault(),this.openObject(d)},openRowDlbClick:function(u,d,g){u.preventDefault(),this.$bus.emit("openFileDetails",d)},breadcrumbsClick:function(u){this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(u.path)}})},rowClick:function(u,d){d.type==="folder"?this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(d.key)}}):this.$refs.preview.openFile(d)},openObject:function(u){u.type==="folder"?this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(u.key)}}):this.$refs.preview.openFile(u)},renameObject:function(u){u.type==="folder"?this.$router.push({name:"files-folder",params:{bucket:this.selectedBucket,folder:encode(u.key)}}):this.$refs.preview.openFile(u)},fetchFiles:async function(){this.loading=!0,this.rows=await apiHandler.fetchFile(this.selectedBucket,this.selectedFolder,"/"),this.loading=!1},openPreviewFromKey:async function(){let u=`${decode(this.$route.params.file)}`;this.selectedFolder&&this.selectedFolder!==ROOT_FOLDER&&(u=`${this.selectedFolder}${decode(this.$route.params.file)}`);const d=await apiHandler.headFile(this.selectedBucket,u);this.$refs.preview.openFile(d)}},created(){this.fetchFiles()},mounted(){this.$refs.table.sort("name"),this.$bus.on("fetchFiles",this.fetchFiles),this.$route.params.file&&this.openPreviewFromKey()},beforeUnmount(){this.$bus.off("fetchFiles")},setup(){return{mainStore:useMainStore(),q:useQuasar()}}}),_hoisted_1={class:"q-pa-md"},_hoisted_2={class:"full-width q-my-lg"},_hoisted_3={class:"flex items-center justify-center"},_hoisted_4={key:0,class:"full-width q-my-lg"},_hoisted_5={class:"flex items-center justify-center"},_hoisted_6={class:"flex",style:{"align-items":"center"}},_hoisted_7={class:"text-right"};function _sfc_render(u,d,g,f,b,m){const y=resolveComponent("FileContextMenu"),k=resolveComponent("drag-and-drop"),a=resolveComponent("file-preview"),q=resolveComponent("file-options");return openBlock(),createElementBlock(Fragment,null,[createVNode(QPage,{class:""},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1,[createVNode(QBreadcrumbs,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.breadcrumbs,w=>(openBlock(),createBlock(QBreadcrumbsEl,{style:{cursor:"pointer"},key:w.name,label:w.name,onClick:$=>u.breadcrumbsClick(w)},null,8,["label","onClick"]))),128))]),_:1}),createVNode(k,{ref:"uploader"},{default:withCtx(()=>[createVNode(QTable,{ref:"table",rows:u.rows,columns:u.columns,"row-key":"name",loading:u.loading,"hide-pagination":!0,"rows-per-page-options":[0],"column-sort-order":"da",flat:!0,"table-class":"file-list",onRowDblclick:u.openRowClick,onRowClick:u.openRowDlbClick},{loading:withCtx(()=>[createBaseVNode("div",_hoisted_2,[createBaseVNode("h6",_hoisted_3,[createVNode(QSpinner,{color:"primary",size:"xl"})])])]),"no-data":withCtx(()=>[u.loading?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_4,[createBaseVNode("h6",_hoisted_5,[createVNode(QIcon,{name:"folder",color:"orange",size:"lg"}),d[0]||(d[0]=createTextVNode("This folder is empty"))])]))]),"body-cell-name":withCtx(w=>[createBaseVNode("td",_hoisted_6,[createVNode(QIcon,{name:w.row.icon,size:"sm",color:w.row.color,class:"q-mr-xs"},null,8,["name","color"]),createTextVNode(" "+toDisplayString(w.row.name),1)])]),"body-cell":withCtx(w=>[createVNode(QTd,{props:w},{default:withCtx(()=>[createTextVNode(toDisplayString(w.value),1)]),_:2},1032,["props"]),createVNode(QMenu,{"touch-position":"","context-menu":""},{default:withCtx(()=>[createVNode(y,{prop:w,onOpenObject:u.openObject,onDeleteObject:u.$refs.options.deleteObject,onRenameObject:u.$refs.options.renameObject,onUpdateMetadataObject:u.$refs.options.updateMetadataObject},null,8,["prop","onOpenObject","onDeleteObject","onRenameObject","onUpdateMetadataObject"])]),_:2},1024)]),"body-cell-options":withCtx(w=>[createBaseVNode("td",_hoisted_7,[createVNode(QBtn,{round:"",flat:"",icon:"more_vert",size:"sm"},{default:withCtx(()=>[createVNode(QMenu,null,{default:withCtx(()=>[createVNode(y,{prop:w,onOpenObject:u.openObject,onDeleteObject:u.$refs.options.deleteObject,onRenameObject:u.$refs.options.renameObject,onUpdateMetadataObject:u.$refs.options.updateMetadataObject},null,8,["prop","onOpenObject","onDeleteObject","onRenameObject","onUpdateMetadataObject"])]),_:2},1024)]),_:2},1024)])]),_:1},8,["rows","columns","loading","onRowDblclick","onRowClick"])]),_:1},512)])]),_:1}),createVNode(a,{ref:"preview"},null,512),createVNode(q,{ref:"options"},null,512)],64)}var FilesFolderPage=_export_sfc(_sfc_main,[["render",_sfc_render]]);const routes=[{path:"/auth",component:()=>__vitePreload(()=>import("./AuthLayout.f3de3475.js"),[]),children:[{path:"login",name:"login",component:()=>__vitePreload(()=>import("./LoginPage.228795ec.js"),["assets/LoginPage.228795ec.js","assets/auth-store.3a30d58f.js"])}]},{path:"/",component:MainLayout,children:[{path:"/",name:"home",component:HomePage},{path:"/:bucket/files",name:"files-home",component:FilesFolderPage},{path:"/:bucket/files/:folder",name:"files-folder",component:FilesFolderPage},{path:"/:bucket/files/:folder/:file",name:"files-file",component:FilesFolderPage},{path:"/:bucket/email",name:"email-home",component:EmailFolderPage},{path:"/:bucket/email/:folder",name:"email-folder",component:EmailFolderPage},{path:"/:bucket/email/:folder/:file",name:"email-file",component:()=>__vitePreload(()=>import("./EmailFilePage.510911e0.js"),["assets/EmailFilePage.510911e0.js","assets/EmailFilePage.c4890c9c.css"])},{path:"/storage/:bucket",redirect:u=>({name:"files-home",params:{bucket:u.params.bucket}})},{path:"/storage/:bucket/:folder",redirect:u=>({name:"files-folder",params:{bucket:u.params.bucket,folder:u.params.folder}})},{path:"/storage/:bucket/:folder/:file",redirect:u=>({name:"files-file",params:{bucket:u.params.bucket,folder:u.params.folder,file:u.params.file}})}]},{path:"/:catchAll(.*)*",component:()=>__vitePreload(()=>import("./ErrorNotFound.6f605de5.js"),[])}];var createRouter=()=>createRouter$1({scrollBehavior:()=>({left:0,top:0}),routes,history:createWebHistory("/")});async function createQuasarApp(u,d){const g=u(App);g.use(Quasar,d);const f=typeof createStore=="function"?await createStore({}):createStore;g.use(f);const b=markRaw(typeof createRouter=="function"?await createRouter({store:f}):createRouter);return f.use(({store:m})=>{m.router=b}),{app:g,store:f,router:b}}let uid=0;const defaults={},groups={},notificationsList={},positionClass={},emptyRE=/^\s*$/,notifRefs=[],invalidTimeoutValues=[void 0,null,!0,!1,""],positionList=["top-left","top-right","bottom-left","bottom-right","top","bottom","left","right","center"],badgePositions=["top-left","top-right","bottom-left","bottom-right"],notifTypes={positive:{icon:u=>u.iconSet.type.positive,color:"positive"},negative:{icon:u=>u.iconSet.type.negative,color:"negative"},warning:{icon:u=>u.iconSet.type.warning,color:"warning",textColor:"dark"},info:{icon:u=>u.iconSet.type.info,color:"info"},ongoing:{group:!1,timeout:0,spinner:!0,color:"grey-8"}};function addNotification(u,d,g){if(!u)return logError("parameter required");let f;const b={textColor:"white"};if(u.ignoreDefaults!==!0&&Object.assign(b,defaults),isObject$1(u)===!1&&(b.type&&Object.assign(b,notifTypes[b.type]),u={message:u}),Object.assign(b,notifTypes[u.type||b.type],u),typeof b.icon=="function"&&(b.icon=b.icon(d)),b.spinner?(b.spinner===!0&&(b.spinner=QSpinner),b.spinner=markRaw(b.spinner)):b.spinner=!1,b.meta={hasMedia:Boolean(b.spinner!==!1||b.icon||b.avatar),hasText:hasContent(b.message)||hasContent(b.caption)},b.position){if(positionList.includes(b.position)===!1)return logError("wrong position",u)}else b.position="bottom";if(invalidTimeoutValues.includes(b.timeout)===!0)b.timeout=5e3;else{const a=Number(b.timeout);if(isNaN(a)||a<0)return logError("wrong timeout",u);b.timeout=Number.isFinite(a)?a:0}b.timeout===0?b.progress=!1:b.progress===!0&&(b.meta.progressClass="q-notification__progress"+(b.progressClass?` ${b.progressClass}`:""),b.meta.progressStyle={animationDuration:`${b.timeout+1e3}ms`});const m=(Array.isArray(u.actions)===!0?u.actions:[]).concat(u.ignoreDefaults!==!0&&Array.isArray(defaults.actions)===!0?defaults.actions:[]).concat(notifTypes[u.type]!==void 0&&Array.isArray(notifTypes[u.type].actions)===!0?notifTypes[u.type].actions:[]),{closeBtn:y}=b;if(y&&m.push({label:typeof y=="string"?y:d.lang.label.close}),b.actions=m.map(({handler:a,noDismiss:q,...w})=>({flat:!0,...w,onClick:typeof a=="function"?()=>{a(),q!==!0&&k()}:()=>{k()}})),b.multiLine===void 0&&(b.multiLine=b.actions.length>1),Object.assign(b.meta,{class:`q-notification row items-stretch q-notification--${b.multiLine===!0?"multi-line":"standard"}`+(b.color!==void 0?` bg-${b.color}`:"")+(b.textColor!==void 0?` text-${b.textColor}`:"")+(b.classes!==void 0?` ${b.classes}`:""),wrapperClass:"q-notification__wrapper col relative-position border-radius-inherit "+(b.multiLine===!0?"column no-wrap justify-center":"row items-center"),contentClass:"q-notification__content row items-center"+(b.multiLine===!0?"":" col"),leftClass:b.meta.hasText===!0?"additional":"single",attrs:{role:"alert",...b.attrs}}),b.group===!1?(b.group=void 0,b.meta.group=void 0):((b.group===void 0||b.group===!0)&&(b.group=[b.message,b.caption,b.multiline].concat(b.actions.map(a=>`${a.label}*${a.icon}`)).join("|")),b.meta.group=b.group+"|"+b.position),b.actions.length===0?b.actions=void 0:b.meta.actionsClass="q-notification__actions row items-center "+(b.multiLine===!0?"justify-end":"col-auto")+(b.meta.hasMedia===!0?" q-notification__actions--with-media":""),g!==void 0){g.notif.meta.timer&&(clearTimeout(g.notif.meta.timer),g.notif.meta.timer=void 0),b.meta.uid=g.notif.meta.uid;const a=notificationsList[b.position].value.indexOf(g.notif);notificationsList[b.position].value[a]=b}else{const a=groups[b.meta.group];if(a===void 0){if(b.meta.uid=uid++,b.meta.badge=1,["left","right","center"].indexOf(b.position)!==-1)notificationsList[b.position].value.splice(Math.floor(notificationsList[b.position].value.length/2),0,b);else{const q=b.position.indexOf("top")!==-1?"unshift":"push";notificationsList[b.position].value[q](b)}b.group!==void 0&&(groups[b.meta.group]=b)}else{if(a.meta.timer&&(clearTimeout(a.meta.timer),a.meta.timer=void 0),b.badgePosition!==void 0){if(badgePositions.includes(b.badgePosition)===!1)return logError("wrong badgePosition",u)}else b.badgePosition=`top-${b.position.indexOf("left")!==-1?"right":"left"}`;b.meta.uid=a.meta.uid,b.meta.badge=a.meta.badge+1,b.meta.badgeClass=`q-notification__badge q-notification__badge--${b.badgePosition}`+(b.badgeColor!==void 0?` bg-${b.badgeColor}`:"")+(b.badgeTextColor!==void 0?` text-${b.badgeTextColor}`:"")+(b.badgeClass?` ${b.badgeClass}`:"");const q=notificationsList[b.position].value.indexOf(a);notificationsList[b.position].value[q]=groups[b.meta.group]=b}}const k=()=>{removeNotification(b),f=void 0};if(b.timeout>0&&(b.meta.timer=setTimeout(()=>{b.meta.timer=void 0,k()},b.timeout+1e3)),b.group!==void 0)return a=>{a!==void 0?logError("trying to update a grouped one which is forbidden",u):k()};if(f={dismiss:k,config:u,notif:b},g!==void 0){Object.assign(g,f);return}return a=>{if(f!==void 0)if(a===void 0)f.dismiss();else{const q=Object.assign({},f.config,a,{group:!1,position:b.position});addNotification(q,d,f)}}}function removeNotification(u){u.meta.timer&&(clearTimeout(u.meta.timer),u.meta.timer=void 0);const d=notificationsList[u.position].value.indexOf(u);if(d!==-1){u.group!==void 0&&delete groups[u.meta.group];const g=notifRefs[""+u.meta.uid];if(g){const{width:f,height:b}=getComputedStyle(g);g.style.left=`${g.offsetLeft}px`,g.style.width=f,g.style.height=b}notificationsList[u.position].value.splice(d,1),typeof u.onDismiss=="function"&&u.onDismiss()}}function hasContent(u){return u!=null&&emptyRE.test(u)!==!0}function logError(u,d){return console.error(`Notify: ${u}`,d),!1}function getComponent(){return createComponent({name:"QNotifications",devtools:{hide:!0},setup(){return()=>h("div",{class:"q-notifications"},positionList.map(u=>h(TransitionGroup,{key:u,class:positionClass[u],tag:"div",name:`q-notification--${u}`},()=>notificationsList[u].value.map(d=>{const g=d.meta,f=[];if(g.hasMedia===!0&&(d.spinner!==!1?f.push(h(d.spinner,{class:"q-notification__spinner q-notification__spinner--"+g.leftClass,color:d.spinnerColor,size:d.spinnerSize})):d.icon?f.push(h(QIcon,{class:"q-notification__icon q-notification__icon--"+g.leftClass,name:d.icon,color:d.iconColor,size:d.iconSize,role:"img"})):d.avatar&&f.push(h(QAvatar,{class:"q-notification__avatar q-notification__avatar--"+g.leftClass},()=>h("img",{src:d.avatar,"aria-hidden":"true"})))),g.hasText===!0){let m;const y={class:"q-notification__message col"};if(d.html===!0)y.innerHTML=d.caption?`<div>${d.message}</div><div class="q-notification__caption">${d.caption}</div>`:d.message;else{const k=[d.message];m=d.caption?[h("div",k),h("div",{class:"q-notification__caption"},[d.caption])]:k}f.push(h("div",y,m))}const b=[h("div",{class:g.contentClass},f)];return d.progress===!0&&b.push(h("div",{key:`${g.uid}|p|${g.badge}`,class:g.progressClass,style:g.progressStyle})),d.actions!==void 0&&b.push(h("div",{class:g.actionsClass},d.actions.map(m=>h(QBtn,m)))),g.badge>1&&b.push(h("div",{key:`${g.uid}|${g.badge}`,class:d.meta.badgeClass,style:d.badgeStyle},[g.badge])),h("div",{ref:m=>{notifRefs[""+g.uid]=m},key:g.uid,class:g.class,...g.attrs},[h("div",{class:g.wrapperClass},b)])}))))}})}var Notify={setDefaults(u){isObject$1(u)===!0&&Object.assign(defaults,u)},registerType(u,d){isObject$1(d)===!0&&(notifTypes[u]=d)},install({$q:u,parentApp:d}){if(u.notify=this.create=g=>addNotification(g,u),u.notify.setDefaults=this.setDefaults,u.notify.registerType=this.registerType,u.config.notify!==void 0&&this.setDefaults(u.config.notify),this.__installed!==!0){positionList.forEach(f=>{notificationsList[f]=ref([]);const b=["left","center","right"].includes(f)===!0?"center":f.indexOf("top")!==-1?"top":"bottom",m=f.indexOf("left")!==-1?"start":f.indexOf("right")!==-1?"end":"center",y=["left","right"].includes(f)?`items-${f==="left"?"start":"end"} justify-center`:f==="center"?"flex-center":`items-${m}`;positionClass[f]=`q-notifications__list q-notifications__list--${b} fixed column no-wrap ${y}`});const g=createGlobalNode("q-notify");createChildApp(getComponent(),d).mount(g)}}},quasarUserOptions={config:{},plugins:{Notify}};let appPrefetch=typeof App.preFetch=="function"?App.preFetch:App.__c!==void 0&&typeof App.__c.preFetch=="function"?App.__c.preFetch:!1;function getMatchedComponents(u,d){const g=u?u.matched?u:d.resolve(u).route:d.currentRoute.value;if(!g)return[];const f=g.matched.filter(b=>b.components!==void 0);return f.length===0?[]:Array.prototype.concat.apply([],f.map(b=>Object.keys(b.components).map(m=>{const y=b.components[m];return{path:b.path,c:y}})))}function addPreFetchHooks({router:u,store:d,publicPath:g}){u.beforeResolve((f,b,m)=>{const y=window.location.href.replace(window.location.origin,""),k=getMatchedComponents(f,u),a=getMatchedComponents(b,u);let q=!1;const w=k.filter((v,J)=>q||(q=!a[J]||a[J].c!==v.c||v.path.indexOf("/:")>-1)).filter(v=>v.c!==void 0&&(typeof v.c.preFetch=="function"||v.c.__c!==void 0&&typeof v.c.__c.preFetch=="function")).map(v=>v.c.__c!==void 0?v.c.__c.preFetch:v.c.preFetch);if(appPrefetch!==!1&&(w.unshift(appPrefetch),appPrefetch=!1),w.length===0)return m();let $=!1;const Q=v=>{$=!0,m(v)},C=()=>{$===!1&&m()};w.reduce((v,J)=>v.then(()=>$===!1&&J({store:d,currentRoute:f,previousRoute:b,redirect:Q,urlPath:y,publicPath:g})),Promise.resolve()).then(C).catch(v=>{console.error(v),C()})})}const publicPath="/";async function start({app:u,router:d,store:g},f){let b=!1;const m=a=>{try{return d.resolve(a).href}catch{}return Object(a)===a?null:a},y=a=>{if(b=!0,typeof a=="string"&&/^https?:\/\//.test(a)){window.location.href=a;return}const q=m(a);q!==null&&(window.location.href=q)},k=window.location.href.replace(window.location.origin,"");for(let a=0;b===!1&&a<f.length;a++)try{await f[a]({app:u,router:d,store:g,ssrContext:null,redirect:y,urlPath:k,publicPath})}catch(q){if(q&&q.url){y(q.url);return}console.error("[Quasar] boot error:",q);return}b!==!0&&(u.use(d),addPreFetchHooks({router:d,store:g}),u.mount("#q-app"))}createQuasarApp(createApp,quasarUserOptions).then(u=>{const[d,g]=Promise.allSettled!==void 0?["allSettled",f=>f.map(b=>{if(b.status==="rejected"){console.error("[Quasar] boot error:",b.reason);return}return b.value.default})]:["all",f=>f.map(b=>b.default)];return Promise[d]([__vitePreload(()=>Promise.resolve().then(function(){return axios$1}),void 0),__vitePreload(()=>import("./auth.bc3f554f.js"),["assets/auth.bc3f554f.js","assets/auth-store.3a30d58f.js"]),__vitePreload(()=>import("./bus.90beaa04.js"),[])]).then(f=>{const b=g(f).filter(m=>typeof m=="function");start(u,b)})});export{cleanEvt as $,toDisplayString as A,createCommentVNode as B,QForm as C,QInput as D,QBtn as E,QCard as F,useAnchorStaticProps as G,useModelToggleProps as H,useTransitionProps as I,validatePosition as J,validateOffset as K,scrollTargetProp as L,useModelToggleEmits as M,ref as N,parsePosition as O,useTick as P,QLayout as Q,useTimeout as R,useTransition as S,useScrollTarget as T,useAnchor as U,useModelToggle as V,usePortal as W,watch as X,onBeforeUnmount as Y,removeClickOutside as Z,_export_sfc as _,api as a,setPosition as a0,clearSelection as a1,addEvt as a2,getScrollTarget as a3,Transition as a4,addClickOutside as a5,stopAndPrevent as a6,decode as a7,encode as a8,timeSince as a9,apiHandler as aa,useQuasar as ab,createElementBlock as ac,QSpinner as ad,Fragment as ae,QCardActions as af,QSeparator as ag,renderList as ah,boot as b,defineComponent as c,defineStore as d,createBlock as e,createVNode as f,QPageContainer as g,createComponent as h,useDarkProps as i,useDark as j,computed as k,h as l,hSlot as m,getCurrentInstance as n,openBlock as o,useCheckboxProps as p,useCheckboxEmits as q,resolveComponent as r,useCheckbox as s,QIcon as t,useMainStore as u,QPage as v,withCtx as w,QCardSection as x,createBaseVNode as y,createTextVNode as z};