r2-explorer 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +3 -1
- package/dashboard/assets/{AuthLayout.12538f22.js → AuthLayout.d454e332.js} +1 -1
- package/dashboard/{spa/assets/EmailFilePage.0c9a6952.js → assets/EmailFilePage.f5aef278.js} +1 -1
- package/dashboard/{spa/assets/ErrorNotFound.88a4c619.js → assets/ErrorNotFound.9c1a500d.js} +1 -1
- package/dashboard/{spa/assets/LoginPage.1f66e3b0.js → assets/LoginPage.2c31ddaf.js} +1 -1
- package/dashboard/assets/{auth-store.805d7a4f.js → auth-store.963af64d.js} +1 -1
- package/dashboard/assets/{auth.879305d4.js → auth.e9ee4208.js} +1 -1
- package/dashboard/assets/{bus.70638ee0.js → bus.c615343c.js} +1 -1
- package/dashboard/assets/{index.6093dd42.js → index.0de893af.js} +2 -2
- package/dashboard/assets/{index.66230ade.css → index.9da34366.css} +1 -1
- package/dashboard/index.html +2 -2
- package/dashboard/spa/assets/{AuthLayout.12538f22.js → AuthLayout.d454e332.js} +1 -1
- package/dashboard/{assets/EmailFilePage.0c9a6952.js → spa/assets/EmailFilePage.f5aef278.js} +1 -1
- package/dashboard/{assets/ErrorNotFound.88a4c619.js → spa/assets/ErrorNotFound.9c1a500d.js} +1 -1
- package/dashboard/{assets/LoginPage.1f66e3b0.js → spa/assets/LoginPage.2c31ddaf.js} +1 -1
- package/dashboard/spa/assets/{auth-store.805d7a4f.js → auth-store.963af64d.js} +1 -1
- package/dashboard/spa/assets/{auth.879305d4.js → auth.e9ee4208.js} +1 -1
- package/dashboard/spa/assets/{bus.70638ee0.js → bus.c615343c.js} +1 -1
- package/dashboard/spa/assets/{index.6093dd42.js → index.0de893af.js} +2 -2
- package/dashboard/spa/assets/{index.66230ade.css → index.9da34366.css} +1 -1
- package/dashboard/spa/index.html +2 -2
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1859 -20
- package/dist/index.mjs +1856 -18
- package/package.json +6 -3
|
@@ -30,7 +30,7 @@ const scriptRel=function(){const d=document.createElement("link").relList;return
|
|
|
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 A=normalizeHeader(y);f[A]||(buildAccessors(b,y),f[A]=!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(A){m=A.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,A=m.lengthComputable?m.total:void 0,a=y-f,q=b(a),w=y<=A;f=y;const $={loaded:y,total:A,progress:A?y/A:void 0,bytes:a,rate:q||void 0,estimated:q&&A&&w?(A-y)/q:void 0,event:m,lengthComputable:A!=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 A(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:A,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)&&$!==A||(g[w]=Q)}),g}var resolveConfig=u=>{const d=mergeConfig({},u);let{data:g,withXSRFToken:f,xsrfHeaderName:b,xsrfCookieName:m,headers:y,auth:A}=d;d.headers=y=AxiosHeaders$1.from(y),d.url=buildURL(buildFullPath(d.baseURL,d.url),u.params,u.paramsSerializer),A&&y.set("Authorization","Basic "+btoa((A.username||"")+":"+(A.password?unescape(encodeURIComponent(A.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:A,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:!A||A==="text"||A==="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),A&&A!=="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,A();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 A=()=>{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(A),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,A=a=>{y||(y=!0,f&&f(a))};return new ReadableStream({async pull(a){try{const{done:q,value:w}=await b.next();if(q){A(),a.close();return}let $=w.byteLength;if(g){let Q=m+=$;g(Q)}a.enqueue(new Uint8Array(w))}catch(q){throw A(q),q}},cancel(a){return A(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:A,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&&(A||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]=A&&progressEventDecorator(R,progressEventReducer(asyncDecorator(A),!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(([A,a])=>`adapter ${A} `+(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,A)=>{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,A):!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 A=u[m],a=A===void 0||y(A,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 A=[];let a=!0;this.interceptors.request.forEach(function(J){typeof J.runWhen=="function"&&J.runWhen(g)===!1||(a=a&&J.synchronous,A.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,A),v.push.apply(v,q),Q=v.length,w=Promise.resolve(g);$<Q;)w=w.then(v[$++],v[$++]);return w}Q=A.length;let C=g;for($=0;$<Q;){const v=A[$++],J=A[$++];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,A){return this.request(mergeConfig(A||{},{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(A=>{f.subscribe(A),m=A}).then(b);return y.cancel=function(){f.unsubscribe(m)},y},d(function(m,y,A){f.reason||(f.reason=new CanceledError(m,y,A),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"}}function sleep(u){return new Promise(d=>setTimeout(d,u))}async function retryWithBackoff(u,d=3,g=1e3,f=1e4,b=2){let m=null;for(let y=1;y<=d;y++)try{return await u()}catch(A){if(m=A instanceof Error?A:new Error(String(A)),y===d)throw m;const a=Math.min(g*Math.pow(b,y-1),f);await new Promise(q=>setTimeout(q,a))}throw m||new Error("Unexpected error in retryWithBackoff")}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:async(u,d,g,f)=>await retryWithBackoff(async()=>await 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}),5,1e3,1e4,2),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=[],A=[];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)A.push(w)}}return[...A,...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"),A=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(A,{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,A;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";A=hUniqueSlot(d.default,[]),A[w](h(QIcon,{class:y.__iconClass,name:b.iconSet.table.arrowUp}))}else A=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,A)}}});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":"")),A=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:A.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,A){const a=u===window?document.scrollingElement||document.documentElement:u,q=b===!0?"offsetWidth":"offsetHeight",w={scrollStart:0,scrollViewSize:-y-A,scrollMaxSize:0,offsetStart:-y,offsetEnd:-A};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 A=u.slice(m,y).reduce(sumFn,0);return g%aggBucketSize!==0&&(A-=d.slice(m*aggBucketSize,g).reduce(sumFn,0)),f%aggBucketSize!==0&&f!==b&&(A-=d.slice(f,y*aggBucketSize).reduce(sumFn,0)),A}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:A}=b,{$q:a}=A;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",k),setTimeout(()=>{oe!==null&&oe.removeEventListener("focusout",k)})),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 k(){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:A}),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(A,{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:A,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,()=>{A()}),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(()=>{A()}),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),A=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:A.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),A=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:k,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 A.value>=0&&(Ie["aria-activedescendant"]=`${te.targetUid.value}_${A.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}=k.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&&(A.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;A.value!==rt&&(A.value=rt)}function Fe(Ie=1,rt){if(m.value===!0){let Je=A.value;do Je=normalizeToInterval(Je+Ie,-1,F.value-1);while(Je!==-1&&Je!==A.value&&me.value(u.options[Je])===!0);A.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&&(A.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),A.value=-1,Fe(Ie.keyCode===36?1:-1,u.multiple)),(Ie.keyCode===33||Ie.keyCode===34)&&E.value!==void 0&&(stopAndPrevent(Ie),A.value=Math.max(-1,Math.min(F.value,A.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=A.value;if(yt===!0||_t<0||Bt.test(be.value(u.options[_t]))!==!0)do _t=normalizeToInterval(_t+1,-1,mt-1);while(_t!==A.value&&(me.value(u.options[_t])===!0||Bt.test(be.value(u.options[_t]))!==!0));A.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),A.value!==-1&&A.value<mt){Be(u.options[A.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&&(A.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:()=>A.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),A=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:A.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,A=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":"")+(A.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 k=g.label!==void 0?hMergeSlot(f.default,[g.label]):hSlot(f.default);return k!==void 0&&S.push(h("div",{class:`q-${u}__label q-anchor--skip`},k)),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 A=ref(!1);vmHasRouter(u)===!0&&watch(()=>f.$route.fullPath,()=>{d.noRouteFullscreenExit!==!0&&w()}),watch(()=>d.fullscreen,$=>{A.value!==$&&a()}),watch(A,$=>{g("update:fullscreen",$),g("fullscreen",$)});function a(){A.value===!0?w():q()}function q(){A.value!==!0&&(A.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(){A.value===!0&&(b!==void 0&&(History.remove(b),b=void 0),y.replaceChild(f.$el,m),A.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:A,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:A}=d.value;return A&&g.value.find(a=>a.name===A)||null}),m=computed(()=>u.sortMethod!==void 0?u.sortMethod:(A,a,q)=>{const w=g.value.find(C=>C.name===a);if(w===void 0||w.field===void 0)return A;const $=q===!0?-1:1,Q=typeof w.field=="function"?C=>w.field(C):C=>C[w.field];return A.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(A){let a=u.columnSortOrder;if(isObject$1(A)===!0)A.sortOrder&&(a=A.sortOrder),A=A.name;else{const $=g.value.find(Q=>Q.name===A);$!==void 0&&$.sortOrder&&(a=$.sortOrder)}let{sortBy:q,descending:w}=d.value;q!==A?(q=A,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 A=b?b.toLowerCase():"";return f.filter(a=>m.some(q=>{const w=y(q,a)+"";return(w==="undefined"||w==="null"?"":w.toLowerCase()).indexOf(A)!==-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 A(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&&A(Q);return}if(y.value===!0){A(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:A,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&&A("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"),A=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:A,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,A){const a=g.value.slice(),q=a.indexOf(y);A===!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 A=u.rows[0];return A!==void 0?Object.keys(A).map(a=>({name:a,label:a.toUpperCase(),field:a,align:isNumber$3(A[a])?"right":"left",sortable:!0})):[]}),b=computed(()=>{const{sortBy:A,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===A?` 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 A={};return b.value.forEach(a=>{A[a.name]=a}),A}),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:A}=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:k,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:A}));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:k.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]=A=>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"),A=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(A)]),_: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":"")),A=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:A.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 A=(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(A,a)}return{minHeight:f.isContainer.value===!0?f.containerHeight.value-A+"px":g.screen.height===0?A!==0?`calc(100vh - ${A}px)`:"100vh":g.screen.height-A+"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 A=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;A++,f.value=!0;const T=getScrollHeight(a);g("load",A,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(){A=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){A=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})),A=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:A.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 A=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=A<q,C=$.props!==null&&disabledValues.includes($.props.disable),v=(Q===!0?"":" q-breadcrumbs--last")+(C!==!0&&Q===!0?m.value:"");A++,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,A)=>(openBlock(),createElementBlock("div",{class:"flex row",key:A},[createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateHttpMetadata[A].key,"onUpdate:modelValue":a=>u.updateHttpMetadata[A].key=a,label:"Key"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateHttpMetadata[A].value,"onUpdate:modelValue":a=>u.updateHttpMetadata[A].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(A,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,A)=>(openBlock(),createElementBlock("div",{class:"flex row",key:A},[createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateCustomMetadata[A].key,"onUpdate:modelValue":a=>u.updateCustomMetadata[A].key=a,label:"Key"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateCustomMetadata[A].value,"onUpdate:modelValue":a=>u.updateCustomMetadata[A].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(A,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(A,a=0){const q=y?n(A):()=>({line:0,column:0});let w=a;const $=[];e:for(;w<A.length;){let Q=!1;for(const C of m){C.regex.lastIndex=w;const v=C.regex.exec(A);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(A,w);$.push(...J.tokens),w=J.offset}if(C.pop)break e;break}}if(!Q)break}return{tokens:$,offset:w,complete:A.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,A)=>g(m.value,y,f,b,A)))}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),A=>mapInner(g(b,A.position),(a,q)=>f(y.value,A.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 A=d(m,g,y)(g,y);A.matched?(m=A.value,y=A.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,A)=>g(f,b,m,y,A)))}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 A=[];let a=!0;this.interceptors.request.forEach(function(J){typeof J.runWhen=="function"&&J.runWhen(g)===!1||(a=a&&J.synchronous,A.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,A),v.push.apply(v,q),Q=v.length,w=Promise.resolve(g);$<Q;)w=w.then(v[$++],v[$++]);return w}Q=A.length;let C=g;for($=0;$<Q;){const v=A[$++],J=A[$++];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,A){return this.request(mergeConfig(A||{},{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(A=>{f.subscribe(A),m=A}).then(b);return y.cancel=function(){f.unsubscribe(m)},y},d(function(m,y,A){f.reason||(f.reason=new CanceledError(m,y,A),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"}}function sleep(u){return new Promise(d=>setTimeout(d,u))}async function retryWithBackoff(u,d=3,g=1e3,f=1e4,b=2){let m=null;for(let y=1;y<=d;y++)try{return await u()}catch(A){if(m=A instanceof Error?A:new Error(String(A)),y===d)throw m;const a=Math.min(g*Math.pow(b,y-1),f);await new Promise(q=>setTimeout(q,a))}throw m||new Error("Unexpected error in retryWithBackoff")}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:async(u,d,g,f)=>await retryWithBackoff(async()=>await 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}),5,1e3,1e4,2),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=[],A=[];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)A.push(w)}}return[...A,...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$a={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"),A=resolveComponent("create-file");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$a,[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"]),u.mainStore.config&&u.mainStore.config.emailRouting!==!1?(openBlock(),createBlock(QBtn,{key:2,class:"q-mb-sm",onClick:u.gotoEmail,color:"blue",icon:"email",label:"Email",stack:""},null,8,["onClick"])):createCommentVNode("",!0),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(A,{ref:"createFile"},null,512)],64)}var LeftSidebar=_export_sfc(_sfc_main$g,[["render",_sfc_render$f],["__scopeId","data-v-a5787778"]]),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,A;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";A=hUniqueSlot(d.default,[]),A[w](h(QIcon,{class:y.__iconClass,name:b.iconSet.table.arrowUp}))}else A=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,A)}}});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":"")),A=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:A.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,A){const a=u===window?document.scrollingElement||document.documentElement:u,q=b===!0?"offsetWidth":"offsetHeight",w={scrollStart:0,scrollViewSize:-y-A,scrollMaxSize:0,offsetStart:-y,offsetEnd:-A};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 A=u.slice(m,y).reduce(sumFn,0);return g%aggBucketSize!==0&&(A-=d.slice(m*aggBucketSize,g).reduce(sumFn,0)),f%aggBucketSize!==0&&f!==b&&(A-=d.slice(f,y*aggBucketSize).reduce(sumFn,0)),A}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:A}=b,{$q:a}=A;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",k),setTimeout(()=>{oe!==null&&oe.removeEventListener("focusout",k)})),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 k(){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:A}),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(A,{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:A,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,()=>{A()}),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(()=>{A()}),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),A=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:A.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),A=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:k,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 A.value>=0&&(Ie["aria-activedescendant"]=`${te.targetUid.value}_${A.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}=k.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&&(A.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;A.value!==rt&&(A.value=rt)}function Fe(Ie=1,rt){if(m.value===!0){let Je=A.value;do Je=normalizeToInterval(Je+Ie,-1,F.value-1);while(Je!==-1&&Je!==A.value&&me.value(u.options[Je])===!0);A.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&&(A.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),A.value=-1,Fe(Ie.keyCode===36?1:-1,u.multiple)),(Ie.keyCode===33||Ie.keyCode===34)&&E.value!==void 0&&(stopAndPrevent(Ie),A.value=Math.max(-1,Math.min(F.value,A.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=A.value;if(yt===!0||_t<0||Bt.test(be.value(u.options[_t]))!==!0)do _t=normalizeToInterval(_t+1,-1,mt-1);while(_t!==A.value&&(me.value(u.options[_t])===!0||Bt.test(be.value(u.options[_t]))!==!0));A.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),A.value!==-1&&A.value<mt){Be(u.options[A.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&&(A.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:()=>A.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),A=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:A.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,A=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":"")+(A.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 k=g.label!==void 0?hMergeSlot(f.default,[g.label]):hSlot(f.default);return k!==void 0&&S.push(h("div",{class:`q-${u}__label q-anchor--skip`},k)),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 A=ref(!1);vmHasRouter(u)===!0&&watch(()=>f.$route.fullPath,()=>{d.noRouteFullscreenExit!==!0&&w()}),watch(()=>d.fullscreen,$=>{A.value!==$&&a()}),watch(A,$=>{g("update:fullscreen",$),g("fullscreen",$)});function a(){A.value===!0?w():q()}function q(){A.value!==!0&&(A.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(){A.value===!0&&(b!==void 0&&(History.remove(b),b=void 0),y.replaceChild(f.$el,m),A.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:A,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:A}=d.value;return A&&g.value.find(a=>a.name===A)||null}),m=computed(()=>u.sortMethod!==void 0?u.sortMethod:(A,a,q)=>{const w=g.value.find(C=>C.name===a);if(w===void 0||w.field===void 0)return A;const $=q===!0?-1:1,Q=typeof w.field=="function"?C=>w.field(C):C=>C[w.field];return A.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(A){let a=u.columnSortOrder;if(isObject$1(A)===!0)A.sortOrder&&(a=A.sortOrder),A=A.name;else{const $=g.value.find(Q=>Q.name===A);$!==void 0&&$.sortOrder&&(a=$.sortOrder)}let{sortBy:q,descending:w}=d.value;q!==A?(q=A,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 A=b?b.toLowerCase():"";return f.filter(a=>m.some(q=>{const w=y(q,a)+"";return(w==="undefined"||w==="null"?"":w.toLowerCase()).indexOf(A)!==-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 A(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&&A(Q);return}if(y.value===!0){A(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:A,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&&A("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"),A=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:A,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,A){const a=g.value.slice(),q=a.indexOf(y);A===!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 A=u.rows[0];return A!==void 0?Object.keys(A).map(a=>({name:a,label:a.toUpperCase(),field:a,align:isNumber$3(A[a])?"right":"left",sortable:!0})):[]}),b=computed(()=>{const{sortBy:A,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===A?` 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 A={};return b.value.forEach(a=>{A[a.name]=a}),A}),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:A}=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:k,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:A}));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:k.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$9={class:"fit"};function _sfc_render$e(u,d,g,f,b,m){return openBlock(),createElementBlock("div",_hoisted_1$9,[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},setup(){return{mainStore:useMainStore()}}}),_hoisted_1$8={key:0};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]=A=>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),u.mainStore.buckets.length>1?(openBlock(),createElementBlock("div",_hoisted_1$8,[createVNode(y)])):createCommentVNode("",!0)],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"),A=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(A)]),_: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":"")),A=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:A.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 A=(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(A,a)}return{minHeight:f.isContainer.value===!0?f.containerHeight.value-A+"px":g.screen.height===0?A!==0?`calc(100vh - ${A}px)`:"100vh":g.screen.height-A+"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 A=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;A++,f.value=!0;const T=getScrollHeight(a);g("load",A,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(){A=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){A=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})),A=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:A.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 A=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=A<q,C=$.props!==null&&disabledValues.includes($.props.disable),v=(Q===!0?"":" q-breadcrumbs--last")+(C!==!0&&Q===!0?m.value:"");A++,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,A)=>(openBlock(),createElementBlock("div",{class:"flex row",key:A},[createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateHttpMetadata[A].key,"onUpdate:modelValue":a=>u.updateHttpMetadata[A].key=a,label:"Key"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateHttpMetadata[A].value,"onUpdate:modelValue":a=>u.updateHttpMetadata[A].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(A,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,A)=>(openBlock(),createElementBlock("div",{class:"flex row",key:A},[createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateCustomMetadata[A].key,"onUpdate:modelValue":a=>u.updateCustomMetadata[A].key=a,label:"Key"},null,8,["modelValue","onUpdate:modelValue"])]),createBaseVNode("div",null,[createVNode(QInput,{modelValue:u.updateCustomMetadata[A].value,"onUpdate:modelValue":a=>u.updateCustomMetadata[A].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(A,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(A,a=0){const q=y?n(A):()=>({line:0,column:0});let w=a;const $=[];e:for(;w<A.length;){let Q=!1;for(const C of m){C.regex.lastIndex=w;const v=C.regex.exec(A);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(A,w);$.push(...J.tokens),w=J.offset}if(C.pop)break e;break}}if(!Q)break}return{tokens:$,offset:w,complete:A.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,A)=>g(m.value,y,f,b,A)))}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),A=>mapInner(g(b,A.position),(a,q)=>f(y.value,A.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 A=d(m,g,y)(g,y);A.matched?(m=A.value,y=A.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,A)=>g(f,b,m,y,A)))}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,A,a)=>g?_codePoint(g):f?"-"+_codePoint(f.slice(1)):b?"\\-":m||(y?"\uFFFD":A?_codePoint(A):"\\"+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),A=weave(b.items);f.push({type:"matcher",matcher:m.matcher,modifier:m.modifier,value:m.value,predicate:y,cont:A})}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:A,rest:a}=partition1(u,y);let q=null;for(const w of A){const $=spliceSimpleSelector(w,m);q||(q=$)}if(q==null)throw new Error("No simple selector is found.");f[b]={oneSimpleSelector:q,items:A},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,A)=>!f[A]),m}function findTopKey(u,d,g){const f={};for(const y of u){const A={};for(const a of y.ast.list.filter(d))A[g(a)]=!0;for(const a of Object.keys(A))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 A=1;A<b;A++){const a=f[A];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,A,...a)=>b(y)?m(A,...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,A=0;for(;(A=b.indexOf("&",A))>=0;){d+=b.slice(y,A),g.startEntity(m);const q=g.write(b,A+1);if(q<0){y=A+g.end();break}y=A+q,A=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,A=y+b-1;for(;y<=A;){const a=y+A>>>1,q=u[a];if(q<f)y=a+1;else if(q>f)A=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,A;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),(A=(y=this.cbs).onparserinit)===null||A===void 0||A.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 A=this.stack.pop();(f=(g=this.cbs).onclosetag)===null||f===void 0||f.call(g,A,!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,A,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=(A=this.cbs).onclosetag)===null||a===void 0||a.call(A,"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,A;this.endIndex=g,(m=(b=this.cbs).oncomment)===null||m===void 0||m.call(b,this.getSlice(d,g-f)),(A=(y=this.cbs).oncommentend)===null||A===void 0||A.call(y),this.startIndex=g+1}oncdata(d,g,f){var b,m,y,A,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),(A=(y=this.cbs).ontext)===null||A===void 0||A.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,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),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,"""],[38,"&"],[160," "]])),escapeText=getEscaper(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),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,""")}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 A=(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&&A===""?b:`${b}="${f(A)}"`}).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 A of y)this.startNewLine(),this.nextLineWords.push(A),this.nextLineAvailableChars-=A.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(A=>A!==""&&A!==",");for(const A of y)f===0?m+=`<th>${A.replaceAll('"',"")}</th>`:m+=`<td>${A.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"),A=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(A,{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[A,a]of Object.entries(u)){if(A!==""){const q=`${this.selectedFolder+A}/`;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[A,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+A;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;try{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)}%`})})}catch(C){console.error(`Unable to upload file ${w.name}: ${C.message}`)}y+=w.size,await sleep(200)}}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(A=>{g[d].push(A),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((A,a)=>{m.readEntries(async q=>{for(let w=0;w<q.length;w++)await this.traverseFileTree(q[w],b,g,f+1);A()})})}},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-0fa55860"]]);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"),A=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(A,{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.12538f22.js"),[]),children:[{path:"login",name:"login",component:()=>__vitePreload(()=>import("./LoginPage.1f66e3b0.js"),["assets/LoginPage.1f66e3b0.js","assets/auth-store.805d7a4f.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.0c9a6952.js"),["assets/EmailFilePage.0c9a6952.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.88a4c619.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&&A()}:()=>{A()}})),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 A=()=>{removeNotification(b),f=void 0};if(b.timeout>0&&(b.meta.timer=setTimeout(()=>{b.meta.timer=void 0,A()},b.timeout+1e3)),b.group!==void 0)return a=>{a!==void 0?logError("trying to update a grouped one which is forbidden",u):A()};if(f={dismiss:A,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 A=[d.message];m=d.caption?[h("div",A),h("div",{class:"q-notification__caption"},[d.caption])]:A}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,""),A=getMatchedComponents(f,u),a=getMatchedComponents(b,u);let q=!1;const w=A.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)},A=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:A,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.879305d4.js"),["assets/auth.879305d4.js","assets/auth-store.805d7a4f.js"]),__vitePreload(()=>import("./bus.70638ee0.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[A,a]of Object.entries(u)){if(A!==""){const q=`${this.selectedFolder+A}/`;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[A,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+A;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;try{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)}%`})})}catch(C){console.error(`Unable to upload file ${w.name}: ${C.message}`)}y+=w.size,await sleep(200)}}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(A=>{g[d].push(A),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((A,a)=>{m.readEntries(async q=>{for(let w=0;w<q.length;w++)await this.traverseFileTree(q[w],b,g,f+1);A()})})}},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-0fa55860"]]);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"),A=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(A,{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.d454e332.js"),[]),children:[{path:"login",name:"login",component:()=>__vitePreload(()=>import("./LoginPage.2c31ddaf.js"),["assets/LoginPage.2c31ddaf.js","assets/auth-store.963af64d.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.f5aef278.js"),["assets/EmailFilePage.f5aef278.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.9c1a500d.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&&A()}:()=>{A()}})),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 A=()=>{removeNotification(b),f=void 0};if(b.timeout>0&&(b.meta.timer=setTimeout(()=>{b.meta.timer=void 0,A()},b.timeout+1e3)),b.group!==void 0)return a=>{a!==void 0?logError("trying to update a grouped one which is forbidden",u):A()};if(f={dismiss:A,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 A=[d.message];m=d.caption?[h("div",A),h("div",{class:"q-notification__caption"},[d.caption])]:A}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,""),A=getMatchedComponents(f,u),a=getMatchedComponents(b,u);let q=!1;const w=A.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)},A=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:A,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.e9ee4208.js"),["assets/auth.e9ee4208.js","assets/auth-store.963af64d.js"]),__vitePreload(()=>import("./bus.c615343c.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};
|