PageSourceSearch

https://motofestbrasil.com.br/_nuxt/entry.CgIH7ebw.js

js motofestbrasil.com.br collected 2026-09-24 14:09:21 UTC 1,204,760 bytes, 3,649 lines download raw bytes

1function __vite__mapDeps(indexes) {
2  if (!__vite__mapDeps.viteFileDeps) {
3    __vite__mapDeps.viteFileDeps = ["./_id_.EGf2Dg6g.js","./Subtitle.vue.-EAV3LQ2.js","./Divider.7QWL7Her.js","./ui.DXm8Br8c.js","./Divider.ByIGFw9J.css","./Muted.CMAkCCal.js","./Modal.eaQPX-Sm.js","./use-theme.BSjNiVSy.js","./Modal.Vv-b48Je.css","./format.wefwVXG6.js","./role-translate.BZ4nZN0C.js","./TheAvatar.BDW4UxRp.js","./Image.BHQwTrxs.js","./Image.VFQbHlvj.css","./image-loader.DwVe_IJd.js","./TheAvatar.CxeeH_NQ.css","./Title.vue.BC5RC7qH.js","./TheLinks.COSuN6GX.js","./data-layer.BRL1pkpP.js","./TheLinks.D9geBRpJ.css","./Note.CYCEZoWF.js","./Note.Dy52jDBI.css","./Tabs.C3fownYS.js","./Tabs.BAYmDqrp.css","./Scraps.vue.Dax4LEd3.js","./Text.vRFTA7l1.js","./Text.ChikW7w2.css","./nuxt-link.BD-MzT7G.js","./DblClickBtn.vue.W8ipaGrK.js","./Scraps.DmgtCqSl.css","./MediaGallery.vue.BNJ7XTn2.js","./Loading.C_Zv0AAR.js","./Loading.BAELJnfx.css","./InView.vue.Br2nUdfQ.js","./MediaGallery.B0cm1QtZ.css","./NotFound.DTBrFy7V.js","./fetch.C9eO8Pss.js","./asyncData.BOztq0mr.js","./index.DIRX23vh.js","./_id_.D3mFNYOQ.css","./bandas.BLwqgbxY.js","./SearchCard.D1HXyiyd.js","./get-profile-url.DdVD52a1.js","./SearchCard.CdNf7mXN.css","./ContentBox.KJxw_vyd.js","./ContentBox.BR2ZQVNu.css","./bandas.ubne2W9s.css","./claim-profile.m4ND2EzK.js","./TheTerms.vue.DYrpT-Y7.js","./social-links.schema.DX83eIzR.js","./Light.CI0Chihi.js","./social-links.DQGUTu64.css","./MetalSignAnimated.sY67u3E8.js","./MetalSignAnimated.BWQeUuRK.css","./entusiastas.fSAw9WmB.js","./entusiastas.DyK-P7Jw.css","./_id_.BzSlo9yd.js","./index.CqibRxfz.js","./Breadcrumb.CPevo3S6.js","./Breadcrumb.Y8_kEj06.css","./index.PozNRrj6.css","./explorar.RyUGf_W9.js","./index.pTDCn-Yf.js","./TheHome.BTMiHViW.js","./use-maps.DgDQQyjr.js","./Details.BWUtSD1v.js","./Row.DaTOSn0-.js","./nuxt-img.urgcbbkG.js","./Row.BuS28I6u.css","./MediaUpload.Bkuj4vkB.js","./MediaUpload.DNTRe10U.css","./Details.DwOoVNM2.css","./use-disclosure.CJIWs1pn.js","./AdBanner.B7Yg8d6r.js","./AdBanner.CGtmeNM4.css","./TheHome.BjfFSOly.css","./politica-de-cookies.Cg1S4QS_.js","./politica-de-privacidade.CFxBJQ1B.js","./termos-de-servico.B-e51nXO.js","./motoclubes.DAv_j5Xt.js","./motoclubes.2URw7QRs.css","./_...path_.BMYC_u7L.js","./List.DFyldso8.js","./CategorySelector.vue.lk4VzBSc.js","./List.OpK1mh8y.css","./_...BD6-E0OV.css","./access-requested.D3y27bod.js","./access-requested._87qG_UV.css","./index.D9PzKlGy.js","./Sidebar.Bm59QE6q.js","./useDevice.D6dNm4p7.js","./Sidebar.C-0q3Ru4.css","./index.Btsz0_HH.css","./servicos.BNSVm2Xb.js","./servicos.C8m2e1NP.css","./v2.D_Ot5rZR.js","./widget.do3R5TTS.js","./package.DQERN9kG.js","./widget.DYzu8SyY.css","./default.ZpUVxPiO.js","./TheMask.DaA2Rn6X.js","./TheMask.MEtFauUo.css","./TheBranding.raqYOqIi.js","./TheBranding.CjDIuKzj.css","./TheSidebar.DR8yhqbE.js","./TheSidebar.ueuiJkF9.css","./default.Bcu8BrPu.css","./home.CQT49ssj.js","./home.xVd4B6nU.css","./no-sidebar.UdUe-iIK.js","./no-sidebar.CiRH9bQ_.css","./widget.D5cL6tGl.js","./widget.ByN4avt9.css","./sentry.client.config.Bn4uUjAC.js","./ZoomedImage.BxUKYi3o.js","./ZoomedImage.Chir2az-.css","./error-404.snLIYz_u.js","./error-404.at4r6akv.css","./error-500.C1qFcsfb.js","./error-500.BXQ_YkC0.css"]
4  }
5  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
6}
7!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7a775849-7ed3-4392-982d-7ca60c3e0e57",e._sentryDebugIdIdentifier="sentry-dbid-7a775849-7ed3-4392-982d-7ca60c3e0e57")}catch(e){}}();import{e,r as t,h as n,g as r,i as o,t as i,n as s,u as a,v as c,a as l,w as u,b as h,o as f,c as d,d as p,s as m,f as g,j as y,k as v,l as b,p as _,K as w,m as k,q as E,x as T,y as S,z as x,A as O,B as A,F as C,C as N,T as I,X as L,_ as P,D as R,E as D,S as M,G as j,H as U,I as q,J as F,L as B,M as V,N as z,O as $,P as H,Q as W,R as G,U as K,V as Y,W as Q,Y as X,Z as J,$ as Z,a0 as ee,a1 as te,a2 as ne,a3 as re,a4 as oe,a5 as ie,a6 as se,a7 as ae,a8 as ce,a9 as le,aa as ue,ab as he,ac as fe,ad as de,ae as pe,af as me,ag as ge,ah as ye,ai as ve,aj as be}from"./ui.DXm8Br8c.js";const _e=/#/g,we=/&/g,ke=/\//g,Ee=/=/g,Te=/\+/g,Se=/%5e/gi,xe=/%60/gi,Oe=/%7c/gi,Ae=/%20/gi;function Ce(e){return(t="string"==typeof e?e:JSON.stringify(e),encodeURI(""+t).replace(Oe,"|")).replace(Te,"%2B").replace(Ae,"+").replace(_e,"%23").replace(we,"%26").replace(xe,"`").replace(Se,"^").replace(ke,"%2F");var t}function Ne(e){return Ce(e).replace(Ee,"%3D")}function Ie(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Le(e){return Ie(e.replace(Te," "))}function Pe(e){return Ie(e.replace(Te," "))}function Re(e=""){const t=Object.create(null);"?"===e[0]&&(e=e.slice(1));for(const n of e.split("&")){const e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;const r=Le(e[1]);if("__proto__"===r||"constructor"===r)continue;const o=Pe(e[2]||"");void 0===t[r]?t[r]=o:Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]}return t}function De(e){return Object.keys(e).filter(t=>void 0!==e[t]).map(t=>{return n=t,"number"!=typeof(r=e[t])&&"boolean"!=typeof r||(r=String(r)),r?Array.isArray(r)?r.map(e=>`${Ne(n)}=${Ce(e)}`).join("&"):`${Ne(n)}=${Ce(r)}`:Ne(n);var n,r}
7).filter(Boolean).join("&")}const Me=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,je=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Ue=/^([/\\]\s*){2,}[^/\\]/,qe=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Fe=/\/$|\/\?|\/#/,Be=/^\.?\//;function Ve(e,t={}){return"boolean"==typeof t&&(t={acceptRelative:t}),t.strict?Me.test(e):je.test(e)||!!t.acceptRelative&&Ue.test(e)}function ze(e="",t){return t?Fe.test(e):e.endsWith("/")}function $e(e="",t){if(!t)return(ze(e)?e.slice(0,-1):e)||"/";if(!ze(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");-1!==o&&(n=e.slice(0,o),r=e.slice(o));const[i,...s]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(s.length>0?`?${s.join("?")}`:"")+r}function He(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(ze(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(-1!==o&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[i,...s]=n.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+r}function We(e=""){return function(e=""){return e.startsWith("/")}(e)?e:"/"+e}function Ge(e,t){if(Ye(t))return e;const n=$e(t);if(!e.startsWith(n))return e;const r=e[n.length];if(r&&"/"!==r&&"?"!==r)return e;return"/"+e.slice(n.length).replace(/^\/+/,"")}function Ke(e,t){const n=Ze(e),r={...Re(n.search),...t};return n.search=De(r),function(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",i=e.host||"",s=e.protocol||e[Je]?(e.protocol||"")+"//":"";return s+o+i+t+n+r}(n)}function Ye(e){return!e||"/"===e}function Qe(e,...t){let n=e||"";for(const r of t.filter(e=>function(e){return e&&"/"!==e}(e)))if(n){const e=r.replace(Be,"");n=He(n)+e}else n=r;return n}function Xe(e,t,n={}){return n.trailingSlash||(e=He(e),t=He(t)),n.leadingSlash||(e=We(e),t=We(t)),n.encoding||(e=Ie(e),t=Ie(t)),e===t}const Je=Symbol.for("ufo:protocolRelative");function Ze(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,e,t=""]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!Ve(e,{acceptRelative:!0}))return t?Ze(t+e):et(e);const[,r="",o,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];"file:"===r&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:l,hash:u}=et(a);return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:s,pathname:c,search:l,hash:u,[Je]:!r}}function et(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}const tt=(window?.__NUXT__?.config||{}).app,nt=(...e)=>Qe(rt(),tt.buildAssetsDir,...e),rt=(...e)=>{const t=tt.cdnURL||tt.baseURL;return e.length?Qe(t,...e):t};globalThis.__buildAssetsURL=nt,globalThis.__publicAssetsURL=rt;const ot=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,it=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,st=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function at(e,t){if(!("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t))return t;!function(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}(e)}function ct(e,t={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!st.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(ot.test(e)||it.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,at)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}class lt extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}const ut=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function ht(e="GET"){return ut.has(e.toUpperCase())}const ft=new Set(["image/svg","application/xml","application/xhtml","application/html"]),dt=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function pt(e,t,n=globalThis.Headers){const r={...t,...e};if(t?.params&&e?.params&&(r.params={...t?.params,...e?.params}),t?.query&&e?.query&&(r.query={...t?.query,...e?.query}),t?.headers&&e?.headers){r.headers=new n(t?.headers||{});
7for(const[t,o]of new n(e?.headers||{}))r.headers.set(t,o)}return r}const mt=new Set([408,409,425,429,500,502,503,504]),gt=new Set([101,204,205,304]);const yt=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}(),vt=function e(t={}){const{fetch:n=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:o=globalThis.AbortController}=t;async function i(e){const t=e.error&&"AbortError"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;t="number"==typeof e.options.retry?e.options.retry:ht(e.options.method)?0:1;const n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):mt.has(n))){const n=e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),s(e.request,{...e.options,retry:t-1})}}const n=function(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",s=new lt(`${o}: ${i}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(const a of["request","options","response"])Object.defineProperty(s,a,{get:()=>e[a]});for(const[a,c]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(s,a,{get:()=>e.response&&e.response[c]});return s}(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,s),n}const s=async function(e,s={}){const a={request:e,options:pt(s,t.defaults,r),response:void 0,error:void 0};let c;if(a.options.method=a.options.method?.toUpperCase(),a.options.onRequest&&await a.options.onRequest(a),"string"==typeof a.request&&(a.options.baseURL&&(a.request=function(e,t){if(Ye(t)||Ve(e))return e;const n=$e(t);if(e.startsWith(n)){const t=e[n.length];if(!t||"/"===t||"?"===t)return e}return Qe(n,e)}(a.request,a.options.baseURL)),(a.options.query||a.options.params)&&(a.request=Ke(a.request,{...a.options.params,...a.options.query}))),a.options.body&&ht(a.options.method)&&(!function(e){if(void 0===e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!e.buffer&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}(a.options.body)?("pipeTo"in a.options.body&&"function"==typeof a.options.body.pipeTo||"function"==typeof a.options.body.pipe)&&("duplex"in a.options||(a.options.duplex="half")):(a.options.body="string"==typeof a.options.body?a.options.body:JSON.stringify(a.options.body),a.options.headers=new r(a.options.headers||{}),a.options.headers.has("content-type")||a.options.headers.set("content-type","application/json"),a.options.headers.has("accept")||a.options.headers.set("accept","application/json"))),!a.options.signal&&a.options.timeout){const e=new o;c=setTimeout(()=>e.abort(),a.options.timeout),a.options.signal=e.signal}try{a.response=await n(a.request,a.options)}catch(l){return a.error=l,a.options.onRequestError&&await a.options.onRequestError(a),await i(a)}finally{c&&clearTimeout(c)}if(a.response.body&&!gt.has(a.response.status)&&"HEAD"!==a.options.method){const e=(a.options.parseResponse?"json":a.options.responseType)||function(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return dt.test(t)?"json":ft.has(t)||t.startsWith("text/")?"text":"blob"}(a.response.headers.get("content-type")||"");switch(e){case"json":{const e=await a.response.text(),t=a.options.parseResponse||ct;a.response._data=t(e);break}case"stream":a.response._data=a.response.body;break;default:a.response._data=await a.response[e]()}}return a.options.onResponse&&await a.options.onResponse(a),!a.options.ignoreResponseError&&a.response.status>=400&&a.response.status<600?(a.options.onResponseError&&await a.options.onResponseError(a),await i(a)):a.response},a=async function(e,t){return(await s(e,t))._data};return a.raw=s,a.native=(...e)=>n(...e),a.create=(n={})=>e({...t,defaults:{...t.defaults,...n}}),a}({fetch:yt.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Headers:yt.Headers,AbortController:yt.AbortController}),bt=vt;function _t(e,t={},n){for(const r in e){const o=e[r],i=n?`${n}:${r}`:r;"object"==typeof o&&null!==o?_t(o,t,i):"function"==typeof o&&(t[i]=o)}return t}globalThis.$fetch||(globalThis.$fetch=bt.create({baseURL:tt.baseURL}));const wt={run:e=>e()},kt=void 0!==console.createTask?console.createTask:()=>wt;function Et(e,t){const n=t.shift(),r=kt(n);return e.reduce((e,n)=>e.then(()=>r.run(()=>n(...t))),Promise.resolve())}function Tt(e,t){const n=t.shift(),r=kt(n);return Promise.all(e.map(e=>r.run(()=>e(...t))))}function St(e,t){for(const n of[...e])n(t)}class xt{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||"function"!=typeof t)return()=>{};const r=e;let o;for(;this._deprecatedHooks[e];)o=this._deprecatedHooks[e],e=o.to;if(o&&!n.allowDeprecated){let e=o.message;e||(e=`${r} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,r=(...e)=>("function"==typeof n&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){if(this._hooks[e]){const n=this._hooks[e].indexOf(t);-1!==n&&this._hooks[e].splice(n,1),0===this._hooks[e].length&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t;const n=this._hooks[e]||[];delete this._hooks[e];for(const r of n)this.hook(e,r)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=_t(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(const e of n.splice(0,n.length))e()}}removeHooks(e){const t=_t(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(Et,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(Tt,e,...t)}callHookWith(e,t,...n){const r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&St(this._before,r);const o=e(t in this._hooks?[...this._hooks[t]]:[],n);return o instanceof Promise?o.finally(()=>{this._after&&r&&St(this._after,r)}):(this._after&&r&&St(this._after,r),o)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(void 0!==this._before){const t=this._before.indexOf(e);-1!==t&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(void 0!==this._after){const t=this._after.indexOf(e);-1!==t&&this._after.splice(t,1)}}}}function Ot(){return new xt}const At="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof global?global:"undefined"!=typeof window?window:{},Ct="__unctx__",Nt=At[Ct]||(At[Ct]=function(e={}){const t={};return{get:(n,r={})=>(t[n]||(t[n]=function(e={}){let t,n=!1;const r=e=>{if(t&&t!==e)throw new Error("Context conflict")};let o;if(e.asyncContext){const t=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;t?o=new t:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>
7{if(o){const e=o.getStore();if(void 0!==e)return e}return t};return{use:()=>{const e=i();if(void 0===e)throw new Error("Context is not available");return e},tryUse:()=>i(),set:(e,o)=>{o||r(e),t=e,n=!0},unset:()=>{t=void 0,n=!1},call:(e,i)=>{r(e),t=e;try{return o?o.run(e,i):i()}finally{n||(t=void 0)}},async callAsync(e,r){t=e;const i=()=>{t=e},s=()=>t===e?i:void 0;Pt.add(s);try{const i=o?o.run(e,r):r();return n||(t=void 0),await i}finally{Pt.delete(s)}}}}({...e,...r})),t[n])}}()),It=(e,t={})=>Nt.get(e,t),Lt="__unctx_async_handlers__",Pt=At[Lt]||(At[Lt]=new Set);function Rt(e){const t=[];for(const o of Pt){const e=o();e&&t.push(e)}const n=()=>{for(const e of t)e()};let r=e();return r&&"object"==typeof r&&"catch"in r&&(r=r.catch(e=>{throw n(),e})),[r,n]}const Dt=It("nuxt-app",{asyncContext:!1}),Mt="__nuxt_plugin";function jt(n){let r=0;const o={_scope:e(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.10.3"},get vue(){return o.vueApp.version}},payload:t({data:{},state:{},once:new Set,_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:e=>o._scope.run(()=>function(e,t,n){const r=()=>n?t(...n):t();return Dt.set(e),e.vueApp.runWithContext(r)}(o,e)),isHydrating:!0,deferHydration(){if(!o.isHydrating)return()=>{};r++;let e=!1;return()=>{if(!e)return e=!0,r--,0===r?(o.isHydrating=!1,o.callHook("app:suspense:resolve")):void 0}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...n};o.hooks=Ot(),o.hook=o.hooks.hook,o.callHook=o.hooks.callHook,o.provide=(e,t)=>{const n="$"+e;Vt(o,n,t),Vt(o.vueApp.config.globalProperties,n,t)},Vt(o.vueApp,"$nuxt",o),Vt(o.vueApp.config.globalProperties,"$nuxt",o);{window.addEventListener("nuxt.preloadError",e=>{o.callHook("app:chunkError",{error:e.payload})}),window.useNuxtApp=window.useNuxtApp||Ft;const e=o.hook("app:error",(...e)=>{console.error("[nuxt] error caught during app initialization",...e)});o.hook("app:mounted",e)}const i=t(o.payload.config);return o.provide("config",i),o}function Ut(e){if("function"==typeof e)return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Mt]:!0,_name:t})}function qt(){let e;return n()&&(e=r()?.appContext.app.$nuxt),e=e||Dt.tryUse(),e||null}function Ft(){const e=qt();if(!e)throw new Error("[nuxt] instance unavailable");return e}function Bt(e){return Ft().$config}function Vt(e,t,n){Object.defineProperty(e,t,{get:()=>n})}const zt=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function $t(e,t,n){const r=n||{},o=r.encode||Gt;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!zt.test(e))throw new TypeError("argument name is invalid");const i=o(t);if(i&&!zt.test(i))throw new TypeError("argument val is invalid");let s=e+"="+i;if(void 0!==r.maxAge&&null!==r.maxAge){const e=r.maxAge-0;if(Number.isNaN(e)||!Number.isFinite(e))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(e)}if(r.domain){if(!zt.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!zt.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if(a=r.expires,!("[object Date]"===Object.prototype.toString.call(a)||a instanceof Date)||Number.isNaN(r.expires.valueOf()))throw new TypeError("option expires is invali
7d");s+="; Expires="+r.expires.toUTCString()}var a;if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.priority){switch("string"==typeof r.priority?r.priority.toLowerCase():r.priority){case"low":s+="; Priority=Low";break;case"medium":s+="; Priority=Medium";break;case"high":s+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s}function Ht(e,t){try{return t(e)}catch{return e}}function Wt(e){return e.includes("%")?decodeURIComponent(e):e}function Gt(e){return encodeURIComponent(e)}const Kt=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function Yt(e,t){const n=Xt(t=t?{...Kt,...t}:Kt);return n.dispatch(e),n.toString()}const Qt=Object.freeze(["prototype","__proto__","constructor"]);function Xt(e){let t="",n=new Map;const r=e=>{t+=e};return{toString:()=>t,getContext:()=>n,dispatch(t){e.replacer&&(t=e.replacer(t));return this[null===t?"null":typeof t](t)},object(t){if(t&&"function"==typeof t.toJSON)return this.object(t.toJSON());const o=Object.prototype.toString.call(t);let i="";const s=o.length;i=s<10?"unknown:["+o+"]":o.slice(8,s-1),i=i.toLowerCase();let a=null;if(void 0!==(a=n.get(t)))return this.dispatch("[CIRCULAR:"+a+"]");if(n.set(t,n.size),"undefined"!=typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(t))return r("buffer:"),r(t.toString("utf8"));if("object"!==i&&"function"!==i&&"asyncfunction"!==i)this[i]?this[i](t):e.ignoreUnknown||this.unkown(t,i);else{let n=Object.keys(t);e.unorderedObjects&&(n=n.sort());let o=[];!1===e.respectType||en(t)||(o=Qt),e.excludeKeys&&(n=n.filter(t=>!e.excludeKeys(t)),o=o.filter(t=>!e.excludeKeys(t))),r("object:"+(n.length+o.length)+":");const i=n=>{this.dispatch(n),r(":"),e.excludeValues||this.dispatch(t[n]),r(",")};for(const e of n)i(e);for(const e of o)i(e)}},array(t,o){if(o=void 0===o?!1!==e.unorderedArrays:o,r("array:"+t.length+":"),!o||t.length<=1){for(const e of t)this.dispatch(e);return}const i=new Map,s=t.map(t=>{const n=Xt(e);n.dispatch(t);for(const[e,r]of n.getContext())i.set(e,r);return n.toString()});return n=i,s.sort(),this.array(s,!1)},date:e=>r("date:"+e.toJSON()),symbol:e=>r("symbol:"+e.toString()),unkown(e,t){if(r(t),e)return r(":"),e&&"function"==typeof e.entries?this.array(Array.from(e.entries()),!0):void 0},error:e=>r("error:"+e.toString()),boolean:e=>r("bool:"+e),string(e){r("string:"+e.length+":"),r(e)},function(t){r("fn:"),en(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this.object(t)},number:e=>r("number:"+e),xml:e=>r("xml:"+e.toString()),null:()=>r("Null"),undefined:()=>r("Undefined"),regexp:e=>r("regex:"+e.toString()),uint8array(e){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},uint8clampedarray(e){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},int8array(e){return r("int8array:"),this.dispatch(Array.prototype.slice.call(e))},uint16array(e){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},int16array(e){return r("int16array:"),this.dispatch(Array.prototype.slice.call(e))},uint32array(e){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},int32array(e){return r("int32array:"),this.dispatch(Array.prototype.slice.call(e))},float32array(e){return r("float32array:"),this.dispatch(Array.prototype.slice.call(e))},float64array(e){return r("float64array:"),this.dispatch(Array.prototype.slice.call(e))},arraybuffer(e){return r("arraybuffer:"),this.dispatch(new Uint8Array(e))},url:e=>r("url:"+e.toString()),map(t){r("map:");const n=[...t];return this.array(n,!1!==e.unorderedSets)},set(t){r("set:");const n=[...t];return this.array(n,!1!==e.unorderedSets)},file(e){return r("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error('Hashing Blob objects is currently not supported\nUse "options.replacer" or "options.ignoreUnknown"\n')},domwindow:()=>r("domwindow"),bigint:e=>r("bigint:"+e.toString()),process:()=>r("process"),timer:()=>r("timer"),pipe:()=>r("pipe"),tcp:()=>r("tcp"),udp:()=>r("udp"),tty:()=>r("tty"),statwatcher:()=>r("statwatcher"),securecontext:()=>r("securecontext"),connection:()=>r("connection"),zlib:()=>r("zlib"),context:()=>r("context"),nodescript:()=>r("nodescript"),httpparser:()=>r("httpparser"),dataview:()=>r("dataview"),signal:()=>r("signal"),fsevent:()=>r("fsevent"),tlswrap:()=>r("tlswrap")}}const Jt="[native code] }",Zt=Jt.length;function en(e){return"function"==typeof e&&Function.prototype.toString.call(e).slice(-Zt)===Jt}class tn{constructor(e,t){e=this.words=e||[],this.sigBytes=void 0===t?4*e.length:t}toString(e){return(e||nn).stringify(this)}concat(e){if(this.clamp(),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){const n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];return this.sigBytes+=e.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new tn([...this.words])}}const nn={stringify(e){const t=[];for(let n=0;n<e.sigBytes;n++){const r=e.words[n>>>2]>>>24-n%4*8&255;t.push((r>>>4).toString(16),(15&r).toString(16))}return t.join("")}},rn={stringify(e){const t=[];for(let n=0;n<e.sigBytes;n+=3){const r=(e.words[n>>>2]>>>24-n%4*8&255)<<16|(e.words[n+1>>>2]>>>24-(n+1)%4*8&255)<<8|e.words[n+2>>>2]>>>24-(n+2)%4*8&255;for(let o=0;o<4&&8*n+6*o<8*e.sigBytes;o++)t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(r>>>6*(3-o)&63))}return t.join("")}},on={parse(e){const t=e.length,n=[];for(let r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new tn(n,t)}},sn={parse:e=>on.parse(unescape(encodeURIComponent(e)))};class an{constructor(){this._data=new tn,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=16}reset(){this._data=new tn,this._nDataBytes=0}_append(e){"string"==typeof e&&(e=sn.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_doProcessBlock(e,t){}_process(e){let t,n=this._data.sigBytes/(4*this.blockSize);n=e?Math.ceil(n):Math.max((0|n)-this._minBufferSize,0);const r=n*this.blockSize,o=Math.min(4*r,this._data.sigBytes);if(r){for(let e=0;e<r;e+=this.blockSize)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=o}return new tn(t,o)}}class cn extends an{update(e){return this._append(e),this._process(),this}finalize(e){e&&this._append(e)}}const ln=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],un=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],hn=[];class fn extends cn{constructor(){super(...arguments),this._hash=new tn([...ln])}reset(){super.reset(),this._hash=new tn([...ln])}_doProcessBlock(e,t){const n=this._hash.words;let r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],c=n[5],l=n[6],u=n[7];for(let h=0;h<64;h++){if(h<16)hn[h]=0|e[t+h];else{const e=hn[h-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,n=hn[h-2],r=(n<<15|n>>>17)^(n<<13|n>>>19)^n>>>10;hn[h]=t+hn[h-7]+r+hn[h-16]}const n=r&o^r&i^o&i,f=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),d=u+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&c^~a&l)+un[h]+hn[h];u=l,l=c,c=a,a=s+d|0,s=i,i=o,o=r,r=d+(f+n)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}finalize(e){super.finalize(e);const t=8*this._nDataBytes,n=8*this._data.sigBytes;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[14+(n+64>>>9<<4)]=Math.floor(t/4294967296),this._data.words[15+(n+64>>>9<<4)]=t,this._data.sigBytes=4*this._data.words.length,this._process(),this._hash}}function dn(e,t={}){const n="string"==typeof e?e:Yt(e,t);return(r=n,(new fn).finalize(r).toString(rn)).slice(0,10);var r}function pn(e,t){return{ctx:{table:e},matchAll:n=>yn(n,e,t)}}function mn(e){const t={};for(const n in e)t[n]="dynamic"===n?new Map(Object.entries(e[n]).map(([e,t])=>[e,mn(t)])):new Map(Object.entries(e[n]));return t}function gn(e){return pn(mn(e))}function yn(e,t,n){!0!==n&&e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[i,s]of vn(t.wildcard))(e===i||e.startsWith(i+"/"))&&r.push(s);for(const[i,s]of vn(t.dynamic))if(e.startsWith(i+"/")){const t="/"+e.slice(i.length).split("/").splice(2).join("/");r.push(...yn(t,s))}const o=t.static.get(e);return o&&r.push(o),r.filter(Boolean)}function vn(e){return[...e.entries()].sort((e,t)=>
7e[0].length-t[0].length)}function bn(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&(!(Symbol.iterator in e)&&(!(Symbol.toStringTag in e)||"[object Module]"===Object.prototype.toString.call(e)))}function _n(e,t,n=".",r){if(!bn(t))return _n(e,{},n,r);const o={...t};for(const i of Object.keys(e)){if("__proto__"===i||"constructor"===i)continue;const t=e[i];null!=t&&(r&&r(o,i,t,n)||(Array.isArray(t)&&Array.isArray(o[i])?o[i]=[...t,...o[i]]:bn(t)&&bn(o[i])?o[i]=_n(t,o[i],(n?`${n}.`:"")+i.toString(),r):o[i]=t))}return o}function wn(e){return(...t)=>t.reduce((t,n)=>_n(t,n,"",e),{})}const kn=wn(),En=wn((e,t,n)=>{if(void 0!==e[t]&&"function"==typeof n)return e[t]=n(e[t]),!0});var Tn=Object.defineProperty,Sn=(e,t,n)=>(((e,t,n)=>{t in e?Tn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class xn extends Error{constructor(e,t={}){super(e,t),Sn(this,"statusCode",500),Sn(this,"fatal",!1),Sn(this,"unhandled",!1),Sn(this,"statusMessage"),Sn(this,"data"),Sn(this,"cause"),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){const e={message:this.message,statusCode:Nn(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=Cn(this.statusMessage)),void 0!==this.data&&(e.data=this.data),e}}function On(e){if("string"==typeof e)return new xn(e);if(function(e){return!0===e?.constructor?.__h3_error__}(e))return e;const t=new xn(e.message??e.statusMessage??"",{cause:e.cause||e});if(function(e,t){try{return t in e}catch{return!1}}(e,"stack"))try{Object.defineProperty(t,"stack",{get:()=>e.stack})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Nn(e.statusCode,t.statusCode):e.status&&(t.statusCode=Nn(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const e=t.statusMessage;Cn(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return void 0!==e.fatal&&(t.fatal=e.fatal),void 0!==e.unhandled&&(t.unhandled=e.unhandled),t}Sn(xn,"__h3_error__",!0);const An=/[^\u0009\u0020-\u007E]/g;function Cn(e=""){return e.replace(An,"")}function Nn(e,t=200){return e?("string"==typeof e&&(e=Number.parseInt(e,10)),e<100||e>999?t:e):t}"undefined"==typeof setImmediate||setImmediate;const In=Symbol("layout-meta"),Ln=Symbol("route"),Pn=()=>Ft()?.$router,Rn=()=>n()?o(Ln,Ft()._route):Ft()._route;const Dn=(e,t)=>{e||(e="/");const n="string"==typeof e?e:Ke(e.path||"/",e.query||{})+(e.hash||"");if(t?.open){{const{target:e="_blank",windowFeatures:r={}}=t.open,o=Object.entries(r).filter(([e,t])=>void 0!==t).map(([e,t])=>`${e.toLowerCase()}=${t}`).join(", ");open(n,e,o)}return Promise.resolve()}const r=t?.external||Ve(n,{acceptRelative:!0});if(r){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const e=Ze(n).protocol;if(e&&function(e){return!!e&&qe.test(e)}(e))throw new Error(`Cannot navigate to a URL with '${e}' protocol.`)}const o=(()=>{try{if(Ft()._processingMiddleware)return!0}catch{return!0}return!1})();if(!r&&o)return e;const i=Pn(),s=Ft();return r?(s._scope.stop(),t?.replace?location.replace(n):location.href=n,o?!!s.isHydrating&&new Promise(()=>{}):Promise.resolve()):t?.replace?i.replace(e):i.push(e)},Mn="__nuxt_error",jn=()=>i(Ft().payload,"error"),Un=e=>{const t=Fn(e);try{const e=Ft(),n=jn();e.hooks.callHook("app:error",t),n.value=n.value||t}catch{throw t}return t},qn=async(e={})=>{const t=Ft(),n=jn();t.callHook("app:error:cleared",e),e.redirect&&await Pn().replace(e.redirect),n.value=null},Fn=e=>{const t=On(e);return Object.defineProperty(t,Mn,{value:!0,configurable:!1,writable:!1}),t},Bn={},Vn=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link");r=Promise.all(t.map(t=>{if(t=function(e,t){return"."===e[0]?new URL(e,t).href:e}(t,n),t in Bn)return;Bn[t]=!0;const r=t.endsWith(".css"),o=r?'[rel="stylesheet"]':"";if(!!n)for(let n=e.length-1;n>=0;n--){const o=e[n];if(o.href===t&&(!r||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${t}"]${o}`))return;const i=document.createElement("link");return i.rel=r?"stylesheet":"modulepreload",r||(i.as="script",i.crossOrigin=""),i.href=t,document.head.appendChild(i),r?new Promise((e,n
7)=>{i.addEventListener("load",e),i.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${t}`)))}):void 0}))}return r.then(()=>e()).catch(e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e})},zn=(...e)=>Vn(...e).catch(e=>{const t=new Event("nuxt.preloadError");throw t.payload=e,window.dispatchEvent(t),e});function $n(e,t){return function(e,t){if("number"==typeof e)return o(e,!0);if(!Array.isArray(e)||0===e.length)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(e,i=!1){if(-1===e)return;if(-3===e)return NaN;if(-4===e)return 1/0;if(-5===e)return-1/0;if(-6===e)return-0;if(i)throw new Error("Invalid input");if(e in r)return r[e];const s=n[e];if(s&&"object"==typeof s)if(Array.isArray(s))if("string"==typeof s[0]){const n=s[0],i=t?.[n];if(i)return r[e]=i(o(s[1]));switch(n){case"Date":r[e]=new Date(s[1]);break;case"Set":const t=new Set;r[e]=t;for(let e=1;e<s.length;e+=1)t.add(o(s[e]));break;case"Map":const i=new Map;r[e]=i;for(let e=1;e<s.length;e+=2)i.set(o(s[e]),o(s[e+1]));break;case"RegExp":r[e]=new RegExp(s[1],s[2]);break;case"Object":r[e]=Object(s[1]);break;case"BigInt":r[e]=BigInt(s[1]);break;case"null":const a=Object.create(null);r[e]=a;for(let e=1;e<s.length;e+=2)a[s[e]]=o(s[e+1]);break;default:throw new Error(`Unknown type ${n}`)}}else{const t=new Array(s.length);r[e]=t;for(let e=0;e<s.length;e+=1){const n=s[e];-2!==n&&(t[e]=o(n))}}else{const t={};r[e]=t;for(const e in s){const n=s[e];t[e]=o(n)}}else r[e]=s;return r[e]}return o(0)}(JSON.parse(e),t)}const Hn=["title","titleTemplate","script","style","noscript"],Wn=["base","meta","link","style","script","noscript"],Gn=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],Kn=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],Yn=["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"],Qn="undefined"!=typeof window;function Xn(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),9**9);return(65536+(t^t>>>9)).toString(16).substring(1,8).toLowerCase()}function Jn(e){return e._h||Xn(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([e,t])=>`${e}:${String(t)}`).join(",")}`)}function Zn(e,t){const{props:n,tag:r}=e;if(Kn.includes(r))return r;if("link"===r&&"canonical"===n.rel)return"canonical";if(n.charset)return"charset";const o=["id"];"meta"===r&&o.push("name","property","http-equiv");for(const i of o)if(void 0!==n[i]){const e=String(n[i]);return!(t&&!t(e))&&`${r}:${i}:${e}`}return!1}function er(e,t){return null==e?t||null:"function"==typeof e?e(t):e}function tr(e,t){const n=[],r=t.resolveKeyData||(e=>e.key),o=t.resolveValueData||(e=>e.value);for(const[i,s]of Object.entries(e))n.push(...(Array.isArray(s)?s:[s]).map(e=>{const n={key:i,value:e},s=o(n);return"object"==typeof s?tr(s,t):Array.isArray(s)?s:{["function"==typeof t.key?t.key(n):t.key]:r(n),["function"==typeof t.value?t.value(n):t.value]:s}}).flat());return n}function nr(e,t){return Object.entries(e).map(([e,n])=>{if("object"==typeof n&&(n=nr(n,t)),t.resolve){const r=t.resolve({key:e,value:n});if(r)return r}return"number"==typeof n&&(n=n.toString()),"string"==typeof n&&t.wrapValue&&(n=n.replace(new RegExp(t.wrapValue,"g"),`\\${t.wrapValue}`),n=`${t.wrapValue}${n}${t.wrapValue}`),`${e}${t.keyValueSeparator||""}${n}`}).join(t.entrySeparator||"")}const rr=e=>({keyValue:e,metaKey:"property"}),or=e=>({keyValue:e}),ir={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${cr(e)}=${t}`}},articleExpirationTime:rr("article:expiration_time"),articleModifiedTime:rr("article:modified_time"),articlePublishedTime:rr("article:published_time"),bookReleaseDate:rr("book:release_date"),charset:{metaKey:"charset"},contentSecurityPolicy:{unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${cr(e)} ${t}`},metaKey:"http-equiv"},contentType:{metaKey:"http-equiv"},defaultStyle:{metaKey:"http-equiv"},fbAppId:rr("fb:app_id"),msapplicationConfig:or("msapplication-Config"),msapplicationTileColor:or("msapplication-TileColor"),msapplicationTileImage:or("msapplication-TileImage"),ogAudioSecureUrl:rr("og:audio:secure_url"),ogAudioUrl:rr("og:audio"),ogImageSecureUrl:rr("og:image:secure_url"),ogImageUrl:rr("og:image"),ogSiteName:rr("og:site_name"),ogVideoSecureUrl:rr("og:video:secure_url"),ogVideoUrl:rr("og:video"),profileFirstName:rr("profile:first_name"),profileLastName:rr("profile:last_name"),profileUsername:rr("profile:username"),refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve({key:e,value:t}
7){if("seconds"===e)return`${t}`}}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>"boolean"==typeof t?`${cr(e)}`:`${cr(e)}:${t}`}},xUaCompatible:{metaKey:"http-equiv"}},sr=["og","book","article","profile"];function ar(e){const t=cr(e).split(":")[0];return sr.includes(t)?"property":ir[e]?.metaKey||"name"}function cr(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.split("-")[0];return sr.includes(n)||"twitter"===n?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function lr(e){if(Array.isArray(e))return e.map(e=>lr(e));if("object"!=typeof e||Array.isArray(e))return e;const t={};for(const[n,r]of Object.entries(e))t[cr(n)]=lr(r);return t}function ur(e,t){const n=ir[t];return"refresh"===t?`${e.seconds};url=${e.url}`:nr(lr(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:e,key:t})=>null===e?"":"boolean"==typeof e?`${t}`:void 0,...n?.unpack})}const hr=["og:image","og:video","og:audio","twitter:image"];function fr(e){const t={};return Object.entries(e).forEach(([e,n])=>{"false"!==String(n)&&e&&(t[e]=n)}),t}function dr(e,t){const n=fr(t),r=cr(e),o=ar(r);if(hr.includes(r)){const t={};return Object.entries(n).forEach(([n,r])=>{t[`${e}${"url"===n?"":`${n.charAt(0).toUpperCase()}${n.slice(1)}`}`]=r}),pr(t).sort((e,t)=>(e[o]?.length||0)-(t[o]?.length||0))}return[{[o]:r,...n}]}function pr(e){const t=[],n={};Object.entries(e).forEach(([e,r])=>{if(Array.isArray(r))r.forEach(n=>{t.push(..."string"==typeof n?pr({[e]:n}):dr(e,n))});else if("object"==typeof r&&r){if(hr.includes(cr(e)))return void t.push(...dr(e,r));n[e]=fr(r)}else n[e]=r});const r=tr(n,{key:({key:e})=>ar(e),value:({key:e})=>"charset"===e?"charset":"content",resolveKeyData:({key:e})=>function(e){return ir[e]?.keyValue||cr(e)}(e),resolveValueData:({value:e,key:t})=>null===e?"_null":"object"==typeof e?ur(e,t):"number"==typeof e?e.toString():e});return[...t,...r].map(e=>("_null"===e.content&&(e.content=null),e))}function mr(e){return"object"!=typeof e||Array.isArray(e)||(e=Object.keys(e).filter(t=>e[t])),(Array.isArray(e)?e.join(" "):e).split(" ").filter(e=>e.trim()).filter(Boolean).join(" ")}async function gr(e,t){for(const n of Object.keys(e))if("class"!==n){if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!Yn.includes(n)){const t=String(e[n]),r=n.startsWith("data-");"true"===t||""===t?e[n]=!r||"true":e[n]||(r&&"false"===t?e[n]="false":delete e[n])}}else e[n]=mr(e[n]);return e}async function yr(e){const t=[];return Object.entries(e.resolvedInput).filter(([e,t])=>void 0!==t&&Gn.includes(e)).forEach(([n,r])=>{const o=function(e){return Array.isArray(e)?e:[e]}(r);t.push(...o.map(t=>async function(e,t,n){const r={tag:e,props:await gr("object"!=typeof t||"function"==typeof t||t instanceof Promise?{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t}:{...t},["templateParams","titleTemplate"].includes(e))};return Yn.forEach(e=>{const t=void 0!==r.props[e]?r.props[e]:n[e];void 0!==t&&(["innerHTML","textContent","children"].includes(e)&&!Hn.includes(r.tag)||(r["children"===e?"innerHTML":e]=t),delete r.props[e])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),"script"===r.tag&&"object"==typeof r.innerHTML&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(e=>({...r,props:{...r.props,content:e}})):r}(n,t,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((t,n)=>(t._e=e._i,e.mode&&(t._m=e.mode),t._p=(e._i<<10)+n,t))}const vr={base:-10,title:10},br={critical:-80,high:-10,low:20};function _r(e){let t=100;const n=e.tagPriority;return"number"==typeof n?n:("meta"===e.tag?("content-security-policy"===e.props["http-equiv"]&&(t=-30),e.props.charset&&(t=-20),"viewport"===e.props.name&&(t=-15)):"link"===e.tag&&"preconnect"===e.props.rel?t=20:e.tag in vr&&(t=vr[e.tag]),"string"==typeof n&&n in br?t+br[n]:t)}const wr=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],kr=["onload","onerror","onabort","onprogress","onloadstart"],Er="%separator";function Tr(e,t,n){if("string"!=typeof e||!e.includes("%"))return e;let r=e;try{r=decodeURI(e)}catch{}return(r.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEac
7h(n=>{const r=function(e){let n;return n=["s","pageTitle"].includes(e)?t.pageTitle:e.includes(".")?e.split(".").reduce((e,t)=>e&&e[t]||void 0,t):t[e],void 0!==n&&(n||"").replace(/"/g,'\\"')}(n.slice(1));"string"==typeof r&&(e=e.replace(new RegExp(`\\${n}(\\W|$)`,"g"),(e,t)=>`${r}${t}`).trim())}),e.includes(Er)&&(e.endsWith(Er)&&(e=e.slice(0,-10).trim()),e.startsWith(Er)&&(e=e.slice(10).trim()),e=Tr(e=e.replace(new RegExp(`\\${Er}\\s*\\${Er}`,"g"),Er),{separator:n},n)),e}async function Sr(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n)return;const r={shouldRender:e.dirty,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const o=(await e.resolveTags()).map(e=>({tag:e,id:Wn.includes(e.tag)?Jn(e):e.tag,shouldRender:!0}));let i=e._dom;if(!i){i={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const e of["body","head"]){const t=n?.[e]?.children,r=[];for(const e of[...t].filter(e=>Wn.includes(e.tagName.toLowerCase()))){const t={tag:e.tagName.toLowerCase(),props:await gr(e.getAttributeNames().reduce((t,n)=>({...t,[n]:e.getAttribute(n)}),{})),innerHTML:e.innerHTML};let n=1,o=Zn(t);for(;o&&r.find(e=>e._d===o);)o=`${o}:${n++}`;t._d=o||void 0,r.push(t),i.elMap[e.getAttribute("data-hid")||Jn(t)]=e}}}function s(e,t,n){const r=`${e}:${t}`;i.sideEffects[r]=n,delete i.pendingSideEffects[r]}function a({id:e,$el:t,tag:n}){const r=n.tag.endsWith("Attrs");i.elMap[e]=t,r||(["textContent","innerHTML"].forEach(e=>{n[e]&&n[e]!==t[e]&&(t[e]=n[e])}),s(e,"el",()=>{i.elMap[e]?.remove(),delete i.elMap[e]})),Object.entries(n.props).forEach(([n,o])=>{const i=`attr:${n}`;
7if("class"===n)for(const a of(o||"").split(" ").filter(Boolean))r&&s(e,`${i}:${a}`,()=>t.classList.remove(a)),!t.classList.contains(a)&&t.classList.add(a);else if("style"===n)for(const r of(o||"").split(";").filter(Boolean)){const[n,o]=r.split(":").map(e=>e.trim());s(e,`${i}:${r}:${n}`,()=>{t.style.removeProperty(n)}),t.style.setProperty(n,o)}else t.getAttribute(n)!==o&&t.setAttribute(n,!0===o?"":String(o)),r&&s(e,i,()=>t.removeAttribute(n))})}i.pendingSideEffects={...i.sideEffects||{}},i.sideEffects={};const c=[],l={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const u of o){const{tag:e,shouldRender:t,id:r}=u;t&&("title"!==e.tag?(u.$el=u.$el||i.elMap[r],u.$el?a(u):Wn.includes(e.tag)&&c.push(u)):n.title=e.textContent)}for(const u of c){const e=u.tag.tagPosition||"head";u.$el=n.createElement(u.tag.tag),a(u),l[e]=l[e]||n.createDocumentFragment(),l[e].appendChild(u.$el)}for(const u of o)await e.hooks.callHook("dom:renderTag",u,n,s);l.head&&n.head.appendChild(l.head),l.bodyOpen&&n.body.insertBefore(l.bodyOpen,n.body.firstChild),l.bodyClose&&n.body.appendChild(l.bodyClose),Object.values(i.pendingSideEffects).forEach(e=>e()),e._dom=i,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:o})}function xr(e){return t=>{const n=t.resolvedOptions.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(t){!async function(e,t={}){const n=t.delayFn||(e=>setTimeout(e,10));e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await Sr(e,t),delete e._domUpdatePromise,r()}))}(t,e)}}}}}const Or=["templateParams","htmlAttrs","bodyAttrs"],Ar={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(t=>{e.props[t]&&(e.key=e.props[t],delete e.props[t])});const t=Zn(e)||!!e.key&&`${e.tag}:${e.key}`;t&&(e._d=t)},"tags:resolve":function(e){const t={};e.tags.forEach(e=>{const n=(e.key?`${e.tag}:${e.key}`:e._d)||e._p,r=t[n];if(r){let o=e?.tagDuplicateStrategy;if(!o&&Or.includes(e.tag)&&(o="merge"),"merge"===o){const o=r.props;return["class","style"].forEach(t=>{o[t]&&(e.props[t]?("style"!==t||o[t].endsWith(";")||(o[t]+=";"),e.props[t]=`${o[t]} ${e.props[t]}`):e.props[t]=o[t])}),void(t[n].props={...o,...e.props})}if(e._e===r._e)return r._duped=r._duped||[],e._d=`${r._d}:${r._duped.length+1}`,void r._duped.push(e);if(_r(e)>_r(r))return}const o=Object.keys(e.props).length+(e.innerHTML?1:0)+(e.textContent?1:0);Wn.includes(e.tag)&&0===o?delete t[n]:t[n]=e});const n=[];Object.values(t).forEach(e=>{const t=e._duped;delete e._duped,n.push(e),t&&n.push(...t)}),e.tags=n,e.tags=e.tags.filter(e=>!("meta"===e.tag&&(e.props.name||e.props.property)&&!e.props.content))}}},Cr={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(e=>["titleTemplate","templateParams","title"].includes(e.tag)&&"server"===e._m).forEach(e=>{t[e.tag]=e.tag.startsWith("title")?e.textContent:e.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},Nr=["script","link","bodyAttrs"];function Ir(e){const t={},n={};return Object.entries(e.props).forEach(([e,r])=>{e.startsWith("on")&&"function"==typeof r?(kr.includes(e)&&(t[e]=`this.dataset.${e} = true`),n[e]=r):t[e]=r}),{props:t,eventHandlers:n}}const Lr=e=>({hooks:{"tags:resolve":function(e){for(const t of e.tags)if(Nr.includes(t.tag)){const{props:e,eventHandlers:n}=Ir(t);t.props=e,Object.keys(n).length&&((t.props.src||t.props.href)&&(t.key=t.key||Xn(t.props.src||t.props.href)),t._eventHandlers=n)}},"dom:renderTag":function(e,t,n){if(!e.tag._eventHandlers)return;const r="bodyAttrs"===e.tag.tag?t.defaultView:e.$el;Object.entries(e.tag._eventHandlers).forEach(([t,o])=>{const i=`${e.tag._d||e.tag._p}:${t}`,s=t.slice(2).toLowerCase(),a=`data-h-${s}`;if(n(e.id,i,()=>{}),e.$el.hasAttribute(a))return;let c;e.$el.setAttribute(a,"");const l=e=>{o(e),c?.disconnect()};t in e.$el.dataset?l(new Event(t.replace("on",""))):kr.includes(t)&&"undefined"!=typeof MutationObserver?(c=new MutationObserver(e=>{e.some(e=>e.attributeName===`data-${t}`)&&(l(new Event(t.replace("on",""))),c?.disconnect())}),c.observe(e.$el,{attributes:!0})):r.addEventListener(s,l),n(e.id,i,()=>{c?.disconnect(),r.removeEventListener(s,l),e.$el.removeAttribute(a)})})}}}),Pr=["link","style","script","noscript"],Rr={hooks:{"tag:normalise":({tag:e})=>{e.key&&Pr.includes(e.tag)&&(e.props["data-hid"]=e._h=Xn(e.key))}}},Dr={hooks:{"tags:resolve":e=>{const t=t=>e.tags.find(e=>e._d===t)?._p;for(const{prefix:n,offset:r}of wr)for(const o of e.tags.filter(e=>
7"string"==typeof e.tagPriority&&e.tagPriority.startsWith(n))){const e=t(o.tagPriority.replace(n,""));void 0!==e&&(o._p=e+r)}e.tags.sort((e,t)=>e._p-t._p).sort((e,t)=>_r(e)-_r(t))}}},Mr={meta:"content",link:"href",htmlAttrs:"lang"},jr=e=>({hooks:{"tags:resolve":t=>{const{tags:n}=t,r=n.find(e=>"title"===e.tag)?.textContent,o=n.findIndex(e=>"templateParams"===e.tag),i=-1!==o?n[o].props:{},s=i.separator||"|";delete i.separator,i.pageTitle=Tr(i.pageTitle||r||"",i,s);for(const e of n.filter(e=>!1!==e.processTemplateParams)){const t=Mr[e.tag];t&&"string"==typeof e.props[t]?e.props[t]=Tr(e.props[t],i,s):(!0===e.processTemplateParams||["titleTemplate","title"].includes(e.tag))&&["innerHTML","textContent"].forEach(t=>{"string"==typeof e[t]&&(e[t]=Tr(e[t],i,s))})}e._templateParams=i,e._separator=s,t.tags=n.filter(e=>"templateParams"!==e.tag)}}}),Ur={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(e=>"titleTemplate"===e.tag);const r=t.findIndex(e=>"title"===e.tag);if(-1!==r&&-1!==n){const e=er(t[n].textContent,t[r].textContent);null!==e?t[r].textContent=e||t[r].textContent:delete t[r]}else if(-1!==n){const e=er(t[n].textContent);null!==e&&(t[n].textContent=e,t[n].tag="title",n=-1)}-1!==n&&delete t[n],e.tags=t.filter(Boolean)}}},qr={hooks:{"tags:afterResolve":function(e){for(const t of e.tags)"string"==typeof t.innerHTML&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"):t.innerHTML=t.innerHTML.replace(new RegExp(`</${t.tag}`,"g"),`<\\/${t.tag}`))}}};let Fr;function Br(e={}){const t=function(e={}){const t=Ot();t.addHooks(e.hooks||{}),e.document=e.document||(Qn?document:void 0);const n=!e.document,r=()=>{a.dirty=!0,t.callHook("entries:updated",a)};let o=0,i=[];const s=[],a={plugins:s,dirty:!1,resolvedOptions:e,hooks:t,headEntries:()=>i,use(e){const r="function"==typeof e?e(a):e;r.key&&s.some(e=>e.key===r.key)||(s.push(r),Vr(r.mode,n)&&t.addHooks(r.hooks||{}))},push(e,s){delete s?.head;const c={_i:o++,input:e,...s};return Vr(c.mode,n)&&(i.push(c),r()),{dispose(){i=i.filter(e=>e._i!==c._i),t.callHook("entries:updated",a),r()},patch(e){i=i.map(t=>(t._i===c._i&&(t.input=c.input=e),t)),r()}}},async resolveTags(){const e={tags:[],entries:[...i]};await t.callHook("entries:resolve",e);for(const n of e.entries){const r=n.resolvedInput||n.input;if(n.resolvedInput=await(n.transform?n.transform(r):r),n.resolvedInput)for(const o of await yr(n)){const r={tag:o,entry:n,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",r),e.tags.push(r.tag)}}return await t.callHook("tags:beforeResolve",e),await t.callHook("tags:resolve",e),await t.callHook("tags:afterResolve",e),e.tags},ssr:n};return[Ar,Cr,Lr,Rr,Dr,jr,Ur,qr,...e?.plugins||[]].forEach(e=>a.use(e)),a.hooks.callHook("init",a),a}(e);return t.use(xr()),Fr=t}function Vr(e,t){return!e||"server"===e&&t||"client"===e&&!t}const zr=c.startsWith("3");function $r(e,t=""){if(e instanceof Promise)return e;const n=function(e){return"function"==typeof e?e():a(e)}(e);return e&&n?Array.isArray(n)?n.map(e=>$r(e,t)):"object"==typeof n?Object.fromEntries(Object.entries(n).map(([e,t])=>"titleTemplate"===e||e.startsWith("on")?[e,a(t)]:[e,$r(t,e)])):n:n}const Hr={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=$r(t.input)}}},Wr="usehead";function Gr(e={}){e.domDelayFn=e.domDelayFn||(e=>s(()=>setTimeout(()=>e(),0)));const t=Br(e);return t.use(Hr),t.install=function(e){return{install(t){zr&&(t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(Wr,e))}}.install}(t),t}const Kr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Yr="__unhead_injection_handler__";function Qr(){if(Yr in Kr)return Kr[Yr]();const e=o(Wr);return e||Fr}function Xr(e,t={}){const n=t.head||Qr();if(n)return n.ssr?n.push(e,t):function(e,t,n={}){const o=l(!1),i=l({});u(()=>{i.value=o.value?{}:$r(t)});const s=e.push(i.value,n);h(i,e=>{s.patch(e)});r()&&(f(()=>{s.dispose()}),d(()=>{o.value=!0}),p(()=>{o.value=!1}));return s}(n,e,t)}function Jr(e){if("object"!=typeof e)return e;var t,n,r=Object.prototype.toString.call(e);
7if("[object Object]"===r){if(e.constructor!==Object&&"function"==typeof e.constructor)for(t in n=new e.constructor,e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=Jr(e[t]));else for(t in n={},e)"__proto__"===t?Object.defineProperty(n,t,{value:Jr(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=Jr(e[t]);return n}if("[object Array]"===r){for(t=e.length,n=Array(t);t--;)n[t]=Jr(e[t]);return n}return"[object Set]"===r?(n=new Set,e.forEach(function(e){n.add(Jr(e))}),n):"[object Map]"===r?(n=new Map,e.forEach(function(e,t){n.set(Jr(t),Jr(e))}),n):"[object Date]"===r?new Date(+e):"[object RegExp]"===r?((n=new RegExp(e.source,e.flags)).lastIndex=e.lastIndex,n):"[object DataView]"===r?new e.constructor(Jr(e.buffer)):"[object ArrayBuffer]"===r?e.slice(0):"Array]"===r.slice(-6)?new e.constructor(e):e}const Zr=En({nuxt:{buildId:"661baa0d-23c1-441e-898d-e9bbb96563b4"}});const eo=!1,to={componentName:"NuxtLink"},no={deep:!0},ro={};let oo,io;function so(){const e=function(){const e=Ft();return e._appConfig||(e._appConfig=t(Zr)),e._appConfig}().nuxt?.buildId;return oo=$fetch(nt(`builds/meta/${e}.json`)),oo.then(e=>{io=gn(e.matcher)}),oo}function ao(){return oo||so()}async function co(e){return await ao(),kn({},...io.matchAll(e).reverse())}function lo(e,t={}){const n=function(e,t={}){const n=new URL(e,"http://localhost");if("localhost"!==n.host||Ve(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);
7const r=t.hash||(t.fresh?Date.now():"");return Qe(Bt().app.baseURL,n.pathname,r?`_payload.${r}.${uo}`:`_payload.${uo}`)}(e,t),r=Ft(),o=r._payloadCache=r._payloadCache||{};return n in o||(o[n]=async function(e=Rn().path){e=$e(e);const t=await ao();if(t.prerendered.includes(e))return!0;const n=await co(e);return!!n.prerender&&!n.redirect}(e).then(e=>e?ho(n).then(e=>e||(delete o[n],null)):(o[n]=null,null))),o[n]}const uo="json";async function ho(e){const t=fetch(e).then(e=>e.text().then(mo));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}let fo=null;async function po(){if(fo)return fo;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await mo(e.textContent||""),n=e.dataset.src?await ho(e.dataset.src):void 0;return fo={...t,...n,...window.__NUXT__},fo}async function mo(e){return await $n(e,Ft()._payloadRevivers)}function go(e,t){Ft()._payloadRevivers[e]=t}const yo={NuxtError:e=>Fn(e),EmptyShallowRef:e=>m("_"===e?void 0:"0n"===e?BigInt(0):ct(e)),EmptyRef:e=>l("_"===e?void 0:"0n"===e?BigInt(0):ct(e)),ShallowRef:e=>m(e),ShallowReactive:e=>g(e),Ref:e=>l(e),Reactive:e=>t(e)},vo=Ut({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in yo)go(r,yo[r]);Object.assign(e.payload,([t,n]=Rt(()=>e.runWithContext(po)),t=await t,n(),t)),window.__NUXT__=e.payload}}),bo=[],_o=Ut({name:"nuxt:head",enforce:"pre",setup(e){const t=Gr({plugins:bo});var n;n=()=>Ft().vueApp._context.provides.usehead,Kr[Yr]=n,e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Sr(t)};t.hooks.hook("dom:beforeRender",e=>{e.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}}),wo="undefined"!=typeof document;const ko=Object.assign;function Eo(e,t){const n={};for(const r in t){const o=t[r];n[r]=So(o)?o.map(e):e(o)}return n}const To=()=>{},So=Array.isArray,xo=/#/g,Oo=/&/g,Ao=/\//g,Co=/=/g,No=/\?/g,Io=/\+/g,Lo=/%5B/g,Po=/%5D/g,Ro=/%5E/g,Do=/%60/g,Mo=/%7B/g,jo=/%7C/g,Uo=/%7D/g,qo=/%20/g;function Fo(e){return encodeURI(""+e).replace(jo,"|").replace(Lo,"[").replace(Po,"]")}function Bo(e){return Fo(e).replace(Io,"%2B").replace(qo,"+").replace(xo,"%23").replace(Oo,"%26").replace(Do,"`").replace(Mo,"{").replace(Uo,"}").replace(Ro,"^")}function Vo(e){return Bo(e).replace(Co,"%3D")}function zo(e){return null==e?"":function(e){return Fo(e).replace(xo,"%23").replace(No,"%3F")}(e).replace(Ao,"%2F")}function $o(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Ho=/\/$/;function Wo(e,t,n="/"){let r,o={},i="",s="";const a=t.indexOf("#");let c=t.indexOf("?");return a<c&&a>=0&&(c=-1),c>-1&&(r=t.slice(0,c),i=t.slice(c+1,a>-1?a:t.length),o=e(i)),a>-1&&(r=r||t.slice(0,a),s=t.slice(a,t.length)),r=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];".."!==o&&"."!==o||r.push("");let i,s,a=n.length-1;for(i=0;i<r.length;i++)if(s=r[i],"."!==s){if(".."!==s)break;a>1&&a--}return n.slice(0,a).join("/")+"/"+r.slice(i).join("/")}(null!=r?r:t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:$o(s)}}function Go(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Ko(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Yo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Qo(e[n],t[n]))return!1;return!0}function Qo(e,t){return So(e)?Xo(e,t):So(t)?Xo(t,e):e===t}function Xo(e,t){return So(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}var Jo,Zo,ei,ti;function ni(e){if(!e)if(wo){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(Ho,"")}(Zo=Jo||(Jo={})).pop="pop",Zo.push="push",(ti=ei||(ei={})).back="back",ti.forward="forward",ti.unknown="";const ri=/^[^#]+#/;function oi(e,t){return e.replace(ri,"#")+t}const ii=()=>({left:window.scrollX,top:window.scrollY});function si(e){let t;if("el"in e){const n=e.el,r="string"==typeof n&&n.startsWith("#"),o="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}
7function ai(e,t){return(history.state?history.state.position-t:-1)+e}const ci=new Map;function li(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let t=o.includes(e.slice(i))?e.slice(i).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),Go(n,"")}return Go(n,e)+r+o}function ui(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ii():null}}function hi(e){const{history:t,location:n}=window,r={value:li(e,n)},o={value:t.state};function i(r,i,s){const a=e.indexOf("#"),c=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+r:location.protocol+"//"+location.host+e+r;try{t[s?"replaceState":"pushState"](i,"",c),o.value=i}catch(l){console.error(l),n[s?"replace":"assign"](c)}}return o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:function(e,n){const s=ko({},o.value,t.state,{forward:e,scroll:ii()});i(s.current,s,!0),i(e,ko({},ui(r.value,e,null),{position:s.position+1},n),!1),r.value=e},replace:function(e,n){i(e,ko({},t.state,ui(o.value.back,e,o.value.forward,!0),n,{position:o.value.position}),!0),r.value=e}}}function fi(e){const t=hi(e=ni(e)),n=function(e,t,n,r){let o=[],i=[],s=null;const a=({state:i})=>{const a=li(e,location),c=n.value,l=t.value;let u=0;if(i){if(n.value=a,t.value=i,s&&s===c)return void(s=null);u=l?i.position-l.position:0}else r(a);o.forEach(e=>{e(n.value,c,{delta:u,type:Jo.pop,direction:u?u>0?ei.forward:ei.back:ei.unknown})})};function c(){const{history:e}=window;e.state&&e.replaceState(ko({},e.state,{scroll:ii()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace);const r=ko({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:oi.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function di(e){return"string"==typeof e||"symbol"==typeof e}const pi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},mi=Symbol("");var gi,yi;function vi(e,t){return ko(new Error,{type:e,[mi]:!0},t)}function bi(e,t){return e instanceof Error&&mi in e&&(null==t||!!(e.type&t))}(yi=gi||(gi={}))[yi.aborted=4]="aborted",yi[yi.cancelled=8]="cancelled",yi[yi.duplicated=16]="duplicated";const _i="[^/]+?",wi={sensitive:!1,strict:!1,start:!0,end:!0},ki=/[.+*?^${}()[\]/\\]/g;function Ei(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function Ti(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const e=Ei(r[n],o[n]);if(e)return e;n++}if(1===Math.abs(o.length-r.length)){if(Si(r))return 1;if(Si(o))return-1}return o.length-r.length}function Si(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const xi={type:0,value:""},Oi=/[a-zA-Z0-9_]/;function Ai(e,t,n){const r=function(e,t){const n=ko({},wi,t),r=[];let o=n.start?"^":"";const i=[];for(const c of e){const e=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let t=0;t<c.length;t++){const r=c[t];let s=40+(n.sensitive?.25:0);if(0===r.type)t||(o+="/"),o+=r.value.replace(ki,"\\$&"),s+=40;else if(1===r.type){const{value:e,repeatable:n,optional:l,regexp:u}=r;i.push({name:e,repeatable:n,optional:l});const h=u||_i;if(h!==_i){s+=10;try{new RegExp(`(${h})`)}catch(a){throw new Error(`Invalid custom RegExp for param "${e}" (${h}): `+a.message)}}let f=n?`((?:${h})(?:/(?:${h}))*)`:`(${h})`;t||(f=l&&c.length<2?`(?:/${f})`:"/"+f),l&&(f+="?"),o+=f,s+=20,l&&(s+=-8),n&&(s+=-20),".*"===h&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");return{re:s,score:r,keys:i,parse:function(e){const t=e.match(s),n={};if(!t)return null;for(let r=1;r<t.length;r++){const e=t[r]||"",o=i[r-1];n[o.name]=e&&o.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",r=!1;for(const o of e){r&&n.endsWith("/")||(n+="/"),r=!1;for(const e of o)if(0===e.type)n+=e.value;else if(1===e.type){const{value:i,repeatable:s,optional:a}=e,c=i in t?t[i]:"";if(So(c)&&!s)throw new Error(`Provided param "${i}" is an array but it is not repeatable (* or + modifiers)`);const l=So(c)?c.join("/"):c;if(!l){if(!a)throw new Error(`Missing required param "${i}"`);o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=l}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[xi]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let a,c=0,l="",u="";function h(){l&&(0===n?i.push({type:0,value:l}):1===n||2===n||3===n?(i.length>1&&("*"===a||"+"===a)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:l,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),l="")}function f(){l+=a}for(;c<e.length;)if(a=e[c++],"\\"!==a||2===n)switch(n){case 0:"/"===a?(l&&h(),s()):":"===a?(h(),n=1):f();break;case 4:f(),n=r;break;case 1:"("===a?n=2:Oi.test(a)?f():(h(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&c--);break;case 2:")"===a?"\\"==u[u.length-1]?u=u.slice(0,-1)+a:n=3:u+=a;break;case 3:h(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&c--,u="";break;default:t("Unknown state")}else r=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${l}"`),h(),s(),o}(e.path),n),o=ko(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Ci(e,t){const n=[],r=new Map;function o(e,n,r){const a=!r,c=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Ii(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);c.aliasOf=r&&r.record;const l=Ri(t,e),u=[c];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(ko({},c,{components:r?r.record.components:c.components,path:e,aliasOf:r?r.record:c}))}let h,f;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&r+u)}if(h=Ai(t,n,l),r?r.alias.push(h):(f=f||h,f!==h&&f.alias.push(h),a&&e.name&&!Li(h)&&i(e.name)),c.children){const e=c.children;for(let t=0;t<e.length;t++)o(e[t],h,r&&r.children[t])}r=r||h,(h.record.components&&Object.keys(h.record.components).length||h.record.name||h.record.redirect)&&s(h)}return f?()=>{i(f)}:To}function i(e){if(di(e)){const t=r.get(e);
7t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){let t=0;for(;t<n.length&&Ti(e,n[t])>=0&&(e.record.path!==n[t].record.path||!Di(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Li(e)&&r.set(e.record.name,e)}return t=Ri({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>o(e)),{addRoute:o,resolve:function(e,t){let o,i,s,a={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw vi(1,{location:e});s=o.record.name,a=ko(Ni(t.params,o.keys.filter(e=>!e.optional).concat(o.parent?o.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Ni(e.params,o.keys.map(e=>e.name))),i=o.stringify(a)}else if(null!=e.path)i=e.path,o=n.find(e=>e.re.test(i)),o&&(a=o.parse(i),s=o.record.name);else{if(o=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!o)throw vi(1,{location:e,currentLocation:t});s=o.record.name,a=ko({},t.params,e.params),i=o.stringify(a)}const c=[];let l=o;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:i,params:a,matched:c,meta:Pi(c)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}function Ni(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ii(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"==typeof n?n[r]:n;return t}function Li(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Pi(e){return e.reduce((e,t)=>ko(e,t.meta),{})}function Ri(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Di(e,t){return t.children.some(t=>t===e||Di(e,t))}function Mi(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const e=n[r].replace(Io," "),o=e.indexOf("="),i=$o(o<0?e:e.slice(0,o)),s=o<0?null:$o(e.slice(o+1));if(i in t){let e=t[i];So(e)||(e=t[i]=[e]),e.push(s)}else t[i]=s}return t}function ji(e){let t="";for(let n in e){const r=e[n];if(n=Vo(n),null==r){void 0!==r&&(t+=(t.length?"&":"")+n);continue}const o=So(r)?r.map(e=>e&&Bo(e)):[r&&Bo(r)];o.forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})}return t}function Ui(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=So(r)?r.map(e=>null==e?null:""+e):null==r?r:""+r)}return t}const qi=Symbol(""),Fi=Symbol(""),Bi=Symbol(""),Vi=Symbol(""),zi=Symbol("");function $i(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function Hi(e,t,n,r,o,i=e=>e()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,c)=>{const l=e=>{var i;!1===e?c(vi(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(i=e)||i&&"object"==typeof i?c(vi(2,{from:t,to:e})):(s&&r.enterCallbacks[o]===s&&"function"==typeof e&&s.push(e),a())},u=i(()=>e.call(r&&r.instances[o],t,n,l));let h=Promise.resolve(u);e.length<3&&(h=h.then(l)),h.catch(e=>c(e))})}function Wi(e,t,n,r,o=e=>e()){const i=[];for(const s of e)for(const e in s.components){let a=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if(Gi(a)){const c=(a.__vccOpts||a)[t];c&&i.push(Hi(c,n,r,s,e,o))}else{let c=a();i.push(()=>c.then(i=>{if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const a=(c=i).__esModule||"Module"===c[Symbol.toStringTag]?i.default:i;var c;s.components[e]=a;const l=(a.__vccOpts||a)[t];return l&&Hi(l,n,r,s,e,o)()}))}}return i}function Gi(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function Ki(e){const t=o(Bi),n=o(Vi),r=v(()=>t.resolve(a(e.to))),i=v(()=>{const{matched:e}=r.value,{length:t}=e,o=e[t-1],i=n.matched;if(!o||!i.length)return-1;const s=i.findIndex(Ko.bind(null,o));if(s>-1)return s;const a=Qi(e[t-2]);return t>1&&Qi(o)===a&&i[i.length-1].path!==a?i.findIndex(Ko.bind(null,e[t-2])):s}),s=v(()=>i.value>-1&&function(e,t){for(const n in t){const r=t[n],o=e[n];if("string"==typeof r){if(r!==o)return!1}else if(!So(o)||o.length!==r.length||r.some((e,t)=>e!==o[t]))return!1}return!0}(n.params,r.value.params)),c=v(()=>i.value>-1&&i.value===n.matched.length-1&&Yo(n.params,r.value.params));return{route:r,href:v(()=>r.value.href),isActive:s,isExactActive:c,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[a(e.replace)?"replace":"push"](a(e.to)).catch(To):Promise.resolve()}}}const Yi=y({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ki,setup(e,{slots:n}){const r=t(Ki(e)),{options:i}=o(Bi),s=v(()=>({[Xi(e.activeClass,i.linkActiveClass,"router-link-active")]:r.isActive,[Xi(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const t=n.default&&n.default(r);return e.custom?t:b("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},t)}}});function Qi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Xi=(e,t,n)=>null!=e?e:null!=t?t:n,Ji=y({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=o(zi),i=v(()=>e.route||r.value),s=o(Fi,0),c=v(()=>{let e=a(s);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e}),u=v(()=>i.value.matched[c.value]);_(Fi,v(()=>c.value+1)),_(qi,u),_(zi,i);const f=l();return h(()=>[f.value,u.value,e.name],([e,t,n],[r,o,i])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&Ko(t,o)&&r||(t.enterCallbacks[n]||[]).forEac
7h(t=>t(e))},{flush:"post"}),()=>{const r=i.value,o=e.name,s=u.value,a=s&&s.components[o];if(!a)return Zi(n.default,{Component:a,route:r});const c=s.props[o],l=c?!0===c?r.params:"function"==typeof c?c(r):c:null,h=b(a,ko({},l,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[o]=null)},ref:f}));return Zi(n.default,{Component:h,route:r})||h}}});function Zi(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const es=Ji;function ts(e){const t=Ci(e.routes,e),n=e.parseQuery||Mi,r=e.stringifyQuery||ji,o=e.history,i=$i(),c=$i(),l=$i(),u=m(pi);let h=pi;wo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Eo.bind(null,e=>""+e),d=Eo.bind(null,zo),p=Eo.bind(null,$o);function y(e,i){if(i=ko({},i||u.value),"string"==typeof e){const r=Wo(n,e,i.path),s=t.resolve({path:r.path},i),a=o.createHref(r.fullPath);return ko(r,s,{params:p(s.params),hash:$o(r.hash),redirectedFrom:void 0,href:a})}let s;if(null!=e.path)s=ko({},e,{path:Wo(n,e.path,i.path).path});else{const t=ko({},e.params);for(const e in t)null==t[e]&&delete t[e];s=ko({},e,{params:d(t)}),i.params=d(i.params)}const a=t.resolve(s,i),c=e.hash||"";a.params=f(p(a.params));const l=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(r,ko({},e,{hash:(h=c,Fo(h).replace(Mo,"{").replace(Uo,"}").replace(Ro,"^")),path:a.path}));var h;const m=o.createHref(l);return ko({fullPath:l,hash:c,query:r===ji?Ui(e.query):e.query||{}},a,{redirectedFrom:void 0,href:m})}function v(e){return"string"==typeof e?Wo(n,e,u.value.path):ko({},e)}function b(e,t){if(h!==e)return vi(8,{from:t,to:e})}function _(e){return k(e)}function w(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"==typeof n?n(e):n;return"string"==typeof r&&(r=r.includes("?")||r.includes("#")?r=v(r):{path:r},r.params={}),ko({query:e.query,hash:e.hash,params:null!=r.path?{}:e.params},r)}}function k(e,t){const n=h=y(e),o=u.value,i=e.state,s=e.force,a=!0===e.replace,c=w(n);if(c)return k(ko(v(c),{state:"object"==typeof c?ko({},i,c.state):i,force:s,replace:a}),t||n);const l=n;let f;return l.redirectedFrom=t,!s&&function(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Ko(t.matched[r],n.matched[o])&&Yo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(r,o,n)&&(f=vi(16,{to:l,from:o}),D(o,o,!0,!1)),(f?Promise.resolve(f):S(l,o)).catch(e=>bi(e)?bi(e,2)?e:R(e):P(e,l,o)).then(e=>{if(e){if(bi(e,2))return k(ko({replace:a},v(e.to),{state:"object"==typeof e.to?ko({},i,e.to.state):i,force:s}),t||l)}else e=O(l,o,!0,a,i);return x(l,o,e),e})}function E(e,t){const n=b(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){const t=U.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function S(e,t){let n;const[r,o,s]=function(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const i=t.matched[s];i&&(e.matched.find(e=>Ko(e,i))?r.push(i):n.push(i));const a=e.matched[s];a&&(t.matched.find(e=>Ko(e,a))||o.push(a))}return[n,r,o]}(e,t);n=Wi(r.reverse(),"beforeRouteLeave",e,t);for(const i of r)i.leaveGuards.forEach(r=>{n.push(Hi(r,e,t))});const a=E.bind(null,e,t);return n.push(a),F(n).then(()=>{n=[];for(const r of i.list())n.push(Hi(r,e,t));return n.push(a),F(n)}).then(()=>{n=Wi(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach(r=>{n.push(Hi(r,e,t))});return n.push(a),F(n)}).then(()=>{n=[];for(const r of s)if(r.beforeEnter)if(So(r.beforeEnter))for(const o of r.beforeEnter)n.push(Hi(o,e,t));else n.push(Hi(r.beforeEnter,e,t));return n.push(a),F(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Wi(s,"beforeRouteEnter",e,t,T),n.push(a),F(n))).then(()=>{n=[];for(const r of c.list())n.push(Hi(r,e,t));return n.push(a),F(n)}).catch(e=>bi(e,8)?e:Promise.reject(e))}function x(e,t,n){l.list().forEach(r=>T(()=>r(e,t,n)))}function O(e,t,n,r,i){const s=b(e,t);if(s)return s;const a=t===pi,c=wo?history.state:{};n&&(r||a?o.replace(e.fullPath,ko({scroll:a&&c&&c.scroll},i)):o.push(e.fullPath,i)),u.value=e,D(e,t,n,a),R()}let A;function C(){A||(A=o.listen((e,t,n)=>{if(!q.listening)return;const r=y(e),i=w(r);if(i)return void k(ko(i,{replace:!0}),r).catch(To);h=r;const s=u.value;var a,c;
7wo&&(a=ai(s.fullPath,n.delta),c=ii(),ci.set(a,c)),S(r,s).catch(e=>bi(e,12)?e:bi(e,2)?(k(e.to,r).then(e=>{bi(e,20)&&!n.delta&&n.type===Jo.pop&&o.go(-1,!1)}).catch(To),Promise.reject()):(n.delta&&o.go(-n.delta,!1),P(e,r,s))).then(e=>{(e=e||O(r,s,!1))&&(n.delta&&!bi(e,8)?o.go(-n.delta,!1):n.type===Jo.pop&&bi(e,20)&&o.go(-1,!1)),x(r,s,e)}).catch(To)}))}let N,I=$i(),L=$i();function P(e,t,n){R(e);const r=L.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function R(e){return N||(N=!e,C(),I.list().forEach(([t,n])=>e?n(e):t()),I.reset()),e}function D(t,n,r,o){const{scrollBehavior:i}=e;if(!wo||!i)return Promise.resolve();const a=!r&&function(e){const t=ci.get(e);return ci.delete(e),t}(ai(t.fullPath,0))||(o||!r)&&history.state&&history.state.scroll||null;return s().then(()=>i(t,n,a)).then(e=>e&&si(e)).catch(e=>P(e,t,n))}const M=e=>o.go(e);let j;const U=new Set,q={currentRoute:u,listening:!0,addRoute:function(e,n){let r,o;return di(e)?(r=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,r)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:y,options:e,push:_,replace:function(e){return _(ko(v(e),{replace:!0}))},go:M,back:()=>M(-1),forward:()=>M(1),beforeEach:i.add,beforeResolve:c.add,afterEach:l.add,onError:L.add,isReady:function(){return N&&u.value!==pi?Promise.resolve():new Promise((e,t)=>{I.add([e,t])})},install(e){e.component("RouterLink",Yi),e.component("RouterView",es),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>a(u)}),wo&&!j&&u.value===pi&&(j=!0,_(o.location).catch(e=>{}));const t={};for(const r in pi)Object.defineProperty(t,r,{get:()=>u.value[r],enumerable:!0});e.provide(Bi,this),e.provide(Vi,g(t)),e.provide(zi,u);const n=e.unmount;U.add(e),e.unmount=function(){U.delete(e),U.size<1&&(h=pi,A&&A(),A=null,u.value=pi,j=!1,N=!1),n()}}};function F(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return q}function ns(){return o(Vi)}const rs=(e,t)=>{const n=e.route.matched.find(t=>t.components?.default===e.Component.type),r=t??n?.meta.key??(n&&(o=e.route,n.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,e=>o.params[e.slice(1)]?.toString()||"")));var o;return"function"==typeof r?r(e.route):r};function os(e){return Array.isArray(e)?e:[e]}const is={layout:"home"},ss={layout:"no-sidebar"},as={layout:"no-sidebar"},cs={layout:"default"},ls={layout:"widget"},us=[{name:"id___pt",path:"/:id()",meta:{},alias:[],redirect:undefined,component:()=>zn(()=>import("./_id_.EGf2Dg6g.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39]),import.meta.url).then(e=>e.default||e)},{name:"bandas___pt",path:"/bandas",meta:{},alias:[],redirect:undefined,component:()=>zn(()=>import("./bandas.BLwqgbxY.js"),__vite__mapDeps([40,3,5,1,2,4,41,11,12,13,14,15,16,27,42,43,20,21,7,9,44,45,36,37,38,46]),import.meta.url).then(e=>e.default||e)},{name:"claim-profile___pt",path:"/claim-profile",meta:{},alias:[],redirect:undefined,component:()=>zn(()=>import("./claim-profile.m4ND2EzK.js"),__vite__mapDeps([47,48,3,20,21,7,44,45,49,50,51,1,2,4,52,53,36,37,28,35,38]),import.meta.url).then(e=>e.default||e)},{name:"entusiastas___pt",path:"/entusiastas",meta:{},alias:[],redirect:undefined,component:()=>zn(()=>import("./entusiastas.fSAw9WmB.js"),__vite__mapDeps([54,3,5,1,2,4,41,11,12,13,14,15,16,27,42,43,20,21,9,44,45,7,36,37,38,55]),import.meta.url).then(e=>e.default||e)},{name:"evento-id___pt",path:"/evento/:id()",meta:{},alias:[],redirect:undefined,component:()=>zn(()=>import("./_id_.BzSlo9yd.js"),__vite__mapDeps([56,3]),import.meta.url).then(e=>e.default||e)},{name:"eventos___pt",path:"/eventos",meta:{},alias:[],redirect:undefined,component:()=>zn(()=>import("./index.CqibRxfz.js"),__vite__mapDeps([57,3,27,44,45,38,58,59,60]),import.meta.url).then(e=>e.default||e)},{name:"explorar___pt",path:"/explorar",meta:{},alias:[],redirect:undefined,component:()=>zn(()=>import("./explorar.RyUGf_W9.js"),__vite__mapDeps([61,38,30,3,12,13,27,11,14,15,6,7,8,31,32,33,34]),import.meta.url).then(e=>e.default||e)},{name:is?.name??"index___pt",path:is?.path??"/",meta:is||{},alias:is?.alias||[],redirect:is?.redirect,component:()=>zn(()=>import("./index.pTDCn-Yf.js"),__vite__mapDeps([62,63,3,64,44,45,65,11,12,13,14,15,27,18,66,67,7,52,53,68,22,23,69,20,21,50,5,70,30,6,8,31,32,33,34,71,72,37,58,59,73,74,75,38]),import.meta.url).then(e=>e.default||e)}
7,{name:"legal-politica-de-cookies___pt",path:"/legal/politica-de-cookies",meta:{},alias:[],redirect:undefined,component:()=>zn(()=>import("./politica-de-cookies.Cg1S4QS_.js"),__vite__mapDeps([76,48,3,20,21,7,44,45,36,37,38]),import.meta.url).then(e=>e.default||e)},{name:"legal-politica-de-privacidade___pt",path:"/legal/politica-de-privacidade",meta:{},alias:[],redirect:undefined,component:()=>zn(()=>import("./politica-de-privacidade.CFxBJQ1B.js"),__vite__mapDeps([77,48,3,20,21,7,44,45,36,37,38]),import.meta.url).then(e=>e.default||e)},{name:"legal-termos-de-servico___pt",path:"/legal/termos-de-servico",meta:{},alias:[],redirect:undefined,component:()=>zn(()=>import("./termos-de-servico.B-e51nXO.js"),__vite__mapDeps([78,48,3,20,21,7,44,45,36,37,38]),import.meta.url).then(e=>e.default||e)},{name:"motoclubes___pt",path:"/motoclubes",meta:{},alias:[],redirect:undefined,component:()=>zn(()=>import("./motoclubes.DAv_j5Xt.js"),__vite__mapDeps([79,3,5,25,26,1,2,4,41,11,12,13,14,15,16,27,42,43,20,21,9,44,45,7,36,37,38,80]),import.meta.url).then(e=>e.default||e)},{name:"motofest-path___pt",path:"/motofest/:path(.*)*",meta:{},alias:[],redirect:undefined,component:()=>zn(()=>import("./_...path_.BMYC_u7L.js"),__vite__mapDeps([81,44,3,45,31,32,82,22,23,83,66,12,13,67,14,27,7,52,53,68,33,20,21,84,37,38,36,58,59,85]),import.meta.url).then(e=>e.default||e)},{name:ss?.name??"painel-access-requested___pt",path:ss?.path??"/painel/access-requested",meta:ss||{},alias:ss?.alias||[],redirect:ss?.redirect,component:()=>zn(()=>import("./access-requested.D3y27bod.js"),__vite__mapDeps([86,52,3,53,7,10,31,32,38,87]),import.meta.url).then(e=>e.default||e)},{name:as?.name??"painel___pt",path:as?.path??"/painel",meta:as||{},alias:as?.alias||[],redirect:as?.redirect,component:()=>zn(()=>import("./index.D9PzKlGy.js").then(e=>e.i),__vite__mapDeps([88,31,3,32,17,7,18,19,28,44,45,83,1,2,4,67,72,6,8,20,21,25,26,69,50,5,70,64,24,12,13,11,14,15,27,10,9,29,89,16,90,91,92]),import.meta.url).then(e=>e.default||e)},{name:"servicos___pt",path:"/servicos",meta:{},alias:[],redirect:undefined,component:()=>zn(()=>import("./servicos.BNSVm2Xb.js"),__vite__mapDeps([93,3,5,1,2,4,41,11,12,13,14,15,16,27,42,43,20,21,9,10,44,45,7,36,37,38,94]),import.meta.url).then(e=>e.default||e)},{name:cs?.name??"v2___pt",path:cs?.path??"/v2",meta:cs||{},alias:cs?.alias||[],redirect:cs?.redirect,component:()=>zn(()=>import("./v2.D_Ot5rZR.js"),__vite__mapDeps([95,38,63,3,64,44,45,65,11,12,13,14,15,27,18,66,67,7,52,53,68,22,23,69,20,21,50,5,70,30,6,8,31,32,33,34,71,72,37,58,59,73,74,75]),import.meta.url).then(e=>e.default||e)},{name:ls?.name??"widget___pt",path:ls?.path??"/widget",meta:ls||{},alias:ls?.alias||[],redirect:ls?.redirect,component:()=>zn(()=>import("./widget.do3R5TTS.js"),__vite__mapDeps([96,38,3,12,13,25,26,90,36,37,97,98]),import.meta.url).then(e=>e.default||e)},{name:void 0,path:"/sitemap.xml",meta:{},alias:[],redirect:undefined,component:()=>zn(()=>import("./component-stub.B5do-lOF.js"),__vite__mapDeps([]),import.meta.url).then(e=>e.default||e)}],hs=(e,t,n)=>(t=!0===t?{}:t,{default:()=>t?b(e,t,n):n.default?.()});function fs(e){const t=e?.meta.key??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,t=>e.params[t.slice(1)]?.toString()||"");return"function"==typeof t?t(e):t}const ds={scrollBehavior(e,t,n){const r=Ft(),o=Pn().options?.scrollBehaviorType??"auto";let i=n||void 0;const s="function"==typeof e.meta.scrollToTop?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!i&&t&&e&&!1!==s&&function(e,t){return e!==t&&t!==pi&&(fs(e)!==fs(t)||!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default))}(e,t)&&(i={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:!!e.hash&&{el:e.hash,top:ps(e.hash),behavior:o};const a=e=>!!(e.meta.pageTransition??eo),c=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(t=>{r.hooks.hookOnce(c,async()=>{await new Promise(e=>setTimeout(e,0)),e.hash&&(i={el:e.hash,top:ps(e.hash),behavior:o}),t(i)})})}};function ps(e){try{const t=document.querySelector(e);
7if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}const ms=["ac","al","ap","am","ba","ce","df","es","go","ma","mt","ms","mg","pa","pb","pr","pe","pi","rj","rn","rs","ro","rr","sc","sp","se","to"].map(e=>e.toUpperCase()),gs={home:"/",profile:"/",motoclubs:"/motoclubes",bands:"/bandas",services:"/servicos",enthusiasts:"/entusiastas",explore:"/explorar",panel:"/painel",motofest:"/motofest"},ys={eventAttendances:(e,t)=>encodeURIComponent(`/event-attendances?${e?`eventId=${e}`:""}${t?`&profileId=${t}`:""}`)},vs=[{icon:"motorcycle",label:"Motofest",name:"motofest",slug:"motofest"},{icon:"music",label:"Casa Noturna",name:"nightclub",slug:"nightclub"},{icon:"beer",label:"Bar/Restaurante",name:"bar",slug:"bar"},{icon:"road",label:"Motopasseio",name:"riding",slug:"riding"},{icon:"cake",label:"Aniversário",name:"anniversary",slug:"anniversary"},{icon:"guitar",label:"Outro",name:"other",slug:"other"}],bs=[{abbr:"AC",name:"Acre",slug:"acre"},{abbr:"AL",name:"Alagoas",slug:"alagoas"},{abbr:"AP",name:"Amapá",slug:"amapa"},{abbr:"AM",name:"Amazonas",slug:"amazonas"},{abbr:"BA",name:"Bahia",slug:"bahia"},{abbr:"CE",name:"Ceará",slug:"ceara"},{abbr:"DF",name:"Distrito Federal",slug:"distrito-federal"},{abbr:"ES",name:"Espírito Santo",slug:"espirito-santo"},{abbr:"GO",name:"Goiás",slug:"goias"},{abbr:"MA",name:"Maranhão",slug:"maranhao"},{abbr:"MT",name:"Mato Grosso",slug:"mato-grosso"},{abbr:"MS",name:"Mato Grosso do Sul",slug:"mato-grosso-do-sul"},{abbr:"MG",name:"Minas Gerais",slug:"minas-gerais"},{abbr:"PA",name:"Pará",slug:"para"},{abbr:"PB",name:"Paraíba",slug:"paraiba"},{abbr:"PR",name:"Paraná",slug:"parana"},{abbr:"PE",name:"Pernambuco",slug:"pernambuco"},{abbr:"PI",name:"Piauí",slug:"piaui"},{abbr:"RJ",name:"Rio de Janeiro",slug:"rio-de-janeiro"},{abbr:"RN",name:"Rio Grande do Norte",slug:"rio-grande-do-norte"},{abbr:"RS",name:"Rio Grande do Sul",slug:"rio-grande-do-sul"},{abbr:"RO",name:"Rondônia",slug:"rondonia"},{abbr:"RR",name:"Roraima",slug:"roraima"},{abbr:"SC",name:"Santa Catarina",slug:"santa-catarina"},{abbr:"SP",name:"São Paulo",slug:"sao-paulo"},{abbr:"SE",name:"Sergipe",slug:"sergipe"},{abbr:"TO",name:"Tocantins",slug:"tocantins"}],_s=Object.fromEntries(bs.map(e=>[e.abbr,e.name])),ws=Object.fromEntries(bs.map(e=>[e.abbr,e.slug])),ks=Object.fromEntries(bs.map(e=>[e.slug,e.name])),Es=Object.fromEntries(bs.map(e=>[e.slug,e.abbr])),Ts=Object.fromEntries(bs.map(e=>[e.name,e.slug])),Ss=Object.fromEntries(bs.map(e=>[e.name,e.abbr])),xs=e=>{if(!e)return"";const t=e.trim();if(ws[t.toUpperCase()])return ws[t.toUpperCase()];if(ks[t.toLowerCase()])return t.toLowerCase();if(Ts[t])return Ts[t];const n=bs.find(e=>e.name.toLowerCase()===t.toLowerCase());return n?n.slug:t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")},Os=e=>e?ks[e.toLowerCase()]?ks[e.toLowerCase()]:e:"",As=e=>{if(!e)return"";const t=e.trim();if(_s[t.toUpperCase()])return t.toUpperCase();if(Es[t.toLowerCase()])return Es[t.toLowerCase()];if(Ss[t])return Ss[t];const n=bs.find(e=>e.name.toLowerCase()===t.toLowerCase());return n?n.abbr:t},Cs=e=>e?e.split("-").map(e=>{const t=e.toLowerCase();return["de","da","do","dos","das","e","em"].includes(t)?t:e.charAt(0).toUpperCase()+e.slice(1)}).join(" "):"",Ns=e=>e?e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,""):"",Is=Object.fromEntries(vs.map(e=>[e.slug,e.label])),Ls=Object.fromEntries([...vs.map(e=>[e.name,e.slug]),...vs.map(e=>[e.label,e.slug])]),Ps=e=>{if(!e)return"";const t=vs.find(t=>t.slug===e.toLowerCase()||t.name===e.toLowerCase());return t?t.label:Is[e.toLowerCase()]||e},Rs=e=>{if(!e)return"";const t=vs.find(t=>t.slug===e.toLowerCase()||t.name===e.toLowerCase());return t?t.name:e},Ds=e=>{if(!e)return"";const t=vs.find(t=>t.name===e||t.slug===e||t.label.toLowerCase()===e.toLowerCase());return t?t.slug:Ls[e]||e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")},Ms=e=>!!e&&(Object.keys(Is).includes(e.toLowerCase())||vs.some(t=>t.slug===e.toLowerCase()||t.name===e.toLowerCase())),js=e=>!!e&&(Object.keys(ks).includes(e.toLowerCase())||Object.keys(_s).includes(e.toUpperCase())),Us=e=>!!e&&(!Ms(e)&&!js(e)),qs=e=>{if(!e||"/"===e||"/eventos"===e)return!0;
7if(!e.startsWith("/motofest/"))return!1;const t=e.replace(/^\/motofest\/?/,"").split("?")[0].split("#")[0].split("/").filter(Boolean);return 1===t.length?Ms(t[0])||js(t[0]):2===t.length?js(t[0])&&(Ms(t[1])||Us(t[1])):3===t.length&&(js(t[0])&&Us(t[1])&&Ms(t[2]))},Fs={hashMode:!1,scrollBehaviorType:"auto",...ds,...{scrollBehavior:(e,t,n)=>n||(e.hash?{el:e.hash,top:0,behavior:"smooth"}:!1!==e.meta.scrollToTop&&(e.path!==t.path&&((!qs(e.path)||!qs(t.path))&&{left:0,top:0,behavior:"smooth"})))}},Bs=[async e=>{let t,n;if(!e.meta?.validate)return;const r=Ft(),o=Pn();if(!0===([t,n]=Rt(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t))return;const i=Fn({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),s=o.beforeResolve(t=>{if(s(),t===e){const t=o.afterEach(async()=>{t(),await r.runWithContext(()=>Un(i)),window.history.pushState({},"",e.fullPath)});return!1}})},async e=>{let t,n;const r=([t,n]=Rt(()=>co(e.path)),t=await t,n(),t);if(r.redirect)return r.redirect}],Vs={};const zs=Ut({name:"nuxt:router",enforce:"pre",async setup(e){let n,r,o=Bt().app.baseURL;Fs.hashMode&&!o.includes("#")&&(o+="#");const i=Fs.history?.(o)??(Fs.hashMode?(s=o,(s=location.host?s||location.pathname+location.search:"").includes("#")||(s+="#"),fi(s)):fi(o));var s;const a=Fs.routes?.(us)??us;let c;const l=function(e,t,n){const{pathname:r,search:o,hash:i}=t,s=e.indexOf("#");if(s>-1){const t=i.includes(e.slice(s))?e.slice(s).length:1;let n=i.slice(t);return"/"!==n[0]&&(n="/"+n),Ge(n,"")}const a=Ge(r,e),c=!n||Xe(a,n,{trailingSlash:!0})?a:n;return c+(c.includes("?")?"":o)+i}(o,window.location,e.payload.path),u=ts({...Fs,scrollBehavior:(e,t,n)=>{if(t!==pi){if(Fs.scrollBehavior){if(u.options.scrollBehavior=Fs.scrollBehavior,"scrollRestoration"in window.history){const e=u.beforeEach(()=>{e(),window.history.scrollRestoration="manual"})}return Fs.scrollBehavior(e,pi,c||n)}}else c=n},history:i,routes:a});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(u);const h=m(u.currentRoute.value);u.afterEach((e,t)=>{h.value=t}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>h.value});const f=m(u.resolve(l)),d=()=>{f.value=u.currentRoute.value};e.hook("page:finish",d),u.afterEach((e,t)=>{e.matched[0]?.components?.default===t.matched[0]?.components?.default&&d()});const p={};for(const t in f.value)Object.defineProperty(p,t,{get:()=>f.value[t]});e._route=g(p),e._middleware=e._middleware||{global:[],named:{}};const y=jn();try{0,[n,r]=Rt(()=>u.isReady()),await n,r()}catch(b){[n,r]=Rt(()=>e.runWithContext(()=>Un(b))),await n,r()}const v=e.payload.state._layout;return u.beforeEach(async(n,r)=>{await e.callHook("page:loading:start"),n.meta=t(n.meta),e.isHydrating&&v&&!k(n.meta.layout)&&(n.meta.layout=v),e._processingMiddleware=!0;{const t=new Set([...Bs,...e._middleware.global]);for(const e of n.matched){const n=e.meta.middleware;if(n)for(const e of os(n))t.add(e)}for(const o of t){const t="string"==typeof o?e._middleware.named[o]||await(Vs[o]?.().then(e=>e.default||e)):o;if(!t)throw new Error(`Unknown route middleware: '${o}'.`);const i=await e.runWithContext(()=>t(n,r));if(!e.payload.serverRendered&&e.isHydrating&&(!1===i||i instanceof Error)){const t=i||On({statusCode:404,statusMessage:`Page Not Found: ${l}`});return await e.runWithContext(()=>Un(t)),!1}if(!0!==i&&(i||!1===i))return i}}}),u.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),u.afterEach(async(t,n,r)=>{delete e._processingMiddleware,!e.isHydrating&&y.value&&await e.runWithContext(qn),r&&await e.callHook("page:loading:end"),0===t.matched.length&&await e.runWithContext(()=>Un(On({statusCode:404,fatal:!1,statusMessage:`Page not found: ${t.fullPath}`,data:{path:t.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{const e=u.resolve(l);"name"in e&&(e.name=void 0),await u.replace({...e,force:!0}),u.options.scrollBehavior=Fs.scrollBehavior}catch(b){await e.runWithContext(()=>Un(b))}}),{provide:{router:u}}}});function $s(e=Ft()){return e.ssrContext?.event}function Hs(...e){const t="string"==typeof e[e.length-1]?e.pop():void 0;"string"!=typeof e[0]&&e.unshift(t);const[n,r]=e;if(!n||"string"!=typeof n)throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(void 0!==r&&"function"!=typeof r)throw new Error("[nuxt] [useState] init must be a function: "+r);const o="$s"+n,s=Ft(),a=i(s.payload.state,o);if(void 0===a.value&&r){const e=r();if(E(e))return s.payload.state[o]=e,e;a.value=e}return a}const Ws=Ut({name:"nuxt-site-config:init",enforce:"pre",async setup(e){let t={};return t=Hs("site-config").value||window.__NUXT_SITE_CONFIG__,{provide:{nuxtSiteConfig:t}}}}),Gs=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Ks=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Ys=e=>{const t=Ft();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Gs(e)}):Gs(e)}
7,Qs=Ut({name:"nuxt:payload",setup(e){Pn().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await lo(t.path);r&&Object.assign(e.static.data,r.data)}),Ys(()=>{e.hooks.hook("link:prefetch",async e=>{Ze(e).protocol||await lo(e)}),"slow-2g"!==navigator.connection?.effectiveType&&setTimeout(ao,1e3)})}}),Xs=Ut(e=>{let t;async function n(){const r=await ao();t&&clearTimeout(t),t=setTimeout(n,36e5);const o=await $fetch(nt("builds/latest.json")+`?${Date.now()}`);o.id!==r.id&&e.hooks.callHook("app:manifest:update",o)}Ys(()=>{t=setTimeout(n,36e5)})}),Js=Ut({name:"nuxt:global-components"}),Zs={default:()=>zn(()=>import("./default.ZpUVxPiO.js"),__vite__mapDeps([99,100,3,27,18,67,72,10,101,102,103,104,90,36,37,17,7,19,105,73,66,12,13,14,52,53,68,74,106]),import.meta.url).then(e=>e.default||e),home:()=>zn(()=>import("./home.CQT49ssj.js"),__vite__mapDeps([107,100,3,27,18,67,72,10,101,102,103,104,90,36,37,17,7,19,105,108]),import.meta.url).then(e=>e.default||e),"no-sidebar":()=>zn(()=>import("./no-sidebar.UdUe-iIK.js"),__vite__mapDeps([109,100,3,27,18,67,72,10,101,90,110]),import.meta.url).then(e=>e.default||e),widget:()=>zn(()=>import("./widget.D5cL6tGl.js"),__vite__mapDeps([111,3,112]),import.meta.url).then(e=>e.default||e)},ea=Ut({name:"nuxt:prefetch",setup(e){const t=Pn();e.hooks.hook("app:mounted",()=>{t.beforeEach(async e=>{const t=e?.meta?.layout;t&&"function"==typeof Zs[t]&&await Zs[t]()})}),e.hooks.hook("link:prefetch",e=>{if(Ve(e))return;const n=t.resolve(e);if(!n)return;const r=n.meta.layout;let o=os(n.meta.middleware);o=o.filter(e=>"string"==typeof e);for(const t of o)"function"==typeof Vs[t]&&Vs[t]();r&&"function"==typeof Zs[r]&&Zs[r]()})}}),ta=Ut(()=>({provide:{pwaIcons:{transparent:{},maskable:{},favicon:{},apple:{},appleSplashScreen:{}}}})),na=Object.prototype.toString;function ra(e){switch(na.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return pa(e,Error)}}function oa(e,t){return na.call(e)===`[object ${t}]`}function ia(e){return oa(e,"ErrorEvent")}function sa(e){return oa(e,"DOMError")}function aa(e){return oa(e,"DOMException")}function ca(e){return oa(e,"String")}function la(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function ua(e){return null===e||la(e)||"object"!=typeof e&&"function"!=typeof e}function ha(e){return oa(e,"Object")}function fa(e){return"undefined"!=typeof Event&&pa(e,Event)}function da(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function pa(e,t){try{return e instanceof t}catch(AC){return!1}}function ma(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function ga(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function ya(e,t){if(!Array.isArray(e))return"";const n=[];for(let o=0;o<e.length;o++){const t=e[o];try{ma(t)?n.push("[VueViewModel]"):n.push(String(t))}catch(r){n.push("[value cannot be serialized]")}}return n.join(t)}function va(e,t,n=!1){return!!ca(e)&&(oa(t,"RegExp")?t.test(e):!!ca(t)&&(n?e===t:e.includes(t)))}function ba(e,t=[],n=!1){return t.some(t=>va(e,t,n))}const _a="8.37.1",wa=globalThis;function ka(e,t,n){const r=n||wa,o=r.__SENTRY__=r.__SENTRY__||{},i=o[_a]=o[_a]||{};return i[e]||(i[e]=t())}const Ea=wa;function Ta(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const a=" > ",c=a.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,h=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++<r&&(l=Sa(n,u),!("html"===l||i>1&&s+o.length*c+l.length>=h));)o.push(l),s+=l.length,n=n.parentNode;return o.reverse().join(a)}catch(n){return"<unknown>"}}function Sa(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Ea.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(o&&o.length)o.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&ca(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const i=["aria-label","type","name","title","alt"];for(const s of i){const e=n.getAttribute(s);e&&r.push(`[${s}="${e}"]`)}return r.join("")}function xa(){try{return Ea.document.location.href}catch(e){return""}}function Oa(e){if(!Ea.HTMLElement)return null;let t=e;for(let n=0;n<5;n++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}const Aa="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Ca=["debug","info","warn","error","log","assert","trace"],Na={};function Ia(e){if(!("console"in wa))return e();const t=wa.console,n={},r=Object.keys(Na);
7r.forEach(e=>{const r=Na[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}const La=ka("logger",function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Aa?Ca.forEach(n=>{t[n]=(...t)=>{e&&Ia(()=>{wa.console[n](`Sentry Logger [${n}]:`,...t)})}}):Ca.forEach(e=>{t[e]=()=>{}}),t}),Pa=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ra(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function Da(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Ma(e){const t="string"==typeof e?function(e){const t=Pa.exec(e);if(!t)return void Ia(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,r,o="",i="",s="",a=""]=t.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return Da({host:i,pass:o,path:c,projectId:l,port:s,protocol:n,publicKey:r})}(e):Da(e);if(t&&function(e){if(!Aa)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(La.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(La.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(La.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(La.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}function ja(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&qa(o,r),e[t]=o}function Ua(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){Aa&&La.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function qa(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Ua(e,"__sentry_original__",t)}catch(n){}}function Fa(e){return e.__sentry_original__}function Ba(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Va(e){if(ra(e))return{message:e.message,name:e.name,stack:e.stack,...$a(e)};if(fa(e)){const t={type:e.type,target:za(e.target),currentTarget:za(e.currentTarget),...$a(e)};return"undefined"!=typeof CustomEvent&&pa(e,CustomEvent)&&(t.detail=e.detail),t}return e}function za(e){try{return t=e,"undefined"!=typeof Element&&pa(t,Element)?Ta(e):Object.prototype.toString.call(e)}catch(n){return"<unknown>"}var t}function $a(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Ha(e,t=40){const n=Object.keys(Va(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return ga(r,t);for(let o=n.length;o>0;o--){const e=n.slice(0,o).join(", ");if(!(e.length>t))return o===n.length?e:ga(e,t)}return""}function Wa(e){return Ga(e,new Map)}function Ga(e,t){if(function(e){if(!ha(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(t){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const o of Object.getOwnPropertyNames(e))void 0!==e[o]&&(r[o]=Ga(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach(e=>{r.push(Ga(e,t))}),r}return e}const Ka="?",Ya=/\(error: (.*)\)/,Qa=/captureMessage|captureException/;function Xa(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{const o=[],i=e.split("\n");for(let s=n;s<i.length;s++){const e=i[s];if(e.length>1024)continue;const n=Ya.test(e)?e.replace(Ya,"$1"):e;if(!n.match(/\S*Error: /)){for(const e of t){const t=e(n);if(t){o.push(t);break}}if(o.length>=50+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(Za(t).function||"")&&t.pop();t.reverse(),Qa.test(Za(t).function||"")&&(t.pop(),Qa.test(Za(t).function||"")&&t.pop());return t.slice(0,50).map(e=>({...e,filename:e.filename||Za(t).filename,function:e.function||"?"}))}(o.slice(r))}}function Ja(e){return Array.isArray(e)?Xa(...e):e}function Za(e){return e[e.length-1]||{}}const ec="<anonymous>";function tc(e){try{return e&&"function"==typeof e&&e.name||ec}catch(t){return ec}}function nc(e){const t=e.exception;if(t){const e=[];
7try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch(n){return}}}const rc={},oc={};function ic(e,t){rc[e]=rc[e]||[],rc[e].push(t)}function sc(e,t){if(!oc[e]){oc[e]=!0;try{t()}catch(n){Aa&&La.error(`Error while instrumenting ${e}`,n)}}}function ac(e,t){const n=e&&rc[e];if(n)for(const o of n)try{o(t)}catch(r){Aa&&La.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${tc(o)}\nError:`,r)}}const cc=wa;function lc(){if(!("fetch"in cc))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function uc(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function hc(){return Date.now()/1e3}const fc=function(){const{performance:e}=wa;if(!e||!e.now)return hc;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}(),dc=(()=>{const{performance:e}=wa;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing&&e.timing.navigationStart,a="number"==typeof s?Math.abs(s+n-r):t;return i||a<t?o<=a?e.timeOrigin:s:r})();function pc(e,t){const n="fetch";ic(n,e),sc(n,()=>mc(void 0,t))}function mc(e,t=!1){t&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!lc())return!1;if(uc(cc.fetch))return!0;let e=!1;const t=cc.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");
7n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=uc(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Aa&&La.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}()||ja(wa,"fetch",function(t){return function(...n){const{method:r,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:vc(t),method:yc(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:vc(t),method:yc(t,"method")?String(t.method).toUpperCase():"GET"}}(n),i={args:n,fetchData:{method:r,url:o},startTimestamp:1e3*fc()};e||ac("fetch",{...i});const s=(new Error).stack;return t.apply(wa,n).then(async t=>(e?e(t):ac("fetch",{...i,endTimestamp:1e3*fc(),response:t}),t),e=>{throw ac("fetch",{...i,endTimestamp:1e3*fc(),error:e}),ra(e)&&void 0===e.stack&&(e.stack=s,Ua(e,"framesToPop",1)),e})}})}function gc(e){let t;try{t=e.clone()}catch(n){return}!async function(e,t){if(e&&e.body){const r=e.body,o=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4);let s=!0;for(;s;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);const{done:n}=await o.read();clearTimeout(e),n&&(t(),s=!1)}catch(n){s=!1}finally{clearTimeout(e)}}clearTimeout(i),o.releaseLock(),r.cancel().then(null,()=>{})}}(t,()=>{ac("fetch-body-resolved",{endTimestamp:1e3*fc(),response:e})})}function yc(e,t){return!!e&&"object"==typeof e&&!!e[t]}function vc(e){return"string"==typeof e?e:e?yc(e,"url")?e.url:e.toString?e.toString():"":""}let bc=null;function _c(e){const t="error";ic(t,e),sc(t,wc)}function wc(){bc=wa.onerror,wa.onerror=function(e,t,n,r,o){return ac("error",{column:r,error:o,line:n,msg:e,url:t}),!(!bc||bc.__SENTRY_LOADER__)&&bc.apply(this,arguments)},wa.onerror.__SENTRY_INSTRUMENTED__=!0}let kc=null;function Ec(e){const t="unhandledrejection";ic(t,e),sc(t,Tc)}function Tc(){kc=wa.onunhandledrejection,wa.onunhandledrejection=function(e){return ac("unhandledrejection",e),!(kc&&!kc.__SENTRY_LOADER__)||kc.apply(this,arguments)},wa.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Sc(){const e=wa,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(fV){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}function xc(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Oc(e){const{message:t,event_id:n}=e;if(t)return t;const r=xc(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ac(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function Cc(e,t){const n=xc(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function Nc(e){if(e&&e.__sentry_captured__)return!0;try{Ua(e,"__sentry_captured__",!0)}catch(t){}return!1}function Ic(e){return Array.isArray(e)?e:[e]}function Lc(e,t=100,n=1/0){try{return Rc("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Pc(e,t=3,n=102400){const r=Lc(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?Pc(e,t-1,n):r;var o}function Rc(e,t,n=1/0,r=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[i,s]=o;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(ma(t))return"[VueViewModel]";if(ha(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${tc(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}var n}(e,t);if(!a.startsWith("[object "))return a;
7if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(i(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return Rc("",l.toJSON(),c-1,r,o)}catch(d){}const u=Array.isArray(t)?[]:{};let h=0;const f=Va(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(h>=r){u[p]="[MaxProperties ~]";break}const e=f[p];u[p]=Rc(p,e,c-1,r,o),h++}return s(t),u}var Dc;function Mc(e){return new Uc(t=>{t(e)})}function jc(e){return new Uc((t,n)=>{n(e)})}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(Dc||(Dc={}));class Uc{constructor(e){Uc.prototype.__init.call(this),Uc.prototype.__init2.call(this),Uc.prototype.__init3.call(this),Uc.prototype.__init4.call(this),this._state=Dc.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new Uc((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(o){r(o)}else n(t)},e=>{if(t)try{n(t(e))}catch(o){r(o)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new Uc((t,n)=>{let r,o;return this.then(t=>{o=!1,r=t,e&&e()},t=>{o=!0,r=t,e&&e()}).then(()=>{o?n(r):t(r)})})}__init(){this._resolve=e=>{this._setResult(Dc.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Dc.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===Dc.PENDING&&(da(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Dc.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===Dc.RESOLVED&&e[1](this._value),this._state===Dc.REJECTED&&e[2](this._value),e[0]=!0)})}}}function qc(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Fc="baggage",Bc="sentry-",Vc=/^sentry-/;function zc(e){const t=function(e){if(!e||!ca(e)&&!Array.isArray(e))return;if(Array.isArray(e))return e.reduce((e,t)=>{const n=Hc(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{});return Hc(e)}(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(Vc)){e[t.slice(7)]=n}return e},{});return Object.keys(n).length>0?n:void 0}function $c(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce((e,[t,n],r)=>{const o=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,i=0===r?o:`${e},${o}`;return i.length>8192?(Aa&&La.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):i},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${Bc}${t}`]=n),e),{}))}function Hc(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}const Wc=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Gc(e,t){const n=function(e){if(!e)return;const t=e.match(Wc);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),r=zc(t),{traceId:o,parentSpanId:i,parentSampled:s}=n||{};return n?{traceId:o||Sc(),parentSpanId:i||Sc().substring(16),spanId:Sc().substring(16),sampled:s,dsc:r||{}}:{traceId:o||Sc(),spanId:Sc().substring(16)}}function Kc(e=Sc(),t=Sc().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Yc(e,t=[]){return[e,t]}function Qc(e,t){const[n,r]=e;return[n,[...r,t]]}function Xc(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function Jc(e){return wa.__SENTRY__&&wa.__SENTRY__.encodePolyfill?wa.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function Zc(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[Jc(r),e]:r.push("string"==typeof e?Jc(e):e)}for(const s of n){const[e,t]=s;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)o(t);else{let e;try{e=JSON.stringify(t)}catch(i){e=JSON.stringify(Lc(t))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce((e,t)=>
7e+t.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}(r)}function el(e){return[{type:"span"},e]}function tl(e){const t="string"==typeof e.data?Jc(e.data):e.data;return[Wa({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const nl={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function rl(e){return nl[e]}function ol(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function il(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}function sl(){return{traceId:Sc(),spanId:Sc().substring(16)}}const al=wa;const cl="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function ll(){return ul(wa),wa}function ul(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||_a,t[_a]=t[_a]||{}}function hl(e){const t=fc(),n={sid:Sc(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Wa({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&fl(n,e),n}function fl(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||fc(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Sc()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}const dl="_sentrySpan";function pl(e,t){t?Ua(e,dl,t):delete e[dl]}function ml(e){return e[dl]}class gl{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=sl()}clone(){const e=new gl;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,pl(e,ml(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&fl(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof yl?[t.getScopeData(),t.getRequestSession()]:ha(t)?[e,e.requestSession]:[],{tags:o,extra:i,user:s,contexts:a,level:c,fingerprint:l=[],propagationContext:u}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,pl(this,void 0),this._attachments=[],this._propagationContext=sl(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:hc(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:ml(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Sc();if(!this._client)return La.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Sc();if(!this._client)return La.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Sc();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(La.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
7h(e=>{e(this)}),this._notifyingListeners=!1)}}const yl=gl;class vl{constructor(e,t){let n,r;n=e||new yl,r=t||new yl,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(r){throw this._popScope(),r}return da(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function bl(){const e=ul(ll());return e.stack=e.stack||new vl(ka("defaultCurrentScope",()=>new yl),ka("defaultIsolationScope",()=>new yl))}function _l(e){return bl().withScope(e)}function wl(e,t){const n=bl();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function kl(e){return bl().withScope(()=>e(bl().getIsolationScope()))}function El(e){const t=ul(e);return t.acs?t.acs:{withIsolationScope:kl,withScope:_l,withSetScope:wl,withSetIsolationScope:(e,t)=>kl(t),getCurrentScope:()=>bl().getScope(),getIsolationScope:()=>bl().getIsolationScope()}}function Tl(){return El(ll()).getCurrentScope()}function Sl(){return El(ll()).getIsolationScope()}function xl(...e){const t=El(ll());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function Ol(){return Tl().getClient()}function Al(e){const t=e._sentryMetrics;if(!t)return;const n={};for(const[,[r,o]]of t){(n[r]||(n[r]=[])).push(Wa(o))}return n}const Cl="sentry.source",Nl="sentry.sample_rate",Il="sentry.op",Ll="sentry.origin",Pl="sentry.idle_span_finish_reason",Rl="sentry.measurement_unit",Dl="sentry.measurement_value",Ml="sentry.exclusive_time";function jl(e,t){e.setAttribute("http.response.status_code",t);const n=function(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}function Ul(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:a}=zl(e);return Wa({parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:s,origin:a})}function ql(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=zl(e);return Wa({parent_span_id:r,span_id:t,trace_id:n})}function Fl(e){const{traceId:t,spanId:n}=e.spanContext();return Kc(t,n,$l(e))}function Bl(e){return"number"==typeof e?Vl(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Vl(e.getTime()):fc()}function Vl(e){return e>9999999999?e/1e3:e}function zl(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:a,status:c}=e;return Wa({span_id:t,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:Bl(o),timestamp:Bl(s)||void 0,status:Hl(c),op:r[Il],origin:r[Ll],_metrics_summary:Al(e)})}return{span_id:t,trace_id:n}}catch(t){return{}}}function $l(e){const{traceFlags:t}=e.spanContext();return 1===t}function Hl(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}const Wl="_sentryChildSpans",Gl="_sentryRootSpan";function Kl(e,t){const n=e[Gl]||e;Ua(t,Gl,n),e[Wl]?e[Wl].add(t):Ua(e,Wl,new Set([t]))}function Yl(e){const t=new Set;return function e(n){if(!t.has(n)&&$l(n)){t.add(n);const r=n[Wl]?Array.from(n[Wl]):[];for(const t of r)e(t)}}(e),Array.from(t)}function Ql(e){return e[Gl]||e}function Xl(){const e=El(ll());return e.getActiveSpan?e.getActiveSpan():ml(Tl())}let Jl=!1;function Zl(){const e=Xl(),t=e&&Ql(e);if(t){const e="internal_error";
7cl&&La.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}Zl.tag="sentry_tracingErrorCallback";const eu="_sentryScope",tu="_sentryIsolationScope";function nu(e){return{scope:e[eu],isolationScope:e[tu]}}function ru(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=Ol(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class ou{constructor(e={}){this._traceId=e.traceId||Sc(),this._spanId=e.spanId||Sc().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}const iu="production",su="_frozenDsc";function au(e,t){Ua(e,su,t)}function cu(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=Wa({environment:n.environment||iu,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function lu(e){const t=Ol();if(!t)return{};const n=cu(zl(e).trace_id||"",t),r=Ql(e),o=r[su];if(o)return o;const i=r.spanContext().traceState,s=i&&i.get("sentry.dsc"),a=s&&zc(s);if(a)return a;const c=zl(r),l=c.data||{},u=l[Nl];null!=u&&(n.sample_rate=`${u}`);const h=l[Cl],f=c.description;return"url"!==h&&f&&(n.transaction=f),ru()&&(n.sampled=String($l(r))),t.emit("createDsc",n,r),n}function uu(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;cl&&La.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}function hu(e,t,n,r){const o=ol(n);return Yc({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Ra(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}function fu(e,t,n,r){const o=ol(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const s=function(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Ra(r)},...o&&{trace:Wa({...o})}}}(e,o,r,t);delete e.sdkProcessingMetadata;return Yc(s,[[{type:i},e]])}function du(e){if(!e||0===e.length)return;const t={};return e.forEach(e=>{const n=e.attributes||{},r=n[Rl],o=n[Dl];"string"==typeof r&&"number"==typeof o&&(t[e.name]={value:o,unit:r})}),t}class pu{constructor(e={}){this._traceId=e.traceId||Sc(),this._spanId=e.spanId||Sc().substring(16),this._startTime=e.startTimestamp||fc(),this._attributes={},this.setAttributes({[Ll]:"manual",[Il]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?1:0}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=Bl(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=Bl(e),function(e){if(!cl)return;const{description:t="< unknown name >",op:n="< unknown op >"}=zl(e),{spanId:r}=e.spanContext(),o=`[Tracing] Finishing "${n}" ${Ql(e)===e?"root ":""}span "${t}" with ID ${r}`;La.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return Wa({data:this._attributes,description:this._name,op:this._attributes[Il],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Hl(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Ll],_metrics_summary:Al(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes[Ml],measurements:du(this._events),is_segment:this._isStandaloneSpan&&Ql(this)===this||void 0,segment_id:this._isStandaloneSpan?Ql(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){cl&&La.log("[Tracing] Adding an event to span:",e);const r=mu(t)?t:n||fc(),o=mu(t)?{}:t||{},i={name:e,time:Bl(r),attributes:o};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=Ol();e&&e.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===Ql(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=Ol();if(!t)return;const n=e[1];
7if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}(function(e,t){const n=lu(e[0]),r=t&&t.getDsn(),o=t&&t.getOptions().tunnel,i={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!o&&r&&{dsn:Ra(r)}},s=t&&t.getOptions().beforeSendSpan,a=s?e=>s(zl(e)):e=>zl(e),c=[];for(const l of e){const e=a(l);e&&c.push(el(e))}return Yc(i,c)}([this],e)):(cl&&La.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();if(t){(nu(this).scope||Tl()).captureEvent(t)}}_convertSpanToTransaction(){if(!gu(zl(this)))return;this._name||(cl&&La.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=nu(this),n=(e||Tl()).getClient()||Ol();if(!0!==this._sampled)return cl&&La.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const r=Yl(this).filter(e=>e!==this&&!function(e){return e instanceof pu&&e.isStandaloneSpan()}(e)).map(e=>zl(e)).filter(gu),o=this._attributes[Cl],i={contexts:{trace:Ul(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...Wa({dynamicSamplingContext:lu(this)})},_metrics_summary:Al(this),...o&&{transaction_info:{source:o}}},s=du(this._events);return s&&Object.keys(s).length&&(cl&&La.log("[Measurements] Adding measurements to transaction event",JSON.stringify(s,void 0,2)),i.measurements=s),i}}function mu(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function gu(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}const yu="__SENTRY_SUPPRESS_TRACING__";function vu(e){const t=_u();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=function(e){const t=e.experimental||{},n={isStandalone:t.standalone,...e};if(e.startTime){const t={...n};return t.startTimestamp=Bl(e.startTime),delete t.startTime,t}return n}(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?t=>xl(e.scope,t):void 0!==o?e=>bu(o,e):e=>e())(()=>{const t=Tl(),o=function(e){const t=ml(e);if(!t)return;const n=Ol(),r=n?n.getOptions():{};if(r.parentSpanIsAlwaysRootSpan)return Ql(t);return t}(t);return e.onlyIfParent&&!o?new ou:function({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!ru())return new ou;const o=Sl();let i;if(e&&!n)i=function(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),i=!t.getScopeData().sdkProcessingMetadata[yu]&&$l(e),s=i?new pu({...n,parentSpanId:r,traceId:o,sampled:i}):new ou({traceId:o});Kl(e,s);const a=Ol();a&&(a.emit("spanStart",s),n.endTimestamp&&a.emit("spanEnd",s));return s}(e,r,t),Kl(e,i);else if(e){const n=lu(e),{traceId:o,spanId:s}=e.spanContext(),a=$l(e);i=wu({traceId:o,parentSpanId:s,...t},r,a),au(i,n)}else{const{traceId:e,dsc:n,parentSpanId:s,sampled:a}={...o.getPropagationContext(),...r.getPropagationContext()};i=wu({traceId:e,parentSpanId:s,...t},r,a),n&&au(i,n)}return function(e){if(!cl)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=zl(e),{spanId:o}=e.spanContext(),i=$l(e),s=Ql(e),a=s===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&l.push(`parent ID: ${r}`),!a){const{op:e,description:t}=zl(s);l.push(`root ID: ${s.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}La.log(`${c}\n  ${l.join("\n  ")}`)}(i),function(e,t,n){e&&(Ua(e,tu,n),Ua(e,eu,t))}(i,r,o),i}({parentSpan:o,spanArguments:n,forceTransaction:r,scope:t})})}function bu(e,t){const n=_u();return n.withActiveSpan?n.withActiveSpan(e,t):xl(n=>(pl(n,e||void 0),t(n)))}function _u(){return El(ll())}function wu(e,t,n){const r=Ol(),o=r&&r.getOptions()||{},{name:i="",attributes:s}=e,[a,c]=t.getScopeData().sdkProcessingMetadata[yu]?[!1]:function(e,t){if(!ru(e))return[!1];let n;n="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;const r=uu(n);return void 0===r?(cl&&La.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(cl&&La.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(cl&&La.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,r])}(o,{name:i,parentSampled:n,attributes:s,transactionContext:{name:i,parentSampled:n}}),l=new pu({...e,attributes:{[Cl]:"custom",...e.attributes},sampled:a});return void 0!==c&&l.setAttribute(Nl,c),r&&r.emit("spanStart",l),l}const ku={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function Eu(e,t={}){const n=new Map;let r,o=!1,i="externalFinish",s=!t.disableAutoFinish;const a=[],{idleTimeout:c=ku.idleTimeout,finalTimeout:l=ku.finalTimeout,childSpanTimeout:u=ku.childSpanTimeout,beforeSpanEnd:h}=t,f=Ol();if(!f||!ru())return new ou;const d=Tl(),p=Xl(),m=function(e){const t=vu(e);
7return pl(Tl(),t),cl&&La.log("[Tracing] Started span is an idle span"),t}(e);function g(){r&&(clearTimeout(r),r=void 0)}function y(e){g(),r=setTimeout(()=>{!o&&0===n.size&&s&&(i="idleTimeout",m.end(e))},c)}function v(e){r=setTimeout(()=>{!o&&s&&(i="heartbeatFailed",m.end(e))},u)}function b(e){o=!0,n.clear(),a.forEach(e=>e()),pl(d,p);const t=zl(m),{start_timestamp:r}=t;if(!r)return;(t.data||{})[Pl]||m.setAttribute(Pl,i),La.log(`[Tracing] Idle span "${t.op}" finished`);const s=Yl(m).filter(e=>e!==m);let u=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:"cancelled"}),t.end(e),cl&&La.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=zl(t),{timestamp:r=0,start_timestamp:o=0}=n,i=o<=e,s=r-o<=(l+c)/1e3;if(cl){const e=JSON.stringify(t,void 0,2);i?s||La.log("[Tracing] Discarding span since it finished after idle span final timeout",e):La.log("[Tracing] Discarding span since it happened after idle span was finished",e)}s&&i||(!function(e,t){e[Wl]&&e[Wl].delete(t)}(m,t),u++)}),u>0&&m.setAttribute("sentry.idle_span_discarded_spans",u)}return m.end=new Proxy(m.end,{apply(e,t,n){h&&h(m);const[r,...o]=n,i=Bl(r||fc()),s=Yl(m).filter(e=>e!==m);if(!s.length)return b(i),Reflect.apply(e,t,[i,...o]);const a=s.map(e=>zl(e).timestamp).filter(e=>!!e),c=a.length?Math.max(...a):void 0,u=zl(m).start_timestamp,f=Math.min(u?u+l/1e3:1/0,Math.max(u||-1/0,Math.min(i,c||1/0)));return b(f),Reflect.apply(e,t,[f,...o])}}),a.push(f.on("spanStart",e=>{if(o||e===m||zl(e).timestamp)return;var t;Yl(m).includes(e)&&(t=e.spanContext().spanId,g(),n.set(t,!0),v(fc()+u/1e3))})),a.push(f.on("spanEnd",e=>{var t;o||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&y(fc()+c/1e3))})),a.push(f.on("idleSpanEnableAutoFinish",e=>{e===m&&(s=!0,y(),n.size&&v())})),t.disableAutoFinish||y(),setTimeout(()=>{o||(m.setStatus({code:2,message:"deadline_exceeded"}),i="finalTimeout",m.end())},l),m}function Tu(e,t,n,r=0){return new Uc((o,i)=>{const s=e[r];if(null===t||"function"!=typeof s)o(t);else{const a=s({...t},n);cl&&s.id&&null===a&&La.log(`Event processor "${s.id}" dropped event`),da(a)?a.then(t=>Tu(e,t,n,r+1).then(o)).then(null,i):Tu(e,a,n,r+1).then(o).then(null,i)}})}function Su(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t,c=Wa(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const l=Wa(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const u=Wa(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const h=Wa(i);h&&Object.keys(h).length&&(e.contexts={...h,...e.contexts});s&&(e.level=s);a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:ql(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:lu(t),...e.sdkProcessingMetadata};const n=Ql(t),r=zl(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Ic(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,i)}function xu(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:h,propagationContext:f,transactionName:d,span:p}=t;Ou(e,"extra",n),Ou(e,"tags",r),Ou(e,"user",o),Ou(e,"contexts",i),Ou(e,"sdkProcessingMetadata",a),s&&(e.level=s),d&&(e.transactionName=d),p&&(e.span=p),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),h.length&&(e.attachments=[...e.attachments,...h]),e.propagationContext={...e.propagationContext,...f}}function Ou(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function Au(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Sc(),timestamp:t.timestamp||hc()},l=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:iu);void 0===e.release&&void 0!==r&&(e.release=r);void 0===e.dist&&void 0!==o&&(e.dist=o);e.message&&(e.message=ga(e.message,i));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=ga(s.value,i));const a=e.request;a&&a.url&&(a.url=ga(a.url,i))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{}
7,e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=wa._sentryDebugIds;if(!n)return;let r;const o=Cu.get(t);o?r=o:(r=new Map,Cu.set(t,r));const i=Object.entries(n).reduce((e,[n,o])=>{let i;const s=r.get(n);s?i=s:(i=t(n),r.set(n,i));for(let t=i.length-1;t>=0;t--){const n=i[t];if(n.filename){e[n.filename]=o;break}}return e},{});try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.filename&&(e.debug_id=i[e.filename])})})}catch(s){}}(c,e.stackParser);const u=function(e,t){if(!t)return e;const n=e?e.clone():new yl;return n.update(t),n}(r,n.captureContext);n.mechanism&&Cc(c,n.mechanism);const h=o?o.getEventProcessors():[],f=ka("globalScope",()=>new yl).getScopeData();if(i){xu(f,i.getScopeData())}if(u){xu(f,u.getScopeData())}const d=[...n.attachments||[],...f.attachments];d.length&&(n.attachments=d),Su(c,f);return Tu([...h,...f.eventProcessors],c,n).then(e=>(e&&function(e){const t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch(r){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Lc(e.data,t,n)}}))},...e.user&&{user:Lc(e.user,t,n)},...e.contexts&&{contexts:Lc(e.contexts,t,n)},...e.extra&&{extra:Lc(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Lc(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Lc(e.data,t,n)}})));return r}(e,s,a):e))}const Cu=new WeakMap;function Nu(e){if(e)return function(e){return e instanceof yl||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>Iu.includes(e))}(e)?{captureContext:e}:e}const Iu=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Lu(e,t){return Tl().captureException(e,Nu(t))}function Pu(e,t){return Tl().captureEvent(e,t)}function Ru(e){const t=Ol(),n=Sl(),r=Tl(),{release:o,environment:i=iu}=t&&t.getOptions()||{},{userAgent:s}=wa.navigator||{},a=hl({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&"ok"===c.status&&fl(c,{status:"exited"}),Du(),n.setSession(a),r.setSession(a),a}function Du(){const e=Sl(),t=Tl(),n=t.getSession()||e.getSession();n&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),fl(e,n)}(n),Mu(),e.setSession(),t.setSession()}function Mu(){const e=Sl(),t=Tl(),n=Ol(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function ju(e=!1){e?Du():Mu()}const Uu=[];function qu(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach(e=>{e.isDefaultInstance=!0}),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?Ic(n(t)):t;const o=function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(r),i=o.findIndex(e=>"Debug"===e.name);if(i>-1){const[e]=o.splice(i,1);o.push(e)}return o}function Fu(e,t){const n={};return t.forEach(t=>{t&&Vu(e,t,n)}),n}function Bu(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Vu(e,t,n){if(n[t.name])cl&&La.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Uu.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),Uu.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}cl&&La.log(`Integration installed: ${t.name}`)}}function zu(e){return e}function $u(e,t,n,r,o="auto.http.browser"){if(!e.fetchData)return;const i=ru()&&t(e.fetchData.url);if(e.endTimestamp&&i){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(!function(e,t){if(t.response){jl(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}(n,e),delete r[t]))}const s=Tl(),a=Ol(),{method:c,url:l}=e.fetchData,u=function(e){try{return new URL(e).href}catch(t){return}}(l),h=u?qc(u).host:void 0,f=!!Xl(),d=i&&f?vu({name:`${c} ${l}`,attributes:{url:l,type:"fetch","http.method":c,"http.url":u,"server.address":h,[Ll]:o,[Il]:"http.client"}}):new ou;if(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(e.fetchData.url)&&a){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,o){const i=Sl(),{traceId:s,spanId:a,sampled:c,dsc:l}={...i.getPropagationContext(),...n.getPropagationContext()}
7,u=o?Fl(o):Kc(s,a,c),h=$c(l||(o?lu(o):cu(s,t))),f=r.headers||("undefined"!=typeof Request&&pa(e,Request)?e.headers:void 0);if(f){if("undefined"!=typeof Headers&&pa(f,Headers)){const e=new Headers(f);if(e.set("sentry-trace",u),h){const t=e.get(Fc);if(t){const n=Hu(t);e.set(Fc,n?`${n},${h}`:h)}else e.set(Fc,h)}return e}if(Array.isArray(f)){const e=[...f.filter(e=>!(Array.isArray(e)&&"sentry-trace"===e[0])).map(e=>{if(Array.isArray(e)&&e[0]===Fc&&"string"==typeof e[1]){const[t,n,...r]=e;return[t,Hu(n),...r]}return e}),["sentry-trace",u]];return h&&e.push([Fc,h]),e}{const e="baggage"in f?f.baggage:void 0;let t=[];return Array.isArray(e)?t=e.map(e=>"string"==typeof e?Hu(e):e).filter(e=>""===e):e&&t.push(Hu(e)),h&&t.push(h),{...f,"sentry-trace":u,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":u,baggage:h}}(t,a,s,n,ru()&&f?d:void 0)}return d}function Hu(e){return e.split(",").filter(e=>!e.split("=")[0].startsWith(Bc)).join(",")}const Wu=wa;let Gu=0;function Ku(){return Gu>0}function Yu(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(Fa(e))return e}catch(o){return e}const r=function(){const n=Array.prototype.slice.call(arguments);try{const r=n.map(e=>Yu(e,t));return e.apply(this,r)}catch(r){throw Gu++,setTimeout(()=>{Gu--}),xl(e=>{e.addEventProcessor(e=>(t.mechanism&&(Ac(e,void 0,void 0),Cc(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Lu(r)}),r}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(i){}qa(r,e),Ua(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(i){}return r}const Qu="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Xu="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Ju=(e,t,n,r)=>{let o,i;return s=>{t.value>=0&&(s||r)&&(i=t.value-(o||0),(i||void 0===o)&&(o=t.value,t.delta=i,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},Zu=wa,eh=()=>Zu.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],th=()=>{const e=eh();return e&&e.activationStart||0},nh=(e,t)=>{const n=eh();let r="navigate";n&&(Zu.document&&Zu.document.prerendering||th()>0?r="prerender":Zu.document&&Zu.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},rh=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(r){}},oh=e=>{const t=t=>{("pagehide"===t.type||Zu.document&&"hidden"===Zu.document.visibilityState)&&e(t)};Zu.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},ih=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};let sh=-1;const ah=e=>{"hidden"===Zu.document.visibilityState&&sh>-1&&(sh="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",ah,!0),removeEventListener("prerenderingchange",ah,!0))},ch=()=>(Zu.document&&sh<0&&(sh="hidden"!==Zu.document.visibilityState||Zu.document.prerendering?1/0:0,addEventListener("visibilitychange",ah,!0),addEventListener("prerenderingchange",ah,!0)),{get firstHiddenTime(){return sh}}),lh=e=>{Zu.document&&Zu.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},uh=[1800,3e3],hh=[.1,.25],fh=(e,t={})=>{((e,t={})=>{lh(()=>{const n=ch(),r=nh("FCP");let o;const i=rh("paint",e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(i.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-th(),0),r.entries.push(e),o(!0)))})});i&&(o=Ju(e,r,uh,t.reportAllChanges))})})(ih(()=>{const n=nh("CLS",0);let r,o=0,i=[];const s=e=>{e.forEach(e=>{if(!e.hadRecentInput){const t=i[0],n=i[i.length-1];o&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,i.push(e)):(o=e.value,i=[e])}}),o>n.value&&(n.value=o,n.entries=i,r())},a=rh("layout-shift",s);a&&(r=Ju(e,n,hh,t.reportAllChanges),oh(()=>{s(a.takeRecords()),r(!0)}),setTimeout(r,0))}))},dh=[100,300];let ph=0,mh=1/0,gh=0;const yh=e=>
7{e.forEach(e=>{e.interactionId&&(mh=Math.min(mh,e.interactionId),gh=Math.max(gh,e.interactionId),ph=gh?(gh-mh)/7+1:0)})};let vh;const bh=()=>{"interactionCount"in performance||vh||(vh=rh("event",yh,{type:"event",buffered:!0,durationThreshold:0}))},_h=[200,500],wh=()=>(vh?ph:performance.interactionCount||0)-0,kh=[],Eh={},Th=e=>{const t=kh[kh.length-1],n=Eh[e.interactionId];if(n||kh.length<10||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};Eh[t.id]=t,kh.push(t)}kh.sort((e,t)=>t.latency-e.latency),kh.splice(10).forEach(e=>{delete Eh[e.id]})}},Sh=(e,t={})=>{lh(()=>{bh();const n=nh("INP");let r;const o=e=>{e.forEach(e=>{if(e.interactionId&&Th(e),"first-input"===e.entryType){!kh.some(t=>t.entries.some(t=>e.duration===t.duration&&e.startTime===t.startTime))&&Th(e)}});const t=(()=>{const e=Math.min(kh.length-1,Math.floor(wh()/50));return kh[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},i=rh("event",o,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=Ju(e,n,_h,t.reportAllChanges),i&&("PerformanceEventTiming"in Zu&&"interactionId"in PerformanceEventTiming.prototype&&i.observe({type:"first-input",buffered:!0}),oh(()=>{o(i.takeRecords()),n.value<0&&wh()>0&&(n.value=0,n.entries=[]),r(!0)}))})},xh=[2500,4e3],Oh={},Ah=[800,1800],Ch=e=>{Zu.document&&Zu.document.prerendering?lh(()=>Ch(e)):Zu.document&&"complete"!==Zu.document.readyState?addEventListener("load",()=>Ch(e),!0):setTimeout(e,0)},Nh={},Ih={};let Lh,Ph,Rh,Dh,Mh;function jh(e,t=!1){return Hh("cls",e,Fh,Lh,t)}function Uh(e,t){return Wh(e,t),Ih[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);rh(e,t=>{qh(e,{entries:t})},t)}(e),Ih[e]=!0),Gh(e,t)}function qh(e,t){const n=Nh[e];if(n&&n.length)for(const o of n)try{o(t)}catch(r){Xu&&La.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${tc(o)}\nError:`,r)}}function Fh(){return fh(e=>{qh("cls",{metric:e}),Lh=e},{reportAllChanges:!0})}function Bh(){return((e,t={})=>{lh(()=>{const n=ch(),r=nh("FID");let o;const i=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),o(!0))},s=e=>{e.forEach(i)},a=rh("first-input",s);o=Ju(e,r,dh,t.reportAllChanges),a&&oh(ih(()=>{s(a.takeRecords()),a.disconnect()}))})})(e=>{qh("fid",{metric:e}),Ph=e})}function Vh(){return((e,t={})=>{lh(()=>{const n=ch(),r=nh("LCP");let o;const i=e=>{const t=e[e.length-1];t&&t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-th(),0),r.entries=[t],o())},s=rh("largest-contentful-paint",i);if(s){o=Ju(e,r,xh,t.reportAllChanges);const n=ih(()=>{Oh[r.id]||(i(s.takeRecords()),s.disconnect(),Oh[r.id]=!0,o(!0))});["keydown","click"].forEach(e=>{Zu.document&&addEventListener(e,()=>setTimeout(n,0),!0)}),oh(n)}})})(e=>{qh("lcp",{metric:e}),Rh=e},{reportAllChanges:!0})}function zh(){return((e,t={})=>{const n=nh("TTFB"),r=Ju(e,n,Ah,t.reportAllChanges);Ch(()=>{const e=eh();if(e){const t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-th(),0),n.entries=[e],r(!0)}})})(e=>{qh("ttfb",{metric:e}),Dh=e})}function $h(){return Sh(e=>{qh("inp",{metric:e}),Mh=e})}function Hh(e,t,n,r,o=!1){let i;return Wh(e,t),Ih[e]||(i=n(),Ih[e]=!0),r&&t({metric:r}),Gh(e,t,o?i:void 0)}function Wh(e,t){Nh[e]=Nh[e]||[],Nh[e].push(t)}function Gh(e,t,n){return()=>{n&&n();const r=Nh[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}function Kh(e){return"number"==typeof e&&isFinite(e)}function Yh(e,t,n,{...r}){const o=zl(e).start_timestamp;return o&&o>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),bu(e,()=>{const e=vu({startTime:t,...r});return e&&e.end(n),e})}function Qh(e){const t=Ol();if(!t)return;const{name:n,transaction:r,attributes:o,startTime:i}=e,{release:s,environment:a}=t.getOptions(),c=t.getIntegrationByName("Replay"),l=c&&c.getReplayId(),u=Tl(),h=u.getUser(),f=void 0!==h?h.email||h.id||h.ip_address:void 0;let d;try{d=u.getScopeData().contexts.profile.profile_id}catch(p){}return vu({name:n,attributes:{release:s,environment:a,user:f||void 0,profile_id:d||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":Zu.navigator&&Zu.navigator.userAgent,...o},startTime:i,experimental:{standalone:!0}})}function Xh(){return Zu&&Zu.addEventListener&&Zu.performance}function Jh(e){return e/1e3}function Zh(){let e,t,n=0;if(!function(){try{return il([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch(e){return!1}}())return;let r=!1;function o(){r||(r=!0,t&&function(e,t,n){Xu&&La.log(`Sending CLS span (${e})`);
7const r=Jh((dc||0)+(il([t,"optionalAccess",e=>e.startTime])||0)),o=Tl().getScopeData().transactionName,i=t?Ta(il([t,"access",e=>e.sources,"access",e=>e[0],"optionalAccess",e=>e.node])):"Layout shift",s=Wa({[Ll]:"auto.http.browser.cls",[Il]:"ui.webvital.cls",[Ml]:il([t,"optionalAccess",e=>e.duration])||0,"sentry.pageload.span_id":n}),a=Qh({name:i,transaction:o,attributes:s,startTime:r});il([a,"optionalAccess",e=>e.addEvent,"call",t=>t("cls",{[Rl]:"",[Dl]:e})]),il([a,"optionalAccess",e=>e.end,"call",e=>e(r)])}(n,e,t),i())}const i=jh(({metric:t})=>{const r=t.entries[t.entries.length-1];r&&(n=t.value,e=r)},!0);oh(()=>{o()}),setTimeout(()=>{const e=il([Ol(),"optionalAccess",e=>e.on,"call",t=>t("startNavigationSpan",()=>{o(),e&&e()})]),n=Xl(),r=n&&Ql(n),i=r&&zl(r);i&&"pageload"===i.op&&(t=r.spanContext().spanId)},0)}let ef,tf,nf,rf=0,of={};function sf({recordClsStandaloneSpans:e}){const t=Xh();if(t&&dc){t.mark&&Zu.performance.mark("sentry-tracing-init");const r=(n=({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Jh(dc),r=Jh(t.startTime);Xu&&La.log("[Measurements] Adding FID"),of.fid={value:e.value,unit:"millisecond"},of["mark.fid"]={value:n+r,unit:"second"}},Hh("fid",n,Bh,Ph)),o=function(e,t=!1){return Hh("lcp",e,Vh,Rh,t)}(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Xu&&La.log("[Measurements] Adding LCP"),of.lcp={value:e.value,unit:"millisecond"},ef=t)},!0),i=function(e){return Hh("ttfb",e,zh,Dh)}(({metric:e})=>{e.entries[e.entries.length-1]&&(Xu&&La.log("[Measurements] Adding TTFB"),of.ttfb={value:e.value,unit:"millisecond"})}),s=e?Zh():jh(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Xu&&La.log(`[Measurements] Adding CLS ${e.value}`),of.cls={value:e.value,unit:""},tf=t)},!0);return()=>{r(),o(),i(),s&&s()}}var n;return()=>{}}function af(e,t){const n=Xh();if(!n||!Zu.performance.getEntries||!dc)return;Xu&&La.log("[Tracing] Adding & adjusting spans using Performance API");const r=Jh(dc),o=n.getEntries(),{op:i,start_timestamp:s}=zl(e);if(o.slice(rf).forEach(t=>{const n=Jh(t.startTime),o=Jh(Math.max(0,t.duration));if(!("navigation"===i&&s&&r+n<s))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{cf(e,t,r,n)}),cf(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),cf(e,t,"fetch",n,"cache","domainLookupStart"),cf(e,t,"domainLookup",n,"DNS"),function(e,t,n){const r=n+Jh(t.requestStart),o=n+Jh(t.responseEnd),i=n+Jh(t.responseStart);t.responseEnd&&(Yh(e,r,o,{op:"browser.request",name:t.name,attributes:{[Ll]:"auto.ui.browser.metrics"}}),Yh(e,i,o,{op:"browser.response",name:t.name,attributes:{[Ll]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,t,r);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,o){const i=eh(),s=Jh(i?i.requestStart:0),a=o+Math.max(n,s),c=o+n,l=c+r,u={[Ll]:"auto.resource.browser.metrics"};a!==c&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=a);Yh(e,a,l,{name:t.name,op:t.entryType,attributes:u})}(e,t,n,o,r);const i=ch(),s=t.startTime<i.firstHiddenTime;"first-paint"===t.name&&s&&(Xu&&La.log("[Measurements] Adding FP"),of.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&s&&(Xu&&La.log("[Measurements] Adding FCP"),of.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,o,i){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const s=qc(n),a={[Ll]:"auto.resource.browser.metrics"};lf(a,t,"transferSize","http.response_transfer_size"),lf(a,t,"encodedBodySize","http.response_content_length"),lf(a,t,"decodedBodySize","http.decoded_response_content_length"),null!=t.deliveryType&&(a["http.response_delivery_type"]=t.deliveryType);"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus);s.protocol&&(a["url.scheme"]=s.protocol.split(":").pop());s.host&&(a["server.address"]=s.host);a["url.same_origin"]=n.includes(Zu.location.origin);const c=i+r,l=c+o;Yh(e,c,l,{name:n.replace(Zu.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:a})}(e,t,t.name,n,o,r)}}),rf=Math.max(o.length-1,0),function(e){const t=Zu.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Kh(n.rtt)&&(of["connection.rtt"]={value:n.rtt,unit:"millisecond"}));Kh(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`);Kh(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===i){!function(e){const t=eh();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(Xu&&La.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(of);const n=of["mark.fid"];n&&of.fid&&(Yh(e,n.value,n.value+Jh(of.fid.value),{name:"first input delay",op:"ui.action",attributes:{[Ll]:"auto.ui.browser.metrics"}}),delete of["mark.fid"]),"fcp"in of&&t.recordClsOnPageloadSpan||delete of.cls,Object.entries(of).forEach(([e,t])=>{!function(e,t,n,r=Xl()){const o=r&&Ql(r);o&&o.addEvent(e,{[Dl]:t,[Rl]:n})}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",r),e.setAttribute("performance.activationStart",th()),function(e){ef&&(Xu&&La.log("[Measurements] Adding LCP Data"),ef.element&&e.setAttribute("lcp.element",Ta(ef.element)),ef.id&&e.setAttribute("lcp.id",ef.id),ef.url&&e.setAttribute("lcp.url",ef.url.trim().slice(0,200)),e.setAttribute("lcp.size",ef.size));tf&&tf.sources&&(Xu&&La.log("[Measurements] Adding CLS Data"),tf.sources.forEac
7h((t,n)=>e.setAttribute(`cls.source.${n+1}`,Ta(t.node))))}(e)}ef=void 0,tf=void 0,of={}}function cf(e,t,n,r,o,i){const s=i?t[i]:t[`${n}End`],a=t[`${n}Start`];a&&s&&Yh(e,r+Jh(a),r+Jh(s),{op:`browser.${o||n}`,name:t.name,attributes:{[Ll]:"auto.ui.browser.metrics"}})}function lf(e,t,n,r){const o=t[n];null!=o&&o<2147483647&&(e[r]=o)}function uf(e){const t="history";ic(t,e),sc(t,hf)}function hf(){if(!function(){const e=al.chrome,t=e&&e.app&&e.app.runtime,n="history"in al&&!!al.history.pushState&&!!al.history.replaceState;return!t&&n}())return;const e=Zu.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=nf,t=String(n);nf=t;ac("history",{from:e,to:t})}return e.apply(this,t)}}Zu.onpopstate=function(...t){const n=Zu.location.href,r=nf;nf=n;if(ac("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(o){}},ja(Zu.history,"pushState",t),ja(Zu.history,"replaceState",t)}const ff="__sentry_xhr_v3__";function df(e){ic("xhr",e),sc("xhr",pf)}function pf(){if(!Zu.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=1e3*fc(),o=ca(n[0])?n[0].toUpperCase():void 0,i=function(e){if(ca(e))return e;try{return e.toString()}catch(t){}return}(n[1]);if(!o||!i)return e.apply(t,n);t[ff]={method:o,url:i,request_headers:{}},"POST"===o&&i.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const s=()=>{const e=t[ff];if(e&&4===t.readyState){try{e.status_code=t.status}catch(n){}ac("xhr",{endTimestamp:1e3*fc(),startTimestamp:r,xhr:t})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(s(),e.apply(t,n))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,o]=n,i=t[ff];return i&&ca(r)&&ca(o)&&(i.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const r=t[ff];if(!r)return e.apply(t,n);void 0!==n[0]&&(r.body=n[0]);return ac("xhr",{startTimestamp:1e3*fc(),xhr:t}),e.apply(t,n)}})}const mf=[],gf=new Map;function yf(){if(Xh()&&dc){const t=(e=({metric:e})=>{if(null==e.value)return;const t=e.entries.find(t=>t.duration===e.value&&vf[t.name]);if(!t)return;const{interactionId:n}=t,r=vf[t.name],o=Jh(dc+t.startTime),i=Jh(e.value),s=Xl(),a=s?Ql(s):void 0,c=(null!=n?gf.get(n):void 0)||a,l=c?zl(c).description:Tl().getScopeData().transactionName,u=Qh({name:Ta(t.target),transaction:l,attributes:Wa({[Ll]:"auto.http.browser.inp",[Il]:`ui.interaction.${r}`,[Ml]:t.duration}),startTime:o});il([u,"optionalAccess",e=>e.addEvent,"call",t=>t("inp",{[Rl]:"millisecond",[Dl]:e.value})]),il([u,"optionalAccess",e=>e.end,"call",e=>e(o+i)])},Hh("inp",e,$h,Mh));return()=>{t()}}var e;return()=>{}}const vf={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};const bf=new WeakMap,_f=new Map,wf={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function kf(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:a}={traceFetch:wf.traceFetch,traceXHR:wf.traceXHR,trackFetchStreamPerformance:wf.trackFetchStreamPerformance,...t},c="function"==typeof i?i:e=>!0,l=e=>function(e,t){const n=Wu.location&&Wu.location.href;if(n){let o,i;try{o=new URL(e,n),i=new URL(n).origin}catch(r){return!1}const s=o.origin===i;return t?ba(o.toString(),t)||s&&ba(o.pathname,t):s}{const n=!!e.match(/^\/(?!\/)/);return t?ba(e,t):n}}(e,a),u={};n&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){const t=_f.get(e.span_id);t&&(e.timestamp=t/1e3,_f.delete(e.span_id))}}),e)),o&&function(e){const t="fetch-body-resolved";ic(t,e),sc(t,()=>mc(gc))}(e=>{if(e.response){const t=bf.get(e.response);t&&e.endTimestamp&&_f.set(t,e.endTimestamp)}}),pc(e=>{const t=$u(e,c,l,u);if(e.response&&e.fetchData.__span&&bf.set(e.response,e.fetchData.__span),t){const n=Sf(e.fetchData.url),r=n?qc(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}s&&t&&Ef(t)})),r&&df(e=>{const t=function(e,t,n,r){const o=e.xhr,i=o&&o[ff];if(!o||o.__sentry_own_request__||!i)return;const s=ru()&&t(i.url);if(e.endTimestamp&&s){const e=o.__sentry_xhr_span_id__;if(!e)return;const t=r[e];
7return void(t&&void 0!==i.status_code&&(jl(t,i.status_code),t.end(),delete r[e]))}const a=Sf(i.url),c=a?qc(a).host:void 0,l=!!Xl(),u=s&&l?vu({name:`${i.method} ${i.url}`,attributes:{type:"xhr","http.method":i.method,"http.url":a,url:i.url,"server.address":c,[Ll]:"auto.http.browser",[Il]:"http.client"}}):new ou;o.__sentry_xhr_span_id__=u.spanContext().spanId,r[o.__sentry_xhr_span_id__]=u;const h=Ol();o.setRequestHeader&&n(i.url)&&h&&function(e,t,n){const r=Tl(),o=Sl(),{traceId:i,spanId:s,sampled:a,dsc:c}={...o.getPropagationContext(),...r.getPropagationContext()},l=n&&ru()?Fl(n):Kc(i,s,a),u=$c(c||(n?lu(n):cu(i,t)));!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Fc,n)}catch(fV){}}(e,l,u)}(o,h,ru()&&l?u:void 0);return u}(e,c,l,u);s&&t&&Ef(t)})}function Ef(e){const{url:t}=zl(e).data||{};if(!t||"string"!=typeof t)return;const n=Uh("resource",({entries:r})=>{r.forEach(r=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(r)&&r.name.endsWith(t)){const t=function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}r===e&&(t=r);return{name:t,version:n}}(e.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",t]),!dc)return r;return[...r,["http.request.redirect_start",Tf(e.redirectStart)],["http.request.fetch_start",Tf(e.fetchStart)],["http.request.domain_lookup_start",Tf(e.domainLookupStart)],["http.request.domain_lookup_end",Tf(e.domainLookupEnd)],["http.request.connect_start",Tf(e.connectStart)],["http.request.secure_connection_start",Tf(e.secureConnectionStart)],["http.request.connection_end",Tf(e.connectEnd)],["http.request.request_start",Tf(e.requestStart)],["http.request.response_start",Tf(e.responseStart)],["http.request.response_end",Tf(e.responseEnd)]]}(r);t.forEach(t=>e.setAttribute(...t)),setTimeout(n)}})})}function Tf(e=0){return((dc||performance.timeOrigin)+e)/1e3}function Sf(e){try{return new URL(e,Wu.location.origin).href}catch(t){return}}const xf={...ku,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...wf},Of=(e={})=>{Jl||(Jl=!0,_c(Zl),Ec(Zl));const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:o,enableStandaloneClsSpans:i},beforeStartSpan:s,idleTimeout:a,finalTimeout:c,childSpanTimeout:l,markBackgroundSpan:u,traceFetch:h,traceXHR:f,trackFetchStreamPerformance:d,shouldCreateSpanForRequest:p,enableHTTPTimings:m,instrumentPageLoad:g,instrumentNavigation:y}={...xf,...e},v=sf({recordClsStandaloneSpans:i||!1});t&&yf(),r&&wa.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?function(){const e=new PerformanceObserver(e=>{if(Xl())for(const t of e.getEntries()){if(!t.scripts[0])continue;const e=Jh(dc+t.startTime),n=Jh(t.duration),r={[Ll]:"auto.ui.browser.metrics"},o=t.scripts[0],{invoker:i,invokerType:s,sourceURL:a,sourceFunctionName:c,sourceCharPosition:l}=o;r["browser.script.invoker"]=i,r["browser.script.invoker_type"]=s,a&&(r["code.filepath"]=a),c&&(r["code.function"]=c),-1!==l&&(r["browser.script.source_char_position"]=l);const u=vu({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:e,attributes:r});u&&u.end(e+n)}});e.observe({type:"long-animation-frame",buffered:!0})}():n&&Uh("longtask",({entries:e})=>{const t=Xl();if(!t)return;const{op:n,start_timestamp:r}=zl(t);for(const o of e){const e=Jh(dc+o.startTime),i=Jh(o.duration);"navigation"===n&&r&&e<r||Yh(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Ll]:"auto.ui.browser.metrics"}})}}),o&&Uh("event",({entries:e})=>{if(Xl())for(const t of e)if("click"===t.name){const e=Jh(dc+t.startTime),n=Jh(t.duration),r={name:Ta(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[Ll]:"auto.ui.browser.metrics"}},o=Oa(t.target);o&&(r.attributes["ui.component_name"]=o);const i=vu(r);i&&i.end(e+n)}});const b={name:void 0,source:void 0};function _(e,t){const n="pageload"===t.op,r=s?s(t):t,o=r.attributes||{};t.name!==r.name&&(o[Cl]="custom",r.attributes=o),b.name=r.name,b.source=o[Cl];const u=Eu(r,{idleTimeout:a,finalTimeout:c,childSpanTimeout:l,disableAutoFinish:n,beforeSpanEnd:e=>{v(),af(e,{recordClsOnPageloadSpan:!i})}});function h(){["interactive","complete"].includes(Wu.document.readyState)&&e.emit("idleSpanEnableAutoFinish",u)}return n&&Wu.document&&(Wu.document.addEventListener("readystatechange",()=>{h()}),h()),u}return{name:"BrowserTracing",afterAllSetup(e){let n,r=Wu.location&&Wu.location.href;e.on("startNavigationSpan",t=>{Ol()===e&&(n&&!zl(n).timestamp&&(Qu&&La.log(`[Tracing] Finishing current root span with op: ${zl(n).op}`),n.end()),n=_(e,{op:"navigation",...t}))}),e.on("startPageLoadSpan",(t,r={})=>
7{if(Ol()!==e)return;n&&!zl(n).timestamp&&(Qu&&La.log(`[Tracing] Finishing current root span with op: ${zl(n).op}`),n.end());const o=Gc(r.sentryTrace||Cf("sentry-trace"),r.baggage||Cf("baggage"));Tl().setPropagationContext(o),n=_(e,{op:"pageload",...t})}),e.on("spanEnd",e=>{const t=zl(e).op;if(e!==Ql(e)||"navigation"!==t&&"pageload"!==t)return;const n=Tl(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:$l(e),dsc:r.dsc||lu(e)})}),Wu.location&&(g&&function(e,t,n){e.emit("startPageLoadSpan",t,n),Tl().setTransactionName(t.name);const r=Xl();r&&zl(r).op}(e,{name:Wu.location.pathname,startTime:dc?dc/1e3:void 0,attributes:{[Cl]:"url",[Ll]:"auto.pageload.browser"}}),y&&uf(({to:t,from:n})=>{void 0===n&&r&&-1!==r.indexOf(t)?r=void 0:n!==t&&(r=void 0,Af(e,{name:Wu.location.pathname,attributes:{[Cl]:"url",[Ll]:"auto.navigation.browser"}}))})),u&&(Wu&&Wu.document?Wu.document.addEventListener("visibilitychange",()=>{const e=Xl();if(!e)return;const t=Ql(e);if(Wu.document.hidden&&t){const e="cancelled",{op:n,status:r}=zl(t);Qu&&La.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Qu&&La.warn("[Tracing] Could not set up background tab detection due to lack of global document")),o&&function(e,t,n,r){let o;const i=()=>{const i="ui.action.click",s=Xl(),a=s&&Ql(s);if(a){const e=zl(a).op;if(["navigation","pageload"].includes(e))return void(Qu&&La.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`))}o&&(o.setAttribute(Pl,"interactionInterrupted"),o.end(),o=void 0),r.name?o=Eu({name:r.name,op:i,attributes:{[Cl]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n}):Qu&&La.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`)};Wu.document&&addEventListener("click",i,{once:!1,capture:!0})}(a,c,l,b),t&&function(){const e=({entries:e})=>{const t=Xl(),n=t&&Ql(t);e.forEach(e=>{if(!function(e){return"duration"in e}(e)||!n)return;const t=e.interactionId;if(null!=t&&!gf.has(t)){if(mf.length>10){const e=mf.shift();gf.delete(e)}mf.push(t),gf.set(t,n)}})};Uh("event",e),Uh("first-input",e)}(),kf(e,{traceFetch:h,traceXHR:f,trackFetchStreamPerformance:d,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:p,enableHTTPTimings:m})}}};function Af(e,t){Sl().setPropagationContext(sl()),Tl().setPropagationContext(sl()),e.emit("startNavigationSpan",t),Tl().setTransactionName(t.name);const n=Xl();return"navigation"===(n&&zl(n).op)?n:void 0}function Cf(e){const t=(n=`meta[name=${e}]`,Ea.document&&Ea.document.querySelector?Ea.document.querySelector(n):null);var n;return t?t.getAttribute("content"):void 0}const Nf=["activate","mount","update"],If="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Lf=/(?:^|[-_])(\w)/g,Pf="<Anonymous>",Rf=(e,t)=>{if(!e)return Pf;if(e.$root===e)return"<Root>";if(!e.$options)return Pf;const n=e.$options;let r=n.name||n._componentTag||n.__name;const o=n.__file;if(!r&&o){const e=o.match(/([^/\\]+)\.vue$/);e&&(r=e[1])}return(r?`<${i=r,i.replace(Lf,e=>e.toUpperCase()).replace(/[-_]/g,"")}>`:Pf)+(o&&!1!==t?` at ${o}`:"");var i},Df=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:o}=e.config;e.config.errorHandler=(i,s,a)=>{const c=Rf(s,!1),l=s?(e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}const r=t.map((e,t)=>{return`${(0===t?"---\x3e ":(n=" ",r=5+2*t,n.repeat(r)))+(Array.isArray(e)?`${Rf(e[0])}... (${e[1]} recursive calls)`:Rf(e))}`;var n,r}).join("\n");return`\n\nfound in\n\n${r}`}return`\n\n(found in ${Rf(e)})`})(s):"",u={componentName:c,lifecycleHook:a,trace:l};if(t.attachProps&&s&&(s.$options&&s.$options.propsData?u.propsData=s.$options.propsData:s.$props&&(u.propsData=s.$props)),setTimeout(()=>{Lu(i,{captureContext:{contexts:{vue:u}},mechanism:{handled:!1}})}),"function"==typeof n&&e.config.errorHandler&&n.call(e,i,s,a),t.logErrors){const e="undefined"!=typeof console,t=`Error in ${a}: "${i&&i.toString()}"`;r?r.call(null,t,s,l):e&&!o&&Ia(()=>{console.error(`[Vue warn]: ${t}${l}`)})}}},Mf="ui.vue",jf={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function Uf(e,t){function n(e){return e.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(e=>n(t)===n(e))}const qf=e=>
7{const t=(e.hooks||[]).concat(Nf).filter((e,t,n)=>n.indexOf(e)===t),n={};for(const r of t){const t=jf[r];if(t)for(const o of t)n[o]=function(){const n=this.$root===this;if(n){Xl()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||vu({name:"Application Render",op:`${Mf}.render`,attributes:{[Ll]:"auto.ui.vue"}}))}const i=Rf(this,!1),s=Array.isArray(e.trackComponents)?Uf(e.trackComponents,i):e.trackComponents;var a,c,l;if(n||s)if(this.$_sentrySpans=this.$_sentrySpans||{},o==t[0]){if(this.$root&&this.$root.$_sentryRootSpan||Xl()){const e=this.$_sentrySpans[r];e&&e.end(),this.$_sentrySpans[r]=vu({name:`Vue ${i}`,op:`${Mf}.${r}`,attributes:{[Ll]:"auto.ui.vue"},onlyIfParent:!0})}}else{const t=this.$_sentrySpans[r];if(!t)return;t.end(),a=this,c=fc(),l=e.timeout,a.$_sentryRootSpanTimer&&clearTimeout(a.$_sentryRootSpanTimer),a.$_sentryRootSpanTimer=setTimeout(()=>{a.$root&&a.$root.$_sentryRootSpan&&(a.$root.$_sentryRootSpan.end(c),a.$root.$_sentryRootSpan=void 0)},l)}};else If&&La.warn(`Unknown hook: ${r}`)}return n},Ff={Vue:wa.Vue,attachProps:!0,logErrors:!0,attachErrorHandler:!0,hooks:Nf,timeout:2e3,trackComponents:!1},Bf=(e={})=>({name:"Vue",setup(t){!function(e,t){const n={...Ff,...e.getOptions(),...t};if(!n.Vue&&!n.app)return void Ia(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});if(n.app){Ic(n.app).forEach(e=>Vf(e,n))}else n.Vue&&Vf(n.Vue,n)}(t,e)}});const Vf=(e,t)=>{if(If){const t=e;!0===(t._instance&&t._instance.isMounted)&&Ia(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")})}t.attachErrorHandler&&Df(e,t),ru(t)&&e.mixin(qf({...t,...t.tracingOptions}))};function zf(e,t,n){let r=!0;e.onError(e=>Lu(e,{mechanism:{handled:!1}})),e.beforeEach((e,o,i)=>{const s=null==o.name&&0===o.matched.length||void 0===o.name&&r;r&&(r=!1);const a={[Ll]:"auto.navigation.vue"};for(const t of Object.keys(e.params))a[`params.${t}`]=e.params[t];for(const t of Object.keys(e.query)){const n=e.query[t];n&&(a[`query.${t}`]=n)}let c=e.path,l="url";if(e.name&&"path"!==t.routeLabel)c=e.name.toString(),l="custom";else if(e.matched.length>0){const t=e.matched.length-1;c=e.matched[t].path,l="route"}if(Tl().setTransactionName(c),t.instrumentPageLoad&&s){const e=function(){const e=Xl(),t=e&&Ql(e);if(!t)return;const n=zl(t).op;return"navigation"===n||"pageload"===n?t:void 0}();if(e){"custom"!==(zl(e).data||{})[Cl]&&(e.updateName(c),e.setAttribute(Cl,l)),e.setAttributes({...a,[Ll]:"auto.pageload.vue"})}}t.instrumentNavigation&&!s&&(a[Cl]=l,a[Ll]="auto.navigation.vue",n({name:c,op:"navigation",attributes:a})),i&&i()})}const $f={path:"/",watch:!0,decode:e=>ct(decodeURIComponent(e)),encode:e=>encodeURIComponent("string"==typeof e?e:JSON.stringify(e))};function Hf(e,t){const n={...$f,...t},r=Wf(n)||{};let o;void 0!==n.maxAge?o=1e3*n.maxAge:n.expires&&(o=n.expires.getTime()-Date.now());const i=void 0!==o&&o<=0,a=Jr(i?void 0:r[e]??n.default?.()),c=o&&!i?function(e,t){let n,r=0;T()&&S(()=>{clearTimeout(n)});return x((o,i)=>{function s(){clearTimeout(n);const o=t-r,a=o<Gf?o:Gf;n=setTimeout(()=>{if(r+=a,r<t)return s();e=void 0,i()},a)}return{get:()=>(o(),e),set(t){s(),e=t,i()}}})}(a,o):l(a);{const t="undefined"==typeof BroadcastChannel?null:new BroadcastChannel(`nuxt:cookies:${e}`),o=()=>{n.readonly||function(e,t,n={}){return e===t||Yt(e,n)===Yt(t,n)}(c.value,r[e])||(!function(e,t,n={}){document.cookie=function(e,t,n={}){if(null==t)return $t(e,t,{...n,maxAge:-1});return $t(e,t,n)}(e,t,n)}(e,c.value,n),r[e]=Jr(c.value),t?.postMessage({value:n.encode(c.value)}))},i=t=>{const o=t.refresh?Wf(n)?.[e]:n.decode(t.value);a=!0,r[e]=c.value=o,s(()=>{a=!1})};let a=!1;T()&&S(()=>{a=!0,o(),t?.close()}),t&&(t.onmessage=({data:e})=>i(e)),n.watch?h(c,()=>{a||o()},{deep:"shallow"!==n.watch}):o()}return c}function Wf(e={}){return function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");const n={},r=(t||{}).decode||Wt;let o=0;for(;o<e.length;){const t=e.indexOf("=",o);if(-1===t)break;let i=e.indexOf(";",o);if(-1===i)i=e.length;else if(i<t){o=e.lastIndexOf(";",t-1)+1;continue}const s=e.slice(o,t).trim();if(void 0===n[s]){let o=e.slice(t+1,i).trim();
734===o.codePointAt(0)&&(o=o.slice(1,-1)),n[s]=Ht(o,r)}o=i+1}return n}(document.cookie,e)}const Gf=2147483647;function Kf(e){const{error:t,instance:n,info:r}=e,o={info:r};if(n&&n.$props){const e=Ol(),t=e?e.getOptions():null;t&&t.attachProps&&!1!==n.$props&&(o.propsData=n.$props)}setTimeout(()=>{Lu(t,{captureContext:{contexts:{nuxt:o}},mechanism:{handled:!1}})})}const Yf=Ut({name:"sentry-client-integrations",dependsOn:["sentry-client-config"],async setup(e){if("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__){const t=Ol();t&&"$router"in e&&t.addIntegration(function(e={}){if(!e.router)return Of(e);const t=Of({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:o=!0,routeLabel:i="name"}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),zf(n,{routeLabel:i,instrumentNavigation:r,instrumentPageLoad:o},t=>{Af(e,t)})}}}({router:e.$router,routeLabel:"path"}))}e.hook("app:created",e=>{const t=Ol();t&&t.addIntegration(Bf({app:e,attachErrorHandler:!1}))}),e.hook("app:error",e=>{Kf({error:e})}),e.hook("vue:error",(e,t,n)=>{Kf({error:e,instance:t,info:n})})}}),Qf=Ut({name:"sentry-client-config",async setup(){let e,t;[e,t]=Rt(()=>zn(()=>import("./sentry.client.config.Bn4uUjAC.js"),__vite__mapDeps([113,3]),import.meta.url)),await e,t()}}),Xf=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|FBAN|FBAV|fennec|hiptop|iemobile|ip(hone|od)|Instagram|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,Jf=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;const Zf=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|FBAN|FBAV|fennec|hiptop|iemobile|ip(hone|od)|Instagram|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,ed=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
7sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,td=/Googlebot\/|Googlebot-Mobile|Googlebot-Image|Googlebot-News|Googlebot-Video|AdsBot-Google([^-]|$)|AdsBot-Google-Mobile|Feedfetcher-Google|Mediapartners-Google|Mediapartners \(Googlebot\)|APIs-Google|bingbot|Slurp|[wW]get|LinkedInBot|Python-urllib|python-requests|aiohttp|httpx|libwww-perl|httpunit|nutch|Go-http-client|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|BIGLOTRON|Teoma|convera|seekbot|Gigabot|Gigablast|exabot|ia_archiver|GingerCrawler|webmon |HTTrack|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|findlink|msrbot|panscient|yacybot|AISearchBot|ips-agent|tagoobot|MJ12bot|woriobot|yanga|buzzbot|mlbot|YandexBot|YandexImages|YandexAccessibilityBot|YandexMobileBot|YandexMetrika|YandexTurbo|YandexImageResizer|YandexVideo|YandexAdNet|YandexBlogs|YandexCalendar|YandexDirect|YandexFavicons|YaDirectFetcher|YandexForDomain|YandexMarket|YandexMedia|YandexMobileScreenShotBot|YandexNews|YandexOntoDB|YandexPagechecker|YandexPartner|YandexRCA|YandexSearchShop|YandexSitelinks|YandexSpravBot|YandexTracker|YandexVertis|YandexVerticals|YandexWebmaster|YandexScreenshotBot|purebot|Linguee Bot|CyberPatrol|voilabot|Baiduspider|citeseerxbot|spbot|twengabot|postrank|TurnitinBot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|Ahrefs(Bot|SiteAudit)|fuelbot|CrunchBot|IndeedBot|mappydata|woobot|ZoominfoBot|PrivacyAwareBot|Multiviewbot|SWIMGBot|Grobbot|eright|Apercite|semanticbot|Aboundex|domaincrawler|wbsearchbot|summify|CCBot|edisterbot|seznambot|ec2linkfinder|gslfbot|aiHitBot|intelium_bot|facebookexternalhit|Yeti|RetrevoPageAnalyzer|lb-spider|Sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|OrangeBot\/|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|S[eE][mM]rushBot|yoozBot|lipperhey|Y!J|Domain Re-Animator Bot|AddThis|Screaming Frog SEO Spider|MetaURI|Scrapy|Livelap[bB]ot|OpenHoseBot|CapsuleChecker|[email protected]|IstellaBot|DeuSu\/|betaBot|Cliqzbot\/|MojeekBot\/|netEstate NE Crawler|SafeSearch microdata crawler|Gluten Free Crawler\/|Sonic|Sysomos|Trove|deadlinkchecker|Slack-ImgProxy|Embedly|RankActiveLinkBot|iskanie|SafeDNSBot|SkypeUriPreview|Veoozbot|Slackbot|redditbot|datagnionbot|Google-Adwords-Instant|adbeat_bot|WhatsApp|contxbot|pinterest.com.bot|electricmonk|GarlikCrawler|BingPreview\/|vebidoobot|FemtosearchBot|Yahoo Link Preview|MetaJobBot|DomainStatsBot|mindUpBot|Daum\/|Jugendschutzprogramm-Crawler|Xenu Link Sleuth|Pcore-HTTP|moatbot|KosmioBot|pingdom|AppInsights|PhantomJS|Gowikibot|PiplBot|Discordbot|TelegramBot|Jetslide|newsharecounts|James BOT|Bark[rR]owler|TinEye|SocialRankIOBot|trendictionbot|Ocarinabot|epicbot|Primalbot|DuckDuckGo-Favicons-Bot|GnowitNewsbot|Leikibot|LinkArchiver|YaK\/|PaperLiBot|Digg Deeper|dcrawl|Snacktory|AndersPinkBot|Fyrebot|EveryoneSocialBot|Mediatoolkitbot|Luminator-robots|ExtLinksBot|SurveyBot|NING\/|okhttp|Nuzzel|omgili|PocketParser|YisouSpider|um-LN|ToutiaoSpider|MuckRack|Jamie's Spider|AHC\/|NetcraftSurveyAgent|Laserlikebot|^Apache-HttpClient|AppEngine-Google|Jetty|Upflow|Thinklab|Traackr.com|Twurly|Mastodon|http_get|DnyzBot|botify|007ac9 Crawler|BehloolBot|BrandVerity|check_http|BDCbot|ZumBot|EZID|ICC-Crawler|ArchiveBot|^LCC |filterdb.iss.net\/crawler|BLP_bbot|BomboraBot|Buck\/|Companybook-Crawler|Genieo|magpie-crawler|Meltw
7aterNews|Moreover|newspaper\/|ScoutJet|(^| )sentry\/|StorygizeBot|UptimeRobot|OutclicksBot|seoscanners|Hatena|Google Web Preview|MauiBot|AlphaBot|SBL-BOT|IAS crawler|adscanner|Netvibes|acapbot|Baidu-YunGuanCe|bitlybot|blogmuraBot|Bot.AraTurka.com|bot-pge.chlooe.com|BoxcarBot|BTWebClient|ContextAd Bot|Digincore bot|Disqus|Feedly|Fetch\/|Fever|Flamingo_SearchEngine|FlipboardProxy|g2reader-bot|G2 Web Services|imrbot|K7MLWCBot|Kemvibot|Landau-Media-Spider|linkapediabot|vkShare|Siteimprove.com|BLEXBot\/|DareBoost|ZuperlistBot\/|Miniflux\/|Feedspot|Diffbot\/|SEOkicks|tracemyfile|Nimbostratus-Bot|zgrab|PR-CY.RU|AdsTxtCrawler|Datafeedwatch|Zabbix|TangibleeBot|google-xrawler|axios|Amazon CloudFront|Pulsepoint|CloudFlare-AlwaysOnline|Google-Structured-Data-Testing-Tool|WordupInfoSearch|WebDataStats|HttpUrlConnection|Seekport Crawler|ZoomBot|VelenPublicWebCrawler|MoodleBot|jpg-newsbot|outbrain|W3C_Validator|Validator\.nu|W3C-checklink|W3C-mobileOK|W3C_I18n-Checker|FeedValidator|W3C_CSS_Validator|W3C_Unicorn|Google-PhysicalWeb|Blackboard|ICBot\/|BazQux|Twingly|Rivva|Experibot|awesomecrawler|Dataprovider.com|GroupHigh\/|theoldreader.com|AnyEvent|Uptimebot\.org|Nmap Scripting Engine|2ip.ru|Clickagy|Caliperbot|MBCrawler|online-webceo-bot|B2B Bot|AddSearchBot|Google Favicon|HubSpot|Chrome-Lighthouse|HeadlessChrome|CheckMarkNetwork\/|www\.uptime\.com|Streamline3Bot\/|serpstatbot\/|MixnodeCache\/|^curl|SimpleScraper|RSSingBot|Jooblebot|fedoraplanet|Friendica|NextCloud|Tiny Tiny RSS|RegionStuttgartBot|Bytespider|Datanyze|Google-Site-Verification|TrendsmapResolver|tweetedtimes|NTENTbot|Gwene|SimplePie|SearchAtlas|Superfeedr|feedbot|UT-Dorkbot|Amazonbot|SerendeputyBot|Eyeotabot|officestorebot|Neticle Crawler|SurdotlyBot|LinkisBot|AwarioSmartBot|AwarioRssBot|RyteBot|FreeWebMonitoring SiteChecker|AspiegelBot|NAVER Blog Rssbot|zenback bot|SentiBot|Domains Project\/|Pandalytics|VKRobot|bidswitchbot|tigerbot|NIXStatsbot|Atom Feed Robot|Curebot|PagePeeker\/|Vigil\/|rssbot\/|startmebot\/|JobboerseBot|seewithkids|NINJA bot|Cutbot|BublupBot|BrandONbot|RidderBot|Taboolabot|Dubbotbot|FindITAnswersbot|infoobot|Refindbot|BlogTraffic\/\d\.\d+ Feed-Fetcher|SeobilityBot|Cincraw|Dragonbot|VoluumDSP-content-bot|FreshRSS|BitBot|^PHP-Curl-Class|Google-Certificates-Bridge/;const nd=[{name:"Samsung",test:/SamsungBrowser/i},{name:"Edge",test:/edg([ea]|ios|)\//i},{name:"Firefox",test:/firefox|iceweasel|fxios/i},{name:"Chrome",test:/chrome|crios|crmo/i},{name:"Safari",test:/safari|applewebkit/i}];function rd(e,t){let n=!1,r=!1,o=!1,i=!1;if("Amazon CloudFront"===t)"true"===e["cloudfront-is-mobile-viewer"]&&(n=!0,r=!0),"true"===e["cloudfront-is-tablet-viewer"]&&(n=!1,r=!0),"true"===e["cloudfront-is-desktop-viewer"]&&(n=!1,r=!1),"true"===e["cloudfront-is-ios-viewer"]&&(o=!0),"true"===e["cloudfront-is-android-viewer"]&&(i=!0);else if(e&&e["cf-device-type"])switch(e["cf-device-type"]){case"mobile":n=!0,r=!0;break;case"tablet":n=!1,r=!0;break;case"desktop":n=!1,r=!1}else s=t,n=Xf.test(s)||Jf.test(s.slice(0,4)),r=function(e){return Zf.test(e)||ed.test(e.slice(0,4))}(t),o=function(e){return/iPad|iPhone|iPod/.test(e)}(t),i=function(e){return/android/i.test(e)}(t);var s;const a=function(e){return/Windows/.test(e)}(t),c=function(e){return/Mac OS X/.test(e)}(t),l=function(e){for(const t of nd)if(t.test.test(e))return t.name;return""}(t);return{userAgent:t,isMobile:n,isMobileOrTablet:r,isTablet:!n&&r,isDesktop:!r,isIos:o,isAndroid:i,isWindows:a,isMacOS:c,isApple:c||o,isDesktopOrTablet:!n,isSafari:"Safari"===l,isFirefox:"Firefox"===l,isEdge:"Edge"===l,isChrome:"Chrome"===l,isSamsung:"Samsung"===l,isCrawler:td.test(t)}}const od=Ut(e=>{const n=Bt(),r=n.public.device.defaultUserAgent,o=n.public.device.refreshOnResize;if(e.ssrContext){const e={},n=e["user-agent"]||r;return{provide:{device:t(rd(e,n))}}}const i=navigator.userAgent||r,s=t(rd({},i));return o&&window.addEventListener("resize",()=>{setTimeout(()=>{const e=rd({},navigator.userAgent||r);Object.entries(e).forEach(e=>{const[t,n]=e;s[t]=n})},50)}),{provide:{device:s}}}),id="undefined"!=typeof window,sd=(e,t=!1)=>t?Symbol.for(e):Symbol(e),ad=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),cd=e=>"number"==typeof e&&isFinite(e),ld=e=>"[object RegExp]"===Ed(e),ud=e=>Td(e)&&0===Object.keys(e).length,hd=Object.assign;
8/*!
9  * shared v9.10.1
10  * (c) 2024 kazuya kawaguchi
11  * Released under the MIT License.
12  */let fd;const dd=()=>fd||(fd="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function pd(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const md=Object.prototype.hasOwnProperty;function gd(e,t){return md.call(e,t)}const yd=Array.isArray,vd=e=>"function"==typeof e,bd=e=>"string"==typeof e,_d=e=>"boolean"==typeof e,wd=e=>null!==e&&"object"==typeof e,kd=Object.prototype.toString,Ed=e=>kd.call(e),Td=e=>{if(!wd(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function Sd(e,t=""){return e.reduce((e,n,r)=>0===r?e+n:e+t+n,"")}function xd(e){let t=e;return()=>++t}function Od(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Ad=e=>!wd(e)||yd(e);function Cd(e,t){if(Ad(e)||Ad(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{Ad(e[r])||Ad(t[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]})})}}
13/*!
14  * message-compiler v9.10.1
15  * (c) 2024 kazuya kawaguchi
16  * Released under the MIT License.
17  */function Nd(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const Id=1,Ld=2,Pd=3,Rd=4,Dd=5,Md=6,jd=7,Ud=8,qd=9,Fd=10,Bd=11,Vd=12,zd=13,$d=14,Hd=17;function Wd(e,t,n={}){const{domain:r,messages:o,args:i}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=r,s}function Gd(e){throw e}const Kd=" ",Yd="\n",Qd=String.fromCharCode(8232),Xd=String.fromCharCode(8233);function Jd(e){const t=e;let n=0,r=1,o=1,i=0;const s=e=>"\r"===t[e]&&t[e+1]===Yd,a=e=>t[e]===Xd,c=e=>t[e]===Qd,l=e=>s(e)||(e=>t[e]===Yd)(e)||a(e)||c(e),u=e=>s(e)||a(e)||c(e)?Yd:t[e];function h(){return i=0,l(n)&&(r++,o=0),s(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>i,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+i),next:h,peek:function(){return s(n+i)&&i++,i++,t[n+i]},reset:function(){n=0,r=1,o=1,i=0},resetPeek:function(e=0){i=e},skipToPeek:function(){const e=n+i;for(;e!==n;)h();i=0}}}const Zd=void 0;function ep(e,t={}){const n=!1!==t.location,r=Jd(e),o=()=>r.index(),i=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=i(),a=o(),c={currentType:14,offset:a,startLoc:s,endLoc:s,lastType:14,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},l=()=>c,{onError:u}=t;function h(e,t,r,...o){const i=l();if(t.column+=r,t.offset+=r,u){const r=Wd(e,n?Nd(i.startLoc,t):null,{domain:"tokenizer",args:o});u(r)}}function f(e,t,r){e.endLoc=i(),e.currentType=t;const o={type:t};return n&&(o.loc=Nd(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const d=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(h(Id,i(),0,t),"")}function m(e){let t="";for(;e.currentPeek()===Kd||e.currentPeek()===Yd;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function y(e){if(e===Zd)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=function(e){if(e===Zd)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function _(e,t=!0){const n=(t=!1,r="",o=!1)=>{const i=e.currentPeek();return"{"===i?"%"!==r&&t:"@"!==i&&i?"%"===i?(e.peek(),n(t,"%",!0)):"|"===i?!("%"!==r&&!o)||!(r===Kd||r===Yd):i===Kd?(e.peek(),n(!0,Kd,o)):i!==Yd||(e.peek(),n(!0,Yd,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function w(e,t){const n=e.currentChar();return n===Zd?Zd:t(n)?(e.next(),n):null}function k(e){return w(e,e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t})}function E(e){return w(e,e=>{const t=e.charCodeAt(0);return t>=48&&t<=57})}function T(e){return w(e,e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102})}function S(e){let t="",n="";for(;t=E(e);)n+=t;return n}function x(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!_(e))break;t+=n,e.next()}else if(n===Kd||n===Yd)if(_(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function O(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return A(e,t,4);case"U":return A(e,t,6);default:return h(Rd,i(),0,t),""}}function A(e,t,n){p(e,t);let r="";for(let o=0;o<n;o++){const n=T(e);if(!n){h(Dd,i(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function C(e){g(e);const t=p(e,"|");return g(e),t}function N(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&h(qd,i(),0),e.next(),n=f(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&h(Ud,i(),0),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&h(jd,i(),0),n=I(e,t)||d(t),t.braceNest=0,n;default:let r=!0,o=!0,s=!0;if(b(e))return t.braceNest>0&&h(jd,i(),0),n=f(t,1,C(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return h(jd,i(),0),t.braceNest=0,L(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=y(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){g(e);let t="",n="";for(;t=k(e);)n+=t;return e.currentChar()===Zd&&h(jd,i(),0),n}(e)),g(e),n;if(o=v(e,t))return n=f(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${S(e)}`):t+=S(e),e.currentChar()===Zd&&h(jd,i(),0),t}(e)),g(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){g(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==Yd;for(;t=w(e,r);)n+="\\"===t?O(e):t;const o=e.currentChar();return o===Yd||o===Zd?(h(Pd,i(),0),o===Yd&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),g(e),n;if(!r&&!o&&!s)return n=f(t,13,function(e){g(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==Kd&&e!==Yd;for(;t=w(e,r);)n+=t;return n}(e)),h(Ld,i(),0,n.value),g(e),n}return n}function I(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==Yd&&o!==Kd||h(Fd,i(),0),o){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return g(e),e.next(),f(t,9,".");case":":return g(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,C(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;m(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(g(e),I(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;m(e);const r=y(e.currentPeek());return e.resetPeek(),r}(e,t)?(g(e),f(t,12,function(e){let t="",n="";for(;t=k(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?y(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===Kd||!t)&&(t===Yd?(e.peek(),r()):y(t))},o=r();return e.resetPeek(),o}(e,t)?(g(e),"{"===o?N(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&"("!==o&&")"!==o&&o?o===Kd?r:o===Yd||"."===o?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&h(Fd,i(),0),t.braceNest=0,t.inLinked=!1,L(e,t))}}function L(e,t){let n={type:14};if(t.braceNest>0)return N(e,t)||d(t);
17if(t.inLinked)return I(e,t)||d(t);switch(e.currentChar()){case"{":return N(e,t)||d(t);case"}":return h(Md,i(),0),e.next(),f(t,3,"}");case"@":return I(e,t)||d(t);default:if(b(e))return n=f(t,1,C(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:o}=function(e){const t=m(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return o?f(t,0,x(e)):f(t,4,function(e){g(e);const t=e.currentChar();return"%"!==t&&h(Id,i(),0,t),e.next(),"%"}(e));if(_(e))return f(t,0,x(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=s,c.offset=o(),c.startLoc=i(),r.currentChar()===Zd?f(c,14):L(r,c)},currentOffset:o,currentPosition:i,context:l}}const tp=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function np(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function rp(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,r,o,i,...s){const a=e.currentPosition();if(a.offset+=i,a.column+=i,n){const e=Wd(r,t?Nd(o,a):null,{domain:"parser",args:s});n(e)}}function o(e,n,r){const o={type:e};return t&&(o.start=n,o.end=n,o.loc={start:r,end:r}),o}function i(e,n,r,o){o&&(e.type=o),t&&(e.end=n,e.loc&&(e.loc.end=r))}function s(e,t){const n=e.context(),r=o(3,n.offset,n.startLoc);return r.value=t,i(r,e.currentOffset(),e.currentPosition()),r}function a(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,a=o(5,r,s);return a.index=parseInt(t,10),e.nextToken(),i(a,e.currentOffset(),e.currentPosition()),a}function c(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,a=o(4,r,s);return a.key=t,e.nextToken(),i(a,e.currentOffset(),e.currentPosition()),a}function l(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,a=o(9,r,s);return a.value=t.replace(tp,np),e.nextToken(),i(a,e.currentOffset(),e.currentPosition()),a}function u(e){const t=e.context(),n=o(6,t.offset,t.startLoc);let s=e.nextToken();if(9===s.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:s,lastStartLoc:a}=n,c=o(8,s,a);return 12!==t.type?(r(e,Vd,n.lastStartLoc,0),c.value="",i(c,s,a),{nextConsumeToken:t,node:c}):(null==t.value&&r(e,$d,n.lastStartLoc,0,op(t)),c.value=t.value||"",i(c,e.currentOffset(),e.currentPosition()),{node:c})}(e);n.modifier=t.node,s=t.nextConsumeToken||e.nextToken()}switch(10!==s.type&&r(e,$d,t.lastStartLoc,0,op(s)),s=e.nextToken(),2===s.type&&(s=e.nextToken()),s.type){case 11:null==s.value&&r(e,$d,t.lastStartLoc,0,op(s)),n.key=function(e,t){const n=e.context(),r=o(7,n.offset,n.startLoc);return r.value=t,i(r,e.currentOffset(),e.currentPosition()),r}(e,s.value||"");break;case 5:null==s.value&&r(e,$d,t.lastStartLoc,0,op(s)),n.key=c(e,s.value||"");break;case 6:null==s.value&&r(e,$d,t.lastStartLoc,0,op(s)),n.key=a(e,s.value||"");break;case 7:null==s.value&&r(e,$d,t.lastStartLoc,0,op(s)),n.key=l(e,s.value||"");break;default:r(e,zd,t.lastStartLoc,0);const u=e.context(),h=o(7,u.offset,u.startLoc);return h.value="",i(h,u.offset,u.startLoc),n.key=h,i(n,u.offset,u.startLoc),{nextConsumeToken:s,node:n}}return i(n,e.currentOffset(),e.currentPosition()),{node:n}}function h(e){const t=e.context(),n=o(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let h=null;do{const o=h||e.nextToken();switch(h=null,o.type){case 0:null==o.value&&r(e,$d,t.lastStartLoc,0,op(o)),n.items.push(s(e,o.value||""));break;case 6:null==o.value&&r(e,$d,t.lastStartLoc,0,op(o)),n.items.push(a(e,o.value||""));break;case 5:null==o.value&&r(e,$d,t.lastStartLoc,0,op(o)),n.items.push(c(e,o.value||""));break;case 7:null==o.value&&r(e,$d,t.lastStartLoc,0,op(o)),n.items.push(l(e,o.value||""));break;case 8:const i=u(e);n.items.push(i.node),h=i.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return i(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function f(e){const t=e.context(),{offset:n,startLoc:s}=t,a=h(e);return 14===t.currentType?a:function(e,t,n,s){const a=e.context();let c=0===s.items.length;const l=o(1,t,n);l.cases=[],l.cases.push(s);do{const t=h(e);c||(c=0===t.items.length),l.cases.push(t)}while(14!==a.currentType);return c&&r(e,Bd,n,0),i(l,e.currentOffset(),e.currentPosition()),l}(e,n,s,a)}return{parse:function(n){const s=ep(n,hd({},e)),a=s.context(),c=o(0,a.offset,a.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=f(s),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),14!==a.currentType&&r(s,$d,a.lastStartLoc,0,n[a.offset]||""),i(c,s.currentOffset(),s.currentPosition()),c}}}function op(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function ip(e,t){for(let n=0;n<e.length;n++)sp(e[n],t)}function sp(e,t){switch(e.type){case 1:ip(e.cases,t),t.helper("plural");break;case 2:ip(e.items,t);break;
17case 6:sp(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function ap(e,t={}){const n=function(e){const t={ast:e,helpers:new Set};return{context:()=>t,helper:e=>(t.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&sp(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function cp(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=Sd(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function lp(e){switch(e.t=e.type,e.type){case 0:const t=e;lp(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,r=n.cases;for(let e=0;e<r.length;e++)lp(r[e]);n.c=r,delete n.cases;break;case 2:const o=e,i=o.items;for(let e=0;e<i.length;e++)lp(i[e]);o.i=i,delete o.items,o.static&&(o.s=o.static,delete o.static);break;case 3:case 9:case 8:case 7:const s=e;s.value&&(s.v=s.value,delete s.value);break;case 6:const a=e;lp(a.key),a.k=a.key,delete a.key,a.modifier&&(lp(a.modifier),a.m=a.modifier,delete a.modifier);break;case 5:const c=e;c.i=c.index,delete c.index;break;case 4:const l=e;l.k=l.key,delete l.key}delete e.type}function up(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?up(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let n=0;n<o&&(up(e,t.cases[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let i=0;i<o&&(up(e,t.items[i]),i!==o-1);i++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),up(e,t.key),t.modifier?(e.push(", "),up(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t)}}function hp(e,t={}){const n=hd({},t),r=!!n.jit,o=!!n.minify,i=null==n.optimize||n.optimize,s=rp(n).parse(e);return r?(i&&function(e){const t=e.body;2===t.type?cp(t):t.cases.forEach(e=>cp(e))}(s),o&&lp(s),{ast:s,code:""}):(ap(s,n),((e,t={})=>{const n=bd(t.mode)?t.mode:"normal",r=bd(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,i=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,a=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:i}=t,s=!1!==t.location,a={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:i,indentLevel:0};function c(e,t){a.code+=e}function l(e,t=!0){const n=t?o:"";c(i?n+"  ".repeat(e):n)}return s&&e.loc&&(a.source=e.loc.source),{context:()=>a,push:c,indent:function(e=!0){const t=++a.indentLevel;e&&l(t)}
vendor: 11,582 bytes, lines 17-22
17,deindent:function(e=!0){const t=--a.indentLevel;e&&l(t)},newline:function(){l(a.indentLevel)},helper:e=>`_${e}`,needIndent:()=>a.needIndent}}(e,{mode:n,filename:r,sourceMap:o,breakLineCode:i,needIndent:s});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),a.length>0&&(c.push(`const { ${Sd(a.map(e=>`${e}: _${e}`),", ")} } = ctx`),c.newline()),c.push("return "),up(c,e),c.deindent(s),c.push("}"),delete e.helpers;const{code:l,map:u}=c.context();return{ast:e,code:l,map:u?u.toJSON():void 0}})(s,n))}
18/*!
19  * core-base v9.10.1
20  * (c) 2024 kazuya kawaguchi
21  * Released under the MIT License.
22  */const fp=[];fp[0]={w:[0],i:[3,0],"[":[4],o:[7]},fp[1]={w:[1],".":[2],"[":[4],o:[7]},fp[2]={w:[2],i:[3,0],0:[3,0]},fp[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},fp[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},fp[5]={"'":[4,0],o:8,l:[5,0]},fp[6]={'"':[4,0],o:8,l:[6,0]};const dp=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function pp(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function mp(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,dp.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const gp=new Map;function yp(e,t){return wd(e)?e[t]:null}const vp=e=>e,bp=e=>"",_p=e=>0===e.length?"":Sd(e),wp=e=>null==e?"":yd(e)||Td(e)&&e.toString===kd?JSON.stringify(e,null,2):String(e);function kp(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Ep(e={}){const t=e.locale,n=function(e){const t=cd(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(cd(e.named.count)||cd(e.named.n))?cd(e.named.count)?e.named.count:cd(e.named.n)?e.named.n:t:t}(e),r=wd(e.pluralRules)&&bd(t)&&vd(e.pluralRules[t])?e.pluralRules[t]:kp,o=wd(e.pluralRules)&&bd(t)&&vd(e.pluralRules[t])?kp:void 0,i=e.list||[],s=e.named||{};cd(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function a(t){const n=vd(e.messages)?e.messages(t):!!wd(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):bp)}const c=Td(e.processor)&&vd(e.processor.normalize)?e.processor.normalize:_p,l=Td(e.processor)&&vd(e.processor.interpolate)?e.processor.interpolate:wp,u={list:e=>i[e],named:e=>s[e],plural:e=>e[r(n,e.length,o)],linked:(t,...n)=>{const[r,o]=n;let i="text",s="";1===n.length?wd(r)?(s=r.modifier||s,i=r.type||i):bd(r)&&(s=r||s):2===n.length&&(bd(r)&&(s=r||s),bd(o)&&(i=o||i));const c=a(t)(u),l="vnode"===i&&yd(c)&&s?c[0]:c;return s?(t=>e.modifiers?e.modifiers[t]:vp)(s)(l,i):l},message:a,type:Td(e.processor)&&bd(e.processor.type)?e.processor.type:"text",interpolate:l,normalize:c,values:hd({},i,s)};return u}let Tp=null;const Sp=xp("function:translate");function xp(e){return t=>Tp&&Tp.emit(e,t)}const Op=Hd,Ap=xd(Op),Cp={INVALID_ARGUMENT:Op,INVALID_DATE_ARGUMENT:Ap(),INVALID_ISO_DATE_ARGUMENT:Ap(),NOT_SUPPORT_NON_STRING_MESSAGE:Ap(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Ap(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Ap(),NOT_SUPPORT_LOCALE_TYPE:Ap(),__EXTEND_POINT__:Ap()};function Np(e){return Wd(e,null,void 0)}function Ip(e,t){return null!=t.locale?Pp(t.locale):Pp(e.locale)}let Lp;function Pp(e){if(bd(e))return e;if(vd(e)){if(e.resolvedOnce&&null!=Lp)return Lp;if("Function"===e.constructor.name){const n=e();if(wd(t=n)&&vd(t.then)&&vd(t.catch))throw Np(Cp.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Lp=n}throw Np(Cp.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Np(Cp.NOT_SUPPORT_LOCALE_TYPE);var t}function Rp(e,t,n){return[...new Set([n,...yd(t)?t:wd(t)?Object.keys(t):bd(t)?[t]:[n]])]}function Dp(e,t,n){const r=bd(n)?n:qp,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let e=[n];for(;yd(e);)e=Mp(i,e,t);const s=yd(t)||!Td(t)?t:t.default?t.default:null;e=bd(s)?[s]:s,yd(e)&&Mp(i,e,!1),o.__localeChainCache.set(r,i)}return i}function Mp(e,t,n){let r=!0;for(let o=0;o<t.length&&_d(r);o++){const i=t[o];bd(i)&&(r=jp(e,t[o],n))}return r}function jp(e,t,n){let r;const o=t.split("-");do{r=Up(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function Up(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(yd(n)||Td(n))&&n[o]&&(r=n[o])}return r}const qp="en-US",Fp=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Bp,Vp,zp;let $p=null;const Hp=()=>$p;let Wp=null;const Gp=e=>{Wp=e};let Kp=0;function Yp(e={}){const t=vd(e.onWarn)?e.onWarn:Od,n=bd(e.version)?e.version:"9.10.1",r=bd(e.locale)||vd(e.locale)?e.locale:qp,o=vd(r)?qp:r,i=yd(e.fallbackLocale)||Td(e.fallbackLocale)||bd(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o,s=Td(e.messages)?e.messages:{[o]:{}},a=Td(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},c=Td(e.numberFormats)?e.numberFormats:{[o]:{}},l=hd({},e.modifiers||{},{upper:(e,t)=>"text"===t&&bd(e)?e.toUpperCase():"vnode"===t&&wd(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&bd(e)?e.toLowerCase():"vnode"===t&&wd(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&bd(e)?Fp(e):"vnode"===t&&wd(e)&&"__v_isVNode"in e?Fp(e.children):e}),u=e.pluralRules||{},h=vd(e.missing)?e.missing:null,f=!_d(e.missingWarn)&&!ld(e.missingWarn)||e.missingWarn,d=!_d(e.fallbackWarn)&&!ld(e.fallbackWarn)||e.fallbackWarn,p=!!e.fallbackFormat,m=!!e.unresolving,g=vd(e.postTranslation)?e.postTranslation:null,y=Td(e.processor)?e.processor:null,v=!_d(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,_=vd(e.messageCompiler)?e.messageCompiler:Bp,w=vd(e.messageResolver)?e.messageResolver:Vp||yp,k=vd(e.localeFallbacker)?e.localeFallbacker:zp||Rp,E=wd(e.fallbackContext)?e.fallbackContext:void 0,T=e,S=wd(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,x=wd(T.__numberFormatters)?T.__numberFormatters:new Map,O=wd(T.__meta)?T.__meta:{};Kp++;const A={version:n,cid:Kp,locale:r,fallbackLocale:i,messages:s,modifiers:l,pluralRules:u,missing:h,missingWarn:f,fallbackWarn:d,fallbackFormat:p,unresolving:m,postTranslation:g,processor:y,warnHtmlMessage:v,escapeParameter:b,messageCompiler:_,messageResolver:w,localeFallbacker:k,fallbackContext:E,onWarn:t,__meta:O};return A.datetimeFormats=a,A.numberFormats=c,A.__datetimeFormatters=S,A.__numberFormatters=x,__INTLIFY_PROD_DEVTOOLS__&&function(e,t,n){Tp&&Tp.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}(A,n,O),A}function Qp(e,t,n,r,o){const{missing:i,onWarn:s}=e;if(null!==i){const r=i(e,n,t,o);return bd(r)?r:t}return t}function Xp(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Jp(e){return t=>function(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,r=t.c||t.cases;return e.plural(r.reduce((t,n)=>[...t,Zp(e,n)],[]))}return Zp(e,n)}(t,e)}function Zp(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce((t,n)=>[...t,em(e,n)],[]);return e.normalize(n)}}function em(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const o=t;return o.v||o.value;case 4:const i=t;return e.interpolate(e.named(i.k||i.key));case 5:const s=t;return e.interpolate(e.list(null!=s.i?s.i:s.index));case 6:const a=t,c=a.m||a.modifier;return e.linked(em(e,a.k||a.key),c?em(e,c):void 0,e.type);case 7:const l=t;return l.v||l.value;case 8:const u=t;return u.v||u.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const tm=e=>e;let nm=Object.create(null);const rm=e=>wd(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);const om=()=>"",im=e=>vd(e);function sm(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:i,fallbackLocale:s,messages:a}=e,[c,l]=lm(...t),u=_d(l.missingWarn)?l.missingWarn:e.missingWarn,h=_d(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=_d(l.escapeParameter)?l.escapeParameter:e.escapeParameter,d=!!l.resolvedMessage,p=bd(l.default)||_d(l.default)?_d(l.default)?i?c:()=>c:l.default:n?i?c:()=>c:"",m=n||""!==p,g=Ip(e,l);f&&function(e){yd(e.list)?e.list=e.list.map(e=>bd(e)?pd(e):e):wd(e.named)&&Object.keys(e.named).forEach(t=>{bd(e.named[t])&&(e.named[t]=pd(e.named[t]))})}(l);let[y,v,b]=d?[c,g,a[g]||{}]:am(e,c,g,s,h,u),_=y,w=c;if(d||bd(_)||rm(_)||im(_)||m&&(_=p,w=_),!(d||(bd(_)||rm(_)||im(_))&&bd(v)))return o?-1:c;let k=!1;const E=im(_)?_:cm(e,c,v,_,w,()=>{k=!0});if(k)return _;const T=function(e,t,n,r){const{modifiers:o,pluralRules:i,messageResolver:s,fallbackLocale:a,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,h=r=>{let o=s(n,r);if(null==o&&u){const[,,e]=am(u,r,t,a,c,l);o=s(e,r)}if(bd(o)||rm(o)){let n=!1;const i=cm(e,r,t,o,r,()=>{n=!0});return n?om:i}return im(o)?o:om},f={locale:t,modifiers:o,pluralRules:i,messages:h};e.processor&&(f.processor=e.processor);r.list&&(f.list=r.list);r.named&&(f.named=r.named);cd(r.plural)&&(f.pluralIndex=r.plural);return f}(e,v,b,l),S=function(e,t,n){const r=t(n);return r}(0,E,Ep(T)),x=r?r(S,c):S;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:bd(c)?c:im(_)?_.key:"",locale:v||(im(_)?_.locale:""),format:bd(_)?_:im(_)?_.source:"",message:x};t.meta=hd({},e.__meta,Hp()||{}),Sp(t)}return x}function am(e,t,n,r,o,i){const{messages:s,onWarn:a,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n);let h,f={},d=null;for(let p=0;p<u.length&&(h=u[p],f=s[h]||{},null===(d=c(f,t))&&(d=f[t]),!(bd(d)||rm(d)||im(d)));p++){const n=Qp(e,t,h,0,"translate");n!==t&&(d=n)}return[d,h,f]}function cm(e,t,n,r,o,i){const{messageCompiler:s,warnHtmlMessage:a}=e;if(im(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>r;return e.locale=n,e.key=t,e}const c=s(r,function(e,t,n,r,o,i){return{locale:t,key:n,warnHtmlMessage:o,onError:e=>{throw i&&i(e),e},onCacheKey:e=>((e,t,n)=>ad({l:e,k:t,s:n}))(t,n,e)}}(0,n,o,0,a,i));return c.locale=n,c.key=t,c.source=r,c}function lm(...e){const[t,n,r]=e,o={};if(!(bd(t)||cd(t)||im(t)||rm(t)))throw Np(Cp.INVALID_ARGUMENT);const i=cd(t)?String(t):(im(t),t);return cd(n)?o.plural=n:bd(n)?o.default=n:Td(n)&&!ud(n)?o.named=n:yd(n)&&(o.list=n),cd(r)?o.plural=r:bd(r)?o.default=r:Td(r)&&hd(o,r),[i,o]}function um(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=e,{__datetimeFormatters:a}=e,[c,l,u,h]=fm(...t);_d(u.missingWarn)?u.missingWarn:e.missingWarn;_d(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,d=Ip(e,u),p=s(e,o,d);if(!bd(c)||""===c)return new Intl.DateTimeFormat(d,h).format(l);let m,g={},y=null;for(let _=0;_<p.length&&(m=p[_],g=n[m]||{},y=g[c],!Td(y));_++)Qp(e,c,m,0,"datetime format");if(!Td(y)||!bd(m))return r?-1:c;let v=`${m}__${c}`;ud(h)||(v=`${v}__${JSON.stringify(h)}`);let b=a.get(v);return b||(b=new Intl.DateTimeFormat(m,hd({},y,h)),a.set(v,b)),f?b.formatToParts(l):b.format(l)}const hm=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function fm(...e){const[t,n,r,o]=e,i={};let s,a={};if(bd(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Np(Cp.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch(c){throw Np(Cp.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===Ed(t)){if(isNaN(t.getTime()))throw Np(Cp.INVALID_DATE_ARGUMENT);s=t}else{if(!cd(t))throw Np(Cp.INVALID_ARGUMENT);s=t}
22return bd(n)?i.key=n:Td(n)&&Object.keys(n).forEach(e=>{hm.includes(e)?a[e]=n[e]:i[e]=n[e]}),bd(r)?i.locale=r:Td(r)&&(a=r),Td(o)&&(a=o),[i.key||"",s,i,a]}function dm(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function pm(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=e,{__numberFormatters:a}=e,[c,l,u,h]=gm(...t);_d(u.missingWarn)?u.missingWarn:e.missingWarn;_d(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,d=Ip(e,u),p=s(e,o,d);if(!bd(c)||""===c)return new Intl.NumberFormat(d,h).format(l);let m,g={},y=null;for(let _=0;_<p.length&&(m=p[_],g=n[m]||{},y=g[c],!Td(y));_++)Qp(e,c,m,0,"number format");if(!Td(y)||!bd(m))return r?-1:c;let v=`${m}__${c}`;ud(h)||(v=`${v}__${JSON.stringify(h)}`);let b=a.get(v);return b||(b=new Intl.NumberFormat(m,hd({},y,h)),a.set(v,b)),f?b.formatToParts(l):b.format(l)}const mm=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function gm(...e){const[t,n,r,o]=e,i={};let s={};if(!cd(t))throw Np(Cp.INVALID_ARGUMENT);const a=t;return bd(n)?i.key=n:Td(n)&&Object.keys(n).forEach(e=>{mm.includes(e)?s[e]=n[e]:i[e]=n[e]}),bd(r)?i.locale=r:Td(r)&&(s=r),Td(o)&&(s=o),[i.key||"",a,i,s]}function ym(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(dd().__INTLIFY_PROD_DEVTOOLS__=!1);const vm=xd(8);vm(),vm(),vm(),vm(),vm(),vm(),vm(),vm(),vm();const bm=Cp.__EXTEND_POINT__,_m=xd(bm),wm={UNEXPECTED_RETURN_TYPE:bm,INVALID_ARGUMENT:_m(),MUST_BE_CALL_SETUP_TOP:_m(),NOT_INSTALLED:_m(),NOT_AVAILABLE_IN_LEGACY_MODE:_m(),REQUIRED_VALUE:_m(),INVALID_VALUE:_m(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:_m(),NOT_INSTALLED_WITH_PROVIDE:_m(),UNEXPECTED_ERROR:_m(),NOT_COMPATIBLE_LEGACY_VUE_I18N:_m(),BRIDGE_SUPPORT_VUE_2_ONLY:_m(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:_m(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:_m(),__EXTEND_POINT__:_m()};function km(e,...t){return Wd(e,null,void 0)}const Em=sd("__translateVNode"),Tm=sd("__datetimeParts"),Sm=sd("__numberParts"),xm=sd("__setPluralRules"),Om=sd("__injectWithOption"),Am=sd("__dispose");function Cm(e){if(!wd(e))return e;for(const t in e)if(gd(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let o=e,i=!1;for(let e=0;e<r;e++){if(n[e]in o||(o[n[e]]={}),!wd(o[n[e]])){i=!0;break}o=o[n[e]]}i||(o[n[r]]=e[t],delete e[t]),wd(o[n[r]])&&Cm(o[n[r]])}else wd(e[t])&&Cm(e[t]);return e}function Nm(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=t,s=Td(n)?n:yd(r)?{}:{[e]:{}};if(yd(r)&&r.forEach(e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},Cd(n,s[t])):Cd(n,s)}else bd(e)&&Cd(JSON.parse(e),s)}),null==o&&i)for(const a in s)gd(s,a)&&Cm(s[a]);return s}function Im(e){return e.type}function Lm(e){return N(I,null,e,0)}const Pm="__INTLIFY_META__",Rm=()=>[],Dm=()=>!1;let Mm=0;function jm(e){return(t,n,o,i)=>e(n,o,r()||void 0,i)}const Um=()=>{const e=r();let t=null;return e&&(t=Im(e)[Pm])?{[Pm]:t}:null};function qm(e={},t){const{__root:n,__injectWithOption:r}=e,o=void 0===n,i=e.flatJson,s=id?l:m,a=!!e.translateExistCompatible;let c=!_d(e.inheritLocale)||e.inheritLocale;const u=s(n&&c?n.locale.value:bd(e.locale)?e.locale:qp),f=s(n&&c?n.fallbackLocale.value:bd(e.fallbackLocale)||yd(e.fallbackLocale)||Td(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:u.value),d=s(Nm(u.value,e)),p=s(Td(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),g=s(Td(e.numberFormats)?e.numberFormats:{[u.value]:{}});let y=n?n.missingWarn:!_d(e.missingWarn)&&!ld(e.missingWarn)||e.missingWarn,b=n?n.fallbackWarn:!_d(e.fallbackWarn)&&!ld(e.fallbackWarn)||e.fallbackWarn,_=n?n.fallbackRoot:!_d(e.fallbackRoot)||e.fallbackRoot,w=!!e.fallbackFormat,k=vd(e.missing)?e.missing:null,E=vd(e.missing)?jm(e.missing):null,T=vd(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:!_d(e.warnHtmlMessage)||e.warnHtmlMessage,x=!!e.escapeParameter;const O=n?n.modifiers:Td(e.modifiers)?e.modifiers:{};let A,C=e.pluralRules||n&&n.pluralRules;A=(()=>{o&&Gp(null);const t={version:"9.10.1",locale:u.value,fallbackLocale:f.value,messages:d.value,modifiers:O,pluralRules:C,missing:null===E?void 0:E,missingWarn:y,fallbackWarn:b,fallbackFormat:w,unresolving:!0,postTranslation:null===T?void 0:T,warnHtmlMessage:S,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=p.value,t.numberFormats=g.value,t.__datetimeFormatters=Td(A)?A.__datetimeFormatters:void 0,t.__numberFormatters=Td(A)?A.__numberFormatters:void 0;const n=Yp(t);return o&&Gp(n),n})(),Xp(A,u.value,f.value);const N=v({get:()=>u.value,set:e=>{u.value=e,A.locale=u.value}}),I=v({get:()=>f.value,set:e=>{f.value=e,A.fallbackLocale=f.value,Xp(A,u.value,e)}}),L=v(()=>d.value),P=v(()=>p.value),R=v(()=>g.value);const D=(e,t,r,i,s,a)=>{let c;u.value,f.value,d.value,p.value,g.value;try{__INTLIFY_PROD_DEVTOOLS__&&($p=Um()),o||(A.fallbackContext=n?Wp:void 0),c=e(A)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(A.fallbackContext=void 0)}if("translate exists"!==r&&cd(c)&&-1===c||"translate exists"===r&&!c){const[e,r]=t();return n&&_?i(n):s(e)}if(a(c))return c;throw km(wm.UNEXPECTED_RETURN_TYPE)};function M(...e){return D(t=>Reflect.apply(sm,null,[t,...e]),()=>lm(...e),"translate",t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>bd(e))}const j={normalize:function(e){return e.map(e=>bd(e)||cd(e)||_d(e)?Lm(String(e)):e)},interpolate:e=>e,type:"vnode"};function U(e){return d.value[e]||{}}Mm++,n&&id&&(h(n.locale,e=>{c&&(u.value=e,A.locale=e,Xp(A,u.value,f.value))}),h(n.fallbackLocale,e=>{c&&(f.value=e,A.fallbackLocale=e,Xp(A,u.value,f.value))}));const q={id:Mm,locale:N,fallbackLocale:I,get inheritLocale(){return c},set inheritLocale(e){c=e,e&&n&&(u.value=n.locale.value,f.value=n.fallbackLocale.value,Xp(A,u.value,f.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:L,get modifiers(){return O},get pluralRules(){return C||{}},get isGlobal(){return o},get missingWarn(){return y},set missingWarn(e){y=e,A.missingWarn=y},get fallbackWarn(){return b},set fallbackWarn(e){b=e,A.fallbackWarn=b},get fallbackRoot(){return _},set fallbackRoot(e){_=e},get fallbackFormat(){return w},set fallbackFormat(e){w=e,A.fallbackFormat=w},get warnHtmlMessage(){return S},set warnHtmlMessage(e){S=e,A.warnHtmlMessage=e},get escapeParameter(){return x},set escapeParameter(e){x=e,A.escapeParameter=e},t:M,getLocaleMessage:U,setLocaleMessage:function(e,t){if(i){const n={[e]:t};for(const e in n)gd(n,e)&&Cm(n[e]);t=n[e]}d.value[e]=t,A.messages=d.value},mergeLocaleMessage:function(e,t){d.value[e]=d.value[e]||{};const n={[e]:t};if(i)for(const r in n)gd(n,r)&&Cm(n[r]);Cd(t=n[e],d.value[e]),A.messages=d.value},getPostTranslationHandler:function(){return vd(T)?T:null},setPostTranslationHandler:function(e){T=e,A.postTranslation=e},getMissingHandler:function(){return k},setMissingHandler:function(e){null!==e&&(E=jm(e)),k=e,A.missing=E},[xm]:function(e){C=e,A.pluralRules=C}};return q.datetimeFormats=P,q.numberFormats=R,q.rt=function(...e){const[t,n,r]=e;
22if(r&&!wd(r))throw km(wm.INVALID_ARGUMENT);return M(t,n,hd({resolvedMessage:!0},r||{}))},q.te=function(e,t){return D(()=>{if(!e)return!1;const n=U(bd(t)?t:u.value),r=A.messageResolver(n,e);return a?null!=r:rm(r)||im(r)||bd(r)},()=>[e],"translate exists",n=>Reflect.apply(n.te,n,[e,t]),Dm,e=>_d(e))},q.tm=function(e){const t=function(e){let t=null;const n=Dp(A,f.value,u.value);for(let r=0;r<n.length;r++){const o=d.value[n[r]]||{},i=A.messageResolver(o,e);if(null!=i){t=i;break}}return t}(e);return null!=t?t:n&&n.tm(e)||{}},q.d=function(...e){return D(t=>Reflect.apply(um,null,[t,...e]),()=>fm(...e),"datetime format",t=>Reflect.apply(t.d,t,[...e]),()=>"",e=>bd(e))},q.n=function(...e){return D(t=>Reflect.apply(pm,null,[t,...e]),()=>gm(...e),"number format",t=>Reflect.apply(t.n,t,[...e]),()=>"",e=>bd(e))},q.getDateTimeFormat=function(e){return p.value[e]||{}},q.setDateTimeFormat=function(e,t){p.value[e]=t,A.datetimeFormats=p.value,dm(A,e,t)},q.mergeDateTimeFormat=function(e,t){p.value[e]=hd(p.value[e]||{},t),A.datetimeFormats=p.value,dm(A,e,t)},q.getNumberFormat=function(e){return g.value[e]||{}},q.setNumberFormat=function(e,t){g.value[e]=t,A.numberFormats=g.value,ym(A,e,t)},q.mergeNumberFormat=function(e,t){g.value[e]=hd(g.value[e]||{},t),A.numberFormats=g.value,ym(A,e,t)},q[Om]=r,q[Em]=function(...e){return D(t=>{let n;const r=t;try{r.processor=j,n=Reflect.apply(sm,null,[r,...e])}finally{r.processor=null}return n},()=>lm(...e),"translate",t=>t[Em](...e),e=>[Lm(e)],e=>yd(e))},q[Tm]=function(...e){return D(t=>Reflect.apply(um,null,[t,...e]),()=>fm(...e),"datetime format",t=>t[Tm](...e),Rm,e=>bd(e)||yd(e))},q[Sm]=function(...e){return D(t=>Reflect.apply(pm,null,[t,...e]),()=>gm(...e),"number format",t=>t[Sm](...e),Rm,e=>bd(e)||yd(e))},q}const Fm={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Bm(e){return C}const Vm=y({name:"i18n-t",props:hd({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>cd(e)||!isNaN(e)}},Fm),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||Jm({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(e=>"_"!==e),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=bd(e.plural)?+e.plural:e.plural);const a=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce((e,t)=>[...e,...t.type===C?t.children:[t]],[]);return t.reduce((t,n)=>{const r=e[n];return r&&(t[n]=r()),t},{})}(t,i),c=o[Em](e.keypath,a,s),l=hd({},r),u=bd(e.tag)||wd(e.tag)?e.tag:Bm();return b(u,l,c)}}}),zm=Vm;function $m(e,t,n,r){const{slots:o,attrs:i}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),bd(e.format)?t.key=e.format:wd(e.format)&&(bd(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce((t,r)=>n.includes(r)?hd({},t,{[r]:e.format[r]}):t,{}));const a=r(e.value,t,s);let c=[t.key];yd(a)?c=a.map((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:a}):[e.value];var i;return yd(i=r)&&!bd(i[0])&&(r[0].key=`${e.type}-${t}`),r}):bd(a)&&(c=[a]);const l=hd({},i),u=bd(e.tag)||wd(e.tag)?e.tag:Bm();return b(u,l,c)}}const Hm=y({name:"i18n-n",props:hd({value:{type:Number,required:!0},format:{type:[String,Object]}},Fm),setup(e,t){const n=e.i18n||Jm({useScope:"parent",__useComponent:!0});return $m(e,t,mm,(...e)=>n[Sm](...e))}}),Wm=y({name:"i18n-d",props:hd({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Fm),setup(e,t){const n=e.i18n||Jm({useScope:"parent",__useComponent:!0});return $m(e,t,hm,(...e)=>n[Tm](...e))}});function Gm(e){if(bd(e))return{path:e};if(Td(e)){if(!("path"in e))throw km(wm.REQUIRED_VALUE);return e}throw km(wm.INVALID_VALUE)}function Km(e){const{path:t,locale:n,args:r,choice:o,plural:i}=e,s={},a=r||{};return bd(n)&&(s.locale=n),cd(o)&&(s.plural=o),cd(i)&&(s.plural=i),[t,a,s]}function Ym(e,t,...n){const r=Td(n[0])?n[0]:{},o=!!r.useI18nComponentName;(!_d(r.globalInstall)||r.globalInstall)&&([o?"i18n":zm.name,"I18nT"].forEach(t=>e.component(t,zm)),[Hm.name,"I18nN"].forEach(t=>e.component(t,Hm)),[Wm.name,"I18nD"].forEach(t=>e.component(t,Wm))),e.directive("t",function(e){const t=t=>{const{instance:n,modifiers:r,value:o}=t;if(!n||!n.$)throw km(wm.UNEXPECTED_ERROR);const i=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),s=Gm(o);return[Reflect.apply(i.t,i,[...Km(s)]),i]};return{created:(n,r)=>{const[o,i]=t(r);id&&e.global===i&&(n.__i18nWatcher=h(i.locale,()=>{r.instance&&r.instance.$forceUpdate()})),n.__composer=i,n.textContent=o},unmounted:e=>{id&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=Gm(t);e.textContent=Reflect.apply(n.t,n,[...Km(r)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}(t))}const Qm=sd("global-vue-i18n");function Xm(t={},n){const r=!_d(t.globalInjection)||t.globalInjection,o=new Map,[i,s]=function(t){const n=e();{const e=n.run(()=>qm(t));if(null==e)throw km(wm.UNEXPECTED_ERROR);return[n,e]}}(t),a=sd("");{const e={get mode(){return"composition"},get allowComposition(){return true}
22,async install(t,...n){if(t.__VUE_I18N_SYMBOL__=a,t.provide(t.__VUE_I18N_SYMBOL__,e),Td(n[0])){const t=n[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}let o=null;r&&(o=function(e,t){const n=Object.create(null);Zm.forEach(e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw km(wm.UNEXPECTED_ERROR);const o=E(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(n,e,o)}),e.config.globalProperties.$i18n=n,eg.forEach(n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw km(wm.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)});const r=()=>{delete e.config.globalProperties.$i18n,eg.forEach(t=>{delete e.config.globalProperties[`$${t}`]})};return r}(t,e.global)),Ym(t,e,...n);const i=t.unmount;t.unmount=()=>{o&&o(),e.dispose(),i()}},get global(){return s},dispose(){i.stop()},__instances:o,__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,t){o.set(e,t)},__deleteInstance:function(e){o.delete(e)}};return e}}function Jm(e={}){const t=r();if(null==t)throw km(wm.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw km(wm.NOT_INSTALLED);const n=function(e){{const t=o(e.isCE?Qm:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw km(e.isCE?wm.NOT_INSTALLED_WITH_PROVIDE:wm.UNEXPECTED_ERROR);return t}}(t),i=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),s=Im(t),a=function(e,t){return ud(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,s);if("global"===a)return function(e,t,n){let r=wd(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Nm(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);if(o.length&&o.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),wd(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(wd(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}(i,e,s),i;if("parent"===a){let r=function(e,t,n=!1){let r=null;const o=t.root;let i=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,n);for(;null!=i;){const t=e;if("composition"===e.mode&&(r=t.__getInstance(i)),null!=r)break;if(o===i)break;i=i.parent}return r}(n,t,e.__useComponent);return null==r&&(r=i),r}const c=n;let l=c.__getInstance(t);if(null==l){const n=hd({},e);"__i18n"in s&&(n.__i18n=s.__i18n),i&&(n.__root=i),l=qm(n),c.__composerExtend&&(l[Am]=c.__composerExtend(l)),function(e,t,n){O(()=>{},t),A(()=>{const r=n;e.__deleteInstance(t);const o=r[Am];o&&(o(),delete r[Am])},t)}(c,t,l),c.__setInstance(t,l)}return l}const Zm=["locale","fallbackLocale","availableLocales"],eg=["t","rt","d","n","tm","te"];var tg,ng;if("boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(dd().__INTLIFY_PROD_DEVTOOLS__=!1),Bp=function(e,t){if(bd(e)){!_d(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||tm)(e),r=nm[n];if(r)return r;const{ast:o,detectError:i}=function(e,t={}){let n=!1;const r=t.onError||Gd;return t.onError=e=>{n=!0,r(e)},{...hp(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),s=Jp(o);return i?s:nm[n]=s}{const t=e.cacheKey;return t?nm[t]||(nm[t]=Jp(e)):Jp(e)}},tg=function(e,t){if(!wd(e))return null;let n=gp.get(t);if(n||(n=function(e){const t=[];let n,r,o,i,s,a,c,l=-1,u=0,h=0;const f=[];function d(){const t=e[l+1];if(5===u&&"'"===t||6===u&&'"'===t)return l++,o="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===r?r=o:r+=o},f[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},f[2]=()=>{f[0](),h++},f[3]=()=>{if(h>0)h--,u=4,f[0]();else{if(h=0,void 0===r)return!1;if(r=mp(r),!1===r)return!1;f[1]()}};null!==u;)if(l++,n=e[l],"\\"!==n||!d()){if(i=pp(n),c=fp[u],s=c[i]||c.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(a=f[s[1]],a&&(o=n,!1===a())))return;if(7===u)return t}}(t),n&&gp.set(t,n)),!n)return null;const r=n.length;let o=e,i=0;for(;i<r;){const e=o[n[i]];if(void 0===e)return null;if(vd(o))return null;o=e,i++}return o},Vp=tg,zp=Dp,__INTLIFY_PROD_DEVTOOLS__){const e=dd();e.__INTLIFY__=!0,ng=e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__,Tp=ng}const rg=["pt"],og={pt:[]},ig=[],sg={experimental:{localeDetector:""},bundle:{compositionOnly:!0,runtimeOnly:!1,fullInstall:!0,dropMessageCompiler:!1},compilation:{jit:!0,strictMessage:!0,escapeHtml:!1},customBlocks:{defaultSFCLang:"json",globalSFCScope:!1},vueI18n:"",locales:["pt"],defaultLocale:"pt",defaultDirection:"ltr",routesNameSeparator:"___",trailingSlash:!1,defaultLocaleRouteNameSuffix:"default",strategy:"prefix_except_default",lazy:!1,langDir:null,rootRedirect:null,detectBrowserLanguage:{alwaysRedirect:!1,cookieCrossOrigin:!1,cookieDomain:null,cookieKey:"i18n_redirected",cookieSecure:!1,fallbackLocale:"",redirectOn:"root",useCookie:!0}
22,differentDomains:!1,baseUrl:"",dynamicRouteParams:!1,customRoutes:"page",pages:{},skipSettingLocaleOnNavigate:!1,types:"composition",debug:!1,parallelPlugin:!1,i18nModules:[]},ag={experimental:{localeDetector:""},bundle:{compositionOnly:!0,runtimeOnly:!1,fullInstall:!0,dropMessageCompiler:!1},compilation:{jit:!0,strictMessage:!0,escapeHtml:!1},customBlocks:{defaultSFCLang:"json",globalSFCScope:!1},vueI18n:"",locales:[],defaultLocale:"",defaultDirection:"ltr",routesNameSeparator:"___",trailingSlash:!1,defaultLocaleRouteNameSuffix:"default",strategy:"prefix_except_default",lazy:!1,langDir:null,rootRedirect:null,detectBrowserLanguage:{alwaysRedirect:!1,cookieCrossOrigin:!1,cookieDomain:null,cookieKey:"i18n_redirected",cookieSecure:!1,fallbackLocale:"",redirectOn:"root",useCookie:!0},differentDomains:!1,baseUrl:"",dynamicRouteParams:!1,customRoutes:"page",pages:{},skipSettingLocaleOnNavigate:!1,types:"composition",debug:!1,parallelPlugin:!1},cg=[{iso:"pt",code:"pt"}],lg="no_prefix",ug=new Map;async function hg(e,t,n){const{defaultLocale:r,initialLocale:o,localeCodes:i,fallbackLocale:s,lazy:a}=n;if(a&&s){const n=function(e,t){let n=[];if(yd(e))n=e;else if(wd(e)){const r=[...t,"default"];for(const t of r)e[t]&&(n=[...n,...e[t].filter(Boolean)])}else bd(e)&&t.every(t=>t!==e)&&n.push(e);return n}(s,[r,o]);await Promise.all(n.map(n=>dg(n,t,e)))}const c=a?[...(new Set).add(r).add(o)]:i;return await Promise.all(c.map(n=>dg(n,t,e))),e}async function fg(e,{key:t,load:n}){let r=null;try{const o=await n().then(e=>e.default||e);vd(o)?r=await o(e):(r=o,null!=r&&ug&&ug.set(t,r))}catch(o){console.error("Failed locale loading: "+o.message)}return r}async function dg(e,t,n){await async function(e,t,n){const r=t[e];if(null==r)return void console.warn("Could not find messages for locale code: "+e);const o={};for(const i of r){let t=null;t=ug&&ug.has(i.key)&&i.cache?ug.get(i.key):await fg(e,i),null!=t&&Cd(t,o)}n(e,o)}(e,t,(e,t)=>{const r=n[e]||{};Cd(t,r),n[e]=r})}const pg="undefined"!=typeof window;function mg(e){return null!=e&&"__composer"in e}function gg(e){return function(e){return null!=e&&"global"in e&&"mode"in e}(e)?e.global:e}function yg(e){const t=gg(e);return function(e){return null!=e&&!("__composer"in e)&&"locale"in e&&E(e.locale)}(t)?t:mg(t)?t.__composer:t}function vg(e){return a(gg(e).locale)}function bg(e,t){const n=gg(e);E(n.locale)?n.locale.value=t:n.locale=t}function _g(e){return bd(e)?e:"symbol"==typeof e?e.toString():"(null)"}function wg(e,t,{defaultLocale:n,strategy:r,routesNameSeparator:o,defaultLocaleRouteNameSuffix:i}){let s=_g(e)+("no_prefix"===r?"":o+t);return t===n&&"prefix_and_default"===r&&(s+=o+i),s}function kg(e,t){return vd(e)?e(t):e}const Eg=function(e,t){const n=[];for(const[r,o]of t.entries()){const i=e.find(e=>e.iso.toLowerCase()===o.toLowerCase());if(i){n.push({code:i.code,score:1-r/t.length});break}}for(const[r,o]of t.entries()){const i=o.split("-")[0].toLowerCase(),s=e.find(e=>e.iso.split("-")[0].toLowerCase()===i);if(s){n.push({code:s.code,score:.999-r/t.length});break}}return n};const Tg=function(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score};function Sg(e){return new RegExp(`^/(${e.join("|")})(?:/|$)`,"i")}function xg(e,t,...n){const r=gg(e),[o,i]=[r,r[t]];return Reflect.apply(i,o,[...n])}function Og(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Ag(e,t=Hg()){return(...n)=>e(t,...n)}function Cg(){let e;return navigator.languages&&(e=function(e,t,{matcher:n=Eg,comparer:r=Tg}={}){const o=[];for(const s of e){const{code:e}=s,t=s.iso||e;o.push({code:e,iso:t})}const i=n(o,t);return i.length>1&&i.sort(r),i.length?i[0].code:""}(cg,navigator.languages)),e}const Ng={locale:"",stat:!1,reason:"unknown",from:"unknown"};function Ig(e){let t=function(){let e;return e=window.location.host,e}()||"";if(t){const n=e.find(e=>{if(e&&e.domain){let n=e.domain;return Ve(e.domain)&&(n=e.domain.replace(/(http|https):\/\//,"")),n===t}return!1});if(n)return n.code;t=""}return t}const Lg=new Set(["prefix_and_default","prefix_except_default"]);const Pg=function(e){const{currentLocale:t,defaultLocale:n,strategy:r}=e;return!(t===n&&Lg.has(r)||"no_prefix"===r)};function Rg(e){const{routesNameSeparator:t}=sg,n=a(e);if(null==n||!n.name)return;return _g(n.name).split(t)[0]}function Dg(e,t,n){if("string"==typeof t&&Ve(t,{acceptRelative:!0}))return t;const r=Ug(e,t,n);return null==r?"":r.redirectedFrom?.fullPath||r.fullPath}
22function Mg(e,t,n){return Ug(e,t,n)??void 0}function jg(e,t,n){return Ug(e,t,n)??void 0}function Ug(e,t,n){const{router:r,i18n:o}=e,i=n||vg(o),{routesNameSeparator:s,defaultLocale:a,defaultLocaleRouteNameSuffix:c,strategy:l,trailingSlash:u}=sg,h=e=>Pg(e)&&!sg.differentDomains;let f;if(bd(t))if("/"===t[0]){const{pathname:e,search:n,hash:r}=et(t);f={path:e,query:Re(n),hash:r}}else f={name:t};else f=t;let d=hd({},f);if("path"in(p=d)&&p.path&&!("name"in p)){const t=function({router:e},t,n,r){if("prefix"!==n)return e.resolve(t);const[o,i]=(s=t.path,a=1,[s.slice(0,a),s.slice(a)]);var s,a;const c=`${o}${r}${""===i?i:`/${i}`}`,l=e.options?.routes?.find(e=>e.path===c);if(null==l)return t;const u=hd({},t,l);return u.path=c,e.resolve(u)}(e,d,l,i),n=Rg(t);bd(n)?(d={name:wg(n,i,{defaultLocale:a,strategy:l,routesNameSeparator:s,defaultLocaleRouteNameSuffix:c}),params:t.params,query:t.query,hash:t.hash},d.state=t.state):(h({currentLocale:i,defaultLocale:a,strategy:l})&&(d.path=`/${i}${d.path}`),d.path=u?He(d.path,!0):$e(d.path,!0))}else d.name||"path"in d||(d.name=Rg(r.currentRoute.value)),d.name=wg(d.name,i,{defaultLocale:a,strategy:l,routesNameSeparator:s,defaultLocaleRouteNameSuffix:c});var p;try{const e=r.resolve(d);return e.name?e:r.resolve(t)}catch(m){if("object"==typeof m&&"type"in m&&1===m.type)return null}}function qg(e,t,n){const r=n??e.router.currentRoute.value,o=Rg(r);if(!o)return"";const i=(e,t)=>e,s=function(e){const{fullPath:t,query:n,hash:r,name:o,path:i,params:s,meta:a,redirectedFrom:c,matched:l}=e;return{fullPath:t,params:s,query:n,hash:r,name:o,path:i,meta:a,matched:l,redirectedFrom:c}}(r),c=function(e){const t=e.meta||{};return a(t)?.nuxtI18n||{}}(r)[t];return i(Dg(e,{...s,name:o,params:{...s.params,...c}},t),t)}function Fg(e,{addDirAttribute:t=!1,addSeoAttributes:n=!0,identifierAttribute:r="hid"}){const{defaultDirection:o}=sg,i=yg(e.i18n),s={htmlAttrs:{},link:[],meta:[]};if(null==a(i.locales)||null==a(i.baseUrl))return s;const c=vg(e.i18n),l=function(e){return a(gg(e).locales)}(e.i18n),u=function(e){e=e||[];const t=[];for(const n of e)bd(n)?t.push({code:n}):t.push(n);return t}(l).find(e=>e.code===c)||{code:c},h=u.iso,f=u.dir||o;return t&&(s.htmlAttrs.dir=f),n&&c&&a(i.locales)&&(h&&(s.htmlAttrs.lang=h),s.link.push(...function(e,t,n){const r=Bg(),{defaultLocale:o,strategy:i}=sg,s=[];if(i===lg)return s;const a=new Map;for(const c of t){const e=c.iso;if(!e){console.warn("Locale ISO code is required to generate alternate link");continue}const[t,n]=e.split("-");t&&n&&(c.isCatchallLocale||!a.has(t))&&a.set(t,c),a.set(e,c)}for(const[c,l]of a.entries()){const t=qg(e,l.code);t&&s.push({[n]:`i18n-alt-${c}`,rel:"alternate",href:$g(t,r),hreflang:c})}if(o){const t=qg(e,o);t&&s.push({[n]:"i18n-xd",rel:"alternate",href:$g(t,r),hreflang:"x-default"})}return s}(e,a(l),r),...function(e,t,n){const r=Bg(),o=Vg(e,r,n);return o?[{[t]:"i18n-can",rel:"canonical",href:o}]:[]}(e,r,n)),s.meta.push(...function(e,t,n){const r=Bg(),o=Vg(e,r,n);return o?[{[t]:"i18n-og-url",property:"og:url",content:o}]:[]}(e,r,n),...function(e,t,n){return e&&t?[{[n]:"i18n-og",property:"og:locale",content:zg(t)}]:[]}(u,h,r),...function(e,t,n){const r=e.filter(e=>e.iso&&e.iso!==t);return r.map(e=>({[n]:`i18n-og-alt-${e.iso}`,property:"og:locale:alternate",content:zg(e.iso)}))}(a(l),h,r))),s}function Bg(){const e=yg(Ft().$i18n);return a(e.baseUrl)}function Vg(e,t,n){const r=e.router.currentRoute.value,o=Mg(e,{...r,name:Rg(r)});if(!o)return"";let i=$g(o.path,t);const s=wd(n)&&n.canonicalQueries||[],a=o.query,c=new URLSearchParams;for(const u of s)if(u in a){const e=a[u];yd(e)?e.forEach(e=>c.append(u,e||"")):c.append(u,e||"")}const l=c.toString();return l&&(i=`${i}?${l}`),i}function zg(e){return(e||"").replace(/-/g,"_")}function $g(e,t){return e.match(/^https?:\/\//)?e:t+e}function Hg(e){return{i18n:e??Ft().$i18n,router:Pn(),runtimeConfig:Bt()}}async function Wg(e,t,n=!1){const r=sg.differentDomains,o=(sg.detectBrowserLanguage&&sg.detectBrowserLanguage.useCookie)??ag.detectBrowserLanguage.useCookie,i=Ft();let s=!1;const c=vg(t);if(!e)return[s,c];if(!n&&r)return[s,c];if(c===e)return[s,c];const l=await function(e,t,n,r,o){return xg(e,"onBeforeLanguageSwitch",t,n,r,o)}(t,c,e,n,i),u=function(e){return a(gg(e).localeCodes)}(t);if(l&&u&&u.includes(l)){if(l===c)return[s,c];e=l}return function(e,t){const n=gg(e);a(n[t])}(t,"fallbackLocale"),o&&function(e,t){xg(e,"setLocaleCookie",t)}(t,e),bg(t,e),await function(e,t,n){return xg(e,"onLanguageSwitched",t,n)}(t,c,e),s=!0,[s,c]}function Gg(e,t,n,r,o){const{strategy:i,defaultLocale:s,differentDomains:a,detectBrowserLanguage:c}=sg,l=vd(r)?r():r,{ssg:u,callType:h,firstAccess:f,localeCookie:d}=o,{locale:p,stat:m,reason:g,from:y}=c?function(e,t,n,r=""){const{strategy:o}=sg,{ssg:i,callType:s,firstAccess:a,localeCookie:c}=n;if(!a)return{locale:"no_prefix"===o?r:"",stat:!1,reason:"first_access_only"};const{redirectOn:l,alwaysRedirect:u,useCookie:h,fallbackLocale:f}=sg.detectBrowserLanguage,d=bd(e)?e:e.path;if("no_prefix"!==o)if("root"===l){if("/"!==d)return{locale:"",stat:!1,reason:"not_redirect_on_root"}}else if("no prefix"===l&&!u&&d.match(Sg(rg)))return{locale:"",stat:!1,reason:"not_redirect_on_no_prefix"};let p,m,g="unknown";h&&(m=p=c.value,g="cookie"),m||(m=Cg(),g="navigator_or_header");const y=m||f;if(!m&&f&&(g="fallback"),y&&(!h||u||!p)){if("no_prefix"===o)return{locale:y,stat:!0,from:g};if("setup"===s&&y!==(r||t))return{locale:y,stat:!0,from:g};if(u){const e="/"===d,t="all"===l,n="no prefix"===l&&!d.match(Sg(rg));if(e||t||n)return{locale:y,stat:!0,from:g}}}return"ssg_setup"===i&&y?{locale:y,stat:!0,from:g}:"navigator_or_header"!==g&&"cookie"!==g||!y?{locale:"",stat:!1,reason:"not_found_match"}:{locale:y,stat:!0,from:g}}(e,n,o,l):Ng;if("detect_ignore_on_ssg"===g)return l;if(("navigator_or_header"===y||"cookie"===y||"fallback"===y)&&p)return p;let v=p;return v||(a?v=Ig(cg):"no_prefix"!==i?v=t(e):c||(v=l)),!v&&c&&c.useCookie&&(v=d.value||""),v||(v=s||""),v}function Kg({route:e,targetLocale:t,routeLocaleGetter:n,calledWithRouting:r=!1}){const o=Ft(),i=Hg(),{strategy:s,differentDomains:a}=sg;let c="";const{fullPath:l}=e.to;if(!a&&(r||"no_prefix"!==s)&&n(e.to)!==t){const n=o.$switchLocalePath(t)||o.$localePath(l,t);bd(n)&&n&&!Xe(n,l)&&!n.startsWith("//")&&(c=e.from&&e.from.fullPath===n?"":n)}if(a&&n(e.to)!==t){const n=qg(i,t,e.to);bd(n)&&n&&!Xe(n,l)&&!n.startsWith("//")&&(c=n)}return c}function Yg(e,t){return Dn(e,{redirectCode:t})}async function Qg(e,{status:t=302,enableNavigate:n=!1}={}){const r=ag.rootRedirect,{i18n:o,locale:i,route:s}=e;let{redirectPath:a}=e;return"/"===s.path&&r?(bd(r)?a="/"+r:function(e){return wd(e)&&"path"in e&&"statusCode"in e}(r)&&(a="/"+r.path,t=r.statusCode),Yg(a,t)):a?Yg(a,t):void 0}function Xg(t,{locales:n=[],localeCodes:r=[],baseUrl:o="",hooks:i={},context:s={}}={}){const a=e(),c=t.install;return t.install=(e,...u)=>{const f=function(e){return wd(e)&&("inject"in e||"__composerExtend"in e||"__vueI18nExtend"in e)}(u[0])?hd({},u[0]):{inject:!0};null==f.inject&&(f.inject=!0);const d=f.__composerExtend;if(f.__composerExtend=e=>{const n=yg(t);let r;return e.locales=v(()=>n.locales.value),e.localeCodes=v(()=>n.localeCodes.value),e.baseUrl=v(()=>n.baseUrl.value),vd(d)&&(r=Reflect.apply(d,f,[e])),()=>{r&&r()}},"legacy"===t.mode){const e=f.__vueI18nExtend;f.__vueI18nExtend=t=>{let n;return Zg(t,i.onExtendVueI18n),vd(e)&&(n=Reflect.apply(e,f,[t])),()=>{n&&n()}}}u[0]=f,Reflect.apply(c,t,[e,...u]);const p=yg(t);a.run(()=>{!function(e,t){const{locales:n,localeCodes:r,baseUrl:o,context:i}=t,s=l(n),a=l(r),c=l("");e.locales=v(()=>s.value),e.localeCodes=v(()=>a.value),e.baseUrl=v(()=>c.value),pg?h(e.locale,()=>{c.value=kg(o,i)},{immediate:!0}):c.value=kg(o,i);t.hooks&&t.hooks.onExtendComposer&&t.hooks.onExtendComposer(e)}(p,{locales:n,localeCodes:r,baseUrl:o,hooks:i,context:s}),"legacy"===t.mode&&mg(t.global)&&Zg(t.global,i.onExtendVueI18n)});const m=e,g="composition"===t.mode?m.config.globalProperties.$i18n:null;if(g&&function(e,t,n){Jg(t,e,n)}(g,p,i.onExtendExportedGlobal),f.inject){const n=Hg(t);e.mixin({methods:{getRouteBaseName:Rg,resolveRoute:Ag(Ug,n),localePath:Ag(Dg,n),localeRoute:Ag(Mg,n),localeLocation:Ag(jg,
22n),switchLocalePath:Ag(qg,n),localeHead:Ag(Fg,n)}})}if(m.unmount){const e=m.unmount;m.unmount=()=>{a.stop(),e()}}},a}function Jg(e,t,n){const r=[{locales:{get:()=>e.locales.value},localeCodes:{get:()=>e.localeCodes.value},baseUrl:{get:()=>e.baseUrl.value}}];n&&r.push(n(e));for(const o of r)for(const[e,n]of Object.entries(o))Object.defineProperty(t,e,n)}function Zg(e,t){Jg(yg(e),e,t)}const ey=Ut({name:"i18n:plugin",parallel:!1,async setup(e){let t,n;const r=Rn(),{vueApp:o}=e,i=e,s={...sg};s.baseUrl=()=>{const e=Ft(),t=Bt(),n=sg.baseUrl;if(vd(n))return n(e);const r=sg.defaultLocale;vd(r)&&r();const o=t?.public?.i18n;return o?.baseUrl?o.baseUrl:n};const a=([t,n]=Rt(()=>async function(e,t){const n={messages:{}};for(const r of e){const{default:e}=await r();Cd("function"==typeof e?await t.runWithContext(async()=>await e()):e,n)}return n}(ig,Ft())),t=await t,n(),t);a.messages=a.messages||{},a.fallbackLocale=a.fallbackLocale??!1;const c=function(){const{routesNameSeparator:e,defaultLocaleRouteNameSuffix:t}=sg,n=`(${rg.join("|")})`,r=new RegExp(`${e}${n}(?:${e}${t})?$`,"i"),o=Sg(rg);return e=>{if(wd(e)){if(e.name){const t=(bd(e.name)?e.name:e.name.toString()).match(r);if(t&&t.length>1)return t[1]}else if(e.path){const t=e.path.match(o);if(t&&t.length>1)return t[1]}}else if(bd(e)){const t=e.match(o);if(t&&t.length>1)return t[1]}return""}}(),l=e=>e||a.locale||"en-US",u=function(){const e=sg.detectBrowserLanguage,t=e&&e.cookieKey||ag.detectBrowserLanguage.cookieKey,n=new Date,r={expires:new Date(n.setDate(n.getDate()+365)),path:"/",sameSite:e&&e.cookieCrossOrigin?"none":"lax",secure:e&&e.cookieCrossOrigin||e&&e.cookieSecure};return e&&e.cookieDomain&&(r.domain=e.cookieDomain),Hf(t,r)}();let h=Gg(r,c,a.locale,l(s.defaultLocale),{ssg:"normal",callType:"setup",firstAccess:!0,localeCookie:u});a.messages=([t,n]=Rt(()=>hg(a.messages,og,{localeCodes:rg,initialLocale:h,lazy:s.lazy,defaultLocale:s.defaultLocale,fallbackLocale:a.fallbackLocale})),t=await t,n(),t),h=l(h);const f=Xm({...a,locale:h});let d=!0;const p=e=>h!==e&&d;Xg(f,{locales:s.locales,localeCodes:rg,baseUrl:s.baseUrl,context:i,hooks:{onExtendComposer(t){t.strategy=s.strategy,t.localeProperties=v(()=>cg.find(e=>e.code===t.locale.value)||{code:t.locale.value}),t.setLocale=async e=>{const t=p(e),[n]=await Wg(e,f,t);n&&t&&(d=!1);const o=await i.runWithContext(()=>Kg({route:{to:r},targetLocale:e,routeLocaleGetter:c}));await i.runWithContext(async()=>await Qg({i18n:f,redirectPath:o,locale:e,route:r},{enableNavigate:!0}))},t.differentDomains=s.differentDomains,t.defaultLocale=s.defaultLocale,t.getBrowserLocale=()=>Cg(),t.getLocaleCookie=()=>function(e){const t=sg.detectBrowserLanguage;if(!t||!t.useCookie)return;const n=e.value??void 0;return n&&rg.includes(n)?n:void 0}(u),t.setLocaleCookie=e=>function(e,t){const{useCookie:n}=sg.detectBrowserLanguage||ag.detectBrowserLanguage;n&&(e.value=t)}(u,e),t.onBeforeLanguageSwitch=(t,n,r,o)=>e.callHook("i18n:beforeLocaleSwitch",{oldLocale:t,newLocale:n,initialSetup:r,context:o}),t.onLanguageSwitched=(t,n)=>e.callHook("i18n:localeSwitched",{oldLocale:t,newLocale:n}),t.finalizePendingLocaleChange=async()=>{f.__pendingLocale&&(bg(f,f.__pendingLocale),f.__resolvePendingLocalePromise&&await f.__resolvePendingLocalePromise(),f.__pendingLocale=void 0)},t.waitForPendingLocaleChange=async()=>{f.__pendingLocale&&f.__pendingLocalePromise&&await f.__pendingLocalePromise}},onExtendExportedGlobal:e=>({strategy:{get:()=>e.strategy},localeProperties:{get:()=>e.localeProperties.value},setLocale:{get:()=>async t=>Reflect.apply(e.setLocale,e,[t])},differentDomains:{get:()=>e.differentDomains},defaultLocale:{get:()=>e.defaultLocale},getBrowserLocale:{get:()=>()=>Reflect.apply(e.getBrowserLocale,e,[])},getLocaleCookie:{get:()=>()=>Reflect.apply(e.getLocaleCookie,e,[])},setLocaleCookie:{get:()=>t=>Reflect.apply(e.setLocaleCookie,e,[t])},onBeforeLanguageSwitch:{get:()=>(t,n,r,o)=>Reflect.apply(e.onBeforeLanguageSwitch,e,[t,n,r,o])},onLanguageSwitched:{get:()=>(t,n)=>Reflect.apply(e.onLanguageSwitched,e,[t,n])},finalizePendingLocaleChange:{get:()=>()=>Reflect.apply(e.finalizePendingLocaleChange,e,[])},waitForPendingLocaleChange:{get:()=>()=>Reflect.apply(e.waitForPendingLocaleChange,e,[])}}),onExtendVueI18n:e=>({strategy:{get:()=>e.strategy},localeProperties:{get:()=>e.localeProperties.value},setLocale:{get:()=>async t=>Reflect.apply(e.setLocale,e,[t])},differentDomains:{get:()=>e.differentDomains},defaultLocale:{get:()=>e.defaultLocale},getBrowserLocale:{get:()=>()=>Reflect.apply(e.getBrowserLocale,e,[])},getLocaleCookie:{get:()=>()=>Reflect.apply(e.getLocaleCookie,e,[])},setLocaleCookie:{get:()=>t=>Reflect.apply(e.setLocaleCookie,e,[t])},onBeforeLanguageSwitch:{get:()=>(t,n,r,o)=>Reflect.apply(e.onBeforeLanguageSwitch,e,[t,n,r,o])},onLanguageSwitched:{get:()=>(t,n)=>Reflect.apply(e.onLanguageSwitched,e,[t,n])},finalizePendingLocaleChange:{get:()=>()=>Reflect.apply(e.finalizePendingLocaleChange,e,[])},waitForPendingLocaleChange:{get:()=>()=>Reflect.apply(e.waitForPendingLocaleChange,e,[])}})}});const m={__composerExtend:e=>{const t=yg(f);return e.strategy=t.strategy,e.localeProperties=v(()=>t.localeProperties.value),e.setLocale=t.setLocale,e.differentDomains=t.differentDomains,e.getBrowserLocale=t.getBrowserLocale,e.getLocaleCookie=t.getLocaleCookie,e.setLocaleCookie=t.setLocaleCookie,e.onBeforeLanguageSwitch=t.onBeforeLanguageSwitch,e.onLanguageSwitched=t.onLanguageSwitched,e.finalizePendingLocaleChange=t.finalizePendingLocaleChange,e.waitForPendingLocaleChange=t.waitForPendingLocaleChange,()=>{}}};o.use(f,m),function(e,t){Og(e,"$i18n",gg(t)),Og(e,"$getRouteBaseName",Rg),Og(e,"$localePath",Ag(Dg)),Og(e,"$localeRoute",Ag(Mg)),Og(e,"$switchLocalePath",Ag(qg)),Og(e,"$localeHead",Ag(Fg))}(i,f);let g=0;((e,t,n={})=>{const r=Ft(),o=n.global||"string"!=typeof e,i="string"!=typeof e?e:t;i?o?r._middleware.global.push(i):r._middleware.named[e]=i:console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e)})("locale-changing",async(e,t)=>{let n,r;const o=Gg(e,c,a.locale,()=>vg(f)||l(s.defaultLocale),{ssg:"normal",callType:"routing",firstAccess:0===g,localeCookie:u}),h=p(o),[m]=([n,r]=Rt(()=>Wg(o,f,h)),n=await n,r(),n);m&&h&&(d=!1);const y=([n,r]=Rt(()=>i.runWithContext(()=>Kg({route:{to:e,from:t}
22,targetLocale:o,routeLocaleGetter:"no_prefix"===s.strategy?()=>o:c,calledWithRouting:!0}))),n=await n,r(),n);return g++,[n,r]=Rt(()=>i.runWithContext(async()=>Qg({i18n:f,redirectPath:y,locale:o,route:e}))),n=await n,r(),n},{global:!0})}}),ty=Ut(e=>{const t=Bt().public.bootstrapVueNext.directives,n=Object.entries(L).reduce((e,[n,r])=>(t.includes(n)&&(e[n]=r),e),{});Object.entries(n).forEach(([t,n])=>{const r=(o=t).toLowerCase().startsWith("v")?o.slice(1):o;var o;e.vueApp.directive(r,n)})}),ny=Ut(e=>{e.vueApp.use(P({components:!1,directives:!1}))}),ry=Ut({name:"nuxt:chunk-reload",setup(e){const t=Pn(),n=Bt(),r=new Set;function o(e){!function(e={}){const t=e.path||window.location.pathname;let n={};try{n=ct(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Ft().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}({path:"href"in e&&"#"===e.href[0]?n.app.baseURL+e.href:Qe(n.app.baseURL,e.fullPath),persistState:!0})}t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:e})=>{r.add(e)}),e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((e,t)=>{r.has(e)&&o(t)})}});var oy,iy={exports:{}};
23/*!
24 * Quill Editor v1.3.7
25 * https://quilljs.com/
26 * Copyright (c) 2014, Jason Chen
27 * Copyright (c) 2013, salesforce.com
28 */oy=iy,function(e,t){oy.exports=t()}("undefined"!=typeof self&&self,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),s=n(45),a=n(46),c=n(47),l=n(48),u=n(49),h=n(12),f=n(32),d=n(33),p=n(31),m=n(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:l.default,Scroll:s.default,Block:c.default,Inline:a.default,Text:u.default,Attributor:{Attribute:h.default,Class:f.default,Style:d.default,Store:p.default}};t.default=g},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return o(t,e),t}(Error);t.ParchmentError=i;var s,a={},c={},l={},u={};function h(e,t){var n;if(void 0===t&&(t=s.ANY),"string"==typeof e)n=u[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof e)e&s.LEVEL&s.BLOCK?n=u.block:e&s.LEVEL&s.INLINE&&(n=u.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=c[r[o]])break;n=n||l[e.tagName]}return null==n?null:t&s.LEVEL&n.scope&&t&s.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(s=t.Scope||(t.Scope={})),t.create=function(e,t){var n=h(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(o,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=h,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map(function(t){return e(t)});var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");return u[r.blotName||r.attrName]=r,"string"==typeof r.keyName?a[r.keyName]=r:(null!=r.className&&(c[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map(function(e){return e.toUpperCase()}):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEac
28h(function(e){null!=l[e]&&null!=r.className||(l[e]=r)}))),r}},function(e,t,n){var r=n(51),o=n(11),i=n(3),s=n(20),a=String.fromCharCode(0),c=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};c.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},c.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},c.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},c.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},c.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},c.prototype.filter=function(e){return this.ops.filter(e)},c.prototype.forEach=function(e){this.ops.forEach(e)},c.prototype.map=function(e){return this.ops.map(e)},c.prototype.partition=function(e){var t=[],n=[];return this.forEach(function(r){(e(r)?t:n).push(r)}),[t,n]},c.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},c.prototype.changeLength=function(){return this.reduce(function(e,t){return t.insert?e+s.length(t):t.delete?e-t.delete:e},0)},c.prototype.length=function(){return this.reduce(function(e,t){return e+s.length(t)},0)},c.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=s.iterator(this.ops),o=0;o<t&&r.hasNext();){var i;o<e?i=r.next(e-o):(i=r.next(t-o),n.push(i)),o+=s.length(i)}return new c(n)},c.prototype.compose=function(e){var t=s.iterator(this.ops),n=s.iterator(e.ops),r=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var a=i.retain;"insert"===t.peekType()&&t.peekLength()<=a;)a-=t.peekLength(),r.push(t.next());i.retain-a>0&&n.next(i.retain-a)}for(var l=new c(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())l.push(n.next());else if("delete"===t.peekType())l.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),h=t.next(u),f=n.next(u);if("number"==typeof f.retain){var d={};"number"==typeof h.retain?d.retain=u:d.insert=h.insert;var p=s.attributes.compose(h.attributes,f.attributes,"number"==typeof h.retain);if(p&&(d.attributes=p),l.push(d),!n.hasNext()&&o(l.ops[l.ops.length-1],d)){var m=new c(t.rest());return l.concat(m).chop()}}else"number"==typeof f.delete&&"number"==typeof h.retain&&l.push(f)}return l.chop()},c.prototype.concat=function(e){var t=new c(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},c.prototype.diff=function(e,t){if(this.ops===e.ops)return new c;var n=[this,e].map(function(t){return t.map(function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")}).join("")}),i=new c,l=r(n[0],n[1],t),u=s.iterator(this.ops),h=s.iterator(e.ops);return l.forEach(function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(h.peekLength(),t),i.push(h.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(u.peekLength(),h.peekLength(),t);var a=u.next(n),c=h.next(n);o(a.insert,c.insert)?i.retain(n,s.attributes.diff(a.attributes,c.attributes)):i.push(c).delete(n)}t-=n}}),i.chop()},c.prototype.eachLine=function(e,t){t=t||"\n";for(var n=s.iterator(this.ops),r=new c,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=s.length(i)-n.peekLength(),l="string"==typeof i.insert?i.insert.indexOf(t,a)-a:-1;if(l<0)r.push(n.next());else if(l>0)r.push(n.next(l));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new c}}r.length()>0&&e(r,{},o)},c.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=s.iterator(this.ops),r=s.iterator(e.ops),o=new c;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),a=n.next(i),l=r.next(i);if(a.delete)continue;l.delete?o.push(l):o.retain(i,s.attributes.transform(a.attributes,l.attributes,t))}else o.retain(s.length(n.next()));return o.chop()},c.prototype.transformPosition=function(e,t){t=!!t;for(var n=s.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.exports=c},function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},c=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,u,h=arguments[0],f=1,d=arguments.length,p=!1;for("boolean"==typeof h&&(p=h,h=arguments[1]||{},f=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});f<d;++f)if(null!=(t=arguments[f]))for(n in t)r=l(h,n),h!==(o=l(t,n))&&(p&&o&&(a(o)||(i=s(o)))?(i?(i=!1,u=r&&s(r)?r:[]):u=r&&a(r)?r:{}
28,c(h,{name:n,newValue:e(p,u,o)})):void 0!==o&&c(h,{name:n,newValue:o}));return h}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},i=h(n(3)),s=h(n(2)),a=h(n(0)),c=h(n(16)),l=h(n(6)),u=h(n(7));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),r(t,[{key:"attach",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new s.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=a.default.query(e,a.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=a.default.create(g.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(a.default.Embed);m.scope=a.default.Scope.BLOCK_BLOT;var g=function(e){function t(e){f(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return p(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce(function(e,t){return 0===t.length()?e:e.insert(t.value(),y(t))},new s.default).insert("\n",y(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,i){n<=0||(a.default.query(r,a.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,i):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,i),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var i=n.split("\n"),s=i.shift();s.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});var a=this;i.reduce(function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length},e+s.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof c.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(a.default.Block);function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:y(e.parent,t))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[l.default,a.default.Embed,u.default],t.bubbleFormats=y,t.BlockEmbed=m,t.default=g}
28,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var s=g(n(2)),a=g(n(14)),c=g(n(8)),l=g(n(9)),u=g(n(0)),h=n(15),f=g(h),d=g(n(3)),p=g(n(10)),m=g(n(34));function g(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,p.default)("quill"),b=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=_(t,r),this.container=this.options.container,null==this.container)return v.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new c.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(c.default.events.EDITOR_CHANGE,function(e){e===c.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(c.default.events.SCROLL_UPDATE,function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;w.call(n,function(){return n.editor.update(null,t,o)},e)});var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),p.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&v.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var o=e.attrName||e.blotName;"string"==typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach(function(r){n.register(r,e[r],t)})}else null==this.imports[e]||r||v.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=k(e,t,n),s=o(i,4);return e=s[0],t=s[1],n=s[3],w.call(this,function(){return r.editor.deleteText(e,t)},n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;return w.call(this,function(){var r=n.getSelection(!0),o=new s.default;if(null==r)return o;if(u.default.query(e,u.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,y({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,y({},e,t))}return n.setSelection(r,c.default.sources.SILENT),o},r)}},{key:"formatLine",value:function(e,t,n,r,i){var s,a=this,c=k(e,t,n,r,i),l=o(c,4);return e=l[0],t=l[1],s=l[2],i=l[3],w.call(this,function(){return a.editor.formatLine(e,t,s)},i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var s,a=this,c=k(e,t,n,r,i),l=o(c,4);return e=l[0],t=l[1],s=l[2],i=l[3],w.call(this,function(){return a.editor.formatText(e,t,s
28)},i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return w.call(this,function(){return o.editor.insertEmbed(t,n,r)},i,t)}},{key:"insertText",value:function(e,t,n,r,i){var s,a=this,c=k(e,0,n,r,i),l=o(c,4);return e=l[0],s=l[2],i=l[3],w.call(this,function(){return a.editor.insertText(e,t,s)},i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=k(e,t,n),s=o(i,4);return e=s[0],t=s[1],n=s[3],w.call(this,function(){return r.editor.removeFormat(e,t)},n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API;return w.call(this,function(){e=new s.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)},n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=k(t,n,r),s=o(i,4);t=s[0],n=s[1],r=s[3],this.selection.setRange(new h.Range(t,n),r),r!==c.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API,n=(new s.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.sources.API;return w.call(this,function(){return e=new s.default(e),t.editor.applyDelta(e,n)},n,!0)}}]),e}();function _(e,t){if((t=(0,d.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==b.DEFAULTS.theme){if(t.theme=b.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var n=(0,d.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach(function(e){e.modules=e.modules||{}
28,Object.keys(e.modules).forEach(function(t){!0===e.modules[t]&&(e.modules[t]={})})});var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce(function(e,t){var n=b.import("modules/"+t);return null==n?v.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e},{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,d.default)(!0,{},b.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach(function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))}),t.modules=Object.keys(t.modules).reduce(function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e},{}),t}function w(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===c.default.sources.USER)return new s.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,a=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=E(o,a,t):0!==r&&(o=E(o,n,r,t)),this.setSelection(o,c.default.sources.SILENT)),a.length()>0){var l,u,h=[c.default.events.TEXT_CHANGE,a,i,t];(l=this.emitter).emit.apply(l,[c.default.events.EDITOR_CHANGE].concat(h)),t!==c.default.sources.SILENT&&(u=this.emitter).emit.apply(u,h)}return a}function k(e,t,n,o,i){var s={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(s=n,i=o):"string"==typeof n&&(null!=o?s[n]=o:i=n),[e,t,s,i=i||c.default.sources.API]}function E(e,t,n,r){if(null==e)return null;var i=void 0,a=void 0;if(t instanceof s.default){var l=[e.index,e.index+e.length].map(function(e){return t.transformPosition(e,r!==c.default.sources.USER)}),u=o(l,2);i=u[0],a=u[1]}else{var f=[e.index,e.index+e.length].map(function(e){return e<t||e===t&&r===c.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)}),d=o(f,2);i=d[0],a=d[1]}return new h.Range(i,a-i)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=c.default.events,b.sources=c.default.sources,b.version="1.3.7",b.imports={delta:s.default,parchment:u.default,"core/module":l.default,"core/theme":m.default},t.expandConfig=_,t.overload=k,t.default=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},i=a(n(7)),s=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"formatAt",value:function(e,n,r,i){if(t.compare(this.statics.blotName,r)<0&&s.default.query(r,s.default.Scope.BLOT)){var a=this.isolate(e,n);i&&a.wrap(r,i)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}
28],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}}]),t}(s.default.Inline);c.allowedChildren=[c,s.default.Embed,i.default],c.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(0),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default.Text);t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},i=s(n(54));function s(e){return e&&e.__esModule?e:{default:e}}var a=(0,s(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)})})});var c=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",a.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"emit",value:function(){a.log.apply(a,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach(function(t){var r=t.node,o=t.handler;(e.target===r||r.contains(e.target))&&o.apply(void 0,[e].concat(n))})}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);c.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},c.sources={API:"api",SILENT:"silent",USER:"user"},t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];(t=console)[e].apply(t,i)}}function s(e){return r.reduce(function(t,n){return t[n]=i.bind(console,n,e),t},{})}i.level=s.level=function(e){o=e},t.default=s},function(e,t,n){var r=Array.prototype.slice,o=n(52),i=n(53),s=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var l,u;if(a(e)||a(t))return!1;if(e.prototype!==t.prototype)return!1;
28if(i(e))return!!i(t)&&(e=r.call(e),t=r.call(t),s(e,t,n));if(c(e)){if(!c(t))return!1;if(e.length!==t.length)return!1;for(l=0;l<e.length;l++)if(e[l]!==t[l])return!1;return!0}try{var h=o(e),f=o(t)}catch(d){return!1}if(h.length!=f.length)return!1;for(h.sort(),f.sort(),l=h.length-1;l>=0;l--)if(h[l]!=f[l])return!1;for(l=h.length-1;l>=0;l--)if(u=h[l],!s(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function a(e){return null==e}function c(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,function(e){return e.name})},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},s=h(n(2)),a=h(n(0)),c=h(n(4)),l=h(n(6)),u=h(n(7));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),t}(l.default);m.blotName="code",m.tagName="CODE";var g=function(e){function t(){return f(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),o(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce(function(t,n){return t.insert(n).insert("\n",e.formats())},new s.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var o=this.descendant(u.default,this.length()-1),s=r(o,1)[0];null!=s&&s.deleteAt(s.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,o){if(0!==n&&null!=a.default.query(r,a.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var s=this.newlineIndex(e,!0)+1,c=i-s+1,l=this.isolate(s,c),u=l.next;l.format(r,o),u instanceof t&&u.formatAt(0,e-s+n-c,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(u.default,e),i=r(o,2),s=i[0],a=i[1];s.insertAt(a,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEac
28h(function(e){var t=a.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof a.default.Embed?t.remove():t.unwrap()})}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(c.default);g.blotName="code-block",g.tagName="PRE",g.TAB="  ",t.Code=m,t.default=g},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=y(n(2)),a=y(n(20)),c=y(n(0)),l=y(n(13)),u=y(n(24)),h=n(4),f=y(h),d=y(n(16)),p=y(n(21)),m=y(n(11)),g=y(n(3));function y(e){return e&&e.__esModule?e:{default:e}}var v=/^[ -~]*$/,b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce(function(e,t){if(1===t.insert){var n=(0,p.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,p.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)},new s.default)}(e)).reduce(function(e,s){var l=s.retain||s.delete||s.insert.length||1,u=s.attributes||{};if(null!=s.insert){if("string"==typeof s.insert){var d=s.insert;d.endsWith("\n")&&n&&(n=!1,d=d.slice(0,-1)),e>=i&&!d.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,d);var p=t.scroll.line(e),m=o(p,2),y=m[0],v=m[1],b=(0,g.default)({},(0,h.bubbleFormats)(y));if(y instanceof f.default){var _=y.descendant(c.default.Leaf,v),w=o(_,1)[0];b=(0,g.default)(b,(0,h.bubbleFormats)(w))}u=a.default.attributes.diff(b,u)||{}}else if("object"===r(s.insert)){var k=Object.keys(s.insert)[0];if(null==k)return e;t.scroll.insertAt(e,k,s.insert[k])}i+=l}return Object.keys(u).forEach(function(n){t.scroll.formatAt(e,l,n,u[n])}),e+l},0),e.reduce(function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)},0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach(function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(e,Math.max(t,1)),s=t;i.forEach(function(t){var i=t.length();if(t instanceof l.default){var a=e-t.offset(n.scroll),c=t.newlineIndex(a+s)-a+1;t.formatAt(a,c,o,r[o])}else t.format(o,r[o]);s-=i})}}),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,p.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(o){n.scroll.formatAt(e,t,o,r[o])}),this.update((new s.default).retain(e).retain(t,(0,p.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(e,t){return e.concat(t.delta())},new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach(function(e){var t=o(e,1)[0];t instanceof f.default?n.push(t):t instanceof c.default.Leaf&&r.push(t)}):(n=this.scroll.lines(e,t),r=this.scroll.descendants(c.default.Leaf,e,t));var i=[n,r].map(function(e){if(0===e.length)return{};for(var t=(0,h.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=_((0,h.bubbleFormats)(n),t)}return t});return g.default.apply(g.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter(function(e){return"string"==typeof e.insert}).map(function(e){return e.insert}).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach(function(o){n.scroll.formatAt(e,t.length,o,r[o])}),this.update((new s.default).retain(e).insert(t,(0,p.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;
28if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===f.default.blotName&&!(e.children.length>1)&&e.children.head instanceof d.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=o(r,2),a=i[0],c=i[1],u=0,h=new s.default;null!=a&&(u=a instanceof l.default?a.newlineIndex(c)-c+1:a.length()-c,h=a.delta().slice(c,c+u-1).insert("\n"));var f=this.getContents(e,t+u).diff((new s.default).insert(n).concat(h)),d=(new s.default).retain(e).concat(f);return this.applyDelta(d)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(v)&&c.default.find(t[0].target)){var o=c.default.find(t[0].target),i=(0,h.bubbleFormats)(o),a=o.offset(this.scroll),l=t[0].oldValue.replace(u.default.CONTENTS,""),f=(new s.default).insert(l),d=(new s.default).insert(o.value());e=(new s.default).retain(a).concat(f.diff(d,n)).reduce(function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)},new s.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function _(e,t){return Object.keys(t).reduce(function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n},{})}t.default=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(0)),s=l(n(21)),a=l(n(11)),c=l(n(8));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,l(n(10)).default)("quill:selection"),d=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;h(this,e),this.index=t,this.length=n},p=function(){function e(t,n){var r=this;h(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new d(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){r.mouseDown||setTimeout(r.update.bind(r,c.default.sources.USER),1)}),this.emitter.on(c.default.events.EDITOR_CHANGE,function(e,t){e===c.default.events.TEXT_CHANGE&&t.length()>0&&r.update(c.default.sources.SILENT)}),this.emitter.on(c.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(c.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}})}}),this.emitter.on(c.default.events.SCROLL_OPTIMIZE,function(e,t){if(t.range){var n=t.range,o=n.startNode,i=n.startOffset,s=n.endNode,a=n.endOffset;r.setNativeRange(o,i,s,a)}}),this.update(c.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",function(){e.composing=!0}),this.root.addEventListener("compositionend",function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout(function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,function(){e.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){e.mouseDown=!1,e.update(c.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update(
28);var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,i=this.scroll.leaf(e),s=r(i,2),a=s[0],c=s[1];if(null==a)return null;var l=a.position(c,!0),u=r(l,2);o=u[0],c=u[1];var h=document.createRange();if(t>0){h.setStart(o,c);var f=this.scroll.leaf(e+t),d=r(f,2);if(a=d[0],c=d[1],null==a)return null;var p=a.position(c,!0),m=r(p,2);return o=m[0],c=m[1],h.setEnd(o,c),h.getBoundingClientRect()}var g="left",y=void 0;return o instanceof Text?(c<o.data.length?(h.setStart(o,c),h.setEnd(o,c+1)):(h.setStart(o,c-1),h.setEnd(o,c),g="right"),y=h.getBoundingClientRect()):(y=a.domNo
28de.getBoundingClientRect(),c>0&&(g="right")),{bottom:y.top+y.height,height:y.height,left:y[g],right:y[g],top:y.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map(function(e){var n=r(e,2),o=n[0],s=n[1],a=i.default.find(o,!0),c=a.offset(t.scroll);return 0===s?c:a instanceof i.default.Container?c+a.length():c+a.index(o,s)}),s=Math.min(Math.max.apply(Math,u(o)),this.scroll.length()-1),a=Math.min.apply(Math,[s].concat(u(o)));return new d(a,s-a)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n}),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return n.forEach(function(e,n){e=Math.min(i-1,e);var s,a=t.scroll.leaf(e),c=r(a,2),l=c[0],u=c[1],h=l.position(u,0!==n),f=r(h,2);s=f[0],u=f[1],o.push(s,u)}),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),s=r(i,1)[0],a=s;if(t.length>0){var c=this.scroll.line(Math.min(t.index+t.length,o));a=r(c,1)[0]}if(null!=s&&null!=a){var l=e.getBoundingClientRect();n.top<l.top?e.scrollTop-=l.top-n.top:n.bottom>l.bottom&&(e.scrollTop+=n.bottom-l.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var s=(this.getNativeRange()||{}).native;if(null==s||o||e!==s.startContainer||t!==s.startOffset||n!==s.endContainer||r!==s.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(e,t),a.setEnd(n,r),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,u(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.default.sources.USER,t=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],l=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(t,this.lastRange)){var u;!this.composing&&null!=l&&l.native.collapsed&&l.start.node!==this.cursor.textNode&&this.cursor.restore();var h,f=[c.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(t),e];(u=this.emitter).emit.apply(u,[c.default.events.EDITOR_CHANGE].concat(f)),e!==c.default.sources.SILENT&&(h=this.emitter).emit.apply(h,f)}}}]),e}();function m(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=d,t.default=p}
28,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},s=n(0),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((r=s)&&r.__esModule?r:{default:r}).default.Embed);a.blotName="break",a.tagName="BR",t.default=a},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),s=n(30),a=n(1),c=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return o(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(t){try{var n=l(t);e.insertBefore(n,e.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}})},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,function(e,t,n){e.deleteAt(t,n)})},t.prototype.descendant=function(e,n){var r=this.children.find(n),o=r[0],i=r[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,i]:o instanceof t?o.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,function(n,r,s){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&o.push(n),n instanceof t&&(o=o.concat(n.descendants(e,r,i))),i-=s}),o},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,function(e,t,o){e.formatAt(t,o,n,r)})},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),o=r[0],i=r[1];if(o)o.insertAt(i,t,n);else{var s=null==n?a.create("text",t):a.create(t,n);this.appendChild(s)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(t){return e instanceof t}))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce(function(e,t){return e+t.length()},0)},t.prototype.moveChildren=function(e,t){this.children.forEach(function(n){e.insertBefore(n,t)})},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),o=r[0],i=r[1],s=[[this,e]];return o instanceof t?s.concat(o.path(i,n)):(null!=o&&s.push([o,i]),s)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEac
28hAt(e,this.length(),function(e,r,o){e=e.split(r,t),n.appendChild(e)}),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],o=[];e.forEach(function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),o.push.apply(o,e.removedNodes))}),o.forEach(function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}}),r.filter(function(e){return e.parentNode==n.domNode}).sort(function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var r=l(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))})},t}(s.default);function l(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach(function(e){t.domNode.appendChild(e)}),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=c},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),s=n(31),a=n(17),c=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new s.default(n.domNode),n}return o(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=c.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some(function(e){return e.target===r.domNode&&"attributes"===e.type})&&this.attributes.build()},t.prototype.wrap=function(n,r){var o=e.prototype.wrap.call(this,n,r);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(a.default);t.default=l},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),s=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=s.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var r=n(11),o=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=o(!0,{},t);for(var i in n||(r=Object.keys(r).reduce(function(e,t){return null!=r[t]&&(e[t]=r[t]),e},{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce(function(n,o){return r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n},{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce(function(n,r){return void 0===e[r]&&(n[r]=t[r]),n},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new s(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function s(e){this.ops=e,this.index=0,this.offset=0}s.prototype.hasNext=function(){return this.peekLength()<1/0},s.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=i.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},s.prototype.peek=function(){return this.ops[this.index]},s.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0}
28,s.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},s.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=i},function(e,t){var n=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(fV){t=function(){}}try{n=Set}catch(fV){n=function(){}}try{r=Promise}catch(fV){r=function(){}}function o(i,a,c,l,u){"object"==typeof a&&(c=a.depth,l=a.prototype,u=a.includeNonEnumerable,a=a.circular);var h=[],f=[],d="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===c&&(c=1/0),function i(c,p){if(null===c)return null;if(0===p)return c;var m,g;if("object"!=typeof c)return c;if(e(c,t))m=new t;else if(e(c,n))m=new n;else if(e(c,r))m=new r(function(e,t){c.then(function(t){e(i(t,p-1))},function(e){t(i(e,p-1))})});else if(o.__isArray(c))m=[];else if(o.__isRegExp(c))m=new RegExp(c.source,s(c)),c.lastIndex&&(m.lastIndex=c.lastIndex);else if(o.__isDate(c))m=new Date(c.getTime());else{if(d&&Buffer.isBuffer(c))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(c.length):new Buffer(c.length),c.copy(m),m;e(c,Error)?m=Object.create(c):void 0===l?(g=Object.getPrototypeOf(c),m=Object.create(g)):(m=Object.create(l),g=l)}if(a){var y=h.indexOf(c);if(-1!=y)return f[y];h.push(c),f.push(m)}for(var v in e(c,t)&&c.forEach(function(e,t){var n=i(t,p-1),r=i(e,p-1);m.set(n,r)}),e(c,n)&&c.forEach(function(e){var t=i(e,p-1);m.add(t)}),c){var b;g&&(b=Object.getOwnPropertyDescriptor(g,v)),b&&null==b.set||(m[v]=i(c[v],p-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(c);for(v=0;v<_.length;v++){var w=_[v];(!(E=Object.getOwnPropertyDescriptor(c,w))||E.enumerable||u)&&(m[w]=i(c[w],p-1),E.enumerable||Object.defineProperty(m,w,{enumerable:!1}))}}if(u){var k=Object.getOwnPropertyNames(c);for(v=0;v<k.length;v++){var E,T=k[v];(E=Object.getOwnPropertyDescriptor(c,T))&&E.enumerable||(m[T]=i(c[T],p-1),Object.defineProperty(m,T,{enumerable:!1}))}}return m}(i,c)}function i(e){return Object.prototype.toString.call(e)}function s(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=i,o.__isDate=function(e){return"object"==typeof e&&"[object Date]"===i(e)},o.__isArray=function(e){return"object"==typeof e&&"[object Array]"===i(e)},o.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===i(e)},o.__getRegExpFlags=s,o}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},s=d(n(0)),a=d(n(8)),c=n(4),l=d(c),u=d(n(16)),h=d(n(13)),f=d(n(25));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return e instanceof l.default||e instanceof c.BlockEmbed}var m=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce(function(e,t){return e[t]=!0,e},{}
28)),r.domNode.addEventListener("DOMNodeInserted",function(){}),r.optimize(),r.enable(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var o=this.line(e),s=r(o,2),a=s[0],l=s[1],f=this.line(e+n),d=r(f,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=d&&a!==d&&l>0){if(a instanceof c.BlockEmbed||d instanceof c.BlockEmbed)return void this.optimize();if(a instanceof h.default){var p=a.newlineIndex(a.length(),!0);if(p>-1&&(a=a.split(p+1))===d)return void this.optimize()}else if(d instanceof h.default){var m=d.newlineIndex(0);m>-1&&d.split(m+1)}var g=d.children.head instanceof u.default?null:d.children.head;a.moveChildren(d,g),a.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var o=s.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var a=s.default.create(n,r);this.appendChild(a)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(e),e=r}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(p,e)}},{key:"lines",value:function(){return function e(t,n,r){var o=[],i=r;return t.children.forEachAt(n,r,function(t,n,r){p(t)?o.push(t):t instanceof s.default.Container&&(o=o.concat(e(t,n,i))),i-=r}),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=a.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,n,e)}}}]),t}(s.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[l.default,c.BlockEmbed,f.default],t.default=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);
28throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=m(n(21)),a=m(n(11)),c=m(n(3)),l=m(n(2)),u=m(n(20)),h=m(n(0)),f=m(n(5)),d=m(n(10)),p=m(n(9));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=(0,d.default)("quill:keyboard"),v=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach(function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])}),r.addBinding({key:t.keys.ENTER,shiftKey:null},T),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},w),r.addBinding({key:t.keys.DELETE},{collapsed:!0},k)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},k)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},E),r.addBinding({key:t.keys.DELETE},{collapsed:!1},E),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),r.listen(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"match",value:function(e,t){return t=O(t),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(n){return!!t[n]!==e[n]&&null!==t[n]})&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=O(e);if(null==r||null==r.key)return y.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,c.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,s=(e.bindings[i]||[]).filter(function(e){return t.match(n,e)});if(0!==s.length){var c=e.quill.getSelection();if(null!=c&&e.quill.hasFocus()){var l=e.quill.getLine(c.index),u=o(l,2),f=u[0],d=u[1],p=e.quill.getLeaf(c.index),m=o(p,2),g=m[0],y=m[1],v=0===c.length?[g,y]:e.quill.getLeaf(c.index+c.length),b=o(v,2),_=b[0],w=b[1],k=g instanceof h.default.Text?g.value().slice(0,y):"",E=_ instanceof h.default.Text?_.value().slice(w):"",T={collapsed:0===c.length,empty:0===c.length&&f.length()<=1,format:e.quill.getFormat(c),offset:d,prefix:k,suffix:E},S=s.some(function(t){if(null!=t.collapsed&&t.collapsed!==T.collapsed)return!1;if(null!=t.empty&&t.empty!==T.empty)return!1;if(null!=t.offset&&t.offset!==T.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(function(e){return null==T.format[e]}))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every(function(e){return!0===t.format[e]?null!=T.format[e]:!1===t.format[e]?null==T.format[e]:(0,a.default)(t.format[e],T.format[e])}))return!1;return!(null!=t.prefix&&!t.prefix.test(T.prefix)||null!=t.suffix&&!t.suffix.test(T.suffix)||!0===t.handler.call(e,c,T))});S&&n.preventDefault()}}}})}}]),t}(p.default);function _(e,t){var n,r=e===b.keys.LEFT?"prefix":"suffix";return g(n={key:e,shiftKey:t,altKey:null},r,/^$/),g(n,"handler",function(n){var r=n.index;e===b.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof h.default.Embed&&(e===b.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),1))}),n}function w(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],i={};if(0===t.offset){var s=this.quill.getLine(e.index-1),a=o(s,1)[0];if(null!=a&&a.length()>1){var c=r.formats(),l=this.quill.getFormat(e.index-1,1);i=u.default.attributes.diff(c,l)||{}}}var h=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-h,h,f.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-h,h,i,f.default.sources.USER),this.quill.focus()}}function k(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>
28=this.quill.getLength()-n)){var r={},i=0,s=this.quill.getLine(e.index),a=o(s,1)[0];if(t.offset>=a.length()-1){var c=this.quill.getLine(e.index+1),l=o(c,1)[0];if(l){var h=a.formats(),d=this.quill.getFormat(e.index,1);r=u.default.attributes.diff(h,d)||{},i=l.length()}}this.quill.deleteText(e.index,n,f.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+i-1,n,r,f.default.sources.USER)}}function E(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=u.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function T(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce(function(e,n){return h.default.query(n,h.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e},{});this.quill.insertText(e.index,"\n",r,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach(function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER))})}function S(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=h.default.query("code-block"),r=t.index,i=t.length,s=this.quill.scroll.descendant(n,r),a=o(s,2),c=a[0],l=a[1];if(null!=c){var u=this.quill.getIndex(c),d=c.newlineIndex(l,!0)+1,p=c.newlineIndex(u+l+i),m=c.domNode.textContent.slice(d,p).split("\n");l=0,m.forEach(function(t,o){e?(c.insertAt(d+l,n.TAB),l+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(c.deleteAt(d+l,n.TAB.length),l-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),l+=t.length+1}),this.quill.update(f.default.sources.USER),this.quill.setSelection(r,i,f.default.sources.SILENT)}}}}function x(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function O(e){if("string"==typeof e||"number"==typeof e)return O({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,s.default)(e,!1)),"string"==typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[v]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:x("bold"),italic:x("italic"),underline:x("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":S(!0),"outdent code-block":S(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new l.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],s=(0,c.default)({},r.formats(),{list:"checked"}),a=(new l.default).retain(e.index).insert("\n",s).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),i=r[0],s=r[1],a=(new l.default).retain(e.index).insert("\n",t.format).retain(i.length()-s-1).retain(1,{header:null});this.quill.updateContents(a,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=o(r,2),s=i[0],a=i[1];if(a>n)return!0;var c=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":c="unchecked";break;
28case"[x]":c="checked";break;case"-":case"*":c="bullet";break;default:c="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var u=(new l.default).retain(e.index-a).delete(n+1).retain(s.length()-2-a).retain(1,{list:c});this.quill.updateContents(u,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],s=(new l.default).retain(e.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(s,f.default.sources.USER)}},"embed left":_(b.keys.LEFT,!1),"embed left shift":_(b.keys.LEFT,!0),"embed right":_(b.keys.RIGHT,!1),"embed right shift":_(b.keys.RIGHT,!0)}},t.default=b,t.SHORTKEY=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=c(n(0)),a=c(n(7));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,i=0;null!=r&&r.statics.scope!==s.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),o=void 0,i=void 0,c=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var l=[e,n.start.offset,n.end.offset];o=l[0],i=l[1],c=l[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof a.default?(o=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var h=[i,c].map(function(e){return Math.max(0,Math.min(o.data.length,e-1))}),f=r(h,2);return i=f[0],c=f[1],{startNode:o,startOffset:i,endNode:o,endOffset:c}}}}},{key:"update",value:function(e,t){var n=this;if(e.some(function(e){return"characterData"===e.type&&e.target===n.textNode}
28)){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(s.default.Embed);l.blotName="cursor",l.className="ql-cursor",l.tagName="span",l.CONTENTS="\ufeff",t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(0)),o=n(4),i=s(o);function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Container);a.allowedChildren=[i.default,o.BlockEmbed,a],t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},s=n(0),a=(r=s)&&r.__esModule?r:{default:r},c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(e){return("00"+parseInt(e).toString(16)).slice(-2)}).join("")):n}}]),t}(a.default.Attributor.Style),l=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),u=new c("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=l,t.ColorStyle=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},s=n(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=s)&&r.__esModule?r:{default:r}).default);function c(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}a.blotName="link",a.tagName="A",a.SANITIZED_URL="about:blank",a.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=a,t.sanitize=c}
28,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(23)),s=a(n(107));function a(e){return e&&e.__esModule?e:{default:e}}var c=0;function l(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){n.togglePicker()}),this.label.addEventListener("keydown",function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return o(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),l(this.label,"aria-expanded"),l(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",function(){t.selectItem(n,!0)}),n.addEventListener("keydown",function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}}),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=s.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+c,c+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach(function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)}),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(t){e.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout(function(){return e.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=u}
28,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=y(n(0)),o=y(n(5)),i=n(4),s=y(i),a=y(n(16)),c=y(n(25)),l=y(n(24)),u=y(n(35)),h=y(n(6)),f=y(n(22)),d=y(n(7)),p=y(n(55)),m=y(n(42)),g=y(n(23));function y(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":s.default,"blots/block/embed":i.BlockEmbed,"blots/break":a.default,"blots/container":c.default,"blots/cursor":l.default,"blots/embed":u.default,"blots/inline":h.default,"blots/scroll":f.default,"blots/text":d.default,"modules/clipboard":p.default,"modules/history":m.default,"modules/keyboard":g.default}),r.default.register(s.default,a.default,l.default,h.default,f.default,d.default),t.default=o.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var s=r.create(this.statics.scope);i.wrap(s),s.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),s=n(1),a=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),a=i.default.keys(this.domNode);t.concat(n).concat(a).forEach(function(t){var n=s.query(t,s.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)})},e.prototype.copy=function(e){var t=this;
28Object.keys(this.attributes).forEach(function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)})},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(t,n){return t[n]=e.attributes[n].value(e.domNode),t},{})},e}();t.default=a},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(function(e){return 0===e.indexOf(t+"-")})}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach(function(t){e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=s},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach(function(t){null==e.modules[t]&&e.addModule(t)})}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},i=a(n(0)),s=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}var c="\ufeff",l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEac
28h(function(e){n.contentNode.appendChild(e)}),n.leftGuard=document.createTextNode(c),n.rightGuard=document.createTextNode(c),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(c).join("");if(e===this.leftGuard)if(this.prev instanceof s.default){var o=this.prev.length();this.prev.insertAt(o,r),t={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof s.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=c,t}},{key:"update",value:function(e,t){var n=this;e.forEach(function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}})}}]),t}(i.default.Embed);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},s={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new i.default.Attributor.Attribute("align","align",s),c=new i.default.Attributor.Class("align","ql-align",s),l=new i.default.Attributor.Style("align","text-align",s);t.AlignAttribute=a,t.AlignClass=c,t.AlignStyle=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},s=n(26),a=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),c=new s.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},s={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},a=new i.default.Attributor.Attribute("direction","dir",s),c=new i.default.Attributor.Class("direction","ql-direction",s),l=new i.default.Attributor.Style("direction","direction",s);t.DirectionAttribute=a,t.DirectionClass=c,t.DirectionStyle=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},s=n(0),a=(r=s)&&r.__esModule?r:{default:r},c={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},l=new a.default.Attributor.Class("font","ql-font",c),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(a.default.Attributor.Style),h=new u("font","font-family",c);t.FontStyle=h,t.FontClass=l}
28,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},s=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=s,t.SizeStyle=a},function(e,t,n){e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=s(n(0)),i=s(n(5));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(i.default.events.EDITOR_CHANGE,function(e,t,n,o){e!==i.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==i.default.sources.USER?r.transform(t):r.record(t,n))}),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var r=c(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}),this.stack.redo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(s(n(9)).default);function c(e){var t=e.reduce(function(e,t){return e+=t.delete||0},0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some(function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)}))}(e)&&(n-=1),n}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=a,t.getLastChangeIndex=c}
28,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},i=p(n(3)),s=p(n(2)),a=p(n(8)),c=p(n(23)),l=p(n(34)),u=p(n(59)),h=p(n(60)),f=p(n(28)),d=p(n(61));function p(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],_=[!1,"serif","monospace"],w=["1","2","3",!1],k=["small",!1,"large","huge"],E=function(e){function t(e,n){m(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach(function(e){e.container.contains(n.target)||e.close()})}),r}return y(t,e),r(t,[{key:"addModule",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach(function(e){(e.getAttribute("class")||"").split(/\s+/).forEach(function(n){if(n.startsWith("ql-")&&(n=n.slice(3),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}})})}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map(function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&S(e,v),new h.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&S(e,b,"background"===n?"#ffffff":"#000000"),new u.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?S(e,_):e.classList.contains("ql-header")?S(e,w):e.classList.contains("ql-size")&&S(e,k)),new f.default(e)}),this.quill.on(a.default.events.EDITOR_CHANGE,function(){n.pickers.forEach(function(e){e.update()})})}}]),t}(l.default);E.DEFAULTS=(0,i.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new s.default).retain(r.index).delete(r.length).insert({image:n.target.result}),a.default.sources.USER),e.quill.setSelection(r.index+1,a.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}}),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var T=function(e){function t(e,n){m(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return y(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",function(t){c.default.match(t,"enter")?(e.save(),t.preventDefault()):c.default.match(t,"escape")&&(e.cancel(),t.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",
28n,a.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",a.default.sources.USER),this.quill.setSelection(i+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(d.default);function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach(function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)})}t.BaseTooltip=T,t.default=E},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,o=this.find(e),i=o[0],s=e-o[1],a=this.iterator(i);(r=a())&&s<e+t;){var c=r.length();e>s?n(r,e-s,Math.min(t,s+c-e)):n(r,0,Math.min(c,e+t-s)),s+=c}},e.prototype.map=function(e){return this.reduce(function(t,n){return t.push(e(n)),t},[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),s=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver(function(e){n.update(e)}),n.observer.observe(n.domNode,a),n.attach(),n}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach(function(e){e.remove()}):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var a=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[s.DATA_KEY].mutations&&(e.domNode[s.DATA_KEY].mutations=[]),t&&a(e.parent))},c=function(e){null!=e.domNode[s.DATA_KEY]&&null!=e.domNode[s.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEac
28h(c),e.optimize(n))},l=t,u=0;l.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(function(e){var t=s.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(a(s.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,function(e){var t=s.find(e,!1);a(t,!1),t instanceof i.default&&t.children.forEach(function(e){a(e,!1)})})):"attributes"===e.type&&a(t.prev)),a(t))}),this.children.forEach(c),o=(l=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map(function(e){var t=s.find(e.target,!0);return null==t?null:null==t.domNode[s.DATA_KEY].mutations?(t.domNode[s.DATA_KEY].mutations=[e],t):(t.domNode[s.DATA_KEY].mutations.push(e),null)}).forEach(function(e){null!=e&&e!==r&&null!=e.domNode[s.DATA_KEY]&&e.update(e.domNode[s.DATA_KEY].mutations||[],n)}),null!=this.domNode[s.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=c},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),s=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach(function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)}),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||s.query(r,s.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=s.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=a},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),s=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){var r=s.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=s.query(n,s.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=s.query(r,s.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=s.query(n,s.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),i=s.create(n,r);o.parent.insertBefore(i,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});
28Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),s=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=s.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some(function(e){return"characterData"===e.type&&e.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=s.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(t=n[i],e.call(o,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(e,t){var n=-1;function r(e,t,c){if(e==t)return e?[[0,e]]:[];(c<0||e.length<c)&&(c=null);var u=i(e,t),h=e.substring(0,u);u=s(e=e.substring(u),t=t.substring(u));var f=e.substring(e.length-u),d=function(e,t){var a;if(!e)return[[1,t]];if(!t)return[[n,e]];var c=e.length>t.length?e:t,l=e.length>t.length?t:e,u=c.indexOf(l);if(-1!=u)return a=[[1,c.substring(0,u)],[0,l],[1,c.substring(u+l.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==l.length)return[[n,e],[1,t]];var h=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,a,c,l=e.substring(n,n+Math.floor(e.length/4)),u=-1,h="";-1!=(u=t.indexOf(l,u+1));){var f=i(e.substring(n),t.substring(u)),d=s(e.substring(0,n),t.substring(0,u));h.length<d+f&&(h=t.substring(u-d,u)+t.substring(u,u+f),r=e.substring(0,n-d),o=e.substring(n+f),a=t.substring(0,u-d),c=t.substring(u+f))}return 2*h.length>=e.length?[r,o,a,c,h]:null}var a,c,l,u,h,f=o(n,r,Math.ceil(n.length/4)),d=o(n,r,Math.ceil(n.length/2));if(!f&&!d)return null;a=d?f&&f[4].length>d[4].length?f:d:f,e.length>t.length?(c=a[0],l=a[1],u=a[2],h=a[3]):(u=a[0],h=a[1],c=a[2],l=a[3]);var p=a[4];return[c,l,u,h,p]}(e,t);if(h){var f=h[0],d=h[1],p=h[2],m=h[3],g=h[4],y=r(f,p),v=r(d,m);return y.concat([[0,g]],v)}return function(e,t){for(var r=e.length,i=t.length,s=Math.ceil((r+i)/2),a=s,c=2*s,l=new Array(c),u=new Array(c),h=0;h<c;h++)l[h]=-1,u[h]=-1;l[a+1]=0,u[a+1]=0;for(var f=r-i,d=f%2!=0,p=0,m=0,g=0,y=0,v=0;v<s;v++){for(var b=-v+p;b<=v-m;b+=2){for(var _=a+b,w=(x=b==-v||b!=v&&l[_-1]<l[_+1]?l[_+1]:l[_-1]+1)-b;x<r&&w<i&&e.charAt(x)==t.charAt(w);)x++,w++;if(l[_]=x,x>r)m+=2;else if(w>i)p+=2;else if(d&&(T=a+f-b)>=0&&T<c&&-1!=u[T]&&x>=(E=r-u[T]))return o(e,t,x,w)}for(var k=-v+g;k<=v-y;k+=2){for(var E,T=a+k,S=(E=k==-v||k!=v&&u[T-1]<u[T+1]?u[T+1]:u[T-1]+1)-k;E<r&&S<i&&e.charAt(r-E-1)==t.charAt(i-S-1);)E++,S++;if(u[T]=E,E>r)y+=2;else if(S>i)g+=2;else if(!d){var x;if((_=a+f-k)>=0&&_<c&&-1!=l[_])if(w=a+(x=l[_])-_,x>=(E=r-E))return o(e,t,x,w)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-u),t=t.substring(0,t.length-u));return h&&d.unshift([0,h]),f&&d.push([0,f]),a(d),null!=c&&(d=function(e,t){var r=function(e,t){if(0===t)return[0,e];for(var r=0,o=0;o<e.length;o++){var i=e[o];if(i[0]===n||0===i[0]){var s=r+i[1].length;if(t===s)return[o+1,e];if(t<s){e=e.slice();var a=t-r,c=[i[0],i[1].slice(0,a)],l=[i[0],i[1].slice(a)];return e.splice(o,1,c,l),[o+1,e]}r=s}}throw new Error("cursor_pos is out of bounds!")}(e,t),o=r[1],i=r[0],s=o[i],a=o[i+1];if(null==s)return e;if(0!==s[0])return e;if(null!=a&&s[1]+a[1]===a[1]+s[1])return o.splice(i,2,a,s),l(o,i,2);if(null!=a&&0===a[1].indexOf(s[1])){o.splice(i,2,[a[0],s[1]],[0,s[1]]);var c=a[1].slice(s[1].length);return c.length>0&&o.splice(i+2,0,[a[0],c]),l(o,i,3)}return e}
28(d,c)),d=function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},o=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},i=2;i<e.length;i+=1)0===e[i-2][0]&&o(e[i-2][1])&&e[i-1][0]===n&&r(e[i-1][1])&&1===e[i][0]&&r(e[i][1])&&(t=!0,e[i-1][1]=e[i-2][1].slice(-1)+e[i-1][1],e[i][1]=e[i-2][1].slice(-1)+e[i][1],e[i-2][1]=e[i-2][1].slice(0,-1));if(!t)return e;var s=[];for(i=0;i<e.length;i+=1)e[i][1].length>0&&s.push(e[i]);return s}(d),d}function o(e,t,n,o){var i=e.substring(0,n),s=t.substring(0,o),a=e.substring(n),c=t.substring(o),l=r(i,s),u=r(a,c);return l.concat(u)}function i(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function s(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function a(e){e.push([0,""]);for(var t,r=0,o=0,c=0,l="",u="";r<e.length;)switch(e[r][0]){case 1:c++,u+=e[r][1],r++;break;case n:o++,l+=e[r][1],r++;break;case 0:o+c>1?(0!==o&&0!==c&&(0!==(t=i(u,l))&&(r-o-c>0&&0==e[r-o-c-1][0]?e[r-o-c-1][1]+=u.substring(0,t):(e.splice(0,0,[0,u.substring(0,t)]),r++),u=u.substring(t),l=l.substring(t)),0!==(t=s(u,l))&&(e[r][1]=u.substring(u.length-t)+e[r][1],u=u.substring(0,u.length-t),l=l.substring(0,l.length-t))),0===o?e.splice(r-c,o+c,[1,u]):0===c?e.splice(r-o,o+c,[n,l]):e.splice(r-o-c,o+c,[n,l],[1,u]),r=r-o-c+(o?1:0)+(c?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,c=0,o=0,l="",u=""}""===e[e.length-1][1]&&e.pop();var h=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),h=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),h=!0)),r++;h&&a(e)}var c=r;function l(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var o=e[r],i=e[r+1];o[0]===i[1]&&e.splice(r,2,[o[0],o[1]+i[1]])}return e}c.INSERT=1,c.DELETE=n,c.EQUAL=0,e.exports=c},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t){var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e,t){var n=r?r+e:e,o=this._events[n];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,s=o.length,a=new Array(s);i<s;i++)a[i]=o[i].fn;return a},s.prototype.emit=function(e,t,n,o,i,s){var a=r?r+e:e;if(!this._events[a])return!1;var c,l,u=this._events[a],h=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),h){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,o),!0;case 5:return u.fn.call(u.context,t,n,o,i),!0;case 6:return u.fn.call(u.context,t,n,o,i,s),!0}for(l=1,c=new Array(h-1);l<h;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var f,d=u.length;for(l=0;l<d;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),h){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,n);break;case 4:u[l].fn.call(u[l].context,t,n,o);break;default:if(!c)for(f=1,c=new Array(h-1);f<h;f++)c[f-1]=arguments[f];u[l].fn.apply(u[l].context,c)}}return!0},s.prototype.on=function(e,t,n){var o=new i(t,n||this),s=r?r+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],o]:this._events[s].push(o):(this._events[s]=o,this._eventsCount++),this},s.prototype.once=function(e,t,n){var o=new i(t,n||this,!0),s=r?r+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],o]:this._events[s].push(o):(this._events[s]=o,this._eventsCount++),this},s.prototype.removeListener=function(e,t,n,i){var s=r?r+e:e;if(!this._events[s])return this;if(!t)return 0===--this._eventsCount?this._events=new o:delete this._events[s],this;var a=this._events[s];if(a.fn)a.fn!==t||i&&!a.once||n&&a.context!==n||(0===--this._eventsCount?this._events=new o:delete this._events[s]);else{for(var c=0,l=[],u=a.length;c<u;c++)(a[c].fn!==t||i&&!a[c].once||n&&a[c].context!==n)&&l.push(a[c]);l.length?this._events[s]=1===l.length?l[0]:l:0===--this._eventsCount?this._events=new o:delete this._events[s]}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prototype.setMaxListeners=function(){return this},s.prefixed=r,s.EventEmitter=s,void 0!==e&&(e.exports=s)}
28,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=b(n(3)),a=b(n(2)),c=b(n(0)),l=b(n(5)),u=b(n(10)),h=b(n(9)),f=n(36),d=n(37),p=b(n(13)),m=n(26),g=n(38),y=n(39),v=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=(0,u.default)("quill:clipboard"),k="__ql-matcher",E=[[Node.TEXT_NODE,j],[Node.TEXT_NODE,D],["br",function(e,t){return C(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===A(e).fontStyle&&(n.italic=!0),r.fontWeight&&(A(e).fontWeight.startsWith("bold")||parseInt(A(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=O(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new a.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=c.default.query(e);if(null==n||"list-item"!==n.blotName||!C(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(c.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new a.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",L.bind(L,"bold")],["i",L.bind(L,"italic")],["style",function(){return new a.default}]],T=[f.AlignAttribute,g.DirectionAttribute].reduce(function(e,t){return e[t.keyName]=t,e},{}),S=[f.AlignStyle,d.BackgroundStyle,m.ColorStyle,g.DirectionStyle,y.FontStyle,v.SizeStyle].reduce(function(e,t){return e[t.keyName]=t,e},{}),x=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],E.concat(r.options.matchers).forEach(function(e){var t=o(e,2),i=t[0],s=t[1];(n.matchVisual||s!==M)&&r.addMatcher(i,s)}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[p.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,_({},p.default.blotName,t[p.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),s=i[0],c=i[1],l=I(this.container,s,c);return C(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new a.default).retain(l.length()-1).delete(1))),w.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,l.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new a.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new a.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout(function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,l.default.sources.USER),t.quill.setSelection(r.length()-n.length,l.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];
28return this.matchers.forEach(function(r){var i=o(r,2),s=i[0],a=i[1];switch(s){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(e.container.querySelectorAll(s),function(e){e[k]=e[k]||[],e[k].push(a)})}}),[t,n]}}]),t}(h.default);function O(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce(function(e,n){return O(e,n,t[n])},e):e.reduce(function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,s.default)({},_({},t,n),r.attributes))},new a.default)}function A(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function C(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var o=e.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function N(e){if(0===e.childNodes.length)return!1;var t=A(e);return["block","list-item"].indexOf(t.display)>-1}function I(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce(function(t,n){return n(e,t)},new a.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],function(r,o){var i=I(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce(function(e,t){return t(o,e)},i),i=(o[k]||[]).reduce(function(e,t){return t(o,e)},i)),r.concat(i)},new a.default):new a.default}function L(e,t,n){return O(n,e,!0)}function P(e,t){var n=c.default.Attributor.Attribute.keys(e),r=c.default.Attributor.Class.keys(e),o=c.default.Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach(function(t){var n=c.default.query(t,c.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=T[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=S[t])||n.attrName!==t&&n.keyName!==t||(n=S[t],i[n.attrName]=n.value(e)||void 0))}),Object.keys(i).length>0&&(t=O(t,i)),t}function R(e,t){var n=c.default.query(e);if(null==n)return t;if(n.prototype instanceof c.default.Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new a.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=O(t,n.blotName,n.formats(e)));return t}function D(e,t){return C(t,"\n")||(N(e)||t.length()>0&&e.nextSibling&&N(e.nextSibling))&&t.insert("\n"),t}function M(e,t){if(N(e)&&null!=e.nextElementSibling&&!C(t,"\n\n")){var n=e.offsetHeight+parseFloat(A(e).marginTop)+parseFloat(A(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function j(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!A(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u
2800a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&N(e.parentNode)||null!=e.previousSibling&&N(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&N(e.parentNode)||null!=e.nextSibling&&N(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}x.DEFAULTS={matchers:[],matchVisual:!0},t.default=x,t.matchAttributor=P,t.matchBlot=R,t.matchNewline=D,t.matchSpacing=M,t.matchText=j},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},s=n(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=s)&&r.__esModule?r:{default:r}).default);a.blotName="bold",a.tagName=["STRONG","B"],t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(2)),s=u(n(0)),a=u(n(5)),c=u(n(10)),l=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=(0,c.default)("quill:toolbar"),d=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o,i=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var s=document.createElement("div");m(s,i.options.container),e.container.parentNode.insertBefore(s,e.container),i.container=s}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.c
28ontrols=[],i.handlers={},Object.keys(i.options.handlers).forEach(function(e){i.addHandler(e,i.options.handlers[e])}),[].forEach.call(i.container.querySelectorAll("button, select"),function(e){i.attach(e)}),i.quill.on(a.default.events.EDITOR_CHANGE,function(e,t){e===a.default.events.SELECTION_CHANGE&&i.update(t)}),i.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){var e=i.quill.selection.getRange(),t=r(e,1)[0];i.update(t)}),i):(o=f.error("Container required for toolbar",i.options),h(i,o))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,function(e){return 0===e.indexOf("ql-")});if(n){if(n=n.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void f.warn("ignoring attaching to disabled format",n,e);if(null==s.default.query(n))return void f.warn("ignoring attaching to nonexistent format",n,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,function(o){var c=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var l=e.options[e.selectedIndex];c=!l.hasAttribute("selected")&&(l.value||!1)}else c=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),h=r(u,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,c);else if(s.default.query(n).prototype instanceof s.default.Embed){if(!(c=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(h.index).delete(h.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,c)),a.default.sources.USER)}else t.quill.format(n,c,a.default.sources.USER);t.update(h)}),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach(function(n){var o=r(n,2),i=o[0],s=o[1];if("SELECT"===s.tagName){var a=void 0;if(null==e)a=null;else if(null==t[i])a=s.querySelector("option[selected]");else if(!Array.isArray(t[i])){var c=t[i];"string"==typeof c&&(c=c.replace(/\"/g,'\\"')),a=s.querySelector('option[value="'+c+'"]')}null==a?(s.value="",s.selectedIndex=-1):a.selected=!0}else if(null==e)s.classList.remove("ql-active");else if(s.hasAttribute("value")){var l=t[i]===s.getAttribute("value")||null!=t[i]&&t[i].toString()===s.getAttribute("value")||null==t[i]&&!s.getAttribute("value");s.classList.toggle("ql-active",l)}else s.classList.toggle("ql-active",null!=t[i])})}}]),t}(l.default);function p(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function m(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(function(e){if("string"==typeof e)p(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach(function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)}),e.appendChild(r)}(n,t,r):p(n,t,r)}}),e.appendChild(n)})}d.DEFAULTS={},d.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach(function(t){null!=s.default.query(t,s.default.Scope.INLINE)&&e.quill.format(t,!1)})}else this.quill.removeFormat(t,a.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",a.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",e,a.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,a.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,a.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",e,a.default.sources.USER)}}}
28,t.default=d,t.addControls=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},s=n(28),a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(e){e.classList.add("ql-primary")}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(((r=s)&&r.__esModule?r:{default:r}).default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},s=n(28),a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),function(e){e.innerHTML=n[e.getAttribute("data-value")||""]}),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((r=s)&&r.__esModule?r:{default:r}).default);t.default=a}
28,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"}),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=t+i+"px"),o.bottom>r.bottom){var s=o.bottom-o.top,a=e.bottom-e.top+s;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=d(n(3)),a=d(n(8)),c=n(43),l=d(c),u=d(n(27)),h=n(15),f=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],v=function(e){function t(e,n){p(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=y);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return g(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(t,n){e.handlers.link.call(e,!n.format.link)})}}]),t}(l.default);v.DEFAULTS=(0,s.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",
28n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){p(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return g(t,e),i(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,a.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()}),this.quill.on(a.default.events.SELECTION_CHANGE,function(t,n,o){if(null!=t){if(0===t.length&&o===a.default.sources.USER){var i=e.quill.scroll.descendant(u.default,t.index),s=r(i,2),c=s[0],l=s[1];if(null!=c){e.linkRange=new h.Range(t.index-l,c.length());var f=u.default.formats(c.domNode);return e.preview.textContent=f,e.preview.setAttribute("href",f),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}})}},{key:"show",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(c.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=D(n(29)),o=n(36),i=n(38),s=n(64),a=D(n(65)),c=D(n(66)),l=n(67),u=D(l),h=n(37),f=n(26),d=n(39),p=n(40),m=D(n(56)),g=D(n(68)),y=D(n(27)),v=D(n(69)),b=D(n(70)),_=D(n(71)),w=D(n(72)),k=D(n(73)),E=n(13),T=D(E),S=D(n(74)),x=D(n(75)),O=D(n(57)),A=D(n(41)),C=D(n(28)),N=D(n(59)),I=D(n(60)),L=D(n(61)),P=D(n(108)),R=D(n(62));function D(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":h.Backgroun
28dClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":d.FontClass,"attributors/class/size":p.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":h.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":d.FontStyle,"attributors/style/size":p.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":s.IndentClass,"formats/background":h.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":d.FontClass,"formats/size":p.SizeClass,"formats/blockquote":a.default,"formats/code-block":T.default,"formats/header":c.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":E.Code,"formats/italic":g.default,"formats/link":y.default,"formats/script":v.default,"formats/strike":b.default,"formats/underline":_.default,"formats/image":w.default,"formats/video":k.default,"formats/list/item":l.ListItem,"modules/formula":S.default,"modules/syntax":x.default,"modules/toolbar":O.default,"themes/bubble":P.default,"themes/snow":R.default,"ui/icons":A.default,"ui/picker":C.default,"ui/icon-picker":I.default,"ui/color-picker":N.default,"ui/tooltip":L.default},!0),t.default=r.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},s=n(0),a=(r=s)&&r.__esModule?r:{default:r},c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(a.default.Attributor.Class),l=new c("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(4),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="blockquote",i.tagName="blockquote",t.default=i}
28,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((r=i)&&r.__esModule?r:{default:r}).default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},i=c(n(0)),s=c(n(4)),a=c(n(25));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"format",value:function(e,n){e!==d.blotName||n?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(s.default);f.blotName="list-item",f.tagName="LI";var d=function(e){function t(e){l(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),o=i.default.find(t.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return h(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof f)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNo
28de.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(a.default);d.blotName="list",d.scope=i.default.Scope.BLOCK_BLOT,d.tagName=["OL","UL"],d.defaultChild="list-item",d.allowedChildren=[f],t.ListItem=f,t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(56),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="italic",i.tagName=["EM","I"],t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},s=n(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((r=s)&&r.__esModule?r:{default:r}).default);a.blotName="script",a.tagName=["SUB","SUP"],t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="strike",i.tagName="S",t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="underline",i.tagName="U",t.default=i}
28,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},s=n(0),a=(r=s)&&r.__esModule?r:{default:r},c=n(27),l=["alt","height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){l.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return l.reduce(function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t},{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,c.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.default.Embed);u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},s=n(4),a=n(27),c=(r=a)&&r.__esModule?r:{default:r},l=["height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,n){l.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return l.reduce(function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t},{})}},{key:"sanitize",value:function(e){return c.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(s.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u}
28,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},i=c(n(35)),s=c(n(5)),a=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,null,[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var d=function(e){function t(){l(this,t);var e=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return h(t,e),r(t,null,[{key:"register",value:function(){s.default.register(f,!0)}}]),t}(a.default);t.FormulaBlot=f,t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},i=c(n(0)),s=c(n(5)),a=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(c(n(13)).default);f.className="ql-syntax";var d=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),p=function(e){function t(e,n){l(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(s.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(o),o=setTimeout(function(){r.highlight(),o=null},r.options.interval)}),r.highlight(),r}return h(t,e),r(t,null,[{key:"register",value:function(){s.default.register(d,!0),s.default.register(f,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(s.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach(function(t){t.highlight(e.options.highlight)}),this.quill.update(s.default.sources.SILENT),null!=t&&this.quill.setSelection(t,s.default.sources.SILENT)}}}]),t}(a.default);p.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=d,t.default=p},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18">
28 <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.
28177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}
28,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;return void 0!==s?s.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=h(n(3)),s=h(n(8)),a=n(43),c=h(a),l=n(15),u=h(n(41));function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(e){function t(e,n){f(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return p(t,e),o(t,[{key:"extendToolbar",value:function(e){this.tooltip=new y(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),u.default)}}]),t}(c.default);g.DEFAULTS=(0,i.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var y=function(e){function t(e,n){f(this,t);var r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(s.default.events.EDITOR_CHANGE,function(e,t,n,o){if(e===s.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===s.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(t.index,t.length);if(1===i.length)r.position(r.quill.getBounds(t));else{var a=i[i.length-1],c=r.quill.getIndex(a),u=Math.min(a.length()-1,t.index+t.length-c),h=r.quill.getBounds(new l.Range(c,u));r.position(h)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return p(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){e.root.classList.remove("ql-editing")}),this.quill.on(s.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),t}(a.BaseTooltip);y.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=y,t.default=g},function(e,t,n){e.exports=n(63)}]).default});const sy=D(iy.exports);var ay=-1;function cy(e,t,n,r){if(e===t)return e?[[0,e]]:[];if(null!=n){var o=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,o="number"==typeof n?null:n.newRange,i=e.length,s=t.length;if(0===r.length&&(null===o||0===o.length)){var a=r.index,c=e.slice(0,a),l=e.slice(a),u=o?o.index:null,h=a+s-i;if((null===u||u===h)&&!(h<0||h>s)){var f=t.slice(0,h);if((m=t.slice(h))===l){var d=Math.min(a,h);if((y=c.slice(0,d))===(b=f.slice(0,d)))return yy(y,c.slice(d),f.slice(d),l)}}if(null===u||u===a){var p=a,m=(f=t.slice(0,p),t.slice(p));if(f===c){var g=Math.min(i-p,s-p);if((v=l.slice(l.length-g))===(_=m.slice(m.length-g)))return yy(c,l.slice(0,l.length-g),m.slice(0,m.length-g),v)}}}if(r.length>0&&o&&0===o.length){var y=e.slice(0,r.index),v=e.slice(r.index+r.length);if(!(s<(d=y.length)+(g=v.length))){var b=t.slice(0,d),_=t.slice(s-g);if(y===b&&v===_)return yy(y,e.slice(d,i-g),t.slice(d,s-g),v)}}return null}(e,t,n);if(o)return o}var i=uy(e,t),s=e.substring(0,i);i=hy(e=e.substring(i),t=t.substring(i));var a=e.substring(e.length-i),c=function(e,t){var n;if(!e)return[[1,t]];if(!t)return[[ay,e]];var r=e.length>t.length?e:t,o=e.length>t.length?t:e,i=r.indexOf(o);if(-1!==i)return n=[[1,r.substring(0,i)],[0,o],[1,r.substring(i+o.length)]],e.length>t.length&&(n[0][0]=n[2][0]=ay),n;if(1===o.length)return[[ay,e],[1,t]];var s=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,i,s,a=e.substring(n,n+Math.floor(e.length/4)),c=-1,l="";-1!==(c=t.indexOf(a,c+1));){var u=uy(e.substring(n),t.substring(c)),h=hy(e.substring(0,n),t.substring(0,c));l.length<h+u&&(l=t.substring(c-h,c)+t.substring(c,c+u),r=e.substring(0,n-h),o=e.substring(n+u),i=t.substring(0,c-h),s=t.substring(c+u))}return 2*l.length>=e.length?[r,o,i,s,l]:null}var i,s,a,c,l,u=o(n,r,Math.ceil(n.length/4)),h=o(n,r,Math.ceil(n.length/2));if(!u&&!h)return null;i=h?u&&u[4].length>h[4].length?u:h:u;e.length>t.length?(s=i[0],a=i[1],c=i[2],l=i[3]):(c=i[0],l=i[1],s=i[2],a=i[3]);var f=i[4];return[s,a,c,l,f]}(e,t);if(s){var a=s[0],c=s[1],l=s[2],u=s[3],h=s[4],f=cy(a,l),d=cy(c,u);return f.concat([[0,h]],d)}return function(e,t){for(var n=e.length,r=t.length,o=Math.ceil((n+r)/2),i=o,s=2*o,a=new Array(s),c=new Array(s),l=0;l<s;
vendor: 5,110 bytes, line 28
28l++)a[l]=-1,c[l]=-1;a[i+1]=0,c[i+1]=0;for(var u=n-r,h=u%2!=0,f=0,d=0,p=0,m=0,g=0;g<o;g++){for(var y=-g+f;y<=g-d;y+=2){for(var v=i+y,b=(T=y===-g||y!==g&&a[v-1]<a[v+1]?a[v+1]:a[v-1]+1)-y;T<n&&b<r&&e.charAt(T)===t.charAt(b);)T++,b++;if(a[v]=T,T>n)d+=2;else if(b>r)f+=2;else if(h){if((k=i+u-y)>=0&&k<s&&-1!==c[k])if(T>=(w=n-c[k]))return ly(e,t,T,b)}}for(var _=-g+p;_<=g-m;_+=2){for(var w,k=i+_,E=(w=_===-g||_!==g&&c[k-1]<c[k+1]?c[k+1]:c[k-1]+1)-_;w<n&&E<r&&e.charAt(n-w-1)===t.charAt(r-E-1);)w++,E++;if(c[k]=w,w>n)m+=2;else if(E>r)p+=2;else if(!h){if((v=i+u-_)>=0&&v<s&&-1!==a[v]){var T;b=i+(T=a[v])-v;if(T>=(w=n-w))return ly(e,t,T,b)}}}}return[[ay,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-i),t=t.substring(0,t.length-i));return s&&c.unshift([0,s]),a&&c.push([0,a]),fy(c,r),c}function ly(e,t,n,r){var o=e.substring(0,n),i=t.substring(0,r),s=e.substring(n),a=t.substring(r),c=cy(o,i),l=cy(s,a);return c.concat(l)}function uy(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return dy(e.charCodeAt(o-1))&&o--,o}function hy(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return py(e.charCodeAt(e.length-o))&&o--,o}function fy(e,t){e.push([0,""]);for(var n,r=0,o=0,i=0,s="",a="";r<e.length;)if(r<e.length-1&&!e[r][1])e.splice(r,1);else switch(e[r][0]){case 1:i++,a+=e[r][1],r++;break;case ay:o++,s+=e[r][1],r++;break;case 0:var c=r-i-o-1;if(t){if(c>=0&&gy(e[c][1])){var l=e[c][1].slice(-1);if(e[c][1]=e[c][1].slice(0,-1),s=l+s,a=l+a,!e[c][1]){e.splice(c,1),r--;var u=c-1;e[u]&&1===e[u][0]&&(i++,a=e[u][1]+a,u--),e[u]&&e[u][0]===ay&&(o++,s=e[u][1]+s,u--),c=u}}if(my(e[r][1])){l=e[r][1].charAt(0);e[r][1]=e[r][1].slice(1),s+=l,a+=l}}if(r<e.length-1&&!e[r][1]){e.splice(r,1);break}if(s.length>0||a.length>0){s.length>0&&a.length>0&&(0!==(n=uy(a,s))&&(c>=0?e[c][1]+=a.substring(0,n):(e.splice(0,0,[0,a.substring(0,n)]),r++),a=a.substring(n),s=s.substring(n)),0!==(n=hy(a,s))&&(e[r][1]=a.substring(a.length-n)+e[r][1],a=a.substring(0,a.length-n),s=s.substring(0,s.length-n)));var h=i+o;0===s.length&&0===a.length?(e.splice(r-h,h),r-=h):0===s.length?(e.splice(r-h,h,[1,a]),r=r-h+1):0===a.length?(e.splice(r-h,h,[ay,s]),r=r-h+1):(e.splice(r-h,h,[ay,s],[1,a]),r=r-h+2)}0!==r&&0===e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,i=0,o=0,s="",a=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(r=1;r<e.length-1;)0===e[r-1][0]&&0===e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)===e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),f=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),f=!0)),r++;f&&fy(e,t)}function dy(e){return e>=55296&&e<=56319}function py(e){return e>=56320&&e<=57343}function my(e){return py(e.charCodeAt(0))}function gy(e){return dy(e.charCodeAt(e.length-1))}function yy(e,t,n,r){return gy(e)||my(r)?null:function(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}([[0,e],[ay,t],[1,n],[0,r]])}function vy(e,t,n){return cy(e,t,n,!0)}vy.INSERT=1,vy.DELETE=ay,vy.EQUAL=0;var by=vy,_y={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",s="[object Date]",a="[object Function]",c="[object GeneratorFunction]",l="[object Map]",u="[object Number]",h="[object Object]",f="[object Promise]",d="[object RegExp]",p="[object Set]",m="[object String]",g="[object Symbol]",y="[object WeakMap]",v="[object ArrayBuffer]",b="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",k="[object Int8Array]",E="[object Int16Array]",T="[object Int32Array]",S="[object Uint8Array]",x="[object Uint8ClampedArray]",O="[object Uint16Array]",A="[object Uint32Array]",C=/\w*$/,N=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,L={};L[o]=L["[object Array]"]=L[v]=L[b]=L[i]=L[s]=L[_]=L[w]=L[k]=L[E]=L[T]=L[l]=L[u]=L[h]=L[d]=L[p]=L[m]=L[g]=L[S]=L[x]=L[O]=L[A]=!0,L["[object Error]"]=L[a]=L[y]=!1;var P="object"==typeof R&&R&&R.Object===Object&&R,D="object"==typeof self&&self&&self.Object===Object&&self,M=P||D||Function("return this")(),j=t&&!t.nodeType&&t,U=j&&e&&!e.nodeType&&e,q=U&&U.exports===j;function F(e,t){return e.set(t[0],t[1]),e}function B(e,t){return e.add(t),e}function V(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function z(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function $(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function H(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var G,K=Array.prototype,Y=Function.prototype,Q=Object.prototype,X=M["__core-js_shared__"],J=(G=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(sr
28c)_1."+G:"",Z=Y.toString,ee=Q.hasOwnProperty,te=Q.toString,ne=RegExp("^"+Z.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=q?M.Buffer:void 0,oe=M.Symbol,ie=M.Uint8Array,se=H(Object.getPrototypeOf,Object),ae=Object.create,ce=Q.propertyIsEnumerable,le=K.splice,ue=Object.getOwnPropertySymbols,he=re?re.isBuffer:void 0,fe=H(Object.keys,Object),de=Ue(M,"DataView"),pe=Ue(M,"Map"),me=Ue(M,"Promise"),ge=Ue(M,"Set"),ye=Ue(M,"WeakMap"),ve=Ue(Object,"create"),be=ze(de),_e=ze(pe),we=ze(me),ke=ze(ge),Ee=ze(ye),Te=oe?oe.prototype:void 0,Se=Te?Te.valueOf:void 0;function xe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e){this.__data__=new Oe(e)}function Ne(e,t){var n=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&We(e)}(e)&&ee.call(e,"callee")&&(!ce.call(e,"callee")||te.call(e)==o)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var s in e)!t&&!ee.call(e,s)||i&&("length"==s||Be(s,r))||n.push(s);return n}function Ie(e,t,n){var r=e[t];ee.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Le(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}function Pe(e,t,n,r,f,y,N){var I;if(r&&(I=y?r(e,f,y,N):r(e)),void 0!==I)return I;if(!Ye(e))return e;var P=He(e);if(P){if(I=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,I)}else{var R=Fe(e),D=R==a||R==c;if(Ge(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(R==h||R==o||D&&!y){if(z(e))return y?e:{};if(I=function(e){return"function"!=typeof e.constructor||Ve(e)?{}:(t=se(e),Ye(t)?ae(t):{});var t}(D?{}:e),!t)return function(e,t){return Me(e,qe(e),t)}(e,function(e,t){return e&&Me(t,Qe(t),e)}(I,e))}else{if(!L[R])return y?e:{};I=function(e,t,n,r){var o=e.constructor;switch(t){case v:return De(e);case i:case s:return new o(+e);case b:return function(e,t){var n=t?De(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case _:case w:case k:case E:case T:case S:case x:case O:case A:return function(e,t){var n=t?De(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){var r=t?n($(e),!0):$(e);return V(r,F,new e.constructor)}(e,r,n);case u:case m:return new o(e);case d:return function(e){var t=new e.constructor(e.source,C.exec(e));return t.lastIndex=e.lastIndex,t}(e);case p:return function(e,t,n){var r=t?n(W(e),!0):W(e);return V(r,B,new e.constructor)}(e,r,n);case g:return a=e,Se?Object(Se.call(a)):{}}var a}(e,R,Pe,t)}}N||(N=new Ce);var M=N.get(e);if(M)return M;if(N.set(e,I),!P)var j=n?function(e){return function(e,t,n){var r=t(e);return He(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Qe,qe)}(e):Qe(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(j||e,function(o,i){j&&(o=e[i=o]),Ie(I,i,Pe(o,t,n,r,i,e,N))}),I}function Re(e){return!(!Ye(e)||(t=e,J&&J in t))&&(Ke(e)||z(e)?ne:N).test(ze(e));var t}function De(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Me(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var s=t[o],a=r?r(n[s],e[s],s,n,e):void 0;Ie(n,s,void 0===a?e[s]:a)}return n}function je(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ue(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Re(n)?n:void 0}xe.prototype.clear=function(){this.__data__=ve?ve(null):{}},xe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},xe.prototype.get=function(e){var t=this.__data__;if(ve){var r=t[e];return r===n?void 0:r}return ee.call(t,e)?t[e]:void 0},xe.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:ee.call(t,e)},xe.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?n:t,this},Oe.prototype.clear=function(){this.__data__=[]},Oe.prototype.delete=function(e){var t=this.__data__,n=Le(t,e);return!(n<0)&&(n==t.length-1?t.pop():le.call(t,n,1),!0)},Oe.prototype.get=function(e){var t=this.__data__,n=Le(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return Le(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,r=Le(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new xe,map:new(pe||Oe),string:new xe}},Ae.prototype.delete=function(e){return je(this,e).delete(e)},Ae.prototype.get=function(e){return je(this,e).get(e)},Ae.prototype.has=function(e){return je(this,e).has(e)},Ae.prototype.set=function(e,t){return je(this,e).set(e,t),this},Ce.prototype.clear=function(){this.__data__=new Oe},Ce.prototype.delete=function(e){return this.__data__.delete(e)},Ce.prototype.get=function(e){return this.__data__.get(e)},Ce.prototype.has=function(e){return this.__data__.has(e)},Ce.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var r=n.__data__;
vendor: 4,410 bytes, line 28
28if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ae(r)}return n.set(e,t),this};var qe=ue?H(ue,Object):function(){return[]},Fe=function(e){return te.call(e)};function Be(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e<t}function Ve(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Q)}function ze(e){if(null!=e){try{return Z.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function $e(e,t){return e===t||e!=e&&t!=t}(de&&Fe(new de(new ArrayBuffer(1)))!=b||pe&&Fe(new pe)!=l||me&&Fe(me.resolve())!=f||ge&&Fe(new ge)!=p||ye&&Fe(new ye)!=y)&&(Fe=function(e){var t=te.call(e),n=t==h?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case be:return b;case _e:return l;case we:return f;case ke:return p;case Ee:return y}return t});var He=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Ke(e)}var Ge=he||function(){return!1};function Ke(e){var t=Ye(e)?te.call(e):"";return t==a||t==c}function Ye(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Qe(e){return We(e)?Ne(e):function(e){if(!Ve(e))return fe(e);var t=[];for(var n in Object(e))ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Pe(e,!0,!0)}}(_y,_y.exports);var wy=_y.exports,ky={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",s="[object Boolean]",a="[object Date]",c="[object Error]",l="[object Function]",u="[object Map]",h="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",m="[object Set]",g="[object String]",y="[object Symbol]",v="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",w=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,E={};E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E[o]=E[i]=E[b]=E[s]=E[_]=E[a]=E[c]=E[l]=E[u]=E[h]=E[f]=E[p]=E[m]=E[g]=E[v]=!1;var T="object"==typeof R&&R&&R.Object===Object&&R,S="object"==typeof self&&self&&self.Object===Object&&self,x=T||S||Function("return this")(),O=t&&!t.nodeType&&t,A=O&&e&&!e.nodeType&&e,C=A&&A.exports===O,N=C&&T.process,I=function(){try{return N&&N.binding&&N.binding("util")}catch(e){}}(),L=I&&I.isTypedArray;function P(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function D(e,t){return e.has(t)}function M(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function j(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var U,q=Array.prototype,F=Function.prototype,B=Object.prototype,V=x["__core-js_shared__"],z=F.toString,$=B.hasOwnProperty,H=(U=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"",W=B.toString,G=RegExp("^"+z.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=C?x.Buffer:void 0,Y=x.Symbol,Q=x.Uint8Array,X=B.propertyIsEnumerable,J=q.splice,Z=Y?Y.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=K?K.isBuffer:void 0,ne=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),re=Ie(x,"DataView"),oe=Ie(x,"Map"),ie=Ie(x,"Promise"),se=Ie(x,"Set"),ae=Ie(x,"WeakMap"),ce=Ie(Object,"create"),le=De(re),ue=De(oe),he=De(ie),fe=De(se),de=De(ae),pe=Y?Y.prototype:void 0,me=pe?pe.valueOf:void 0;function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ve;++t<n;)this.add(e[t])}function _e(e){var t=this.__data__=new ye(e);this.size=t.size}function we(e,t){var n=Ue(e),r=!n&&je(e),o=!n&&!r&&qe(e),i=!n&&!r&&!o&&He(e),s=n||r||o||i,a=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=a.length;for(var l in e)!t&&!$.call(e,l)||s&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Re(l,c))||a.push(l);return a}function ke(e,t){for(var n=e.length;n--;)if(Me(e[n][0],t))return n;return-1}
vendor: 1,206 bytes, line 28
28function Ee(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=$.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch(i){}var o=W.call(e);r&&(t?e[Z]=n:delete e[Z]);return o}(e):function(e){return W.call(e)}(e)}function Te(e){return ze(e)&&Ee(e)==o}function Se(e,t,n,r,l){return e===t||(null==e||null==t||!ze(e)&&!ze(t)?e!=e&&t!=t:function(e,t,n,r,l,d){var v=Ue(e),w=Ue(t),k=v?i:Pe(e),E=w?i:Pe(t),T=(k=k==o?f:k)==f,S=(E=E==o?f:E)==f,x=k==E;if(x&&qe(e)){if(!qe(t))return!1;v=!0,T=!1}if(x&&!T)return d||(d=new _e),v||He(e)?Ae(e,t,n,r,l,d):function(e,t,n,r,o,i,l){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!i(new Q(e),new Q(t)));case s:case a:case h:return Me(+e,+t);case c:return e.name==t.name&&e.message==t.message;case p:case g:return e==t+"";case u:var f=M;case m:var d=1&r;if(f||(f=j),e.size!=t.size&&!d)return!1;var v=l.get(e);if(v)return v==t;r|=2,l.set(e,t);var w=Ae(f(e),f(t),r,o,i,l);return l.delete(e),w;case y:if(me)return me.call(e)==me.call(t)}return!1}(e,t,k,n,r,l,d);if(!(1&n)){var O=T&&$.call(e,"__wrapped__"),A=S&&$.call(t,"__wrapped__");
28if(O||A){var C=O?e.value():e,N=A?t.value():t;return d||(d=new _e),l(C,N,n,r,d)}}if(!x)return!1;return d||(d=new _e),function(e,t,n,r,o,i){var s=1&n,a=Ce(e),c=a.length,l=Ce(t),u=l.length;if(c!=u&&!s)return!1;var h=c;for(;h--;){var f=a[h];if(!(s?f in t:$.call(t,f)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var p=!0;i.set(e,t),i.set(t,e);var m=s;for(;++h<c;){var g=e[f=a[h]],y=t[f];if(r)var v=s?r(y,g,f,t,e,i):r(g,y,f,e,t,i);if(!(void 0===v?g===y||o(g,y,n,r,i):v)){p=!1;break}m||(m="constructor"==f)}if(p&&!m){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,l,d)}(e,t,n,r,Se,l))}function xe(e){return!(!Ve(e)||(t=e,H&&H in t))&&(Fe(e)?G:w).test(De(e));var t}function Oe(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||B,t!==r)return ne(e);var t,n,r,o=[];for(var i in Object(e))$.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Ae(e,t,n,r,o,i){var s=1&n,a=e.length,c=t.length;if(a!=c&&!(s&&c>a))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var u=-1,h=!0,f=2&n?new be:void 0;for(i.set(e,t),i.set(t,e);++u<a;){var d=e[u],p=t[u];if(r)var m=s?r(p,d,u,t,e,i):r(d,p,u,e,t,i);if(void 0!==m){if(m)continue;h=!1;break}if(f){if(!P(t,function(e,t){if(!D(f,t)&&(d===e||o(d,e,n,r,i)))return f.push(t)})){h=!1;break}}else if(d!==p&&!o(d,p,n,r,i)){h=!1;break}}return i.delete(e),i.delete(t),h}function Ce(e){return function(e,t,n){var r=t(e);return Ue(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,We,Le)}function Ne(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ie(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xe(n)?n:void 0}ge.prototype.clear=function(){this.__data__=ce?ce(null):{},this.size=0},ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ge.prototype.get=function(e){var t=this.__data__;if(ce){var r=t[e];return r===n?void 0:r}return $.call(t,e)?t[e]:void 0},ge.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:$.call(t,e)},ge.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ce&&void 0===t?n:t,this},ye.prototype.clear=function(){this.__data__=[],this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=ke(t,e);return!(n<0)&&(n==t.length-1?t.pop():J.call(t,n,1),--this.size,!0)},ye.prototype.get=function(e){var t=this.__data__,n=ke(t,e);return n<0?void 0:t[n][1]},ye.prototype.has=function(e){return ke(this.__data__,e)>-1},ye.prototype.set=function(e,t){var n=this.__data__,r=ke(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ve.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(oe||ye),string:new ge}},ve.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},ve.prototype.get=function(e){return Ne(this,e).get(e)},ve.prototype.has=function(e){return Ne(this,e).has(e)},ve.prototype.set=function(e,t){var n=Ne(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,n),this},be.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.clear=function(){this.__data__=new ye,this.size=0},_e.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ye){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ve(r)}return n.set(e,t),this.size=n.size,this};var Le=ee?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}(ee(e),function(t){return X.call(e,t)}))}:function(){return[]},Pe=Ee;function Re(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<t}function De(e){if(null!=e){try{return z.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Me(e,t){return e===t||e!=e&&t!=t}(re&&Pe(new re(new ArrayBuffer(1)))!=_||oe&&Pe(new oe)!=u||ie&&Pe(ie.resolve())!=d||se&&Pe(new se)!=m||ae&&Pe(new ae)!=v)&&(Pe=function(e){var t=Ee(e),n=t==f?e.constructor:void 0,r=n?De(n):"";if(r)switch(r){case le:return _;case ue:return u;case he:return d;case fe:return m;case de:return v}return t});var je=Te(function(){return arguments}())?Te:function(e){return ze(e)&&$.call(e,"callee")&&!X.call(e,"callee")},Ue=Array.isArray;var qe=te||function(){return!1};function Fe(e){if(!Ve(e))return!1;var t=Ee(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ve(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ze(e){return null!=e&&"object"==typeof e}var $e,He=L?($e=L,function(e){return $e(e)}):function(e){return ze(e)&&Be(e.length)&&!!E[Ee(e)]};function We(e){return null!=(t=e)&&Be(t.length)&&!Fe(t)?we(e):Oe(e);var t}e.exports=function(e,t){return Se(e,t)}}
28(ky,ky.exports);var Ey=ky.exports,Ty={},Sy=R&&R.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ty,"__esModule",{value:!0});var xy,Oy=Sy(wy),Ay=Sy(Ey);!function(e){e.compose=function(e,t,n){void 0===e&&(e={}),void 0===t&&(t={}),"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=Oy.default(t);for(var o in n||(r=Object.keys(r).reduce(function(e,t){return null!=r[t]&&(e[t]=r[t]),e},{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},e.diff=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce(function(n,r){return Ay.default(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n},{});return Object.keys(n).length>0?n:void 0},e.invert=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),e=e||{};var n=Object.keys(t).reduce(function(n,r){return t[r]!==e[r]&&void 0!==e[r]&&(n[r]=t[r]),n},{});return Object.keys(e).reduce(function(n,r){return e[r]!==t[r]&&void 0===t[r]&&(n[r]=null),n},n)},e.transform=function(e,t,n){if(void 0===n&&(n=!1),"object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce(function(n,r){return void 0===e[r]&&(n[r]=t[r]),n},{});return Object.keys(r).length>0?r:void 0}}}(xy||(xy={})),Ty.default=xy;var Cy,Ny,Iy={},Ly={};function Py(){if(Ny)return Iy;Ny=1;var e=R&&R.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Iy,"__esModule",{value:!0});var t,n=e(function(){if(Cy)return Ly;Cy=1;var e=R&&R.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ly,"__esModule",{value:!0});var t=e(Py()),n=function(){function e(e){this.ops=e,this.index=0,this.offset=0}return e.prototype.hasNext=function(){return this.peekLength()<1/0},e.prototype.next=function(e){e||(e=1/0);var n=this.ops[this.index];if(n){var r=this.offset,o=t.default.length(n);if(e>=o-r?(e=o-r,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof n.delete)return{delete:e};var i={};return n.attributes&&(i.attributes=n.attributes),"number"==typeof n.retain?i.retain=e:"string"==typeof n.insert?i.insert=n.insert.substr(r,e):i.insert=n.insert,i}return{retain:1/0}},e.prototype.peek=function(){return this.ops[this.index]},e.prototype.peekLength=function(){return this.ops[this.index]?t.default.length(this.ops[this.index])-this.offset:1/0},e.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},e.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e}();return Ly.default=n,Ly}());return function(e){e.iterator=function(e){return new n.default(e)},e.length=function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}}(t||(t={})),Iy.default=t,Iy}var Ry=R&&R.__importDefault||function(e){return e&&e.__esModule?e:{default:e}}
vendor: 4,868 bytes, line 28
28,Dy=Ry(by),My=Ry(wy),jy=Ry(Ey),Uy=Ry(Ty),qy=Ry(Py()),Fy=String.fromCharCode(0),By=function(){function e(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}return e.prototype.insert=function(e,t){var n={};return"string"==typeof e&&0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},e.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},e.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},e.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=My.default(e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(jy.default(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},e.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},e.prototype.filter=function(e){return this.ops.filter(e)},e.prototype.forEach=function(e){this.ops.forEach(e)},e.prototype.map=function(e){return this.ops.map(e)},e.prototype.partition=function(e){var t=[],n=[];return this.forEach(function(r){(e(r)?t:n).push(r)}),[t,n]},e.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},e.prototype.changeLength=function(){return this.reduce(function(e,t){return t.insert?e+qy.default.length(t):t.delete?e-t.delete:e},0)},e.prototype.length=function(){return this.reduce(function(e,t){return e+qy.default.length(t)},0)},e.prototype.slice=function(t,n){void 0===t&&(t=0),void 0===n&&(n=1/0);for(var r=[],o=qy.default.iterator(this.ops),i=0;i<n&&o.hasNext();){var s=void 0;i<t?s=o.next(t-i):(s=o.next(n-i),r.push(s)),i+=qy.default.length(s)}return new e(r)},e.prototype.compose=function(t){var n=qy.default.iterator(this.ops),r=qy.default.iterator(t.ops),o=[],i=r.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var s=i.retain;"insert"===n.peekType()&&n.peekLength()<=s;)s-=n.peekLength(),o.push(n.next());i.retain-s>0&&r.next(i.retain-s)}for(var a=new e(o);n.hasNext()||r.hasNext();)if("insert"===r.peekType())a.push(r.next());else if("delete"===n.peekType())a.push(n.next());else{var c=Math.min(n.peekLength(),r.peekLength()),l=n.next(c),u=r.next(c);if("number"==typeof u.retain){var h={};"number"==typeof l.retain?h.retain=c:h.insert=l.insert;var f=Uy.default.compose(l.attributes,u.attributes,"number"==typeof l.retain);if(f&&(h.attributes=f),a.push(h),!r.hasNext()&&jy.default(a.ops[a.ops.length-1],h)){var d=new e(n.rest());return a.concat(d).chop()}}else"number"==typeof u.delete&&"number"==typeof l.retain&&a.push(u)}return a.chop()},e.prototype.concat=function(t){var n=new e(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n},e.prototype.diff=function(t,n){if(this.ops===t.ops)return new e;var r=[this,t].map(function(e){return e.map(function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:Fy;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")}).join("")}),o=new e,i=Dy.default(r[0],r[1],n),s=qy.default.iterator(this.ops),a=qy.default.iterator(t.ops);return i.forEach(function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case Dy.default.INSERT:n=Math.min(a.peekLength(),t),o.push(a.next(n));break;case Dy.default.DELETE:n=Math.min(t,s.peekLength()),s.next(n),o.delete(n);break;case Dy.default.EQUAL:n=Math.min(s.peekLength(),a.peekLength(),t);var r=s.next(n),i=a.next(n);jy.default(r.insert,i.insert)?o.retain(n,Uy.default.diff(r.attributes,i.attributes)):o.push(i).delete(n)}t-=n}}),o.chop()},e.prototype.eachLine=function(t,n){void 0===n&&(n="\n");for(var r=qy.default.iterator(this.ops),o=new e,i=0;r.hasNext();){if("insert"!==r.peekType())return;var s=r.peek(),a=qy.default.length(s)-r.peekLength(),c="string"==typeof s.insert?s.insert.indexOf(n,a)-a:-1;if(c<0)o.push(r.next());else if(c>0)o.push(r.next(c));else{if(!1===t(o,r.next(1).attributes||{},i))return;i+=1,o=new e}}o.length()>0&&t(o,{},i)},e.prototype.invert=function(t){var n=new e;return this.reduce(function(e,r){if(r.insert)n.delete(qy.default.length(r));else{if(r.retain&&null==r.attributes)return n.retain(r.retain),e+r.retain;if(r.delete||r.retain&&r.attributes){var o=r.delete||r.retain;
28return t.slice(e,e+o).forEach(function(e){r.delete?n.push(e):r.retain&&r.attributes&&n.retain(qy.default.length(e),Uy.default.invert(r.attributes,e.attributes))}),e+o}}return e},0),n.chop()},e.prototype.transform=function(t,n){if(void 0===n&&(n=!1),n=!!n,"number"==typeof t)return this.transformPosition(t,n);for(var r=t,o=qy.default.iterator(this.ops),i=qy.default.iterator(r.ops),s=new e;o.hasNext()||i.hasNext();)if("insert"!==o.peekType()||!n&&"insert"===i.peekType())if("insert"===i.peekType())s.push(i.next());else{var a=Math.min(o.peekLength(),i.peekLength()),c=o.next(a),l=i.next(a);if(c.delete)continue;l.delete?s.push(l):s.retain(a,Uy.default.transform(c.attributes,l.attributes,n))}else s.retain(qy.default.length(o.next()));return s.chop()},e.prototype.transformPosition=function(e,t){void 0===t&&(t=!1),t=!!t;for(var n=qy.default.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.Op=qy.default,e.AttributeMap=Uy.default,e}();const Vy=D(By),zy={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},$y=y({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:e=>["delta","html","text"].includes(e)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:e=>["snow","bubble",""].includes(e)},toolbar:{type:[String,Array,Object],required:!1,validator:e=>"string"!=typeof e||""===e||("#"===e.charAt(0)||-1!==Object.keys(zy).indexOf(e))},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(e,t)=>{let n,r;O(()=>{i()}),f(()=>{n=null});const o=l(),i=()=>{var i;if(o.value){if(r=a(),e.modules)if(Array.isArray(e.modules))for(const t of e.modules)sy.register(`modules/${t.name}`,t.module);else sy.register(`modules/${e.modules.name}`,e.modules.module);n=new sy(o.value,r),b(e.content),n.on("text-change",p),n.on("selection-change",g),n.on("editor-change",y),"bubble"!==e.theme&&o.value.classList.remove("ql-bubble"),"snow"!==e.theme&&o.value.classList.remove("ql-snow"),null===(i=n.getModule("toolbar"))||void 0===i||i.container.addEventListener("mousedown",e=>{e.preventDefault()}),t.emit("ready",n)}},a=()=>{const t={};if(""!==e.theme&&(t.theme=e.theme),e.readOnly&&(t.readOnly=e.readOnly),e.placeholder&&(t.placeholder=e.placeholder),e.toolbar&&""!==e.toolbar&&(t.modules={toolbar:(()=>{if("object"==typeof e.toolbar)return e.toolbar;if("string"==typeof e.toolbar){return"#"===e.toolbar.charAt(0)?e.toolbar:zy[e.toolbar]}})()}),e.modules){const n=(()=>{var t,n;const r={};if(Array.isArray(e.modules))for(const o of e.modules)r[o.name]=null!==(t=o.options)&&void 0!==t?t:{};else r[e.modules.name]=null!==(n=e.modules.options)&&void 0!==n?n:{};return r})();t.modules=Object.assign({},t.modules,n)}return Object.assign({},e.globalOptions,e.options,t)},c=e=>"object"==typeof e&&e?e.slice():e;let u;const d=e=>{if(typeof u==typeof e){if(e===u)return!0;if("object"==typeof e&&e&&"object"==typeof u&&u)return t=u.diff(e),!Object.values(t.ops).some(e=>!e.retain||1!==Object.keys(e).length)}var t;return!1},p=(n,r,o)=>{u=c(v()),d(e.content)||t.emit("update:content",u),t.emit("textChange",{delta:n,oldContents:r,source:o})},m=l(),g=(e,r,o)=>{m.value=!!(null==n?void 0:n.hasFocus()),t.emit("selectionChange",{range:e,oldRange:r,source:o})};h(m,e=>{e?t.emit("focus",o):t.emit("blur",o)});const y=(...e)=>{"text-change"===e[0]&&t.emit("editorChange",{name:e[0],delta:e[1],oldContents:e[2],source:e[3]}),"selection-change"===e[0]&&t.emit("editorChange",{name:e[0],range:e[1],oldRange:e[2],source:e[3]})},v=(t,r)=>"html"===e.contentType?k():"text"===e.contentType?_(t,r):null==n?void 0:n.getContents(t,r),b=(t,r="api")=>{const o=t||("delta"===e.contentType?new Vy:"");"html"===e.contentType?E(o):"text"===e.contentType?w(o,r):null==n||n.setContents(o,r),u=c(o)},_=(e,t)=>
28{var r;return null!==(r=null==n?void 0:n.getText(e,t))&&void 0!==r?r:""},w=(e,t="api")=>{null==n||n.setText(e,t)},k=()=>{var e;return null!==(e=null==n?void 0:n.root.innerHTML)&&void 0!==e?e:""},E=e=>{n&&(n.root.innerHTML=e)};return h(()=>e.content,e=>{if(!n||!e||d(e))return;const t=n.getSelection();t&&s(()=>null==n?void 0:n.setSelection(t)),b(e)},{deep:!0}),h(()=>e.enable,e=>{n&&n.enable(e)}),{editor:o,getEditor:()=>o.value,getToolbar:()=>{var e;return null===(e=null==n?void 0:n.getModule("toolbar"))||void 0===e?void 0:e.container},getQuill:()=>{if(n)return n;throw'The quill editor hasn\'t been instantiated yet,\n                  make sure to call this method when the editor ready\n                  or use v-on:ready="onReady(quill)" event instead.'},getContents:v,setContents:b,getHTML:k,setHTML:E,pasteHTML:(e,t="api")=>{const r=null==n?void 0:n.clipboard.convert(e);r&&(null==n||n.setContents(r,t))},focus:()=>{null==n||n.focus()},getText:_,setText:w,reinit:()=>{s(()=>{var e;!t.slots.toolbar&&n&&(null===(e=n.getModule("toolbar"))||void 0===e||e.container.remove()),i()})}}},render(){var e,t;return[null===(t=(e=this.$slots).toolbar)||void 0===t?void 0:t.call(e),b("div",{ref:"editor",...this.$attrs})]}}),Hy=Ut(e=>{e.vueApp.component("QuillEditor",$y)});
29/*!
30 * VueQuill @vueup/vue-quill v1.2.0
31 * https://vueup.github.io/vue-quill/
32 * 
33 * Includes quill v1.3.7
34 * https://quilljs.com/
35 * 
36 * Copyright (c) 2023 Ahmad Luthfi Masruri
37 * Released under the MIT license
38 * Date: 2023-05-12T08:44:03.742Z
39 */var Wy={};
40/**
41 * @license
42 * Copyright 2017 Google LLC
43 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
45 * you may not use this file except in compliance with the License.
46 * You may obtain a copy of the License at
47 *
48 *   http://www.apache.org/licenses/LICENSE-2.0
49 *
50 * Unless required by applicable law or agreed to in writing, software
51 * distributed under the License is distributed on an "AS IS" BASIS,
52 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53 * See the License for the specific language governing permissions and
54 * limitations under the License.
55 */const Gy=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);o<128?t[n++]=o:o<2048?(t[n++]=o>>6|192,t[n++]=63&o|128):55296==(64512&o)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++r)),t[n++]=o>>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=63&o|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=63&o|128)}return t},Ky={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let o=0;o<e.length;o+=3){const t=e[o],i=o+1<e.length,s=i?e[o+1]:0,a=o+2<e.length,c=a?e[o+2]:0,l=t>>2,u=(3&t)<<4|s>>4;let h=(15&s)<<2|c>>6,f=63&c;a||(f=64,i||(h=64)),r.push(n[l],n[u],n[h],n[f])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(Gy(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const o=e[n++];if(o<128)t[r++]=String.fromCharCode(o);else if(o>191&&o<224){const i=e[n++];t[r++]=String.fromCharCode((31&o)<<6|63&i)}else if(o>239&&o<365){const i=((7&o)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(i>>10)),t[r++]=String.fromCharCode(56320+(1023&i))}else{const i=e[n++],s=e[n++];t[r++]=String.fromCharCode((15&o)<<12|(63&i)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let o=0;o<e.length;){const t=n[e.charAt(o++)],i=o<e.length?n[e.charAt(o)]:0;++o;const s=o<e.length?n[e.charAt(o)]:64;++o;const a=o<e.length?n[e.charAt(o)]:64;if(++o,null==t||null==i||null==s||null==a)throw new Yy;const c=t<<2|i>>4;if(r.push(c),64!==s){const e=i<<4&240|s>>2;if(r.push(e),64!==a){const e=s<<6&192|a;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
55class Yy extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Qy=function(e){return function(e){const t=Gy(e);return Ky.encodeByteArray(t,!0)}(e).replace(/\./g,"")},Xy=function(e){try{return Ky.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};
56/**
57 * @license
58 * Copyright 2022 Google LLC
59 *
60 * Licensed under the Apache License, Version 2.0 (the "License");
61 * you may not use this file except in compliance with the License.
62 * You may obtain a copy of the License at
63 *
64 *   http://www.apache.org/licenses/LICENSE-2.0
65 *
66 * Unless required by applicable law or agreed to in writing, software
67 * distributed under the License is distributed on an "AS IS" BASIS,
68 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
69 * See the License for the specific language governing permissions and
70 * limitations under the License.
71 */
72const Jy=()=>
73/**
74 * @license
75 * Copyright 2022 Google LLC
76 *
77 * Licensed under the Apache License, Version 2.0 (the "License");
78 * you may not use this file except in compliance with the License.
79 * You may obtain a copy of the License at
80 *
81 *   http://www.apache.org/licenses/LICENSE-2.0
82 *
83 * Unless required by applicable law or agreed to in writing, software
84 * distributed under the License is distributed on an "AS IS" BASIS,
85 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
86 * See the License for the specific language governing permissions and
87 * limitations under the License.
88 */
89function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,Zy=()=>{try{return Jy()||(()=>{if("undefined"==typeof process)return;const e=Wy.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}const t=e&&Xy(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},ev=e=>{var t,n;return null===(n=null===(t=Zy())||void 0===t?void 0:t.emulatorHosts)||void 0===n?void 0:n[e]},tv=e=>{const t=ev(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);const r=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),r]:[t.substring(0,n),r]},nv=()=>{var e;return null===(e=Zy())||void 0===e?void 0:e.config},rv=e=>{var t;return null===(t=Zy())||void 0===t?void 0:t[`_${e}`]};
90/**
91 * @license
92 * Copyright 2017 Google LLC
93 *
94 * Licensed under the Apache License, Version 2.0 (the "License");
95 * you may not use this file except in compliance with the License.
96 * You may obtain a copy of the License at
97 *
98 *   http://www.apache.org/licenses/LICENSE-2.0
99 *
100 * Unless required by applicable law or agreed to in writing, software
101 * distributed under the License is distributed on an "AS IS" BASIS,
102 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
103 * See the License for the specific language governing permissions and
104 * limitations under the License.
105 */
106class ov{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,n))}}}
107/**
108 * @license
109 * Copyright 2021 Google LLC
110 *
111 * Licensed under the Apache License, Version 2.0 (the "License");
112 * you may not use this file except in compliance with the License.
113 * You may obtain a copy of the License at
114 *
115 *   http://www.apache.org/licenses/LICENSE-2.0
116 *
117 * Unless required by applicable law or agreed to in writing, software
118 * distributed under the License is distributed on an "AS IS" BASIS,
119 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
120 * See the License for the specific language governing permissions and
121 * limitations under the License.
122 */function iv(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n=t||"demo-project",r=e.iat||0,o=e.sub||e.user_id;if(!o)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const i=Object.assign({iss:`https://securetoken.google.com/${n}`,aud:n,iat:r,exp:r+3600,auth_time:r,sub:o,user_id:o,firebase:{sign_in_provider:"custom",identities:{}}},e);return[Qy(JSON.stringify({alg:"none",type:"JWT"})),Qy(JSON.stringify(i)),""].join(".")}
123/**
124 * @license
125 * Copyright 2017 Google LLC
126 *
127 * Licensed under the Apache License, Version 2.0 (the "License");
128 * you may not use this file except in compliance with the License.
129 * You may obtain a copy of the License at
130 *
131 *   http://www.apache.org/licenses/LICENSE-2.0
132 *
133 * Unless required by applicable law or agreed to in writing, software
134 * distributed under the License is distributed on an "AS IS" BASIS,
135 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
136 * See the License for the specific language governing permissions and
137 * limitations under the License.
138 */function sv(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function av(){return!function(){var e;const t=null===(e=Zy())||void 0===e?void 0:e.forceEnvironment;if("node"===t)return!0;if("browser"===t)return!1;try{return"[object process]"===Object.prototype.toString.call(globalThis.process)}catch(n){return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function cv(){try{return"object"==typeof indexedDB}catch(e){return!1}}class lv extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,lv.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,uv.prototype.create)}}class uv{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},r=`${this.service}/${e}`,o=this.errors[e],i=o?function(e,t){return e.replace(hv,(e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`})}(o,n):"Error",s=`${this.serviceName}: ${i} (${r}).`;return new lv(r,s,n)}}const hv=/\{\$([^}]+)}/g;function fv(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const o of n){if(!r.includes(o))return!1;const n=e[o],i=t[o];if(dv(n)&&dv(i)){if(!fv(n,i))return!1}else if(n!==i)return!1}for(const o of r)if(!n.includes(o))return!1;return!0}function dv(e){return null!==e&&"object"==typeof e}
139/**
140 * @license
141 * Copyright 2017 Google LLC
142 *
143 * Licensed under the Apache License, Version 2.0 (the "License");
144 * you may not use this file except in compliance with the License.
145 * You may obtain a copy of the License at
146 *
147 *   http://www.apache.org/licenses/LICENSE-2.0
148 *
149 * Unless required by applicable law or agreed to in writing, software
150 * distributed under the License is distributed on an "AS IS" BASIS,
151 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
152 * See the License for the specific language governing permissions and
153 * limitations under the License.
154 */function pv(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}class mv{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=function(e,t){if("object"!=typeof e||null===e)return!1;for(const n of t)if(n in e&&"function"==typeof e[n])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=gv),void 0===r.error&&(r.error=gv),void 0===r.complete&&(r.complete=gv);const o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(e){}}),this.observers.push(r),o}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(n){"undefined"!=typeof console&&console.error&&console.error(n)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}
vendor: 6,914 bytes, lines 154-223
154function gv(){}
155/**
156 * @license
157 * Copyright 2021 Google LLC
158 *
159 * Licensed under the Apache License, Version 2.0 (the "License");
160 * you may not use this file except in compliance with the License.
161 * You may obtain a copy of the License at
162 *
163 *   http://www.apache.org/licenses/LICENSE-2.0
164 *
165 * Unless required by applicable law or agreed to in writing, software
166 * distributed under the License is distributed on an "AS IS" BASIS,
167 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
168 * See the License for the specific language governing permissions and
169 * limitations under the License.
170 */function yv(e){return e&&e._delegate?e._delegate:e}class vv{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}
171/**
172 * @license
173 * Copyright 2019 Google LLC
174 *
175 * Licensed under the Apache License, Version 2.0 (the "License");
176 * you may not use this file except in compliance with the License.
177 * You may obtain a copy of the License at
178 *
179 *   http://www.apache.org/licenses/LICENSE-2.0
180 *
181 * Unless required by applicable law or agreed to in writing, software
182 * distributed under the License is distributed on an "AS IS" BASIS,
183 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
184 * See the License for the specific language governing permissions and
185 * limitations under the License.
186 */const bv="[DEFAULT]";
187/**
188 * @license
189 * Copyright 2019 Google LLC
190 *
191 * Licensed under the Apache License, Version 2.0 (the "License");
192 * you may not use this file except in compliance with the License.
193 * You may obtain a copy of the License at
194 *
195 *   http://www.apache.org/licenses/LICENSE-2.0
196 *
197 * Unless required by applicable law or agreed to in writing, software
198 * distributed under the License is distributed on an "AS IS" BASIS,
199 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 * See the License for the specific language governing permissions and
201 * limitations under the License.
202 */class _v{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new ov;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(n){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),r=null!==(t=null==e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(o){if(r)return null;throw o}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}
203/**
204 * @license
205 * Copyright 2019 Google LLC
206 *
207 * Licensed under the Apache License, Version 2.0 (the "License");
208 * you may not use this file except in compliance with the License.
209 * You may obtain a copy of the License at
210 *
211 *   http://www.apache.org/licenses/LICENSE-2.0
212 *
213 * Unless required by applicable law or agreed to in writing, software
214 * distributed under the License is distributed on an "AS IS" BASIS,
215 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
216 * See the License for the specific language governing permissions and
217 * limitations under the License.
218 */(e))try{this.getOrInitializeService({instanceIdentifier:bv})}catch(t){}for(const[e,n]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});n.resolve(e)}catch(t){}}}}clearInstance(e=bv){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=bv){return this.instances.has(e)}getOptions(e=bv){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[o,i]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(o)&&i.resolve(r)}return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),o=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;o.add(e),this.onInitCallbacks.set(r,o);const i=this.instances.get(r);return i&&e(i,r),()=>{o.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const o of n)try{o(e,t)}catch(r){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e,r===bv?void 0:r),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch(o){}var r;return n||null}normalizeInstanceIdentifier(e=bv){return this.component?this.component.multipleInstances?e:bv:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class wv{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new _v(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}
219/**
220 * @license
221 * Copyright 2017 Google LLC
222 *
223 * Licensed under the Apache License, Version 2.0 (the "License");
224 * you may not use this file except in compliance with the License.
225 * You may obtain a copy of the License at
226 *
227 *   http://www.apache.org/licenses/LICENSE-2.0
228 *
229 * Unless required by applicable law or agreed to in writing, software
230 * distributed under the License is distributed on an "AS IS" BASIS,
231 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
232 * See the License for the specific language governing permissions and
233 * limitations under the License.
234 */var kv;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(kv||(kv={}));const Ev={debug:kv.DEBUG,verbose:kv.VERBOSE,info:kv.INFO,warn:kv.WARN,error:kv.ERROR,silent:kv.SILENT},Tv=kv.INFO,Sv={[kv.DEBUG]:"log",[kv.VERBOSE]:"log",[kv.INFO]:"info",[kv.WARN]:"warn",[kv.ERROR]:"error"},xv=(e,t,...n)=>{if(t<e.logLevel)return;const r=(new Date).toISOString(),o=Sv[t];if(!o)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[o](`[${r}]  ${e.name}:`,...n)};class Ov{constructor(e){this.name=e,this._logLevel=Tv,this._logHandler=xv,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in kv))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?Ev[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,kv.DEBUG,...e),this._logHandler(this,kv.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,kv.VERBOSE,...e),this._logHandler(this,kv.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,kv.INFO,...e),this._logHandler(this,kv.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,kv.WARN,...e),this._logHandler(this,kv.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,kv.ERROR,...e),this._logHandler(this,kv.ERROR,...e)}}let Av,Cv;const Nv=new WeakMap,Iv=new WeakMap,Lv=new WeakMap,Pv=new WeakMap,Rv=new WeakMap;let Dv={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return Iv.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Lv.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Uv(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Mv(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(Cv||(Cv=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(qv(this),t),Uv(Nv.get(this))}:function(...t){return Uv(e.apply(qv(this),t))}:function(t,...n){const r=e.call(qv(this),t,...n);return Lv.set(r,t.sort?t.sort():[t]),Uv(r)}}function jv(e){return"function"==typeof e?Mv(e):(e instanceof IDBTransaction&&function(e){if(Iv.has(e))return;const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)});Iv.set(e,t)}(e),t=e,(Av||(Av=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(e=>t instanceof e)?new Proxy(e,Dv):e);var t}function Uv(e){if(e instanceof IDBRequest)return function(e){const t=new Promise((t,n)=>{const r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(Uv(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",i)});return t.then(t=>{t instanceof IDBCursor&&Nv.set(t,e)}).catch(()=>{}),Rv.set(t,e),t}(e);if(Pv.has(e))return Pv.get(e);const t=jv(e);return t!==e&&(Pv.set(e,t),Rv.set(t,e)),t}const qv=e=>Rv.get(e);const Fv=["get","getKey","getAll","getAllKeys","count"],Bv=["put","add","delete","clear"],Vv=new Map;function zv(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Vv.get(t))return Vv.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=Bv.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!o&&!Fv.includes(n))return;const i=async function(e,...t){const i=this.transaction(e,o?"readwrite":"readonly");let s=i.store;
234return r&&(s=s.index(t.shift())),(await Promise.all([s[n](...t),o&&i.done]))[0]};return Vv.set(t,i),i}Dv=(e=>({...e,get:(t,n,r)=>zv(t,n)||e.get(t,n,r),has:(t,n)=>!!zv(t,n)||e.has(t,n)}))(Dv);
235/**
236 * @license
237 * Copyright 2019 Google LLC
238 *
239 * Licensed under the Apache License, Version 2.0 (the "License");
240 * you may not use this file except in compliance with the License.
241 * You may obtain a copy of the License at
242 *
243 *   http://www.apache.org/licenses/LICENSE-2.0
244 *
245 * Unless required by applicable law or agreed to in writing, software
246 * distributed under the License is distributed on an "AS IS" BASIS,
247 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
248 * See the License for the specific language governing permissions and
249 * limitations under the License.
250 */
251class $v{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null}).filter(e=>e).join(" ")}}const Hv="@firebase/app",Wv="0.10.0",Gv=new Ov("@firebase/app"),Kv="@firebase/app-compat",Yv="@firebase/analytics-compat",Qv="@firebase/analytics",Xv="@firebase/app-check-compat",Jv="@firebase/app-check",Zv="@firebase/auth",eb="@firebase/auth-compat",tb="@firebase/database",nb="@firebase/database-compat",rb="@firebase/functions",ob="@firebase/functions-compat",ib="@firebase/installations",sb="@firebase/installations-compat",ab="@firebase/messaging",cb="@firebase/messaging-compat",lb="@firebase/performance",ub="@firebase/performance-compat",hb="@firebase/remote-config",fb="@firebase/remote-config-compat",db="@firebase/storage",pb="@firebase/storage-compat",mb="@firebase/firestore",gb="@firebase/firestore-compat",yb="firebase",vb="[DEFAULT]",bb={[Hv]:"fire-core",[Kv]:"fire-core-compat",[Qv]:"fire-analytics",[Yv]:"fire-analytics-compat",[Jv]:"fire-app-check",[Xv]:"fire-app-check-compat",[Zv]:"fire-auth",[eb]:"fire-auth-compat",[tb]:"fire-rtdb",[nb]:"fire-rtdb-compat",[rb]:"fire-fn",[ob]:"fire-fn-compat",[ib]:"fire-iid",[sb]:"fire-iid-compat",[ab]:"fire-fcm",[cb]:"fire-fcm-compat",[lb]:"fire-perf",[ub]:"fire-perf-compat",[hb]:"fire-rc",[fb]:"fire-rc-compat",[db]:"fire-gcs",[pb]:"fire-gcs-compat",[mb]:"fire-fst",[gb]:"fire-fst-compat","fire-js":"fire-js",[yb]:"fire-js-all"},_b=new Map,wb=new Map,kb=new Map;function Eb(e,t){try{e.container.addComponent(t)}catch(n){Gv.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Tb(e){const t=e.name;if(kb.has(t))return Gv.debug(`There were multiple attempts to register component ${t}.`),!1;kb.set(t,e);for(const n of _b.values())Eb(n,e);for(const n of wb.values())Eb(n,e);return!0}function Sb(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function xb(e){return void 0!==e.settings}
252/**
253 * @license
254 * Copyright 2019 Google LLC
255 *
256 * Licensed under the Apache License, Version 2.0 (the "License");
257 * you may not use this file except in compliance with the License.
258 * You may obtain a copy of the License at
259 *
260 *   http://www.apache.org/licenses/LICENSE-2.0
261 *
262 * Unless required by applicable law or agreed to in writing, software
263 * distributed under the License is distributed on an "AS IS" BASIS,
264 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
265 * See the License for the specific language governing permissions and
266 * limitations under the License.
267 */const Ob=new uv("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
267d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});
268/**
269 * @license
270 * Copyright 2019 Google LLC
271 *
272 * Licensed under the Apache License, Version 2.0 (the "License");
273 * you may not use this file except in compliance with the License.
274 * You may obtain a copy of the License at
275 *
276 *   http://www.apache.org/licenses/LICENSE-2.0
277 *
278 * Unless required by applicable law or agreed to in writing, software
279 * distributed under the License is distributed on an "AS IS" BASIS,
280 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
281 * See the License for the specific language governing permissions and
282 * limitations under the License.
283 */
284class Ab{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new vv("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Ob.create("app-deleted",{appName:this._name})}}
285/**
286 * @license
287 * Copyright 2019 Google LLC
288 *
289 * Licensed under the Apache License, Version 2.0 (the "License");
290 * you may not use this file except in compliance with the License.
291 * You may obtain a copy of the License at
292 *
293 *   http://www.apache.org/licenses/LICENSE-2.0
294 *
295 * Unless required by applicable law or agreed to in writing, software
296 * distributed under the License is distributed on an "AS IS" BASIS,
297 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
298 * See the License for the specific language governing permissions and
299 * limitations under the License.
300 */const Cb="10.10.0";function Nb(e,t={}){let n=e;if("object"!=typeof t){t={name:t}}const r=Object.assign({name:vb,automaticDataCollectionEnabled:!1},t),o=r.name;if("string"!=typeof o||!o)throw Ob.create("bad-app-name",{appName:String(o)});if(n||(n=nv()),!n)throw Ob.create("no-options");const i=_b.get(o);if(i){if(fv(n,i.options)&&fv(r,i.config))return i;throw Ob.create("duplicate-app",{appName:o})}const s=new wv(o);for(const c of kb.values())s.addComponent(c);const a=new Ab(n,r,s);return _b.set(o,a),a}function Ib(e=vb){const t=_b.get(e);if(!t&&e===vb&&nv())return Nb();if(!t)throw Ob.create("no-app",{appName:e});return t}function Lb(){return Array.from(_b.values())}function Pb(e,t,n){var r;let o=null!==(r=bb[e])&&void 0!==r?r:e;n&&(o+=`-${n}`);const i=o.match(/\s|\//),s=t.match(/\s|\//);if(i||s){const e=[`Unable to register library "${o}" with version "${t}":`];return i&&e.push(`library name "${o}" contains illegal characters (whitespace or "/")`),i&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void Gv.warn(e.join(" "))}Tb(new vv(`${o}-version`,()=>({library:o,version:t}),"VERSION"))}
301/**
302 * @license
303 * Copyright 2021 Google LLC
304 *
305 * Licensed under the Apache License, Version 2.0 (the "License");
306 * you may not use this file except in compliance with the License.
307 * You may obtain a copy of the License at
308 *
309 *   http://www.apache.org/licenses/LICENSE-2.0
310 *
311 * Unless required by applicable law or agreed to in writing, softw
311are
312 * distributed under the License is distributed on an "AS IS" BASIS,
313 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
314 * See the License for the specific language governing permissions and
315 * limitations under the License.
316 */const Rb="firebase-heartbeat-store";let Db=null;function Mb(){return Db||(Db=function(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const s=indexedDB.open(e,t),a=Uv(s);return r&&s.addEventListener("upgradeneeded",e=>{r(Uv(s.result),e.oldVersion,e.newVersion,Uv(s.transaction),e)}),n&&s.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),a.then(e=>{i&&e.addEventListener("close",()=>i()),o&&e.addEventListener("versionchange",e=>o(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a}("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(Rb)}catch(n){console.warn(n)}}}).catch(e=>{throw Ob.create("idb-open",{originalErrorMessage:e.message})})),Db}async function jb(e,t){try{const n=(await Mb()).transaction(Rb,"readwrite"),r=n.objectStore(Rb);await r.put(t,Ub(e)),await n.done}catch(n){if(n instanceof lv)Gv.warn(n.message);else{const e=Ob.create("idb-set",{originalErrorMessage:null==n?void 0:n.message});Gv.warn(e.message)}}}function Ub(e){return`${e.name}!${e.options.appId}`}
317/**
318 * @license
319 * Copyright 2021 Google LLC
320 *
321 * Licensed under the Apache License, Version 2.0 (the "License");
322 * you may not use this file except in compliance with the License.
323 * You may obtain a copy of the License at
324 *
325 *   http://www.apache.org/licenses/LICENSE-2.0
326 *
327 * Unless required by applicable law or agreed to in writing, software
328 * distributed under the License is distributed on an "AS IS" BASIS,
329 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
330 * See the License for the specific language governing permissions and
331 * limitations under the License.
332 */class qb{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new Bb(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){var e,t;const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=Fb();if((null!=(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||(this._heartbeatsCache=await this._heartbeatsCachePromise,null!=(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))&&this._heartbeatsCache.lastSentHeartbeatDate!==r&&!this._heartbeatsCache.heartbeats.some(e=>e.date===r))return this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var e;if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=Fb(),{heartbeatsToSend:n,unsentEntries:r}=function(e,t=1024){const n=[];let r=e.slice();for(const o of e){const e=n.find(e=>e.agent===o.agent);if(e){if(e.dates.push(o.date),Vb(n)>t){e.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),Vb(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),o=Qy(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}}function Fb(){return(new Date).toISOString().substring(0,10)}class Bb{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!cv()&&new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(r);o.onsuccess=()=>{o.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},o.onupgradeneeded=()=>{n=!1},o.onerror=()=>{var e;t((null===(e=o.error)||void 0===e?void 0:e.message)||"")}}catch(n){t(n)}}).then(()=>!0).catch(()=>!1)}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await Mb()).transaction(Rb),n=await t.objectStore(Rb).get(Ub(e));return await t.done,n}catch(t){if(t instanceof lv)Gv.warn(t.message);else{const e=Ob.create("idb-get",{originalErrorMessage:null==t?void 0:t.message});Gv.warn(e.message)}}}(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return jb(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return jb(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function Vb(e){return Qy(JSON.stringify({version:2,heartbeats:e})).length}
333/**
334 * @license
335 * Copyright 2019 Google LLC
336 *
337 * Licensed under the Apache License, Version 2.0 (the "License");
338 * you may not use this file except in compliance with the License.
339 * You may obtain a copy of the License at
340 *
341 *   http://www.apache.org/licenses/LICENSE-2.0
342 *
343 * Unless required by applicable law or agreed to in writing, software
344 * distributed under the License is distributed on an "AS IS" BASIS,
345 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
346 * See the License for the specific language governing permissions and
347 * limitations under the License.
348 */var zb;zb="",Tb(new vv("platform-logger",e=>new $v(e),"PRIVATE")),Tb(new vv("heartbeat",e=>new qb(e),"PRIVATE")),Pb(Hv,Wv,zb),Pb(Hv,Wv,"esm2017"),Pb("fire-js","");function $b(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Hb(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}
349/**
350 * @license
351 * Copyright 2020 Google LLC
352 *
353 * Licensed under the Apache License, Version 2.0 (the "License");
354 * you may not use this file except in compliance with the License.
355 * You may obtain a copy of the License at
356 *
357 *   http://www.apache.org/licenses/LICENSE-2.0
358 *
359 * Unless required by applicable law or agreed to in writing, software
360 * distributed under the License is distributed on an "AS IS" BASIS,
361 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
362 * See the License for the specific language governing permissions and
363 * limitations under the License.
364 */
365Pb("firebase","10.10.0","app"),"function"==typeof SuppressedError&&SuppressedError;const Wb=Hb,Gb=new uv("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Kb=new Ov("@firebase/auth");function Yb(e,...t){Kb.logLevel<=kv.ERROR&&Kb.error(`Auth (${Cb}): ${e}`,...t)}
366/**
367 * @license
368 * Copyright 2020 Google LLC
369 *
370 * Licensed under the Apache License, Version 2.0 (the "License");
371 * you may not use this file except in compliance with the License.
372 * You may obtain a copy of the License at
373 *
374 *   http://www.apache.org/licenses/LICENSE-2.0
375 *
376 * Unless required by applicable law or agreed to in writing, software
377 * distributed under the License is distributed on an "AS IS" BASIS,
378 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
379 * See the License for the specific language governing permissions and
380 * limitations under the License.
381 */function Qb(e,...t){throw e_(e,...t)}function Xb(e,...t){return e_(e,...t)}function Jb(e,t,n){const r=Object.assign(Object.assign({},Wb()),{[t]:n});return new uv("auth","Firebase",r).create(t,{appName:e.name})}function Zb(e){return Jb(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function e_(e,...t){if("string"!=typeof e){const n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return Gb.create(e,...t)}function t_(e,t,...n){if(!e)throw e_(t,...n)}function n_(e){const t="INTERNAL ASSERTION FAILED: "+e;throw Yb(t),new Error(t)}function r_(e,t){e||n_(t)}
382/**
383 * @license
384 * Copyright 2020 Google LLC
385 *
386 * Licensed under the Apache License, Version 2.0 (the "License");
387 * you may not use this file except in compliance with the License.
388 * You may obtain a copy of the License at
389 *
390 *   http://www.apache.org/licenses/LICENSE-2.0
391 *
392 * Unless required by applicable law or agreed to in writing, software
393 * distributed under the License is distributed on an "AS IS" BASIS,
394 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
395 * See the License for the specific language governing permissions and
396 * limitations under the License.
397 */function o_(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function i_(){var e;return"undefined"!=typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}
398/**
399 * @license
400 * Copyright 2020 Google LLC
401 *
402 * Licensed under the Apache License, Version 2.0 (the "License");
403 * you may not use this file except in compliance with the License.
404 * You may obtain a copy of the License at
405 *
406 *   http://www.apache.org/licenses/LICENSE-2.0
407 *
408 * Unless required by applicable law or agreed to in writing, software
409 * distributed under the License is distributed on an "AS IS" BASIS,
410 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
411 * See the License for the specific language governing permissions and
412 * limitations under the License.
413 */function s_(){return"undefined"==typeof navigator||!navigator||!("onLine"in navigator)||"boolean"!=typeof navigator.onLine||"http:"!==i_()&&"https:"!==i_()&&!function(){const e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}()&&!("connection"in navigator)||navigator.onLine}
414/**
415 * @license
416 * Copyright 2020 Google LLC
417 *
418 * Licensed under the Apache License, Version 2.0 (the "License");
419 * you may not use this file except in compliance with the License.
420 * You may obtain a copy of the License at
421 *
422 *   http://www.apache.org/licenses/LICENSE-2.0
423 *
424 * Unless required by applicable law or agreed to in writing, software
425 * distributed under the License is distributed on an "AS IS" BASIS,
426 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
427 * See the License for the specific language governing permissions and
428 * limitations under the License.
429 */
430class a_{constructor(e,t){this.shortDelay=e,this.longDelay=t,r_(t>e,"Short delay should be less than long delay!"),this.isMobile="undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(sv())||"object"==typeof navigator&&"ReactNative"===navigator.product}get(){return s_()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}
431/**
432 * @license
433 * Copyright 2020 Google LLC
434 *
435 * Licensed under the Apache License, Version 2.0 (the "License");
436 * you may not use this file except in compliance with the License.
437 * You may obtain a copy of the License at
438 *
439 *   http://www.apache.org/licenses/LICENSE-2.0
440 *
441 * Unless required by applicable law or agreed to in writing, software
442 * distributed under the License is distributed on an "AS IS" BASIS,
443 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
444 * See the License for the specific language governing permissions and
445 * limitations under the License.
446 */function c_(e,t){r_(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}
447/**
448 * @license
449 * Copyright 2020 Google LLC
450 *
451 * Licensed under the Apache License, Version 2.0 (the "License");
452 * you may not use this file except in compliance with the License.
453 * You may obtain a copy of the License at
454 *
455 *   http://www.apache.org/licenses/LICENSE-2.0
456 *
457 * Unless required by applicable law or agreed to in writing, software
458 * distributed under the License is distributed on an "AS IS" BASIS,
459 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
460 * See the License for the specific language governing permissions and
461 * limitations under the License.
462 */class l_{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!=typeof self&&"fetch"in self?self.fetch:"undefined"!=typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!=typeof fetch?fetch:void n_("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!=typeof self&&"Headers"in self?self.Headers:"undefined"!=typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!=typeof Headers?Headers:void n_("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!=typeof self&&"Response"in self?self.Response:"undefined"!=typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!=typeof Response?Response:void n_("Could not find Response implementation, make sure you call FetchProvi
462der.initialize() with an appropriate polyfill")}}
463/**
464 * @license
465 * Copyright 2020 Google LLC
466 *
467 * Licensed under the Apache License, Version 2.0 (the "License");
468 * you may not use this file except in compliance with the License.
469 * You may obtain a copy of the License at
470 *
471 *   http://www.apache.org/licenses/LICENSE-2.0
472 *
473 * Unless required by applicable law or agreed to in writing, software
474 * distributed under the License is distributed on an "AS IS" BASIS,
475 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
476 * See the License for the specific language governing permissions and
477 * limitations under the License.
478 */const u_={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},h_=new a_(3e4,6e4);
479/**
480 * @license
481 * Copyright 2020 Google LLC
482 *
483 * Licensed under the Apache License, Version 2.0 (the "License");
484 * you may not use this file except in compliance with the License.
485 * You may obtain a copy of the License at
486 *
487 *   http://www.apache.org/licenses/LICENSE-2.0
488 *
489 * Unless required by applicable law or agreed to in writing, software
490 * distributed under the License is distributed on an "AS IS" BASIS,
491 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
492 * See the License for the specific language governing permissions and
493 * limitations under the License.
494 */function f_(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function d_(e,t,n,r,o={}){return p_(e,o,async()=>{let o={},i={};r&&("GET"===t?i=r:o={body:JSON.stringify(r)});const s=pv(Object.assign({key:e.config.apiKey},i)).slice(1),a=await e._getAdditionalHeaders();return a["Content-Type"]="application/json",e.languageCode&&(a["X-Firebase-Locale"]=e.languageCode),l_.fetch()(m_(e,e.config.apiHost,n,s),Object.assign({method:t,headers:a,referrerPolicy:"no-referrer"},o))})}async function p_(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},u_),t);try{const t=new g_(e),o=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const i=await o.json();if("needConfirmation"in i)throw y_(e,"account-exists-with-different-credential",i);if(o.ok&&!("errorMessage"in i))return i;{const t=o.ok?i.errorMessage:i.error.message,[n,s]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw y_(e,"credential-already-in-use",i);if("EMAIL_EXISTS"===n)throw y_(e,"email-already-in-use",i);if("USER_DISABLED"===n)throw y_(e,"user-disabled",i);const a=r[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(s)throw Jb(e,a,s);Qb(e,a)}}catch(o){if(o instanceof lv)throw o;Qb(e,"network-request-failed",{message:String(o)})}}function m_(e,t,n,r){const o=`${t}${n}?${r}`;return e.config.emulator?c_(e.config,o):`${e.config.apiScheme}://${o}`}class g_{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>
vendor: 4,566 bytes, lines 494-563
494{this.timer=setTimeout(()=>t(Xb(this.auth,"network-request-failed")),h_.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function y_(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const o=Xb(e,t,r);return o.customData._tokenResponse=n,o}
495/**
496 * @license
497 * Copyright 2020 Google LLC
498 *
499 * Licensed under the Apache License, Version 2.0 (the "License");
500 * you may not use this file except in compliance with the License.
501 * You may obtain a copy of the License at
502 *
503 *   http://www.apache.org/licenses/LICENSE-2.0
504 *
505 * Unless required by applicable law or agreed to in writing, software
506 * distributed under the License is distributed on an "AS IS" BASIS,
507 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
508 * See the License for the specific language governing permissions and
509 * limitations under the License.
510 */async function v_(e,t){return d_(e,"POST","/v1/accounts:lookup",t)}
511/**
512 * @license
513 * Copyright 2020 Google LLC
514 *
515 * Licensed under the Apache License, Version 2.0 (the "License");
516 * you may not use this file except in compliance with the License.
517 * You may obtain a copy of the License at
518 *
519 *   http://www.apache.org/licenses/LICENSE-2.0
520 *
521 * Unless required by applicable law or agreed to in writing, software
522 * distributed under the License is distributed on an "AS IS" BASIS,
523 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
524 * See the License for the specific language governing permissions and
525 * limitations under the License.
526 */function b_(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(t){}}function __(e){return 1e3*Number(e)}function w_(e){const[t,n,r]=e.split(".");if(void 0===t||void 0===n||void 0===r)return Yb("JWT malformed, contained fewer than 3 sections"),null;try{const e=Xy(n);return e?JSON.parse(e):(Yb("Failed to decode base64 JWT payload"),null)}catch(o){return Yb("Caught error parsing JWT payload as JSON",null==o?void 0:o.toString()),null}}function k_(e){const t=w_(e);return t_(t,"internal-error"),t_(void 0!==t.exp,"internal-error"),t_(void 0!==t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}
527/**
528 * @license
529 * Copyright 2020 Google LLC
530 *
531 * Licensed under the Apache License, Version 2.0 (the "License");
532 * you may not use this file except in compliance with the License.
533 * You may obtain a copy of the License at
534 *
535 *   http://www.apache.org/licenses/LICENSE-2.0
536 *
537 * Unless required by applicable law or agreed to in writing, software
538 * distributed under the License is distributed on an "AS IS" BASIS,
539 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
540 * See the License for the specific language governing permissions and
541 * limitations under the License.
542 */async function E_(e,t,n=!1){if(n)return t;try{return await t}catch(r){throw r instanceof lv&&function({code:e}){return"auth/user-disabled"===e||"auth/user-token-expired"===e}
543/**
544 * @license
545 * Copyright 2020 Google LLC
546 *
547 * Licensed under the Apache License, Version 2.0 (the "License");
548 * you may not use this file except in compliance with the License.
549 * You may obtain a copy of the License at
550 *
551 *   http://www.apache.org/licenses/LICENSE-2.0
552 *
553 * Unless required by applicable law or agreed to in writing, software
554 * distributed under the License is distributed on an "AS IS" BASIS,
555 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
556 * See the License for the specific language governing permissions and
557 * limitations under the License.
558 */(r)&&e.auth.currentUser===e&&await e.auth.signOut(),r}}class T_{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;const e=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,e)}}schedule(e=!1){if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){return void("auth/network-request-failed"===(null==e?void 0:e.code)&&this.schedule(!0))}this.schedule()}}
559/**
560 * @license
561 * Copyright 2020 Google LLC
562 *
563 * Licensed under the Apache License, Version 2.0 (the "License");
564 * you may not use this file except in compliance with the License.
565 * You may obtain a copy of the License at
566 *
567 *   http://www.apache.org/licenses/LICENSE-2.0
568 *
569 * Unless required by applicable law or agreed to in writing, software
570 * distributed under the License is distributed on an "AS IS" BASIS,
571 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
572 * See the License for the specific language governing permissions and
573 * limitations under the License.
574 */class S_{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=b_(this.lastLoginAt),this.creationTime=b_(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}
575/**
576 * @license
577 * Copyright 2019 Google LLC
578 *
579 * Licensed under the Apache License, Version 2.0 (the "License");
580 * you may not use this file except in compliance with the License.
581 * You may obtain a copy of the License at
582 *
583 *   http://www.apache.org/licenses/LICENSE-2.0
584 *
585 * Unless required by applicable law or agreed to in writing, software
586 * distributed under the License is distributed on an "AS IS" BASIS,
587 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
588 * See the License for the specific language governing permissions and
589 * limitations under the License.
590 */async function x_(e){var t;const n=e.auth,r=await e.getIdToken(),o=await E_(e,v_(n,{idToken:r}));t_(null==o?void 0:o.users.length,n,"internal-error");const i=o.users[0];e._notifyReloadListener(i);const s=(null===(t=i.providerUserInfo)||void 0===t?void 0:t.length)?O_(i.providerUserInfo):[],a=(c=e.providerData,l=s,[...c.filter(e=>!l.some(t=>t.providerId===e.providerId)),...l]);var c,l;const u=e.isAnonymous,h=!(e.email&&i.passwordHash||(null==a?void 0:a.length)),f=!!u&&h,d={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:a,metadata:new S_(i.createdAt,i.lastLoginAt),isAnonymous:f};Object.assign(e,d)}function O_(e){return e.map(e=>{var{providerId:t}=e,n=$b(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})}
591/**
592 * @license
593 * Copyright 2020 Google LLC
594 *
595 * Licensed under the Apache License, Version 2.0 (the "License");
596 * you may not use this file except in compliance with the License.
597 * You may obtain a copy of the License at
598 *
599 *   http://www.apache.org/licenses/LICENSE-2.0
600 *
601 * Unless required by applicable law or agreed to in writing, software
602 * distributed under the License is distributed on an "AS IS" BASIS,
603 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
604 * See the License for the specific language governing permissions and
605 * limitations under the License.
606 */
607/**
608 * @license
609 * Copyright 2020 Google LLC
610 *
611 * Licensed under the Apache License, Version 2.0 (the "License");
612 * you may not use this file except in compliance with the License.
613 * You may obtain a copy of the License at
614 *
615 *   http://www.apache.org/licenses/LICENSE-2.0
616 *
617 * Unless required by applicable law or agreed to in writing, software
618 * distributed under the License is distributed on an "AS IS" BASIS,
619 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
620 * See the License for the specific language governing permissions and
621 * limitations under the License.
622 */
623class A_{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){t_(e.idToken,"internal-error"),t_(void 0!==e.idToken,"internal-error"),t_(void 0!==e.refreshToken,"internal-error");const t="expiresIn"in e&&void 0!==e.expiresIn?Number(e.expiresIn):k_(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){t_(0!==e.length,"internal-error");const t=k_(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e,t=!1){return t||!this.accessToken||this.isExpired?(t_(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null):this.accessToken}clearRefreshToken(){this.refreshToken=null}
623async refresh(e,t){const{accessToken:n,refreshToken:r,expiresIn:o}=await async function(e,t){const n=await p_(e,{},async()=>{const n=pv({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:o}=e.config,i=m_(e,r,"/v1/token",`key=${o}`),s=await e._getAdditionalHeaders();return s["Content-Type"]="application/x-www-form-urlencoded",l_.fetch()(i,{method:"POST",headers:s,body:n})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}(e,t);this.updateTokensAndExpiration(n,r,Number(o))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:r,expirationTime:o}=t,i=new A_;return n&&(t_("string"==typeof n,"internal-error",{appName:e}),i.refreshToken=n),r&&(t_("string"==typeof r,"internal-error",{appName:e}),i.accessToken=r),o&&(t_("number"==typeof o,"internal-error",{appName:e}),i.expirationTime=o),i}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new A_,this.toJSON())}_performRefresh(){return n_("not implemented")}}
624/**
625 * @license
626 * Copyright 2020 Google LLC
627 *
628 * Licensed under the Apache License, Version 2.0 (the "License");
629 * you may not use this file except in compliance with the License.
630 * You may obtain a copy of the License at
631 *
632 *   http://www.apache.org/licenses/LICENSE-2.0
633 *
634 * Unless required by applicable law or agreed to in writing, software
635 * distributed under the License is distributed on an "AS IS" BASIS,
636 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
637 * See the License for the specific language governing permissions and
638 * limitations under the License.
639 */function C_(e,t){t_("string"==typeof e||void 0===e,"internal-error",{appName:t})}
vendor: 5,584 bytes, lines 639-644
639class N_{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,o=$b(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new T_(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?[...o.providerData]:[],this.metadata=new S_(o.createdAt||void 0,o.lastLoginAt||void 0)}async getIdToken(e){const t=await E_(this,this.stsTokenManager.getToken(this.auth,e));return t_(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return async function(e,t=!1){const n=yv(e),r=await n.getIdToken(t),o=w_(r);t_(o&&o.exp&&o.auth_time&&o.iat,n.auth,"internal-error");const i="object"==typeof o.firebase?o.firebase:void 0,s=null==i?void 0:i.sign_in_provider;return{claims:o,token:r,authTime:b_(__(o.auth_time)),issuedAtTime:b_(__(o.iat)),expirationTime:b_(__(o.exp)),signInProvider:s||null,signInSecondFactor:(null==i?void 0:i.sign_in_second_factor)||null}}(this,e)}reload(){return async function(e){const t=yv(e);await x_(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}(this)}_assign(e){this!==e&&(t_(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(e=>Object.assign({},e)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new N_(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){t_(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await x_(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(xb(this.auth.app))return Promise.reject(Zb(this.auth));const e=await this.getIdToken();return await E_(this,async function(e,t){return d_(e,"POST","/v1/accounts:delete",t)}(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,r,o,i,s,a,c,l;const u=null!==(n=t.displayName)&&void 0!==n?n:void 0,h=null!==(r=t.email)&&void 0!==r?r:void 0,f=null!==(o=t.phoneNumber)&&void 0!==o?o:void 0,d=null!==(i=t.photoURL)&&void 0!==i?i:void 0,p=null!==(s=t.tenantId)&&void 0!==s?s:void 0,m=null!==(a=t._redirectEventId)&&void 0!==a?a:void 0,g=null!==(c=t.createdAt)&&void 0!==c?c:void 0,y=null!==(l=t.lastLoginAt)&&void 0!==l?l:void 0,{uid:v,emailVerified:b,isAnonymous:_,providerData:w,stsTokenManager:k}=t;t_(v&&k,e,"internal-error");const E=A_.fromJSON(this.name,k);t_("string"==typeof v,e,"internal-error"),C_(u,e.name),C_(h,e.name),t_("boolean"==typeof b,e,"internal-error"),t_("boolean"==typeof _,e,"internal-error"),C_(f,e.name),C_(d,e.name),C_(p,e.name),C_(m,e.name),C_(g,e.name),C_(y,e.name);const T=new N_({uid:v,auth:e,email:h,emailVerified:b,displayName:u,isAnonymous:_,photoURL:d,phoneNumber:f,tenantId:p,stsTokenManager:E,createdAt:g,lastLoginAt:y});return w&&Array.isArray(w)&&(T.providerData=w.map(e=>Object.assign({},e))),m&&(T._redirectEventId=m),T}static async _fromIdTokenResponse(e,t,n=!1){const r=new A_;r.updateFromServerResponse(t);const o=new N_({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await x_(o),o}static async _fromGetAccountInfoResponse(e,t,n){const r=t.users[0];t_(void 0!==r.localId,"internal-error");const o=void 0!==r.providerUserInfo?O_(r.providerUserInfo):[],i=!(r.email&&r.passwordHash||(null==o?void 0:o.length)),s=new A_;s.updateFromIdToken(n);const a=new N_({uid:r.localId,auth:e,stsTokenManager:s,isAnonymous:i}),c={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:o,metadata:new S_(r.createdAt,r.lastLoginAt),isAnonymous:!(r.email&&r.passwordHash||(null==o?void 0:o.length))};return Object.assign(a,c),a}}
640/**
641 * @license
642 * Copyright 2020 Google LLC
643 *
644 * Licensed under the Apache License, Version 2.0 (the "License");
645 * you may not use this file except in compliance with the License.
646 * You may obtain a copy of the License at
647 *
648 *   http://www.apache.org/licenses/LICENSE-2.0
649 *
650 * Unless required by applicable law or agreed to in writing, software
651 * distributed under the License is distributed on an "AS IS" BASIS,
652 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
653 * See the License for the specific language governing permissions and
654 * limitations under the License.
655 */const I_=new Map;function L_(e){r_(e instanceof Function,"Expected a class definition");let t=I_.get(e);return t?(r_(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,I_.set(e,t),t)}
656/**
657 * @license
658 * Copyright 2019 Google LLC
659 *
660 * Licensed under the Apache License, Version 2.0 (the "License");
661 * you may not use this file except in compliance with the License.
662 * You may obtain a copy of the License at
663 *
664 *   http://www.apache.org/licenses/LICENSE-2.0
665 *
666 * Unless required by applicable law or agreed to in writing, software
667 * distributed under the License is distributed on an "AS IS" BASIS,
668 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
669 * See the License for the specific language governing permissions and
670 * limitations under the License.
671 */class P_{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}P_.type="NONE";const R_=P_;
672/**
673 * @license
674 * Copyright 2019 Google LLC
675 *
676 * Licensed under the Apache License, Version 2.0 (the "License");
677 * you may not use this file except in compliance with the License.
678 * You may obtain a copy of the License at
679 *
680 *   http://www.apache.org/licenses/LICENSE-2.0
681 *
682 * Unless required by applicable law or agreed to in writing, software
683 * distributed under the License is distributed on an "AS IS" BASIS,
684 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
685 * See the License for the specific language governing permissions and
686 * limitations under the License.
687 */function D_(e,t,n){return`firebase:${e}:${t}:${n}`}class M_{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:r,name:o}=this.auth;this.fullUserKey=D_(this.userKey,r.apiKey,o),this.fullPersistenceKey=D_("persistence",r.apiKey,o),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?N_._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t,n="authUser"){if(!t.length)return new M_(L_(R_),e,n);const r=(await Promise.all(t.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e);let o=r[0]||L_(R_);const i=D_(n,e.config.apiKey,e.name);let s=null;for(const l of t)try{const t=await l._get(i);if(t){const n=N_._fromJSON(e,t);l!==o&&(s=n),o=l;break}}catch(c){}const a=r.filter(e=>e._shouldAllowMigration);return o._shouldAllowMigration&&a.length?(o=a[0],s&&await o._set(i,s.toJSON()),await Promise.all(t.map(async e=>{if(e!==o)try{await e._remove(i)}catch(c){}})),new M_(o,e,n)):new M_(o,e,n)}}
688/**
689 * @license
690 * Copyright 2020 Google LLC
691 *
692 * Licensed under the Apache License, Version 2.0 (the "License");
693 * you may not use this file except in compliance with the License.
694 * You may obtain a copy of the License at
695 *
696 *   http://www.apache.org/licenses/LICENSE-2.0
697 *
698 * Unless required by applicable law or agreed to in writing, softw
698are
699 * distributed under the License is distributed on an "AS IS" BASIS,
700 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
701 * See the License for the specific language governing permissions and
702 * limitations under the License.
703 */function j_(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(B_(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(U_(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(z_(t))return"Blackberry";if($_(t))return"Webos";if(q_(t))return"Safari";if((t.includes("chrome/")||F_(t))&&!t.includes("edge/"))return"Chrome";if(V_(t))return"Android";{const t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=e.match(t);if(2===(null==n?void 0:n.length))return n[1]}return"Other"}function U_(e=sv()){return/firefox\//i.test(e)}function q_(e=sv()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function F_(e=sv()){return/crios\//i.test(e)}function B_(e=sv()){return/iemobile/i.test(e)}function V_(e=sv()){return/android/i.test(e)}function z_(e=sv()){return/blackberry/i.test(e)}function $_(e=sv()){return/webos/i.test(e)}function H_(e=sv()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function W_(){return function(){const e=sv();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}()&&10===document.documentMode}function G_(e=sv()){return H_(e)||V_(e)||$_(e)||z_(e)||/windows phone/i.test(e)||B_(e)}
704/**
705 * @license
706 * Copyright 2020 Google LLC
707 *
708 * Licensed under the Apache License, Version 2.0 (the "License");
709 * you may not use this file except in compliance with the License.
710 * You may obtain a copy of the License at
711 *
712 *   http://www.apache.org/licenses/LICENSE-2.0
713 *
714 * Unless required by applicable law or agreed to in writing, software
715 * distributed under the License is distributed on an "AS IS" BASIS,
716 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
717 * See the License for the specific language governing permissions and
718 * limitations under the License.
719 */
720function K_(e,t=[]){let n;switch(e){case"Browser":n=j_(sv());break;case"Worker":n=`${j_(sv())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${Cb}/${r}`}
721/**
722 * @license
723 * Copyright 2022 Google LLC
724 *
725 * Licensed under the Apache License, Version 2.0 (the "License");
726 * you may not use this file except in compliance with the License.
727 * You may obtain a copy of the License at
728 *
729 *   http://www.apache.org/licenses/LICENSE-2.0
730 *
731 * Unless required by applicable law or agreed to in writing, software
732 * distributed under the License is distributed on an "AS IS" BASIS,
733 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
734 * See the License for the specific language governing permissions and
735 * limitations under the License.
736 */class Y_{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise((n,r)=>{try{n(e(t))}catch(o){r(o)}});n.onAbort=t,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(n){t.reverse();for(const e of t)try{e()}catch(fV){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null==n?void 0:n.message})}}}
737/**
738 * @license
739 * Copyright 2023 Google LLC
740 *
741 * Licensed under the Apache License, Version 2.0 (the "License");
742 * you may not use this file except in compliance with the License.
743 * You may obtain a copy of the License at
744 *
745 *   http://www.apache.org/licenses/LICENSE-2.0
746 *
747 * Unless required by applicable law or agreed to in writing, software
748 * distributed under the License is distributed on an "AS IS" BASIS,
749 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
750 * See the License for the specific language governing permissions and
751 * limitations under the License.
752 */class Q_{constructor(e){var t,n,r,o;const i=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=i.minPasswordLength)&&void 0!==t?t:6,i.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=i.maxPasswordLength),void 0!==i.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=i.containsLowercaseCharacter),void 0!==i.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=i.containsUppercaseCharacter),void 0!==i.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=i.containsNumericCharacter),void 0!==i.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=i.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(r=null===(n=e.allowedNonAlphanumericCharacters)||void 0===n?void 0:n.join(""))&&void 0!==r?r:"",this.forceUpgradeOnSignin=null!==(o=e.forceUpgradeOnSignin)&&void 0!==o&&o,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,n,r,o,i,s;const a={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,a),this.validatePasswordCharacterOptions(e,a),a.isValid&&
752(a.isValid=null===(t=a.meetsMinPasswordLength)||void 0===t||t),a.isValid&&(a.isValid=null===(n=a.meetsMaxPasswordLength)||void 0===n||n),a.isValid&&(a.isValid=null===(r=a.containsLowercaseLetter)||void 0===r||r),a.isValid&&(a.isValid=null===(o=a.containsUppercaseLetter)||void 0===o||o),a.isValid&&(a.isValid=null===(i=a.containsNumericCharacter)||void 0===i||i),a.isValid&&(a.isValid=null===(s=a.containsNonAlphanumericCharacter)||void 0===s||s),a}validatePasswordLengthOptions(e,t){const n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){let n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(t,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,o){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=o))}}
753/**
754 * @license
755 * Copyright 2020 Google LLC
756 *
757 * Licensed under the Apache License, Version 2.0 (the "License");
758 * you may not use this file except in compliance with the License.
759 * You may obtain a copy of the License at
760 *
761 *   http://www.apache.org/licenses/LICENSE-2.0
762 *
763 * Unless required by applicable law or agreed to in writing, software
764 * distributed under the License is distributed on an "AS IS" BASIS,
765 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
766 * See the License for the specific language governing permissions and
767 * limitations under the License.
768 */class X_{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Z_(this),this.idTokenSubscription=new Z_(this),this.beforeStateQueue=new Y_(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Gb,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=L_(t)),this._initializationPromise=this.queue(async()=>{var n,r;if(!this._deleted&&(this.persistenceManager=await M_.create(this,e),!this._deleted)){if(null===(n=this._popupRedirectResolver)||void 0===n?void 0:n._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(o){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null===(r=this.currentUser)||void 0===r?void 0:r.uid)||null,this._deleted||(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void(await this.currentUser.getIdToken())):void(await this._updateCurrentUser(e,!0)):void 0}async initializeCurrentUserFromIdToken(e){try{const t=await v_(this,{idToken:e}),n=await N_._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(n)}catch(t){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",t),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var t;if(xb(this.app)){const e=this.app.settings.authIdToken;return e?new Promise(t=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(e).then(t,t))}):this.directlySetCurrentUser(null)}const n=await this.assertedPersistence.getCurrentUser();let r=n,o=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const n=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,i=null==r?void 0:r._redirectEventId,s=await this.tryRedirectSignIn(e);n&&n!==i||!(null==s?void 0:s.user)||(r=s.user,o=!0)}if(!r)return this.directlySetCurrentUser(null);
vendor: 8,155 bytes, lines 768-789
768if(!r._redirectEventId){if(o)try{await this.beforeStateQueue.runMiddleware(r)}catch(i){r=n,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(i))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return t_(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(n){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await x_(e)}catch(t){if("auth/network-request-failed"!==(null==t?void 0:t.code))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"==typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if(xb(this.app))return Promise.reject(Zb(this));const t=e?yv(e):null;return t&&t_(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&t_(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return xb(this.app)?Promise.reject(Zb(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return xb(this.app)?Promise.reject(Zb(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(L_(e))})}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await async function(e,t={}){return d_(e,"GET","/v2/passwordPolicy",f_(e,t))}
769/**
770 * @license
771 * Copyright 2023 Google LLC
772 *
773 * Licensed under the Apache License, Version 2.0 (the "License");
774 * you may not use this file except in compliance with the License.
775 * You may obtain a copy of the License at
776 *
777 *   http://www.apache.org/licenses/LICENSE-2.0
778 *
779 * Unless required by applicable law or agreed to in writing, software
780 * distributed under the License is distributed on an "AS IS" BASIS,
781 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
782 * See the License for the specific language governing permissions and
783 * limitations under the License.
784 */(this),t=new Q_(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new uv("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise((e,t)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged(()=>{n(),e()},t)}})}async revokeAccessToken(e){if(this.currentUser){const t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await async function(e,t){return d_(e,"POST","/v2/accounts:revokeToken",f_(e,t))}(this,t)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&L_(e)||this._popupRedirectResolver;t_(t,this,"argument-error"),this.redirectPersistenceManager=await M_.create(this,[L_(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return this._isInitialized&&await this.queue(async()=>{}),(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e?this._currentUser:(null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const o="function"==typeof t?t:t.next.bind(t);let i=!1;const s=this._isInitialized?Promise.resolve():this._initializationPromise;if(t_(s,this,"internal-error"),s.then(()=>{i||o(this.currentUser)}),"function"==typeof t){const o=e.addObserver(t,n,r);return()=>{i=!0,o()}}{const n=e.addObserver(t);return()=>{i=!0,n()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return t_(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=K_(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await(null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());n&&(t["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){var e;const t=await(null===(e=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getToken());return(null==t?void 0:t.error)&&function(e,...t){Kb.logLevel<=kv.WARN&&Kb.warn(`Auth (${Cb}): ${e}`,...t)}(`Error while retrieving App Check token: ${t.error}`),null==t?void 0:t.token}}function J_(e){return yv(e)}class Z_{constructor(e){this.auth=e,this.observer=null,this.addObserver=function(e,t){const n=new mv(e,t);return n.subscribe.bind(n)}(e=>this.observer=e)}get next(){return t_(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}
785/**
786 * @license
787 * Copyright 2020 Google LLC
788 *
789 * Licensed under the Apache License, Version 2.0 (the "License");
790 * you may not use this file except in compliance with the License.
791 * You may obtain a copy of the License at
792 *
793 *   http://www.apache.org/licenses/LICENSE-2.0
794 *
795 * Unless required by applicable law or agreed to in writing, software
796 * distributed under the License is distributed on an "AS IS" BASIS,
797 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
798 * See the License for the specific language governing permissions and
799 * limitations under the License.
800 */let ew={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function tw(e,t,n){const r=J_(e);t_(r._canInitEmulator,r,"emulator-config-failed"),t_(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const o=!!(null==n?void 0:n.disableWarnings),i=nw(t),{host:s,port:a}=function(e){const t=nw(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",o=/^(\[[^\]]+\])(:|$)/.exec(r);if(o){const e=o[1];return{host:e,port:rw(r.substr(e.length+1))}}{const[e,t]=r.split(":");return{host:e,port:rw(t)}}}(t),c=null===a?"":`:${a}`;r.config.emulator={url:`${i}//${s}${c}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:a,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:o})}),o||function(){function e(){const e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!=typeof console&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials.");"undefined"!=typeof window&&"undefined"!=typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}
801/**
802 * @license
803 * Copyright 2020 Google LLC
804 *
805 * Licensed under the Apache License, Version 2.0 (the "License");
806 * you may not use this file except in compliance with the License.
807 * You may obtain a copy of the License at
808 *
809 *   http://www.apache.org/licenses/LICENSE-2.0
810 *
811 * Unless required by applicable law or agreed to in writing, software
812 * distributed under the License is distributed on an "AS IS" BASIS,
813 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
814 * See the License for the specific language governing permissions and
815 * limitations under the License.
816 */()}function nw(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function rw(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}class ow{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return n_("not implemented")}_getIdTokenResponse(e){return n_("not implemented")}_linkToIdToken(e,t){return n_("not implemented")}_getReauthenticationResolver(e){return n_("not implemented")}}
817/**
818 * @license
819 * Copyright 2020 Google LLC
820 *
821 * Licensed under the Apache License, Version 2.0 (the "License");
822 * you may not use this file except in compliance with the License.
823 * You may obtain a copy of the License at
824 *
825 *   http://www.apache.org/licenses/LICENSE-2.0
826 *
827 * Unless required by applicable law or agreed to in writing, software
828 * distributed under the License is distributed on an "AS IS" BASIS,
829 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
830 * See the License for the specific language governing permissions and
831 * limitations under the License.
832 */async function iw(e,t){return async function(e,t,n,r,o={}){const i=await d_(e,t,n,r,o);return"mfaPendingCredential"in i&&Qb(e,"multi-factor-auth-required",{_serverResponse:i}),i}(e,"POST","/v1/accounts:signInWithIdp",f_(e,t))}
833/**
834 * @license
835 * Copyright 2020 Google LLC
836 *
837 * Licensed under the Apache License, Version 2.0 (the "License");
838 * you may not use this file except in compliance with the License.
839 * You may obtain a copy of the License at
840 *
841 *   http://www.apache.org/licenses/LICENSE-2.0
842 *
843 * Unless required by applicable law or agreed to in writing, softw
843are
844 * distributed under the License is distributed on an "AS IS" BASIS,
845 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
846 * See the License for the specific language governing permissions and
847 * limitations under the License.
848 */class sw extends ow{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new sw(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):Qb("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"==typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r}=t,o=$b(t,["providerId","signInMethod"]);if(!n||!r)return null;const i=new sw(n,r);return i.idToken=o.idToken||void 0,i.accessToken=o.accessToken||void 0,i.secret=o.secret,i.nonce=o.nonce,i.pendingToken=o.pendingToken||null,i}_getIdTokenResponse(e){return iw(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,iw(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,iw(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=pv(t)}return e}}
849/**
850 * @license
851 * Copyright 2020 Google LLC
852 *
853 * Licensed under the Apache License, Version 2.0 (the "License");
854 * you may not use this file except in compliance with the License.
855 * You may obtain a copy of the License at
856 *
857 *   http://www.apache.org/licenses/LICENSE-2.0
858 *
859 * Unless required by applicable law or agreed to in writing, software
860 * distributed under the License is distributed on an "AS IS" BASIS,
861 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
862 * See the License for the specific language governing permissions and
863 * limitations under the License.
864 */class aw{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}
865/**
866 * @license
867 * Copyright 2019 Google LLC
868 *
869 * Licensed under the Apache License, Version 2.0 (the "License");
870 * you may not use this file except in compliance with the License.
871 * You may obtain a copy of the License at
872 *
873 *   http://www.apache.org/licenses/LICENSE-2.0
874 *
875 * Unless required by applicable law or agreed to in writing, software
876 * distributed under the License is distributed on an "AS IS" BASIS,
877 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
878 * See the License for the specific language governing permissions and
879 * limitations under the License.
880 */class cw extends aw{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}
881/**
882 * @license
883 * Copyright 2020 Google LLC
884 *
885 * Licensed under the Apache License, Version 2.0 (the "License");
886 * you may not use this file except in compliance with the License.
887 * You may obtain a copy of the License at
888 *
889 *   http://www.apache.org/licenses/LICENSE-2.0
890 *
891 * Unless required by applicable law or agreed to in writing, software
892 * distributed under the License is distributed on an "AS IS" BASIS,
893 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
894 * See the License for the specific language governing permissions and
895 * limitations under the License.
896 */class lw extends cw{constructor(){super("facebook.com")}static credential(e){return sw._fromParams({providerId:lw.PROVIDER_ID,signInMethod:lw.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return lw.credentialFromTaggedObject(e)}static credentialFromError(e){return lw.credentialFromTaggedObject(e.customData||{})}
vendor: 4,288 bytes, lines 896-958
896static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return lw.credential(e.oauthAccessToken)}catch(t){return null}}}lw.FACEBOOK_SIGN_IN_METHOD="facebook.com",lw.PROVIDER_ID="facebook.com";
897/**
898 * @license
899 * Copyright 2020 Google LLC
900 *
901 * Licensed under the Apache License, Version 2.0 (the "License");
902 * you may not use this file except in compliance with the License.
903 * You may obtain a copy of the License at
904 *
905 *   http://www.apache.org/licenses/LICENSE-2.0
906 *
907 * Unless required by applicable law or agreed to in writing, software
908 * distributed under the License is distributed on an "AS IS" BASIS,
909 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
910 * See the License for the specific language governing permissions and
911 * limitations under the License.
912 */
913class uw extends cw{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return sw._fromParams({providerId:uw.PROVIDER_ID,signInMethod:uw.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return uw.credentialFromTaggedObject(e)}static credentialFromError(e){return uw.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:t,oauthAccessToken:n}=e;if(!t&&!n)return null;try{return uw.credential(t,n)}catch(r){return null}}}uw.GOOGLE_SIGN_IN_METHOD="google.com",uw.PROVIDER_ID="google.com";
914/**
915 * @license
916 * Copyright 2020 Google LLC
917 *
918 * Licensed under the Apache License, Version 2.0 (the "License");
919 * you may not use this file except in compliance with the License.
920 * You may obtain a copy of the License at
921 *
922 *   http://www.apache.org/licenses/LICENSE-2.0
923 *
924 * Unless required by applicable law or agreed to in writing, software
925 * distributed under the License is distributed on an "AS IS" BASIS,
926 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
927 * See the License for the specific language governing permissions and
928 * limitations under the License.
929 */
930class hw extends cw{constructor(){super("github.com")}static credential(e){return sw._fromParams({providerId:hw.PROVIDER_ID,signInMethod:hw.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return hw.credentialFromTaggedObject(e)}static credentialFromError(e){return hw.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return hw.credential(e.oauthAccessToken)}catch(t){return null}}}hw.GITHUB_SIGN_IN_METHOD="github.com",hw.PROVIDER_ID="github.com";
931/**
932 * @license
933 * Copyright 2020 Google LLC
934 *
935 * Licensed under the Apache License, Version 2.0 (the "License");
936 * you may not use this file except in compliance with the License.
937 * You may obtain a copy of the License at
938 *
939 *   http://www.apache.org/licenses/LICENSE-2.0
940 *
941 * Unless required by applicable law or agreed to in writing, software
942 * distributed under the License is distributed on an "AS IS" BASIS,
943 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
944 * See the License for the specific language governing permissions and
945 * limitations under the License.
946 */
947class fw extends cw{constructor(){super("twitter.com")}static credential(e,t){return sw._fromParams({providerId:fw.PROVIDER_ID,signInMethod:fw.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return fw.credentialFromTaggedObject(e)}static credentialFromError(e){return fw.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:t,oauthTokenSecret:n}=e;if(!t||!n)return null;try{return fw.credential(t,n)}catch(r){return null}}}fw.TWITTER_SIGN_IN_METHOD="twitter.com",fw.PROVIDER_ID="twitter.com";
948/**
949 * @license
950 * Copyright 2020 Google LLC
951 *
952 * Licensed under the Apache License, Version 2.0 (the "License");
953 * you may not use this file except in compliance with the License.
954 * You may obtain a copy of the License at
955 *
956 *   http://www.apache.org/licenses/LICENSE-2.0
957 *
958 * Unless required by applicable law or agreed to in writing, softw
958are
959 * distributed under the License is distributed on an "AS IS" BASIS,
960 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
961 * See the License for the specific language governing permissions and
962 * limitations under the License.
963 */
964class dw{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n,r=!1){const o=await N_._fromIdTokenResponse(e,n,r),i=pw(n);return new dw({user:o,providerId:i,_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const r=pw(n);return new dw({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function pw(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}
965/**
966 * @license
967 * Copyright 2020 Google LLC
968 *
969 * Licensed under the Apache License, Version 2.0 (the "License");
970 * you may not use this file except in compliance with the License.
971 * You may obtain a copy of the License at
972 *
973 *   http://www.apache.org/licenses/LICENSE-2.0
974 *
975 * Unless required by applicable law or agreed to in writing, software
976 * distributed under the License is distributed on an "AS IS" BASIS,
977 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
978 * See the License for the specific language governing permissions and
979 * limitations under the License.
980 */class mw extends lv{constructor(e,t,n,r){var o;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,mw.prototype),this.customData={appName:e.name,tenantId:null!==(o=e.tenantId)&&void 0!==o?o:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new mw(e,t,n,r)}}function gw(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(n=>{if("auth/multi-factor-auth-required"===n.code)throw mw._fromErrorAndOperation(e,n,t,r);throw n})}const yw="__sak";
981/**
982 * @license
983 * Copyright 2019 Google LLC
984 *
985 * Licensed under the Apache License, Version 2.0 (the "License");
986 * you may not use this file except in compliance with the License.
987 * You may obtain a copy of the License at
988 *
989 *   http://www.apache.org/licenses/LICENSE-2.0
990 *
991 * Unless required by applicable law or agreed to in writing, software
992 * distributed under the License is distributed on an "AS IS" BASIS,
993 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
994 * See the License for the specific language governing permissions and
995 * limitations under the License.
996 */class vw{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(yw,"1"),this.storage.removeItem(yw),Promise.resolve(!0)):Promise.resolve(!1)}catch(e){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}
997/**
998 * @license
999 * Copyright 2020 Google LLC
1000 *
1001 * Licensed under the Apache License, Version 2.0 (the "License");
1002 * you may not use this file except in compliance with the License.
1003 * You may obtain a copy of the License at
1004 *
1005 *   http://www.apache.org/licenses/LICENSE-2.0
1006 *
1007 * Unless required by applicable law or agreed to in writing, software
1008 * distributed under the License is distributed on an "AS IS" BASIS,
1009 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1010 * See the License for the specific language governing permissions and
1011 * limitations under the License.
1012 */class bw extends vw{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function(){const e=sv();return q_(e)||H_(e)}()&&function(){try{return!(!window||window===window.top)}catch(e){return!1}}(),this.fallbackToPolling=G_(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}
1012onStorageEvent(e,t=!1){if(!e.key)return void this.forAllChangedKeys((e,t,n)=>{this.notifyListeners(e,n)});const n=e.key;if(t?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const r=this.storage.getItem(n);if(e.newValue!==r)null!==e.newValue?this.storage.setItem(n,e.newValue):this.storage.removeItem(n);else if(this.localCache[n]===e.newValue&&!t)return}const r=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},o=this.storage.getItem(n);W_()&&o!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,10):r()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}bw.type="LOCAL";const _w=bw;
1013/**
1014 * @license
1015 * Copyright 2020 Google LLC
1016 *
1017 * Licensed under the Apache License, Version 2.0 (the "License");
1018 * you may not use this file except in compliance with the License.
1019 * You may obtain a copy of the License at
1020 *
1021 *   http://www.apache.org/licenses/LICENSE-2.0
1022 *
1023 * Unless required by applicable law or agreed to in writing, software
1024 * distributed under the License is distributed on an "AS IS" BASIS,
1025 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1026 * See the License for the specific language governing permissions and
1027 * limitations under the License.
1028 */class ww extends vw{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,t){}_removeListener(e,t){}}ww.type="SESSION";const kw=ww;
1029/**
1030 * @license
1031 * Copyright 2019 Google LLC
1032 *
1033 * Licensed under the Apache License, Version 2.0 (the "License");
1034 * you may not use this file except in compliance with the License.
1035 * You may obtain a copy of the License at
1036 *
1037 *   http://www.apache.org/licenses/LICENSE-2.0
1038 *
1039 * Unless required by applicable law or agreed to in writing, software
1040 * distributed under the License is distributed on an "AS IS" BASIS,
1041 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1042 * See the License for the specific language governing permissions and
1043 * limitations under the License.
1044 */
1045/**
1046 * @license
1047 * Copyright 2019 Google LLC
1048 *
1049 * Licensed under the Apache License, Version 2.0 (the "License");
1050 * you may not use this file except in compliance with the License.
1051 * You may obtain a copy of the License at
1052 *
1053 *   http://www.apache.org/licenses/LICENSE-2.0
1054 *
1055 * Unless required by applicable law or agreed to in writing, software
1056 * distributed under the License is distributed on an "AS IS" BASIS,
1057 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1058 * See the License for the specific language governing permissions and
1059 * limitations under the License.
1060 */
1061class Ew{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find(t=>t.isListeningto(e));if(t)return t;const n=new Ew(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:r,data:o}=t.data,i=this.handlersMap[r];if(!(null==i?void 0:i.size))return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:r});const s=Array.from(i).map(async e=>e(t.origin,o)),a=await function(e){return Promise.all(e.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(t){return{fulfilled:!1,reason:t}}}))}(s);t.ports[0].postMessage({status:"done",eventId:n,eventType:r,response:a})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}
1062/**
1063 * @license
1064 * Copyright 2020 Google LLC
1065 *
1066 * Licensed under the Apache License, Version 2.0 (the "License");
1067 * you may not use this file except in compliance with the License.
1068 * You may obtain a copy of the License at
1069 *
1070 *   http://www.apache.org/licenses/LICENSE-2.0
1071 *
1072 * Unless required by applicable law or agreed to in writing, software
1073 * distributed under the License is distributed on an "AS IS" BASIS,
1074 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1075 * See the License for the specific language governing permissions and
1076 * limitations under the License.
1077 */
1078function Tw(e="",t=10){let n="";for(let r=0;r<t;r++)n+=Math.floor(10*Math.random());return e+n}
1079/**
1080 * @license
1081 * Copyright 2019 Google LLC
1082 *
1083 * Licensed under the Apache License, Version 2.0 (the "License");
1084 * you may not use this file except in compliance with the License.
1085 * You may obtain a copy of the License at
1086 *
1087 *   http://www.apache.org/licenses/LICENSE-2.0
1088 *
1089 * Unless required by applicable law or agreed to in writing, software
1090 * distributed under the License is distributed on an "AS IS" BASIS,
1091 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1092 * See the License for the specific language governing permissions and
1093 * limitations under the License.
1094 */Ew.receivers=[];class Sw{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t,n=50){const r="undefined"!=typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let o,i;return new Promise((s,a)=>{const c=Tw("",20);r.port1.start();const l=setTimeout(()=>{a(new Error("unsupported_event"))},n);i={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===c)switch(t.data.status){case"ack":clearTimeout(l),o=setTimeout(()=>{a(new Error("timeout"))},3e3);break;case"done":clearTimeout(o),s(t.data.response);break;default:clearTimeout(l),clearTimeout(o),a(new Error("invalid_response"))}}},this.handlers.add(i),r.port1.addEventListener("message",i.onMessage),this.target.postMessage({eventType:e,eventId:c,data:t},[r.port2])}).finally(()=>{i&&this.removeMessageHandler(i)})}}
1095/**
1096 * @license
1097 * Copyright 2020 Google LLC
1098 *
1099 * Licensed under the Apache License, Version 2.0 (the "License");
1100 * you may not use this file except in compliance with the License.
1101 * You may obtain a copy of the License at
1102 *
1103 *   http://www.apache.org/licenses/LICENSE-2.0
1104 *
1105 * Unless required by applicable law or agreed to in writing, software
1106 * distributed under the License is distributed on an "AS IS" BASIS,
1107 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1108 * See the License for the specific language governing permissions and
1109 * limitations under the License.
1110 */function xw(){return window}
1111/**
1112 * @license
1113 * Copyright 2020 Google LLC.
1114 *
1115 * Licensed under the Apache License, Version 2.0 (the "License");
1116 * you may not use this file except in compliance with the License.
1117 * You may obtain a copy of the License at
1118 *
1119 *   http://www.apache.org/licenses/LICENSE-2.0
1120 *
1121 * Unless required by applicable law or agreed to in writing, software
1122 * distributed under the License is distributed on an "AS IS" BASIS,
1123 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1124 * See the License for the specific language governing permissions and
1125 * limitations under the License.
1126 */
1127function Ow(){return void 0!==xw().WorkerGlobalScope&&"function"==typeof xw().importScripts}
1128/**
1129 * @license
1130 * Copyright 2019 Google LLC
1131 *
1132 * Licensed under the Apache License, Version 2.0 (the "License");
1133 * you may not use this file except in compliance with the License.
1134 * You may obtain a copy of the License at
1135 *
1136 *   http://www.apache.org/licenses/LICENSE-2.0
1137 *
1138 * Unless required by applicable law or agreed to in writing, software
1139 * distributed under the License is distributed on an "AS IS" BASIS,
1140 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1141 * See the License for the specific language governing permissions and
1142 * limitations under the License.
1143 */
1144const Aw="firebaseLocalStorageDb",Cw="firebaseLocalStorage",Nw="fbase_key";class Iw{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>
1144{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{t(this.request.error)})})}}function Lw(e,t){return e.transaction([Cw],t?"readwrite":"readonly").objectStore(Cw)}function Pw(){const e=indexedDB.open(Aw,1);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const t=e.result;try{t.createObjectStore(Cw,{keyPath:Nw})}catch(r){n(r)}}),e.addEventListener("success",async()=>{const n=e.result;n.objectStoreNames.contains(Cw)?t(n):(n.close(),await function(){const e=indexedDB.deleteDatabase(Aw);return new Iw(e).toPromise()}(),t(await Pw()))})})}async function Rw(e,t,n){const r=Lw(e,!0).put({[Nw]:t,value:n});return new Iw(r).toPromise()}function Dw(e,t){const n=Lw(e,!0).delete(t);return new Iw(n).toPromise()}class Mw{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db||(this.db=await Pw()),this.db}async _withRetries(e){let t=0;for(;;)try{const t=await this._openDb();return await e(t)}catch(n){if(t++>3)throw n;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return Ow()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Ew._getInstance(Ow()?self:null),this.receiver._subscribe("keyChanged",async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)})),this.receiver._subscribe("ping",async(e,t)=>["keyChanged"])}async initializeSender(){var e,t;if(this.activeServiceWorker=await async function(){if(!(null===navigator||void 0===navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}(),!this.activeServiceWorker)return;this.sender=new Sw(this.activeServiceWorker);const n=await this.sender._send("ping",{},800);n&&(null===(e=n[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=n[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){var t;if(this.sender&&this.activeServiceWorker&&((null===(t=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===t?void 0:t.controller)||null)===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(t){}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await Pw();return await Rw(e,yw,"1"),await Dw(e,yw),!0}catch(e){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite(async()=>(await this._withRetries(n=>Rw(n,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){const t=await this._withRetries(t=>async function(e,t){const n=Lw(e,!1).get(t),r=await new Iw(n).toPromise();return void 0===r?null:r.value}(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>Dw(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(e=>{const t=Lw(e,!1).getAll();return new Iw(t).toPromise()});if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;if(0!==e.length)for(const{fbase_key:r,value:o}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(o)&&(this.notifyListeners(r,o),t.push(r));for(const r of Object.keys(this.localCache))this.localCache[r]&&!n.has(r)&&(this.notifyListeners(r,null),t.push(r));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}Mw.type="LOCAL";const jw=Mw;
1145/**
1146 * @license
1147 * Copyright 2021 Google LLC
1148 *
1149 * Licensed under the Apache License, Version 2.0 (the "License");
1150 * you may not use this file except in compliance with the License.
1151 * You may obtain a copy of the License at
1152 *
1153 *   http://www.apache.org/licenses/LICENSE-2.0
1154 *
1155 * Unless required by applicable law or agreed to in writing, software
1156 * distributed under the License is distributed on an "AS IS" BASIS,
1157 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1158 * See the License for the specific language governing permissions and
1159 * limitations under the License.
1160 */
1161function Uw(e,t){return t?L_(t):(t_(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}
1162/**
1163 * @license
1164 * Copyright 2019 Google LLC
1165 *
1166 * Licensed under the Apache License, Version 2.0 (the "License");
1167 * you may not use this file except in compliance with the License.
1168 * You may obtain a copy of the License at
1169 *
1170 *   http://www.apache.org/licenses/LICENSE-2.0
1171 *
1172 * Unless required by applicable law or agreed to in writing, software
1173 * distributed under the License is distributed on an "AS IS" BASIS,
1174 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1175 * See the License for the specific language governing permissions and
1176 * limitations under the License.
1177 */new a_(3e4,6e4);class qw extends ow{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return iw(e,this._buildIdpRequest())}_linkToIdToken(e,t){return iw(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return iw(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function Fw(e){
1178/**
1179 * @license
1180 * Copyright 2020 Google LLC
1181 *
1182 * Licensed under the Apache License, Version 2.0 (the "License");
1183 * you may not use this file except in compliance with the License.
1184 * You may obtain a copy of the License at
1185 *
1186 *   http://www.apache.org/licenses/LICENSE-2.0
1187 *
1188 * Unless required by applicable law or agreed to in writing, software
1189 * distributed under the License is distributed on an "AS IS" BASIS,
1190 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1191 * See the License for the specific language governing permissions and
1192 * limitations under the License.
1193 */
1194return async function(e,t,n=!1){if(xb(e.app))return Promise.reject(Zb(e));const r="signIn",o=await gw(e,r,t),i=await dw._fromIdTokenResponse(e,r,o);return n||await e._updateCurrentUser(i.user),i}(e.auth,new qw(e),e.bypassAuthState)}function Bw(e){const{auth:t,user:n}=e;return t_(n,t,"internal-error"),
1195/**
1196 * @license
1197 * Copyright 2019 Google LLC
1198 *
1199 * Licensed under the Apache License, Version 2.0 (the "License");
1200 * you may not use this file except in compliance with the License.
1201 * You may obtain a copy of the License at
1202 *
1203 *   http://www.apache.org/licenses/LICENSE-2.0
1204 *
1205 * Unless required by applicable law or agreed to in writing, software
1206 * distributed under the License is distributed on an "AS IS" BASIS,
1207 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1208 * See the License for the specific language governing permissions and
1209 * limitations under the License.
1210 */
1211async function(e,t,n=!1){const{auth:r}=e;if(xb(r.app))return Promise.reject(Zb(r));const o="reauthenticate";try{const i=await E_(e,gw(r,o,t,e),n);t_(i.idToken,r,"internal-error");const s=w_(i.idToken);t_(s,r,"internal-error");const{sub:a}=s;return t_(e.uid===a,r,"user-mismatch"),dw._forOperation(e,o,i)}catch(i){throw"auth/user-not-found"===(null==i?void 0:i.code)&&Qb(r,"user-mismatch"),i}}(n,new qw(e),e.bypassAuthState)}async function Vw(e){const{auth:t,user:n}=e;return t_(n,t,"internal-error"),async function(e,t,n=!1){const r=await E_(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return dw._forOperation(e,"link",r)}(n,new qw(e),e.bypassAuthState)}
1212/**
1213 * @license
1214 * Copyright 2020 Google LLC
1215 *
1216 * Licensed under the Apache License, Version 2.0 (the "License");
1217 * you may not use this file except in compliance with the License.
1218 * You may obtain a copy of the License at
1219 *
1220 *   http://www.apache.org/licenses/LICENSE-2.0
1221 *
1222 * Unless required by applicable law or agreed to in writing, softw
1222are
1223 * distributed under the License is distributed on an "AS IS" BASIS,
1224 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1225 * See the License for the specific language governing permissions and
1226 * limitations under the License.
1227 */class zw{constructor(e,t,n,r,o=!1){this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=o,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise(async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(n){this.reject(n)}})}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:r,tenantId:o,error:i,type:s}=e;if(i)return void this.reject(i);const a={auth:this.auth,requestUri:t,sessionId:n,tenantId:o||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(s)(a))}catch(c){this.reject(c)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return Fw;case"linkViaPopup":case"linkViaRedirect":return Vw;case"reauthViaPopup":case"reauthViaRedirect":return Bw;default:Qb(this.auth,"internal-error")}}resolve(e){r_(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){r_(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}
1228/**
1229 * @license
1230 * Copyright 2020 Google LLC
1231 *
1232 * Licensed under the Apache License, Version 2.0 (the "License");
1233 * you may not use this file except in compliance with the License.
1234 * You may obtain a copy of the License at
1235 *
1236 *   http://www.apache.org/licenses/LICENSE-2.0
1237 *
1238 * Unless required by applicable law or agreed to in writing, software
1239 * distributed under the License is distributed on an "AS IS" BASIS,
1240 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1241 * See the License for the specific language governing permissions and
1242 * limitations under the License.
1243 */const $w=new a_(2e3,1e4);async function Hw(e,t,n){if(xb(e.app))return Promise.reject(Xb(e,"operation-not-supported-in-this-environment"));const r=J_(e);!function(e,t,n){if(!(t instanceof n))throw n.name!==t.constructor.name&&Qb(e,"argument-error"),Jb(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}(e,t,aw);const o=Uw(r,n);return new Ww(r,"signInViaPopup",t,o).executeNotNull()}class Ww extends zw{constructor(e,t,n,r,o){super(e,t,r,o),this.provider=n,this.authWindow=null,this.pollId=null,Ww.currentPopupAction&&Ww.currentPopupAction.cancel(),Ww.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return t_(e,this.auth,"internal-error"),e}async onExecution(){r_(1===this.filter.length,"Popup operations only handle one event");const e=Tw();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(e=>{this.reject(e)}),this.resolver._isIframeWebStorageSupported(this.auth,e=>{e||this.reject(Xb(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(Xb(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Ww.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,n;(null===(n=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===n?void 0:n.closed)?this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Xb(this.auth,"popup-closed-by-user"))},8e3):this.pollId=window.setTimeout(e,$w.get())};e()}}Ww.currentPopupAction=null;
1244/**
1245 * @license
1246 * Copyright 2020 Google LLC
1247 *
1248 * Licensed under the Apache License, Version 2.0 (the "License");
1249 * you may not use this file except in compliance with the License.
1250 * You may obtain a copy of the License at
1251 *
1252 *   http://www.apache.org/licenses/LICENSE-2.0
1253 *
1254 * Unless required by applicable law or agreed to in writing, software
1255 * distributed under the License is distributed on an "AS IS" BASIS,
1256 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1257 * See the License for the specific language governing permissions and
1258 * limitations under the License.
1259 */
1260const Gw="pendingRedirect",Kw=new Map;class Yw extends zw{constructor(e,t,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,n),this.eventId=null}async execute(){let e=Kw.get(this.auth._key());if(!e){try{const t=await async function(e,t){const n=function(e){return D_(Gw,e.config.apiKey,e.name)}(t),r=function(e){return L_(e._redirectPersistence)}(e);if(!(await r._isAvailable()))return!1;const o="true"===await r._get(n);return await r._remove(n),o}(this.resolver,this.auth),n=t?await super.execute():null;e=()=>Promise.resolve(n)}catch(t){e=()=>Promise.reject(t)}Kw.set(this.auth._key(),e)}return this.bypassAuthState||Kw.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}function Qw(e,t){Kw.set(e._key(),t)}async function Xw(e,t,n=!1){if(xb(e.app))return Promise.reject(Zb(e));const r=J_(e),o=Uw(r,t),i=new Yw(r,o,n),s=await i.execute();return s&&!n&&(delete s.user._redirectEventId,await r._persistUserIfCurrent(s.user),await r._setRedirectUser(null,t)),s}
1261/**
1262 * @license
1263 * Copyright 2020 Google LLC
1264 *
1265 * Licensed under the Apache License, Version 2.0 (the "License");
1266 * you may not use this file except in compliance with the License.
1267 * You may obtain a copy of the License at
1268 *
1269 *   http://www.apache.org/licenses/LICENSE-2.0
1270 *
1271 * Unless required by applicable law or agreed to in writing, software
1272 * distributed under the License is distributed on an "AS IS" BASIS,
1273 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1274 * See the License for the specific language governing permissions and
1275 * limitations under the License.
1276 */class Jw{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach(n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return ek(e);default:return!1}}
1277/**
1278 * @license
1279 * Copyright 2020 Google LLC
1280 *
1281 * Licensed under the Apache License, Version 2.0 (the "License");
1282 * you may not use this file except in compliance with the License.
1283 * You may obtain a copy of the License at
1284 *
1285 *   http://www.apache.org/licenses/LICENSE-2.0
1286 *
1287 * Unless required by applicable law or agreed to in writing, software
1288 * distributed under the License is distributed on an "AS IS" BASIS,
1289 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1290 * See the License for the specific language governing permissions and
1291 * limitations under the License.
1292 */(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!ek(e)){const r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(Xb(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Zw(e))}saveEventToCache(e){this.cachedEventUids.add(Zw(e)),this.lastProcessedEventTime=
1292Date.now()}}function Zw(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join("-")}function ek({type:e,error:t}){return"unknown"===e&&"auth/no-auth-event"===(null==t?void 0:t.code)}
1293/**
1294 * @license
1295 * Copyright 2020 Google LLC
1296 *
1297 * Licensed under the Apache License, Version 2.0 (the "License");
1298 * you may not use this file except in compliance with the License.
1299 * You may obtain a copy of the License at
1300 *
1301 *   http://www.apache.org/licenses/LICENSE-2.0
1302 *
1303 * Unless required by applicable law or agreed to in writing, software
1304 * distributed under the License is distributed on an "AS IS" BASIS,
1305 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1306 * See the License for the specific language governing permissions and
1307 * limitations under the License.
1308 */
1309const tk=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,nk=/^https?/;async function rk(e){if(e.config.emulator)return;const{authorizedDomains:t}=await async function(e,t={}){return d_(e,"GET","/v1/projects",t)}(e);for(const r of t)try{if(ok(r))return}catch(n){}Qb(e,"unauthorized-domain")}function ok(e){const t=o_(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const o=new URL(e);return""===o.hostname&&""===r?"chrome-extension:"===n&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===n&&o.hostname===r}if(!nk.test(n))return!1;if(tk.test(e))return r===e;const o=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(r)}
1310/**
1311 * @license
1312 * Copyright 2020 Google LLC.
1313 *
1314 * Licensed under the Apache License, Version 2.0 (the "License");
1315 * you may not use this file except in compliance with the License.
1316 * You may obtain a copy of the License at
1317 *
1318 *   http://www.apache.org/licenses/LICENSE-2.0
1319 *
1320 * Unless required by applicable law or agreed to in writing, software
1321 * distributed under the License is distributed on an "AS IS" BASIS,
1322 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1323 * See the License for the specific language governing permissions and
1324 * limitations under the License.
1325 */const ik=new a_(3e4,6e4);function sk(){const e=xw().___jsl;if(null==e?void 0:e.H)for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}function ak(e){return new Promise((t,n)=>{var r,o,i,s;function a(){sk(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{sk(),n(Xb(e,"network-request-failed"))},timeout:ik.get()})}if(null===(o=null===(r=xw().gapi)||void 0===r?void 0:r.iframes)||void 0===o?void 0:o.Iframe)t(gapi.iframes.getContext());else{if(!(null===(i=xw().gapi)||void 0===i?void 0:i.load)){const t=`__${"iframefcb"}${Math.floor(1e6*Math.random())}`;return xw()[t]=()=>{gapi.load?a():n(Xb(e,"network-request-failed"))},(s=`${ew.gapiScript}?onload=${t}`,ew.loadJS(s)).catch(e=>n(e))}a()}}).catch(e=>{throw ck=null,e})}let ck=null;
1326/**
1327 * @license
1328 * Copyright 2020 Google LLC.
1329 *
1330 * Licensed under the Apache License, Version 2.0 (the "License");
1331 * you may not use this file except in compliance with the License.
1332 * You may obtain a copy of the License at
1333 *
1334 *   http://www.apache.org/licenses/LICENSE-2.0
1335 *
1336 * Unless required by applicable law or agreed to in writing, software
1337 * distributed under the License is distributed on an "AS IS" BASIS,
1338 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1339 * See the License for the specific language governing permissions and
1340 * limitations under the License.
1341 */
1342const lk=new a_(5e3,15e3),uk={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},hk=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function fk(e){const t=e.config;t_(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?c_(t,"emulator/auth/iframe"):`https://${e.config.authDomain}/__/auth/iframe`,r={apiKey:t.apiKey,appName:e.name,v:Cb},o=hk.get(e.config.apiHost);o&&(r.eid=o);const i=e._getFrameworks();return i.length&&(r.fw=i.join(",")),`${n}?${pv(r).slice(1)}`}async function dk(e){const t=await function(e){return ck=ck||ak(e),ck}(e),n=xw().gapi;return t_(n,e,"internal-error"),t.open({where:document.body,url:fk(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:uk,dontclear:!0},t=>new Promise(async(n,r)=>{await t.restyle({setHideOnLeave:!1});const o=Xb(e,"network-request-failed"),i=xw().setTimeout(()=>{r(o)},lk.get());function s(){xw().clearTimeout(i),n(t)}t.ping(s).then(s,()=>{r(o)})}))}
1343/**
1344 * @license
1345 * Copyright 2020 Google LLC.
1346 *
1347 * Licensed under the Apache License, Version 2.0 (the "License");
1348 * you may not use this file except in compliance with the License.
1349 * You may obtain a copy of the License at
1350 *
1351 *   http://www.apache.org/licenses/LICENSE-2.0
1352 *
1353 * Unless required by applicable law or agreed to in writing, software
1354 * distributed under the License is distributed on an "AS IS" BASIS,
1355 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1356 * See the License for the specific language governing permissions and
1357 * limitations under the License.
1358 */const pk={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class mk{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}function gk(e,t,n,r=500,o=600){const i=Math.max((window.screen.availHeight-o)/2,0).toString(),s=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const c=Object.assign(Object.assign({},pk),{width:r.toString(),height:o.toString(),top:i,left:s}),l=sv().toLowerCase();n&&(a=F_(l)?"_blank":n),U_(l)&&(t=t||"http://localhost",c.scrollbars="yes");const u=Object.entries(c).reduce((e,[t,n])=>`${e}${t}=${n},`,"");if(function(e=sv()){var t;return H_(e)&&!!(null===(t=window.navigator)||void 0===t?void 0:t.standalone)}(l)&&"_self"!==a)return function(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}
1359/**
1360 * @license
1361 * Copyright 2021 Google LLC
1362 *
1363 * Licensed under the Apache License, Version 2.0 (the "License");
1364 * you may not use this file except in compliance with the License.
1365 * You may obtain a copy of the License at
1366 *
1367 *   http://www.apache.org/licenses/LICENSE-2.0
1368 *
1369 * Unless required by applicable law or agreed to in writing, software
1370 * distributed under the License is distributed on an "AS IS" BASIS,
1371 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1372 * See the License for the specific language governing permissions and
1373 * limitations under the License.
1374 */(t||"",a),new mk(null);const h=window.open(t||"",a,u);t_(h,e,"popup-blocked");try{h.focus()}catch(f){}return new mk(h)}const yk="__/auth/handler",vk="emulator/auth/handler",bk=encodeURIComponent("fac");async function _k(e,t,n,r,o,i){t_(e.config.authDomain,e,"auth-domain-config-required"),t_(e.config.apiKey,e,"invalid-api-key");const s={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:Cb,eventId:o};if(t instanceof aw){t.setDefaultLanguage(e.languageCode),s.providerId=t.providerId||"",function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(t.getCustomParameters())||(s.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(i||{}))s[e]=t}if(t instanceof cw){const e=t.getScopes().filter(e=>""!==e);e.length>0&&(s.scopes=e.join(","))}e.tenantId&&(s.tid=e.tenantId);const a=s;for(const u of Object.keys(a))void 0===a[u]&&delete a[u];const c=await e._getAppCheckToken(),l=c?`#${bk}=${encodeURIComponent(c)}`:"";return`${function({config:e}){if(!e.emulator)return`https://${e.authDomain}/${yk}`;return c_(e,vk)}
1375/**
1376 * @license
1377 * Copyright 2020 Google LLC
1378 *
1379 * Licensed under the Apache License, Version 2.0 (the "License");
1380 * you may not use this file except in compliance with the License.
1381 * You may obtain a copy of the License at
1382 *
1383 *   http://www.apache.org/licenses/LICENSE-2.0
1384 *
1385 * Unless required by applicable law or agreed to in writing, software
1386 * distributed under the License is distributed on an "AS IS" BASIS,
1387 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1388 * See the License for the specific language governing permissions and
1389 * limitations under the License.
1390 */(e)}?${pv(a).slice(1)}${l}`}const wk="webStorageSupport";const kk=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=kw,this._completeRedirectFn=Xw,this._overrideRedirectResult=Qw}async _openPopup(e,t,n,r){var o;r_(null===(o=this.eventManagers[e._key()])||void 0===o?void 0:o.manager,"_initialize() not called before _openPopup()");return gk(e,await _k(e,t,n,o_(),r),Tw())}async _openRedirect(e,t,n,r){await this._originValidation(e);return function(e){xw().location.href=e}(await _k(e,t,n,o_(),r)),new Promise(()=>{})}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(r_(n,"If manager is not set, promise should be"),n)}const n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch(()=>{delete this.eventManagers[t]}),n}async initAndGetManager(e){const t=await dk(e),n=new Jw(e);return t.register("authEvent",t=>
vendor: 5,176 bytes, lines 1390-1457
1390{t_(null==t?void 0:t.authEvent,e,"invalid-auth-event");return{status:n.onEvent(t.authEvent)?"ACK":"ERROR"}},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(wk,{type:wk},n=>{var r;const o=null===(r=null==n?void 0:n[0])||void 0===r?void 0:r[wk];void 0!==o&&t(!!o),Qb(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=rk(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return G_()||q_()||H_()}};var Ek="@firebase/auth",Tk="1.7.0";
1391/**
1392 * @license
1393 * Copyright 2020 Google LLC
1394 *
1395 * Licensed under the Apache License, Version 2.0 (the "License");
1396 * you may not use this file except in compliance with the License.
1397 * You may obtain a copy of the License at
1398 *
1399 *   http://www.apache.org/licenses/LICENSE-2.0
1400 *
1401 * Unless required by applicable law or agreed to in writing, software
1402 * distributed under the License is distributed on an "AS IS" BASIS,
1403 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1404 * See the License for the specific language governing permissions and
1405 * limitations under the License.
1406 */
1407class Sk{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(e)}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged(t=>{e((null==t?void 0:t.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){t_(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}
1408/**
1409 * @license
1410 * Copyright 2020 Google LLC
1411 *
1412 * Licensed under the Apache License, Version 2.0 (the "License");
1413 * you may not use this file except in compliance with the License.
1414 * You may obtain a copy of the License at
1415 *
1416 *   http://www.apache.org/licenses/LICENSE-2.0
1417 *
1418 * Unless required by applicable law or agreed to in writing, software
1419 * distributed under the License is distributed on an "AS IS" BASIS,
1420 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1421 * See the License for the specific language governing permissions and
1422 * limitations under the License.
1423 */
1424/**
1425 * @license
1426 * Copyright 2021 Google LLC
1427 *
1428 * Licensed under the Apache License, Version 2.0 (the "License");
1429 * you may not use this file except in compliance with the License.
1430 * You may obtain a copy of the License at
1431 *
1432 *   http://www.apache.org/licenses/LICENSE-2.0
1433 *
1434 * Unless required by applicable law or agreed to in writing, software
1435 * distributed under the License is distributed on an "AS IS" BASIS,
1436 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1437 * See the License for the specific language governing permissions and
1438 * limitations under the License.
1439 */
1440const xk=rv("authIdTokenMaxAge")||300;let Ok=null;function Ak(e=Ib()){const t=Sb(e,"auth");if(t.isInitialized())return t.getImmediate();const n=
1441/**
1442 * @license
1443 * Copyright 2020 Google LLC
1444 *
1445 * Licensed under the Apache License, Version 2.0 (the "License");
1446 * you may not use this file except in compliance with the License.
1447 * You may obtain a copy of the License at
1448 *
1449 *   http://www.apache.org/licenses/LICENSE-2.0
1450 *
1451 * Unless required by applicable law or agreed to in writing, software
1452 * distributed under the License is distributed on an "AS IS" BASIS,
1453 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1454 * See the License for the specific language governing permissions and
1455 * limitations under the License.
1456 */
1457function(e,t){const n=Sb(e,"auth");if(n.isInitialized()){const e=n.getImmediate();if(fv(n.getOptions(),null!=t?t:{}))return e;Qb(e,"already-initialized")}return n.initialize({options:t})}(e,{popupRedirectResolver:kk,persistence:[jw,_w,kw]}),r=rv("authTokenSyncURL");if(r&&"boolean"==typeof isSecureContext&&isSecureContext){const e=new URL(r,location.origin);if(location.origin===e.origin){const t=(o=e.toString(),async e=>{const t=e&&await e.getIdTokenResult(),n=t&&((new Date).getTime()-Date.parse(t.issuedAtTime))/1e3;if(n&&n>xk)return;const r=null==t?void 0:t.token;Ok!==r&&(Ok=r,await fetch(o,{method:r?"POST":"DELETE",headers:r?{Authorization:`Bearer ${r}`}:{}}))});!function(e,t,n){yv(e).beforeAuthStateChanged(t,n)}(n,t,()=>t(n.currentUser)),function(e,t,n,r){yv(e).onIdTokenChanged(t,n,r)}(n,e=>t(e))}}var o;const i=ev("auth");return i&&tw(n,`http://${i}`),n}var Ck;!function(e){ew=e}({loadJS:e=>
1457new Promise((t,n)=>{const r=document.createElement("script");var o,i;r.setAttribute("src",e),r.onload=t,r.onerror=e=>{const t=Xb("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",(null!==(i=null===(o=document.getElementsByTagName("head"))||void 0===o?void 0:o[0])&&void 0!==i?i:document).appendChild(r)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),Ck="Browser",Tb(new vv("auth",(e,{options:t})=>{const n=e.getProvider("app").getImmediate(),r=e.getProvider("heartbeat"),o=e.getProvider("app-check-internal"),{apiKey:i,authDomain:s}=n.options;t_(i&&!i.includes(":"),"invalid-api-key",{appName:n.name});const a={apiKey:i,authDomain:s,clientPlatform:Ck,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:K_(Ck)},c=new X_(n,r,o,a);return function(e,t){const n=(null==t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(L_);(null==t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null==t?void 0:t.popupRedirectResolver)}(c,t),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,n)=>{e.getProvider("auth-internal").initialize()})),Tb(new vv("auth-internal",e=>(e=>new Sk(e))(J_(e.getProvider("auth").getImmediate())),"PRIVATE").setInstantiationMode("EXPLICIT")),Pb(Ek,Tk,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(Ck)),Pb(Ek,Tk,"esm2017");var Nk,Ik="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Lk=Lk||{},Pk=Ik||self;function Rk(e){var t=typeof e;return"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function Dk(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var Mk="closure_uid_"+(1e9*Math.random()>>>0),jk=0;function Uk(e,t,n){return e.call.apply(e.bind,arguments)}function qk(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function Fk(e,t,n){return(Fk=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Uk:qk).apply(null,arguments)}function Bk(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function Vk(e,t){function n(){}n.prototype=t.prototype,e.$=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.ac=function(e,n,r){for(var o=Array(arguments.length-2),i=2;i<arguments.length;i++)o[i-2]=arguments[i];return t.prototype[n].apply(e,o)}}function zk(){this.s=this.s,this.o=this.o}zk.prototype.s=!1,zk.prototype.sa=function(){var e;!this.s&&(this.s=!0,this.N(),0)&&(e=this,Object.prototype.hasOwnProperty.call(e,Mk)&&e[Mk]||(e[Mk]=++jk))},zk.prototype.N=function(){if(this.o)for(;this.o.length;)this.o.shift()()};const $k=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,0);for(let n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1};function Hk(e){const t=e.length;if(0<t){const n=Array(t);for(let r=0;r<t;r++)n[r]=e[r];return n}return[]}function Wk(e,t){for(let n=1;n<arguments.length;n++){const t=arguments[n];if(Rk(t)){const n=e.length||0,r=t.length||0;e.length=n+r;for(let o=0;o<r;o++)e[n+o]=t[o]}else e.push(t)}}function Gk(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}Gk.prototype.h=function(){this.defaultPrevented=!0};var Kk=function(){if(!Pk.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{const e=()=>{};Pk.addEventListener("test",e,t),Pk.removeEventListener("test",e,t)}catch(hV){}return e}();function Yk(e){return/^[\s\xa0]*$/.test(e)}function Qk(){var e=Pk.navigator;return e&&(e=e.userAgent)?e:""}function Xk(e){return-1!=Qk().indexOf(e)}function Jk(e){return Jk[" "](e),e}Jk[" "]=function(){};var Zk,eE,tE,nE=Xk("Opera"),rE=Xk("Trident")||Xk("MSIE"),oE=Xk("Edge"),iE=oE||rE,sE=Xk("Ge
1457cko")&&!(-1!=Qk().toLowerCase().indexOf("webkit")&&!Xk("Edge"))&&!(Xk("Trident")||Xk("MSIE"))&&!Xk("Edge"),aE=-1!=Qk().toLowerCase().indexOf("webkit")&&!Xk("Edge");function cE(){var e=Pk.document;return e?e.documentMode:void 0}e:{var lE="",uE=(eE=Qk(),sE?/rv:([^\);]+)(\)|;)/.exec(eE):oE?/Edge\/([\d\.]+)/.exec(eE):rE?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(eE):aE?/WebKit\/(\S+)/.exec(eE):nE?/(?:Version)[ \/]?(\S+)/.exec(eE):void 0);if(uE&&(lE=uE?uE[1]:""),rE){var hE=cE();if(null!=hE&&hE>parseFloat(lE)){Zk=String(hE);break e}}Zk=lE}if(Pk.document&&rE){var fE=cE();tE=fE||(parseInt(Zk,10)||void 0)}else tE=void 0;var dE=tE;function pE(e,t){if(Gk.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(sE){e:{try{Jk(t.nodeName);var o=!0;break e}catch(i){}o=!1}o||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:mE[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&pE.$.h.call(this)}}Vk(pE,Gk);var mE={2:"touch",3:"pen",4:"mouse"};pE.prototype.h=function(){pE.$.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var gE="closure_listenable_"+(1e6*Math.random()|0),yE=0;function vE(e,t,n,r,o){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.la=o,this.key=++yE,this.fa=this.ia=!1}function bE(e){e.fa=!0,e.listener=null,e.proxy=null,e.src=null,e.la=null}function _E(e,t,n){for(const r in e)t.call(n,e[r],r,e)}function wE(e){const t={};for(const n in e)t[n]=e[n];return t}const kE="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function EE(e,t){let n,r;for(let o=1;o<arguments.length;o++){for(n in r=arguments[o],r)e[n]=r[n];for(let t=0;t<kE.length;t++)n=kE[t],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function TE(e){this.src=e,this.g={},this.h=0}function SE(e,t){var n=t.type;if(n in e.g){var r,o=e.g[n],i=$k(o,t);(r=0<=i)&&Array.prototype.splice.call(o,i,1),r&&(bE(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function xE(e,t,n,r){for(var o=0;o<e.length;++o){var i=e[o];if(!i.fa&&i.listener==t&&i.capture==!!n&&i.la==r)return o}return-1}TE.prototype.add=function(e,t,n,r,o){var i=e.toString();(e=this.g[i])||(e=this.g[i]=[],this.h++);var s=xE(e,t,r,o);return-1<s?(t=e[s],n||(t.ia=!1)):((t=new vE(t,this.src,i,!!r,o)).ia=n,e.push(t)),t};var OE="closure_lm_"+(1e6*Math.random()|0),AE={};function CE(e,t,n,r,o){if(r&&r.once)return IE(e,t,n,r,o);if(Array.isArray(t)){for(var i=0;i<t.length;i++)CE(e,t[i],n,r,o);return null}return n=UE(n),e&&e[gE]?e.O(t,n,Dk(r)?!!r.capture:!!r,o):NE(e,t,n,!1,r,o)}function NE(e,t,n,r,o,i){if(!t)throw Error("Invalid event type");var s=Dk(o)?!!o.capture:!!o,a=ME(e);if(a||(e[OE]=a=new TE(e)),(n=a.add(t,n,r,s,i)).proxy)return n;if(r=function(){function e(n){return t.call(e.src,e.listener,n)}const t=DE;return e}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)Kk||(o=s),void 0===o&&(o=!1),e.addEventListener(t.toString(),r,o);else if(e.attachEvent)e.attachEvent(RE(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function IE(e,t,n,r,o){if(Array.isArray(t)){for(var i=0;i<t.length;i++)IE(e,t[i],n,r,o);return null}return n=UE(n),e&&e[gE]?e.P(t,n,Dk(r)?!!r.capture:!!r,o):NE(e,t,n,!0,r,o)}function LE(e,t,n,r,o){if(Array.isArray(t))for(var i=0;i<t.length;i++)LE(e,t[i],n,r,o);else r=Dk(r)?!!r.capture:!!r,n=UE(n),e&&e[gE]?(e=e.i,(t=String(t).toString())in e.g&&(-1<(n=xE(i=e.g[t],n,r,o))&&(bE(i[n]),Array.prototype.splice.call(i,n,1),0==i.length&&(delete e.g[t],e.h--))
1457)):e&&(e=ME(e))&&(t=e.g[t.toString()],e=-1,t&&(e=xE(t,n,r,o)),(n=-1<e?t[e]:null)&&PE(n))}function PE(e){if("number"!=typeof e&&e&&!e.fa){var t=e.src;if(t&&t[gE])SE(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(RE(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=ME(t))?(SE(n,e),0==n.h&&(n.src=null,t[OE]=null)):bE(e)}}}function RE(e){return e in AE?AE[e]:AE[e]="on"+e}function DE(e,t){if(e.fa)e=!0;else{t=new pE(t,this);var n=e.listener,r=e.la||e.src;e.ia&&PE(e),e=n.call(r,t)}return e}function ME(e){return(e=e[OE])instanceof TE?e:null}var jE="__closure_events_fn_"+(1e9*Math.random()>>>0);function UE(e){return"function"==typeof e?e:(e[jE]||(e[jE]=function(t){return e.handleEvent(t)}),e[jE])}function qE(){zk.call(this),this.i=new TE(this),this.S=this,this.J=null}function FE(e,t){var n,r=e.J;if(r)for(n=[];r;r=r.J)n.push(r);if(e=e.S,r=t.type||t,"string"==typeof t)t=new Gk(t,e);else if(t instanceof Gk)t.target=t.target||e;else{var o=t;EE(t=new Gk(r,e),o)}if(o=!0,n)for(var i=n.length-1;0<=i;i--){var s=t.g=n[i];o=BE(s,r,!0,t)&&o}if(o=BE(s=t.g=e,r,!0,t)&&o,o=BE(s,r,!1,t)&&o,n)for(i=0;i<n.length;i++)o=BE(s=t.g=n[i],r,!1,t)&&o}function BE(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var o=!0,i=0;i<t.length;++i){var s=t[i];if(s&&!s.fa&&s.capture==n){var a=s.listener,c=s.la||s.src;s.ia&&SE(e.i,s),o=!1!==a.call(c,r)&&o}}return o&&!r.defaultPrevented}Vk(qE,zk),qE.prototype[gE]=!0,qE.prototype.removeEventListener=function(e,t,n,r){LE(this,e,t,n,r)},qE.prototype.N=function(){if(qE.$.N.call(this),this.i){var e,t=this.i;for(e in t.g){for(var n=t.g[e],r=0;r<n.length;r++)bE(n[r]);delete t.g[e],t.h--}}this.J=null},qE.prototype.O=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},qE.prototype.P=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};var VE=Pk.JSON.stringify;function zE(){var e=QE;let t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var $E=new class{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}(()=>new HE,e=>e.reset());class HE{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}function WE(e){var t=1;e=e.split(":");const n=[];for(;0<t&&e.length;)n.push(e.shift()),t--;return e.length&&n.push(e.join(":")),n}function GE(e){Pk.setTimeout(()=>{throw e},0)}let KE,YE=!1,QE=new class{constructor(){this.h=this.g=null}add(e,t){const n=$E.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}},XE=()=>{const e=Pk.Promise.resolve(void 0);KE=()=>{e.then(JE)}};var JE=()=>{for(var e;e=zE();){try{e.h.call(e.g)}catch(hV){GE(hV)}var t=$E;t.j(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}YE=!1};function ZE(e,t){qE.call(this),this.h=e||1,this.g=t||Pk,this.j=Fk(this.qb,this),this.l=Date.now()}function eT(e){e.ga=!1,e.T&&(e.g.clearTimeout(e.T),e.T=null)}function tT(e,t,n){if("function"==typeof e)n&&(e=Fk(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=Fk(e.handleEvent,e)}return 2147483647<Number(t)?-1:Pk.setTimeout(e,t||0)}function nT(e){e.g=tT(()=>{e.g=null,e.i&&(e.i=!1,nT(e))},e.j);const t=e.h;e.h=null,e.m.apply(null,t)}Vk(ZE,qE),(Nk=ZE.prototype).ga=!1,Nk.T=null,Nk.qb=function(){if(this.ga){var e=Date.now()-this.l;0<e&&e<.8*this.h?this.T=this.g.setTimeout(this.j,this.h-e):(this.T&&(this.g.clearTimeout(this.T),this.T=null),FE(this,"tick"),this.ga&&(eT(this),this.start()))}},Nk.start=function(){this.ga=!0,this.T||(this.T=this.g.setTimeout(this.j,this.h),this.l=Date.now())},Nk.N=function(){ZE.$.N.call(this),eT(this),delete this.g};class rT extends zk{constructor(e,t){super(),this.m=e,this.j=t,this.h=null,this.i=!1,this.g=null}l(e){this.h=arguments,this.g?this.i=!0:nT(this)}N(){super.N(),this.g&&(Pk.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function oT(e){zk.call(this),this.h=e,this.g={}}Vk(oT,zk);var iT=[];function sT(e,t,n,r){Array.isArray(n)||(n&&(iT[0]=n.toString()),n=iT);for(var o=0;o<n.length;o++){var i=CE(t,n[o],r||e.handleEvent,!1,e.h||e);if(!i)break;e.g[i.key]=i}}function aT(e){_E(e.g,function(e,t){this.g.hasOwnProperty(t)&&PE(e)},e),e.g={}}function cT(){this.g=!0}function lT(e,t,n,r){e.info(function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{var n=JSON.parse(t);if(n)for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var r=n[e];if(!(2>r.length)){var o=r[1];if(Array.isArray(o)&&!(1>o.length)){var i=o[0];if("noop"!=i&&"stop"!=i&&"close"!=i)for(var s=1;s<o.length;s++)o[s]=""}}}return VE(n)}catch(a){return t}}(e,n)+(r?" "+r:"")})}
1457oT.prototype.N=function(){oT.$.N.call(this),aT(this)},oT.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},cT.prototype.Ea=function(){this.g=!1},cT.prototype.info=function(){};var uT={},hT=null;function fT(){return hT=hT||new qE}function dT(e){Gk.call(this,uT.Ta,e)}function pT(e){const t=fT();FE(t,new dT(t))}function mT(e,t){Gk.call(this,uT.STAT_EVENT,e),this.stat=t}function gT(e){const t=fT();FE(t,new mT(t,e))}function yT(e,t){Gk.call(this,uT.Ua,e),this.size=t}function vT(e,t){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return Pk.setTimeout(function(){e()},t)}uT.Ta="serverreachability",Vk(dT,Gk),uT.STAT_EVENT="statevent",Vk(mT,Gk),uT.Ua="timingevent",Vk(yT,Gk);var bT={NO_ERROR:0,rb:1,Eb:2,Db:3,yb:4,Cb:5,Fb:6,Qa:7,TIMEOUT:8,Ib:9},_T={wb:"complete",Sb:"success",Ra:"error",Qa:"abort",Kb:"ready",Lb:"readystatechange",TIMEOUT:"timeout",Gb:"incrementaldata",Jb:"progress",zb:"downloadprogress",$b:"uploadprogress"};function wT(){}function kT(e){return e.h||(e.h=e.i())}function ET(){}wT.prototype.h=null;var TT,ST={OPEN:"a",vb:"b",Ra:"c",Hb:"d"};function xT(){Gk.call(this,"d")}function OT(){Gk.call(this,"c")}function AT(){}function CT(e,t,n,r){this.l=e,this.j=t,this.m=n,this.W=r||1,this.U=new oT(this),this.P=IT,e=iE?125:void 0,this.V=new ZE(e),this.I=null,this.i=!1,this.u=this.B=this.A=this.L=this.G=this.Y=this.C=null,this.F=[],this.g=null,this.o=0,this.s=this.v=null,this.ca=-1,this.J=!1,this.O=0,this.M=null,this.ba=this.K=this.aa=this.S=!1,this.h=new NT}function NT(){this.i=null,this.g="",this.h=!1}Vk(xT,Gk),Vk(OT,Gk),Vk(AT,wT),AT.prototype.g=function(){return new XMLHttpRequest},AT.prototype.i=function(){return{}},TT=new AT;var IT=45e3,LT={},PT={};function RT(e,t,n){e.L=1,e.A=ZT(KT(t)),e.u=n,e.S=!0,DT(e,null)}function DT(e,t){e.G=Date.now(),qT(e),e.B=KT(e.A);var n=e.B,r=e.W;Array.isArray(r)||(r=[String(r)]),fS(n.i,"t",r),e.o=0,n=e.l.J,e.h=new NT,e.g=fx(e.l,n?t:null,!e.u),0<e.O&&(e.M=new rT(Fk(e.Pa,e,e.g),e.O)),sT(e.U,e.g,"readystatechange",e.nb),t=e.I?wE(e.I):{},e.u?(e.v||(e.v="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ha(e.B,e.v,e.u,t)):(e.v="GET",e.g.ha(e.B,e.v,null,t)),pT(),function(e,t,n,r,o,i){e.info(function(){if(e.g)if(i)for(var s="",a=i.split("&"),c=0;c<a.length;c++){var l=a[c].split("=");if(1<l.length){var u=l[0];l=l[1];var h=u.split("_");s=2<=h.length&&"type"==h[1]?s+(u+"=")+l+"&":s+(u+"=redacted&")}}else s=null;else s=i;return"XMLHTTP REQ ("+r+") [attempt "+o+"]: "+t+"\n"+n+"\n"+s})}(e.j,e.v,e.B,e.m,e.W,e.u)}function MT(e){return!!e.g&&("GET"==e.v&&2!=e.L&&e.l.Ha)}function jT(e,t,n){let r,o=!0;for(;!e.J&&e.o<n.length;){if(r=UT(e,n),r==PT){4==t&&(e.s=4,gT(14),o=!1),lT(e.j,e.m,null,"[Incomplete Response]");break}if(r==LT){e.s=4,gT(15),lT(e.j,e.m,n,"[Invalid Chunk]"),o=!1;break}lT(e.j,e.m,r,null),$T(e,r)}MT(e)&&0!=e.o&&(e.h.g=e.h.g.slice(e.o),e.o=0),4!=t||0!=n.length||e.h.h||(e.s=1,gT(16),o=!1),e.i=e.i&&o,o?0<n.length&&!e.ba&&(e.ba=!0,(t=e.l).g==e&&t.ca&&!t.M&&(t.l.info("Great, no buffering proxy detected. Bytes received: "+n.length),ox(t),t.M=!0,gT(11))):(lT(e.j,e.m,n,"[Invalid Chunked Response]"),zT(e),VT(e))}function UT(e,t){var n=e.o,r=t.indexOf("\n",n);return-1==r?PT:(n=Number(t.substring(n,r)),isNaN(n)?LT:(r+=1)+n>t.length?PT:(t=t.slice(r,r+n),e.o=r+n,t))}function qT(e){e.Y=Date.now()+e.P,FT(e,e.P)}function FT(e,t){if(null!=e.C)throw Error("WatchDog timer not null");e.C=vT(Fk(e.lb,e),t)}function BT(e){e.C&&(Pk.clearTimeout(e.C),e.C=null)}function VT(e){0==e.l.H||e.J||ax(e.l,e)}function zT(e){BT(e);var t=e.M;t&&"function"==typeof t.sa&&t.sa(),e.M=null,eT(e.V),aT(e.U),e.g&&(t=e.g,e.g=null,t.abort(),t.sa())}function $T(e,t){try{var n=e.l;if(0!=n.H&&(n.g==e||bS(n.i,e)))if(!e.K&&bS(n.i,e)&&3==n.H){try{var r=n.Ja.g.parse(t)}catch(l){r=null}if(Array.isArray(r)&&3==r.length){var o=r;if(0==o[0]){e:if(!n.u){if(n.g){if(!(n.g.G+3e3<e.G))break e;sx(n),QS(n)}rx(n),gT(18)}}else n.Fa=o[1],0<n.Fa-n.V&&37500>o[2]&&n.G&&0==n.A&&!n.v&&(n.v=vT(Fk(n.ib,n),6e3));if(1>=vS(n.i)&&n.oa){try{n.oa()}catch(l){}n.oa=void 0}}else lx(n,11)}else if((e.K||n.g==e)&&sx(n),!Yk(t))for(o=n.Ja.g.parse(t),t=0;t<o.length;t++){let l=o[t];
1457if(n.V=l[0],l=l[1],2==n.H)if("c"==l[0]){n.K=l[1],n.pa=l[2];const t=l[3];null!=t&&(n.ra=t,n.l.info("VER="+n.ra));const o=l[4];null!=o&&(n.Ga=o,n.l.info("SVER="+n.Ga));const u=l[5];null!=u&&"number"==typeof u&&0<u&&(r=1.5*u,n.L=r,n.l.info("backChannelRequestTimeoutMs_="+r)),r=n;const h=e.g;if(h){const e=h.g?h.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var i=r.i;i.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(i.j=i.l,i.g=new Set,i.h&&(_S(i,i.h),i.h=null))}if(r.F){const e=h.g?h.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(r.Da=e,JT(r.I,r.F,e))}}n.H=3,n.h&&n.h.Ba(),n.ca&&(n.S=Date.now()-e.G,n.l.info("Handshake RTT: "+n.S+"ms"));var s=e;if((r=n).wa=hx(r,r.J?r.pa:null,r.Y),s.K){wS(r.i,s);var a=s,c=r.L;c&&a.setTimeout(c),a.C&&(BT(a),qT(a)),r.g=s}else nx(r);0<n.j.length&&JS(n)}else"stop"!=l[0]&&"close"!=l[0]||lx(n,7);else 3==n.H&&("stop"==l[0]||"close"==l[0]?"stop"==l[0]?lx(n,7):YS(n):"noop"!=l[0]&&n.h&&n.h.Aa(l),n.A=0)}pT()}catch(l){}}function HT(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(Rk(e)||"string"==typeof e)Array.prototype.forEach.call(e,t,void 0);else for(var n=function(e){if(e.ta&&"function"==typeof e.ta)return e.ta();if(!e.Z||"function"!=typeof e.Z){if("undefined"!=typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!=typeof Set&&e instanceof Set)){if(Rk(e)||"string"==typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}t=[],n=0;for(const r in e)t[n++]=r;return t}}}(e),r=function(e){if(e.Z&&"function"==typeof e.Z)return e.Z();if("undefined"!=typeof Map&&e instanceof Map||"undefined"!=typeof Set&&e instanceof Set)return Array.from(e.values());if("string"==typeof e)return e.split("");if(Rk(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e),o=r.length,i=0;i<o;i++)t.call(void 0,r[i],n&&n[i],e)}(Nk=CT.prototype).setTimeout=function(e){this.P=e},Nk.nb=function(e){e=e.target;const t=this.M;t&&3==zS(e)?t.l():this.Pa(e)},Nk.Pa=function(e){try{if(e==this.g)e:{const u=zS(this.g);var t=this.g.Ia();this.g.da();if(!(3>u)&&(3!=u||iE||this.g&&(this.h.h||this.g.ja()||$S(this.g)))){this.J||4!=u||7==t||pT(),BT(this);var n=this.g.da();this.ca=n;t:if(MT(this)){var r=$S(this.g);e="";var o=r.length,i=4==zS(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){zT(this),VT(this);var s="";break t}this.h.i=new Pk.TextDecoder}for(t=0;t<o;t++)this.h.h=!0,e+=this.h.i.decode(r[t],{stream:i&&t==o-1});r.length=0,this.h.g+=e,this.o=0,s=this.h.g}else s=this.g.ja();if(this.i=200==n,function(e,t,n,r,o,i,s){e.info(function(){return"XMLHTTP RESP ("+r+") [ attempt "+o+"]: "+t+"\n"+n+"\n"+i+" "+s})}
1457(this.j,this.v,this.B,this.m,this.W,u,n),this.i){if(this.aa&&!this.K){t:{if(this.g){var a,c=this.g;if((a=c.g?c.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Yk(a)){var l=a;break t}}l=null}if(!(n=l)){this.i=!1,this.s=3,gT(12),zT(this),VT(this);break e}lT(this.j,this.m,n,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,$T(this,n)}this.S?(jT(this,u,s),iE&&this.i&&3==u&&(sT(this.U,this.V,"tick",this.mb),this.V.start())):(lT(this.j,this.m,s,null),$T(this,s)),4==u&&zT(this),this.i&&!this.J&&(4==u?ax(this.l,this):(this.i=!1,qT(this)))}else(function(e){const t={};e=(e.g&&2<=zS(e)&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let r=0;r<e.length;r++){if(Yk(e[r]))continue;var n=WE(e[r]);const o=n[0];if("string"!=typeof(n=n[1]))continue;n=n.trim();const i=t[o]||[];t[o]=i,i.push(n)}!function(e,t){for(const n in e)t.call(void 0,e[n],n,e)}(t,function(e){return e.join(", ")})})(this.g),400==n&&0<s.indexOf("Unknown SID")?(this.s=3,gT(12)):(this.s=0,gT(13)),zT(this),VT(this)}}}catch(yB){}},Nk.mb=function(){if(this.g){var e=zS(this.g),t=this.g.ja();this.o<t.length&&(BT(this),jT(this,e,t),this.i&&4!=e&&qT(this))}},Nk.cancel=function(){this.J=!0,zT(this)},Nk.lb=function(){this.C=null;const e=Date.now();0<=e-this.Y?(function(e,t){e.info(function(){return"TIMEOUT: "+t})}(this.j,this.B),2!=this.L&&(pT(),gT(17)),zT(this),this.s=2,VT(this)):FT(this,this.Y-e)};var WT=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function GT(e){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,e instanceof GT){this.h=e.h,YT(this,e.j),this.s=e.s,this.g=e.g,QT(this,e.m),this.l=e.l;var t=e.i,n=new cS;n.i=t.i,t.g&&(n.g=new Map(t.g),n.h=t.h),XT(this,n),this.o=e.o}else e&&(t=String(e).match(WT))?(this.h=!1,YT(this,t[1]||"",!0),this.s=eS(t[2]||""),this.g=eS(t[3]||"",!0),QT(this,t[4]),this.l=eS(t[5]||"",!0),XT(this,t[6]||"",!0),this.o=eS(t[7]||"")):(this.h=!1,this.i=new cS(null,this.h))}function KT(e){return new GT(e)}function YT(e,t,n){e.j=n?eS(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function QT(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.m=t}else e.m=null}function XT(e,t,n){t instanceof cS?(e.i=t,function(e,t){t&&!e.j&&(lS(e),e.i=null,e.g.forEach(function(e,t){var n=t.toLowerCase();t!=n&&(uS(this,t),fS(this,n,e))},e)),e.j=t}(e.i,e.h)):(n||(t=tS(t,sS)),e.i=new cS(t,e.h))}function JT(e,t,n){e.i.set(t,n)}function ZT(e){return JT(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function eS(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function tS(e,t,n){return"string"==typeof e?(e=encodeURI(e).replace(t,nS),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function nS(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}GT.prototype.toString=function(){var e=[],t=this.j;t&&e.push(tS(t,rS,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.s)&&e.push(tS(t,rS,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&e.push(":",String(n))),(n=this.l)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(tS(n,"/"==n.charAt(0)?iS:oS,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.o)&&e.push("#",tS(n,aS)),e.join("")};var rS=/[#\/\?@]/g,oS=/[#\?:]/g,iS=/[#\?]/g,sS=/[#\?@]/g,aS=/#/g;function cS(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function lS(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),o=null;if(0<=r){var i=e[n].substring(0,r);o=e[n].substring(r+1)}else i=e[n];t(i,o?decodeURIComponent(o.replace(/\+/g," ")):"")}}}(e.i,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function uS(e,t){lS(e),t=dS(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function hS(e,t){return lS(e),t=dS(e,t),e.g.has(t)}function fS(e,t,n){uS(e,t),0<n.length&&(e.i=null,e.g.set(dS(e,t),Hk(n)),e.h+=n.length)}function dS(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}(Nk=cS.prototype).add=function(e,t){lS(this),this.i=null,e=dS(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},Nk.forEach=function(e,t){lS(this),this.g.forEach(function(n,r){n.forEac
1457h(function(n){e.call(t,n,r,this)},this)},this)},Nk.ta=function(){lS(this);const e=Array.from(this.g.values()),t=Array.from(this.g.keys()),n=[];for(let r=0;r<t.length;r++){const o=e[r];for(let e=0;e<o.length;e++)n.push(t[r])}return n},Nk.Z=function(e){lS(this);let t=[];if("string"==typeof e)hS(this,e)&&(t=t.concat(this.g.get(dS(this,e))));else{e=Array.from(this.g.values());for(let n=0;n<e.length;n++)t=t.concat(e[n])}return t},Nk.set=function(e,t){return lS(this),this.i=null,hS(this,e=dS(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},Nk.get=function(e,t){return e&&0<(e=this.Z(e)).length?String(e[0]):t},Nk.toString=function(){if(this.i)return this.i;if(!this.g)return"";const e=[],t=Array.from(this.g.keys());for(var n=0;n<t.length;n++){var r=t[n];const i=encodeURIComponent(String(r)),s=this.Z(r);for(r=0;r<s.length;r++){var o=i;""!==s[r]&&(o+="="+encodeURIComponent(String(s[r]))),e.push(o)}}return this.i=e.join("&")};var pS=class{constructor(e,t){this.g=e,this.map=t}};function mS(e){this.l=e||gS,Pk.PerformanceNavigationTiming?e=0<(e=Pk.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(Pk.g&&Pk.g.Ka&&Pk.g.Ka()&&Pk.g.Ka().dc),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var gS=10;function yS(e){return!!e.h||!!e.g&&e.g.size>=e.j}function vS(e){return e.h?1:e.g?e.g.size:0}function bS(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function _S(e,t){e.g?e.g.add(t):e.h=t}function wS(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function kS(e){if(null!=e.h)return e.i.concat(e.h.F);if(null!=e.g&&0!==e.g.size){let t=e.i;for(const n of e.g.values())t=t.concat(n.F);return t}return Hk(e.i)}mS.prototype.cancel=function(){if(this.i=kS(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const e of this.g.values())e.cancel();this.g.clear()}};var ES=class{stringify(e){return Pk.JSON.stringify(e,void 0)}parse(e){return Pk.JSON.parse(e,void 0)}};function TS(){this.g=new ES}function SS(e,t,n){const r=n||"";try{HT(e,function(e,n){let o=e;Dk(e)&&(o=VE(e)),t.push(r+n+"="+encodeURIComponent(o))})}catch(o){throw t.push(r+"type="+encodeURIComponent("_badmap")),o}}function xS(e,t,n,r,o){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,o(r)}catch(i){}}function OS(e){this.l=e.ec||null,this.j=e.ob||!1}function AS(e,t){qE.call(this),this.F=e,this.u=t,this.m=void 0,this.readyState=CS,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}Vk(OS,wT),OS.prototype.g=function(){return new AS(this.l,this.j)},OS.prototype.i=function(e){return function(){return e}}({}),Vk(AS,qE);var CS=0;function NS(e){e.j.read().then(e.Xa.bind(e)).catch(e.ka.bind(e))}function IS(e){e.readyState=4,e.l=null,e.j=null,e.A=null,LS(e)}function LS(e){e.onreadystatechange&&e.onreadystatechange.call(e)}(Nk=AS.prototype).open=function(e,t){if(this.readyState!=CS)throw this.abort(),Error("Error reopening a connection");this.C=e,this.B=t,this.readyState=1,LS(this)},Nk.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const t={headers:this.v,method:this.C,credentials:this.m,cache:void 0};e&&(t.body=e),(this.F||Pk).fetch(new Request(this.B,t)).then(this.$a.bind(this),this.ka.bind(this))},Nk.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,IS(this)),this.readyState=CS},Nk.$a=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,LS(this)),this.g&&(this.readyState=3,LS(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Ya.bind(this),this.ka.bind(this));else if(void 0!==Pk.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;NS(this)}else e.text().then(this.Za.bind(this),this.ka.bind(this))},Nk.Xa=function(e){if(this.g){if(this.u&&e.value)this.response.push(e.value);else if(!this.u){var t=e.value?e.value:new Uint8Array(0);(t=this.A.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?IS(this):LS(this),3==this.readyState&&NS(this)}},Nk.Za=function(e){this.g&&(this.response=this.responseText=e,IS(this))},Nk.Ya=function(e){this.g&&(this.response=e,IS(this))},Nk.ka=function(){this.g&&IS(this)},Nk.setRequestHeader=function(e,t){this.v.append(e,t)},Nk.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},Nk.getAllResponseHeaders=function(){if(!this.h)return"";const e=[],t=this.h.entries();for(var n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(AS.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}});var PS=Pk.JSON.parse;function RS(e){qE.call(this),this.headers=new Map,this.u=e||null,this.h=!1,this.C=this.g=null,this.I="",this.m=0,this.j="",this.l=this.G=this.v=this.F=!1,this.B=0,this.A=null,this.K=DS,this.L=this.M=!1}Vk(RS,qE);var DS="",MS=/^https?$/i,jS=["POST","PUT"];function US(e,t){e.h=!1,e.g&&(e.l=!0,e.g.abort(),e.l=!1),e.j=t,e.m=5,qS(e),BS(e)}function qS(e){e.F||(e.F=!0,FE(e,"complete"),FE(e,"error"))}function FS(e){if(e.h&&void 0!==Lk&&(!e.C[1]||4!=zS(e)||2!=e.da()))if(e.v&&4==zS(e))tT(e.La,0,e);else if(FE(e,"readystatechange"),4==zS(e)){e.h=!1;try{const a=e.da();e:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t=!0;break e;default:t=!1}var n;if(!(n=t)){var r;if(r=0===a){var o=String(e.I).match(WT)[1]||null;!o&&Pk.self&&Pk.self.location&&(o=Pk.self.location.protocol.slice(0,-1)),r=!MS.test(o?o.toLowerCase():"")}n=r}if(n)FE(e,"complete"),FE(e,"success");else{e.m=6;try{var i=2<zS(e)?e.g.statusText:""}catch(s){i=""}e.j=i+" ["+e.da()+"]",qS(e)}}finally{BS(e)}}}function BS(e,t){if(e.g){VS(e);const r=e.g,o=e.C[0]?()=>{}:null;e.g=null,e.C=null,t||FE(e,"ready");try{r.onreadystatechange=o}catch(n){}}}
1457function VS(e){e.g&&e.L&&(e.g.ontimeout=null),e.A&&(Pk.clearTimeout(e.A),e.A=null)}function zS(e){return e.g?e.g.readyState:0}function $S(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.K){case DS:case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(bB){return null}}function HS(e){let t="";return _E(e,function(e,n){t+=n,t+=":",t+=e,t+="\r\n"}),t}function WS(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=HS(n),"string"==typeof e?null!=n&&encodeURIComponent(String(n)):JT(e,t,n))}function GS(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function KS(e){this.Ga=0,this.j=[],this.l=new cT,this.pa=this.wa=this.I=this.Y=this.g=this.Da=this.F=this.na=this.o=this.U=this.s=null,this.fb=this.W=0,this.cb=GS("failFast",!1,e),this.G=this.v=this.u=this.m=this.h=null,this.aa=!0,this.Fa=this.V=-1,this.ba=this.A=this.C=0,this.ab=GS("baseRetryDelayMs",5e3,e),this.hb=GS("retryDelaySeedMs",1e4,e),this.eb=GS("forwardChannelMaxRetries",2,e),this.xa=GS("forwardChannelRequestTimeoutMs",2e4,e),this.va=e&&e.xmlHttpFactory||void 0,this.Ha=e&&e.useFetchStreams||!1,this.L=void 0,this.J=e&&e.supportsCrossDomainXhr||!1,this.K="",this.i=new mS(e&&e.concurrentRequestLimit),this.Ja=new TS,this.P=e&&e.fastHandshake||!1,this.O=e&&e.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.bb=e&&e.bc||!1,e&&e.Ea&&this.l.Ea(),e&&e.forceLongPolling&&(this.aa=!1),this.ca=!this.P&&this.aa&&e&&e.detectBufferingProxy||!1,this.qa=void 0,e&&e.longPollingTimeout&&0<e.longPollingTimeout&&(this.qa=e.longPollingTimeout),this.oa=void 0,this.S=0,this.M=!1,this.ma=this.B=null}function YS(e){if(XS(e),3==e.H){var t=e.W++,n=KT(e.I);if(JT(n,"SID",e.K),JT(n,"RID",t),JT(n,"TYPE","terminate"),ex(e,n),(t=new CT(e,e.l,t)).L=2,t.A=ZT(KT(n)),n=!1,Pk.navigator&&Pk.navigator.sendBeacon)try{n=Pk.navigator.sendBeacon(t.A.toString(),"")}catch(r){}!n&&Pk.Image&&((new Image).src=t.A,n=!0),n||(t.g=fx(t.l,null),t.g.ha(t.A)),t.G=Date.now(),qT(t)}ux(e)}function QS(e){e.g&&(ox(e),e.g.cancel(),e.g=null)}function XS(e){QS(e),e.u&&(Pk.clearTimeout(e.u),e.u=null),sx(e),e.i.cancel(),e.m&&("number"==typeof e.m&&Pk.clearTimeout(e.m),e.m=null)}function JS(e){if(!yS(e.i)&&!e.m){e.m=!0;var t=e.Na;KE||XE(),YE||(KE(),YE=!0),QE.add(t,e),e.C=0}}function ZS(e,t){var n;n=t?t.m:e.W++;const r=KT(e.I);JT(r,"SID",e.K),JT(r,"RID",n),JT(r,"AID",e.V),ex(e,r),e.o&&e.s&&WS(r,e.o,e.s),n=new CT(e,e.l,n,e.C+1),null===e.o&&(n.I=e.s),t&&(e.j=t.F.concat(e.j)),t=tx(e,n,1e3),n.setTimeout(Math.round(.5*e.xa)+Math.round(.5*e.xa*Math.random())),_S(e.i,n),RT(n,r,t)}function ex(e,t){e.na&&_E(e.na,function(e,n){JT(t,n,e)}),e.h&&HT({},function(e,n){JT(t,n,e)})}function tx(e,t,n){n=Math.min(e.j.length,n);var r=e.h?Fk(e.h.Va,e.h,e):null;e:{var o=e.j;let t=-1;for(;;){const e=["count="+n];-1==t?0<n?(t=o[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let i=!0;for(let s=0;s<n;s++){let n=o[s].g;const a=o[s].map;if(n-=t,0>n)t=Math.max(0,o[s].g-100),i=!1;else try{SS(a,e,"req"+n+"_")}catch(BV){r&&r(a)}}if(i){r=e.join("&");break e}}}return e=e.j.splice(0,n),t.F=e,r}function nx(e){if(!e.g&&!e.u){e.ba=1;var t=e.Ma;KE||XE(),YE||(KE(),YE=!0),QE.add(t,e),e.A=0}}function rx(e){return!(e.g||e.u||3<=e.A)&&(e.ba++,e.u=vT(Fk(e.Ma,e),cx(e,e.A)),e.A++,!0)}function ox(e){null!=e.B&&(Pk.clearTimeout(e.B),e.B=null)}function ix(e){e.g=new CT(e,e.l,"rpc",e.ba),null===e.o&&(e.g.I=e.s),e.g.O=0;var t=KT(e.wa);JT(t,"RID","rpc"),JT(t,"SID",e.K),JT(t,"AID",e.V),JT(t,"CI",e.G?"0":"1"),!e.G&&e.qa&&JT(t,"TO",e.qa),JT(t,"TYPE","xmlhttp"),ex(e,t),e.o&&e.s&&WS(t,e.o,e.s),e.L&&e.g.setTimeout(e.L);var n=e.g;e=e.pa,n.L=1,n.A=ZT(KT(t)),n.u=null,n.S=!0,DT(n,e)}function sx(e){null!=e.v&&(Pk.clearTimeout(e.v),e.v=null)}function ax(e,t){var n=null;if(e.g==t){sx(e),ox(e),e.g=null;var r=2}else{if(!bS(e.i,t))return;n=t.F,wS(e.i,t),r=1}if(0!=e.H)if(t.i)if(1==r){n=t.u?t.u.length:0,t=Date.now()-t.G;var o=e.C;FE(r=fT(),new yT(r,n)),JS(e)}else nx(e);else if(3==(o=t.s)||0==o&&0<t.ca||!(1==r&&function(e,t){return!(vS(e.i)>=e.i.j-(e.m?1:0)||(e.m?(e.j=t.F.concat(e.j),0):1==e.H||2==e.H||e.C>=(e.cb?0:e.eb)||(e.m=vT(Fk(e.Na,e,t),cx(e,e.C)),e.C++,0)))}(e,t)||2==r&&rx(e)))switch(n&&0<n.length&&(t=e.i,t.i=t.i.concat(n)),o){case 1:lx(e,5);break;case 4:lx(e,10);break;case 3:lx(e,6);break;default:lx(e,2)}}function cx(e,t){let n=e.ab+Math.floor(Math.random()*e.hb);return e.isActive()||(n*=2),n*t}function lx(e,t){if(e.l.info("Error code "+t),2==t){var n=null;e.h&&(n=null);var r=Fk(e.pb,e);n||(n=new GT("//www.google.com/images/cleardot.gif"),Pk.location&&"http"==P
1457k.location.protocol||YT(n,"https"),ZT(n)),function(e,t){const n=new cT;if(Pk.Image){const r=new Image;r.onload=Bk(xS,n,r,"TestLoadImage: loaded",!0,t),r.onerror=Bk(xS,n,r,"TestLoadImage: error",!1,t),r.onabort=Bk(xS,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=Bk(xS,n,r,"TestLoadImage: timeout",!1,t),Pk.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=e}else t(!1)}(n.toString(),r)}else gT(2);e.H=0,e.h&&e.h.za(t),ux(e),XS(e)}function ux(e){if(e.H=0,e.ma=[],e.h){const t=kS(e.i);0==t.length&&0==e.j.length||(Wk(e.ma,t),Wk(e.ma,e.j),e.i.i.length=0,Hk(e.j),e.j.length=0),e.h.ya()}}function hx(e,t,n){var r=n instanceof GT?KT(n):new GT(n);if(""!=r.g)t&&(r.g=t+"."+r.g),QT(r,r.m);else{var o=Pk.location;r=o.protocol,t=t?t+"."+o.hostname:o.hostname,o=+o.port;var i=new GT(null);r&&YT(i,r),t&&(i.g=t),o&&QT(i,o),n&&(i.l=n),r=i}return n=e.F,t=e.Da,n&&t&&JT(r,n,t),JT(r,"VER",e.ra),ex(e,r),r}function fx(e,t,n){if(t&&!e.J)throw Error("Can't create secondary domain capable XhrIo object.");return(t=e.Ha&&!e.va?new RS(new OS({ob:n})):new RS(e.va)).Oa(e.J),t}function dx(){}function px(){if(rE&&!(10<=Number(dE)))throw Error("Environmental error: no available transport.")}function mx(e,t){qE.call(this),this.g=new KS(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.s=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.Ca&&(e?e["X-WebChannel-Client-Profile"]=t.Ca:e={"X-WebChannel-Client-Profile":t.Ca}),this.g.U=e,(e=t&&t.cc)&&!Yk(e)&&(this.g.o=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!Yk(t)&&(this.g.F=t,null!==(e=this.h)&&t in e&&(t in(e=this.h)&&delete e[t])),this.j=new vx(this)}function gx(e){xT.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){e:{for(const n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function yx(){OT.call(this),this.status=1}function vx(e){this.g=e}function bx(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.m=Array(this.blockSize),this.i=this.h=0,this.reset()}function _x(e,t,n){n||(n=0);var r=Array(16);if("string"==typeof t)for(var o=0;16>o;++o)r[o]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(o=0;16>o;++o)r[o]=t[n++]|t[n++]<<8|t[n++]<<16|t[n++]<<24;t=e.g[0],n=e.g[1],o=e.g[2];var i=e.g[3],s=t+(i^n&(o^i))+r[0]+3614090360&4294967295;s=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=(n=(o=(i=(t=n+(s<<7&4294967295|s>>>25))+((s=i+(o^t&(n^o))+r[1]+3905402710&4294967295)<<12&4294967295|s>>>20))+((s=o+(n^i&(t^n))+r[2]+606105819&4294967295)<<17&4294967295|s>>>15))+((s=n+(t^o&(i^t))+r[3]+3250441966&4294967295)<<22&4294967295|s>>>10))+((s=t+(i^n&(o^i))+r[4]+4118548399&4294967295)<<7&4294967295|s>>>25))+((s=i+(o^t&(n^o))+r[5]+1200080426&4294967295)<<12&4294967295|s>>>20))+((s=o+(n^i&(t^n))+r[6]+2821735955&4294967295)<<17&4294967295|s>>>15))+((s=n+(t^o&(i^t))+r[7]+4249261313&4294967295)<<22&4294967295|s>>>10))+((s=t+(i^n&(o^i))+r[8]+1770035416&4294967295)<<7&4294967295|s>>>25))+((s=i+(o^t&(n^o))+r[9]+2336552879&4294967295)<<12&4294967295|s>>>20))+((s=o+(n^i&(t^n))+r[10]+4294925233&4294967295)<<17&4294967295|s>>>15))+((s=n+(t^o&(i^t))+r[11]+2304563134&4294967295)<<22&4294967295|s>>>10))+((s=t+(i^n&(o^i))+r[12]+1804603682&4294967295)<<7&4294967295|s>>>25))+((s=i+(o^t&(n^o))+r[13]+4254626195&4294967295)<<12&4294967295|s>>>20))+((s=o+(n^i&(t^n))+r[14]+2792965006&4294967295)<<17&4294967295|s>>>15))+((s=n+(t^o&(i^t))+r[15]+1236535329&4294967295)<<22&4294967295|s>>>10))+((s=t+(o^i&(n^o))+r[1]+4129170786&4294967295)<<5&4294967295|s>>>27))+((s=i+(n^o&(t^n))+r[6]+3225465664&4294967295)<<9&4294967295|s>>>23))+((s=o+(t^n&(i^t))+r[11]+643717713&4294967295)<<14&4294967295|s>>>18))+((s=n+(i^t&(o^i))+r[0]+3921069994&4294967295)<<20&4294967295|s>>>12))+((s=t+(o^i&(n^o))+r[5]+3593408605&4294967295)<<5&4294967295|s>>>27))+((s=i+(n^o&(t^n))+r[10]+38016083&4294967295)<<9&4294967295|s>>>23))+((s=o+(t^n&(i^t))+r[15]+3634488961&4294967295)<<14&4294967295|s>>>18))+((s=n+(i^t&(o^i))+r[4]+3889429448&4294967295)<<20&4294967295|s>>>12))+((s=t+(o^i&(n^o))+r[9]+568446438&4294967295)<<5&4294967295|s>>>27))+((s=i+(n^o&(t^n))+r[14]+3275163606&4294967295)<<9&4294967295|s>>>23))+((s=o+(t^n&(i^t))+r[3]+4107603335&4294967295)<<14&4294967295|s>>>18))+((s=n+(i^t&(o^i))+r[8]+1163531501&4294967295)<<20&4294967295|s>>>12))+((s=t+(o^i&(n^o))+r[13]+2850285829&4294967295)<<5&4294967295|s>>>27))+((s=i+(n^o&(t^n))+r[2]+4243563512&4294967295)<<9&4294967295|s>>>23))+((s=o+(t^n&(i^t))+r[7]+1735328473&4294967295)<<14&4294967295|s>>>18))+((s=n+(i^t&(o^i))+r[12]+2368359562&4294967295)<<20&4294967295|s>>>12))+((s=t+(n^o^i)+r[5]+4294588738&4294967295)<<4&4294967295|s>>>28))+((s=i+(t^n^o)+r[8]+2272392833&4294967295)<<11&4294967295|s>>>21))+((s=o+(i^t^n)+r[11]+1839030562&4294967295)<<16&4294967295|s>>>16))+((s=n+(o^i^t)+r[14]+4259657740&4294967295)<<23&4294967295|s>>>9))+((s=t+(n^o^i)+r[1]+2763975236&4294967295)<<4&4294967295|s>>>28))+((s=i+(t^n^o)+r[4]+1272893353&4294967295)<<11&4294967295|s>>>21))+((s=o+(i^t^n)+r[7]+4139469664&4294967295)<<16&4294967295|s>>>16))+((s=n+(o^i^t)+r[10]+3200236656&4294967295)<<23&4294967295|s>>>9))+((s=t+(n^o^i)+r[13]+681279174&4294967295)<<4&4294967295|s>>>28))+((s=i+(t^n^o)+r[0]+3936430074&4294967295)<<11&4294967295|s>>>21))+((s=o+(i^t^n)+r[3]+3572445317&4294967295)<<16&4294967295|s>>>16))+((s=n+(o^i^t)+r[6]+76029189&4294967295)<<23&4294967295|s>>>9))+((s=t+(n^o^i)+r[9]+3654602809&4294967295)<<4&4294967295|s>>>28))+((s=i+(t^n^o)+r[12]+3873151461&4294967295)<<11&4294967295|s>>>21))+((s=o+(i^t^n)+r[15]+530742520&4294967295)<<16&4294967295|s>>>16))+((s=n+(o^i^t)+r[2]+3299628645&4294967295)<<23&4294967295|s>>>9))+((s=t+(o^(n|~i))+r[0]+4096336452&4294967295)<<6&4294967295|s>>>26))+((s=i+(n^(t|~o))+r[7]+1126891415&4294967295)<<10&4294967295|s>>>22))+((s=o+(t^(i|~n))+r[14]+2878612391&4294967295)<<15&4294967295|s>>>17))+((s=n+(i^(o|~t))+r[5]+4237533241&4294967295)<<21&4294967295|s>>>11))+((s=t+(o^(n|~i))+r[12]+1700485571&4294967295)<<6&4294967295|s>>>26))+((s=i+(n^(t|~o))+r[3]+2399980690&4294967295)<<10&4294967295|s>>>22))+((s=o+(t^(i|~n))+r[10]+4293915773&4294967295)<<15&4294967295|s>>>17))+((s=n+(i^(o|~t))+r[1]+2240044497&4294967295)<<21&4294967295|s>>>11))+((s=t+(o^(n|~i))+r[8]+1873313359&4294967295)<<6&4294967295|s>>>26))+((s=i+(n^(t|~o))+r[15]+4264355552&4294967295)<<10&4294967295|s>>>22))+((s=o+(t^(i|~n))+r[6]+2734768916&4294967295)<<15&4294967295|s>>>17))+((s=n+(i^(o|~t))+r[13]+1309151649&4294967295)<<21&4294967295|s>>>11))+((i=(t=n+((s=t+(o^(n|~i))+r[4]+4149444226&4294967295)<<6&4294967295|s>>>26))+((s=i+(n^(t|~o))+r[11]+3174756917&4294967295)<<10&4294967295|s>>>22))^((o=i+((s=o+(t^(i|~n))+r[2]+718787259&4294967295)<<15&4294967295|s>>>17))|~t))+r[9]+3951481745&4294967295,e.g[0]=e.g[0]+t&4294967295,e.g[1]=e.g[1]+(o+(s<<21&4294967295|s>>>11))&4294967295,e.g[2]=e.g[2]+o&4294967295,e.g[3]=e.g[3]+i&4294967295}function wx(e,t){this.h=t;for(var n=[],r=!0,o=e.length-1;0<=o;o--){var i=0|e[o];r&&i==t||(n[o]=i,r=!1)}this.g=n}(Nk=RS.prototype).Oa=function(e){this.M=e},Nk.ha=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.I+"; newUri="+e);t=t?t.toUpperCase():"GET",this.I=e,this.j="",this.m=0,this.F=!1,this.h=!0,this.g=this.u?this.u.g():TT.g(),this.C=this.u?kT(this.u):kT(TT),this.g.onreadystatechange=Fk(this.La,this);try{this.G=!0,this.g.open(t,String(e),!0),this.G=!1}catch(i){return void US(this,i)}if(e=n||"",n=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var o in r)n.set(o,r[o]);else{if("function"!=typeof r.keys||"function"!=typeof r.get)throw Error("Unknown input type for opt_headers: "+String(r));for(const e of r.keys())n.set(e,r.get(e))}r=Array.from(n.keys()).find(e=>"content-type"==e.toLowerCase()),o=Pk.FormData&&e instanceof Pk.FormData,!(0<=$k(jS,t))||r||o||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[s,a]of n)this.g.setRequestHeader(s,a);this.K&&(this.g.responseType=this.K),"withCredentials"in this.g&&this.g.withCredentials!==this.M&&(this.g.withCredentials=this.M);try{VS(this),0<this.B&&((this.L=function(e){return rE&&"number"==typeof e.timeout&&void 0!==e.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=Fk(this.ua,this)):this.A=tT(this.ua,this.B,this)),this.v=!0,this.g.send(e),this.v=!1}catch(i){US(this,i)}},Nk.ua=function(){void 0!==Lk&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,FE(this,"timeout"),this.abort(8))},Nk.abort=function(e){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=e||7,FE(this,"complete"),FE(this,"abort"),BS(this))},Nk.N=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),BS(this,!0)),RS.$.N.call(this)},Nk.La=function(){this.s||(this.G||this.v||this.l?FS(this):this.kb())},Nk.kb=function(){FS(this)},Nk.isActive=function(){return!!this.g},Nk.da=function(){try{return 2<zS(this)?this.g.status:-1}catch(eE){return-1}},Nk.ja=function(){try{return this.g?this.g.responseText:""}catch(eE){return""}},Nk.Wa=function(e){if(this.g){var t=this.g.responseText;
1457return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),PS(t)}},Nk.Ia=function(){return this.m},Nk.Sa=function(){return"string"==typeof this.j?this.j:String(this.j)},(Nk=KS.prototype).ra=8,Nk.H=1,Nk.Na=function(e){if(this.m)if(this.m=null,1==this.H){if(!e){this.W=Math.floor(1e5*Math.random()),e=this.W++;const o=new CT(this,this.l,e);let i=this.s;if(this.U&&(i?(i=wE(i),EE(i,this.U)):i=this.U),null!==this.o||this.O||(o.I=i,i=null),this.P)e:{for(var t=0,n=0;n<this.j.length;n++){var r=this.j[n];if(void 0===(r="__data__"in r.map&&"string"==typeof(r=r.map.__data__)?r.length:void 0))break;if(4096<(t+=r)){t=n;break e}if(4096===t||n===this.j.length-1){t=n+1;break e}}t=1e3}else t=1e3;t=tx(this,o,t),JT(n=KT(this.I),"RID",e),JT(n,"CVER",22),this.F&&JT(n,"X-HTTP-Session-Id",this.F),ex(this,n),i&&(this.O?t="headers="+encodeURIComponent(String(HS(i)))+"&"+t:this.o&&WS(n,this.o,i)),_S(this.i,o),this.bb&&JT(n,"TYPE","init"),this.P?(JT(n,"$req",t),JT(n,"SID","null"),o.aa=!0,RT(o,n,null)):RT(o,n,t),this.H=2}}else 3==this.H&&(e?ZS(this,e):0==this.j.length||yS(this.i)||ZS(this))},Nk.Ma=function(){if(this.u=null,ix(this),this.ca&&!(this.M||null==this.g||0>=this.S)){var e=2*this.S;this.l.info("BP detection timer enabled: "+e),this.B=vT(Fk(this.jb,this),e)}},Nk.jb=function(){this.B&&(this.B=null,this.l.info("BP detection timeout reached."),this.l.info("Buffering proxy detected and switch to long-polling!"),this.G=!1,this.M=!0,gT(10),QS(this),ix(this))},Nk.ib=function(){null!=this.v&&(this.v=null,QS(this),rx(this),gT(19))},Nk.pb=function(e){e?(this.l.info("Successfully pinged google.com"),gT(2)):(this.l.info("Failed to ping google.com"),gT(1))},Nk.isActive=function(){return!!this.h&&this.h.isActive(this)},(Nk=dx.prototype).Ba=function(){},Nk.Aa=function(){},Nk.za=function(){},Nk.ya=function(){},Nk.isActive=function(){return!0},Nk.Va=function(){},px.prototype.g=function(e,t){return new mx(e,t)},Vk(mx,qE),mx.prototype.m=function(){this.g.h=this.j,this.A&&(this.g.J=!0);var e=this.g,t=this.l,n=this.h||void 0;gT(0),e.Y=t,e.na=n||{},e.G=e.aa,e.I=hx(e,null,e.Y),JS(e)},mx.prototype.close=function(){YS(this.g)},mx.prototype.u=function(e){var t=this.g;if("string"==typeof e){var n={};n.__data__=e,e=n}else this.v&&((n={}).__data__=VE(e),e=n);t.j.push(new pS(t.fb++,e)),3==t.H&&JS(t)},mx.prototype.N=function(){this.g.h=null,delete this.j,YS(this.g),delete this.g,mx.$.N.call(this)},Vk(gx,xT),Vk(yx,OT),Vk(vx,dx),vx.prototype.Ba=function(){FE(this.g,"a")},vx.prototype.Aa=function(e){FE(this.g,new gx(e))},vx.prototype.za=function(e){FE(this.g,new yx)},vx.prototype.ya=function(){FE(this.g,"b")},Vk(bx,function(){this.blockSize=-1}),bx.prototype.reset=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.i=this.h=0},bx.prototype.j=function(e,t){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=this.m,o=this.h,i=0;i<t;){if(0==o)for(;i<=n;)_x(this,e,i),i+=this.blockSize;if("string"==typeof e){for(;i<t;)if(r[o++]=e.charCodeAt(i++),o==this.blockSize){_x(this,r),o=0;break}}else for(;i<t;)if(r[o++]=e[i++],o==this.blockSize){_x(this,r),o=0;break}}this.h=o,this.i+=t},bx.prototype.l=function(){var e=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;var n=8*this.i;for(t=e.length-8;t<e.length;++t)e[t]=255&n,n/=256;for(this.j(e),e=Array(16),t=n=0;4>t;++t)for(var r=0;32>r;r+=8)e[n++]=this.g[t]>>>r&255;return e};var kx={};function Ex(e){return-128<=e&&128>e?function(e,t){var n=kx;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,function(e){return new wx([0|e],0>e?-1:0)}):new wx([0|e],0>e?-1:0)}function Tx(e){if(isNaN(e)||!isFinite(e))return xx;if(0>e)return Ix(Tx(-e));for(var t=[],n=1,r=0;e>=n;r++)t[r]=e/n|0,n*=Sx;return new wx(t,0)}var Sx=4294967296,xx=Ex(0),Ox=Ex(1),Ax=Ex(16777216);function Cx(e){if(0!=e.h)return!1;for(var t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function Nx(e){return-1==e.h}function Ix(e){for(var t=e.g.length,n=[],r=0;r<t;r++)n[r]=~e.g[r];return new wx(n,~e.h).add(Ox)}function Lx(e,t){return e.add(Ix(t))}function Px(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function Rx(e,t){this.g=e,this.h=t}function Dx(e,t){if(Cx(t))throw Error("division by zero");if(Cx(e))return new Rx(xx,xx);if(Nx(e))return t=Dx(Ix(e),t),new Rx(Ix(t.g),Ix(t.h));if(Nx(t))return t=Dx(e,Ix(t)),new Rx(Ix(t.g),t.h);if(30<e.g.length){if(Nx(e)||Nx(t))throw Error("slowDivide_ only works with positive integers.");for(var n=Ox,r=t;0>=r.X(e);)n=Mx(n),r=Mx(r);var o=jx(n,1),i=jx(r,1);for(r=jx(r,2),n=jx(n,2);!Cx(r);){var s=i.add(r);0>=s.X(e)&&(o=o.add(n),i=s),r=jx(r,1),n=jx(n,1)}return t=Lx(e,o.R(t)),new Rx(o,t)}for(o=xx;0<=e.X(t);){for(n=Math.max(1,Math.floor(e.ea()/t.ea())),r=48>=(r=Math.ceil(Math.log(n)/Math.LN2))?1:Math.pow(2,r-48),s=(i=Tx(n)).R(t);Nx(s)||0<s.X(e);)s=(i=Tx(n-=r)).R(t);Cx(i)&&(i=Ox),o=o.add(i),e=Lx(e,s)}return new Rx(o,e)}function Mx(e){for(var t=e.g.length+1,n=[],r=0;r<t;r++)n[r]=e.D(r)<<1|e.D(r-1)>>>31;return new wx(n,e.h)}function jx(e,t){var n=t>>5;t%=32;for(var r=e.g.length-n,o=[],i=0;i<r;i++)o[i]=0<t?e.D(i+n)>>>t|e.D(i+n+1)<<32-t:e.D(i+n);return new wx(o,e.h)}(Nk=wx.prototype).ea=function(){if(Nx(this))return-Ix(this).ea();for(var e=0,t=1,n=0;n<this.g.length;n++){var r=this.D(n);e+=(0<=r?r:Sx+r)*t,t*=Sx}return e},Nk.toString=function(e){if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if(Cx(this))return"0";if(Nx(this))return"-"+Ix(this).toString(e);for(var t=Tx(Math.pow(e,6)),n=this,r="";;){var o=Dx(n,t).g,i=((0<(n=Lx(n,o.R(t))).g.length?n.g[0]:n.h)>>>0).toString(e);if(Cx(n=o))return i+r;for(;6>i.length;)i="0"+i;r=i+r}},Nk.D=function(e){return 0>e?0:e<this.g.length?this.g[e]:this.h},Nk.X=function(e){return Nx(e=Lx(this,e))?-1:Cx(e)?0:1},Nk.abs=function(){return Nx(this)?Ix(this):this},Nk.add=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0,o=0;o<=t;o++){var i=r+(65535&this.D(o))+(65535&e.D(o)),s=(i>>>16)+(this.D(o)>>>16)+(e.D(o)>>>16);r=s>>>16,i&=65535,s&=65535,n[o]=s<<16|i}return new wx(n,-2147483648&n[n.length-1]?-1:0)},Nk.R=function(e){if(Cx(this)||Cx(e))return xx;if(Nx(this))return Nx(e)?Ix(this).R(Ix(e)):Ix(Ix(this).R(e));if(Nx(e))return Ix(this.R(Ix(e)));if(0>this.X(Ax)&&0>e.X(Ax))return Tx(this.ea()*e.ea());for(var t=this.g.length+e.g.length,n=[],r=0;r<2*t;r++)n[r]=0;for(r=0;r<this.g.length;r++)for(var o=0;o<e.g.length;o++){var i=this.D(r)>>>16,s=65535&this.D(r),a=e.D(o)>>>16,c=65535&e.D(o);n[2*r+2*o]+=s*c,Px(n,2*r+2*o),n[2*r+2*o+1]+=i*c,Px(n,2*r+2*o+1),n[2*r+2*o+1]+=s*a,Px(n,2*r+2*o+1),n[2*r+2*o+2]+=i*a,Px(n,2*r+2*o+2)}for(r=0;r<t;r++)n[r]=n[2*r+1]<<16|n[2*r];for(r=t;r<2*t;r++)n[r]=0;return new wx(n,0)},Nk.gb=function(e){return Dx(this,e).h},Nk.and=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.D(r)&e.D(r);return new wx(n,this.h&e.h)},Nk.or=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.D(r)|e.D(r);return new wx(n,this.h|e.h)},Nk.xor=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.D(r)^e.D(r);return new wx(n,this.h^e.h)},px.prototype.createWebChannel=px.prototype.g,mx.prototype.send=mx.prototype.u,mx.prototype.open=mx.prototype.m,mx.prototype.close=mx.prototype.close,bT.NO_ERROR=0,bT.TIMEOUT=8,bT.HTTP_ERROR=6,_T.COMPLETE="complete",ET.EventType=ST,ST.OPEN="a",ST.CLOSE="b",ST.ERROR="c",ST.MESSAGE="d",qE.prototype.listen=qE.prototype.O,RS.prototype.listenOnce=RS.prototype.P,RS.prototype.getLastError=RS.prototype.Sa,RS.prototype.getLastErrorCode=RS.prototype.Ia,RS.prototype.getStatus=RS.prototype.da,RS.prototype.getResponseJson=RS.prototype.Wa,RS.prototype.getResponseText=RS.prototype.ja,RS.prototype.send=RS.prototype.ha,RS.prototype.setWithCredentials=RS.prototype.Oa,bx.prototype.digest=bx.prototype.l,bx.prototype.reset=bx.prototype.reset,bx.prototype.update=bx.prototype.j,wx.prototype.add=wx.prototype.add,wx.prototype.multiply=wx.prototype.R,wx.prototype.modulo=wx.prototype.gb,wx.prototype.compare=wx.prototype.X,wx.prototype.toNumber=wx.prototype.ea,wx.prototype.toString=wx.prototype.toString,wx.prototype.getBits=wx.prototype.D,wx.fromNumber=Tx,wx.fromString=function e(t,n){if(0==t.length)throw Error("number format error: empty string");if(2>(n=n||10)||36<n)throw Error("radix out of range: "+n);
1457if("-"==t.charAt(0))return Ix(e(t.substring(1),n));if(0<=t.indexOf("-"))throw Error('number format error: interior "-" character');for(var r=Tx(Math.pow(n,8)),o=xx,i=0;i<t.length;i+=8){var s=Math.min(8,t.length-i),a=parseInt(t.substring(i,i+s),n);8>s?(s=Tx(Math.pow(n,s)),o=o.R(s).add(Tx(a))):o=(o=o.R(r)).add(Tx(a))}return o};var Ux=bT,qx=_T,Fx=uT,Bx=10,Vx=11,zx=ET,$x=RS,Hx=bx,Wx=wx;const Gx="@firebase/firestore";
1458/**
1459 * @license
1460 * Copyright 2017 Google LLC
1461 *
1462 * Licensed under the Apache License, Version 2.0 (the "License");
1463 * you may not use this file except in compliance with the License.
1464 * You may obtain a copy of the License at
1465 *
1466 *   http://www.apache.org/licenses/LICENSE-2.0
1467 *
1468 * Unless required by applicable law or agreed to in writing, software
1469 * distributed under the License is distributed on an "AS IS" BASIS,
1470 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1471 * See the License for the specific language governing permissions and
1472 * limitations under the License.
1473 */let Kx=class{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}};Kx.UNAUTHENTICATED=new Kx(null),Kx.GOOGLE_CREDENTIALS=new Kx("google-credentials-uid"),Kx.FIRST_PARTY=new Kx("first-party-uid"),Kx.MOCK_USER=new Kx("mock-user");
1474/**
1475 * @license
1476 * Copyright 2017 Google LLC
1477 *
1478 * Licensed under the Apache License, Version 2.0 (the "License");
1479 * you may not use this file except in compliance with the License.
1480 * You may obtain a copy of the License at
1481 *
1482 *   http://www.apache.org/licenses/LICENSE-2.0
1483 *
1484 * Unless required by applicable law or agreed to in writing, software
1485 * distributed under the License is distributed on an "AS IS" BASIS,
1486 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1487 * See the License for the specific language governing permissions and
1488 * limitations under the License.
1489 */
1490let Yx="10.10.0";
1491/**
1492 * @license
1493 * Copyright 2017 Google LLC
1494 *
1495 * Licensed under the Apache License, Version 2.0 (the "License");
1496 * you may not use this file except in compliance with the License.
1497 * You may obtain a copy of the License at
1498 *
1499 *   http://www.apache.org/licenses/LICENSE-2.0
1500 *
1501 * Unless required by applicable law or agreed to in writing, software
1502 * distributed under the License is distributed on an "AS IS" BASIS,
1503 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1504 * See the License for the specific language governing permissions and
1505 * limitations under the License.
1506 */const Qx=new Ov("@firebase/firestore");function Xx(){return Qx.logLevel}function Jx(e,...t){if(Qx.logLevel<=kv.DEBUG){const n=t.map(tO);Qx.debug(`Firestore (${Yx}): ${e}`,...n)}}function Zx(e,...t){if(Qx.logLevel<=kv.ERROR){const n=t.map(tO);Qx.error(`Firestore (${Yx}): ${e}`,...n)}}function eO(e,...t){if(Qx.logLevel<=kv.WARN){const n=t.map(tO);Qx.warn(`Firestore (${Yx}): ${e}`,...n)}}function tO(e){if("string"==typeof e)return e;try{
1507/**
1508 * @license
1509 * Copyright 2020 Google LLC
1510 *
1511 * Licensed under the Apache License, Version 2.0 (the "License");
1512 * you may not use this file except in compliance with the License.
1513 * You may obtain a copy of the License at
1514 *
1515 *   http://www.apache.org/licenses/LICENSE-2.0
1516 *
1517 * Unless required by applicable law or agreed to in writing, software
1518 * distributed under the License is distributed on an "AS IS" BASIS,
1519 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1520 * See the License for the specific language governing permissions and
1521 * limitations under the License.
1522 */
1523return function(e){return JSON.stringify(e)}(e)}catch(NB){return e}}
1524/**
1525 * @license
1526 * Copyright 2017 Google LLC
1527 *
1528 * Licensed under the Apache License, Version 2.0 (the "License");
1529 * you may not use this file except in compliance with the License.
1530 * You may obtain a copy of the License at
1531 *
1532 *   http://www.apache.org/licenses/LICENSE-2.0
1533 *
1534 * Unless required by applicable law or agreed to in writing, software
1535 * distributed under the License is distributed on an "AS IS" BASIS,
1536 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1537 * See the License for the specific language governing permissions and
1538 * limitations under the License.
1539 */function nO(e="Unexpected state"){const t=`FIRESTORE (${Yx}) INTERNAL ASSERTION FAILED: `+e;throw Zx(t),new Error(t)}function rO(e,t){e||nO()}function oO(e,t){return e}
1540/**
1541 * @license
1542 * Copyright 2017 Google LLC
1543 *
1544 * Licensed under the Apache License, Version 2.0 (the "License");
1545 * you may not use this file except in compliance with the License.
1546 * You may obtain a copy of the License at
1547 *
1548 *   http://www.apache.org/licenses/LICENSE-2.0
1549 *
1550 * Unless required by applicable law or agreed to in writing, software
1551 * distributed under the License is distributed on an "AS IS" BASIS,
1552 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1553 * See the License for the specific language governing permissions and
1554 * limitations under the License.
1555 */const iO={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class sO extends lv{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}
1556/**
1557 * @license
1558 * Copyright 2017 Google LLC
1559 *
1560 * Licensed under the Apache License, Version 2.0 (the "License");
1561 * you may not use this file except in compliance with the License.
1562 * You may obtain a copy of the License at
1563 *
1564 *   http://www.apache.org/licenses/LICENSE-2.0
1565 *
1566 * Unless required by applicable law or agreed to in writing, software
1567 * distributed under the License is distributed on an "AS IS" BASIS,
1568 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1569 * See the License for the specific language governing permissions and
1570 * limitations under the License.
1571 */class aO{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}
1572/**
1573 * @license
1574 * Copyright 2017 Google LLC
1575 *
1576 * Licensed under the Apache License, Version 2.0 (the "License");
1577 * you may not use this file except in compliance with the License.
1578 * You may obtain a copy of the License at
1579 *
1580 *   http://www.apache.org/licenses/LICENSE-2.0
1581 *
1582 * Unless required by applicable law or agreed to in writing, software
1583 * distributed under the License is distributed on an "AS IS" BASIS,
1584 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1585 * See the License for the specific language governing permissions and
1586 * limitations under the License.
1587 */class cO{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class lO{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t(Kx.UNAUTHENTICATED))}shutdown(){}}class uO{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,t){this.changeListener=t,e.enqueueRetryable(()=>t(this.token.user))}shutdown(){this.changeListener=null}}class hO{constructor(e){this.t=e,this.currentUser=Kx.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){let n=this.i;const r=e=>this.i!==n?(n=this.i,t(e)):Promise.resolve();let o=new aO;this.o=()=>{this.i++,this.currentUser=this.u(),o.resolve(),o=new aO,e.enqueueRetryable(()=>r(this.currentUser))};const i=()=>{const t=o;e.enqueueRetryable(async()=>{await t.promise,await r(this.currentUser)})},s=e=>{Jx("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=e,this.auth.addAuthTokenListener(this.o),i()};this.t.onInit(e=>s(e)),setTimeout(()=>{if(!this.auth){const e=this.t.getImmediate({optional:!0});e?s(e):(Jx("FirebaseAuthCredentialsProvider","Auth not yet detected"),o.resolve(),o=new aO)}},0),i()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(t=>this.i!==e?(Jx("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):t?(rO("string"==typeof t.accessToken),new cO(t.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const e=this.auth&&this.auth.getUid();return rO(null===e||"string"==typeof e),new Kx(e)}}class fO{constructor(e,t,n){this.l=e,this.h=t,this.P=n,this.type="FirstParty",this.user=Kx.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const e=this.T();return e&&this.I.set("Authorization",e),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class dO{constructor(e,t,n){this.l=e,this.h=t,this.P=n}getToken(){return Promise.resolve(new fO(this.l,this.h,this.P))}start(e,t){e.enqueueRetryable(()=>t(Kx.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class pO{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class mO{constructor(e){this.A=e,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(e,t){const n=e=>{null!=e.error&&Jx("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${e.error.message}`);const n=e.token!==this.R;return this.R=e.token,Jx("FirebaseAppCheckTokenProvider",`Received ${n?"new":"existing"} token.`),n?t(e.token):Promise.resolve()};this.o=t=>{e.enqueueRetryable(()=>n(t))};const r=e=>{Jx("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=e,this.appCheck.addTokenListener(this.o)};this.A.onInit(e=>r(e)),setTimeout(()=>{if(!this.appCheck){const e=this.A.getImmediate({optional:!0});e?r(e):Jx("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(e=>e?(rO("string"==typeof e.token),this.R=e.token,new pO(e.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}
1588/**
1589 * @license
1590 * Copyright 2020 Google LLC
1591 *
1592 * Licensed under the Apache License, Version 2.0 (the "License");
1593 * you may not use this file except in compliance with the License.
1594 * You may obtain a copy of the License at
1595 *
1596 *   http://www.apache.org/licenses/LICENSE-2.0
1597 *
1598 * Unless required by applicable law or agreed to in writing, software
1599 * distributed under the License is distributed on an "AS IS" BASIS,
1600 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1601 * See the License for the specific language governing permissions and
1602 * limitations under the License.
1603 */function gO(e){const t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(let r=0;r<e;r++)n[r]=Math.floor(256*Math.random());return n}
1604/**
1605 * @license
1606 * Copyright 2017 Google LLC
1607 *
1608 * Licensed under the Apache License, Version 2.0 (the "License");
1609 * you may not use this file except in compliance with the License.
1610 * You may obtain a copy of the License at
1611 *
1612 *   http://www.apache.org/licenses/LICENSE-2.0
1613 *
1614 * Unless required by applicable law or agreed to in writing, software
1615 * distributed under the License is distributed on an "AS IS" BASIS,
1616 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1617 * See the License for the specific language governing permissions and
1618 * limitations under the License.
1619 */class yO{static newId(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=62*Math.floor(256/62);let n="";for(;n.length<20;){const r=gO(40);for(let o=0;o<r.length;++o)n.length<20&&r[o]<t&&(n+=e.charAt(r[o]%62))}return n}}function vO(e,t){return e<t?-1:e>t?1:0}function bO(e,t,n){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}
1620/**
1621 * @license
1622 * Copyright 2017 Google LLC
1623 *
1624 * Licensed under the Apache License, Version 2.0 (the "License");
1625 * you may not use this file except in compliance with the License.
1626 * You may obtain a copy of the License at
1627 *
1628 *   http://www.apache.org/licenses/LICENSE-2.0
1629 *
1630 * Unless required by applicable law or agreed to in writing, software
1631 * distributed under the License is distributed on an "AS IS" BASIS,
1632 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1633 * See the License for the specific language governing permissions and
1634 * limitations under the License.
1635 */class _O{constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new sO(iO.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new sO(iO.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new sO(iO.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new sO(iO.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}static now(){return _O.fromMillis(Date.now())}static fromDate(e){return _O.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),n=Math.floor(1e6*(e-1e3*t));return new _O(t,n)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?vO(this.nanoseconds,e.nanoseconds):vO(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){const e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}
1636/**
1637 * @license
1638 * Copyright 2017 Google LLC
1639 *
1640 * Licensed under the Apache License, Version 2.0 (the "License");
1641 * you may not use this file except in compliance with the License.
1642 * You may obtain a copy of the License at
1643 *
1644 *   http://www.apache.org/licenses/LICENSE-2.0
1645 *
1646 * Unless required by applicable law or agreed to in writing, software
1647 * distributed under the License is distributed on an "AS IS" BASIS,
1648 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1649 * See the License for the specific language governing permissions and
1650 * limitations under the License.
1651 */class wO{constructor(e){this.timestamp=e}static fromTimestamp(e){return new wO(e)}static min(){return new wO(new _O(0,0))}static max(){return new wO(new _O(253402300799,999999999))}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}
1652/**
1653 * @license
1654 * Copyright 2017 Google LLC
1655 *
1656 * Licensed under the Apache License, Version 2.0 (the "License");
1657 * you may not use this file except in compliance with the License.
1658 * You may obtain a copy of the License at
1659 *
1660 *   http://www.apache.org/licenses/LICENSE-2.0
1661 *
1662 * Unless required by applicable law or agreed to in writing, software
1663 * distributed under the License is distributed on an "AS IS" BASIS,
1664 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1665 * See the License for the specific language governing permissions and
1666 * limitations under the License.
1667 */class kO{constructor(e,t,n){void 0===t?t=0:t>e.length&&nO(),void 0===n?n=e.length-t:n>e.length-t&&nO(),this.segments=e,this.offset=t,this.len=n}get length(){return this.len}isEqual(e){return 0===kO.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof kO?e.forEach(e=>{t.push(e)}):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=e.get(r),o=t.get(r);if(n<o)return-1;if(n>o)return 1}return e.length<t.length?-1:e.length>t.length?1:0}}class EO extends kO{construct(e,t,n){return new EO(e,t,n)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const t=[];for(const n of e){if(n.indexOf("//")>=0)throw new sO(iO.INVALID_ARGUMENT,`Invalid segment (${n}). Paths must not contain // in them.`);t.push(...n.split("/").filter(e=>e.length>0))}return new EO(t)}static emptyPath(){return new EO([])}}const TO=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class SO extends kO{construct(e,t,n){return new SO(e,t,n)}static isValidIdentifier(e){return TO.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),SO.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new SO(["__name__"])}static fromServerFormat(e){const t=[];let n="",r=0;const o=()=>{if(0===n.length)throw new sO(iO.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);t.push(n),n=""};let i=!1;for(;r<e.length;){const t=e[r];if("\\"===t){if(r+1===e.length)throw new sO(iO.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const t=e[r+1];if("\\"!==t&&"."!==t&&"`"!==t)throw new sO(iO.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);n+=t,r+=2}else"`"===t?(i=!i,r++):"."!==t||i?(n+=t,r++):(o(),r++)}if(o(),i)throw new sO(iO.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new SO(t)}static emptyPath(){return new SO([])}}
1668/**
1669 * @license
1670 * Copyright 2017 Google LLC
1671 *
1672 * Licensed under the Apache License, Version 2.0 (the "License");
1673 * you may not use this file except in compliance with the License.
1674 * You may obtain a copy of the License at
1675 *
1676 *   http://www.apache.org/licenses/LICENSE-2.0
1677 *
1678 * Unless required by applicable law or agreed to in writing, software
1679 * distributed under the License is distributed on an "AS IS" BASIS,
1680 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1681 * See the License for the specific language governing permissions and
1682 * limitations under the License.
1683 */class xO{constructor(e){this.path=e}static fromPath(e){return new xO(EO.fromString(e))}static fromName(e){return new xO(EO.fromString(e).popFirst(5))}static empty(){return new xO(EO.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===EO.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return EO.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new xO(new EO(e.slice()))}}function OO(e){return new AO(e.readTime,e.key,-1)}class AO{constructor(e,t,n){this.readTime=e,this.documentKey=t,this.largestBatchId=n}static min(){return new AO(wO.min(),xO.empty(),-1)}static max(){return new AO(wO.max(),xO.empty(),-1)}}function CO(e,t){let n=e.readTime.compareTo(t.readTime);return 0!==n?n:(n=xO.comparator(e.documentKey,t.documentKey),0!==n?n:vO(e.largestBatchId,t.largestBatchId)
1684/**
1685 * @license
1686 * Copyright 2020 Google LLC
1687 *
1688 * Licensed under the Apache License, Version 2.0 (the "License");
1689 * you may not use this file except in compliance with the License.
1690 * You may obtain a copy of the License at
1691 *
1692 *   http://www.apache.org/licenses/LICENSE-2.0
1693 *
1694 * Unless required by applicable law or agreed to in writing, software
1695 * distributed under the License is distributed on an "AS IS" BASIS,
1696 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1697 * See the License for the specific language governing permissions and
1698 * limitations under the License.
1699 */)}class NO{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}
1700/**
1701 * @license
1702 * Copyright 2017 Google LLC
1703 *
1704 * Licensed under the Apache License, Version 2.0 (the "License");
1705 * you may not use this file except in compliance with the License.
1706 * You may obtain a copy of the License at
1707 *
1708 *   http://www.apache.org/licenses/LICENSE-2.0
1709 *
1710 * Unless required by applicable law or agreed to in writing, software
1711 * distributed under the License is distributed on an "AS IS" BASIS,
1712 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1713 * See the License for the specific language governing permissions and
1714 * limitations under the License.
1715 */async function IO(e){if(e.code!==iO.FAILED_PRECONDITION||"The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab."!==e.message)throw e;Jx("LocalStore","Unexpectedly lost primary lease")}
1716/**
1717 * @license
1718 * Copyright 2017 Google LLC
1719 *
1720 * Licensed under the Apache License, Version 2.0 (the "License");
1721 * you may not use this file except in compliance with the License.
1722 * You may obtain a copy of the License at
1723 *
1724 *   http://www.apache.org/licenses/LICENSE-2.0
1725 *
1726 * Unless required by applicable law or agreed to in writing, software
1727 * distributed under the License is distributed on an "AS IS" BASIS,
1728 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1729 * See the License for the specific language governing permissions and
1730 * limitations under the License.
1731 */class LO{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(e=>{this.isDone=!0,this.result=e,this.nextCallback&&this.nextCallback(e)},e=>{this.isDone=!0,this.error=e,this.catchCallback&&this.catchCallback(e)})}catch(e){return this.next(void 0,e)}next(e,t){return this.callbackAttached&&nO(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new LO((n,r)=>{this.nextCallback=t=>{this.wrapSuccess(e,t).next(n,r)},this.catchCallback=e=>{this.wrapFailure(t,e).next(n,r)}})}toPromise(){return new Promise((e,t)=>{this.next(e,t)})}wrapUserFunction(e){try{const t=e();return t instanceof LO?t:LO.resolve(t)}catch(e){return LO.reject(e)}}wrapSuccess(e,t){return e?this.wrapUserFunction(()=>e(t)):LO.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction(()=>e(t)):LO.reject(t)}static resolve(e){return new LO((t,n)=>{t(e)})}static reject(e){return new LO((t,n)=>{n(e)})}static waitFor(e){return new LO((t,n)=>{let r=0,o=0,i=!1;e.forEach(e=>{++r,e.next(()=>{++o,i&&o===r&&t()},e=>n(e))}),i=!0,o===r&&t()})}static or(e){let t=LO.resolve(!1);for(const n of e)t=t.next(e=>e?LO.resolve(e):n());return t}static forEach(e,t){const n=[];return e.forEach((e,r)=>{n.push(t.call(this,e,r))}),this.waitFor(n)}static mapArray(e,t){return new LO((n,r)=>{const o=e.length,i=new Array(o);let s=0;for(let a=0;a<o;a++){const c=a;t(e[c]).next(e=>{i[c]=e,++s,s===o&&n(i)},e=>r(e))}})}static doWhile(e,t){return new LO((n,r)=>{const o=()=>{!0===e()?t().next(()=>{o()},r):n()};o()})}}
1732/**
1733 * @license
1734 * Copyright 2017 Google LLC
1735 *
1736 * Licensed under the Apache License, Version 2.0 (the "License");
1737 * you may not use this file except in compliance with the License.
1738 * You may obtain a copy of the License at
1739 *
1740 *   http://www.apache.org/licenses/LICENSE-2.0
1741 *
1742 * Unless required by applicable law or agreed to in writing, software
1743 * distributed under the License is distributed on an "AS IS" BASIS,
1744 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1745 * See the License for the specific language governing permissions and
1746 * limitations under the License.
1747 */class PO{constructor(e,t){this.action=e,this.transaction=t,this.aborted=!1,this.V=new aO,this.transaction.oncomplete=()=>{this.V.resolve()},this.transaction.onabort=()=>{t.error?this.V.reject(new MO(e,t.error)):this.V.resolve()},this.transaction.onerror=t=>{const n=BO(t.target.error);this.V.reject(new MO(e,n))}}static open(e,t,n,r){try{return new PO(t,e.transaction(r,n))}catch(e){throw new MO(t,e)}}get m(){return this.V.promise}abort(e){e&&this.V.reject(e),this.aborted||(Jx("SimpleDb","Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())}g(){const e=this.transaction;this.aborted||"function"!=typeof e.commit||e.commit()}store(e){const t=this.transaction.objectStore(e);return new UO(t)}}class RO{constructor(e,t,n){this.name=e,this.version=t,this.p=n,12.2===RO.S(sv())&&Zx("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}static delete(e){return Jx("SimpleDb","Removing database:",e),qO(window.indexedDB.deleteDatabase(e)).toPromise()}static D(){if(!cv())return!1;if(RO.C())return!0;const e=sv(),t=RO.S(e),n=0<t&&t<10,r=RO.v(e),o=0<r&&r<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||n||o)}static C(){var e;return"undefined"!=typeof process&&"YES"===(null===(e=process.__PRIVATE_env)||void 0===e?void 0:e.F)}static M(e,t){return e.store(t)}static S(e){const t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(n)}static v(e){const t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)}async O(e){return this.db||(Jx("SimpleDb","Opening database:",this.name),this.db=await new Promise((t,n)=>{const r=indexedDB.open(this.name,this.version);r.onsuccess=e=>{const n=e.target.result;t(n)},r.onblocked=()=>{n(new MO(e,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},r.onerror=t=>{const r=t.target.error;"VersionError"===r.name?n(new sO(iO.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):"InvalidStateError"===r.name?n(new sO(iO.FAILED_PRECONDITION,"Unable to open an IndexedDB connection. This could be due to running in a private browsing session on a browser whose private browsing sessions do not support IndexedDB: "+r)):n(new MO(e,r))},r.onupgradeneeded=e=>{Jx("SimpleDb",'Database "'+this.name+'" requires upgrade from version:',e.oldVersion);const t=e.target.result;this.p.N(t,r.transaction,e.oldVersion,this.version).next(()=>{Jx("SimpleDb","Database upgrade to version "+this.version+" complete")})}})),this.L&&(this.db.onversionchange=e=>this.L(e)),this.db}B(e){this.L=e,this.db&&(this.db.onversionchange=t=>e(t))}async runTransaction(e,t,n,r){const o="readonly"===t;let i=0;for(;;){++i;try{this.db=await this.O(e);const t=PO.open(this.db,e,o?"readonly":"readwrite",n),i=r(t).next(e=>(t.g(),e)).catch(e=>(t.abort(e),LO.reject(e))).toPromise();return i.catch(()=>{}),await t.m,i}catch(e){const t=e,n="FirebaseError"!==t.name&&i<3;if(Jx("SimpleDb","Transaction failed with error:",t.message,"Retrying:",n),this.close(),!n)return Promise.reject(t)}}}close(){this.db&&this.db.close(),this.db=void 0}}class DO{constructor(e){this.k=e,this.q=!1,this.K=null}get isDone(){return this.q}get $(){return this.K}set cursor(e){this.k=e}done(){this.q=!0}U(e){this.K=e}delete(){return qO(this.k.delete())}}class MO extends sO{constructor(e,t){super(iO.UNAVAILABLE,`IndexedDB transaction '${e}' failed: ${t}`),this.name="IndexedDbTransactionError"}}function jO(e){return"IndexedDbTransactionError"===e.name}class UO{constructor(e){this.store=e}put(e,t){let n;return void 0!==t?(Jx("SimpleDb","PUT",this.store.name,e,t),n=this.store.put(t,e)):(Jx("SimpleDb","PUT",this.store.name,"<auto-key>",e),n=this.store.put(e)),qO(n)}add(e){return Jx("SimpleDb","ADD",this.store.name,e,e),qO(this.store.add(e))}get(e){return qO(this.store.get(e)).next(t=>(void 0===t&&(t=null),Jx("SimpleDb","GET",this.store.name,e,t),t))}delete(e){return Jx("SimpleDb","DELETE",this.store.name,e),qO(this.store.delete(e))}count(){return Jx("SimpleDb","COUNT",this.store.name),qO(this.store.count())}W(e,t){const n=this.options(e,t),r=n.index?this.store.index(n.index):this.store;if("function"==typeof r.getAll){const e=r.getAll(n.range);return new LO((t,n)=>{e.onerror=e=>{n(e.target.error)},e.onsuccess=e=>{t(e.target.result)}})}{const e=this.cursor(n),t=[];return this.G(e,(e,n)=>{t.push(n)}).next(()=>t)}}j(e,t){const n=this.store.getAll(e,null===t?void 0:t);return new LO((e,t)=>{n.onerror=e=>{t(e.target.error)},n.onsuccess=t=>{e(t.target.result)}})}H(e,t){Jx("SimpleDb","DELETE ALL",this.store.name);const n=this.options(e,t);n.J=!1;const r=this.cursor(n);return this.G(r,(e,t,n)=>n.delete())}Y(e,t){let n;t?n=e:(n={},t=e);const r=this.cursor(n);return this.G(r,t)}Z(e){const t=this.cursor({});return new LO((n,r)=>{t.onerror=e=>{const t=BO(e.target.error);r(t)},t.onsuccess=t=>{const r=t.target.result;r?e(r.primaryKey,r.value).next(e=>{e?r.continue():n()}):n()}})}G(e,t){const n=[];return new LO((r,o)=>{e.onerror=e=>{o(e.target.error)},e.onsuccess=e=>{const o=e.target.result;if(!o)return void r();const i=new DO(o),s=t(o.primaryKey,o.value,i);
1747if(s instanceof LO){const e=s.catch(e=>(i.done(),LO.reject(e)));n.push(e)}i.isDone?r():null===i.$?o.continue():o.continue(i.$)}}).next(()=>LO.waitFor(n))}options(e,t){let n;return void 0!==e&&("string"==typeof e?n=e:t=e),{index:n,range:t}}cursor(e){let t="next";if(e.reverse&&(t="prev"),e.index){const n=this.store.index(e.index);return e.J?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)}}function qO(e){return new LO((t,n)=>{e.onsuccess=e=>{const n=e.target.result;t(n)},e.onerror=e=>{const t=BO(e.target.error);n(t)}})}let FO=!1;function BO(e){const t=RO.S(sv());if(t>=12.2&&t<13){const t="An internal error was encountered in the Indexed Database server";if(e.message.indexOf(t)>=0){const e=new sO("internal",`IOS_INDEXEDDB_BUG1: IndexedDb has thrown '${t}'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.`);return FO||(FO=!0,setTimeout(()=>{throw e},0)),e}}return e}
1748/**
1749 * @license
1750 * Copyright 2018 Google LLC
1751 *
1752 * Licensed under the Apache License, Version 2.0 (the "License");
1753 * you may not use this file except in compliance with the License.
1754 * You may obtain a copy of the License at
1755 *
1756 *   http://www.apache.org/licenses/LICENSE-2.0
1757 *
1758 * Unless required by applicable law or agreed to in writing, software
1759 * distributed under the License is distributed on an "AS IS" BASIS,
1760 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1761 * See the License for the specific language governing permissions and
1762 * limitations under the License.
1763 */class VO{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=e=>this.se(e),this.oe=e=>t.writeSequenceNumber(e))}se(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.oe&&this.oe(e),e}}function zO(e){return null==e}function $O(e){return 0===e&&1/e==-1/0}
1764/**
1765 * @license
1766 * Copyright 2017 Google LLC
1767 *
1768 * Licensed under the Apache License, Version 2.0 (the "License");
1769 * you may not use this file except in compliance with the License.
1770 * You may obtain a copy of the License at
1771 *
1772 *   http://www.apache.org/licenses/LICENSE-2.0
1773 *
1774 * Unless required by applicable law or agreed to in writing, software
1775 * distributed under the License is distributed on an "AS IS" BASIS,
1776 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1777 * See the License for the specific language governing permissions and
1778 * limitations under the License.
1779 */
1780function HO(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function WO(e,t){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function GO(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}
1781/**
1782 * @license
1783 * Copyright 2017 Google LLC
1784 *
1785 * Licensed under the Apache License, Version 2.0 (the "License");
1786 * you may not use this file except in compliance with the License.
1787 * You may obtain a copy of the License at
1788 *
1789 *   http://www.apache.org/licenses/LICENSE-2.0
1790 *
1791 * Unless required by applicable law or agreed to in writing, software
1792 * distributed under the License is distributed on an "AS IS" BASIS,
1793 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1794 * See the License for the specific language governing permissions and
1795 * limitations under the License.
1796 */VO._e=-1;class KO{constructor(e,t){this.comparator=e,this.root=t||QO.EMPTY}insert(e,t){return new KO(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,QO.BLACK,null,null))}remove(e){return new KO(this.comparator,this.root.remove(e,this.comparator).copy(null,null,QO.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}indexOf(e){let t=0,n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((t,n)=>(e(t,n),!1))}toString(){const e=[];return this.inorderTraversal((t,n)=>(e.push(`${t}:${n}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new YO(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new YO(this.root,e,this.comparator,!1)}getReverseIterator(){return new YO(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new YO(this.root,e,this.comparator,!0)}}class YO{constructor(e,t,n,r){this.isReverse=r,this.nodeStack=[];let o=1;for(;!e.isEmpty();)if(o=t?n(e.key,t):1,t&&r&&(o*=-1),o<0)e=this.isReverse?e.left:e.right;else{if(0===o){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class QO{constructor(e,t,n,r,o){this.key=e,this.value=t,this.color=null!=n?n:QO.RED,this.left=null!=r?r:QO.EMPTY,this.right=null!=o?o:QO.
vendor: 4,643 bytes, lines 1796-1813
1796EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,n,r,o){return new QO(null!=e?e:this.key,null!=t?t:this.value,null!=n?n:this.color,null!=r?r:this.left,null!=o?o:this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let r=this;const o=n(e,r.key);return r=o<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===o?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n)),r.fixUp()}removeMin(){if(this.left.isEmpty())return QO.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,t){let n,r=this;if(t(e,r.key)<0)r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(e,t),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),0===t(e,r.key)){if(r.right.isEmpty())return QO.EMPTY;n=r.right.min(),r=r.copy(n.key,n.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(e,t))}return r.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,QO.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,QO.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw nO();if(this.right.isRed())throw nO();const e=this.left.check();if(e!==this.right.check())throw nO();return e+(this.isRed()?0:1)}}QO.EMPTY=null,QO.RED=!0,QO.BLACK=!1,QO.EMPTY=new class{constructor(){this.size=0}get key(){throw nO()}get value(){throw nO()}get color(){throw nO()}get left(){throw nO()}get right(){throw nO()}copy(e,t,n,r,o){return this}insert(e,t,n){return new QO(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};
1797/**
1798 * @license
1799 * Copyright 2017 Google LLC
1800 *
1801 * Licensed under the Apache License, Version 2.0 (the "License");
1802 * you may not use this file except in compliance with the License.
1803 * You may obtain a copy of the License at
1804 *
1805 *   http://www.apache.org/licenses/LICENSE-2.0
1806 *
1807 * Unless required by applicable law or agreed to in writing, software
1808 * distributed under the License is distributed on an "AS IS" BASIS,
1809 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1810 * See the License for the specific language governing permissions and
1811 * limitations under the License.
1812 */
1813class XO{constructor(e){this.comparator=e,this.data=new KO(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((t,n)=>(e(t),!1))}forEachInRange(e,t){const n=this.data.getIteratorFrom(e[0]);for(;n.hasNext();){const r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}}forEachWhile(e,t){let n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new JO(this.data.getIterator())}getIteratorFrom(e){return new JO(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;
1813return t.size<e.size&&(t=e,e=this),e.forEach(e=>{t=t.add(e)}),t}isEqual(e){if(!(e instanceof XO))return!1;if(this.size!==e.size)return!1;const t=this.data.getIterator(),n=e.data.getIterator();for(;t.hasNext();){const e=t.getNext().key,r=n.getNext().key;if(0!==this.comparator(e,r))return!1}return!0}toArray(){const e=[];return this.forEach(t=>{e.push(t)}),e}toString(){const e=[];return this.forEach(t=>e.push(t)),"SortedSet("+e.toString()+")"}copy(e){const t=new XO(this.comparator);return t.data=e,t}}class JO{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}
1814/**
1815 * @license
1816 * Copyright 2020 Google LLC
1817 *
1818 * Licensed under the Apache License, Version 2.0 (the "License");
1819 * you may not use this file except in compliance with the License.
1820 * You may obtain a copy of the License at
1821 *
1822 *   http://www.apache.org/licenses/LICENSE-2.0
1823 *
1824 * Unless required by applicable law or agreed to in writing, software
1825 * distributed under the License is distributed on an "AS IS" BASIS,
1826 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1827 * See the License for the specific language governing permissions and
1828 * limitations under the License.
1829 */class ZO{constructor(e){this.fields=e,e.sort(SO.comparator)}static empty(){return new ZO([])}unionWith(e){let t=new XO(SO.comparator);for(const n of this.fields)t=t.add(n);for(const n of e)t=t.add(n);return new ZO(t.toArray())}covers(e){for(const t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return bO(this.fields,e.fields,(e,t)=>e.isEqual(t))}}
1830/**
1831 * @license
1832 * Copyright 2023 Google LLC
1833 *
1834 * Licensed under the Apache License, Version 2.0 (the "License");
1835 * you may not use this file except in compliance with the License.
1836 * You may obtain a copy of the License at
1837 *
1838 *   http://www.apache.org/licenses/LICENSE-2.0
1839 *
1840 * Unless required by applicable law or agreed to in writing, software
1841 * distributed under the License is distributed on an "AS IS" BASIS,
1842 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1843 * See the License for the specific language governing permissions and
1844 * limitations under the License.
1845 */class eA extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}
1846/**
1847 * @license
1848 * Copyright 2020 Google LLC
1849 *
1850 * Licensed under the Apache License, Version 2.0 (the "License");
1851 * you may not use this file except in compliance with the License.
1852 * You may obtain a copy of the License at
1853 *
1854 *   http://www.apache.org/licenses/LICENSE-2.0
1855 *
1856 * Unless required by applicable law or agreed to in writing, software
1857 * distributed under the License is distributed on an "AS IS" BASIS,
1858 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1859 * See the License for the specific language governing permissions and
1860 * limitations under the License.
1861 */class tA{constructor(e){this.binaryString=e}static fromBase64String(e){const t=function(e){try{return atob(e)}catch(e){throw"undefined"!=typeof DOMException&&e instanceof DOMException?new eA("Invalid base64 string: "+e):e}}(e);return new tA(t)}static fromUint8Array(e){const t=function(e){let t="";for(let n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(e);return new tA(t)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return e=this.binaryString,btoa(e);var e}toUint8Array(){return function(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}
1862/**
1863 * @license
1864 * Copyright 2020 Google LLC
1865 *
1866 * Licensed under the Apache License, Version 2.0 (the "License");
1867 * you may not use this file except in compliance with the License.
1868 * You may obtain a copy of the License at
1869 *
1870 *   http://www.apache.org/licenses/LICENSE-2.0
1871 *
1872 * Unless required by applicable law or agreed to in writing, software
1873 * distributed under the License is distributed on an "AS IS" BASIS,
1874 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1875 * See the License for the specific language governing permissions and
1876 * limitations under the License.
1877 */(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return vO(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}tA.EMPTY_BYTE_STRING=new tA("");const nA=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function rA(e){if(rO(!!e),"string"==typeof e){let t=0;const n=nA.exec(e);if(rO(!!n),n[1]){let e=n[1];e=(e+"000000000").substr(0,9),t=Number(e)}const r=new Date(e);return{seconds:Math.floor(r.getTime()/1e3),nanos:t}}return{seconds:oA(e.seconds),nanos:oA(e.nanos)}}function oA(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function iA(e){return"string"==typeof e?tA.fromBase64String(e):tA.fromUint8Array(e)}
1878/**
1879 * @license
1880 * Copyright 2020 Google LLC
1881 *
1882 * Licensed under the Apache License, Version 2.0 (the "License");
1883 * you may not use this file except in compliance with the License.
1884 * You may obtain a copy of the License at
1885 *
1886 *   http://www.apache.org/licenses/LICENSE-2.0
1887 *
1888 * Unless required by applicable law or agreed to in writing, software
1889 * distributed under the License is distributed on an "AS IS" BASIS,
1890 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1891 * See the License for the specific language governing permissions and
1892 * limitations under the License.
1893 */function sA(e){var t,n;return"server_timestamp"===(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function aA(e){const t=e.mapValue.fields.__previous_value__;return sA(t)?aA(t):t}function cA(e){const t=rA(e.mapValue.fields.__local_write_time__.timestampValue);return new _O(t.seconds,t.nanos)}
1894/**
1895 * @license
1896 * Copyright 2017 Google LLC
1897 *
1898 * Licensed under the Apache License, Version 2.0 (the "License");
1899 * you may not use this file except in compliance with the License.
1900 * You may obtain a copy of the License at
1901 *
1902 *   http://www.apache.org/licenses/LICENSE-2.0
1903 *
1904 * Unless required by applicable law or agreed to in writing, software
1905 * distributed under the License is distributed on an "AS IS" BASIS,
1906 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1907 * See the License for the specific language governing permissions and
1908 * limitations under the License.
1909 */class lA{constructor(e,t,n,r,o,i,s,a,c){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=r,this.ssl=o,this.forceLongPolling=i,this.autoDetectLongPolling=s,this.longPollingOptions=a,this.useFetchStreams=c}}class uA{constructor(e,t){this.projectId=e,this.database=t||"(default)"}static empty(){return new uA("","")}get isDefaultDatabase(){return"(default)"===this.database}isEqual(e){return e instanceof uA&&e.projectId===this.projectId&&e.database===this.database}}
1910/**
1911 * @license
1912 * Copyright 2020 Google LLC
1913 *
1914 * Licensed under the Apache License, Version 2.0 (the "License");
1915 * you may not use this file except in compliance with the License.
1916 * You may obtain a copy of the License at
1917 *
1918 *   http://www.apache.org/licenses/LICENSE-2.0
1919 *
1920 * Unless required by applicable law or agreed to in writing, software
1921 * distributed under the License is distributed on an "AS IS" BASIS,
1922 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1923 * See the License for the specific language governing permissions and
1924 * limitations under the License.
1925 */const hA={fields:{__type__:{stringValue:"__max__"}}};function fA(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?sA(e)?4:function(e){return"__max__"===(((e.mapValue||{}).fields||{}).__type__||{}).stringValue}
1926/**
1927 * @license
1928 * Copyright 2017 Google LLC
1929 *
1930 * Licensed under the Apache License, Version 2.0 (the "License");
1931 * you may not use this file except in compliance with the License.
1932 * You may obtain a copy of the License at
1933 *
1934 *   http://www.apache.org/licenses/LICENSE-2.0
1935 *
1936 * Unless required by applicable law or agreed to in writing, software
1937 * distributed under the License is distributed on an "AS IS" BASIS,
1938 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1939 * See the License for the specific language governing permissions and
1940 * limitations under the License.
1941 */(e)?9007199254740991:10:nO()}function dA(e,t){if(e===t)return!0;const n=fA(e);if(n!==fA(t))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return cA(e).isEqual(cA(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;const n=rA(e.timestampValue),r=rA(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return function(e,t){return iA(e.bytesValue).isEqual(iA(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return oA(e.geoPointValue.latitude)===oA(t.geoPointValue.latitude)&&oA(e.geoPointValue.longitude)===oA(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return oA(e.integerValue)===oA(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){const n=oA(e.doubleValue),r=oA(t.doubleValue);return n===r?$O(n)===$O(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return bO(e.arrayValue.values||[],t.arrayValue.values||[],dA);case 10:return function(e,t){const n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(HO(n)!==HO(r))return!1;for(const o in n)if(n.hasOwnProperty(o)&&(void 0===r[o]||!dA(n[o],r[o])))return!1;return!0}(e,t);default:return nO()}}function pA(e,t){return void 0!==(e.values||[]).find(e=>dA(e,t))}function mA(e,t){if(e===t)return 0;const n=fA(e),r=fA(t);if(n!==r)return vO(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return vO(e.booleanValue,t.booleanValue);case 2:return function(e,t){const n=oA(e.integerValue||e.doubleValue),r=oA(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(e,t);case 3:return gA(e.timestampValue,t.timestampValue);case 4:return gA(cA(e),cA(t));case 5:return vO(e.stringValue,t.stringValue);case 6:return function(e,t){const n=iA(e),r=iA(t);return n.compareTo(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){const n=e.split("/"),r=t.split("/");for(let o=0;o<n.length&&o<r.length;o++){const e=vO(n[o],r[o]);if(0!==e)return e}return vO(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){const n=vO(oA(e.latitude),oA(t.latitude));return 0!==n?n:vO(oA(e.longitude),oA(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return function(e,t){const n=e.values||[],r=t.values||[];for(let o=0;o<n.length&&o<r.length;++o){const e=mA(n[o],r[o]);if(e)return e}return vO(n.length,r.length)}(e.arrayValue,t.arrayValue);case 10:return function(e,t){if(e===hA&&t===hA)return 0;if(e===hA)return 1;if(t===hA)return-1;const n=e.fields||{},r=Object.keys(n),o=t.fields||{},i=Object.keys(o);r.sort(),i.sort();for(let s=0;s<r.length&&s<i.length;++s){const e=vO(r[s],i[s]);if(0!==e)return e;const t=mA(n[r[s]],o[i[s]]);if(0!==t)return t}return vO(r.length,i.length)}(e.mapValue,t.mapValue);default:throw nO()}}function gA(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return vO(e,t);const n=rA(e),r=rA(t),o=vO(n.seconds,r.seconds);return 0!==o?o:vO(n.nanos,r.nanos)}function yA(e){return vA(e)}function vA(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(e){const t=rA(e);return`time(${t.seconds},${t.nanos})`}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?function(e){return iA(e).toBase64()}(e.bytesValue):"referenceValue"in e?function(e){return xO.fromName(e).toString()}(e.referenceValue):"geoPointValue"in e?function(e){return`geo(${e.latitude},${e.longitude})`}(e.geoPointValue):"arrayValue"in e?function(e){let t="[",n=!0;for(const r of e.values||[])n?n=!1:t+=",",t+=vA(r);return t+"]"}(e.arrayValue):"mapValue"in e?function(e){const t=Object.keys(e.fields||{}).sort();let n="{",r=!0;for(const o of t)r?r=!1:n+=",",n+=`${o}:${vA(e.fields[o])}`;return n+"}"}(e.mapValue):nO()}function bA(e,t){return{referenceValue:`projects/${e.projectId}/databases/${e.database}/documents/${t.path.canonicalString()}`}}function _A(e){return!!e&&"integerValue"in e}function wA(e){return!!e&&"arrayValue"in e}function kA(e){return!!e&&"nullValue"in e}function EA(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function TA(e){return!!e&&"mapValue"in e}function SA(e){if(e.geoPointValue)return{geoPointValue:Object.assign({},e.geoPointValue)};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:Object.assign({},e.timestampValue)};if(e.mapValue){const t={mapValue:{fields:{}}};return WO(e.mapValue.fields,(e,n)=>t.mapValue.fields[e]=SA(n)),t}if(e.arrayValue){const t={arrayValue:{values:[]}};for(let n=0;n<(e.arrayValue.values||[]).length;++n)t.arrayValue.values[n]=SA(e.arrayValue.values[n]);return t}return Object.assign({},e)}class xA{constructor(e){this.value=e}static empty(){return new xA({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let n=0;n<e.length-1;++n)if(t=(t.mapValue.fields||{})[e.get(n)],!TA(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=SA(t)}setAll(e){let t=SO.emptyPath(),n={},r=[];e.forEach((e,o)=>{if(!t.isImmediateParentOf(o)){const e=this.getFieldsMap(t);this.applyChanges(e,n,r),n={},r=[],t=o.popLast()}e?n[o.lastSegment()]=SA(e):r.push(o.lastSegment())});const o=this.getFieldsMap(t);this.applyChanges(o,n,r)}delete(e){const t=this.field(e.popLast());TA(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return dA(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let n=0;n<e.length;++n){let r=t.mapValue.fields[e.get(n)];TA(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields}
vendor: 4,181 bytes, lines 1941-1978
1941applyChanges(e,t,n){WO(t,(t,n)=>e[t]=n);for(const r of n)delete e[r]}clone(){return new xA(SA(this.value))}}function OA(e){const t=[];return WO(e.fields,(e,n)=>{const r=new SO([e]);if(TA(n)){const e=OA(n.mapValue).fields;if(0===e.length)t.push(r);else for(const n of e)t.push(r.child(n))}else t.push(r)}),new ZO(t)
1942/**
1943 * @license
1944 * Copyright 2017 Google LLC
1945 *
1946 * Licensed under the Apache License, Version 2.0 (the "License");
1947 * you may not use this file except in compliance with the License.
1948 * You may obtain a copy of the License at
1949 *
1950 *   http://www.apache.org/licenses/LICENSE-2.0
1951 *
1952 * Unless required by applicable law or agreed to in writing, software
1953 * distributed under the License is distributed on an "AS IS" BASIS,
1954 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1955 * See the License for the specific language governing permissions and
1956 * limitations under the License.
1957 */}class AA{constructor(e,t,n,r,o,i,s){this.key=e,this.documentType=t,this.version=n,this.readTime=r,this.createTime=o,this.data=i,this.documentState=s}static newInvalidDocument(e){return new AA(e,0,wO.min(),wO.min(),wO.min(),xA.empty(),0)}static newFoundDocument(e,t,n,r){return new AA(e,1,t,wO.min(),n,r,0)}static newNoDocument(e,t){return new AA(e,2,t,wO.min(),wO.min(),xA.empty(),0)}static newUnknownDocument(e,t){return new AA(e,3,t,wO.min(),wO.min(),xA.empty(),2)}convertToFoundDocument(e,t){return!this.createTime.isEqual(wO.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=xA.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=xA.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=wO.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(e){return e instanceof AA&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new AA(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}
1958/**
1959 * @license
1960 * Copyright 2022 Google LLC
1961 *
1962 * Licensed under the Apache License, Version 2.0 (the "License");
1963 * you may not use this file except in compliance with the License.
1964 * You may obtain a copy of the License at
1965 *
1966 *   http://www.apache.org/licenses/LICENSE-2.0
1967 *
1968 * Unless required by applicable law or agreed to in writing, software
1969 * distributed under the License is distributed on an "AS IS" BASIS,
1970 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1971 * See the License for the specific language governing permissions and
1972 * limitations under the License.
1973 */class CA{constructor(e,t){this.position=e,this.inclusive=t}}function NA(e,t,n){let r=0;for(let o=0;o<e.position.length;o++){const i=t[o],s=e.position[o];if(r=i.field.isKeyField()?xO.comparator(xO.fromName(s.referenceValue),n.key):mA(s,n.data.field(i.field)),"desc"===i.dir&&(r*=-1),0!==r)break}return r}function IA(e,t){if(null===e)return null===t;if(null===t)return!1;if(e.inclusive!==t.inclusive||e.position.length!==t.position.length)return!1;for(let n=0;n<e.position.length;n++)if(!dA(e.position[n],t.position[n]))return!1;return!0}
1974/**
1975 * @license
1976 * Copyright 2022 Google LLC
1977 *
1978 * Licensed under the Apache License, Version 2.0 (the "License");
1979 * you may not use this file except in compliance with the License.
1980 * You may obtain a copy of the License at
1981 *
1982 *   http://www.apache.org/licenses/LICENSE-2.0
1983 *
1984 * Unless required by applicable law or agreed to in writing, software
1985 * distributed under the License is distributed on an "AS IS" BASIS,
1986 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1987 * See the License for the specific language governing permissions and
1988 * limitations under the License.
1989 */class LA{constructor(e,t="asc"){this.field=e,this.dir=t}}function PA(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}
1990/**
1991 * @license
1992 * Copyright 2022 Google LLC
1993 *
1994 * Licensed under the Apache License, Version 2.0 (the "License");
1995 * you may not use this file except in compliance with the License.
1996 * You may obtain a copy of the License at
1997 *
1998 *   http://www.apache.org/licenses/LICENSE-2.0
1999 *
2000 * Unless required by applicable law or agreed to in writing, software
2001 * distributed under the License is distributed on an "AS IS" BASIS,
2002 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2003 * See the License for the specific language governing permissions and
2004 * limitations under the License.
2005 */class RA{}class DA extends RA{constructor(e,t,n){super(),this.field=e,this.op=t,this.value=n}static create(e,t,n){return e.isKeyField()?"in"===t||"not-in"===t?this.createKeyFieldInFilter(e,t,n):new VA(e,t,n):"array-contains"===t?new WA(e,n):"in"===t?new GA(e,n):"not-in"===t?new KA(e,n):"array-contains-any"===t?new YA(e,n):new DA(e,t,n)}static createKeyFieldInFilter(e,t,n){return"in"===t?new zA(e,n):new $A(e,n)}matches(e){const t=e.data.field(this.field);return"!="===this.op?null!==t&&this.matchesComparison(mA(t,this.value)):null!==t&&fA(this.value)===fA(t)&&this.matchesComparison(mA(t,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return nO()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class MA extends RA{constructor(e,t){super(),this.filters=e,this.op=t,this.ue=null}static create(e,t){return new MA(e,t)}matches(e){return jA(this)?void 0===this.filters.find(t=>!t.matches(e)):void 0!==this.filters.find(t=>t.matches(e))}getFlattenedFilters(){return null!==this.ue||(this.ue=this.filters.reduce((e,t)=>e.concat(t.getFlattenedFilters()),[])),this.ue}getFilters(){return Object.assign([],this.filters)}}function jA(e){return"and"===e.op}function UA(e){return function(e){for(const t of e.filters)if(t instanceof MA)return!1;return!0}(e)&&jA(e)}function qA(e){if(e instanceof DA)return e.field.canonicalString()+e.op.toString()+yA(e.value);if(UA(e))return e.filters.map(e=>qA(e)).join(",");{const t=e.filters.map(e=>qA(e)).join(",");return`${e.op}(${t})`}}function FA(e,t){return e instanceof DA?function(e,t){return t instanceof DA&&e.op===t.op&&e.field.isEqual(t.field)&&dA(e.value,t.value)}(e,t):e instanceof MA?function(e,t){return t instanceof MA&&e.op===t.op&&e.filters.length===t.filters.length&&e.filters.reduce((e,n,r)=>e&&FA(n,t.filters[r]),!0)}(e,t):void nO()}function BA(e){return e instanceof DA?function(e){return`${e.field.canonicalString()} ${e.op} ${yA(e.value)}`}(e):e instanceof MA?function(e){return e.op.toString()+" {"+e.getFilters().map(BA).join(" ,")+"}"}(e):"Filter"}class VA extends DA{constructor(e,t,n){super(e,t,n),this.key=xO.fromName(n.referenceValue)}matches(e){const t=xO.comparator(e.key,this.key);return this.matchesComparison(t)}}class zA extends DA{constructor(e,t){super(e,"in",t),this.keys=HA("in",t)}matches(e){return this.keys.some(t=>t.isEqual(e.key))}}class $A extends DA{constructor(e,t){super(e,"not-in",t),this.keys=HA("not-in",t)}matches(e){return!this.keys.some(t=>t.isEqual(e.key))}}function HA(e,t){var n;return((null===(n=t.arrayValue)||void 0===n?void 0:n.values)||[]).map(e=>xO.fromName(e.referenceValue))}class WA extends DA{constructor(e,t){super(e,"array-contains",t)}matches(e){const t=e.data.field(this.field);return wA(t)&&pA(t.arrayValue,this.value)}}class GA extends DA{constructor(e,t){super(e,"in",t)}matches(e){const t=e.data.field(this.field);return null!==t&&pA(this.value.arrayValue,t)}}class KA extends DA{constructor(e,t){super(e,"not-in",t)}matches(e){if(pA(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const t=e.data.field(this.field);return null!==t&&!pA(this.value.arrayValue,t)}}class YA extends DA{constructor(e,t){super(e,"array-contains-any",t)}matches(e){const t=e.data.field(this.field);return!(!wA(t)||!t.arrayValue.values)&&t.arrayValue.values.some(e=>pA(this.value.arrayValue,e))}}
2006/**
2007 * @license
2008 * Copyright 2019 Google LLC
2009 *
2010 * Licensed under the Apache License, Version 2.0 (the "License");
2011 * you may not use this file except in compliance with the License.
2012 * You may obtain a copy of the License at
2013 *
2014 *   http://www.apache.org/licenses/LICENSE-2.0
2015 *
2016 * Unless required by applicable law or agreed to in writing, software
2017 * distributed under the License is distributed on an "AS IS" BASIS,
2018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2019 * See the License for the specific language governing permissions and
2020 * limitations under the License.
2021 */class QA{constructor(e,t=null,n=[],r=[],o=null,i=null,s=null){this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=r,this.limit=o,this.startAt=i,this.endAt=s,this.ce=null}}function XA(e,t=null,n=[],r=[],o=null,i=null,s=null){return new QA(e,t,n,r,o,i,s)}function JA(e){const t=oO(e);if(null===t.ce){let e=t.path.canonicalString();null!==t.collectionGroup&&(e+="|cg:"+t.collectionGroup),e+="|f:",e+=t.filters.map(e=>qA(e)).join(","),e+="|ob:",e+=t.orderBy.map(e=>function(e){return e.field.canonicalString()+e.dir}(e)).join(","),zO(t.limit)||(e+="|l:",e+=t.limit),t.startAt&&(e+="|lb:",e+=t.startAt.inclusive?"b:":"a:",e+=t.startAt.position.map(e=>yA(e)).join(",")),t.endAt&&(e+="|ub:",e+=t.endAt.inclusive?"a:":"b:",e+=t.endAt.position.map(e=>yA(e)).join(",")),t.ce=e}return t.ce}function ZA(e,t){if(e.limit!==t.limit)return!1;if(e.orderBy.length!==t.orderBy.length)return!1;for(let n=0;n<e.orderBy.length;n++)if(!PA(e.orderBy[n],t.orderBy[n]))return!1;if(e.filters.length!==t.filters.length)return!1;for(let n=0;n<e.filters.length;n++)if(!FA(e.filters[n],t.filters[n]))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!IA(e.startAt,t.startAt)&&IA(e.endAt,t.endAt)}function eC(e){return xO.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}
2022/**
2023 * @license
2024 * Copyright 2017 Google LLC
2025 *
2026 * Licensed under the Apache License, Version 2.0 (the "License");
2027 * you may not use this file except in compliance with the License.
2028 * You may obtain a copy of the License at
2029 *
2030 *   http://www.apache.org/licenses/LICENSE-2.0
2031 *
2032 * Unless required by applicable law or agreed to in writing, software
2033 * distributed under the License is distributed on an "AS IS" BASIS,
2034 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2035 * See the License for the specific language governing permissions and
2036 * limitations under the License.
2037 */class tC{constructor(e,t=null,n=[],r=[],o=null,i="F",s=null,a=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=r,this.limit=o,this.limitType=i,this.startAt=s,this.endAt=a,this.le=null,this.he=null,this.Pe=null,this.startAt,this.endAt}}function nC(e){return new tC(e)}function rC(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.explicitOrderBy.length||1===e.explicitOrderBy.length&&e.explicitOrderBy[0].field.isKeyField())}function oC(e){return null!==e.collectionGroup}function iC(e){const t=oO(e);if(null===t.le){t.le=[];const e=new Set;for(const o of t.explicitOrderBy)t.le.push(o),e.add(o.field.canonicalString());const n=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc",r=function(e){let t=new XO(SO.comparator);return e.filters.forEach(e=>{e.getFlattenedFilters().forEach(e=>{e.isInequality()&&(t=t.add(e.field))})}),t}(t);r.forEach(r=>{e.has(r.canonicalString())||r.isKeyField()||t.le.push(new LA(r,n))}),e.has(SO.keyField().canonicalString())||t.le.push(new LA(SO.keyField(),n))}return t.le}function sC(e){const t=oO(e);return t.he||(t.he=aC(t,iC(e))),t.he}function aC(e,t){if("F"===e.limitType)return XA(e.path,e.collectionGroup,t,e.filters,e.limit,e.startAt,e.endAt);{t=t.map(e=>{const t="desc"===e.dir?"asc":"desc";return new LA(e.field,t)});const n=e.endAt?new CA(e.endAt.position,e.endAt.inclusive):null,r=e.startAt?new CA(e.startAt.position,e.startAt.inclusive):null;return XA(e.path,e.collectionGroup,t,e.filters,e.limit,n,r)}}function cC(e,t){const n=e.filters.concat([t]);return new tC(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)}function lC(e,t,n){return new tC(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function uC(e,t){return ZA(sC(e),sC(t))&&e.limitType===t.limitType}function hC(e){return`${JA(sC(e))}|lt:${e.limitType}`}function fC(e){return`Query(target=${function(e){let t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=`, filters: [${e.filters.map(e=>BA(e)).join(", ")}]`),zO(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=`, orderBy: [${e.orderBy.map(e=>function(e){return`${e.field.canonicalString()} (${e.dir})`}(e)).join(", ")}]`),e.startAt&&(t+=", startAt: ",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map(e=>yA(e)).join(",")),e.endAt&&(t+=", endAt: ",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map(e=>yA(e)).join(",")),`Target(${t})`}(sC(e))}; limitType=${e.limitType})`}function dC(e,t){return t.isFoundDocument()&&function(e,t){const n=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n):xO.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)}(e,t)&&function(e,t){for(const n of iC(e))if(!n.field.isKeyField()&&null===t.data.field(n.field))return!1;return!0}(e,t)&&function(e,t){for(const n of e.filters)if(!n.matches(t))return!1;return!0}(e,t)&&function(e,t){return!(e.startAt&&!function(e,t,n){const r=NA(e,t,n);return e.inclusive?r<=0:r<0}(e.startAt,iC(e),t))&&!(e.endAt&&!function(e,t,n){const r=NA(e,t,n);return e.inclusive?r>=0:r>0}(e.endAt,iC(e),t))}(e,t)}function pC(e){return(t,n)=>{let r=!1;for(const o of iC(e)){const e=mC(o,t,n);if(0!==e)return e;r=r||o.field.isKeyField()}return 0}}function mC(e,t,n){const r=e.field.isKeyField()?xO.comparator(t.key,n.key):function(e,t,n){const r=t.data.field(e),o=n.data.field(e);return null!==r&&null!==o?mA(r,o):nO()}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return nO()}}
2038/**
2039 * @license
2040 * Copyright 2017 Google LLC
2041 *
2042 * Licensed under the Apache License, Version 2.0 (the "License");
2043 * you may not use this file except in compliance with the License.
2044 * You may obtain a copy of the License at
2045 *
2046 *   http://www.apache.org/licenses/LICENSE-2.0
2047 *
2048 * Unless required by applicable law or agreed to in writing, software
2049 * distributed under the License is distributed on an "AS IS" BASIS,
2050 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2051 * See the License for the specific language governing permissions and
2052 * limitations under the License.
2053 */class gC{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n)for(const[r,o]of n)if(this.equalsFn(r,e))return o}has(e){return void 0!==this.get(e)}set(e,t){const n=this.mapKeyFn(e),r=this.inner[n];if(void 0===r)return this.inner[n]=[[e,t]],void this.innerSize++;for(let o=0;o<r.length;o++)if(this.equalsFn(r[o][0],e))return void(r[o]=[e,t]);r.push([e,t]),this.innerSize++}delete(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(let r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return 1===n.length?delete this.inner[t]:n.splice(r,1),this.innerSize--,!0;return!1}forEach(e){WO(this.inner,(t,n)=>{for(const[r,o]of n)e(r,o)})}isEmpty(){return GO(this.inner)}size(){return this.innerSize}}
2054/**
2055 * @license
2056 * Copyright 2017 Google LLC
2057 *
2058 * Licensed under the Apache License, Version 2.0 (the "License");
2059 * you may not use this file except in compliance with the License.
2060 * You may obtain a copy of the License at
2061 *
2062 *   http://www.apache.org/licenses/LICENSE-2.0
2063 *
2064 * Unless required by applicable law or agreed to in writing, software
2065 * distributed under the License is distributed on an "AS IS" BASIS,
2066 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2067 * See the License for the specific language governing permissions and
2068 * limitations under the License.
2069 */const yC=new KO(xO.comparator);function vC(){return yC}const bC=new KO(xO.comparator);function _C(...e){let t=bC;for(const n of e)t=t.insert(n.key,n);return t}function wC(e){let t=bC;return e.forEach((e,n)=>t=t.insert(e,n.overlayedDocument)),t}function kC(){return TC()}function EC(){return TC()}function TC(){return new gC(e=>e.toString(),(e,t)=>e.isEqual(t))}const SC=new KO(xO.comparator),xC=new XO(xO.comparator);function OC(...e){let t=xC;for(const n of e)t=t.add(n);return t}const AC=new XO(vO);
2070/**
2071 * @license
2072 * Copyright 2020 Google LLC
2073 *
2074 * Licensed under the Apache License, Version 2.0 (the "License");
2075 * you may not use this file except in compliance with the License.
2076 * You may obtain a copy of the License at
2077 *
2078 *   http://www.apache.org/licenses/LICENSE-2.0
2079 *
2080 * Unless required by applicable law or agreed to in writing, software
2081 * distributed under the License is distributed on an "AS IS" BASIS,
2082 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2083 * See the License for the specific language governing permissions and
2084 * limitations under the License.
2085 */
2086function CC(e,t){if(e.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:$O(t)?"-0":t}}function NC(e){return{integerValue:""+e}}function IC(e,t){return function(e){return"number"==typeof e&&Number.isInteger(e)&&!$O(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}(t)?NC(t):CC(e,t)}
2087/**
2088 * @license
2089 * Copyright 2018 Google LLC
2090 *
2091 * Licensed under the Apache License, Version 2.0 (the "License");
2092 * you may not use this file except in compliance with the License.
2093 * You may obtain a copy of the License at
2094 *
2095 *   http://www.apache.org/licenses/LICENSE-2.0
2096 *
2097 * Unless required by applicable law or agreed to in writing, software
2098 * distributed under the License is distributed on an "AS IS" BASIS,
2099 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2100 * See the License for the specific language governing permissions and
2101 * limitations under the License.
2102 */class LC{constructor(){this._=void 0}}
2102function PC(e,t,n){return e instanceof MC?function(e,t){const n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&sA(t)&&(t=aA(t)),t&&(n.fields.__previous_value__=t),{mapValue:n}}(n,t):e instanceof jC?UC(e,t):e instanceof qC?FC(e,t):function(e,t){const n=DC(e,t),r=VC(n)+VC(e.Ie);return _A(n)&&_A(e.Ie)?NC(r):CC(e.serializer,r)}(e,t)}function RC(e,t,n){return e instanceof jC?UC(e,t):e instanceof qC?FC(e,t):n}function DC(e,t){return e instanceof BC?function(e){return _A(e)||function(e){return!!e&&"doubleValue"in e}(e)}(t)?t:{integerValue:0}:null}class MC extends LC{}class jC extends LC{constructor(e){super(),this.elements=e}}function UC(e,t){const n=zC(t);for(const r of e.elements)n.some(e=>dA(e,r))||n.push(r);return{arrayValue:{values:n}}}class qC extends LC{constructor(e){super(),this.elements=e}}function FC(e,t){let n=zC(t);for(const r of e.elements)n=n.filter(e=>!dA(e,r));return{arrayValue:{values:n}}}class BC extends LC{constructor(e,t){super(),this.serializer=e,this.Ie=t}}function VC(e){return oA(e.integerValue||e.doubleValue)}function zC(e){return wA(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}
2103/**
2104 * @license
2105 * Copyright 2017 Google LLC
2106 *
2107 * Licensed under the Apache License, Version 2.0 (the "License");
2108 * you may not use this file except in compliance with the License.
2109 * You may obtain a copy of the License at
2110 *
2111 *   http://www.apache.org/licenses/LICENSE-2.0
2112 *
2113 * Unless required by applicable law or agreed to in writing, software
2114 * distributed under the License is distributed on an "AS IS" BASIS,
2115 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2116 * See the License for the specific language governing permissions and
2117 * limitations under the License.
2118 */class $C{constructor(e,t){this.field=e,this.transform=t}}class HC{constructor(e,t){this.version=e,this.transformResults=t}}class WC{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new WC}static exists(e){return new WC(void 0,e)}static updateTime(e){return new WC(e)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function GC(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}class KC{}function YC(e,t){if(!e.hasLocalMutations||t&&0===t.fields.length)return null;if(null===t)return e.isNoDocument()?new iN(e.key,WC.none()):new eN(e.key,e.data,WC.none());{const n=e.data,r=xA.empty();let o=new XO(SO.comparator);for(let e of t.fields)if(!o.has(e)){let t=n.field(e);null===t&&e.length>1&&(e=e.popLast(),t=n.field(e)),null===t?r.delete(e):r.set(e,t),o=o.add(e)}return new tN(e.key,r,new ZO(o.toArray()),WC.none())}}function QC(e,t,n){e instanceof eN?function(e,t,n){const r=e.value.clone(),o=rN(e.fieldTransforms,t,n.transformResults);r.setAll(o),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(e,t,n):e instanceof tN?function(e,t,n){if(!GC(e.precondition,t))return void t.convertToUnknownDocument(n.version);const r=rN(e.fieldTransforms,t,n.transformResults),o=t.data;o.setAll(nN(e)),o.setAll(r),t.convertToFoundDocument(n.version,o).setHasCommittedMutations()}(e,t,n):function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()}(0,t,n)}function XC(e,t,n,r){return e instanceof eN?function(e,t,n,r){if(!GC(e.precondition,t))return n;const o=e.value.clone(),i=oN(e.fieldTransforms,r,t);return o.setAll(i),t.convertToFoundDocument(t.version,o).setHasLocalMutations(),null}(e,t,n,r):e instanceof tN?function(e,t,n,r){if(!GC(e.precondition,t))return n;const o=oN(e.fieldTransforms,r,t),i=t.data;return i.setAll(nN(e)),i.setAll(o),t.convertToFoundDocument(t.version,i).setHasLocalMutations(),null===n?null:n.unionWith(e.fieldMask.fields).unionWith(e.fieldTransforms.map(e=>e.field))}(e,t,n,r):function(e,t,n){return GC(e.precondition,t)?(t.convertToNoDocument(t.version).setHasLocalMutations(),null):n}(e,t,n)}function JC(e,t){let n=null;for(const r of e.fieldTransforms){const e=t.data.field(r.field),o=DC(r.transform,e||null);null!=o&&(null===n&&(n=xA.empty()),n.set(r.field,o))}return n||null}function ZC(e,t){return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&!!function(e,t){return void 0===e&&void 0===t||!(!e||!t)&&bO(e,t,(e,t)=>function(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof jC&&t instanceof jC||e instanceof qC&&t instanceof qC?bO(e.elements,t.elements,dA):e instanceof BC&&t instanceof BC?dA(e.Ie,t.Ie):e instanceof MC&&t instanceof MC}(e.transform,t.transform)}(e,t))}(e.fieldTransforms,t.fieldTransforms)&&(0===e.type?e.value.isEqual(t.value):1!==e.type||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask))}class eN extends KC{constructor(e,t,n,r=[]){super(),this.key=e,this.value=t,this.prec
2118ondition=n,this.fieldTransforms=r,this.type=0}getFieldMask(){return null}}class tN extends KC{constructor(e,t,n,r,o=[]){super(),this.key=e,this.data=t,this.fieldMask=n,this.precondition=r,this.fieldTransforms=o,this.type=1}getFieldMask(){return this.fieldMask}}function nN(e){const t=new Map;return e.fieldMask.fields.forEach(n=>{if(!n.isEmpty()){const r=e.data.field(n);t.set(n,r)}}),t}function rN(e,t,n){const r=new Map;rO(e.length===n.length);for(let o=0;o<n.length;o++){const i=e[o],s=i.transform,a=t.data.field(i.field);r.set(i.field,RC(s,a,n[o]))}return r}function oN(e,t,n){const r=new Map;for(const o of e){const e=o.transform,i=n.data.field(o.field);r.set(o.field,PC(e,i,t))}return r}class iN extends KC{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class sN extends KC{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}
2119/**
2120 * @license
2121 * Copyright 2017 Google LLC
2122 *
2123 * Licensed under the Apache License, Version 2.0 (the "License");
2124 * you may not use this file except in compliance with the License.
2125 * You may obtain a copy of the License at
2126 *
2127 *   http://www.apache.org/licenses/LICENSE-2.0
2128 *
2129 * Unless required by applicable law or agreed to in writing, software
2130 * distributed under the License is distributed on an "AS IS" BASIS,
2131 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2132 * See the License for the specific language governing permissions and
2133 * limitations under the License.
2134 */class aN{constructor(e,t,n,r){this.batchId=e,this.localWriteTime=t,this.baseMutations=n,this.mutations=r}applyToRemoteDocument(e,t){const n=t.mutationResults;for(let r=0;r<this.mutations.length;r++){const t=this.mutations[r];t.key.isEqual(e.key)&&QC(t,e,n[r])}}applyToLocalView(e,t){for(const n of this.baseMutations)n.key.isEqual(e.key)&&(t=XC(n,e,t,this.localWriteTime));for(const n of this.mutations)n.key.isEqual(e.key)&&(t=XC(n,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){const n=EC();return this.mutations.forEach(r=>{const o=e.get(r.key),i=o.overlayedDocument;let s=this.applyToLocalView(i,o.mutatedFields);s=t.has(r.key)?null:s;const a=YC(i,s);null!==a&&n.set(r.key,a),i.isValidDocument()||i.convertToNoDocument(wO.min())}),n}keys(){return this.mutations.reduce((e,t)=>e.add(t.key),OC())}isEqual(e){return this.batchId===e.batchId&&bO(this.mutations,e.mutations,(e,t)=>ZC(e,t))&&bO(this.baseMutations,e.baseMutations,(e,t)=>ZC(e,t))}}class cN{constructor(e,t,n,r){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=r}static from(e,t,n){rO(e.mutations.length===n.length);let r=SC;const o=e.mutations;for(let i=0;i<o.length;i++)r=r.insert(o[i].key,n[i].version);return new cN(e,t,n,r)}}
2135/**
2136 * @license
2137 * Copyright 2022 Google LLC
2138 *
2139 * Licensed under the Apache License, Version 2.0 (the "License");
2140 * you may not use this file except in compliance with the License.
2141 * You may obtain a copy of the License at
2142 *
2143 *   http://www.apache.org/licenses/LICENSE-2.0
2144 *
2145 * Unless required by applicable law or agreed to in writing, software
2146 * distributed under the License is distributed on an "AS IS" BASIS,
2147 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2148 * See the License for the specific language governing permissions and
2149 * limitations under the License.
2150 */class lN{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return null!==e&&this.mutation===e.mutation}toString(){return`Overlay{\n      largestBatchId: ${this.largestBatchId},\n      mutation: ${this.mutation.toString()}\n    }`}}
2151/**
2152 * @license
2153 * Copyright 2023 Google LLC
2154 *
2155 * Licensed under the Apache License, Version 2.0 (the "License");
2156 * you may not use this file except in compliance with the License.
2157 * You may obtain a copy of the License at
2158 *
2159 *   http://www.apache.org/licenses/LICENSE-2.0
2160 *
2161 * Unless required by applicable law or agreed to in writing, software
2162 * distributed under the License is distributed on an "AS IS" BASIS,
2163 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2164 * See the License for the specific language governing permissions and
2165 * limitations under the License.
2166 */class uN{constructor(e,t,n){this.alias=e,this.aggregateType=t,this.fieldPath=n}}
2167/**
2168 * @license
2169 * Copyright 2017 Google LLC
2170 *
2171 * Licensed under the Apache License, Version 2.0 (the "License");
2172 * you may not use this file except in compliance with the License.
2173 * You may obtain a copy of the License at
2174 *
2175 *   http://www.apache.org/licenses/LICENSE-2.0
2176 *
2177 * Unless required by applicable law or agreed to in writing, software
2178 * distributed under the License is distributed on an "AS IS" BASIS,
2179 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2180 * See the License for the specific language governing permissions and
2181 * limitations under the License.
2182 */class hN{constructor(e,t){this.count=e,this.unchangedNames=t}}
2183/**
2184 * @license
2185 * Copyright 2017 Google LLC
2186 *
2187 * Licensed under the Apache License, Version 2.0 (the "License");
2188 * you may not use this file except in compliance with the License.
2189 * You may obtain a copy of the License at
2190 *
2191 *   http://www.apache.org/licenses/LICENSE-2.0
2192 *
2193 * Unless required by applicable law or agreed to in writing, software
2194 * distributed under the License is distributed on an "AS IS" BASIS,
2195 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2196 * See the License for the specific language governing permissions and
2197 * limitations under the License.
2198 */var fN,dN;function pN(e){if(void 0===e)return Zx("GRPC error has no .code"),iO.UNKNOWN;switch(e){case fN.OK:return iO.OK;case fN.CANCELLED:return iO.CANCELLED;case fN.UNKNOWN:return iO.UNKNOWN;case fN.DEADLINE_EXCEEDED:return iO.DEADLINE_EXCEEDED;case fN.RESOURCE_EXHAUSTED:return iO.RESOURCE_EXHAUSTED;case fN.INTERNAL:return iO.INTERNAL;case fN.UNAVAILABLE:return iO.UNAVAILABLE;case fN.UNAUTHENTICATED:return iO.UNAUTHENTICATED;case fN.INVALID_ARGUMENT:return iO.INVALID_ARGUMENT;case fN.NOT_FOUND:return iO.NOT_FOUND;case fN.ALREADY_EXISTS:return iO.ALREADY_EXISTS;case fN.PERMISSION_DENIED:return iO.PERMISSION_DENIED;case fN.FAILED_PRECONDITION:return iO.FAILED_PRECONDITION;case fN.ABORTED:return iO.ABORTED;case fN.OUT_OF_RANGE:return iO.OUT_OF_RANGE;case fN.UNIMPLEMENTED:return iO.UNIMPLEMENTED;case fN.DATA_LOSS:return iO.DATA_LOSS;default:return nO()}}(dN=fN||(fN={}))[dN.OK=0]="OK",dN[dN.CANCELLED=1]="CANCELLED",dN[dN.UNKNOWN=2]="UNKNOWN",dN[dN.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",dN[dN.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",dN[dN.NOT_FOUND=5]="NOT_FOUND",dN[dN.ALREADY_EXISTS=6]="ALREADY_EXISTS",dN[dN.PERMISSION_DENIED=7]="PERMISSION_DENIED",dN[dN.UNAUTHENTICATED=16]="UNAUTHENTICATED",dN[dN.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",dN[dN.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",dN[dN.ABORTED=10]="ABORTED",dN[dN.OUT_OF_RANGE=11]="OUT_OF_RANGE",dN[dN.UNIMPLEMENTED=12]="UNIMPLEMENTED",dN[dN.INTERNAL=13]="INTERNAL",dN[dN.UNAVAILABLE=14]="UNAVAILABLE",dN[dN.DATA_LOSS=15]="DATA_LOSS";
2199/**
2200 * @license
2201 * Copyright 2022 Google LLC
2202 *
2203 * Licensed under the Apache License, Version 2.0 (the "License");
2204 * you may not use this file except in compliance with the License.
2205 * You may obtain a copy of the License at
2206 *
2207 *   http://www.apache.org/licenses/LICENSE-2.0
2208 *
2209 * Unless required by applicable law or agreed to in writing, software
2210 * distributed under the License is distributed on an "AS IS" BASIS,
2211 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2212 * See the License for the specific language governing permissions and
2213 * limitations under the License.
2214 */
2215const mN=new Wx([4294967295,4294967295],0);function gN(e){const t=(new TextEncoder).encode(e),n=new Hx;return n.update(t),new Uint8Array(n.digest())}function yN(e){const t=new DataView(e.buffer),n=t.getUint32(0,!0),r=t.getUint32(4,!0),o=t.getUint32(8,!0),i=t.getUint32(12,!0);return[new Wx([n,r],0),new Wx([o,i],0)]}class vN{constructor(e,t,n){if(this.bitmap=e,this.padding=t,this.hashCount=n,t<0||t>=8)throw new bN(`Invalid padding: ${t}`);if(n<0)throw new bN(`Invalid hash count: ${n}`);if(e.length>0&&0===this.hashCount)throw new bN(`Invalid hash count: ${n}`);if(0===e.length&&0!==t)throw new bN(`Invalid padding when bitmap length is 0: ${t}`);this.Te=8*e.length-t,this.Ee=Wx.fromNumber(this.Te)}de(e,t,n){let r=e.add(t.multiply(Wx.fromNumber(n)));return 1===r.compare(mN)&&(r=new Wx([r.getBits(0),r.getBits(1)],0)),r.modulo(this.Ee).toNumber()}Ae(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(0===this.Te)return!1;const t=gN(e),[n,r]=yN(t);for(let o=0;o<this.hashCount;o++){const e=this.de(n,r,o);if(!this.Ae(e))return!1}return!0}static create(e,t,n){const r=e%8==0?0:8-e%8,o=new Uint8Array(Math.ceil(e/8)),i=new vN(o,r,t);
2215return n.forEach(e=>i.insert(e)),i}insert(e){if(0===this.Te)return;const t=gN(e),[n,r]=yN(t);for(let o=0;o<this.hashCount;o++){const e=this.de(n,r,o);this.Re(e)}}Re(e){const t=Math.floor(e/8),n=e%8;this.bitmap[t]|=1<<n}}class bN extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}
2216/**
2217 * @license
2218 * Copyright 2017 Google LLC
2219 *
2220 * Licensed under the Apache License, Version 2.0 (the "License");
2221 * you may not use this file except in compliance with the License.
2222 * You may obtain a copy of the License at
2223 *
2224 *   http://www.apache.org/licenses/LICENSE-2.0
2225 *
2226 * Unless required by applicable law or agreed to in writing, software
2227 * distributed under the License is distributed on an "AS IS" BASIS,
2228 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2229 * See the License for the specific language governing permissions and
2230 * limitations under the License.
2231 */class _N{constructor(e,t,n,r,o){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=o}static createSynthesizedRemoteEventForCurrentChange(e,t,n){const r=new Map;return r.set(e,wN.createSynthesizedTargetChangeForCurrentChange(e,t,n)),new _N(wO.min(),r,new KO(vO),vC(),OC())}}class wN{constructor(e,t,n,r,o){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=o}static createSynthesizedTargetChangeForCurrentChange(e,t,n){return new wN(n,t,OC(),OC(),OC())}}
2232/**
2233 * @license
2234 * Copyright 2017 Google LLC
2235 *
2236 * Licensed under the Apache License, Version 2.0 (the "License");
2237 * you may not use this file except in compliance with the License.
2238 * You may obtain a copy of the License at
2239 *
2240 *   http://www.apache.org/licenses/LICENSE-2.0
2241 *
2242 * Unless required by applicable law or agreed to in writing, software
2243 * distributed under the License is distributed on an "AS IS" BASIS,
2244 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2245 * See the License for the specific language governing permissions and
2246 * limitations under the License.
2247 */class kN{constructor(e,t,n,r){this.Ve=e,this.removedTargetIds=t,this.key=n,this.me=r}}class EN{constructor(e,t){this.targetId=e,this.fe=t}}class TN{constructor(e,t,n=tA.EMPTY_BYTE_STRING,r=null){this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r}}class SN{constructor(){this.ge=0,this.pe=AN(),this.ye=tA.EMPTY_BYTE_STRING,this.we=!1,this.Se=!0}get current(){return this.we}get resumeToken(){return this.ye}get be(){return 0!==this.ge}get De(){return this.Se}Ce(e){e.approximateByteSize()>0&&(this.Se=!0,this.ye=e)}ve(){let e=OC(),t=OC(),n=OC();return this.pe.forEach((r,o)=>{switch(o){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:nO()}}),new wN(this.ye,this.we,e,t,n)}Fe(){this.Se=!1,this.pe=AN()}Me(e,t){this.Se=!0,this.pe=this.pe.insert(e,t)}xe(e){this.Se=!0,this.pe=this.pe.remove(e)}Oe(){this.ge+=1}Ne(){this.ge-=1,rO(this.ge>=0)}Le(){this.Se=!0,this.we=!0}}class xN{constructor(e){this.Be=e,this.ke=new Map,this.qe=vC(),this.Qe=ON(),this.Ke=new KO(vO)}$e(e){for(const t of e.Ve)e.me&&e.me.isFoundDocument()?this.Ue(t,e.me):this.We(t,e.key,e.me);for(const t of e.removedTargetIds)this.We(t,e.key,e.me)}Ge(e){this.forEachTarget(e,t=>{const n=this.ze(t);switch(e.state){case 0:this.je(t)&&n.Ce(e.resumeToken);break;case 1:n.Ne(),n.be||n.Fe(),n.Ce(e.resumeToken);break;case 2:n.Ne(),n.be||this.removeTarget(t);break;case 3:this.je(t)&&(n.Le(),n.Ce(e.resumeToken));break;case 4:this.je(t)&&(this.He(t),n.Ce(e.resumeToken));break;default:nO()}})}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.ke.forEach((e,n)=>{this.je(n)&&t(n)})}Je(e){const t=e.targetId,n=e.fe.count,r=this.Ye(t);if(r){const o=r.target;if(eC(o))if(0===n){const e=new xO(o.path);this.We(t,e,AA.newNoDocument(e,wO.min()))}else rO(1===n);else{const r=this.Ze(t);if(r!==n){const n=this.Xe(e),o=n?this.et(n,e,r):1;if(0!==o){this.He(t);const e=2===o?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Ke=this.Ke.insert(t,e)}}}}}Xe(e){const t=e.fe.unchangedNames;if(!t||!t.bits)return null;const{bits:{bitmap:n="",padding:r=0},hashCount:o=0}=t;let i,s;try{i=iA(n).toUint8Array()}catch(e){if(e instanceof eA)return eO("Decoding the base64 bloom filter in existence filter failed ("+e.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw e}try{s=new vN(i,r,o)}catch(e){return eO(e instanceof bN?"BloomFilter error: ":"Applying bloom filter failed: ",e),null}return 0===s.Te?null:s}et(e,t,n){return t.fe.count===n-this.rt(e,t.targetId)?0:2}rt(e,t){const n=this.Be.getRemoteKeysForTarget(t);let r=0;
2247return n.forEach(n=>{const o=this.Be.nt(),i=`projects/${o.projectId}/databases/${o.database}/documents/${n.path.canonicalString()}`;e.mightContain(i)||(this.We(t,n,null),r++)}),r}it(e){const t=new Map;this.ke.forEach((n,r)=>{const o=this.Ye(r);if(o){if(n.current&&eC(o.target)){const t=new xO(o.target.path);null!==this.qe.get(t)||this.st(r,t)||this.We(r,t,AA.newNoDocument(t,e))}n.De&&(t.set(r,n.ve()),n.Fe())}});let n=OC();this.Qe.forEach((e,t)=>{let r=!0;t.forEachWhile(e=>{const t=this.Ye(e);return!t||"TargetPurposeLimboResolution"===t.purpose||(r=!1,!1)}),r&&(n=n.add(e))}),this.qe.forEach((t,n)=>n.setReadTime(e));const r=new _N(e,t,this.Ke,this.qe,n);return this.qe=vC(),this.Qe=ON(),this.Ke=new KO(vO),r}Ue(e,t){if(!this.je(e))return;const n=this.st(e,t.key)?2:0;this.ze(e).Me(t.key,n),this.qe=this.qe.insert(t.key,t),this.Qe=this.Qe.insert(t.key,this.ot(t.key).add(e))}We(e,t,n){if(!this.je(e))return;const r=this.ze(e);this.st(e,t)?r.Me(t,1):r.xe(t),this.Qe=this.Qe.insert(t,this.ot(t).delete(e)),n&&(this.qe=this.qe.insert(t,n))}removeTarget(e){this.ke.delete(e)}Ze(e){const t=this.ze(e).ve();return this.Be.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}Oe(e){this.ze(e).Oe()}ze(e){let t=this.ke.get(e);return t||(t=new SN,this.ke.set(e,t)),t}ot(e){let t=this.Qe.get(e);return t||(t=new XO(vO),this.Qe=this.Qe.insert(e,t)),t}je(e){const t=null!==this.Ye(e);return t||Jx("WatchChangeAggregator","Detected inactive target",e),t}Ye(e){const t=this.ke.get(e);return t&&t.be?null:this.Be._t(e)}He(e){this.ke.set(e,new SN),this.Be.getRemoteKeysForTarget(e).forEach(t=>{this.We(e,t,null)})}st(e,t){return this.Be.getRemoteKeysForTarget(e).has(t)}}function ON(){return new KO(xO.comparator)}function AN(){return new KO(xO.comparator)}const CN={asc:"ASCENDING",desc:"DESCENDING"},NN={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},IN={and:"AND",or:"OR"};class LN{constructor(e,t){this.databaseId=e,this.useProto3Json=t}}function PN(e,t){return e.useProto3Json||zO(t)?t:{value:t}}function RN(e,t){return e.useProto3Json?`${new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+t.nanoseconds).slice(-9)}Z`:{seconds:""+t.seconds,nanos:t.nanoseconds}}function DN(e,t){return e.useProto3Json?t.toBase64():t.toUint8Array()}function MN(e,t){return RN(e,t.toTimestamp())}function jN(e){return rO(!!e),wO.fromTimestamp(function(e){const t=rA(e);return new _O(t.seconds,t.nanos)}(e))}function UN(e,t){return qN(e,t).canonicalString()}function qN(e,t){const n=function(e){return new EO(["projects",e.projectId,"databases",e.database])}(e).child("documents");return void 0===t?n:n.child(t)}function FN(e){const t=EO.fromString(e);return rO(oI(t)),t}function BN(e,t){return UN(e.databaseId,t.path)}function VN(e,t){const n=FN(t);if(n.get(1)!==e.databaseId.projectId)throw new sO(iO.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+e.databaseId.projectId);if(n.get(3)!==e.databaseId.database)throw new sO(iO.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new xO(HN(n))}function zN(e,t){return UN(e.databaseId,t)}function $N(e){return new EO(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function HN(e){return rO(e.length>4&&"documents"===e.get(4)),e.popFirst(5)}function WN(e,t,n){return{name:BN(e,t),fields:n.value.mapValue.fields}}function GN(e,t){return{documents:[zN(e,t.path)]}}function KN(e,t){const n={structuredQuery:{}},r=t.path;let o;null!==t.collectionGroup?(o=r,n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(o=r.popLast(),n.structuredQuery.from=[{collectionId:r.lastSegment()}]),n.parent=zN(e,o);const i=function(e){if(0!==e.length)return nI(MA.create(e,"and"))}(t.filters);i&&(n.structuredQuery.where=i);const s=function(e){if(0!==e.length)return e.map(e=>function(e){return{field:eI(e.field),direction:XN(e.dir)}}(e))}(t.orderBy);s&&(n.structuredQuery.orderBy=s);const a=PN(e,t.limit);return null!==a&&(n.structuredQuery.limit=a),t.startAt&&(n.structuredQuery.startAt=function(e){return{before:e.inclusive,values:e.position}}(t.startAt)),t.endAt&&(n.structuredQuery.endAt=function(e){return{before:!e.inclusive,values:e.position}}(t.endAt)),{ut:n,parent:o}}function YN(e){let t=function(e){const t=FN(e);return 4===t.length?EO.emptyPath():HN(t)}(e.parent);
2247const n=e.structuredQuery,r=n.from?n.from.length:0;let o=null;if(r>0){rO(1===r);const e=n.from[0];e.allDescendants?o=e.collectionId:t=t.child(e.collectionId)}let i=[];n.where&&(i=function(e){const t=QN(e);return t instanceof MA&&UA(t)?t.getFilters():[t]}(n.where));let s=[];n.orderBy&&(s=function(e){return e.map(e=>function(e){return new LA(tI(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))}(e))}(n.orderBy));let a=null;n.limit&&(a=function(e){let t;return t="object"==typeof e?e.value:e,zO(t)?null:t}(n.limit));let c=null;n.startAt&&(c=function(e){const t=!!e.before,n=e.values||[];return new CA(n,t)}(n.startAt));let l=null;return n.endAt&&(l=function(e){const t=!e.before,n=e.values||[];return new CA(n,t)}(n.endAt)),function(e,t,n,r,o,i,s,a){return new tC(e,t,n,r,o,i,s,a)}(t,o,s,i,a,"F",c,l)}function QN(e){return void 0!==e.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":const t=tI(e.unaryFilter.field);return DA.create(t,"==",{doubleValue:NaN});case"IS_NULL":const n=tI(e.unaryFilter.field);return DA.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const r=tI(e.unaryFilter.field);return DA.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const o=tI(e.unaryFilter.field);return DA.create(o,"!=",{nullValue:"NULL_VALUE"});default:return nO()}}(e):void 0!==e.fieldFilter?function(e){return DA.create(tI(e.fieldFilter.field),function(e){switch(e){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return nO()}}(e.fieldFilter.op),e.fieldFilter.value)}(e):void 0!==e.compositeFilter?function(e){return MA.create(e.compositeFilter.filters.map(e=>QN(e)),function(e){switch(e){case"AND":return"and";case"OR":return"or";default:return nO()}}(e.compositeFilter.op))}(e):nO()}function XN(e){return CN[e]}function JN(e){return NN[e]}function ZN(e){return IN[e]}function eI(e){return{fieldPath:e.canonicalString()}}function tI(e){return SO.fromServerFormat(e.fieldPath)}function nI(e){return e instanceof DA?function(e){if("=="===e.op){if(EA(e.value))return{unaryFilter:{field:eI(e.field),op:"IS_NAN"}};if(kA(e.value))return{unaryFilter:{field:eI(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(EA(e.value))return{unaryFilter:{field:eI(e.field),op:"IS_NOT_NAN"}};if(kA(e.value))return{unaryFilter:{field:eI(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:eI(e.field),op:JN(e.op),value:e.value}}}(e):e instanceof MA?function(e){const t=e.getFilters().map(e=>nI(e));return 1===t.length?t[0]:{compositeFilter:{op:ZN(e.op),filters:t}}}(e):nO()}function rI(e){const t=[];return e.fields.forEach(e=>t.push(e.canonicalString())),{fieldPaths:t}}function oI(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}
2248/**
2249 * @license
2250 * Copyright 2017 Google LLC
2251 *
2252 * Licensed under the Apache License, Version 2.0 (the "License");
2253 * you may not use this file except in compliance with the License.
2254 * You may obtain a copy of the License at
2255 *
2256 *   http://www.apache.org/licenses/LICENSE-2.0
2257 *
2258 * Unless required by applicable law or agreed to in writing, software
2259 * distributed under the License is distributed on an "AS IS" BASIS,
2260 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2261 * See the License for the specific language governing permissions and
2262 * limitations under the License.
2263 */class iI{constructor(e,t,n,r,o=wO.min(),i=wO.min(),s=tA.EMPTY_BYTE_STRING,a=null){this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=o,this.lastLimboFreeSnapshotVersion=i,this.resumeToken=s,this.expectedCount=a}withSequenceNumber(e){return new iI(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,t){return new iI(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new iI(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new iI(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}
2264/**
2265 * @license
2266 * Copyright 2017 Google LLC
2267 *
2268 * Licensed under the Apache License, Version 2.0 (the "License");
2269 * you may not use this file except in compliance with the License.
2270 * You may obtain a copy of the License at
2271 *
2272 *   http://www.apache.org/licenses/LICENSE-2.0
2273 *
2274 * Unless required by applicable law or agreed to in writing, software
2275 * distributed under the License is distributed on an "AS IS" BASIS,
2276 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2277 * See the License for the specific language governing permissions and
2278 * limitations under the License.
2279 */class sI{constructor(e){this.ct=e}}function aI(e){const t=YN({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?lC(t,t.limit,"L"):t}
2280/**
2281 * @license
2282 * Copyright 2019 Google LLC
2283 *
2284 * Licensed under the Apache License, Version 2.0 (the "License");
2285 * you may not use this file except in compliance with the License.
2286 * You may obtain a copy of the License at
2287 *
2288 *   http://www.apache.org/licenses/LICENSE-2.0
2289 *
2290 * Unless required by applicable law or agreed to in writing, software
2291 * distributed under the License is distributed on an "AS IS" BASIS,
2292 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2293 * See the License for the specific language governing permissions and
2294 * limitations under the License.
2295 */class cI{constructor(){this._n=new lI}addToCollectionParentIndex(e,t){return this._n.add(t),LO.resolve()}getCollectionParents(e,t){return LO.resolve(this._n.getEntries(t))}addFieldIndex(e,t){return LO.resolve()}deleteFieldIndex(e,t){return LO.resolve()}deleteAllFieldIndexes(e){return LO.resolve()}createTargetIndexes(e,t){return LO.resolve()}getDocumentsMatchingTarget(e,t){return LO.resolve(null)}getIndexType(e,t){return LO.resolve(0)}getFieldIndexes(e,t){return LO.resolve([])}getNextCollectionGroupToUpdate(e){return LO.resolve(null)}getMinOffset(e,t){return LO.resolve(AO.min())}getMinOffsetFromCollectionGroup(e,t){return LO.resolve(AO.min())}updateCollectionGroup(e,t,n){return LO.resolve()}updateIndexEntries(e,t){return LO.resolve()}}class lI{constructor(){this.index={}}add(e){const t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new XO(EO.comparator),o=!r.has(n);return this.index[t]=r.add(n),o}has(e){const t=e.lastSegment(),n=e.popLast(),r=this.index[t];return r&&r.has(n)}getEntries(e){return(this.index[e]||new XO(EO.comparator)).toArray()}}
2296/**
2297 * @license
2298 * Copyright 2017 Google LLC
2299 *
2300 * Licensed under the Apache License, Version 2.0 (the "License");
2301 * you may not use this file except in compliance with the License.
2302 * You may obtain a copy of the License at
2303 *
2304 *   http://www.apache.org/licenses/LICENSE-2.0
2305 *
2306 * Unless required by applicable law or agreed to in writing, software
2307 * distributed under the License is distributed on an "AS IS" BASIS,
2308 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2309 * See the License for the specific language governing permissions and
2310 * limitations under the License.
2311 */class uI{constructor(e){this.On=e}next(){return this.On+=2,this.On}static Nn(){return new uI(0)}static Ln(){return new uI(-1)}}
2312/**
2313 * @license
2314 * Copyright 2017 Google LLC
2315 *
2316 * Licensed under the Apache License, Version 2.0 (the "License");
2317 * you may not use this file except in compliance with the License.
2318 * You may obtain a copy of the License at
2319 *
2320 *   http://www.apache.org/licenses/LICENSE-2.0
2321 *
2322 * Unless required by applicable law or agreed to in writing, software
2323 * distributed under the License is distributed on an "AS IS" BASIS,
2324 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2325 * See the License for the specific language governing permissions and
2326 * limitations under the License.
2327 */class hI{constructor(){this.changes=new gC(e=>e.toString(),(e,t)=>e.isEqual(t)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,AA.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();const n=this.changes.get(t);return void 0!==n?LO.resolve(n):this.getFromCache(e,t)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}
2327assertNotApplied(){}}
2328/**
2329 * @license
2330 * Copyright 2017 Google LLC
2331 *
2332 * Licensed under the Apache License, Version 2.0 (the "License");
2333 * you may not use this file except in compliance with the License.
2334 * You may obtain a copy of the License at
2335 *
2336 *   http://www.apache.org/licenses/LICENSE-2.0
2337 *
2338 * Unless required by applicable law or agreed to in writing, software
2339 * distributed under the License is distributed on an "AS IS" BASIS,
2340 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2341 * See the License for the specific language governing permissions and
2342 * limitations under the License.
2343 */
2344/**
2345 * @license
2346 * Copyright 2022 Google LLC
2347 *
2348 * Licensed under the Apache License, Version 2.0 (the "License");
2349 * you may not use this file except in compliance with the License.
2350 * You may obtain a copy of the License at
2351 *
2352 *   http://www.apache.org/licenses/LICENSE-2.0
2353 *
2354 * Unless required by applicable law or agreed to in writing, software
2355 * distributed under the License is distributed on an "AS IS" BASIS,
2356 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2357 * See the License for the specific language governing permissions and
2358 * limitations under the License.
2359 */class fI{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}
2360/**
2361 * @license
2362 * Copyright 2017 Google LLC
2363 *
2364 * Licensed under the Apache License, Version 2.0 (the "License");
2365 * you may not use this file except in compliance with the License.
2366 * You may obtain a copy of the License at
2367 *
2368 *   http://www.apache.org/licenses/LICENSE-2.0
2369 *
2370 * Unless required by applicable law or agreed to in writing, software
2371 * distributed under the License is distributed on an "AS IS" BASIS,
2372 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2373 * See the License for the specific language governing permissions and
2374 * limitations under the License.
2375 */class dI{constructor(e,t,n,r){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=n,this.indexManager=r}getDocument(e,t){let n=null;return this.documentOverlayCache.getOverlay(e,t).next(r=>(n=r,this.remoteDocumentCache.getEntry(e,t))).next(e=>(null!==n&&XC(n.mutation,e,ZO.empty(),_O.now()),e))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.getLocalViewOfDocuments(e,t,OC()).next(()=>t))}getLocalViewOfDocuments(e,t,n=OC()){const r=kC();return this.populateOverlays(e,r,t).next(()=>this.computeViews(e,t,r,n).next(e=>{let t=_C();return e.forEach((e,n)=>{t=t.insert(e,n.overlayedDocument)}),t}))}getOverlayedDocuments(e,t){const n=kC();return this.populateOverlays(e,n,t).next(()=>this.computeViews(e,t,n,OC()))}populateOverlays(e,t,n){const r=[];return n.forEach(e=>{t.has(e)||r.push(e)}),this.documentOverlayCache.getOverlays(e,r).next(e=>{e.forEach((e,n)=>{t.set(e,n)})})}computeViews(e,t,n,r){let o=vC();const i=TC(),s=TC();return t.forEach((e,t)=>{const s=n.get(t.key);r.has(t.key)&&(void 0===s||s.mutation instanceof tN)?o=o.insert(t.key,t):void 0!==s?(i.set(t.key,s.mutation.getFieldMask()),XC(s.mutation,t,s.mutation.getFieldMask(),_O.now())):i.set(t.key,ZO.empty())}),this.recalculateAndSaveOverlays(e,o).next(e=>(e.forEach((e,t)=>i.set(e,t)),t.forEach((e,t)=>{var n;return s.set(e,new fI(t,null!==(n=i.get(e))&&void 0!==n?n:null))}),s))}recalculateAndSaveOverlays(e,t){const n=TC();let r=new KO((e,t)=>e-t),o=OC();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next(e=>{for(const o of e)o.keys().forEach(e=>{const i=t.get(e);if(null===i)return;let s=n.get(e)||ZO.empty();s=o.applyToLocalView(i,s),n.set(e,s);const a=(r.get(o.batchId)||OC()).add(e);r=r.insert(o.batchId,a)})}).next(()=>{const i=[],s=r.getReverseIterator();for(;s.hasNext();){const r=s.getNext(),a=r.key,c=r.value,l=EC();c.forEach(e=>{if(!o.has(e)){const r=YC(t.get(e),n.get(e));null!==r&&l.set(e,r),o=o.add(e)}}),i.push(this.documentOverlayCache.saveOverlays(e,a,l))}return LO.waitFor(i)}).next(()=>n)}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next(t=>this.recalculateAndSaveOverlays(e,t))}getDocumentsMatchingQuery(e,t,n,r){return function(e){return xO.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}(t)?this.getDocumentsMatchingDocumentQuery(e,t.path):oC(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,n,r):this.getDocumentsMatchingCollectionQuery(e,t,n,r)}getNextDocuments(e,t,n,r){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,n,r).next(o=>{const i=r-o.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,n.largestBatchId,r-o.size):LO.resolve(kC());let s=-1,a=o;return i.next(t=>LO.forEach(t,(t,n)=>(s<n.largestBatchId&&(s=n.largestBatchId),o.get(t)?LO.resolve():this.remoteDocumentCache.getEntry(e,t).next(e=>{a=a.insert(t,e)}))).next(()=>this.populateOverlays(e,t,o)).next(()=>this.computeViews(e,a,t,OC())).next(e=>({batchId:s,changes:wC(e)})))})}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new xO(t)).next(e=>{let t=_C();
2375return e.isFoundDocument()&&(t=t.insert(e.key,e)),t})}getDocumentsMatchingCollectionGroupQuery(e,t,n,r){const o=t.collectionGroup;let i=_C();return this.indexManager.getCollectionParents(e,o).next(s=>LO.forEach(s,s=>{const a=function(e,t){return new tC(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(t,s.child(o));return this.getDocumentsMatchingCollectionQuery(e,a,n,r).next(e=>{e.forEach((e,t)=>{i=i.insert(e,t)})})}).next(()=>i))}getDocumentsMatchingCollectionQuery(e,t,n,r){let o;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,n.largestBatchId).next(i=>(o=i,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,n,o,r))).next(e=>{o.forEach((t,n)=>{const r=n.getKey();null===e.get(r)&&(e=e.insert(r,AA.newInvalidDocument(r)))});let n=_C();return e.forEach((e,r)=>{const i=o.get(e);void 0!==i&&XC(i.mutation,r,ZO.empty(),_O.now()),dC(t,r)&&(n=n.insert(e,r))}),n})}}
2376/**
2377 * @license
2378 * Copyright 2020 Google LLC
2379 *
2380 * Licensed under the Apache License, Version 2.0 (the "License");
2381 * you may not use this file except in compliance with the License.
2382 * You may obtain a copy of the License at
2383 *
2384 *   http://www.apache.org/licenses/LICENSE-2.0
2385 *
2386 * Unless required by applicable law or agreed to in writing, software
2387 * distributed under the License is distributed on an "AS IS" BASIS,
2388 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2389 * See the License for the specific language governing permissions and
2390 * limitations under the License.
2391 */class pI{constructor(e){this.serializer=e,this.cr=new Map,this.lr=new Map}getBundleMetadata(e,t){return LO.resolve(this.cr.get(t))}saveBundleMetadata(e,t){return this.cr.set(t.id,function(e){return{id:e.id,version:e.version,createTime:jN(e.createTime)}}(t)),LO.resolve()}getNamedQuery(e,t){return LO.resolve(this.lr.get(t))}saveNamedQuery(e,t){return this.lr.set(t.name,function(e){return{name:e.name,query:aI(e.bundledQuery),readTime:jN(e.readTime)}}(t)),LO.resolve()}}
2392/**
2393 * @license
2394 * Copyright 2022 Google LLC
2395 *
2396 * Licensed under the Apache License, Version 2.0 (the "License");
2397 * you may not use this file except in compliance with the License.
2398 * You may obtain a copy of the License at
2399 *
2400 *   http://www.apache.org/licenses/LICENSE-2.0
2401 *
2402 * Unless required by applicable law or agreed to in writing, software
2403 * distributed under the License is distributed on an "AS IS" BASIS,
2404 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2405 * See the License for the specific language governing permissions and
2406 * limitations under the License.
2407 */class mI{constructor(){this.overlays=new KO(xO.comparator),this.hr=new Map}getOverlay(e,t){return LO.resolve(this.overlays.get(t))}getOverlays(e,t){const n=kC();return LO.forEach(t,t=>this.getOverlay(e,t).next(e=>{null!==e&&n.set(t,e)})).next(()=>n)}saveOverlays(e,t,n){return n.forEach((n,r)=>{this.ht(e,t,r)}),LO.resolve()}removeOverlaysForBatchId(e,t,n){const r=this.hr.get(n);return void 0!==r&&(r.forEach(e=>this.overlays=this.overlays.remove(e)),this.hr.delete(n)),LO.resolve()}getOverlaysForCollection(e,t,n){const r=kC(),o=t.length+1,i=new xO(t.child("")),s=this.overlays.getIteratorFrom(i);for(;s.hasNext();){const e=s.getNext().value,i=e.getKey();if(!t.isPrefixOf(i.path))break;i.path.length===o&&e.largestBatchId>n&&r.set(e.getKey(),e)}return LO.resolve(r)}getOverlaysForCollectionGroup(e,t,n,r){let o=new KO((e,t)=>e-t);const i=this.overlays.getIterator();for(;i.hasNext();){const e=i.getNext().value;if(e.getKey().getCollectionGroup()===t&&e.largestBatchId>n){let t=o.get(e.largestBatchId);null===t&&(t=kC(),o=o.insert(e.largestBatchId,t)),t.set(e.getKey(),e)}}const s=kC(),a=o.getIterator();for(;a.hasNext()&&(a.getNext().value.forEach((e,t)=>s.set(e,t)),!(s.size()>=r)););return LO.resolve(s)}ht(e,t,n){const r=this.overlays.get(n.key);if(null!==r){const e=this.hr.get(r.largestBatchId).delete(n.key);this.hr.set(r.largestBatchId,e)}this.overlays=this.overlays.insert(n.key,new lN(t,n));let o=this.hr.get(t);void 0===o&&(o=OC(),this.hr.set(t,o)),this.hr.set(t,o.add(n.key))}}
2408/**
2409 * @license
2410 * Copyright 2017 Google LLC
2411 *
2412 * Licensed under the Apache License, Version 2.0 (the "License");
2413 * you may not use this file except in compliance with the License.
2414 * You may obtain a copy of the License at
2415 *
2416 *   http://www.apache.org/licenses/LICENSE-2.0
2417 *
2418 * Unless required by applicable law or agreed to in writing, software
2419 * distributed under the License is distributed on an "AS IS" BASIS,
2420 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2421 * See the License for the specific language governing permissions and
2422 * limitations under the License.
2423 */class gI{constructor(){this.Pr=new XO(yI.Ir),this.Tr=new XO(yI.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(e,t){const n=new yI(e,t);this.Pr=this.Pr.add(n),this.Tr=this.Tr.add(n)}dr(e,t){e.forEach(e=>this.addReference(e,t))}removeReference(e,t){this.Ar(new yI(e,t))}Rr(e,t){e.forEach(e=>this.removeReference(e,t))}Vr(e){const t=new xO(new EO([])),n=new yI(t,e),r=new yI(t,e+1),o=[];return this.Tr.forEachInRange([n,r],e=>{this.Ar(e),o.push(e.key)}),o}mr(){this.Pr.forEach(e=>this.Ar(e))}Ar(e){this.Pr=this.Pr.delete(e),this.Tr=this.Tr.delete(e)}gr(e){const t=new xO(new EO([])),n=new yI(t,e),r=new yI(t,e+1);let o=OC();return this.Tr.forEachInRange([n,r],e=>{o=o.add(e.key)}),o}containsKey(e){const t=new yI(e,0),n=this.Pr.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)}}class yI{constructor(e,t){this.key=e,this.pr=t}static Ir(e,t){return xO.comparator(e.key,t.key)||vO(e.pr,t.pr)}static Er(e,t){return vO(e.pr,t.pr)||xO.comparator(e.key,t.key)}}
2424/**
2425 * @license
2426 * Copyright 2017 Google LLC
2427 *
2428 * Licensed under the Apache License, Version 2.0 (the "License");
2429 * you may not use this file except in compliance with the License.
2430 * You may obtain a copy of the License at
2431 *
2432 *   http://www.apache.org/licenses/LICENSE-2.0
2433 *
2434 * Unless required by applicable law or agreed to in writing, software
2435 * distributed under the License is distributed on an "AS IS" BASIS,
2436 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2437 * See the License for the specific language governing permissions and
2438 * limitations under the License.
2439 */class vI{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.yr=1,this.wr=new XO(yI.Ir)}checkEmpty(e){return LO.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,n,r){const o=this.yr;this.yr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const i=new aN(o,t,n,r);this.mutationQueue.push(i);for(const s of r)this.wr=this.wr.add(new yI(s.key,o)),this.indexManager.addToCollectionParentIndex(e,s.key.path.popLast());return LO.resolve(i)}lookupMutationBatch(e,t){return LO.resolve(this.Sr(t))}getNextMutationBatchAfterBatchId(e,t){const n=t+1,r=this.br(n),o=r<0?0:r;return LO.resolve(this.mutationQueue.length>o?this.mutationQueue[o]:null)}getHighestUnacknowledgedBatchId(){return LO.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(e){return LO.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){const n=new yI(t,0),r=new yI(t,Number.POSITIVE_INFINITY),o=[];return this.wr.forEachInRange([n,r],e=>{const t=this.Sr(e.pr);o.push(t)}),LO.resolve(o)}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new XO(vO);return t.forEach(e=>{const t=new yI(e,0),r=new yI(e,Number.POSITIVE_INFINITY);this.wr.forEachInRange([t,r],e=>{n=n.add(e.pr)})}),LO.resolve(this.Dr(n))}getAllMutationBatchesAffectingQuery(e,t){const n=t.path,r=n.length+1;let o=n;xO.isDocumentKey(o)||(o=o.child(""));const i=new yI(new xO(o),0);let s=new XO(vO);return this.wr.forEachWhile(e=>{const t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(s=s.add(e.pr)),!0)},i),LO.resolve(this.Dr(s))}Dr(e){const t=[];return e.forEach(e=>{const n=this.Sr(e);null!==n&&t.push(n)}),t}removeMutationBatch(e,t){rO(0===this.Cr(t.batchId,"removed")),this.mutationQueue.shift();let n=this.wr;return LO.forEach(t.mutations,r=>{const o=new yI(r.key,t.batchId);return n=n.delete(o),this.referenceDelegate.markPotentiallyOrphaned(e,r.key)}).next(()=>{this.wr=n})}Mn(e){}containsKey(e,t){const n=new yI(t,0),r=this.wr.firstAfterOrEqual(n);return LO.resolve(t.isEqual(r&&r.key))}
2439performConsistencyCheck(e){return this.mutationQueue.length,LO.resolve()}Cr(e,t){return this.br(e)}br(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}Sr(e){const t=this.br(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}
2440/**
2441 * @license
2442 * Copyright 2017 Google LLC
2443 *
2444 * Licensed under the Apache License, Version 2.0 (the "License");
2445 * you may not use this file except in compliance with the License.
2446 * You may obtain a copy of the License at
2447 *
2448 *   http://www.apache.org/licenses/LICENSE-2.0
2449 *
2450 * Unless required by applicable law or agreed to in writing, software
2451 * distributed under the License is distributed on an "AS IS" BASIS,
2452 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2453 * See the License for the specific language governing permissions and
2454 * limitations under the License.
2455 */class bI{constructor(e){this.vr=e,this.docs=new KO(xO.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){const n=t.key,r=this.docs.get(n),o=r?r.size:0,i=this.vr(t);return this.docs=this.docs.insert(n,{document:t.mutableCopy(),size:i}),this.size+=i-o,this.indexManager.addToCollectionParentIndex(e,n.path.popLast())}removeEntry(e){const t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){const n=this.docs.get(t);return LO.resolve(n?n.document.mutableCopy():AA.newInvalidDocument(t))}getEntries(e,t){let n=vC();return t.forEach(e=>{const t=this.docs.get(e);n=n.insert(e,t?t.document.mutableCopy():AA.newInvalidDocument(e))}),LO.resolve(n)}getDocumentsMatchingQuery(e,t,n,r){let o=vC();const i=t.path,s=new xO(i.child("")),a=this.docs.getIteratorFrom(s);for(;a.hasNext();){const{key:e,value:{document:s}}=a.getNext();if(!i.isPrefixOf(e.path))break;e.path.length>i.length+1||CO(OO(s),n)<=0||(r.has(s.key)||dC(t,s))&&(o=o.insert(s.key,s.mutableCopy()))}return LO.resolve(o)}getAllFromCollectionGroup(e,t,n,r){nO()}Fr(e,t){return LO.forEach(this.docs,e=>t(e))}newChangeBuffer(e){return new _I(this)}getSize(e){return LO.resolve(this.size)}}class _I extends hI{constructor(e){super(),this.ar=e}applyChanges(e){const t=[];
vendor: 4,897 bytes, lines 2455-2487
2455return this.changes.forEach((n,r)=>{r.isValidDocument()?t.push(this.ar.addEntry(e,r)):this.ar.removeEntry(n)}),LO.waitFor(t)}getFromCache(e,t){return this.ar.getEntry(e,t)}getAllFromCache(e,t){return this.ar.getEntries(e,t)}}
2456/**
2457 * @license
2458 * Copyright 2017 Google LLC
2459 *
2460 * Licensed under the Apache License, Version 2.0 (the "License");
2461 * you may not use this file except in compliance with the License.
2462 * You may obtain a copy of the License at
2463 *
2464 *   http://www.apache.org/licenses/LICENSE-2.0
2465 *
2466 * Unless required by applicable law or agreed to in writing, software
2467 * distributed under the License is distributed on an "AS IS" BASIS,
2468 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2469 * See the License for the specific language governing permissions and
2470 * limitations under the License.
2471 */class wI{constructor(e){this.persistence=e,this.Mr=new gC(e=>JA(e),ZA),this.lastRemoteSnapshotVersion=wO.min(),this.highestTargetId=0,this.Or=0,this.Nr=new gI,this.targetCount=0,this.Lr=uI.Nn()}forEachTarget(e,t){return this.Mr.forEach((e,n)=>t(n)),LO.resolve()}getLastRemoteSnapshotVersion(e){return LO.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return LO.resolve(this.Or)}allocateTargetId(e){return this.highestTargetId=this.Lr.next(),LO.resolve(this.highestTargetId)}setTargetsMetadata(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.Or&&(this.Or=t),LO.resolve()}qn(e){this.Mr.set(e.target,e);const t=e.targetId;t>this.highestTargetId&&(this.Lr=new uI(t),this.highestTargetId=t),e.sequenceNumber>this.Or&&(this.Or=e.sequenceNumber)}addTargetData(e,t){return this.qn(t),this.targetCount+=1,LO.resolve()}updateTargetData(e,t){return this.qn(t),LO.resolve()}removeTargetData(e,t){return this.Mr.delete(t.target),this.Nr.Vr(t.targetId),this.targetCount-=1,LO.resolve()}removeTargets(e,t,n){let r=0;const o=[];return this.Mr.forEach((i,s)=>{s.sequenceNumber<=t&&null===n.get(s.targetId)&&(this.Mr.delete(i),o.push(this.removeMatchingKeysForTargetId(e,s.targetId)),r++)}),LO.waitFor(o).next(()=>r)}getTargetCount(e){return LO.resolve(this.targetCount)}getTargetData(e,t){const n=this.Mr.get(t)||null;return LO.resolve(n)}addMatchingKeys(e,t,n){return this.Nr.dr(t,n),LO.resolve()}removeMatchingKeys(e,t,n){this.Nr.Rr(t,n);const r=this.persistence.referenceDelegate,o=[];return r&&t.forEach(t=>{o.push(r.markPotentiallyOrphaned(e,t))}),LO.waitFor(o)}removeMatchingKeysForTargetId(e,t){return this.Nr.Vr(t),LO.resolve()}getMatchingKeysForTargetId(e,t){const n=this.Nr.gr(t);return LO.resolve(n)}containsKey(e,t){return LO.resolve(this.Nr.containsKey(t))}}
2472/**
2473 * @license
2474 * Copyright 2017 Google LLC
2475 *
2476 * Licensed under the Apache License, Version 2.0 (the "License");
2477 * you may not use this file except in compliance with the License.
2478 * You may obtain a copy of the License at
2479 *
2480 *   http://www.apache.org/licenses/LICENSE-2.0
2481 *
2482 * Unless required by applicable law or agreed to in writing, software
2483 * distributed under the License is distributed on an "AS IS" BASIS,
2484 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2485 * See the License for the specific language governing permissions and
2486 * limitations under the License.
2487 */class kI{constructor(e,t){this.Br={},this.overlays={},this.kr=new VO(0),this.qr=!1,this.qr=!0,this.referenceDelegate=e(this),this.Qr=new wI(this),this.indexManager=new cI,this.remoteDocumentCache=function(e){return new bI(e)}(e=>this.referenceDelegate.Kr(e)),this.serializer=new sI(t),this.$r=new pI(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new mI,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let n=this.Br[e.toKey()];return n||(n=new vI(t,this.referenceDelegate),this.Br[e.toKey()]=n),n}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(e,t,n){Jx("MemoryPersistence","Starting transaction:",e);const r=new EI(this.kr.next());return this.referenceDelegate.Ur(),n(r).next(e=>this.referenceDelegate.Wr(r).next(()=>e)).toPromise().then(e=>(r.raiseOnCommittedEvent(),e))}Gr(e,t){return LO.or(Object.values(this.Br).map(n=>()=>n.containsKey(e,t)))}}class EI extends NO{constructor(e){super(),this.currentSequenceNumber=e}}class TI{constructor(e){this.persistence=e,this.zr=new gI,this.jr=null}static Hr(e){return new TI(e)}get Jr(){if(this.jr)return this.jr;throw nO()}addReference(e,t,n){return this.zr.addReference(n,t),this.Jr.delete(n.toString()),LO.resolve()}removeReference(e,t,n){return this.zr.removeReference(n,t),this.Jr.add(n.toString()),LO.resolve()}markPotentiallyOrphaned(e,t){return this.Jr.add(t.toString()),LO.resolve()}
2487removeTarget(e,t){this.zr.Vr(t.targetId).forEach(e=>this.Jr.add(e.toString()));const n=this.persistence.getTargetCache();return n.getMatchingKeysForTargetId(e,t.targetId).next(e=>{e.forEach(e=>this.Jr.add(e.toString()))}).next(()=>n.removeTargetData(e,t))}Ur(){this.jr=new Set}Wr(e){const t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return LO.forEach(this.Jr,n=>{const r=xO.fromPath(n);return this.Yr(e,r).next(e=>{e||t.removeEntry(r,wO.min())})}).next(()=>(this.jr=null,t.apply(e)))}updateLimboDocument(e,t){return this.Yr(e,t).next(e=>{e?this.Jr.delete(t.toString()):this.Jr.add(t.toString())})}Kr(e){return 0}Yr(e,t){return LO.or([()=>LO.resolve(this.zr.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.Gr(e,t)])}}
2488/**
2489 * @license
2490 * Copyright 2017 Google LLC
2491 *
2492 * Licensed under the Apache License, Version 2.0 (the "License");
2493 * you may not use this file except in compliance with the License.
2494 * You may obtain a copy of the License at
2495 *
2496 *   http://www.apache.org/licenses/LICENSE-2.0
2497 *
2498 * Unless required by applicable law or agreed to in writing, software
2499 * distributed under the License is distributed on an "AS IS" BASIS,
2500 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2501 * See the License for the specific language governing permissions and
2502 * limitations under the License.
2503 */class SI{constructor(e,t,n,r){this.targetId=e,this.fromCache=t,this.qi=n,this.Qi=r}static Ki(e,t){let n=OC(),r=OC();for(const o of t.docChanges)switch(o.type){case 0:n=n.add(o.doc.key);break;case 1:r=r.add(o.doc.key)}return new SI(e,t.fromCache,n,r)}}
2504/**
2505 * @license
2506 * Copyright 2023 Google LLC
2507 *
2508 * Licensed under the Apache License, Version 2.0 (the "License");
2509 * you may not use this file except in compliance with the License.
2510 * You may obtain a copy of the License at
2511 *
2512 *   http://www.apache.org/licenses/LICENSE-2.0
2513 *
2514 * Unless required by applicable law or agreed to in writing, software
2515 * distributed under the License is distributed on an "AS IS" BASIS,
2516 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2517 * See the License for the specific language governing permissions and
2518 * limitations under the License.
2519 */class xI{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}
2520/**
2521 * @license
2522 * Copyright 2019 Google LLC
2523 *
2524 * Licensed under the Apache License, Version 2.0 (the "License");
2525 * you may not use this file except in compliance with the License.
2526 * You may obtain a copy of the License at
2527 *
2528 *   http://www.apache.org/licenses/LICENSE-2.0
2529 *
2530 * Unless required by applicable law or agreed to in writing, software
2531 * distributed under the License is distributed on an "AS IS" BASIS,
2532 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2533 * See the License for the specific language governing permissions and
2534 * limitations under the License.
2535 */class OI{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=av()?8:RO.v(sv())>0?6:4}initialize(e,t){this.zi=e,this.indexManager=t,this.$i=!0}getDocumentsMatchingQuery(e,t,n,r){const o={result:null};return this.ji(e,t).next(e=>{o.result=e}).next(()=>{if(!o.result)return this.Hi(e,t,r,n).next(e=>{o.result=e})}).next(()=>{if(o.result)return;const n=new xI;return this.Ji(e,t,n).next(r=>{if(o.result=r,this.Ui)return this.Yi(e,t,n,r.size)})}).next(()=>o.result)}Yi(e,t,n,r){return n.documentReadCount<this.Wi?(Xx()<=kv.DEBUG&&Jx("QueryEngine","SDK will not create cache indexes for query:",fC(t),"since it only creates cache indexes for collection contains","more than or equal to",this.Wi,"documents"),LO.resolve()):(Xx()<=kv.DEBUG&&Jx("QueryEngine","Query:",fC(t),"scans",n.documentReadCount,"local documents and returns",r,"documents as results."),n.documentReadCount>this.Gi*r?(Xx()<=kv.DEBUG&&Jx("QueryEngine","The SDK decides to create cache indexes for query:",fC(t),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,sC(t))):LO.resolve())}ji(e,t){if(rC(t))return LO.resolve(null);let n=sC(t);return this.indexManager.getIndexType(e,n).next(r=>
25350===r?null:(null!==t.limit&&1===r&&(t=lC(t,null,"F"),n=sC(t)),this.indexManager.getDocumentsMatchingTarget(e,n).next(r=>{const o=OC(...r);return this.zi.getDocuments(e,o).next(r=>this.indexManager.getMinOffset(e,n).next(n=>{const i=this.Zi(t,r);return this.Xi(t,i,o,n.readTime)?this.ji(e,lC(t,null,"F")):this.es(e,i,t,n)}))})))}Hi(e,t,n,r){return rC(t)||r.isEqual(wO.min())?LO.resolve(null):this.zi.getDocuments(e,n).next(o=>{const i=this.Zi(t,o);return this.Xi(t,i,n,r)?LO.resolve(null):(Xx()<=kv.DEBUG&&Jx("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),fC(t)),this.es(e,i,t,function(e,t){const n=e.toTimestamp().seconds,r=e.toTimestamp().nanoseconds+1,o=wO.fromTimestamp(1e9===r?new _O(n+1,0):new _O(n,r));return new AO(o,xO.empty(),t)}(r,-1)).next(e=>e))})}Zi(e,t){let n=new XO(pC(e));return t.forEach((t,r)=>{dC(e,r)&&(n=n.add(r))}),n}Xi(e,t,n,r){if(null===e.limit)return!1;if(n.size!==t.size)return!0;const o="F"===e.limitType?t.last():t.first();return!!o&&(o.hasPendingWrites||o.version.compareTo(r)>0)}Ji(e,t,n){return Xx()<=kv.DEBUG&&Jx("QueryEngine","Using full collection scan to execute query:",fC(t)),this.zi.getDocumentsMatchingQuery(e,t,AO.min(),n)}es(e,t,n,r){return this.zi.getDocumentsMatchingQuery(e,n,r).next(e=>(t.forEach(t=>{e=e.insert(t.key,t)}),e))}}
2536/**
2537 * @license
2538 * Copyright 2020 Google LLC
2539 *
2540 * Licensed under the Apache License, Version 2.0 (the "License");
2541 * you may not use this file except in compliance with the License.
2542 * You may obtain a copy of the License at
2543 *
2544 *   http://www.apache.org/licenses/LICENSE-2.0
2545 *
2546 * Unless required by applicable law or agreed to in writing, software
2547 * distributed under the License is distributed on an "AS IS" BASIS,
2548 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2549 * See the License for the specific language governing permissions and
2550 * limitations under the License.
2551 */class AI{constructor(e,t,n,r){this.persistence=e,this.ts=t,this.serializer=r,this.ns=new KO(vO),this.rs=new gC(e=>JA(e),ZA),this.ss=new Map,this.os=e.getRemoteDocumentCache(),this.Qr=e.getTargetCache(),this.$r=e.getBundleCache(),this._s(n)}_s(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new dI(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",t=>e.collect(t,this.ns))}}async function CI(e,t){const n=oO(e);return await n.persistence.runTransaction("Handle user change","readonly",e=>{let r;
2551return n.mutationQueue.getAllMutationBatches(e).next(o=>(r=o,n._s(t),n.mutationQueue.getAllMutationBatches(e))).next(t=>{const o=[],i=[];let s=OC();for(const e of r){o.push(e.batchId);for(const t of e.mutations)s=s.add(t.key)}for(const e of t){i.push(e.batchId);for(const t of e.mutations)s=s.add(t.key)}return n.localDocuments.getDocuments(e,s).next(e=>({us:e,removedBatchIds:o,addedBatchIds:i}))})})}function NI(e){const t=oO(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",e=>t.Qr.getLastRemoteSnapshotVersion(e))}function II(e,t){const n=oO(e),r=t.snapshotVersion;let o=n.ns;return n.persistence.runTransaction("Apply remote event","readwrite-primary",e=>{const i=n.os.newChangeBuffer({trackRemovals:!0});o=n.ns;const s=[];t.targetChanges.forEach((i,a)=>{const c=o.get(a);if(!c)return;s.push(n.Qr.removeMatchingKeys(e,i.removedDocuments,a).next(()=>n.Qr.addMatchingKeys(e,i.addedDocuments,a)));let l=c.withSequenceNumber(e.currentSequenceNumber);null!==t.targetMismatches.get(a)?l=l.withResumeToken(tA.EMPTY_BYTE_STRING,wO.min()).withLastLimboFreeSnapshotVersion(wO.min()):i.resumeToken.approximateByteSize()>0&&(l=l.withResumeToken(i.resumeToken,r)),o=o.insert(a,l),function(e,t,n){return 0===e.resumeToken.approximateByteSize()||(t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=3e8||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0)}(c,l,i)&&s.push(n.Qr.updateTargetData(e,l))});let a=vC(),c=OC();if(t.documentUpdates.forEach(r=>{t.resolvedLimboDocuments.has(r)&&s.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))}),s.push(function(e,t,n){let r=OC(),o=OC();return n.forEach(e=>r=r.add(e)),t.getEntries(e,r).next(e=>{let r=vC();return n.forEach((n,i)=>{const s=e.get(n);i.isFoundDocument()!==s.isFoundDocument()&&(o=o.add(n)),i.isNoDocument()&&i.version.isEqual(wO.min())?(t.removeEntry(n,i.readTime),r=r.insert(n,i)):!s.isValidDocument()||i.version.compareTo(s.version)>0||0===i.version.compareTo(s.version)&&s.hasPendingWrites?(t.addEntry(i),r=r.insert(n,i)):Jx("LocalStore","Ignoring outdated watch update for ",n,". Current version:",s.version," Watch version:",i.version)}),{cs:r,ls:o}})}(e,i,t.documentUpdates).next(e=>{a=e.cs,c=e.ls})),!r.isEqual(wO.min())){const t=n.Qr.getLastRemoteSnapshotVersion(e).next(t=>n.Qr.setTargetsMetadata(e,e.currentSequenceNumber,r));s.push(t)}return LO.waitFor(s).next(()=>i.apply(e)).next(()=>n.localDocuments.getLocalViewOfDocuments(e,a,c)).next(()=>a)}).then(e=>(n.ns=o,e))}function LI(e,t){const n=oO(e);return n.persistence.runTransaction("Get next mutation batch","readonly",e=>(void 0===t&&(t=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(e,t)))}async function PI(e,t,n){const r=oO(e),o=r.ns.get(t),i=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",i,e=>r.persistence.referenceDelegate.removeTarget(e,o))}catch(e){if(!jO(e))throw e;Jx("LocalStore",`Failed to update sequence numbers for target ${t}: ${e}`)}r.ns=r.ns.remove(t),r.rs.delete(o.target)}function RI(e,t,n){const r=oO(e);let o=wO.min(),i=OC();return r.persistence.runTransaction("Execute query","readwrite",e=>function(e,t,n){const r=oO(e),o=r.rs.get(n);return void 0!==o?LO.resolve(r.ns.get(o)):r.Qr.getTargetData(t,n)}(r,e,sC(t)).next(t=>{if(t)return o=t.lastLimboFreeSnapshotVersion,r.Qr.getMatchingKeysForTargetId(e,t.targetId).next(e=>{i=e})}).next(()=>r.ts.getDocumentsMatchingQuery(e,t,n?o:wO.min(),n?i:OC())).next(e=>(function(e,t,n){let r=e.ss.get(t)||wO.min();n.forEach((e,t)=>{t.readTime.compareTo(r)>0&&(r=t.readTime)}),e.ss.set(t,r)}(r,function(e){return e.collectionGroup||(e.path.length%2==1?e.path.lastSegment():e.path.get(e.path.length-2))}(t),e),{documents:e,hs:i})))}class DI{constructor(){this.activeTargetIds=AC}As(e){this.activeTargetIds=this.activeTargetIds.add(e)}Rs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}ds(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class MI{constructor(){this.no=new DI,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,n){}addLocalQueryTarget(e){return this.no.As(e),this.ro[e]||"not-current"}updateQueryState(e,t,n){this.ro[e]=t}removeLocalQueryTarget(e){this.no.Rs(e)}isLocalQueryTarget(e){return this.no.activeTargetIds.has(e)}clearQueryState(e){delete this.ro[e]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(e){return this.no.activeTargetIds.has(e)}start(){return this.no=new DI,Promise.resolve()}handleUserChange(e,t,n){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}
2552/**
2553 * @license
2554 * Copyright 2019 Google LLC
2555 *
2556 * Licensed under the Apache License, Version 2.0 (the "License");
2557 * you may not use this file except in compliance with the License.
2558 * You may obtain a copy of the License at
2559 *
2560 *   http://www.apache.org/licenses/LICENSE-2.0
2561 *
2562 * Unless required by applicable law or agreed to in writing, software
2563 * distributed under the License is distributed on an "AS IS" BASIS,
2564 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2565 * See the License for the specific language governing permissions and
2566 * limitations under the License.
2567 */class jI{io(e){}shutdown(){}}
2568/**
2569 * @license
2570 * Copyright 2019 Google LLC
2571 *
2572 * Licensed under the Apache License, Version 2.0 (the "License");
2573 * you may not use this file except in compliance with the License.
2574 * You may obtain a copy of the License at
2575 *
2576 *   http://www.apache.org/licenses/LICENSE-2.0
2577 *
2578 * Unless required by applicable law or agreed to in writing, software
2579 * distributed under the License is distributed on an "AS IS" BASIS,
2580 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2581 * See the License for the specific language governing permissions and
2582 * limitations under the License.
2583 */class UI{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(e){this.uo.push(e)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){Jx("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.uo)e(0)}ao(){Jx("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.uo)e(1)}static D(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}
2584/**
2585 * @license
2586 * Copyright 2023 Google LLC
2587 *
2588 * Licensed under the Apache License, Version 2.0 (the "License");
2589 * you may not use this file except in compliance with the License.
2590 * You may obtain a copy of the License at
2591 *
2592 *   http://www.apache.org/licenses/LICENSE-2.0
2593 *
2594 * Unless required by applicable law or agreed to in writing, software
2595 * distributed under the License is distributed on an "AS IS" BASIS,
2596 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2597 * See the License for the specific language governing permissions and
2598 * limitations under the License.
2599 */let qI=null;function FI(){return null===qI?qI=268435456+Math.round(2147483648*Math.random()):qI++,"0x"+qI.toString(16)
2600/**
2601 * @license
2602 * Copyright 2020 Google LLC
2603 *
2604 * Licensed under the Apache License, Version 2.0 (the "License");
2605 * you may not use this file except in compliance with the License.
2606 * You may obtain a copy of the License at
2607 *
2608 *   http://www.apache.org/licenses/LICENSE-2.0
2609 *
2610 * Unless required by applicable law or agreed to in writing, software
2611 * distributed under the License is distributed on an "AS IS" BASIS,
2612 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2613 * See the License for the specific language governing permissions and
2614 * limitations under the License.
2615 */}const BI={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};
2616/**
2617 * @license
2618 * Copyright 2017 Google LLC
2619 *
2620 * Licensed under the Apache License, Version 2.0 (the "License");
2621 * you may not use this file except in compliance with the License.
2622 * You may obtain a copy of the License at
2623 *
2624 *   http://www.apache.org/licenses/LICENSE-2.0
2625 *
2626 * Unless required by applicable law or agreed to in writing, software
2627 * distributed under the License is distributed on an "AS IS" BASIS,
2628 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2629 * See the License for the specific language governing permissions and
2630 * limitations under the License.
2631 */class VI{constructor(e){this.lo=e.lo,this.ho=e.ho}Po(e){this.Io=e}To(e){this.Eo=e}onMessage(e){this.Ao=e}close(){this.ho()}send(e){this.lo(e)}Ro(){this.Io()}Vo(e){this.Eo(e)}mo(e){this.Ao(e)}}
2632/**
2633 * @license
2634 * Copyright 2017 Google LLC
2635 *
2636 * Licensed under the Apache License, Version 2.0 (the "License");
2637 * you may not use this file except in compliance with the License.
2638 * You may obtain a copy of the License at
2639 *
2640 *   http://www.apache.org/licenses/LICENSE-2.0
2641 *
2642 * Unless required by applicable law or agreed to in writing, software
2643 * distributed under the License is distributed on an "AS IS" BASIS,
2644 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2645 * See the License for the specific language governing permissions and
2646 * limitations under the License.
2647 */const zI="WebChannelConnection";class $I extends class{constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const t=e.ssl?"https":"http",n=encodeURIComponent(this.databaseId.projectId),r=encodeURIComponent(this.databaseId.database);this.fo=t+"://"+e.host,this.po=`projects/${n}/databases/${r}`,this.yo="(default)"===this.databaseId.database?`project_id=${n}`:`project_id=${n}&database_id=${r}`}get wo(){return!1}So(e,t,n,r,o){const i=FI(),s=this.bo(e,t.toUriEncodedString());Jx("RestConnection",`Sending RPC '${e}' ${i}:`,s,n);const a={"google-cloud-resource-prefix":this.po,"x-goog-request-params":this.yo};return this.Do(a,r,o),this.Co(e,s,a,n).then(t=>(Jx("RestConnection",`Received RPC '${e}' ${i}: `,t),t),t=>{throw eO("RestConnection",`RPC '${e}' ${i} failed with error: `,t,"url: ",s,"request:",n),t})}vo(e,t,n,r,o,i){return this.So(e,t,n,r,o)}Do(e,t,n){e["X-Goog-Api-Client"]="gl-js/ fire/"+Yx,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((t,n)=>e[n]=t),n&&n.headers.forEach((t,n)=>e[n]=t)}bo(e,t){const n=BI[e];return`${this.fo}/v1/${t}:${n}`}terminate(){}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Co(e,t,n,r){const o=FI();return new Promise((i,s)=>{const a=new $x;a.setWithCredentials(!0),a.listenOnce(qx.COMPLETE,()=>{try{switch(a.getLastErrorCode()){case Ux.NO_ERROR:const t=a.getResponseJson();Jx(zI,`XHR for RPC '${e}' ${o} received:`,JSON.stringify(t)),i(t);break;case Ux.TIMEOUT:Jx(zI,`RPC '${e}' ${o} timed out`),s(new sO(iO.DEADLINE_EXCEEDED,"Request time out"));break;case Ux.HTTP_ERROR:const n=a.getStatus();if(Jx(zI,`RPC '${e}' ${o} failed with status:`,n,"response text:",a.getResponseText()),n>0){let e=a.getResponseJson();Array.isArray(e)&&(e=e[0]);const t=null==e?void 0:e.error;if(t&&t.status&&t.message){const e=function(e){const t=e.toLowerCase().replace(/_/g,"-");return Object.values(iO).indexOf(t)>=0?t:iO.UNKNOWN}(t.status);s(new sO(e,t.message))}else s(new sO(iO.UNKNOWN,"Server responded with status "+a.getStatus()))}else s(new sO(iO.UNAVAILABLE,"Connection failed."));break;default:nO()}}finally{Jx(zI,`RPC '${e}' ${o} completed.`)}});const c=JSON.stringify(r);Jx(zI,`RPC '${e}' ${o} sending request:`,r),a.send(t,"POST",c,n,15)})}Fo(e,t,n){const r=FI(),o=[this.fo,"/","google.firestore.v1.Firestore","/",e,"/channel"],i=new px,s=fT(),a={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},c=this.longPollingOptions.timeoutSeconds;void 0!==c&&(a.longPollingTimeout=Math.round(1e3*c)),this.useFetchStreams&&(a.useFetchStreams=!0),this.Do(a.initMessageHeaders,t,n),a.encodeInitMessageHeaders=!0;const l=o.join("");Jx(zI,`Creating RPC '${e}' stream ${r}: ${l}`,a);const u=i.createWebChannel(l,a);let h=!1,f=!1;const d=new VI({lo:t=>{f?Jx(zI,`Not sending because RPC '${e}' stream ${r} is closed:`,t):(h||(Jx(zI,`Opening RPC '${e}' stream ${r} transport.`),u.open(),h=!0),Jx(zI,`RPC '${e}' stream ${r} sending:`,t),u.send(t))},ho:()=>u.close()}),p=(e,t,n)=>{e.listen(t,e=>{try{n(e)}catch(e){setTimeout(()=>{throw e},0)}})};return p(u,zx.EventType.OPEN,()=>{f||Jx(zI,`RPC '${e}' stream ${r} transport opened.`)}),p(u,zx.EventType.CLOSE,()=>{f||(f=!0,Jx(zI,`RPC '${e}' stream ${r} transport closed`),d.Vo())}
2647),p(u,zx.EventType.ERROR,t=>{f||(f=!0,eO(zI,`RPC '${e}' stream ${r} transport errored:`,t),d.Vo(new sO(iO.UNAVAILABLE,"The operation could not be completed")))}),p(u,zx.EventType.MESSAGE,t=>{var n;if(!f){const o=t.data[0];rO(!!o);const i=o,s=i.error||(null===(n=i[0])||void 0===n?void 0:n.error);if(s){Jx(zI,`RPC '${e}' stream ${r} received error:`,s);const t=s.status;let n=function(e){const t=fN[e];if(void 0!==t)return pN(t)}(t),o=s.message;void 0===n&&(n=iO.INTERNAL,o="Unknown error status: "+t+" with message "+s.message),f=!0,d.Vo(new sO(n,o)),u.close()}else Jx(zI,`RPC '${e}' stream ${r} received:`,o),d.mo(o)}}),p(s,Fx.STAT_EVENT,t=>{t.stat===Bx?Jx(zI,`RPC '${e}' stream ${r} detected buffering proxy`):t.stat===Vx&&Jx(zI,`RPC '${e}' stream ${r} detected no buffering proxy`)}),setTimeout(()=>{d.Ro()},0),d}}function HI(){return"undefined"!=typeof document?document:null}
2648/**
2649 * @license
2650 * Copyright 2020 Google LLC
2651 *
2652 * Licensed under the Apache License, Version 2.0 (the "License");
2653 * you may not use this file except in compliance with the License.
2654 * You may obtain a copy of the License at
2655 *
2656 *   http://www.apache.org/licenses/LICENSE-2.0
2657 *
2658 * Unless required by applicable law or agreed to in writing, software
2659 * distributed under the License is distributed on an "AS IS" BASIS,
2660 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2661 * See the License for the specific language governing permissions and
2662 * limitations under the License.
2663 */function WI(e){return new LN(e,!0)}
2664/**
2665 * @license
2666 * Copyright 2017 Google LLC
2667 *
2668 * Licensed under the Apache License, Version 2.0 (the "License");
2669 * you may not use this file except in compliance with the License.
2670 * You may obtain a copy of the License at
2671 *
2672 *   http://www.apache.org/licenses/LICENSE-2.0
2673 *
2674 * Unless required by applicable law or agreed to in writing, software
2675 * distributed under the License is distributed on an "AS IS" BASIS,
2676 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2677 * See the License for the specific language governing permissions and
2678 * limitations under the License.
2679 */class GI{constructor(e,t,n=1e3,r=1.5,o=6e4){this.oi=e,this.timerId=t,this.Mo=n,this.xo=r,this.Oo=o,this.No=0,this.Lo=null,this.Bo=Date.now(),this.reset()}reset(){this.No=0}ko(){this.No=this.Oo}qo(e){this.cancel();const t=Math.floor(this.No+this.Qo()),n=Math.max(0,Date.now()-this.Bo),r=Math.max(0,t-n);r>0&&Jx("ExponentialBackoff",`Backing off for ${r} ms (base delay: ${this.No} ms, delay with jitter: ${t} ms, last attempt: ${n} ms ago)`),this.Lo=this.oi.enqueueAfterDelay(this.timerId,r,()=>(this.Bo=Date.now(),e())),this.No*=this.xo,this.No<this.Mo&&(this.No=this.Mo),this.No>this.Oo&&(this.No=this.Oo)}Ko(){null!==this.Lo&&(this.Lo.skipDelay(),this.Lo=null)}cancel(){null!==this.Lo&&(this.Lo.cancel(),this.Lo=null)}Qo(){return(Math.random()-.5)*this.No}}
2680/**
2681 * @license
2682 * Copyright 2017 Google LLC
2683 *
2684 * Licensed under the Apache License, Version 2.0 (the "License");
2685 * you may not use this file except in compliance with the License.
2686 * You may obtain a copy of the License at
2687 *
2688 *   http://www.apache.org/licenses/LICENSE-2.0
2689 *
2690 * Unless required by applicable law or agreed to in writing, software
2691 * distributed under the License is distributed on an "AS IS" BASIS,
2692 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2693 * See the License for the specific language governing permissions and
2694 * limitations under the License.
2695 */class KI{constructor(e,t,n,r,o,i,s,a){this.oi=e,this.$o=n,this.Uo=r,this.connection=o,this.authCredentialsProvider=i,this.appCheckCredentialsProvider=s,this.listener=a,this.state=0,this.Wo=0,this.Go=null,this.zo=null,this.stream=null,this.jo=new GI(e,t)}Ho(){return 1===this.state||5===this.state||this.Jo()}Jo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.Yo()}async stop(){this.Ho()&&await this.close(0)}Zo(){this.state=0,this.jo.reset()}Xo(){this.Jo()&&null===this.Go&&(this.Go=this.oi.enqueueAfterDelay(this.$o,6e4,()=>this.e_()))}t_(e){this.n_(),this.stream.send(e)}async e_(){if(this.Jo())return this.close(0)}
2695n_(){this.Go&&(this.Go.cancel(),this.Go=null)}r_(){this.zo&&(this.zo.cancel(),this.zo=null)}async close(e,t){this.n_(),this.r_(),this.jo.cancel(),this.Wo++,4!==e?this.jo.reset():t&&t.code===iO.RESOURCE_EXHAUSTED?(Zx(t.toString()),Zx("Using maximum backoff delay to prevent overloading the backend."),this.jo.ko()):t&&t.code===iO.UNAUTHENTICATED&&3!==this.state&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),null!==this.stream&&(this.i_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.To(t)}i_(){}auth(){this.state=1;const e=this.s_(this.Wo),t=this.Wo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([e,n])=>{this.Wo===t&&this.o_(e,n)},t=>{e(()=>{const e=new sO(iO.UNKNOWN,"Fetching auth token failed: "+t.message);return this.__(e)})})}o_(e,t){const n=this.s_(this.Wo);this.stream=this.a_(e,t),this.stream.Po(()=>{n(()=>(this.state=2,this.zo=this.oi.enqueueAfterDelay(this.Uo,1e4,()=>(this.Jo()&&(this.state=3),Promise.resolve())),this.listener.Po()))}),this.stream.To(e=>{n(()=>this.__(e))}),this.stream.onMessage(e=>{n(()=>this.onMessage(e))})}Yo(){this.state=5,this.jo.qo(async()=>{this.state=0,this.start()})}__(e){return Jx("PersistentStream",`close with error: ${e}`),this.stream=null,this.close(4,e)}s_(e){return t=>{this.oi.enqueueAndForget(()=>this.Wo===e?t():(Jx("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class YI extends KI{constructor(e,t,n,r,o,i){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,n,r,i),this.serializer=o}a_(e,t){return this.connection.Fo("Listen",e,t)}onMessage(e){this.jo.reset();const t=function(e,t){let n;if("targetChange"in t){t.targetChange;const r=function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:nO()}(t.targetChange.targetChangeType||"NO_CHANGE"),o=t.targetChange.targetIds||[],i=function(e,t){return e.useProto3Json?(rO(void 0===t||"string"==typeof t),tA.fromBase64String(t||"")):(rO(void 0===t||t instanceof Uint8Array),tA.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),s=t.targetChange.cause,a=s&&function(e){const t=void 0===e.code?iO.UNKNOWN:pN(e.code);return new sO(t,e.message||"")}(s);n=new TN(r,o,i,a||null)}else if("documentChange"in t){t.documentChange;const r=t.documentChange;r.document,r.document.name,r.document.updateTime;const o=VN(e,r.document.name),i=jN(r.document.updateTime),s=r.document.createTime?jN(r.document.createTime):wO.min(),a=new xA({mapValue:{fields:r.document.fields}}),c=AA.newFoundDocument(o,i,s,a),l=r.targetIds||[],u=r.removedTargetIds||[];n=new kN(l,u,c.key,c)}else if("documentDelete"in t){t.documentDelete;const r=t.documentDelete;r.document;const o=VN(e,r.document),i=r.readTime?jN(r.readTime):wO.min(),s=AA.newNoDocument(o,i),a=r.removedTargetIds||[];n=new kN([],a,s.key,s)}else if("documentRemove"in t){t.documentRemove;const r=t.documentRemove;r.document;const o=VN(e,r.document),i=r.removedTargetIds||[];n=new kN([],i,o,null)}else{if(!("filter"in t))return nO();{t.filter;const e=t.filter;e.targetId;const{count:r=0,unchangedNames:o}=e,i=new hN(r,o),s=e.targetId;n=new EN(s,i)}}return n}(this.serializer,e),n=function(e){if(!("targetChange"in e))return wO.min();const t=e.targetChange;return t.targetIds&&t.targetIds.length?wO.min():t.readTime?jN(t.readTime):wO.min()}(e);return this.listener.u_(t,n)}c_(e){const t={};t.database=$N(this.serializer),t.addTarget=function(e,t){let n;const r=t.target;if(n=eC(r)?{documents:GN(e,r)}:{query:KN(e,r).ut},n.targetId=t.targetId,t.resumeToken.approximateByteSize()>0){n.resumeToken=DN(e,t.resumeToken);const r=PN(e,t.expectedCount);null!==r&&(n.expectedCount=r)}else if(t.snapshotVersion.compareTo(wO.min())>0){n.readTime=RN(e,t.snapshotVersion.toTimestamp());const r=PN(e,t.expectedCount);null!==r&&(n.expectedCount=r)}return n}(this.serializer,e);const n=function(e,t){const n=function(e){switch(e){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return nO()}}(t.purpose);return null==n?null:{"goog-listen-tags":n}}(this.serializer,e);n&&(t.labels=n),this.t_(t)}l_(e){const t={};t.database=$N(this.serializer),t.removeTarget=e,this.t_(t)}}class QI extends KI{constructor(e,t,n,r,o,i){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,n,r,i),this.serializer
2695=o,this.h_=!1}get P_(){return this.h_}start(){this.h_=!1,this.lastStreamToken=void 0,super.start()}i_(){this.h_&&this.I_([])}a_(e,t){return this.connection.Fo("Write",e,t)}onMessage(e){if(rO(!!e.streamToken),this.lastStreamToken=e.streamToken,this.h_){this.jo.reset();const t=function(e,t){return e&&e.length>0?(rO(void 0!==t),e.map(e=>function(e,t){let n=e.updateTime?jN(e.updateTime):jN(t);return n.isEqual(wO.min())&&(n=jN(t)),new HC(n,e.transformResults||[])}(e,t))):[]}(e.writeResults,e.commitTime),n=jN(e.commitTime);return this.listener.T_(n,t)}return rO(!e.writeResults||0===e.writeResults.length),this.h_=!0,this.listener.E_()}d_(){const e={};e.database=$N(this.serializer),this.t_(e)}I_(e){const t={streamToken:this.lastStreamToken,writes:e.map(e=>function(e,t){let n;if(t instanceof eN)n={update:WN(e,t.key,t.value)};else if(t instanceof iN)n={delete:BN(e,t.key)};else if(t instanceof tN)n={update:WN(e,t.key,t.data),updateMask:rI(t.fieldMask)};else{if(!(t instanceof sN))return nO();n={verify:BN(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map(e=>function(e,t){const n=t.transform;if(n instanceof MC)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof jC)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof qC)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof BC)return{fieldPath:t.field.canonicalString(),increment:n.Ie};throw nO()}(0,e))),t.precondition.isNone||(n.currentDocument=function(e,t){return void 0!==t.updateTime?{updateTime:MN(e,t.updateTime)}:void 0!==t.exists?{exists:t.exists}:nO()}(e,t.precondition)),n}(this.serializer,e))};this.t_(t)}}
2696/**
2697 * @license
2698 * Copyright 2017 Google LLC
2699 *
2700 * Licensed under the Apache License, Version 2.0 (the "License");
2701 * you may not use this file except in compliance with the License.
2702 * You may obtain a copy of the License at
2703 *
2704 *   http://www.apache.org/licenses/LICENSE-2.0
2705 *
2706 * Unless required by applicable law or agreed to in writing, software
2707 * distributed under the License is distributed on an "AS IS" BASIS,
2708 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2709 * See the License for the specific language governing permissions and
2710 * limitations under the License.
2711 */class XI extends class{}{constructor(e,t,n,r){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=n,this.serializer=r,this.A_=!1}R_(){if(this.A_)throw new sO(iO.FAILED_PRECONDITION,"The client has already been terminated.")}So(e,t,n,r){return this.R_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([o,i])=>this.connection.So(e,qN(t,n),r,o,i)).catch(e=>{throw"FirebaseError"===e.name?(e.code===iO.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new sO(iO.UNKNOWN,e.toString())})}vo(e,t,n,r,o){return this.R_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([i,s])=>this.connection.vo(e,qN(t,n),r,i,s,o)).catch(e=>{throw"FirebaseError"===e.name?(e.code===iO.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new sO(iO.UNKNOWN,e.toString())})}terminate(){this.A_=!0,this.connection.terminate()}}class JI{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.m_=0,this.f_=null,this.g_=!0}p_(){0===this.m_&&(this.y_("Unknown"),this.f_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.f_=null,this.w_("Backend didn't respond within 10 seconds."),this.y_("Offline"),Promise.resolve())))}S_(e){"Online"===this.state?this.y_("Unknown"):(this.m_++,this.m_>=1&&(this.b_(),this.w_(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.y_("Offline")))}set(e){this.b_(),this.m_=0,"Online"===e&&(this.g_=!1),this.y_(e)}y_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}w_(e){const t=`Could not reach Cloud Firestore backend. ${e}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.g_?(Zx(t),this.g_=!1):Jx("OnlineStateTracker",t)}
2711b_(){null!==this.f_&&(this.f_.cancel(),this.f_=null)}}
2712/**
2713 * @license
2714 * Copyright 2017 Google LLC
2715 *
2716 * Licensed under the Apache License, Version 2.0 (the "License");
2717 * you may not use this file except in compliance with the License.
2718 * You may obtain a copy of the License at
2719 *
2720 *   http://www.apache.org/licenses/LICENSE-2.0
2721 *
2722 * Unless required by applicable law or agreed to in writing, software
2723 * distributed under the License is distributed on an "AS IS" BASIS,
2724 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2725 * See the License for the specific language governing permissions and
2726 * limitations under the License.
2727 */class ZI{constructor(e,t,n,r,o){this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.D_=[],this.C_=new Map,this.v_=new Set,this.F_=[],this.M_=o,this.M_.io(e=>{n.enqueueAndForget(async()=>{cL(this)&&(Jx("RemoteStore","Restarting streams for network reachability change."),await async function(e){const t=oO(e);t.v_.add(4),await tL(t),t.x_.set("Unknown"),t.v_.delete(4),await eL(t)}(this))})}),this.x_=new JI(n,r)}}async function eL(e){if(cL(e))for(const t of e.F_)await t(!0)}async function tL(e){for(const t of e.F_)await t(!1)}function nL(e,t){const n=oO(e);n.C_.has(t.targetId)||(n.C_.set(t.targetId,t),aL(n)?sL(n):SL(n).Jo()&&oL(n,t))}function rL(e,t){const n=oO(e),r=SL(n);n.C_.delete(t),r.Jo()&&iL(n,t),0===n.C_.size&&(r.Jo()?r.Xo():cL(n)&&n.x_.set("Unknown"))}function oL(e,t){if(e.O_.Oe(t.targetId),t.resumeToken.approximateByteSize()>0||t.snapshotVersion.compareTo(wO.min())>0){const n=e.remoteSyncer.getRemoteKeysForTarget(t.targetId).size;t=t.withExpectedCount(n)}SL(e).c_(t)}function iL(e,t){e.O_.Oe(t),SL(e).l_(t)}function sL(e){e.O_=new xN({getRemoteKeysForTarget:t=>e.remoteSyncer.getRemoteKeysForTarget(t),_t:t=>e.C_.get(t)||null,nt:()=>e.datastore.serializer.databaseId}),SL(e).start(),e.x_.p_()}function aL(e){return cL(e)&&!SL(e).Ho()&&e.C_.size>0}function cL(e){return 0===oO(e).v_.size}function lL(e){e.O_=void 0}async function uL(e){e.C_.forEach((t,n)=>{oL(e,t)})}async function hL(e,t){lL(e),aL(e)?(e.x_.S_(t),sL(e)):e.x_.set("Unknown")}async function fL(e,t,n){if(e.x_.set("Online"),t instanceof TN&&2===t.state&&t.cause)try{await async function(e,t){const n=t.cause;for(const r of t.targetIds)e.C_.has(r)&&(await e.remoteSyncer.rejectListen(r,n),e.C_.delete(r),e.O_.removeTarget(r))}(e,t)}catch(n){Jx("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),n),await dL(e,n)}else if(t instanceof kN?e.O_.$e(t):t instanceof EN?e.O_.Je(t):e.O_.Ge(t),!n.isEqual(wO.min()))try{const t=await NI(e.localStore);n.compareTo(t)>=0&&await function(e,t){const n=e.O_.it(t);
2727return n.targetChanges.forEach((n,r)=>{if(n.resumeToken.approximateByteSize()>0){const o=e.C_.get(r);o&&e.C_.set(r,o.withResumeToken(n.resumeToken,t))}}),n.targetMismatches.forEach((t,n)=>{const r=e.C_.get(t);if(!r)return;e.C_.set(t,r.withResumeToken(tA.EMPTY_BYTE_STRING,r.snapshotVersion)),iL(e,t);const o=new iI(r.target,t,n,r.sequenceNumber);oL(e,o)}),e.remoteSyncer.applyRemoteEvent(n)}(e,n)}catch(t){Jx("RemoteStore","Failed to raise snapshot:",t),await dL(e,t)}}async function dL(e,t,n){if(!jO(t))throw t;e.v_.add(1),await tL(e),e.x_.set("Offline"),n||(n=()=>NI(e.localStore)),e.asyncQueue.enqueueRetryable(async()=>{Jx("RemoteStore","Retrying IndexedDB access"),await n(),e.v_.delete(1),await eL(e)})}function pL(e,t){return t().catch(n=>dL(e,n,t))}async function mL(e){const t=oO(e),n=xL(t);let r=t.D_.length>0?t.D_[t.D_.length-1].batchId:-1;for(;gL(t);)try{const e=await LI(t.localStore,r);if(null===e){0===t.D_.length&&n.Xo();break}r=e.batchId,yL(t,e)}catch(e){await dL(t,e)}vL(t)&&bL(t)}function gL(e){return cL(e)&&e.D_.length<10}function yL(e,t){e.D_.push(t);const n=xL(e);n.Jo()&&n.P_&&n.I_(t.mutations)}function vL(e){return cL(e)&&!xL(e).Ho()&&e.D_.length>0}function bL(e){xL(e).start()}async function _L(e){xL(e).d_()}async function wL(e){const t=xL(e);for(const n of e.D_)t.I_(n.mutations)}async function kL(e,t,n){const r=e.D_.shift(),o=cN.from(r,t,n);await pL(e,()=>e.remoteSyncer.applySuccessfulWrite(o)),await mL(e)}async function EL(e,t){t&&xL(e).P_&&await async function(e,t){if(function(e){return function(e){switch(e){default:return nO();case iO.CANCELLED:case iO.UNKNOWN:case iO.DEADLINE_EXCEEDED:case iO.RESOURCE_EXHAUSTED:case iO.INTERNAL:case iO.UNAVAILABLE:case iO.UNAUTHENTICATED:return!1;case iO.INVALID_ARGUMENT:case iO.NOT_FOUND:case iO.ALREADY_EXISTS:case iO.PERMISSION_DENIED:case iO.FAILED_PRECONDITION:case iO.ABORTED:case iO.OUT_OF_RANGE:case iO.UNIMPLEMENTED:case iO.DATA_LOSS:return!0}}(e)&&e!==iO.ABORTED}(t.code)){const n=e.D_.shift();xL(e).Zo(),await pL(e,()=>e.remoteSyncer.rejectFailedWrite(n.batchId,t)),await mL(e)}}(e,t),vL(e)&&bL(e)}async function TL(e,t){const n=oO(e);n.asyncQueue.verifyOperationInProgress(),Jx("RemoteStore","RemoteStore received new credentials");const r=cL(n);n.v_.add(3),await tL(n),r&&n.x_.set("Unknown"),await n.remoteSyncer.handleCredentialChange(t),n.v_.delete(3),await eL(n)}function SL(e){return e.N_||(e.N_=function(e,t,n){const r=oO(e);return r.R_(),new YI(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)
2728/**
2729 * @license
2730 * Copyright 2018 Google LLC
2731 *
2732 * Licensed under the Apache License, Version 2.0 (the "License");
2733 * you may not use this file except in compliance with the License.
2734 * You may obtain a copy of the License at
2735 *
2736 *   http://www.apache.org/licenses/LICENSE-2.0
2737 *
2738 * Unless required by applicable law or agreed to in writing, software
2739 * distributed under the License is distributed on an "AS IS" BASIS,
2740 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2741 * See the License for the specific language governing permissions and
2742 * limitations under the License.
2743 */}(e.datastore,e.asyncQueue,{Po:uL.bind(null,e),To:hL.bind(null,e),u_:fL.bind(null,e)}),e.F_.push(async t=>{t?(e.N_.Zo(),aL(e)?sL(e):e.x_.set("Unknown")):(await e.N_.stop(),lL(e))})),e.N_}function xL(e){return e.L_||(e.L_=function(e,t,n){const r=oO(e);return r.R_(),new QI(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{Po:_L.bind(null,e),To:EL.bind(null,e),E_:wL.bind(null,e),T_:kL.bind(null,e)}),e.F_.push(async t=>{t?(e.L_.Zo(),await mL(e)):(await e.L_.stop(),e.D_.length>0&&(Jx("RemoteStore",`Stopping write stream with ${e.D_.length} pending writes`),e.D_=[]))})),e.L_
2744/**
2745 * @license
2746 * Copyright 2017 Google LLC
2747 *
2748 * Licensed under the Apache License, Version 2.0 (the "License");
2749 * you may not use this file except in compliance with the License.
2750 * You may obtain a copy of the License at
2751 *
2752 *   http://www.apache.org/licenses/LICENSE-2.0
2753 *
2754 * Unless required by applicable law or agreed to in writing, software
2755 * distributed under the License is distributed on an "AS IS" BASIS,
2756 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2757 * See the License for the specific language governing permissions and
2758 * limitations under the License.
2759 */}class OL{constructor(e,t,n,r,o){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=o,this.deferred=new aO,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(e=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,t,n,r,o){const i=Date.now()+n,s=new OL(e,t,i,r,o);return s.start(n),s}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new sO(iO.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function AL(e,t){if(Zx("AsyncQueue",`${t}: ${e}`),jO(e))return new sO(iO.UNAVAILABLE,`${t}: ${e}`);throw e}
2760/**
2761 * @license
2762 * Copyright 2017 Google LLC
2763 *
2764 * Licensed under the Apache License, Version 2.0 (the "License");
2765 * you may not use this file except in compliance with the License.
2766 * You may obtain a copy of the License at
2767 *
2768 *   http://www.apache.org/licenses/LICENSE-2.0
2769 *
2770 * Unless required by applicable law or agreed to in writing, software
2771 * distributed under the License is distributed on an "AS IS" BASIS,
2772 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2773 * See the License for the specific language governing permissions and
2774 * limitations under the License.
2775 */class CL{constructor(e){this.comparator=e?(t,n)=>e(t,n)||xO.comparator(t.key,n.key):(e,t)=>xO.comparator(e.key,t.key),this.keyedMap=_C(),this.sortedSet=new KO(this.comparator)}static emptySet(e){return new CL(e.comparator)}has(e){return null!=this.keyedMap.get(e)}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((t,n)=>(e(t),!1))}add(e){const t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){const t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(e){if(!(e instanceof CL))return!1;if(this.size!==e.size)return!1;const t=this.sortedSet.getIterator(),n=e.sortedSet.getIterator();for(;t.hasNext();){const e=t.getNext().key,r=n.getNext().key;if(!e.isEqual(r))return!1}return!0}toString(){const e=[];return this.forEach(t=>{e.push(t.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"}copy(e,t){const n=new CL;return n.comparator=this.comparator,n.keyedMap=e,n.sortedSet=t,n}}
2776/**
2777 * @license
2778 * Copyright 2017 Google LLC
2779 *
2780 * Licensed under the Apache License, Version 2.0 (the "License");
2781 * you may not use this file except in compliance with the License.
2782 * You may obtain a copy of the License at
2783 *
2784 *   http://www.apache.org/licenses/LICENSE-2.0
2785 *
2786 * Unless required by applicable law or agreed to in writing, software
2787 * distributed under the License is distributed on an "AS IS" BASIS,
2788 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2789 * See the License for the specific language governing permissions and
2790 * limitations under the License.
2791 */class NL{constructor(){this.B_=new KO(xO.comparator)}track(e){const t=e.doc.key,n=this.B_.get(t);n?0!==e.type&&3===n.type?this.B_=this.B_.insert(t,e):3===e.type&&1!==n.type?this.B_=this.B_.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.B_=this.B_.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.B_=this.B_.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.B_=this.B_.remove(t):1===e.type&&2===n.type?this.B_=this.B_.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.B_=this.B_.insert(t,{type:2,doc:e.doc}):nO():this.B_=this.B_.insert(t,e)}k_(){const e=[];return this.B_.inorderTraversal((t,n)=>{e.push(n)}),e}}class IL{constructor(e,t,n,r,o,i,s,a,c){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=o,this.fromCache=i,this.syncStateChanged=s,this.excludesMetadataChanges=a,this.hasCachedResults=c}static fromInitialDocuments(e,t,n,r,o){const i=[];return t.forEach(e=>{i.push({type:0,doc:e})}),new IL(e,t,CL.emptySet(t),i,n,r,!0,!1,o)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&uC(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0}}
2792/**
2793 * @license
2794 * Copyright 2017 Google LLC
2795 *
2796 * Licensed under the Apache License, Version 2.0 (the "License");
2797 * you may not use this file except in compliance with the License.
2798 * You may obtain a copy of the License at
2799 *
2800 *   http://www.apache.org/licenses/LICENSE-2.0
2801 *
2802 * Unless required by applicable law or agreed to in writing, softw
2802are
2803 * distributed under the License is distributed on an "AS IS" BASIS,
2804 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2805 * See the License for the specific language governing permissions and
2806 * limitations under the License.
2807 */class LL{constructor(){this.q_=void 0,this.Q_=[]}K_(){return this.Q_.some(e=>e.U_())}}class PL{constructor(){this.queries=new gC(e=>hC(e),uC),this.onlineState="Unknown",this.W_=new Set}}async function RL(e,t){const n=oO(e);let r=3;const o=t.query;let i=n.queries.get(o);i?!i.K_()&&t.U_()&&(r=2):(i=new LL,r=t.U_()?0:1);try{switch(r){case 0:i.q_=await n.onListen(o,!0);break;case 1:i.q_=await n.onListen(o,!1);break;case 2:await n.onFirstRemoteStoreListen(o)}}catch(e){const n=AL(e,`Initialization of query '${fC(t.query)}' failed`);return void t.onError(n)}n.queries.set(o,i),i.Q_.push(t),t.G_(n.onlineState),i.q_&&t.z_(i.q_)&&UL(n)}async function DL(e,t){const n=oO(e),r=t.query;let o=3;const i=n.queries.get(r);if(i){const e=i.Q_.indexOf(t);e>=0&&(i.Q_.splice(e,1),0===i.Q_.length?o=t.U_()?0:1:!i.K_()&&t.U_()&&(o=2))}switch(o){case 0:return n.queries.delete(r),n.onUnlisten(r,!0);case 1:return n.queries.delete(r),n.onUnlisten(r,!1);case 2:return n.onLastRemoteStoreUnlisten(r);default:return}}function ML(e,t){const n=oO(e);let r=!1;for(const o of t){const e=o.query,t=n.queries.get(e);if(t){for(const e of t.Q_)e.z_(o)&&(r=!0);t.q_=o}}r&&UL(n)}function jL(e,t,n){const r=oO(e),o=r.queries.get(t);if(o)for(const i of o.Q_)i.onError(n);r.queries.delete(t)}function UL(e){e.W_.forEach(e=>{e.next()})}var qL,FL;(FL=qL||(qL={})).j_="default",FL.Cache="cache";class BL{constructor(e,t,n){this.query=e,this.H_=t,this.J_=!1,this.Y_=null,this.onlineState="Unknown",this.options=n||{}}z_(e){if(!this.options.includeMetadataChanges){const t=[];for(const n of e.docChanges)3!==n.type&&t.push(n);e=new IL(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.J_?this.Z_(e)&&(this.H_.next(e),t=!0):this.X_(e,this.onlineState)&&(this.ea(e),t=!0),this.Y_=e,t}onError(e){this.H_.error(e)}G_(e){this.onlineState=e;let t=!1;return this.Y_&&!this.J_&&this.X_(this.Y_,e)&&(this.ea(this.Y_),t=!0),t}X_(e,t){if(!e.fromCache)return!0;if(!this.U_())return!0;const n="Offline"!==t;return(!this.options.ta||!n)&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}Z_(e){if(e.docChanges.length>0)return!0;const t=this.Y_&&this.Y_.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}ea(e){e=IL.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.J_=!0,this.H_.next(e)}U_(){return this.options.source!==qL.Cache}}
2808/**
2809 * @license
2810 * Copyright 2017 Google LLC
2811 *
2812 * Licensed under the Apache License, Version 2.0 (the "License");
2813 * you may not use this file except in compliance with the License.
2814 * You may obtain a copy of the License at
2815 *
2816 *   http://www.apache.org/licenses/LICENSE-2.0
2817 *
2818 * Unless required by applicable law or agreed to in writing, software
2819 * distributed under the License is distributed on an "AS IS" BASIS,
2820 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2821 * See the License for the specific language governing permissions and
2822 * limitations under the License.
2823 */class VL{constructor(e){this.key=e}}class zL{constructor(e){this.key=e}}class $L{constructor(e,t){this.query=e,this.ua=t,this.ca=null,this.hasCachedResults=!1,this.current=!1,this.la=OC(),this.mutatedKeys=OC(),this.ha=pC(e),this.Pa=new CL(this.ha)}get Ia(){return this.ua}Ta(e,t){const n=t?t.Ea:new NL,r=t?t.Pa:this.Pa;let o=t?t.mutatedKeys:this.mutatedKeys,i=r,s=!1;const a="F"===this.query.limitType&&r.size===this.query.limit?r.last():null,c="L"===this.query.limitType&&r.size===this.query.limit?r.first():null;if(e.inorderTraversal((e,t)=>{const l=r.get(e),u=dC(this.query,t)?t:null,h=!!l&&this.mutatedKeys.has(l.key),f=!!u&&(u.hasLocalMutations||this.mutatedKeys.has(u.key)&&u.hasCommittedMutations);let d=!1;l&&u?l.data.isEqual(u.data)?h!==f&&(n.track({type:3,doc:u}),d=!0):this.da(l,u)||(n.track({type:2,doc:u}),d=!0,(a&&this.ha(u,a)>0||c&&this.ha(u,c)<0)&&(s=!0)):!l&&u?(n.track({type:0,doc:u}),d=!0):l&&!u&&(n.track({type:1,doc:l}),d=!0,(a||c)&&(s=!0)),d&&(u?(i=i.add(u),o=f?o.add(e):o.delete(e)):(i=i.delete(e),o=o.delete(e)))}),null!==this.query.limit)for(;i.size>this.query.limit;
2823){const e="F"===this.query.limitType?i.last():i.first();i=i.delete(e.key),o=o.delete(e.key),n.track({type:1,doc:e})}return{Pa:i,Ea:n,Xi:s,mutatedKeys:o}}da(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,n,r){const o=this.Pa;this.Pa=e.Pa,this.mutatedKeys=e.mutatedKeys;const i=e.Ea.k_();i.sort((e,t)=>function(e,t){const n=e=>{switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return nO()}};return n(e)-n(t)}
2824/**
2825 * @license
2826 * Copyright 2020 Google LLC
2827 *
2828 * Licensed under the Apache License, Version 2.0 (the "License");
2829 * you may not use this file except in compliance with the License.
2830 * You may obtain a copy of the License at
2831 *
2832 *   http://www.apache.org/licenses/LICENSE-2.0
2833 *
2834 * Unless required by applicable law or agreed to in writing, software
2835 * distributed under the License is distributed on an "AS IS" BASIS,
2836 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2837 * See the License for the specific language governing permissions and
2838 * limitations under the License.
2839 */(e.type,t.type)||this.ha(e.doc,t.doc)),this.Aa(n),r=null!=r&&r;const s=t&&!r?this.Ra():[],a=0===this.la.size&&this.current&&!r?1:0,c=a!==this.ca;return this.ca=a,0!==i.length||c?{snapshot:new IL(this.query,e.Pa,o,i,e.mutatedKeys,0===a,c,!1,!!n&&n.resumeToken.approximateByteSize()>0),Va:s}:{Va:s}}G_(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({Pa:this.Pa,Ea:new NL,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{Va:[]}}ma(e){return!this.ua.has(e)&&!!this.Pa.has(e)&&!this.Pa.get(e).hasLocalMutations}Aa(e){e&&(e.addedDocuments.forEach(e=>this.ua=this.ua.add(e)),e.modifiedDocuments.forEach(e=>{}),e.removedDocuments.forEach(e=>this.ua=this.ua.delete(e)),this.current=e.current)}Ra(){if(!this.current)return[];const e=this.la;this.la=OC(),this.Pa.forEach(e=>{this.ma(e.key)&&(this.la=this.la.add(e.key))});const t=[];return e.forEach(e=>{this.la.has(e)||t.push(new zL(e))}),this.la.forEach(n=>{e.has(n)||t.push(new VL(n))}),t}fa(e){this.ua=e.hs,this.la=OC();const t=this.Ta(e.documents);return this.applyChanges(t,!0)}ga(){return IL.fromInitialDocuments(this.query,this.Pa,this.mutatedKeys,0===this.ca,this.hasCachedResults)}}class HL{constructor(e,t,n){this.query=e,this.targetId=t,this.view=n}}class WL{constructor(e){this.key=e,this.pa=!1}}class GL{constructor(e,t,n,r,o,i){this.localStore=e,this.remoteStore=t,this.eventManager=n,this.sharedClientState=r,this.currentUser=o,this.maxConcurrentLimboResolutions=i,this.ya={},this.wa=new gC(e=>hC(e),uC),this.Sa=new Map,this.ba=new Set,this.Da=new KO(xO.comparator),this.Ca=new Map,this.va=new gI,this.Fa={},this.Ma=new Map,this.xa=uI.Ln(),this.onlineState="Unknown",this.Oa=void 0}get isPrimaryClient(){return!0===this.Oa}}async function KL(e,t,n=!0){const r=mP(e);let o;const i=r.wa.get(t);return i?(r.sharedClientState.addLocalQueryTarget(i.targetId),o=i.view.ga()):o=await QL(r,t,n,!0),o}async function YL(e,t){const n=mP(e);await QL(n,t,!0,!1)}async function QL(e,t,n,r){const o=await function(e,t){const n=oO(e);return n.persistence.runTransaction("Allocate target","readwrite",e=>{let r;return n.Qr.getTargetData(e,t).next(o=>o?(r=o,LO.resolve(r)):n.Qr.allocateTargetId(e).next(o=>(r=new iI(t,o,"TargetPurposeListen",e.currentSequenceNumber),n.Qr.addTargetData(e,r).next(()=>r))))}).then(e=>{const r=n.ns.get(e.targetId);return(null===r||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.ns=n.ns.insert(e.targetId,e),n.rs.set(t,e.targetId)),e})}(e.localStore,sC(t)),i=o.targetId,s=n?e.sharedClientState.addLocalQueryTarget(i):"not-current";let a;return r&&(a=await async function(e,t,n,r,o){e.Na=(t,n,r)=>async function(e,t,n,r){let o=t.view.Ta(n);o.Xi&&(o=await RI(e.localStore,t.query,!1).then(({documents:e})=>t.view.Ta(e,o)));const i=r&&r.targetChanges.get(t.targetId),s=r&&null!=r.targetMismatches.get(t.targetId),a=t.view.applyChanges(o,e.isPrimaryClient,i,s);return lP(e,t.targetId,a.Va),a.snapshot}(e,t,n,r);const i=await RI(e.localStore,t,!0),s=new $L(t,i.hs),a=s.Ta(i.documents),c=wN.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==e.onlineState,o),l=s.applyChanges(a,e.isPrimaryClient,c);lP(e,n,l.Va);const u=new HL(t,n,s);return e.wa.set(t,u),e.Sa.has(n)?e.Sa.get(n).push(t):e.Sa.set(n,[t]),l.snapshot}(e,t,i,"current"===s,o.resumeToken)),e.isPrimaryClient&&n&&nL(e.remoteStore,o),a}async function XL(e,t,n){const r=oO(e),o=r.wa.get(t),i=r.Sa.get(o.targetId);if(i.length>1)return r.Sa.set(o.targetId,i.filter(e=>!uC(e,t))),void r.wa.delete(t);
2839r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(o.targetId),r.sharedClientState.isActiveQueryTarget(o.targetId)||await PI(r.localStore,o.targetId,!1).then(()=>{r.sharedClientState.clearQueryState(o.targetId),n&&rL(r.remoteStore,o.targetId),aP(r,o.targetId)}).catch(IO)):(aP(r,o.targetId),await PI(r.localStore,o.targetId,!0))}async function JL(e,t){const n=oO(e),r=n.wa.get(t),o=n.Sa.get(r.targetId);n.isPrimaryClient&&1===o.length&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),rL(n.remoteStore,r.targetId))}async function ZL(e,t,n){const r=function(e){const t=oO(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=rP.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=oP.bind(null,t),t}(e);try{const e=await function(e,t){const n=oO(e),r=_O.now(),o=t.reduce((e,t)=>e.add(t.key),OC());let i,s;return n.persistence.runTransaction("Locally write mutations","readwrite",e=>{let a=vC(),c=OC();return n.os.getEntries(e,o).next(e=>{a=e,a.forEach((e,t)=>{t.isValidDocument()||(c=c.add(e))})}).next(()=>n.localDocuments.getOverlayedDocuments(e,a)).next(o=>{i=o;const s=[];for(const e of t){const t=JC(e,i.get(e.key).overlayedDocument);null!=t&&s.push(new tN(e.key,t,OA(t.value.mapValue),WC.exists(!0)))}
2839return n.mutationQueue.addMutationBatch(e,r,s,t)}).next(t=>{s=t;const r=t.applyToLocalDocumentSet(i,c);return n.documentOverlayCache.saveOverlays(e,t.batchId,r)})}).then(()=>({batchId:s.batchId,changes:wC(i)}))}(r.localStore,t);r.sharedClientState.addPendingMutation(e.batchId),function(e,t,n){let r=e.Fa[e.currentUser.toKey()];r||(r=new KO(vO)),r=r.insert(t,n),e.Fa[e.currentUser.toKey()]=r}(r,e.batchId,n),await fP(r,e.changes),await mL(r.remoteStore)}catch(e){const t=AL(e,"Failed to persist write");n.reject(t)}}async function eP(e,t){const n=oO(e);try{const e=await II(n.localStore,t);t.targetChanges.forEach((e,t)=>{const r=n.Ca.get(t);r&&(rO(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1),e.addedDocuments.size>0?r.pa=!0:e.modifiedDocuments.size>0?rO(r.pa):e.removedDocuments.size>0&&(rO(r.pa),r.pa=!1))}),await fP(n,e,t)}catch(e){await IO(e)}}function tP(e,t,n){const r=oO(e);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){const e=[];r.wa.forEach((n,r)=>{const o=r.view.G_(t);o.snapshot&&e.push(o.snapshot)}),function(e,t){const n=oO(e);n.onlineState=t;let r=!1;n.queries.forEach((e,n)=>{for(const o of n.Q_)o.G_(t)&&(r=!0)}),r&&UL(n)}(r.eventManager,t),e.length&&r.ya.u_(e),r.onlineState=t,r.isPrimaryClient&&r.sharedCl
2839ientState.setOnlineState(t)}}async function nP(e,t,n){const r=oO(e);r.sharedClientState.updateQueryState(t,"rejected",n);const o=r.Ca.get(t),i=o&&o.key;if(i){let e=new KO(xO.comparator);e=e.insert(i,AA.newNoDocument(i,wO.min()));const n=OC().add(i),o=new _N(wO.min(),new Map,new KO(vO),e,n);await eP(r,o),r.Da=r.Da.remove(i),r.Ca.delete(t),hP(r)}else await PI(r.localStore,t,!1).then(()=>aP(r,t,n)).catch(IO)}async function rP(e,t){const n=oO(e),r=t.batch.batchId;try{const e=await function(e,t){const n=oO(e);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",e=>{const r=t.batch.keys(),o=n.os.newChangeBuffer({trackRemovals:!0});return function(e,t,n,r){const o=n.batch,i=o.keys();let s=LO.resolve();return i.forEach(e=>{s=s.next(()=>r.getEntry(t,e)).next(t=>{const i=n.docVersions.get(e);rO(null!==i),t.version.compareTo(i)<0&&(o.applyToRemoteDocument(t,n),t.isValidDocument()&&(t.setReadTime(n.commitVersion),r.addEntry(t)))})}),s.next(()=>e.mutationQueue.removeMutationBatch(t,o))}(n,e,t,o).next(()=>o.apply(e)).next(()=>n.mutationQueue.performConsistencyCheck(e)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,function(e){let t=OC();for(let n=0;n<e.mutationResults.length;++n)e.mutationResults[n].transformResults.length>0&&(t=t.add(e.batch.mutations[n].key));return t}(t))).next(()=>n.localDocuments.getDocuments(e,r))})}(n.localStore,t);sP(n,r,null),iP(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await fP(n,e)}catch(e){await IO(e)}}async function oP(e,t,n){const r=oO(e);try{const e=await function(e,t){const n=oO(e);return n.persistence.runTransaction("Reject batch","readwrite-primary",e=>{let r;
2839return n.mutationQueue.lookupMutationBatch(e,t).next(t=>(rO(null!==t),r=t.keys(),n.mutationQueue.removeMutationBatch(e,t))).next(()=>n.mutationQueue.performConsistencyCheck(e)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,r)).next(()=>n.localDocuments.getDocuments(e,r))})}(r.localStore,t);sP(r,t,n),iP(r,t),r.sharedClientState.updateMutationState(t,"rejected",n),await fP(r,e)}catch(n){await IO(n)}}function iP(e,t){(e.Ma.get(t)||[]).forEach(e=>{e.resolve()}),e.Ma.delete(t)}function sP(e,t,n){const r=oO(e);let o=r.Fa[r.currentUser.toKey()];if(o){const e=o.get(t);e&&(n?e.reject(n):e.resolve(),o=o.remove(t)),r.Fa[r.currentUser.toKey()]=o}}function aP(e,t,n=null){e.sharedClientState.removeLocalQueryTarget(t);for(const r of e.Sa.get(t))e.wa.delete(r),n&&e.ya.La(r,n);e.Sa.delete(t),e.isPrimaryClient&&e.va.Vr(t).forEach(t=>{e.va.containsKey(t)||cP(e,t)})}function cP(e,t){e.ba.delete(t.path.canonicalString());const n=e.Da.get(t);null!==n&&(rL(e.remoteStore,n),e.Da=e.Da.remove(t),e.Ca.delete(n),hP(e))}function lP(e,t,n){for(const r of n)r instanceof VL?(e.va.addReference(r.key,t),uP(e,r)):r instanceof zL?(Jx("SyncEngine","Document no longer in limbo: "+r.key),e.va.removeReference(r.key,t),e.va.containsKey(r.key)||cP(e,r.key)):nO()}function uP(e,t){const n=t.key,r=n.path.canonicalString();e.Da.get(n)||e.ba.has(r)||(Jx("SyncEngine","New document in limbo: "+n),e.ba.add(r),hP(e))}function hP(e){for(;e.ba.size>0&&e.Da.size<e.maxConcurrentLimboResolutions;){const t=e.ba.values().next().value;e.ba.delete(t);const n=new xO(EO.fromString(t)),r=e.xa.next();e.Ca.set(r,new WL(n)),e.Da=e.Da.insert(n,r),nL(e.remoteStore,new iI(sC(nC(n.path)),r,"TargetPurposeLimboResolution",VO._e))}}async function fP(e,t,n){const r=oO(e),o=[],i=[],s=[];r.wa.isEmpty()||(r.wa.forEach((e,a)=>{s.push(r.Na(a,t,n).then(e=>
2839{if((e||n)&&r.isPrimaryClient&&r.sharedClientState.updateQueryState(a.targetId,(null==e?void 0:e.fromCache)?"not-current":"current"),e){o.push(e);const t=SI.Ki(a.targetId,e);i.push(t)}}))}),await Promise.all(s),r.ya.u_(o),await async function(e,t){const n=oO(e);try{await n.persistence.runTransaction("notifyLocalViewChanges","readwrite",e=>LO.forEach(t,t=>LO.forEach(t.qi,r=>n.persistence.referenceDelegate.addReference(e,t.targetId,r)).next(()=>LO.forEach(t.Qi,r=>n.persistence.referenceDelegate.removeReference(e,t.targetId,r)))))}catch(e){if(!jO(e))throw e;Jx("LocalStore","Failed to update sequence numbers: "+e)}for(const r of t){const e=r.targetId;if(!r.fromCache){const t=n.ns.get(e),r=t.snapshotVersion,o=t.withLastLimboFreeSnapshotVersion(r);n.ns=n.ns.insert(e,o)}}}(r.localStore,i))}async function dP(e,t){const n=oO(e);if(!n.currentUser.isEqual(t)){Jx("SyncEngine","User change. New user:",t.toKey());const e=await CI(n.localStore,t);n.currentUser=t,function(e,t){e.Ma.forEach(e=>{e.forEach(e=>{e.reject(new sO(iO.CANCELLED,t))})}),e.Ma.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(t,e.removedBatchIds,e.addedBatchIds),await fP(n,e.us)}}function pP(e,t){const n=oO(e),r=n.Ca.get(t);if(r&&r.pa)return OC().add(r.key);{let e=OC();const r=n.Sa.get(t);if(!r)return e;for(const t of r){const r=n.wa.get(t);e=e.unionWith(r.view.Ia)}return e}}function mP(e){const t=oO(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=eP.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=pP.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=nP.bind(null,t),t.ya.u_=ML.bind(null,t.eventManager),t.ya.La=jL.bind(null,t.eventManager),t}class gP{constructor(){this.synchronizeTabs=!1}async initialize(e){this.serializer=WI(e.databaseInfo.databaseId),this.sharedClientState=this.createSharedClientState(e),this.persistence=this.createPersistence(e),await this.persistence.start(),this.localStore=this.createLocalStore(e),this.gcScheduler=this.createGarbageCollectionScheduler(e,this.localStore),this.indexBackfillerScheduler=this.createIndexBackfillerScheduler(e,this.localStore)}createGarbageCollectionScheduler(e,t){return null}createIndexBackfillerScheduler(e,t){return null}createLocalStore(e){return function(e,t,n,r){return new AI(e,t,n,r)}(this.persistence,new OI,e.initialUser,this.serializer)}createPersistence(e){return new kI(TI.Hr,this.serializer)}createSharedClientState(e){return new MI}async terminate(){var e,t;null===(e=this.gcScheduler)||void 0===e||e.stop(),null===(t=this.indexBackfillerScheduler)||void 0===t||t.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}class yP{async initialize(e,t){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(t),this.remoteStore=this.createRemoteStore(t),this.eventManager=this.createEventManager(t),this.syncEngine=this.createSyncEngine(t,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=e=>tP(this.syncEngine,e,1),this.remoteStore.remoteSyncer.handleCredentialChange=dP.bind(null,this.syncEngine),await async function(e,t){const n=oO(e);t?(n.v_.delete(2),await eL(n)):t||(n.v_.add(2),await tL(n),n.x_.set("Unknown"))}(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return new PL}createDatastore(e){const t=WI(e.databaseInfo.databaseId),n=function(e){return new $I(e)}(e.databaseInfo);return function(e,t,n,r){return new XI(e,t,n,r)}(e.authCredentials,e.appCheckCredentials,n,t)}createRemoteStore(e){return function(e,t,n,r,o){return new ZI(e,t,n,r,o)}(this.localStore,this.datastore,e.asyncQueue,e=>tP(this.syncEngine,e,0),UI.D()?new UI:new jI)}createSyncEngine(e,t){return function(e,t,n,r,o,i,s){const a=new GL(e,t,n,r,o,i);return s&&(a.Oa=!0),a}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}async terminate(){var e;await async function(e){const t=oO(e);Jx("RemoteStore","RemoteStore shutting down."),t.v_.add(5),await tL(t),t.M_.shutdown(),t.x_.set("Unknown")}(this.remoteStore),null===(e=this.datastore)||void 0===e||e.terminate()}}
2840/**
2841 * @license
2842 * Copyright 2020 Google LLC
2843 *
2844 * Licensed under the Apache License, Version 2.0 (the "License");
2845 * you may not use this file except in compliance with the License.
2846 * You may obtain a copy of the License at
2847 *
2848 *   http://www.apache.org/licenses/LICENSE-2.0
2849 *
2850 * Unless required by applicable law or agreed to in writing, software
2851 * distributed under the License is distributed on an "AS IS" BASIS,
2852 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2853 * See the License for the specific language governing permissions and
2854 * limitations under the License.
2855 */
2856/**
2857 * @license
2858 * Copyright 2017 Google LLC
2859 *
2860 * Licensed under the Apache License, Version 2.0 (the "License");
2861 * you may not use this file except in compliance with the License.
2862 * You may obtain a copy of the License at
2863 *
2864 *   http://www.apache.org/licenses/LICENSE-2.0
2865 *
2866 * Unless required by applicable law or agreed to in writing, software
2867 * distributed under the License is distributed on an "AS IS" BASIS,
2868 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2869 * See the License for the specific language governing permissions and
2870 * limitations under the License.
2871 */class vP{constructor(e){this.observer=e,this.muted=!1}next(e){this.observer.next&&this.qa(this.observer.next,e)}error(e){this.observer.error?this.qa(this.observer.error,e):Zx("Uncaught Error in snapshot listener:",e.toString())}Qa(){this.muted=!0}qa(e,t){this.muted||setTimeout(()=>{this.muted||e(t)},0)}}
2872/**
2873 * @license
2874 * Copyright 2017 Google LLC
2875 *
2876 * Licensed under the Apache License, Version 2.0 (the "License");
2877 * you may not use this file except in compliance with the License.
2878 * You may obtain a copy of the License at
2879 *
2880 *   http://www.apache.org/licenses/LICENSE-2.0
2881 *
2882 * Unless required by applicable law or agreed to in writing, software
2883 * distributed under the License is distributed on an "AS IS" BASIS,
2884 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2885 * See the License for the specific language governing permissions and
2886 * limitations under the License.
2887 */let bP=class{constructor(e,t,n,r){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=n,this.databaseInfo=r,this.user=Kx.UNAUTHENTICATED,this.clientId=yO.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(n,async e=>{Jx("FirestoreClient","Received user=",e.uid),await this.authCredentialListener(e),this.user=e}),this.appCheckCredentials.start(n,e=>(Jx("FirestoreClient","Received new app check token=",e),this.appCheckCredentialListener(e,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new sO(iO.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){this.asyncQueue.enterRestrictedMode();const e=new aO;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(NB){const n=AL(NB,"Failed to shutdown persistence");e.reject(n)}}),e.promise}};async function _P(e,t){e.asyncQueue.verifyOperationInProgress(),Jx("FirestoreClient","Initializing OfflineComponentProvider");const n=e.configuration;await t.initialize(n);let r=n.initialUser;e.setCredentialChangeListener(async e=>{r.isEqual(e)||(await CI(t.localStore,e),r=e)}),t.persistence.setDatabaseDeletedListener(()=>e.terminate()),e._offlineComponents=t}async function wP(e,t){e.asyncQueue.verifyOperationInProgress();const n=await async function(e){if(!e._offlineComponents)if(e._uninitializedComponentsProvider){Jx("FirestoreClient","Using user provided OfflineComponentProvider");try{await _P(e,e._uninitializedComponentsProvider._offline)}catch(t){const r=t;if(!function(e){return"FirebaseError"===e.name?e.code===iO.FAILED_PRECONDITION||e.code===iO.UNIMPLEMENT
2887ED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code}(r))throw r;eO("Error using user provided cache. Falling back to memory cache: "+r),await _P(e,new gP)}}else Jx("FirestoreClient","Using default OfflineComponentProvider"),await _P(e,new gP);return e._offlineComponents}(e);Jx("FirestoreClient","Initializing OnlineComponentProvider"),await t.initialize(n,e.configuration),e.setCredentialChangeListener(e=>TL(t.remoteStore,e)),e.setAppCheckTokenChangeListener((e,n)=>TL(t.remoteStore,n)),e._onlineComponents=t}async function kP(e){return e._onlineComponents||(e._uninitializedComponentsProvider?(Jx("FirestoreClient","Using user provided OnlineComponentProvider"),await wP(e,e._uninitializedComponentsProvider._online)):(Jx("FirestoreClient","Using default OnlineComponentProvider"),await wP(e,new yP))),e._onlineComponents}async function EP(e){const t=await kP(e),n=t.eventManager;return n.onListen=KL.bind(null,t.syncEngine),n.onUnlisten=XL.bind(null,t.syncEngine),n.onFirstRemoteStoreListen=YL.bind(null,t.syncEngine),n.onLastRemoteStoreUnlisten=JL.bind(null,t.syncEngine),n}
2888/**
2889 * @license
2890 * Copyright 2023 Google LLC
2891 *
2892 * Licensed under the Apache License, Version 2.0 (the "License");
2893 * you may not use this file except in compliance with the License.
2894 * You may obtain a copy of the License at
2895 *
2896 *   http://www.apache.org/licenses/LICENSE-2.0
2897 *
2898 * Unless required by applicable law or agreed to in writing, software
2899 * distributed under the License is distributed on an "AS IS" BASIS,
2900 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2901 * See the License for the specific language governing permissions and
2902 * limitations under the License.
2903 */
2904function TP(e){const t={};return void 0!==e.timeoutSeconds&&(t.timeoutSeconds=e.timeoutSeconds),t
2905/**
2906 * @license
2907 * Copyright 2020 Google LLC
2908 *
2909 * Licensed under the Apache License, Version 2.0 (the "License");
2910 * you may not use this file except in compliance with the License.
2911 * You may obtain a copy of the License at
2912 *
2913 *   http://www.apache.org/licenses/LICENSE-2.0
2914 *
2915 * Unless required by applicable law or agreed to in writing, software
2916 * distributed under the License is distributed on an "AS IS" BASIS,
2917 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2918 * See the License for the specific language governing permissions and
2919 * limitations under the License.
2920 */}const SP=new Map;
2921/**
2922 * @license
2923 * Copyright 2017 Google LLC
2924 *
2925 * Licensed under the Apache License, Version 2.0 (the "License");
2926 * you may not use this file except in compliance with the License.
2927 * You may obtain a copy of the License at
2928 *
2929 *   http://www.apache.org/licenses/LICENSE-2.0
2930 *
2931 * Unless required by applicable law or agreed to in writing, software
2932 * distributed under the License is distributed on an "AS IS" BASIS,
2933 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2934 * See the License for the specific language governing permissions and
2935 * limitations under the License.
2936 */function xP(e,t,n){if(!n)throw new sO(iO.INVALID_ARGUMENT,`Function ${e}() cannot be called with an empty ${t}.`)}function OP(e){if(!xO.isDocumentKey(e))throw new sO(iO.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${e} has ${e.length}.`)}function AP(e){if(xO.isDocumentKey(e))throw new sO(iO.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${e} has ${e.length}.`)}function CP(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e=`${e.substring(0,20)}...`),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";{const t=function(e){return e.constructor?e.constructor.name:null}(e);return t?`a custom ${t} object`:"an object"}}return"function"==typeof e?"a function":nO()}function NP(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new sO(iO.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=CP(e);throw new sO(iO.INVALID_ARGUMENT,`Expected type '${t.name}', but it was: ${n}`)}}return e}
2937/**
2938 * @license
2939 * Copyright 2020 Google LLC
2940 *
2941 * Licensed under the Apache License, Version 2.0 (the "License");
2942 * you may not use this file except in compliance with the License.
2943 * You may obtain a copy of the License at
2944 *
2945 *   http://www.apache.org/licenses/LICENSE-2.0
2946 *
2947 * Unless required by applicable law or agreed to in writing, software
2948 * distributed under the License is distributed on an "AS IS" BASIS,
2949 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2950 * See the License for the specific language governing permissions and
2951 * limitations under the License.
2952 */
2953class IP{constructor(e){var t,n;if(void 0===e.host){if(void 0!==e.ssl)throw new sO(iO.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=null===(t=e.ssl)||void 0===t||t;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new sO(iO.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}(function(e,t,n,r){if(!0===t&&!0===r)throw new sO(iO.INVALID_ARGUMENT,`${e} and ${n} cannot be used together.`)})("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:void 0===e.experimentalAutoDetectLongPolling?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=TP(null!==(n=e.experimentalLongPollingOptions)&&void 0!==n?n:{}),function(e){if(void 0!==e.timeoutSeconds){if(isNaN(e.timeoutSeconds))throw new sO(iO.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (must not be NaN)`);if(e.timeoutSeconds<5)throw new sO(iO.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (minimum allowed value is 5)`);if(e.timeoutSeconds>30)throw new sO(iO.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (maximum allowed value is 30)`)}}
2954/**
2955 * @license
2956 * Copyright 2020 Google LLC
2957 *
2958 * Licensed under the Apache License, Version 2.0 (the "License");
2959 * you may not use this file except in compliance with the License.
2960 * You may obtain a copy of the License at
2961 *
2962 *   http://www.apache.org/licenses/LICENSE-2.0
2963 *
2964 * Unless required by applicable law or agreed to in writing, software
2965 * distributed under the License is distributed on an "AS IS" BASIS,
2966 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2967 * See the License for the specific language governing permissions and
2968 * limitations under the License.
2969 */(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&function(e,t){return e.timeoutSeconds===t.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class LP{constructor(e,t,n,r){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=n,this._app=r,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new IP({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new sO(iO.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new sO(iO.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new IP(e),void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new lO;switch(e.type){case"firstParty":return new dO(e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new sO(iO.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invali
2969d credential type")}}(e.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){const t=SP.get(e);t&&(Jx("ComponentProvider","Removing Datastore"),SP.delete(e),t.terminate())}(this),Promise.resolve()}}
2970/**
2971 * @license
2972 * Copyright 2020 Google LLC
2973 *
2974 * Licensed under the Apache License, Version 2.0 (the "License");
2975 * you may not use this file except in compliance with the License.
2976 * You may obtain a copy of the License at
2977 *
2978 *   http://www.apache.org/licenses/LICENSE-2.0
2979 *
2980 * Unless required by applicable law or agreed to in writing, software
2981 * distributed under the License is distributed on an "AS IS" BASIS,
2982 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2983 * See the License for the specific language governing permissions and
2984 * limitations under the License.
2985 */
2986class PP{constructor(e,t,n){this.converter=t,this._query=n,this.type="query",this.firestore=e}withConverter(e){return new PP(this.firestore,e,this._query)}}class RP{constructor(e,t,n){this.converter=t,this._key=n,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new DP(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new RP(this.firestore,e,this._key)}}class DP extends PP{constructor(e,t,n){super(e,t,nC(n)),this._path=n,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new RP(this.firestore,null,new xO(e))}withConverter(e){return new DP(this.firestore,e,this._path)}}function MP(e,t,...n){if(e=yv(e),xP("collection","path",t),e instanceof LP){const r=EO.fromString(t,...n);return AP(r),new DP(e,null,r)}{if(!(e instanceof RP||e instanceof DP))throw new sO(iO.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=e._path.child(EO.fromString(t,...n));return AP(r),new DP(e.firestore,null,r)}}function jP(e,t,...n){if(e=yv(e),1===arguments.length&&(t=yO.newId()),xP("doc","path",t),e instanceof LP){const r=EO.fromString(t,...n);return OP(r),new RP(e,null,new xO(r))}{if(!(e instanceof RP||e instanceof DP))throw new sO(iO.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=e._path.child(EO.fromString(t,...n));return OP(r),new RP(e.firestore,e instanceof DP?e.converter:null,new xO(r))}}
2987/**
2988 * @license
2989 * Copyright 2020 Google LLC
2990 *
2991 * Licensed under the Apache License, Version 2.0 (the "License");
2992 * you may not use this file except in compliance with the License.
2993 * You may obtain a copy of the License at
2994 *
2995 *   http://www.apache.org/licenses/LICENSE-2.0
2996 *
2997 * Unless required by applicable law or agreed to in writing, software
2998 * distributed under the License is distributed on an "AS IS" BASIS,
2999 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3000 * See the License for the specific language governing permissions and
3001 * limitations under the License.
3002 */class UP{constructor(){this.nu=Promise.resolve(),this.ru=[],this.iu=!1,this.su=[],this.ou=null,this._u=!1,this.au=!1,this.uu=[],this.jo=new GI(this,"async_queue_retry"),this.cu=()=>{const e=HI();e&&Jx("AsyncQueue","Visibility state changed to "+e.visibilityState),this.jo.Ko()};const e=HI();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.cu)}get isShuttingDown(){return this.iu}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.lu(),this.hu(e)}enterRestrictedMode(e){if(!this.iu){this.iu=!0,this.au=e||!1;const t=HI();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.cu)}}enqueue(e){if(this.lu(),this.iu)return new Promise(()=>{});const t=new aO;return this.hu(()=>this.iu&&this.au?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>
3002(this.ru.push(e),this.Pu()))}async Pu(){if(0!==this.ru.length){try{await this.ru[0](),this.ru.shift(),this.jo.reset()}catch(e){if(!jO(e))throw e;Jx("AsyncQueue","Operation failed with retryable error: "+e)}this.ru.length>0&&this.jo.qo(()=>this.Pu())}}hu(e){const t=this.nu.then(()=>(this._u=!0,e().catch(e=>{this.ou=e,this._u=!1;const t=function(e){let t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}
3003/**
3004 * @license
3005 * Copyright 2017 Google LLC
3006 *
3007 * Licensed under the Apache License, Version 2.0 (the "License");
3008 * you may not use this file except in compliance with the License.
3009 * You may obtain a copy of the License at
3010 *
3011 *   http://www.apache.org/licenses/LICENSE-2.0
3012 *
3013 * Unless required by applicable law or agreed to in writing, software
3014 * distributed under the License is distributed on an "AS IS" BASIS,
3015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3016 * See the License for the specific language governing permissions and
3017 * limitations under the License.
3018 */(e);throw Zx("INTERNAL UNHANDLED ERROR: ",t),e}).then(e=>(this._u=!1,e))));return this.nu=t,t}enqueueAfterDelay(e,t,n){this.lu(),this.uu.indexOf(e)>-1&&(t=0);const r=OL.createAndSchedule(this,e,t,n,e=>this.Iu(e));return this.su.push(r),r}lu(){this.ou&&nO()}verifyOperationInProgress(){}async Tu(){let e;do{e=this.nu,await e}while(e!==this.nu)}Eu(e){for(const t of this.su)if(t.timerId===e)return!0;return!1}du(e){return this.Tu().then(()=>{this.su.sort((e,t)=>e.targetTimeMs-t.targetTimeMs);for(const t of this.su)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.Tu()})}Au(e){this.uu.push(e)}Iu(e){const t=this.su.indexOf(e);this.su.splice(t,1)}}class qP extends LP{constructor(e,t,n,r){super(e,t,n,r),this.type="firestore",this._queue=new UP,this._persistenceKey=(null==r?void 0:r.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||VP(this),this._firestoreClient.terminate()}}function FP(e,t){const n="string"==typeof e?e:t||"(default)",r=Sb("object"==typeof e?e:Ib(),"firestore").getImmediate({identifier:n});if(!r._initialized){const e=tv("firestore");e&&function(e,t,n,r={}){var o;const i=(e=NP(e,LP))._getSettings(),s=`${t}:${n}`;if("firestore.googleapis.com"!==i.host&&i.host!==s&&eO("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),e._setSettings(Object.assign(Object.assign({},i),{host:s,ssl:!1})),r.mockUserToken){let t,n;if("string"==typeof r.mockUserToken)t=r.mockUserToken,n=Kx.MOCK_USER;else{t=iv(r.mockUserToken,null===(o=e._app)||void 0===o?void 0:o.options.projectId);const i=r.mockUserToken.sub||r.mockUserToken.user_id;if(!i)throw new sO(iO.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");n=new Kx(i)}e._authCredentials=new uO(new cO(t,n))}}(r,...e)}return r}function BP(e){return e._firestoreClient||VP(e),e._firestoreClient.verifyNotTerminated(),e._firestoreClient}function VP(e){var t,n,r;const o=e._freezeSettings(),i=function(e,t,n,r){return new lA(e,t,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,TP(r.experimentalLongPollingOptions),r.useFetchStreams)}(e._databaseId,(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",e._persistenceKey,o);e._firestoreClient=new bP(e._authCredentials,e._appCheckCredentials,e._queue,i),(null===(n=o.localCache)||void 0===n?void 0:n._offlineComponentProvider)&&(null===(r=o.localCache)||void 0===r?void 0:r._onlineComponentProvider)&&(e._firestoreClient._uninitializedComponentsProvider={_offlineKind:o.localCache.kind,_offline:o.localCache._offlineComponentProvider,_online:o.localCache._onlineComponentProvider})}
3019/**
3020 * @license
3021 * Copyright 2020 Google LLC
3022 *
3023 * Licensed under the Apache License, Version 2.0 (the "License");
3024 * you may not use this file except in compliance with the License.
3025 * You may obtain a copy of the License at
3026 *
3027 *   http://www.apache.org/licenses/LICENSE-2.0
3028 *
3029 * Unless required by applicable law or agreed to in writing, software
3030 * distributed under the License is distributed on an "AS IS" BASIS,
3031 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3032 * See the License for the specific language governing permissions and
3033 * limitations under the License.
3034 */
3035/**
3036 * @license
3037 * Copyright 2022 Google LLC
3038 *
3039 * Licensed under the Apache License, Version 2.0 (the "License");
3040 * you may not use this file except in compliance with the License.
3041 * You may obtain a copy of the License at
3042 *
3043 *   http://www.apache.org/licenses/LICENSE-2.0
3044 *
3045 * Unless required by applicable law or agreed to in writing, software
3046 * distributed under the License is distributed on an "AS IS" BASIS,
3047 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3048 * See the License for the specific language governing permissions and
3049 * limitations under the License.
3050 */class zP{constructor(e="count",t){this._internalFieldPath=t,this.type="AggregateField",this.aggregateType=e}}class $P{constructor(e,t,n){this._userDataWriter=t,this._data=n,this.type="AggregateQuerySnapshot",this.query=e}data(){return this._userDataWriter.convertObjectMap(this._data)}}
3051/**
3052 * @license
3053 * Copyright 2020 Google LLC
3054 *
3055 * Licensed under the Apache License, Version 2.0 (the "License");
3056 * you may not use this file except in compliance with the License.
3057 * You may obtain a copy of the License at
3058 *
3059 *   http://www.apache.org/licenses/LICENSE-2.0
3060 *
3061 * Unless required by applicable law or agreed to in writing, software
3062 * distributed under the License is distributed on an "AS IS" BASIS,
3063 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3064 * See the License for the specific language governing permissions and
3065 * limitations under the License.
3066 */class HP{constructor(e){this._byteString=e}static fromBase64String(e){try{return new HP(tA.fromBase64String(e))}catch(e){throw new sO(iO.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(e){return new HP(tA.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}}
3067/**
3068 * @license
3069 * Copyright 2020 Google LLC
3070 *
3071 * Licensed under the Apache License, Version 2.0 (the "License");
3072 * you may not use this file except in compliance with the License.
3073 * You may obtain a copy of the License at
3074 *
3075 *   http://www.apache.org/licenses/LICENSE-2.0
3076 *
3077 * Unless required by applicable law or agreed to in writing, software
3078 * distributed under the License is distributed on an "AS IS" BASIS,
3079 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3080 * See the License for the specific language governing permissions and
3081 * limitations under the License.
3082 */class WP{constructor(...e){for(let t=0;t<e.length;++t)if(0===e[t].length)throw new sO(iO.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new SO(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}
3083/**
3084 * @license
3085 * Copyright 2020 Google LLC
3086 *
3087 * Licensed under the Apache License, Version 2.0 (the "License");
3088 * you may not use this file except in compliance with the License.
3089 * You may obtain a copy of the License at
3090 *
3091 *   http://www.apache.org/licenses/LICENSE-2.0
3092 *
3093 * Unless required by applicable law or agreed to in writing, software
3094 * distributed under the License is distributed on an "AS IS" BASIS,
3095 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3096 * See the License for the specific language governing permissions and
3097 * limitations under the License.
3098 */class GP{constructor(e){this._methodName=e}}
3099/**
3100 * @license
3101 * Copyright 2017 Google LLC
3102 *
3103 * Licensed under the Apache License, Version 2.0 (the "License");
3104 * you may not use this file except in compliance with the License.
3105 * You may obtain a copy of the License at
3106 *
3107 *   http://www.apache.org/licenses/LICENSE-2.0
3108 *
3109 * Unless required by applicable law or agreed to in writing, software
3110 * distributed under the License is distributed on an "AS IS" BASIS,
3111 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3112 * See the License for the specific language governing permissions and
3113 * limitations under the License.
3114 */class KP{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new sO(iO.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new sO(iO.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return vO(this._lat,e._lat)||vO(this._long,e._long)}}
3115/**
3116 * @license
3117 * Copyright 2017 Google LLC
3118 *
3119 * Licensed under the Apache License, Version 2.0 (the "License");
3120 * you may not use this file except in compliance with the License.
3121 * You may obtain a copy of the License at
3122 *
3123 *   http://www.apache.org/licenses/LICENSE-2.0
3124 *
3125 * Unless required by applicable law or agreed to in writing, software
3126 * distributed under the License is distributed on an "AS IS" BASIS,
3127 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3128 * See the License for the specific language governing permissions and
3129 * limitations under the License.
3130 */const YP=/^__.*__$/;class QP{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return null!==this.fieldMask?new tN(e,this.data,this.fieldMask,t,this.fieldTransforms):new eN(e,this.data,t,this.fieldTransforms)}}class XP{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return new tN(e,this.data,this.fieldMask,t,this.fieldTransforms)}}function JP(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw nO()}}class ZP{constructor(e,t,n,r,o,i){this.settings=e,this.databaseId=t,this.serializer=n,this.ignoreUndefinedProperties=r,void 0===o&&this.Ru(),this.fieldTransforms=o||[],this.fieldMask=i||[]}get path(){return this.settings.path}get Vu(){return this.settings.Vu}mu(e){return new ZP(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}fu(e){var t;const n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.mu({path:n,gu:!1});return r.pu(e),r}yu(e){var t;const n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.mu({path:n,gu:!1});return r.Ru(),r}wu(e){return this.mu({path:void 0,gu:!0})}Su(e){return vR(e,this.settings.methodName,this.settings.bu||!1,this.path,this.settings.Du)}contains(e){return void 0!==this.fieldMask.find(t=>e.isPrefixOf(t))||void 0!==this.fieldTransforms.find(t=>e.isPrefixOf(t.field))}Ru(){if(this.path)for(let e=0;e<this.path.length;e++)this.pu(this.path.get(e))}pu(e){if(0===e.length)throw this.Su("Document fields must not be empty");if(JP(this.Vu)&&YP.test(e))throw this.Su('Document fields cannot begin and end with "__"')}}class eR{constructor(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer=n||WI(e)}Cu(e,t,n,r=!1){return new ZP({Vu:e,methodName:t,Du:n,path:SO.emptyPath(),gu:!1,bu:r},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function tR(e){const t=e._freezeSettings(),n=WI(e._databaseId);return new eR(e._databaseId,!!t.ignoreUndefinedProperties,n)}function nR(e,t,n,r,o,i={}){const s=e.Cu(i.merge||i.mergeFields?2:0,t,n,o);pR("Data must be an object, but it was:",s,r);const a=fR(r,s);let c,l;if(i.merge)c=new ZO(s.fieldMask),l=s.fieldTransforms;else if(i.mergeFields){const e=[];for(const r of i.mergeFields){const o=mR(t,r,n);if(!s.contains(o))throw new sO(iO.INVALID_ARGUMENT,`Field '${o}' is specified in your field mask but missing from your input data.`);bR(e,o)||e.push(o)}c=new ZO(e),l=s.fieldTransforms.filter(e=>c.covers(e.field))}else c=null,l=s.fieldTransforms;return new QP(new xA(a),c,l)}class rR extends GP{_toFieldTransform(e){if(2!==e.Vu)throw 1===e.Vu?e.Su(`${this._methodName}() can only appear at the top level of your update data`):e.Su(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof rR}}function oR(e,t,n){return new ZP({Vu:3,Du:t.settings.Du,methodName:e._methodName,gu:n},t.databaseId,t.serializer,t.ignoreUndefinedProperties)}class iR extends GP{constructor(e,t){super(e),this.vu=t}_toFieldTransform(e){const t=oR(this,e,!0),n=this.vu.map(e=>hR(e,t)),r=new jC(n);return new $C(e.path,r)}isEqual(e){return e instanceof iR&&fv(this.vu,e.vu)}}class sR extends GP{constructor(e,t){super(e),this.vu=t}_toFieldTransform(e){const t=oR(this,e,!0),n=this.vu.map(e=>hR(e,t)),r=new qC(n);return new $C(e.path,r)}isEqual(e){return e instanceof sR&&fv(this.vu,e.vu)}}class aR extends GP{constructor(e,t){super(e),this.Fu=t}_toFieldTransform(e){const t=new BC(e.serializer,IC(e.serializer,this.Fu));return new $C(e.path,t)}isEqual(e){return e instanceof aR&&this.Fu===e.Fu}}function cR(e,t,n,r){const o=e.Cu(1,t,n);pR("Data must be an object, but it was:",o,r);const i=[],s=xA.empty();WO(r,(e,r)=>{const a=yR(t,e,n);r=yv(r);const c=o.yu(a);if(r instanceof rR)i.push(a);else{const e=hR(r,c);null!=e&&(i.push(a),s.set(a,e))}});const a=new ZO(i);return new XP(s,a,o.fieldTransforms)}function lR(e,t,n,r,o,i){const s=e.Cu(1,t,n),a=[mR(t,r,n)],c=[o];if(i.length%2!=0)throw new sO(iO.INVALID_ARGUMENT,`Function ${t}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let f=0;f<i.length;f+=2)a.push(mR(t,i[f])),c.push(i[f+1]);const l=[],u=xA.empty();for(let f=a.length-1;f>=0;--f)if(!bR(l,a[f])){const e=a[f];let t=c[f];t=yv(t);const n=s.yu(e);if(t instanceof rR)l.push(e);else{const r=hR(t,n);null!=r&&(l.push(e),u.set(e,r))}}const h=new ZO(l);return new XP(u,h,s.fieldTransforms)}function uR(e,t,n,r=!1){return hR(n,e.Cu(r?4:3,t))}function hR(e,t){if(dR(e=yv(e)))return pR("Unsupported field value:",t,e),fR(e,t);if(e instanceof GP)return function(e,t){if(!JP(t.Vu))throw t.Su(`${e._methodName}
3130() can only be used with update() and set()`);if(!t.path)throw t.Su(`${e._methodName}() is not currently supported inside arrays`);const n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.gu&&4!==t.Vu)throw t.Su("Nested arrays are not supported");return function(e,t){const n=[];let r=0;for(const o of e){let e=hR(o,t.wu(r));null==e&&(e={nullValue:"NULL_VALUE"}),n.push(e),r++}return{arrayValue:{values:n}}}(e,t)}return function(e,t){if(null===(e=yv(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return IC(t.serializer,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){const n=_O.fromDate(e);return{timestampValue:RN(t.serializer,n)}}if(e instanceof _O){const n=new _O(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:RN(t.serializer,n)}}if(e instanceof KP)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof HP)return{bytesValue:DN(t.serializer,e._byteString)};if(e instanceof RP){const n=t.databaseId,r=e.firestore._databaseId;if(!r.isEqual(n))throw t.Su(`Document reference is for database ${r.projectId}/${r.database} but should be for database ${n.projectId}/${n.database}`);return{referenceValue:UN(e.firestore._databaseId||t.databaseId,e._key.path)}}throw t.Su(`Unsupported field value: ${CP(e)}`)}(e,t)}function fR(e,t){const n={};return GO(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):WO(e,(e,r)=>{const o=hR(r,t.fu(e));null!=o&&(n[e]=o)}),{mapValue:{fields:n}}}function dR(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof _O||e instanceof KP||e instanceof HP||e instanceof RP||e instanceof GP)}function pR(e,t,n){if(!dR(n)||!function(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}(n)){const r=CP(n);throw"an object"===r?t.Su(e+" a custom object"):t.Su(e+" "+r)}}function mR(e,t,n){if((t=yv(t))instanceof WP)return t._internalPath;if("string"==typeof t)return yR(e,t);throw vR("Field path arguments must be of type string or ",e,!1,void 0,n)}const gR=new RegExp("[~\\*/\\[\\]]");function yR(e,t,n){if(t.search(gR)>=0)throw vR(`Invalid field path (${t}). Paths must not contain '~', '*', '/', '[', or ']'`,e,!1,void 0,n);try{return new WP(...t.split("."))._internalPath}catch(YB){throw vR(`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,e,!1,void 0,n)}}function vR(e,t,n,r,o){const i=r&&!r.isEmpty(),s=void 0!==o;let a=`Function ${t}() called with invalid data`;n&&(a+=" (via `toFirestore()`)"),a+=". ";let c="";return(i||s)&&(c+=" (found",i&&(c+=` in field ${r}`),s&&(c+=` in document ${o}`),c+=")"),new sO(iO.INVALID_ARGUMENT,a+e+c)}function bR(e,t){return e.some(e=>e.isEqual(t))}
3131/**
3132 * @license
3133 * Copyright 2020 Google LLC
3134 *
3135 * Licensed under the Apache License, Version 2.0 (the "License");
3136 * you may not use this file except in compliance with the License.
3137 * You may obtain a copy of the License at
3138 *
3139 *   http://www.apache.org/licenses/LICENSE-2.0
3140 *
3141 * Unless required by applicable law or agreed to in writing, software
3142 * distributed under the License is distributed on an "AS IS" BASIS,
3143 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3144 * See the License for the specific language governing permissions and
3145 * limitations under the License.
3146 */class _R{constructor(e,t,n,r,o){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=r,this._converter=o}get id(){return this._key.path.lastSegment()}get ref(){return new RP(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new wR(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const t=this._document.data.field(kR("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class wR extends _R{data(){return super.data()}}function kR(e,t){return"string"==typeof t?yR(e,t):t instanceof WP?t._internalPath:t._delegate._internalPath}
3147/**
3148 * @license
3149 * Copyright 2020 Google LLC
3150 *
3151 * Licensed under the Apache License, Version 2.0 (the "License");
3152 * you may not use this file except in compliance with the License.
3153 * You may obtain a copy of the License at
3154 *
3155 *   http://www.apache.org/licenses/LICENSE-2.0
3156 *
3157 * Unless required by applicable law or agreed to in writing, software
3158 * distributed under the License is distributed on an "AS IS" BASIS,
3159 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3160 * See the License for the specific language governing permissions and
3161 * limitations under the License.
3162 */class ER{}class TR extends ER{}function SR(e,t,...n){let r=[];t instanceof ER&&r.push(t),r=r.concat(n),function(e){const t=e.filter(e=>e instanceof AR).length,n=e.filter(e=>e instanceof xR).length;if(t>1||t>0&&n>0)throw new sO(iO.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}
3163/**
3164 * @license
3165 * Copyright 2020 Google LLC
3166 *
3167 * Licensed under the Apache License, Version 2.0 (the "License");
3168 * you may not use this file except in compliance with the License.
3169 * You may obtain a copy of the License at
3170 *
3171 *   http://www.apache.org/licenses/LICENSE-2.0
3172 *
3173 * Unless required by applicable law or agreed to in writing, software
3174 * distributed under the License is distributed on an "AS IS" BASIS,
3175 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3176 * See the License for the specific language governing permissions and
3177 * limitations under the License.
3178 */(r);for(const o of r)e=o._apply(e);return e}class xR extends TR{constructor(e,t,n){super(),this._field=e,this._op=t,this._value=n,this.type="where"}static _create(e,t,n){return new xR(e,t,n)}_apply(e){const t=this._parse(e);return jR(e._query,t),new PP(e.firestore,e.converter,cC(e._query,t))}_parse(e){const t=tR(e.firestore),n=function(e,t,n,r,o,i,s){let a;if(o.isKeyField()){if("array-contains"===i||"array-contains-any"===i)throw new sO(iO.INVALID_ARGUMENT,`Invalid Query. You can't perform '${i}' queries on documentId().`);if("in"===i||"not-in"===i){MR(s,i);const t=[];for(const n of s)t.push(DR(r,e,n));a={arrayValue:{values:t}}}else a=DR(r,e,s)}else"in"!==i&&"not-in"!==i&&"array-contains-any"!==i||MR(s,i),a=uR(n,t,s,"in"===i||"not-in"===i);return DA.create(o,i,a)}(e._query,"where",t,e.firestore._databaseId,this._field,this._op,this._value);return n}}function OR(e,t,n){const r=t,o=kR("where",e);return xR._create(o,r,n)}
3178class AR extends ER{constructor(e,t){super(),this.type=e,this._queryConstraints=t}static _create(e,t){return new AR(e,t)}_parse(e){const t=this._queryConstraints.map(t=>t._parse(e)).filter(e=>e.getFilters().length>0);return 1===t.length?t[0]:MA.create(t,this._getOperator())}_apply(e){const t=this._parse(e);return 0===t.getFilters().length?e:(function(e,t){let n=e;const r=t.getFlattenedFilters();for(const o of r)jR(n,o),n=cC(n,o)}(e._query,t),new PP(e.firestore,e.converter,cC(e._query,t)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}function CR(...e){return e.forEach(e=>function(e,t){if(!(t instanceof xR||t instanceof AR))throw new sO(iO.INVALID_ARGUMENT,`Function ${e}() requires AppliableConstraints created with a call to 'where(...)', 'or(...)', or 'and(...)'.`)}("and",e)),AR._create("and",e)}class NR extends TR{constructor(e,t){super(),this._field=e,this._direction=t,this.type="orderBy"}static _create(e,t){return new NR(e,t)}_apply(e){const t=function(e,t,n){if(null!==e.startAt)throw new sO(iO.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new sO(iO.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new LA(t,n)}(e._query,this._field,this._direction);return new PP(e.firestore,e.converter,function(e,t){const n=e.explicitOrderBy.concat([t]);return new tC(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(e._query,t))}}function IR(e,t="asc"){const n=t,r=kR("orderBy",e);return NR._create(r,n)}class LR extends TR{constructor(e,t,n){super(),this.type=e,this._limit=t,this._limitType=n}static _create(e,t,n){return new LR(e,t,n)}_apply(e){return new PP(e.firestore,e.converter,lC(e._query,this._limit,this._limitType))}}function PR(e){return function(e,t){if(t<=0)throw new sO(iO.INVALID_ARGUMENT,`Function ${e}() requires a positive number, but it was: ${t}.`)}("limit",e),LR._create("limit",e,"F")}class RR extends TR{constructor(e,t,n){super(),this.type=e,this._docOrFields=t,this._inclusive=n}static _create(e,t,n){return new RR(e,t,n)}_apply(e){const t=function(e,t,n,r){if(n[0]=yv(n[0]),n[0]instanceof _R)return function(e,t,n,r,o){if(!r)throw new sO(iO.NOT_FOUND,`Can't use a DocumentSnapshot that doesn't exist for ${n}().`);const i=[];for(const s of iC(e))if(s.field.isKeyField())i.push(bA(t,r.key));else{const e=r.data.field(s.field);if(sA(e))throw new sO(iO.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+s.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===e){const e=s.field.canonicalString();throw new sO(iO.INVALID_ARGUMENT,`Invalid query. You are trying to start or end a query using a document for which the field '${e}' (used as the orderBy) does not exist.`)}i.push(e)}return new CA(i,o)}(e._query,e.firestore._databaseId,t,n[0]._document,r);{const o=tR(e.firestore);return function(e,t,n,r,o,i){const s=e.explicitOrderBy;if(o.length>s.length)throw new sO(iO.INVALID_ARGUMENT,`Too many arguments provided to ${r}(). The number of arguments must be less than or equal to the number of orderBy() clauses`);const a=[];for(let c=0;c<o.length;c++){const i=o[c];if(s[c].field.isKeyField()){if("string"!=typeof i)throw new sO(iO.INVALID_ARGUMENT,`Invalid query. Expected a string for document ID in ${r}(), but got a ${typeof i}`);if(!oC(e)&&-1!==i.indexOf("/"))throw new sO(iO.INVALID_ARGUMENT,`Invalid query. When querying a collection and ordering by documentId(), the value passed to ${r}() must be a plain document ID, but '${i}' contains a slash.`);const n=e.path.child(EO.fromString(i));if(!xO.isDocumentKey(n))throw new sO(iO.INVALID_ARGUMENT,`Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${r}() must result in a valid document path, but '${n}' is not because it contains an odd number of segments.`);const o=new xO(n);a.push(bA(t,o))}else{const e=uR(n,r,i);a.push(e)}}return new CA(a,i)}(e._query,e.firestore._databaseId,o,t,n,r)}}(e,this.type,this._docOrFields,this._inclusive);return new PP(e.firestore,e.converter,function(e,t){return new tC(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,t,e.endAt)}(e._query,t))}}
3178function DR(e,t,n){if("string"==typeof(n=yv(n))){if(""===n)throw new sO(iO.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!oC(t)&&-1!==n.indexOf("/"))throw new sO(iO.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${n}' contains a '/' character.`);const r=t.path.child(EO.fromString(n));if(!xO.isDocumentKey(r))throw new sO(iO.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${r}' is not because it has an odd number of segments (${r.length}).`);return bA(e,new xO(r))}if(n instanceof RP)return bA(e,n._key);throw new sO(iO.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${CP(n)}.`)}function MR(e,t){if(!Array.isArray(e)||0===e.length)throw new sO(iO.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${t.toString()}' filters.`)}function jR(e,t){const n=function(e,t){for(const n of e)for(const e of n.getFlattenedFilters())if(t.indexOf(e.op)>=0)return e.op;return null}(e.filters,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==n)throw n===t.op?new sO(iO.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${t.op.toString()}' filter.`):new sO(iO.INVALID_ARGUMENT,`Invalid query. You cannot use '${t.op.toString()}' filters with '${n.toString()}' filters.`)}class UR{convertValue(e,t="none"){switch(fA(e)){case 0:return null;case 1:return e.booleanValue;case 2:return oA(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(iA(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 10:return this.convertObject(e.mapValue,t);default:throw nO()}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e,t="none"){const n={};return WO(e,(e,r)=>{n[e]=this.convertValue(r,t)}),n}convertGeoPoint(e){return new KP(oA(e.latitude),oA(e.longitude))}convertArray(e,t){return(e.values||[]).map(e=>this.convertValue(e,t))}convertServerTimestamp(e,t){switch(t){case"previous":const n=aA(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(cA(e));default:return null}}convertTimestamp(e){const t=rA(e);return new _O(t.seconds,t.nanos)}convertDocumentKey(e,t){const n=EO.fromString(e);rO(oI(n));const r=new uA(n.get(1),n.get(3)),o=new xO(n.popFirst(5));return r.isEqual(t)||Zx(`Document ${o} contains a document reference within a different database (${r.projectId}/${r.database}) which is not supported. It will be treated as a reference in the current database (${t.projectId}/${t.database}) instead.`),o}}
3179/**
3180 * @license
3181 * Copyright 2020 Google LLC
3182 *
3183 * Licensed under the Apache License, Version 2.0 (the "License");
3184 * you may not use this file except in compliance with the License.
3185 * You may obtain a copy of the License at
3186 *
3187 *   http://www.apache.org/licenses/LICENSE-2.0
3188 *
3189 * Unless required by applicable law or agreed to in writing, software
3190 * distributed under the License is distributed on an "AS IS" BASIS,
3191 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3192 * See the License for the specific language governing permissions and
3193 * limitations under the License.
3194 */function qR(e,t,n){let r;return r=e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t,r}
3195/**
3196 * @license
3197 * Copyright 2020 Google LLC
3198 *
3199 * Licensed under the Apache License, Version 2.0 (the "License");
3200 * you may not use this file except in compliance with the License.
3201 * You may obtain a copy of the License at
3202 *
3203 *   http://www.apache.org/licenses/LICENSE-2.0
3204 *
3205 * Unless required by applicable law or agreed to in writing, softw
3205are
3206 * distributed under the License is distributed on an "AS IS" BASIS,
3207 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3208 * See the License for the specific language governing permissions and
3209 * limitations under the License.
3210 */
3211class FR{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class BR extends _R{constructor(e,t,n,r,o,i){super(e,t,n,r,i),this._firestore=e,this._firestoreImpl=e,this.metadata=o}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const t=new VR(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){const n=this._document.data.field(kR("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}}class VR extends BR{data(e={}){return super.data(e)}}class zR{constructor(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new FR(r.hasPendingWrites,r.fromCache),this.query=n}get docs(){const e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(n=>{e.call(t,new VR(this._firestore,this._userDataWriter,n.key,n,new FR(this._snapshot.mutatedKeys.has(n.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new sO(iO.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){let t=0;return e._snapshot.docChanges.map(n=>{const r=new VR(e._firestore,e._userDataWriter,n.doc.key,n.doc,new FR(e._snapshot.mutatedKeys.has(n.doc.key),e._snapshot.fromCache),e.query.converter);return n.doc,{type:"added",doc:r,oldIndex:-1,newIndex:t++}})}{let n=e._snapshot.oldDocs;return e._snapshot.docChanges.filter(e=>t||3!==e.type).map(t=>{const r=new VR(e._firestore,e._userDataWriter,t.doc.key,t.doc,new FR(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter);let o=-1,i=-1;return 0!==t.type&&(o=n.indexOf(t.doc.key),n=n.delete(t.doc.key)),1!==t.type&&(n=n.add(t.doc),i=n.indexOf(t.doc.key)),{type:$R(t.type),doc:r,oldIndex:o,newIndex:i}})}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}}function $R(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return nO()}}
3212/**
3213 * @license
3214 * Copyright 2020 Google LLC
3215 *
3216 * Licensed under the Apache License, Version 2.0 (the "License");
3217 * you may not use this file except in compliance with the License.
3218 * You may obtain a copy of the License at
3219 *
3220 *   http://www.apache.org/licenses/LICENSE-2.0
3221 *
3222 * Unless required by applicable law or agreed to in writing, software
3223 * distributed under the License is distributed on an "AS IS" BASIS,
3224 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3225 * See the License for the specific language governing permissions and
3226 * limitations under the License.
3227 */function HR(e){e=NP(e,RP);const t=NP(e.firestore,qP);return function(e,t,n={}){const r=new aO;return e.asyncQueue.enqueueAndForget(async()=>function(e,t,n,r,o){const i=new vP({next:i=>{t.enqueueAndForget(()=>DL(e,s));const a=i.docs.has(n);!a&&i.fromCache?o.reject(new sO(iO.UNAVAILABLE,"Failed to get document because the client is offline.")):a&&i.fromCache&&r&&"server"===r.source?o.reject(new sO(iO.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):o.resolve(i)},error:e=>o.reject(e)}),s=new BL(nC(n.path),i,{includeMetadataChanges:!0,ta:!0});return RL(e,s)}(await EP(e),e.asyncQueue,t,n,r)),r.promise}(BP(t),e._key).then(n=>function(e,t,n){const r=n.docs.get(t._key),o=new WR(e);return new BR(e,o,t._key,r,new FR(n.hasPendingWrites,n.fromCache),t.converter)}
3228/**
3229 * @license
3230 * Copyright 2022 Google LLC
3231 *
3232 * Licensed under the Apache License, Version 2.0 (the "License");
3233 * you may not use this file except in compliance with the License.
3234 * You may obtain a copy of the License at
3235 *
3236 *   http://www.apache.org/licenses/LICENSE-2.0
3237 *
3238 * Unless required by applicable law or agreed to in writing, software
3239 * distributed under the License is distributed on an "AS IS" BASIS,
3240 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3241 * See the License for the specific language governing permissions and
3242 * limitations under the License.
3243 */(t,e,n))}class WR extends UR{constructor(e){super(),this.firestore=e}convertBytes(e){return new HP(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return new RP(this.firestore,null,t)}}function GR(e){e=NP(e,PP);const t=NP(e.firestore,qP),n=BP(t),r=new WR(t);return function(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new sO(iO.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(e._query),function(e,t,n={}){const r=new aO;return e.asyncQueue.enqueueAndForget(async()=>function(e,t,n,r,o){const i=new vP({next:n=>{t.enqueueAndForget(()=>DL(e,s)),n.fromCache&&"server"===r.source?o.reject(new sO(iO.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):o.resolve(n)},error:e=>o.reject(e)}),s=new BL(n,i,{includeMetadataChanges:!0,ta:!0});return RL(e,s)}(await EP(e),e.asyncQueue,t,n,r)),r.promise}(n,e._query).then(n=>new zR(t,r,e,n))}function KR(e,t,n){e=NP(e,RP);const r=NP(e.firestore,qP),o=qR(e.converter,t,n);return JR(r,[nR(tR(r),"setDoc",e._key,o,null!==e.converter,n).toMutation(e._key,WC.none())])}function YR(e,t,n,...r){e=NP(e,RP);const o=NP(e.firestore,qP),i=tR(o);let s;return s="string"==typeof(t=yv(t))||t instanceof WP?lR(i,"updateDoc",e._key,t,n,r):cR(i,"updateDoc",e._key,t),JR(o,[s.toMutation(e._key,WC.exists(!0))])}function QR(e){return JR(NP(e.firestore,qP),[new iN(e._key,WC.none())])}function XR(e,t){const n=NP(e.firestore,qP),r=jP(e),o=qR(e.converter,t);return JR(n,[nR(tR(e.firestore),"addDoc",r._key,o,null!==e.converter,{}).toMutation(r._key,WC.exists(!1))]).then(()=>r)}function JR(e,t){return function(e,t){const n=new aO;return e.asyncQueue.enqueueAndForget(async()=>ZL(await function(e){return kP(e).then(e=>e.syncEngine)}(e),t,n)),n.promise}(BP(e),t)}function ZR(e){return function(e,t){const n=NP(e.firestore,qP),r=BP(n),o=function(e,t){const n=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.push(t(e[r],r,e));return n}(t,(e,t)=>new uN(t,e.aggregateType,e._internalFieldPath));return function(e,t,n){const r=new aO;return e.asyncQueue.enqueueAndForget(async()=>{try{const o=await function(e){return kP(e).then(e=>e.datastore)}(e);r.resolve(async function(e,t,n){var r;const o=oO(e),{request:i,V_:s,parent:a}=function(e,t,n){const{ut:r,parent:o}=KN(e,t),i={},s=[];let a=0;return n.forEach(e=>{const t="aggregate_"+a++;i[t]=e.alias,"count"===e.aggregateType?s.push({alias:t,count:{}}):"avg"===e.aggregateType?s.push({alias:t,avg:{field:eI(e.fieldPath)}}):"sum"===e.aggregateType&&s.push({alias:t,sum:{field:eI(e.fieldPath)}})}),{request:{structuredAggregationQuery:{aggregations:s,structuredQuery:r.structuredQuery},parent:r.parent},V_:i,parent:o}}(o.serializer,function(e){const t=oO(e);return t.Pe||(t.Pe=aC(t,e.explicitOrderBy)),t.Pe}(t),n);o.connection.wo||delete i.parent;const c=(await o.vo("RunAggregationQuery",o.serializer.databaseId,a,i,1)).filter(e=>!!e.result);rO(1===c.length);const l=null===(r=c[0].result)||void 0===r?void 0:r.aggregateFields;return Object.keys(l).reduce((e,t)=>(e[s[t]]=l[t],e),{})}(o,t,n))}catch(e){r.reject(e)}}),r.promise}(r,e._query,o).then(t=>function(e,t,n){const r=new WR(e);return new $P(t,r,n)}
3244/**
3245 * @license
3246 * Copyright 2023 Google LLC
3247 *
3248 * Licensed under the Apache License, Version 2.0 (the "License");
3249 * you may not use this file except in compliance with the License.
3250 * You may obtain a copy of the License at
3251 *
3252 *   http://www.apache.org/licenses/LICENSE-2.0
3253 *
3254 * Unless required by applicable law or agreed to in writing, softw
3254are
3255 * distributed under the License is distributed on an "AS IS" BASIS,
3256 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3257 * See the License for the specific language governing permissions and
3258 * limitations under the License.
3259 */(n,e,t))}
3260/**
3261 * @license
3262 * Copyright 2020 Google LLC
3263 *
3264 * Licensed under the Apache License, Version 2.0 (the "License");
3265 * you may not use this file except in compliance with the License.
3266 * You may obtain a copy of the License at
3267 *
3268 *   http://www.apache.org/licenses/LICENSE-2.0
3269 *
3270 * Unless required by applicable law or agreed to in writing, software
3271 * distributed under the License is distributed on an "AS IS" BASIS,
3272 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3273 * See the License for the specific language governing permissions and
3274 * limitations under the License.
3275 */(e,{count:new zP("count")})}class eD{constructor(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=tR(e)}set(e,t,n){this._verifyNotCommitted();const r=tD(e,this._firestore),o=qR(r.converter,t,n),i=nR(this._dataReader,"WriteBatch.set",r._key,o,null!==r.converter,n);return this._mutations.push(i.toMutation(r._key,WC.none())),this}update(e,t,n,...r){this._verifyNotCommitted();const o=tD(e,this._firestore);let i;return i="string"==typeof(t=yv(t))||t instanceof WP?lR(this._dataReader,"WriteBatch.update",o._key,t,n,r):cR(this._dataReader,"WriteBatch.update",o._key,t),this._mutations.push(i.toMutation(o._key,WC.exists(!0))),this}delete(e){this._verifyNotCommitted();const t=tD(e,this._firestore);return this._mutations=this._mutations.concat(new iN(t._key,WC.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new sO(iO.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function tD(e,t){if((e=yv(e)).firestore!==t)throw new sO(iO.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}function nD(...e){return new iR("arrayUnion",e)}function rD(...e){return new sR("arrayRemove",e)}function oD(e){return new aR("increment",e)}
3276/**
3277 * @license
3278 * Copyright 2020 Google LLC
3279 *
3280 * Licensed under the Apache License, Version 2.0 (the "License");
3281 * you may not use this file except in compliance with the License.
3282 * You may obtain a copy of the License at
3283 *
3284 *   http://www.apache.org/licenses/LICENSE-2.0
3285 *
3286 * Unless required by applicable law or agreed to in writing, software
3287 * distributed under the License is distributed on an "AS IS" BASIS,
3288 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3289 * See the License for the specific language governing permissions and
3290 * limitations under the License.
3291 */function iD(e){return BP(e=NP(e,qP)),new eD(e,t=>JR(e,t))}!function(e,t=!0){!function(e){Yx=e}(Cb),Tb(new vv("firestore",(e,{instanceIdentifier:n,options:r})=>{const o=e.getProvider("app").getImmediate(),i=new qP(new hO(e.getProvider("auth-internal")),new mO(e.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new sO(iO.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new uA(e.options.projectId,t)}(o,n),o);return r=Object.assign({useFetchStreams:t},r),i._setSettings(r),i},"PUBLIC").setMultipleInstances(!0)),Pb(Gx,"4.5.1",e),Pb(Gx,"4.5.1","esm2017")}();
3292/**
3293 * @license
3294 * Copyright 2017 Google LLC
3295 *
3296 * Licensed under the Apache License, Version 2.0 (the "License");
3297 * you may not use this file except in compliance with the License.
3298 * You may obtain a copy of the License at
3299 *
3300 *   http://www.apache.org/licenses/LICENSE-2.0
3301 *
3302 * Unless required by applicable law or agreed to in writing, software
3303 * distributed under the License is distributed on an "AS IS" BASIS,
3304 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3305 * See the License for the specific language governing permissions and
3306 * limitations under the License.
3307 */
3308const sD="firebasestorage.googleapis.com",aD="storageBucket";
3309/**
3310 * @license
3311 * Copyright 2017 Google LLC
3312 *
3313 * Licensed under the Apache License, Version 2.0 (the "License");
3314 * you may not use this file except in compliance with the License.
3315 * You may obtain a copy of the License at
3316 *
3317 *   http://www.apache.org/licenses/LICENSE-2.0
3318 *
3319 * Unless required by applicable law or agreed to in writing, software
3320 * distributed under the License is distributed on an "AS IS" BASIS,
3321 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3322 * See the License for the specific language governing permissions and
3323 * limitations under the License.
3324 */
3325class cD extends lv{constructor(e,t,n=0){super(hD(e),`Firebase Storage: ${t} (${hD(e)})`),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,cD.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return hD(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage}\n${this.customData.serverResponse}`:this.message=this._baseMessage}}var lD,uD;function hD(e){return"storage/"+e}function fD(){return new cD(lD.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function dD(){return new cD(lD.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function pD(){return new cD(lD.CANCELED,"User canceled the upload/download.")}function mD(){return new cD(lD.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function gD(e){return new cD(lD.INVALID_ARGUMENT,e)}function yD(){return new cD(lD.APP_DELETED,"The Firebase app was deleted.")}function vD(e,t){return new cD(lD.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function bD(e){throw new cD(lD.INTERNAL_ERROR,"Internal error: "+e)}
3326/**
3327 * @license
3328 * Copyright 2017 Google LLC
3329 *
3330 * Licensed under the Apache License, Version 2.0 (the "License");
3331 * you may not use this file except in compliance with the License.
3332 * You may obtain a copy of the License at
3333 *
3334 *   http://www.apache.org/licenses/LICENSE-2.0
3335 *
3336 * Unless required by applicable law or agreed to in writing, software
3337 * distributed under the License is distributed on an "AS IS" BASIS,
3338 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3339 * See the License for the specific language governing permissions and
3340 * limitations under the License.
3341 */!function(e){e.UNKNOWN="unknown",e.OBJECT_NOT_FOUND="object-not-found",e.BUCKET_NOT_FOUND="bucket-not-found",e.PROJECT_NOT_FOUND="project-not-found",e.QUOTA_EXCEEDED="quota-exceeded",e.UNAUTHENTICATED="unauthenticated",e.UNAUTHORIZED="unauthorized",e.UNAUTHORIZED_APP="unauthorized-app",e.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",e.INVALID_CHECKSUM="invalid-checksum",e.CANCELED="canceled",e.INVALID_EVENT_NAME="invalid-event-name",e.INVALID_URL="invalid-url",e.INVALID_DEFAULT_BUCKET="invalid-default-bucket",e.NO_DEFAULT_BUCKET="no-default-bucket",e.CANNOT_SLICE_BLOB="cannot-slice-blob",e.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",e.NO_DOWNLOAD_URL="no-download-url",e.INVALID_ARGUMENT="invalid-argument",e.INVALID_ARGUMENT_COUNT="invalid-argument-count",e.APP_DELETED="app-deleted",e.INVALID_ROOT_OPERATION="invalid-root-operation",e.INVALID_FORMAT="invalid-format",e.INTERNAL_ERROR="internal-error",e.UNSUPPORTED_ENVIRONMENT="unsupported-environment"}(lD||(lD={}));class _D{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let n;try{n=_D.makeFromUrl(e,t)}catch(o){return new _D(e,"")}if(""===n.path)return n;throw r=e,new cD(lD.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+r+"'.");var r}static makeFromUrl(e,t){let n=null;const r="([A-Za-z0-9.\\-_]+)";const o=new RegExp("^gs://"+r+"(/(.*))?$","i");function i(e){e.path_=decodeURIComponent(e.path)}const s=t.replace(/[.]/g,"\\."),a=[{regex:o,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp(`^https?://${s}/v[A-Za-z0-9_]+/b/${r}/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:i},{regex:new RegExp(`^https?://${t===sD?"(?:storage.googleapis.com|storage.cloud.google.com)":t}/${r}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:i}];for(let c=0;c<a.length;c++){const t=a[c],r=t.regex.exec(e);if(r){const e=r[t.indices.bucket];let o=r[t.indices.path];o||(o=""),n=new _D(e,o),t.postModify(n);break}}
vendor: 4,375 bytes, lines 3341-3422
3341if(null==n)throw function(e){return new cD(lD.INVALID_URL,"Invalid URL '"+e+"'.")}(e);return n}}class wD{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}
3342/**
3343 * @license
3344 * Copyright 2017 Google LLC
3345 *
3346 * Licensed under the Apache License, Version 2.0 (the "License");
3347 * you may not use this file except in compliance with the License.
3348 * You may obtain a copy of the License at
3349 *
3350 *   http://www.apache.org/licenses/LICENSE-2.0
3351 *
3352 * Unless required by applicable law or agreed to in writing, software
3353 * distributed under the License is distributed on an "AS IS" BASIS,
3354 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3355 * See the License for the specific language governing permissions and
3356 * limitations under the License.
3357 */function kD(e){return"string"==typeof e||e instanceof String}function ED(e){return TD()&&e instanceof Blob}function TD(){return"undefined"!=typeof Blob}function SD(e,t,n,r){if(r<t)throw gD(`Invalid value for '${e}'. Expected ${t} or greater.`);if(r>n)throw gD(`Invalid value for '${e}'. Expected ${n} or less.`)}
3358/**
3359 * @license
3360 * Copyright 2017 Google LLC
3361 *
3362 * Licensed under the Apache License, Version 2.0 (the "License");
3363 * you may not use this file except in compliance with the License.
3364 * You may obtain a copy of the License at
3365 *
3366 *   http://www.apache.org/licenses/LICENSE-2.0
3367 *
3368 * Unless required by applicable law or agreed to in writing, software
3369 * distributed under the License is distributed on an "AS IS" BASIS,
3370 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3371 * See the License for the specific language governing permissions and
3372 * limitations under the License.
3373 */function xD(e,t,n){let r=t;return null==n&&(r=`https://${t}`),`${n}://${r}/v0${e}`}function OD(e){const t=encodeURIComponent;let n="?";for(const r in e)if(e.hasOwnProperty(r)){n=n+(t(r)+"="+t(e[r]))+"&"}return n=n.slice(0,-1),n}
3374/**
3375 * @license
3376 * Copyright 2017 Google LLC
3377 *
3378 * Licensed under the Apache License, Version 2.0 (the "License");
3379 * you may not use this file except in compliance with the License.
3380 * You may obtain a copy of the License at
3381 *
3382 *   http://www.apache.org/licenses/LICENSE-2.0
3383 *
3384 * Unless required by applicable law or agreed to in writing, software
3385 * distributed under the License is distributed on an "AS IS" BASIS,
3386 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3387 * See the License for the specific language governing permissions and
3388 * limitations under the License.
3389 */
3390/**
3391 * @license
3392 * Copyright 2022 Google LLC
3393 *
3394 * Licensed under the Apache License, Version 2.0 (the "License");
3395 * you may not use this file except in compliance with the License.
3396 * You may obtain a copy of the License at
3397 *
3398 *   http://www.apache.org/licenses/LICENSE-2.0
3399 *
3400 * Unless required by applicable law or agreed to in writing, software
3401 * distributed under the License is distributed on an "AS IS" BASIS,
3402 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3403 * See the License for the specific language governing permissions and
3404 * limitations under the License.
3405 */
3406function AD(e,t){const n=e>=500&&e<600,r=-1!==[408,429].indexOf(e),o=-1!==t.indexOf(e);return n||r||o}
3407/**
3408 * @license
3409 * Copyright 2017 Google LLC
3410 *
3411 * Licensed under the Apache License, Version 2.0 (the "License");
3412 * you may not use this file except in compliance with the License.
3413 * You may obtain a copy of the License at
3414 *
3415 *   http://www.apache.org/licenses/LICENSE-2.0
3416 *
3417 * Unless required by applicable law or agreed to in writing, software
3418 * distributed under the License is distributed on an "AS IS" BASIS,
3419 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3420 * See the License for the specific language governing permissions and
3421 * limitations under the License.
3422 */!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(uD||(uD={}));class CD{constructor(e,t,n,r,o,i,s,a,c,l,u,h=!0){this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=o,this.additionalRetryCodes_=i,this.callback_=s,this.errorCallback_=a,this.timeout_=c,this.progressCallback_=l,this.connectionFactory_=u,this.retry=h,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((e,t)=>
3422{this.resolve_=e,this.reject_=t,this.start_()})}start_(){const e=(e,t)=>{if(t)return void e(!1,new ND(!1,null,!0));const n=this.connectionFactory_();this.pendingConnection_=n;const r=e=>{const t=e.loaded,n=e.lengthComputable?e.total:-1;null!==this.progressCallback_&&this.progressCallback_(t,n)};null!==this.progressCallback_&&n.addUploadProgressListener(r),n.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&n.removeUploadProgressListener(r),this.pendingConnection_=null;const t=n.getErrorCode()===uD.NO_ERROR,o=n.getStatus();if(!t||AD(o,this.additionalRetryCodes_)&&this.retry){const t=n.getErrorCode()===uD.ABORT;return void e(!1,new ND(!1,null,t))}const i=-1!==this.successCodes_.indexOf(o);e(!0,new ND(i,n))})},t=(e,t)=>{const n=this.resolve_,r=this.reject_,o=t.connection;if(t.wasSuccessCode)try{const e=this.callback_(o,o.getResponse());!
3423/**
3424 * @license
3425 * Copyright 2017 Google LLC
3426 *
3427 * Licensed under the Apache License, Version 2.0 (the "License");
3428 * you may not use this file except in compliance with the License.
3429 * You may obtain a copy of the License at
3430 *
3431 *   http://www.apache.org/licenses/LICENSE-2.0
3432 *
3433 * Unless required by applicable law or agreed to in writing, software
3434 * distributed under the License is distributed on an "AS IS" BASIS,
3435 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3436 * See the License for the specific language governing permissions and
3437 * limitations under the License.
3438 */
3439function(e){return void 0!==e}(e)?n():n(e)}catch(i){r(i)}else if(null!==o){const e=fD();e.serverResponse=o.getErrorText(),this.errorCallback_?r(this.errorCallback_(o,e)):r(e)}else if(t.canceled){r(this.appDelete_?yD():pD())}else{r(dD())}};this.canceled_?t(0,new ND(!1,null,!0)):this.backoffId_=function(e,t,n){let r=1,o=null,i=null,s=!1,a=0;function c(){return 2===a}let l=!1;function u(...e){l||(l=!0,t.apply(null,e))}function h(t){o=setTimeout(()=>{o=null,e(d,c())},t)}function f(){i&&clearTimeout(i)}function d(e,...t){if(l)return void f();if(e)return f(),void u.call(null,e,...t);if(c()||s)return f(),void u.call(null,e,...t);let n;r<64&&(r*=2),1===a?(a=2,n=0):n=1e3*(r+Math.random()),h(n)}let p=!1;function m(e){p||(p=!0,f(),l||(null!==o?(e||(a=2),clearTimeout(o),h(0)):e||(a=1)))}return h(0),i=setTimeout(()=>{s=!0,m(!0)},n),m}(e,t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&function(e){e(!1)}(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class ND{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}}
3440/**
3441 * @license
3442 * Copyright 2017 Google LLC
3443 *
3444 * Licensed under the Apache License, Version 2.0 (the "License");
3445 * you may not use this file except in compliance with the License.
3446 * You may obtain a copy of the License at
3447 *
3448 *   http://www.apache.org/licenses/LICENSE-2.0
3449 *
3450 * Unless required by applicable law or agreed to in writing, software
3451 * distributed under the License is distributed on an "AS IS" BASIS,
3452 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3453 * See the License for the specific language governing permissions and
3454 * limitations under the License.
3455 */
3456function ID(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function LD(...e){const t=ID();if(void 0!==t){const n=new t;for(let t=0;t<e.length;t++)n.append(e[t]);return n.getBlob()}if(TD())return new Blob(e);throw new cD(lD.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}
3457/**
3458 * @license
3459 * Copyright 2021 Google LLC
3460 *
3461 * Licensed under the Apache License, Version 2.0 (the "License");
3462 * you may not use this file except in compliance with the License.
3463 * You may obtain a copy of the License at
3464 *
3465 *   http://www.apache.org/licenses/LICENSE-2.0
3466 *
3467 * Unless required by applicable law or agreed to in writing, software
3468 * distributed under the License is distributed on an "AS IS" BASIS,
3469 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3470 * See the License for the specific language governing permissions and
3471 * limitations under the License.
3472 */
3473function PD(e){if("undefined"==typeof atob)throw t="base-64",new cD(lD.UNSUPPORTED_ENVIRONMENT,`${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`);var t;return atob(e)}
3474/**
3475 * @license
3476 * Copyright 2017 Google LLC
3477 *
3478 * Licensed under the Apache License, Version 2.0 (the "License");
3479 * you may not use this file except in compliance with the License.
3480 * You may obtain a copy of the License at
3481 *
3482 *   http://www.apache.org/licenses/LICENSE-2.0
3483 *
3484 * Unless required by applicable law or agreed to in writing, software
3485 * distributed under the License is distributed on an "AS IS" BASIS,
3486 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3487 * See the License for the specific language governing permissions and
3488 * limitations under the License.
3489 */const RD="raw",DD="base64",MD="base64url",jD="data_url";class UD{constructor(e,t){this.data=e,this.contentType=t||null}}function qD(e,t){switch(e){case RD:return new UD(FD(t));case DD:case MD:return new UD(BD(e,t));case jD:return new UD(function(e){const t=new VD(e);return t.base64?BD(DD,t.rest):function(e){let t;try{t=decodeURIComponent(e)}catch(n){throw vD(jD,"Malformed data URL.")}return FD(t)}(t.rest)}(t),new VD(t).contentType)}throw fD()}function FD(e){const t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|63&r);else if(55296==(64512&r)){if(n<e.length-1&&56320==(64512&e.charCodeAt(n+1))){r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r)}else t.push(239,191,189)}else 56320==(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function BD(e,t){switch(e){case DD:{const n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r){throw vD(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?")}break}case MD:{const n=-1!==t.indexOf("+"),r=-1!==t.indexOf("/");if(n||r){throw vD(e,"Invalid character '"+(n?"+":"/")+"' found: is it base64 encoded?")}t=t.replace(/-/g,"+").replace(/_/g,"/");break}}let n;try{n=PD(t)}catch(o){if(o.message.includes("polyfill"))throw o;throw vD(e,"Invalid character found")}const r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}class VD{constructor(e){this.base64=!1,this.contentType=null;const t=e.match(/^data:([^,]+)?,/);if(null===t)throw vD(jD,"Must be formatted 'data:[<mediatype>][;base64],<data>");const n=t[1]||null;null!=n&&(this.base64=function(e,t){const n=e.length>=t.length;if(!n)return!1;return e.substring(e.length-t.length)===t}
3490/**
3491 * @license
3492 * Copyright 2017 Google LLC
3493 *
3494 * Licensed under the Apache License, Version 2.0 (the "License");
3495 * you may not use this file except in compliance with the License.
3496 * You may obtain a copy of the License at
3497 *
3498 *   http://www.apache.org/licenses/LICENSE-2.0
3499 *
3500 * Unless required by applicable law or agreed to in writing, software
3501 * distributed under the License is distributed on an "AS IS" BASIS,
3502 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3503 * See the License for the specific language governing permissions and
3504 * limitations under the License.
3505 */(n,";base64"),this.contentType=this.base64?n.substring(0,n.length-7):n),this.rest=e.substring(e.indexOf(",")+1)}}class zD{constructor(e,t){let n=0,r="";ED(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}size(){return this.size_}type(){return this.type_}slice(e,t){if(ED(this.data_)){const n=function(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}(this.data_,e,t);return null===n?null:new zD(n)}{const n=new Uint8Array(this.data_.buffer,e,t-e);return new zD(n,!0)}}static getBlob(...e){if(TD()){const t=e.map(e=>e instanceof zD?e.data_:e);return new zD(LD.apply(null,t))}{const t=e.map(e=>kD(e)?qD(RD,e).data:e.data_);let n=0;t.forEach(e=>{n+=e.byteLength});const r=new Uint8Array(n);let o=0;return t.forEach(e=>{for(let t=0;t<e.length;t++)r[o++]=e[t]}),new zD(r,!0)}}uploadData(){return this.data_}}
3506/**
3507 * @license
3508 * Copyright 2017 Google LLC
3509 *
3510 * Licensed under the Apache License, Version 2.0 (the "License");
3511 * you may not use this file except in compliance with the License.
3512 * You may obtain a copy of the License at
3513 *
3514 *   http://www.apache.org/licenses/LICENSE-2.0
3515 *
3516 * Unless required by applicable law or agreed to in writing, software
3517 * distributed under the License is distributed on an "AS IS" BASIS,
3518 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3519 * See the License for the specific language governing permissions and
3520 * limitations under the License.
3521 */function $D(e){let t;try{t=JSON.parse(e)}catch(n){return null}return function(e){return"object"==typeof e&&!Array.isArray(e)}(t)?t:null}
3522/**
3523 * @license
3524 * Copyright 2017 Google LLC
3525 *
3526 * Licensed under the Apache License, Version 2.0 (the "License");
3527 * you may not use this file except in compliance with the License.
3528 * You may obtain a copy of the License at
3529 *
3530 *   http://www.apache.org/licenses/LICENSE-2.0
3531 *
3532 * Unless required by applicable law or agreed to in writing, software
3533 * distributed under the License is distributed on an "AS IS" BASIS,
3534 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3535 * See the License for the specific language governing permissions and
3536 * limitations under the License.
3537 */function HD(e){const t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}
3538/**
3539 * @license
3540 * Copyright 2017 Google LLC
3541 *
3542 * Licensed under the Apache License, Version 2.0 (the "License");
3543 * you may not use this file except in compliance with the License.
3544 * You may obtain a copy of the License at
3545 *
3546 *   http://www.apache.org/licenses/LICENSE-2.0
3547 *
3548 * Unless required by applicable law or agreed to in writing, software
3549 * distributed under the License is distributed on an "AS IS" BASIS,
3550 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3551 * See the License for the specific language governing permissions and
3552 * limitations under the License.
3553 */function WD(e,t){return t}class GD{constructor(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||WD}}let KD=null;function YD(){if(KD)return KD;const e=[];e.push(new GD("bucket")),e.push(new GD("generation")),e.push(new GD("metageneration")),e.push(new GD("name","fullPath",!0));const t=new GD("name");t.xform=function(e,t){return function(e){return!kD(e)||e.length<2?e:HD(e)}(t)},e.push(t);const n=new GD("size");return n.xform=function(e,t){return void 0!==t?Number(t):t},e.push(n),e.push(new GD("timeCreated")),e.push(new GD("updated")),e.push(new GD("md5Hash",null,!0)),e.push(new GD("cacheControl",null,!0)),e.push(new GD("contentDisposition",null,!0)),e.push(new GD("contentEncoding",null,!0)),e.push(new GD("contentLanguage",null,!0)),e.push(new GD("contentType",null,!0)),e.push(new GD("metadata","customMetadata",!0)),KD=e,KD}function QD(e,t,n){const r={type:"file"},o=n.length;for(let i=0;i<o;i++){const e=n[i];r[e.local]=e.xform(r,t[e.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){const n=e.bucket,r=e.fullPath,o=new _D(n,r);return t._makeStorageReference(o)}})}(r,e),r}function XD(e,t,n){const r=$D(t);if(null===r)return null;return QD(e,r,n)}function JD(e,t){const n={},r=t.length;for(let o=0;o<r;o++){const r=t[o];r.writable&&(n[r.server]=e[r.local])}return JSON.stringify(n)}class ZD{constructor(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}
3554/**
3555 * @license
3556 * Copyright 2017 Google LLC
3557 *
3558 * Licensed under the Apache License, Version 2.0 (the "License");
3559 * you may not use this file except in compliance with the License.
3560 * You may obtain a copy of the License at
3561 *
3562 *   http://www.apache.org/licenses/LICENSE-2.0
3563 *
3564 * Unless required by applicable law or agreed to in writing, software
3565 * distributed under the License is distributed on an "AS IS" BASIS,
3566 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3567 * See the License for the specific language governing permissions and
3568 * limitations under the License.
3569 */function eM(e){if(!e)throw fD()}function tM(e,t){return function(n,r){const o=XD(e,r,t);return eM(null!==o),o}}function nM(e,t){return function(n,r){const o=XD(e,r,t);return eM(null!==o),function(e,t,n,r){const o=$D(t);if(null===o)return null;if(!kD(o.downloadTokens))return null;const i=o.downloadTokens;if(0===i.length)return null;const s=encodeURIComponent;return i.split(",").map(t=>{const o=e.bucket,i=e.fullPath;return xD("/b/"+s(o)+"/o/"+s(i),n,r)+OD({alt:"media",token:t})})[0]}(o,r,e.host,e._protocol)}}function rM(e){return function(t,n){let r;var o,i;return 401===t.getStatus()?r=t.getErrorText().includes("Firebase App Check token is invali
3569d")?new cD(lD.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project."):new cD(lD.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(i=e.bucket,r=new cD(lD.QUOTA_EXCEEDED,"Quota for bucket '"+i+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(o=e.path,r=new cD(lD.UNAUTHORIZED,"User does not have permission to access '"+o+"'.")):r=n,r.status=t.getStatus(),r.serverResponse=n.serverResponse,r}}function oM(e){const t=rM(e);return function(n,r){let o=t(n,r);var i;return 404===n.getStatus()&&(i=e.path,o=new cD(lD.OBJECT_NOT_FOUND,"Object '"+i+"' does not exist.")),o.serverResponse=r.serverResponse,o}}function iM(e,t,n){const r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),r}class sM{constructor(e,t,n,r){this.current=e,this.total=t,this.finalized=!!n,this.metadata=r||null}}function aM(e,t){let n=null;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(r){eM(!1)}return eM(!!n&&-1!==(t||["active"]).indexOf(n)),n}const cM=262144;function lM(e,t,n,r,o,i,s,a){const c=new sM(0,0);if(s?(c.current=s.current,c.total=s.total):(c.current=0,c.total=r.size()),r.size()!==c.total)throw new cD(lD.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.");const l=c.total-c.current;let u=l;o>0&&(u=Math.min(u,o));const h=c.current,f=h+u;let d="";d=0===u?"finalize":l===u?"upload, finalize":"upload";const p={"X-Goog-Upload-Command":d,"X-Goog-Upload-Offset":`${c.current}`},m=r.slice(h,f);if(null===m)throw mD();const g=t.maxUploadRetryTime,y=new ZD(n,"POST",function(e,n){const o=aM(e,["active","final"]),s=c.current+u,a=r.size();let l;return l="final"===o?tM(t,i)(e,n):null,new sM(s,a,"final"===o,l)},g);return y.headers=p,y.body=m.uploadData(),y.progressCallback=a||null,y.errorHandler=rM(e),y}const uM="running",hM="paused",fM="success",dM="canceled",pM="error";function mM(e){switch(e){case"running":case"pausing":case"canceling":return uM;case"paused":return hM;case"success":return fM;case"canceled":return dM;default:return pM}}
3570/**
3571 * @license
3572 * Copyright 2017 Google LLC
3573 *
3574 * Licensed under the Apache License, Version 2.0 (the "License");
3575 * you may not use this file except in compliance with the License.
3576 * You may obtain a copy of the License at
3577 *
3578 *   http://www.apache.org/licenses/LICENSE-2.0
3579 *
3580 * Unless required by applicable law or agreed to in writing, software
3581 * distributed under the License is distributed on an "AS IS" BASIS,
3582 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3583 * See the License for the specific language governing permissions and
3584 * limitations under the License.
3585 */class gM{constructor(e,t,n){const r=function(e){return"function"==typeof e}(e)||null!=t||null!=n;if(r)this.next=e,this.error=null!=t?t:void 0,this.complete=null!=n?n:void 0;else{const t=e;this.next=t.next,this.error=t.error,this.complete=t.complete}}}
3586/**
3587 * @license
3588 * Copyright 2017 Google LLC
3589 *
3590 * Licensed under the Apache License, Version 2.0 (the "License");
3591 * you may not use this file except in compliance with the License.
3592 * You may obtain a copy of the License at
3593 *
3594 *   http://www.apache.org/licenses/LICENSE-2.0
3595 *
3596 * Unless required by applicable law or agreed to in writing, software
3597 * distributed under the License is distributed on an "AS IS" BASIS,
3598 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3599 * See the License for the specific language governing permissions and
3600 * limitations under the License.
3601 */function yM(e){return(...t)=>{Promise.resolve().then(()=>e(...t))}}class vM{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=uD.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=uD.ABORT,e()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=uD.NETWORK_ERROR,e()}),this.xhr_.addEventListener("load",()=>{e()})})}send(e,t,n,r){if(this.sent_)throw bD("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==r)for(const o in r)r.hasOwnProperty(o)&&this.xhr_.setRequestHeader(o,r[o].toString());return void 0!==n?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw bD("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw bD("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}}getResponse(){if(!this.sent_)throw bD("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw bD("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)}}class bM extends vM{initXhr(){this.xhr_.responseType="text"}}function _M(){return new bM}
3602/**
3603 * @license
3604 * Copyright 2017 Google LLC
3605 *
3606 * Licensed under the Apache License, Version 2.0 (the "License");
3607 * you may not use this file except in compliance with the License.
3608 * You may obtain a copy of the License at
3609 *
3610 *   http://www.apache.org/licenses/LICENSE-2.0
3611 *
3612 * Unless required by applicable law or agreed to in writing, software
3613 * distributed under the License is distributed on an "AS IS" BASIS,
3614 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3615 * See the License for the specific language governing permissions and
3616 * limitations under the License.
3617 */class wM{constructor(e,t,n=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=e,this._blob=t,this._metadata=n,this._mappings=YD(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=e=>{if(this._request=void 0,this._chunkMultiplier=1,e._codeEquals(lD.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{const t=this.isExponentialBackoffExpired();if(AD(e.status,[])){if(!t)return this.sleepTime=Math.max(2*this.sleepTime,1e3),this._needToFetchStatus=!0,void this.completeTransitions_();e=dD()}this._error=e,this._transition("error")}},this._metadataErrorHandler=e=>{this._request=void 0,e._codeEquals(lD.CANCELED)?this.completeTransitions_():(this._error=e,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t,this._start()}),this._promise.then(null,()=>{})}isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}_makeProgressCallback(){const e=this._transferred;return t=>this._updateProgress(e+t)}_shouldDoResumable(e){return e.size()>262144}_start(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(e){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([t,n])=>{switch(this._state){case"running":e(t,n);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused")}})}_createResumable(){this._resolveToken((e,t)=>{const n=function(e,t,n,r,o){const i=t.bucketOnlyServerUrl(),s=iM(t,r,o),a={name:s.fullPath},c=xD(i,e.host,e._protocol),l={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${r.size()}`,"X-Goog-Upload-Header-Content-Type":s.contentType,"Content-Type":"application/json; charset=utf-8"},u=JD(s,n),h=e.maxUploadRetryTime,f=new ZD(c,"POST",function(e){let t;aM(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(n){eM(!1)}return eM(kD(t)),t},h);return f.urlParams=a,f.headers=l,f.body=u,f.errorHandler=rM(t),f}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),r=this._ref.storage._makeRequest(n,_M,e,t);this._request=r,r.getPromise().then(e=>{this._request=void 0,this._uploadUrl=e,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){const e=this._uploadUrl;this._resolveToken((t,n)=>{const r=function(e,t,n,r){const o=e.maxUploadRetryTime,i=new ZD(n,"POST",function(e){const t=aM(e,["active","final"]);let n=null;try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(i){eM(!1)}n||eM(!1);const o=Number(n);return eM(!isNaN(o)),new sM(o,r.size(),"final"===t)},o);return i.headers={"X-Goog-Upload-Command":"query"},i.errorHandler=rM(t),i}(this._ref.storage,this._ref._location,e,this._blob),o=this._ref.storage._makeRequest(r,_M,t,n);this._request=o,o.getPromise().then(e=>{this._request=void 0,this._updateProgress(e.current),this._needToFetchStatus=!1,e.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){const e=cM*this._chunkMultiplier,t=new sM(this._transferred,this._blob.size()),n=this._uploadUrl;this._resolveToken((r,o)=>{let i;try{i=lM(this._ref._location,this._ref.storage,n,this._blob,e,this._mappings,t,this._makeProgressCallback())}catch(a){return this._error=a,void this._transition("error")}
3617const s=this._ref.storage._makeRequest(i,_M,r,o,!1);this._request=s,s.getPromise().then(e=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(e.current),e.finalized?(this._metadata=e.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){2*(cM*this._chunkMultiplier)<33554432&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((e,t)=>{const n=function(e,t,n){const r=xD(t.fullServerUrl(),e.host,e._protocol),o=e.maxOperationRetryTime,i=new ZD(r,"GET",tM(e,n),o);return i.errorHandler=oM(t),i}(this._ref.storage,this._ref._location,this._mappings),r=this._ref.storage._makeRequest(n,_M,e,t);this._request=r,r.getPromise().then(e=>{this._request=void 0,this._metadata=e,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((e,t)=>{const n=function(e,t,n,r,o){const i=t.bucketOnlyServerUrl(),s={"X-Goog-Upload-Protocol":"multipart"},a=function(){let e="";for(let t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();s["Content-Type"]="multipart/related; boundary="+a;const c=iM(t,r,o),l="--"+a+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+JD(c,n)+"\r\n--"+a+"\r\nContent-Type: "+c.contentType+"\r\n\r\n",u="\r\n--"+a+"--",h=zD.getBlob(l,r,u);if(null===h)throw mD();const f={name:c.fullPath},d=xD(i,e.host,e._protocol),p=e.maxUploadRetryTime,m=new ZD(d,"POST",tM(e,n),p);return m.urlParams=f,m.headers=s,m.body=h.uploadData(),m.errorHandler=rM(t),m}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),r=this._ref.storage._makeRequest(n,_M,e,t);this._request=r,r.getPromise().then(e=>{this._request=void 0,this._metadata=e,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(e){const t=this._transferred;this._transferred=e,this._transferred!==t&&this._notifyObservers()}_transition(e){if(this._state!==e)switch(e){case"canceling":case"pausing":this._state=e,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":const t="paused"===this._state;this._state=e,t&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=e,this._notifyObservers();break;case"canceled":this._error=pD(),this._state=e,this._notifyObservers()}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}get snapshot(){const e=mM(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:e,metadata:this._metadata,task:this,ref:this._ref}}on(e,t,n,r){const o=new gM(t||void 0,n||void 0,r||void 0);return this._addObserver(o),()=>{this._removeObserver(o)}}then(e,t){return this._promise.then(e,t)}catch(e){return this.then(null,e)}_addObserver(e){this._observers.push(e),this._notifyObserver(e)}_removeObserver(e){const t=this._observers.indexOf(e);-1!==t&&this._observers.splice(t,1)}_notifyObservers(){this._finishPromise();this._observers.slice().forEach(e=>{this._notifyObserver(e)})}_finishPromise(){if(void 0!==this._resolve){let e=!0;switch(mM(this._state)){case fM:yM(this._resolve.bind(null,this.snapshot))();break;case dM:case pM:yM(this._reject.bind(null,this._error))();break;default:e=!1}e&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(e){switch(mM(this._state)){case uM:case hM:e.next&&yM(e.next.bind(e,this.snapshot))();break;case fM:e.complete&&yM(e.complete.bind(e))();break;default:e.error&&yM(e.error.bind(e,this._error))()}}resume(){const e="paused"===this._state||"pausing"===this._state;return e&&this._transition("running"),e}pause(){const e="running"===this._state;return e&&this._transition("pausing"),e}cancel(){const e="running"===this._state||"pausing"===this._state;return e&&this._transition("canceling"),e}}
3618/**
3619 * @license
3620 * Copyright 2019 Google LLC
3621 *
3622 * Licensed under the Apache License, Version 2.0 (the "License");
3623 * you may not use this file except in compliance with the License.
3624 * You may obtain a copy of the License at
3625 *
3626 *   http://www.apache.org/licenses/LICENSE-2.0
3627 *
3628 * Unless required by applicable law or agreed to in writing, softw
3628are
3629 * distributed under the License is distributed on an "AS IS" BASIS,
3630 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3631 * See the License for the specific language governing permissions and
3632 * limitations under the License.
3633 */class kM{constructor(e,t){this._service=e,this._location=t instanceof _D?t:_D.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new kM(e,t)}get root(){const e=new _D(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return HD(this._location.path)}get storage(){return this._service}get parent(){const e=function(e){if(0===e.length)return null;const t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this._location.path);if(null===e)return null;const t=new _D(this._location.bucket,e);return new kM(this._service,t)}_throwIfRoot(e){if(""===this._location.path)throw function(e){return new cD(lD.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)}}function EM(e){e._throwIfRoot("getDownloadURL");const t=function(e,t,n){const r=xD(t.fullServerUrl(),e.host,e._protocol),o=e.maxOperationRetryTime,i=new ZD(r,"GET",nM(e,n),o);return i.errorHandler=oM(t),i}(e.storage,e._location,YD());return e.storage.makeRequestWithTokens(t,_M).then(e=>{if(null===e)throw new cD(lD.NO_DOWNLOAD_URL,"The given file does not have any download URLs.");return e})}function TM(e){e._throwIfRoot("deleteObject");const t=function(e,t){const n=xD(t.fullServerUrl(),e.host,e._protocol),r=e.maxOperationRetryTime,o=new ZD(n,"DELETE",function(e,t){},r);return o.successCodes=[200,204],o.errorHandler=oM(t),o}(e.storage,e._location);return e.storage.makeRequestWithTokens(t,_M)}function SM(e,t){if(e instanceof AM){const n=e;if(null==n._bucket)throw new cD(lD.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+aD+"' property when initializing the app?");const r=new kM(n,n._bucket);return null!=t?SM(r,t):r}return void 0!==t?function(e,t){const n=function(e,t){const n=t.split("/").filter(e=>e.length>0).join("/");return 0===e.length?n:e+"/"+n}(e._location.path,t),r=new _D(e._location.bucket,n);return new kM(e.storage,r)}
3634/**
3635 * @license
3636 * Copyright 2017 Google LLC
3637 *
3638 * Licensed under the Apache License, Version 2.0 (the "License");
3639 * you may not use this file except in compliance with the License.
3640 * You may obtain a copy of the License at
3641 *
3642 *   http://www.apache.org/licenses/LICENSE-2.0
3643 *
3644 * Unless required by applicable law or agreed to in writing, software
3645 * distributed under the License is distributed on an "AS IS" BASIS,
3646 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3647 * See the License for the specific language governing permissions and
3648 * limitations under the License.
3649 */(e,t):e}function xM(e,t){if(t&&/^[A-Za-z]+:\/\//.test(t)){if(e instanceof AM)return new kM(e,t);throw gD("To use ref(service, url), the first argument must be a Storage instance.")}return SM(e,t)}function OM(e,t){const n=null==t?void 0:t[aD];return null==n?null:_D.makeFromBucketSpec(n,e)}class AM{constructor(e,t,n,r,o){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=r,this._firebaseVersion=o,this._bucket=null,this._host=sD,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=r?_D.makeFromBucketSpec(r,this._host):OM(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,null!=this._url?this._bucket=_D.makeFromBucketSpec(this._url,e):this._bucket=OM(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){SD("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){SD("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const e=this._authProvider.getImmediate({optional:!0});if(e){const t=await e.getToken();if(null!==t)return t.accessToken}return null}async _getAppCheckToken(){const e=this._appCheckProvider.getImmediate({optional:!0});if(e){return(await e.getToken()).token}return null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEac
3649h(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new kM(this,e)}_makeRequest(e,t,n,r,o=!0){if(this._deleted)return new wD(yD());{const i=function(e,t,n,r,o,i,s=!0){const a=OD(e.urlParams),c=e.url+a,l=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(l,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(l,n),function(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(null!=t?t:"AppManager")}(l,i),function(e,t){null!==t&&(e["X-Firebase-AppCheck"]=t)}(l,r),new CD(c,e.method,l,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,o,s)}(e,this._appId,n,r,t,this._firebaseVersion,o);return this._requests.add(i),i.getPromise().then(()=>this._requests.delete(i),()=>this._requests.delete(i)),i}}async makeRequestWithTokens(e,t){const[n,r]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,n,r).getPromise()}}const CM="@firebase/storage",NM="0.12.3",IM="storage";function LM(e,t,n){return function(e,t,n){return e._throwIfRoot("uploadBytesResumable"),new wM(e,new zD(t),n)}(e=yv(e),t,n)}function PM(e,t){return xM(e=yv(e),t)}function RM(e=Ib(),t){const n=Sb(e=yv(e),IM).getImmediate({identifier:t}),r=tv("storage");return r&&function(e,t,n,r={}){!function(e,t,n,r={}){e.host=`${t}:${n}`,e._protocol="http";const{mockUserToken:o}=r;o&&(e._overrideAuthToken="string"==typeof o?o:iv(o,e.app.options.projectId))}(e,t,n,r)}(n,...r),n}function DM(e,{instanceIdentifier:t}){const n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal"),o=e.getProvider("app-check-internal");return new AM(n,r,o,t,Cb)}Tb(new vv(IM,DM,"PUBLIC").setMultipleInstances(!0)),Pb(CM,NM,""),Pb(CM,NM,"esm2017");var MM={};class jM{env;static instance;_firebaseConfig;_mapsApiKey;constructor(e){if(!e)throw new Error("Environment not found");this.env=e,this._firebaseConfig=this.parseFirebaseConfig(),this._mapsApiKey=this.env.mapsApiKey||MM.NUXT_MAPS_API_KEY}sanitizeHost(e){return e&&e.replace(/^https?:\/\//,"").split(":")[0]||"localhost"}parseFirebaseConfig(){const e={apiKey:this.env.firebaseApiKey||MM.NUXT_FIREBASE_API_KEY,authDomain:this.env.firebaseAuthDomain||MM.NUXT_FIREBASE_AUTH_DOMAIN,databaseURL:this.env.firebaseDatabaseUrl||MM.NUXT_FIREBASE_DATABASE_URL,projectId:this.env.firebaseProjectId||MM.NUXT_FIREBASE_PROJECT_ID,storageBucket:this.env.firebaseStorageBucket||MM.NUXT_FIREBASE_STORAGE_BUCKET,storageBucketUrl:this.env.firebaseBucketUrl||MM.NUXT_FIREBASE_BUCKET_URL,messagingSenderId:this.env.firebaseMessagingSenderId||MM.NUXT_FIREBASE_MESSAGING_SENDER_ID,appId:this.env.firebaseAppId||MM.NUXT_FIREBASE_APP_ID,maxUploadFileSize:this.env.maxUploadFileSize||+(MM.NUXT_MAX_UPLOAD_FILE_SIZE||4.5)};if(this.env.emulators&&Object.assign(e,{emulators:{auth:{host:this.sanitizeHost(this.env.emulators.auth?.host||MM.FIREBASE_AUTH_EMULATOR_HOST),port:this.env.emulators.auth?.port||MM.NUXT_FIREBASE_EMULATOR_AUTH_PORT||9099},firestore:{host:this.sanitizeHost(this.env.emulators.firestore?.host||MM.FIREBASE_AUTH_EMULATOR_HOST),port:this.env.emulators.firestore?.port||MM.NUXT_FIREBASE_EMULATOR_FIRESTORE_PORT||9098},storage:{host:this.sanitizeHost(this.env.emulators.storage?.host||MM.FIREBASE_AUTH_EMULATOR_HOST),port:this.env.emulators.storage?.port||MM.NUXT_FIREBASE_EMULATOR_STORAGE_PORT||9199}}}),!Object.values(e).every(e=>void 0!==e&&""!==e)){const t=Object.entries(e).filter(([e,t])=>void 0===t||""===t);throw new Error("Firebase config not found: "+JSON.stringify(t))}return e}get firebaseConfig(){return this._firebaseConfig}get maxUploadFileSize(){return this._firebaseConfig.maxUploadFileSize||5}static get(e){return this.instance||(this.instance=new jM(e)),this.instance}}let UM=null,qM=null,FM=null,BM=null;const VM=()=>"undefined"==typeof window||"undefined"==typeof navigator,zM=()=>{if(VM())throw new Error("Firebase should not be initialized during build or SSR");if(!UM){const{public:e}=Bt(),t=jM.get(e);UM=Lb()[0]||Nb(t.firebaseConfig)}return UM},$M=()=>{if(VM())throw new Error("Firebase Auth should not be initialized during build or SSR");if(!qM){const e=zM();qM=Ak(e),qM.useDeviceLanguage(),qM.setPersistence(_w)}return qM},HM=()=>
3649{if(VM())throw new Error("Firebase Firestore should not be initialized during build or SSR");if(!FM){const e=zM();FM=FP(e)}return FM},WM=()=>{if(VM())throw new Error("Firebase Storage should not be initialized during build or SSR");if(!BM){const e=zM(),{public:t}=Bt(),n=jM.get(t);BM=RM(e,n.firebaseConfig.storageBucketUrl)}return BM},GM=Ut(()=>VM()?{provide:{firebase:void 0}}:{provide:{firebase:{getAuth:$M,getDb:HM,getStorage:WM,getApp:zM}}});function KM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KM(Object(n),!0).forEach(function(t){JM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QM(e){return(QM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function XM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function JM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(c){a=!0,o=c}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||tj(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ej(e){return function(e){if(Array.isArray(e))return nj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tj(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tj(e,t){if(e){if("string"==typeof e)return nj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nj(e,t):void 0}}function nj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rj=function(){},oj={},ij={},sj=null,aj={mark:rj,measure:rj};try{"undefined"!=typeof window&&(oj=window),"undefined"!=typeof document&&(ij=document),"undefined"!=typeof MutationObserver&&(sj=MutationObserver),"undefined"!=typeof performance&&(aj=performance)}catch(Vz){}var cj=(oj.navigator||{}).userAgent,lj=void 0===cj?"":cj,uj=oj,hj=ij,fj=sj,dj=aj;uj.document;var pj,mj,gj,yj,vj,bj=!!hj.documentElement&&!!hj.head&&"function"==typeof hj.addEventListener&&"function"==typeof hj.createElement,_j=~lj.indexOf("MSIE")||~lj.indexOf("Trident/"),wj="___FONT_AWESOME___",kj="svg-inline--fa",Ej="data-fa-i2svg",Tj="data-fa-pseudo-element",Sj="data-prefix",xj="data-icon",Oj="fontawesome-i2svg",Aj=["HTML","HEAD","STYLE","SCRIPT"],Cj=function(){try{return!0}catch(Vz){return!1}}(),Nj="classic",Ij="sharp",Lj=[Nj,Ij];function Pj(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[Nj]}})}var Rj=Pj((JM(pj={},Nj,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit",fakd:"kit","fa-kit":"kit","fa-kit-duotone":"kit"}),JM(pj,Ij,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"}),pj)),Dj=Pj((JM(mj={},Nj,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}
3649),JM(mj,Ij,{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"}),mj)),Mj=Pj((JM(gj={},Nj,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),JM(gj,Ij,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"}),gj)),jj=Pj((JM(yj={},Nj,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),JM(yj,Ij,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"}),yj)),Uj=/fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/,qj="fa-layers-text",Fj=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Bj=Pj((JM(vj={},Nj,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),JM(vj,Ij,{900:"fass",400:"fasr",300:"fasl",100:"fast"}),vj)),Vj=[1,2,3,4,5,6,7,8,9,10],zj=Vj.concat([11,12,13,14,15,16,17,18,19,20]),$j=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Hj="duotone-group",Wj="swap-opacity",Gj="primary",Kj="secondary",Yj=new Set;Object.keys(Dj[Nj]).map(Yj.add.bind(Yj)),Object.keys(Dj[Ij]).map(Yj.add.bind(Yj));var Qj=[].concat(Lj,ej(Yj),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Hj,Wj,Gj,Kj]).concat(Vj.map(function(e){return"".concat(e,"x")})).concat(zj.map(function(e){return"w-".concat(e)})),Xj=uj.FontAwesomeConfig||{};if(hj&&"function"==typeof hj.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var t=ZM(e,2),n=t[0],r=t[1],o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=hj.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(Xj[r]=o)})}var Jj={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:kj,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Xj.familyPrefix&&(Xj.cssPrefix=Xj.familyPrefix);var Zj=YM(YM({},Jj),Xj);Zj.autoReplaceSvg||(Zj.observeMutations=!1);var eU={};Object.keys(Jj).forEach(function(e){Object.defineProperty(eU,e,{enumerable:!0,set:function(t){Zj[e]=t,tU.forEach(function(e){return e(eU)})},get:function(){return Zj[e]}})}),Object.defineProperty(eU,"familyPrefix",{enumerable:!0,set:function(e){Zj.cssPrefix=e,tU.forEach(function(e){return e(eU)})},get:function(){return Zj.cssPrefix}}),uj.FontAwesomeConfig=eU;var tU=[];var nU=16,rU={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function oU(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function iU(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function sU(e){return e.classList?iU(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function aU(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function cU(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function lU(e){return e.size!==rU.size||e.x!==rU.x||e.y!==rU.y||e.rotate!==rU.rotate||e.flipX||e.flipY}function uU(){var e="fa",t=kj,n=eU.cssPrefix,r=eU.replacementClass,o=':root, :host {\n  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n  overflow: visible;\n  box-sizing: content-box;\n}\n\n.svg-inline--fa {\n  display: var(--fa-display, inline-block);\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n  vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n  vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n  vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n  vertical-align: -0.25em;
3649\n}\n.svg-inline--fa.fa-2xl {\n  vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-li {\n  width: var(--fa-li-width, 2em);\n  top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n  width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: var(--fa-counter-background-color, #ff253a);\n  border-radius: var(--fa-counter-border-radius, 1em);\n  box-sizing: border-box;\n  color: var(--fa-inverse, #fff);\n  line-height: var(--fa-counter-line-height, 1);\n  max-width: var(--fa-counter-max-width, 5em);\n  min-width: var(--fa-counter-min-width, 1.5em);\n  overflow: hidden;\n  padding: var(--fa-counter-padding, 0.25em 0.5em);\n  right: var(--fa-right, 0);\n  text-overflow: ellipsis;\n  top: var(--fa-top, 0);\n  -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n          transform: scale(var(--fa-counter-scale, 0.25));\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: var(--fa-bottom, 0);\n  right: var(--fa-right, 0);\n  top: auto;\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: var(--fa-bottom, 0);\n  left: var(--fa-left, 0);\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  top: var(--fa-top, 0);\n  right: var(--fa-right, 0);\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: var(--fa-left, 0);\n  right: auto;\n  top: var(--fa-top, 0);\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-2xs {\n  font-size: 0.625em;\n  line-height: 0.1em;\n  vertical-align: 0.225em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n  line-height: 0.0833333337em;\n  vertical-align: 0.125em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n  line-height: 0.0714285718em;\n  vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n  font-size: 1.25em;\n  line-height: 0.05em;\n  vertical-align: -0.075em;\n}\n\n.fa-xl {\n  font-size: 1.5em;\n  line-height: 0.0416666682em;\n  vertical-align: -0.125em;\n}\n\n.fa-2xl {\n  font-size: 2em;\n  line-height: 0.03125em;\n  vertical-align: -0.1875em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: var(--fa-li-margin, 2.5em);\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: calc(var(--fa-li-width, 2em) * -1);\n  position: absolute;\n  text-align: center;\n  width: var(--fa-li-width, 2em);\n  line-height: inherit;\n}\n\n.fa-border {\n  border-color: var(--fa-border-color, #eee);\n  border-radius: var(--fa-border-radius, 0.1em);\n  border-style: var(--fa-border-style, solid);\n  border-width: var(--fa-border-width, 0.08em);
3649\n  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n  float: left;\n  margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n  float: right;\n  margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n  -webkit-animation-name: fa-beat;\n          animation-name: fa-beat;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n          animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n  -webkit-animation-name: fa-bounce;\n          animation-name: fa-bounce;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n  -webkit-animation-name: fa-fade;\n          animation-name: fa-fade;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n  -webkit-animation-name: fa-beat-fade;\n          animation-name: fa-beat-fade;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n  -webkit-animation-name: fa-flip;\n          animation-name: fa-flip;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n          animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n  -webkit-animation-name: fa-shake;\n          animation-name: fa-shake;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n          animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n  -webkit-animation-name: fa-spin;\n          animation-name: fa-spin;\n  -webkit-animation-delay: var(--fa-animation-delay, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 2s);\n          animation-duration: var(--fa-animation-duration, 2s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n          animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n  --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n  -webkit-animation-name: fa-spin;\n          animation-name: fa-spin;\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n          animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n    -webkit-animation-delay: -1ms;\n            animation-delay: -1ms;\n    -webkit-animation-duration: 1ms;\n            animation-duration: 1ms;\n    -webkit-animation-iteration-count: 1;\n            animation-iteration-count: 1;\n    -webkit-transition-delay: 0s;\n            transition-delay: 0s;\n    -webkit-transition-duration: 0s;\n            transition-duration: 0s;\n  }\n}\n@-webkit-keyframes fa-beat {\n  0%, 90% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  45% {\n    -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n            transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@keyframes fa-beat {\n  0%, 90% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  45% {\n    -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n            transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@-webkit-keyframes fa-bounce {\n  0% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n}\n@keyframes fa-bounce {\n  0% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n}\n@-webkit-keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@-webkit-keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n            transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n            transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@-webkit-keyframes fa-flip {\n  50% {\n    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@keyframes fa-flip {\n  50% {\n    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@-webkit-keyframes fa-shake {\n  0% {\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n  }\n  4% {\n    -webkit-transform: rotate(15deg);\n            transform: rotate(15deg);\n  }\n  8%, 24% {\n    -webkit-transform: rotate(-18deg);\n            transform: rotate(-18deg);\n  }\n  12%, 28% {\n    -webkit-transform: rotate(18deg);\n            transform: rotate(18deg);\n  }\n  16% {\n    -webkit-transform: rotate(-22deg);\n            transform: rotate(-22deg);\n  }\n  20% {\n    -webkit-transform: rotate(22deg);\n            transform: rotate(22deg);\n  }\n  32% {\n    -webkit-transform: rotate(-12deg);\n            transform: rotate(-12deg);\n  }\n  36% {\n    -webkit-transform: rotate(12deg);\n            transform: rotate(12deg);\n  }\n  40%, 100% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n}\n@keyframes fa-shake {\n  0% {\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n  }\n  4% {\n    -webkit-transform: rotate(15deg);\n            transform: rotate(15deg);\n  }\n  8%, 24% {\n    -webkit-transform: rotate(-18deg);\n            transform: rotate(-18deg);\n  }\n  12%, 28% {\n    -webkit-transform: rotate(18deg);\n            transform: rotate(18deg);\n  }\n  16% {\n    -webkit-transform: rotate(-22deg);\n            transform: rotate(-22deg);\n  }\n  20% {\n    -webkit-transform: rotate(22deg);\n            transform: rotate(22deg);\n  }\n  32% {\n    -webkit-transform: rotate(-12deg);\n            transform: rotate(-12deg);\n  }\n  36% {\n    -webkit-transform: rotate(12deg);\n            transform: rotate(12deg);\n  }\n  40%, 100% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n}\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}
3649\n\n.fa-flip-vertical {\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n  -webkit-transform: rotate(var(--fa-rotate-angle, none));\n          transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n  display: inline-block;\n  vertical-align: middle;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n  z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}';if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return o}var hU=!1;function fU(){eU.autoAddCss&&!hU&&(!function(e){if(e&&bj){var t=hj.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=hj.head.childNodes,r=null,o=n.length-1;o>-1;o--){var i=n[o],s=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=i)}hj.head.insertBefore(t,r)}}(uU()),hU=!0)}var dU={mixout:function(){return{dom:{css:uU,insertCss:fU}}},hooks:function(){return{beforeDOMElementCreation:function(){fU()},beforeI2svg:function(){fU()}}}},pU=uj||{};pU[wj]||(pU[wj]={}),pU[wj].styles||(pU[wj].styles={}),pU[wj].hooks||(pU[wj].hooks={}),pU[wj].shims||(pU[wj].shims=[]);var mU=pU[wj],gU=[],yU=!1;function vU(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,o=e.children,i=void 0===o?[]:o;return"string"==typeof e?aU(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(aU(e[n]),'" ')},"").trim()}(r),">").concat(i.map(vU).join(""),"</").concat(t,">")}function bU(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}bj&&((yU=(hj.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(hj.readyState))||hj.addEventListener("DOMContentLoaded",function e(){hj.removeEventListener("DOMContentLoaded",e),yU=1,gU.map(function(e){return e()})}));var _U,wU,kU,EU=function(e,t,n,r){var o,i,s,a=Object.keys(e),c=a.length,l=void 0!==r?function(e,t){return function(n,r,o,i){return e.call(t,n,r,o,i)}}(t,r):t;for(void 0===n?(o=1,s=e[a[0]]):(o=0,s=n);o<c;o++)s=l(s,e[i=a[o]],i,e);return s};function TU(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&o)<<10)+(1023&i)+65536):(t.push(o),n--)}else t.push(o)}return t}(e);return 1===t.length?t[0].toString(16):null}function SU(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function xU(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,o=SU(t);"function"!=typeof mU.hooks.addPack||r?mU.styles[e]=YM(YM({},mU.styles[e]||{}),o):mU.hooks.addPack(e,SU(t)),"fas"===e&&xU("fa",t)}var OU=mU.styles,AU=mU.shims,CU=(JM(_U={},Nj,Object.values(Mj[Nj])),JM(_U,Ij,Object.values(Mj[Ij])),_U),NU=null,IU={},LU={},PU={},RU={},DU={},MU=(JM(wU={},Nj,Object.keys(Rj[Nj])),JM(wU,Ij,Object.keys(Rj[Ij])),wU);function jU(e,t){var n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r!==e||""===o||function(e){return~Qj.indexOf(e)}(o)?null:o}var UU=function(){var e=function(e){return EU(OU,function(t,n,r){return t[r]=EU(n,e,{}),t},{})};IU=e(function(e,t,n){if(t[3]&&(e[t[3]]=n),t[2]){var r=t[2].filter(function(e){return"number"==typeof e});r.forEach(function(t){e[t.toString(16)]=n})}return e}),LU=e(function(e,t,n){if(e[n]=n,t[2]){var r=t[2].filter(function(e){return"string"==typeof e});r.forEach(function(t){e[t]=n})}return e}),DU=e(function(e,t,n){var r=t[2];return e[n]=n,r.forEach(function(t){e[t]=n}),e});var t="far"in OU||eU.autoFetchSvg,n=EU(AU,function(e,n){var r=n[0],o=n[1],i=n[2];return"far"!==o||t||(o="fas"),"string"==typeof r&&(e.names[r]={prefix:o,iconName:i}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:o,iconName:i}),e},{names:{},unicodes:{}});PU=n.names,RU=n.unicodes,NU=zU(eU.styleDefault,{family:eU.familyDefault})};function qU(e,t){return(IU[e]||{})[t]}function FU(e,t){return(DU[e]||{})[t]}function BU(e){return PU[e]||{prefix:null,iconName:null}}function VU(){return NU}!function(e){tU.push(e)}(function(e){NU=zU(e.styleDefault,{family:eU.familyDefault})}),UU();function zU(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?Nj:t,r=Rj[n][e],o=Dj[n][e]||Dj[n][r],i=e in mU.styles?e:null;return o||i||null}var $U=(JM(kU={}
3649,Nj,Object.keys(Mj[Nj])),JM(kU,Ij,Object.keys(Mj[Ij])),kU);function HU(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,o=(JM(t={},Nj,"".concat(eU.cssPrefix,"-").concat(Nj)),JM(t,Ij,"".concat(eU.cssPrefix,"-").concat(Ij)),t),i=null,s=Nj;(e.includes(o[Nj])||e.some(function(e){return $U[Nj].includes(e)}))&&(s=Nj),(e.includes(o[Ij])||e.some(function(e){return $U[Ij].includes(e)}))&&(s=Ij);var a=e.reduce(function(e,t){var n=jU(eU.cssPrefix,t);if(OU[t]?(t=CU[s].includes(t)?jj[s][t]:t,i=t,e.prefix=t):MU[s].indexOf(t)>-1?(i=t,e.prefix=zU(t,{family:s})):n?e.iconName=n:t!==eU.replacementClass&&t!==o[Nj]&&t!==o[Ij]&&e.rest.push(t),!r&&e.prefix&&e.iconName){var a="fa"===i?BU(e.iconName):{},c=FU(e.prefix,e.iconName);a.prefix&&(i=null),e.iconName=a.iconName||c||e.iconName,e.prefix=a.prefix||e.prefix,"far"!==e.prefix||OU.far||!OU.fas||eU.autoFetchSvg||(e.prefix="fas")}return e},{prefix:null,iconName:null,rest:[]});return(e.includes("fa-brands")||e.includes("fab"))&&(a.prefix="fab"),
3649(e.includes("fa-duotone")||e.includes("fad"))&&(a.prefix="fad"),a.prefix||s!==Ij||!OU.fass&&!eU.autoFetchSvg||(a.prefix="fass",a.iconName=FU(a.prefix,a.iconName)||a.iconName),"fa"!==a.prefix&&"fa"!==i||(a.prefix=VU()||"fas"),a}var WU=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(t){e.definitions[t]=YM(YM({},e.definitions[t]||{}),o[t]),xU(t,o[t]);var n=Mj[Nj][t];n&&xU(n,o[t]),UU()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(function(t){var r=n[t],o=r.prefix,i=r.iconName,s=r.icon,a=s[2];e[o]||(e[o]={}),a.length>0&&a.forEach(function(t){"string"==typeof t&&(e[o][t]=s)}),e[o][i]=s}),e}}],n&&XM(t.prototype,n),r&&XM(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),GU=[],KU={},YU={},QU=Object.keys(YU);function XU(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return(KU[e]||[]).forEach(function(e){t=e.apply(null,[t].concat(r))}),t}function JU(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(KU[e]||[]).forEach(function(e){e.apply(null,n)})}function ZU(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return YU[e]?YU[e].apply(null,t):void 0}function eq(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||VU();if(t)return t=FU(n,t)||t,bU(tq.definitions,n,t)||bU(mU.styles,n,t)}var tq=new WU,nq={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return bj?(JU("beforeI2svg",e),ZU("pseudoElements2svg",e),ZU("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===eU.autoReplaceSvg&&(eU.autoReplaceSvg=!0),eU.observeMutations=!0,e=function(){oq({autoReplaceSvgRoot:n}),JU("watch",t)},bj&&(yU?setTimeout(e,0):gU.push(e))}},rq={noAuto:function(){eU.autoReplaceSvg=!1,eU.observeMutations=!1,JU("noAuto")},config:eU,dom:nq,parse:{icon:function(e){if(null===e)return null;if("object"===QM(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:FU(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=zU(e[0]);return{prefix:n,iconName:FU(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(eU.cssPrefix,"-"))>-1||e.match(Uj))){var r=HU(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||VU(),iconName:FU(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var o=VU();return{prefix:o,iconName:FU(o,e)||e}}}},library:tq,findIconDefinition:eq,toHtml:vU},oq=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?hj:e;(Object.keys(mU.styles).length>0||eU.autoFetchSvg)&&bj&&eU.autoReplaceSvg&&rq.dom.i2svg({node:t})};function iq(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return vU(e)})}}),Object.defineProperty(e,"node",{get:function(){if(bj){var t=hj.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function sq(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,s=e.transform,a=e.symbol,c=e.title,l=e.maskId,u=e.titleId,h=e.extra,f=e.watchable,d=void 0!==f&&f,p=r.found?r:n,m=p.width,g=p.height,y="fak"===o,v=[eU.replacementClass,i?"".concat(eU.cssPrefix,"-").concat(i):""].filter(function(e){return-1===h.classes.indexOf(e)}).filter(function(e){return""!==e||!!e}).concat(h.classes).join(" "),b={children:[],attributes:YM(YM({},h.attributes),{},{"data-prefix":o,"data-icon":i,class:v,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(g)})},_=y&&!~h.classes.indexOf("fa-fw")?{width:"".concat(m/g*16*.0625,"em")}:{};
3649d&&(b.attributes[Ej]=""),c&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(u||oU())},children:[c]}),delete b.attributes.title);var w=YM(YM({},b),{},{prefix:o,iconName:i,main:n,mask:r,maskId:l,transform:s,symbol:a,styles:YM(YM({},_),h.styles)}),k=r.found&&n.found?ZU("generateAbstractMask",w)||{children:[],attributes:{}}:ZU("generateAbstractIcon",w)||{children:[],attributes:{}},E=k.children,T=k.attributes;return w.children=E,w.attributes=T,a?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol,s=!0===i?"".concat(t,"-").concat(eU.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:YM(YM({},o),{},{id:s}),children:r}]}]}(w):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,s=e.transform;if(lU(s)&&n.found&&!r.found){var a={x:n.width/n.height/2,y:.5};o.style=cU(YM(YM({},i),{},{"transform-origin":"".concat(a.x+s.x/16,"em ").concat(a.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(w)}function aq(e){var t=e.content,n=e.width,r=e.height,o=e.transform,i=e.title,s=e.extra,a=e.watchable,c=void 0!==a&&a,l=YM(YM(YM({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});c&&(l[Ej]="");var u=YM({},s.styles);lU(o)&&(u.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,o=e.height,i=void 0===o?16:o,s=e.startCentered,a=void 0!==s&&s,c="";return c+=a&&_j?"translate(".concat(t.x/nU-r/2,"em, ").concat(t.y/nU-i/2,"em) "):a?"translate(calc(-50% + ".concat(t.x/nU,"em), calc(-50% + ").concat(t.y/nU,"em)) "):"translate(".concat(t.x/nU,"em, ").concat(t.y/nU,"em) "),c+="scale(".concat(t.size/nU*(t.flipX?-1:1),", ").concat(t.size/nU*(t.flipY?-1:1),") "),c+"rotate(".concat(t.rotate,"deg) ")}({transform:o,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);var h=cU(u);h.length>0&&(l.style=h);var f=[];return f.push({tag:"span",attributes:l,children:[t]}),i&&f.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),f}var cq=mU.styles;function lq(e){var t=e[0],n=e[1],r=ZM(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(eU.cssPrefix,"-").concat(Hj)},children:[{tag:"path",attributes:{class:"".concat(eU.cssPrefix,"-").concat(Kj),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(eU.cssPrefix,"-").concat(Gj),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var uq={found:!1,width:512,height:512};function hq(e,t){var n=t;return"fa"===t&&null!==eU.styleDefault&&(t=VU()),new Promise(function(r,o){if(ZU("missingIconAbstract"),"fa"===n){var i=BU(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&cq[t]&&cq[t][e])return r(lq(cq[t][e]));!function(e,t){Cj||eU.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(YM(YM({},uq),{},{icon:eU.showMissingIcons&&e&&ZU("missingIconAbstract")||{}}))})}var fq=function(){},dq=eU.measurePerformance&&dj&&dj.mark&&dj.measure?dj:{mark:fq,measure:fq},pq='FA "6.5.1"',mq=function(e){dq.mark("".concat(pq," ").concat(e," ends")),dq.measure("".concat(pq," ").concat(e),"".concat(pq," ").concat(e," begins"),"".concat(pq," ").concat(e," ends"))},gq=function(e){return dq.mark("".concat(pq," ").concat(e," begins")),function(){return mq(e)}},yq=function(){};function vq(e){return"string"==typeof(e.getAttribute?e.getAttribute(Ej):null)}function bq(e){return hj.createElementNS("http://www.w3.org/2000/svg",e)}function _q(e){return hj.createElement(e)}function wq(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?bq:_q:t;if("string"==typeof e)return hj.createTextNode(e);var r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){r.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){r.appendChild(wq(e,{ceFn:n}))}),r}var kq={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(wq(e),t)}),null===t.getAttribute(Ej)&&eU.keepOriginalSource){var n=hj.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~sU(t).indexOf(eU.replacementClass))return kq.replace(e);var r=new RegExp("".concat(eU.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var o=n[0].attributes.class.split(" ").reduce(function(e,t){return t===eU.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),0===o.toNode.length?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}var i=n.map(function(e){return vU(e)}).join("\n");t.setAttribute(Ej,""),t.innerHTML=i}};function Eq(e){e()}function Tq(e,t){var n="function"==typeof t?t:yq;if(0===e.length)n();else{var r=Eq;
3649"async"===eU.mutateApproach&&(r=uj.requestAnimationFrame||Eq),r(function(){var t=!0===eU.autoReplaceSvg?kq.replace:kq[eU.autoReplaceSvg]||kq.replace,r=gq("mutate");e.map(t),r(),n()})}}var Sq=!1;function xq(){Sq=!0}function Oq(){Sq=!1}var Aq=null;function Cq(e){if(fj&&eU.observeMutations){var t=e.treeCallback,n=void 0===t?yq:t,r=e.nodeCallback,o=void 0===r?yq:r,i=e.pseudoElementsCallback,s=void 0===i?yq:i,a=e.observeMutationsRoot,c=void 0===a?hj:a;Aq=new fj(function(e){if(!Sq){var t=VU();iU(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!vq(e.addedNodes[0])&&(eU.searchPseudoElements&&s(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&eU.searchPseudoElements&&s(e.target.parentNode),"attributes"===e.type&&vq(e.target)&&~$j.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(Sj):null,n=e.getAttribute?e.getAttribute(xj):null;return t&&n}(e.target)){var r=HU(sU(e.target)),i=r.prefix,a=r.iconName;e.target.setAttribute(Sj,i||t),a&&e.target.setAttribute(xj,a)}else(c=e.target)&&c.classList&&c.classList.contains&&c.classList.contains(eU.replacementClass)&&o(e.target);var c})}}),bj&&Aq.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Nq(e){var t,n,r=e.getAttribute("data-prefix"),o=e.getAttribute("data-icon"),i=void 0!==e.innerText?e.innerText.trim():"",s=HU(sU(e));return s.prefix||(s.prefix=VU()),r&&o&&(s.prefix=r,s.iconName=o),s.iconName&&s.prefix||(s.prefix&&i.length>0&&(s.iconName=(t=s.prefix,n=e.innerText,(LU[t]||{})[n]||qU(s.prefix,TU(e.innerText)))),!s.iconName&&eU.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s}function Iq(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=Nq(e),r=n.iconName,o=n.prefix,i=n.rest,s=function(e){var t=iU(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return eU.autoA11y&&(n?t["aria-labelledby"]="".concat(eU.replacementClass,"-title-").concat(r||oU()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=XU("parseNodeAttributes",{},e),c=t.styleParser?function(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(e,t){var n=t.split(":"),r=n[0],o=n.slice(1);return r&&o.length>0&&(e[r]=o.join(":").trim()),e},{})),n}(e):[];return YM({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:o,transform:rU,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:s}},a)}var Lq=mU.styles;function Pq(e){var t="nest"===eU.autoReplaceSvg?Iq(e,{styleParser:!1}):Iq(e);return~t.extra.classes.indexOf(qj)?ZU("generateLayersText",e,t):ZU("generateSvgReplacementMutation",e,t)}var Rq=new Set;function Dq(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!bj)return Promise.resolve();var n=hj.documentElement.classList,r=function(e){return n.add("".concat(Oj,"-").concat(e))},o=function(e){return n.remove("".concat(Oj,"-").concat(e))},i=eU.autoFetchSvg?Rq:Lj.map(function(e){return"fa-".concat(e)}).concat(Object.keys(Lq));i.includes("fa")||i.push("fa");var s=[".".concat(qj,":not([").concat(Ej,"])")].concat(i.map(function(e){return".".concat(e,":not([").concat(Ej,"])")})).join(", ");if(0===s.length)return Promise.resolve();var a=[];try{a=iU(e.querySelectorAll(s))}catch(Vz){}if(!(a.length>0))return Promise.resolve();r("pending"),o("complete");var c=gq("onTree"),l=a.reduce(function(e,t){try{var n=Pq(t);n&&e.push(n)}catch(Vz){Cj||"MissingIcon"===Vz.name&&console.error(Vz)}return e},[]);return new Promise(function(e,n){Promise.all(l).then(function(n){Tq(n,function(){r("active"),r("complete"),o("pending"),"function"==typeof t&&t(),c(),e()})}).catch(function(e){c(),n(e)})})}function Mq(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Pq(e).then(function(e){e&&Tq([e],t)})}Lj.map(function(e){Rq.add("fa-".concat(e))}),Object.keys(Rj[Nj]).map(Rq.add.bind(Rq)),Object.keys(Rj[Ij]).map(Rq.add.bind(Rq)),Rq=ej(Rq);var jq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?rU:n,o=t.symbol,i=void 0!==o&&o,s=t.mask,a=void 0===s?null:s,c=t.maskId,l=void 0===c?null:c,u=t.title,h=void 0===u?null:u,f=t.titleId,d=void 0===f?null:f,p=t.classes,m=void 0===p?[]:p,g=t.attributes,y=void 0===g?{}:g,v=t.styles,b=void 0===v?{}:v;if(e){var _=e.prefix,w=e.iconName,k=e.icon;return iq(YM({type:"icon"},e),function(){return JU("beforeDOMElementCreation",{iconDefinition:e,params:t}),eU.autoA11y&&(h?y["aria-labelledby"]="".concat(eU.replacementClass,"-title-").concat(d||oU()):(y["aria-hidden"]="true",y.focusable="false")),sq({icons:{main:lq(k),mask:a?lq(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:w,transform:YM(YM({},rU),r),symbol:i,title:h,maskId:l,titleId:d,extra:{attributes:y,styles:b,classes:m}})})}},Uq={mixout:function(){return{icon:(e=jq,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:eq(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:eq(o||{})),e(r,YM(YM({},n),{},{mask:o}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Dq,e.no
3649deCallback=Mq,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?hj:t,r=e.callback;return Dq(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,o=t.titleId,i=t.prefix,s=t.transform,a=t.symbol,c=t.mask,l=t.maskId,u=t.extra;return new Promise(function(t,h){Promise.all([hq(n,i),c.iconName?hq(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(c){var h=ZM(c,2),f=h[0],d=h[1];t([e,sq({icons:{main:f,mask:d},prefix:i,iconName:n,transform:s,symbol:a,maskId:l,title:r,titleId:o,extra:u,watchable:!0})])}).catch(h)})},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.transform,s=cU(e.styles);return s.length>0&&(r.style=s),lU(i)&&(t=ZU("generateAbstractTransformGrouping",{main:o,transform:i,containerWidth:o.width,iconWidth:o.width})),n.push(t||o.icon),{children:n,attributes:r}}}},qq={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return iq({type:"layer"},function(){JU("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e(function(e){Array.isArray(e)?e.map(function(e){n=n.concat(e.abstract)}):n=n.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(eU.cssPrefix,"-layers")].concat(ej(r)).join(" ")},children:n}]})}}}},Fq={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,o=t.classes,i=void 0===o?[]:o,s=t.attributes,a=void 0===s?{}:s,c=t.styles,l=void 0===c?{}:c;return iq({type:"counter",content:e},function(){return JU("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.title,r=e.extra,o=YM(YM(YM({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=cU(r.styles);i.length>0&&(o.style=i);var s=[];return s.push({tag:"span",attributes:o,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}({content:e.toString(),title:r,extra:{attributes:a,styles:l,classes:["".concat(eU.cssPrefix,"-layers-counter")].concat(ej(i))}})})}}}},Bq={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?rU:n,o=t.title,i=void 0===o?null:o,s=t.classes,a=void 0===s?[]:s,c=t.attributes,l=void 0===c?{}:c,u=t.styles,h=void 0===u?{}:u;return iq({type:"text",content:e},function(){return JU("beforeDOMElementCreation",{content:e,params:t}),aq({content:e,transform:YM(YM({},rU),r),title:i,extra:{attributes:l,styles:h,classes:["".concat(eU.cssPrefix,"-layers-text")].concat(ej(a))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,o=t.extra,i=null,s=null;if(_j){var a=parseInt(getComputedStyle(e).fontSize,10),c=e.getBoundingClientRect();i=c.width/a,s=c.height/a}return eU.autoA11y&&!n&&(o.attributes["aria-hidden"]="true"),Promise.resolve([e,aq({content:e.innerHTML,width:i,height:s,transform:r,title:n,extra:o,watchable:!0})])}}},Vq=new RegExp('"',"ug"),zq=[1105920,1112319];function $q(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(function(r,o){if(null!==e.getAttribute(n))return r();var i,s,a,c=iU(e.children).filter(function(e){return e.getAttribute(Tj)===t})[0],l=uj.getComputedStyle(e,t),u=l.getPropertyValue("font-family").match(Fj),h=l.getPropertyValue("font-weight"),f=l.getPropertyValue("content");if(c&&!u)return e.removeChild(c),r();if(u&&"none"!==f&&""!==f){var d=l.getPropertyValue("content"),p=~["Sharp"].indexOf(u[2])?Ij:Nj,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(u[2])?Dj[p][u[2].toLowerCase()]:Bj[p][h],g=function(e){var t,n,r,o,i,s=e.replace(Vq,""),a=(n=0,o=(t=s).length,(i=t.charCodeAt(n))>=55296&&i<=56319&&o>n+1&&(r=t.charCodeAt(n+1))>=56320&&r<=57343?1024*(i-55296)+r-56320+65536:i),c=a>=zq[0]&&a<=zq[1],l=2===s.length&&s[0]===s[1];return{value:TU(l?s[0]:s),isSecondary:c||l}}(d),y=g.value,v=g.isSecondary,b=u[0].startsWith("FontAwesome"),_=qU(m,y),w=_;if(b){var k=(s=RU[i=y],a=qU("fas",i),s||(a?{prefix:"fas",iconName:a}:null)||{prefix:null,iconName:null});k.iconName&&k.prefix&&(_=k.iconName,m=k.prefix)}if(!_||v||c&&c.getAttribute(Sj)===m&&c.getAttribute(xj)===w)r();else{e.setAttribute(n,w),c&&e.removeChild(c);var E={iconName:null,title:null,titleId:null,prefix:null,transform:rU,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},T=E.extra;T.attributes[Tj]=t,hq(_,m).then(function(o){var i=sq(YM(YM({},E),{},{icons:{main:o,mask:{prefix:null,iconName:null,rest:[]}},prefix:m,iconName:w,extra:T,watchable:!0})),s=hj.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(s,e.firstChild):e.appendChild(s),s.outerHTML=i.map(function(e){return vU(e)}).join("\n"),e.removeAttribute(n),r()}).catch(o)}}else r()})}function Hq(e){return Promise.all([$q(e,"::before"),$q(e,"::after")])}function Wq(e){return!(e.parentNode===document.head||~Aj.indexOf(e.tagName.toUpperCase())||e.getAttribute(Tj)||e.parentNode&&"svg"===e.parentNode.tagName)}function Gq(e){if(bj)return new Promise(function(t,n){var r=iU(e.querySelectorAll("*")).filter(Wq).map(Hq),o=gq("searchPseudoElements");xq(),Promise.all(r).then(function(){o(),Oq(),t()}).catch(function(){o(),Oq(),n()})})}var Kq=!1,Yq=function(e){return e.toLowerCase().split(" ").reduce(function(e,t){var n=t.toLowerCase().split("-"),r=n[0],o=n.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Qq={mixout:function(){return{parse:{transform:function(e){return Yq(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=Yq(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,o=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},s="translate(".concat(32*n.x,", ").concat(32*n.y,") "),a="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),c="rotate(".concat(n.rotate," 0 0)"),l={outer:i,inner:{transform:"".concat(s," ").concat(a," ").concat(c)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:YM({},l.outer),children:[{tag:"g",attributes:YM({},l.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:YM(YM({},t.icon.attributes),l.path)}]}]}}}},Xq={x:0,y:0,width:"100%",height:"100%"};function Jq(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var Zq,eF={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?HU(n.split(" ").map(function(e){return e.trim()})):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=VU()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.mask,s=e.maskId,a=e.transform,c=o.width,l=o.icon,u=i.width,h=i.icon,f=function(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(s," ").concat(a)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}
3649({transform:a,containerWidth:u,iconWidth:c}),d={tag:"rect",attributes:YM(YM({},Xq),{},{fill:"white"})},p=l.children?{children:l.children.map(Jq)}:{},m={tag:"g",attributes:YM({},f.inner),children:[Jq(YM({tag:l.tag,attributes:YM(YM({},l.attributes),f.path)},p))]},g={tag:"g",attributes:YM({},f.outer),children:[m]},y="mask-".concat(s||oU()),v="clip-".concat(s||oU()),b={tag:"mask",attributes:YM(YM({},Xq),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[d,g]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(t=h,"g"===t.tag?t.children:[t])},b]};return n.push(_,{tag:"rect",attributes:YM({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(y,")")},Xq)}),{children:n,attributes:r}}}};Zq={mixoutsTo:rq}.mixoutsTo,GU=[dU,Uq,qq,Fq,Bq,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Gq,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?hj:t;eU.searchPseudoElements&&Gq(n)}}},{mixout:function(){return{dom:{unwatch:function(){xq(),Kq=!0}}}},hooks:function(){return{bootstrap:function(){Cq(XU("mutationObserverCallbacks",{}))},noAuto:function(){Aq&&Aq.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Kq?Oq():Cq(XU("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},Qq,eF,{provides:function(e){var t=!1;uj.matchMedia&&(t=uj.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:YM(YM({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=YM(YM({},r),{},{attributeName:"opacity"}),i={tag:"circle",attributes:YM(YM({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:YM(YM({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:YM(YM({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:YM(YM({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:YM(YM({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:YM(YM({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:YM(YM({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}],KU={}
3649,Object.keys(YU).forEach(function(e){-1===QU.indexOf(e)&&delete YU[e]}),GU.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){"function"==typeof t[e]&&(Zq[e]=t[e]),"object"===QM(t[e])&&Object.keys(t[e]).forEach(function(n){Zq[e]||(Zq[e]={}),Zq[e][n]=t[e][n]})}),e.hooks){var n=e.hooks();Object.keys(n).forEach(function(e){KU[e]||(KU[e]=[]),KU[e].push(n[e])})}e.provides&&e.provides(YU)});var tF=rq.config,nF=rq.library,rF=rq.parse,oF=rq.icon;function iF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iF(Object(n),!0).forEach(function(t){cF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aF(e){return(aF="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cF(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lF(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var uF="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},hF={exports:{}};!function(e){var t,n,r,o,i,s,a,c,l,u,h,f,d,p,m;t=uF,n=function(e,t,r){if(!c(t)||u(t)||h(t)||f(t)||a(t))return t;var o,i=0,s=0;if(l(t))for(o=[],s=t.length;i<s;i++)o.push(n(e,t[i],r));else for(var d in o={},t)Object.prototype.hasOwnProperty.call(t,d)&&(o[e(d,r)]=n(e,t[d],r));return o},r=function(e){return d(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=r(e);return t.substr(0,1).toUpperCase()+t.substr(1)},i=function(e,t){return function(e,t){var n=(t=t||{}).separator||"_",r=t.split||/(?=[A-Z])/;return e.split(r).join(n)}(e,t).toLowerCase()},s=Object.prototype.toString,a=function(e){return"function"==typeof e},c=function(e){return e===Object(e)},l=function(e){return"[object Array]"==s.call(e)},u=function(e){return"[object Date]"==s.call(e)},h=function(e){return"[object RegExp]"==s.call(e)},f=function(e){return"[object Boolean]"==s.call(e)},d=function(e){return(e-=0)==e},p=function(e,t){var n=t&&"process"in t?t.process:t;return"function"!=typeof n?e:function(t,r){return n(t,e,r)}},m={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(e,t){return n(p(r,t),e)},decamelizeKeys:function(e,t){return n(p(i,t),e,t)},pascalizeKeys:function(e,t){return n(p(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}},e.exports?e.exports=m:t.humps=m}(hF);var fF=hF.exports,dF=["class","style"];function pF(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof e)return e;var r=(e.children||[]).map(function(e){return pF(e)}),o=Object.keys(e.attributes||{}).reduce(function(t,n){var r=e.attributes[n];switch(n){case"class":t.class=r.split(/\s+/).reduce(function(e,t){return e[t]=!0,e},{});break;case"style":t.style=r.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n=t.indexOf(":"),r=fF.camelize(t.slice(0,n)),o=t.slice(n+1).trim();return e[r]=o,e},{});break;default:t.attrs[n]=r}return t},{attrs:{},class:{},style:{}});n.class;var i=n.style,s=void 0===i?{}:i,a=lF(n,dF);return b(e.tag,sF(sF(sF({},t),{},{class:o.class,style:sF(sF({},o.style),s)},o.attrs),a),r)}var mF=!1;try{mF=!0}catch(Vz){}function gF(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?cF({},e,t):{}}function yF(e){return e&&"object"===aF(e)&&e.prefix&&e.iconName&&e.icon?e:rF.icon?rF.icon(e):null===e?null:"object"===aF(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}
3649var vF=y({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(e){return[!0,!1,"horizontal","vertical","both"].indexOf(e)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(e){return["right","left"].indexOf(e)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(e){return[90,180,270].indexOf(Number.parseInt(e,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(e){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(e)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(e,t){var n=t.attrs,r=v(function(){return yF(e.icon)}),o=v(function(){return gF("classes",function(e){var t,n=(cF(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":!0===e.flip,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip},"fa-".concat(e.size),null!==e.size),cF(t,"fa-rotate-".concat(e.rotation),null!==e.rotation),cF(t,"fa-pull-".concat(e.pull),null!==e.pull),cF(t,"fa-swap-opacity",e.swapOpacity),cF(t,"fa-bounce",e.bounce),cF(t,"fa-shake",e.shake),cF(t,"fa-beat",e.beat),cF(t,"fa-fade",e.fade),cF(t,"fa-beat-fade",e.beatFade),cF(t,"fa-flash",e.flash),cF(t,"fa-spin-pulse",e.spinPulse),cF(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(e){return n[e]?e:null}).filter(function(e){return e})}(e))}),i=v(function(){return gF("transform","string"==typeof e.transform?rF.transform(e.transform):e.transform)}),s=v(function(){return gF("mask",yF(e.mask))}),a=v(function(){return oF(r.value,sF(sF(sF(sF({},o.value),i.value),s.value),{},{symbol:e.symbol,title:e.title,titleId:e.titleId,maskId:e.maskId}))});h(a,function(e){if(!e)return function(){var e;!mF&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find one or more icon(s)",r.value,s.value)},{immediate:!0});var c=v(function(){return a.value?pF(a.value.abstract[0],{},n):null});return function(){return c.value}}}),bF={prefix:"fab",iconName:"spotify",icon:[496,512,[],"f1bc","M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm100.7 364.9c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4zm26.9-65.6c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm31-76.2c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3z"]},_F={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232H328c13.3 0 24 10.7 24 24s-10.7 24-24 24H184c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},wF={prefix:"fas",iconName:"beer-mug-empty",icon:[512,512,["beer"],"f0fc","M32 64c0-17.7 14.3-32 32-32H352c17.7 0 32 14.3 32 32V96h51.2c42.4 0 76.8 34.4 76.8 76.8V274.9c0 30.4-17.9 57.9-45.6 70.2L384 381.7V416c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V64zM384 311.6l56.4-25.1c4.6-2.1 7.6-6.6 7.6-11.7V172.8c0-7.1-5.7-12.8-12.8-12.8H384V311.6zM160 144c0-8.8-7.2-16-16-16s-16 7.2-16 16V368c0 8.8 7.2 16 16 16s16-
36497.2 16-16V144zm64 0c0-8.8-7.2-16-16-16s-16 7.2-16 16V368c0 8.8 7.2 16 16 16s16-7.2 16-16V144zm64 0c0-8.8-7.2-16-16-16s-16 7.2-16 16V368c0 8.8 7.2 16 16 16s16-7.2 16-16V144z"]},kF={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M32 32H480c17.7 0 32 14.3 32 32V96c0 17.7-14.3 32-32 32H32C14.3 128 0 113.7 0 96V64C0 46.3 14.3 32 32 32zm0 128H480V416c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V160zm128 80c0 8.8 7.2 16 16 16H336c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16z"]},EF={prefix:"fas",iconName:"motorcycle",icon:[640,512,[127949],"f21c","M280 32c-13.3 0-24 10.7-24 24s10.7 24 24 24h57.7l16.4 30.3L256 192l-45.3-45.3c-12-12-28.3-18.7-45.3-18.7H64c-17.7 0-32 14.3-32 32v32h96c88.4 0 160 71.6 160 160c0 11-1.1 21.7-3.2 32h70.4c-2.1-10.3-3.2-21-3.2-32c0-52.2 25-98.6 63.7-127.8l15.4 28.6C402.4 276.3 384 312 384 352c0 70.7 57.3 128 128 128s128-57.3 128-128s-57.3-128-128-128c-13.5 0-26.5 2.1-38.7 6L418.2 128H480c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32H459.6c-7.5 0-14.7 2.6-20.5 7.4L391.7 78.9l-14-26c-7-12.9-20.5-21-35.2-21H280zM462.7 311.2l28.2 52.2c6.3 11.7 20.9 16 32.5 9.7s16-20.9 9.7-32.5l-28.2-52.2c2.3-.3 4.7-.4 7.1-.4c35.3 0 64 28.7 64 64s-28.7 64-64 64s-64-28.7-64-64c0-15.5 5.5-29.7 14.7-40.8zM187.3 376c-9.5 23.5-32.5 40-59.3 40c-35.3 0-64-28.7-64-64s28.7-64 64-64c26.9 0 49.9 16.5 59.3 40h66.4C242.5 268.8 190.5 224 128 224C57.3 224 0 281.3 0 352s57.3 128 128 128c62.5 0 114.5-44.8 125.8-104H187.3zM128 384a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},TF={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},SF={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H352c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V432c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H160c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},xF={prefix:"fas",iconName:"arrow-up-right-from-square",icon:[512,512,["external-link"],"f08e","M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"]},OF={prefix:"fas",iconName:"volume-high",icon:[640,512,[128266,"volume-up"],"f028","M533.6 32.5C598.5 85.2 640 165.8 640 256s-41.5 170.7-106.4 223.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C557.5 398.2 592 331.2 592 256s-34.5-142.2-88.7-186.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM473.1 107c43.2 35.2 70.9 88.9 70.9 149s-27.7 113.8-70.9 149c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C475.3 341.3 496 301.1 496 256s-20.7-85.3-53.2-111.8c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zm-60.5 74.5C434.1 199.1 448 225.9 448 256s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM301.1 34.8C312.6 40 320 51.4 320 64V448c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3z"]},AF={prefix:"fas",iconName:"cake-candles",icon:[448,512,[127874,"birthday-cake","cake"],"f1fd","M86.4 5.5L61.8 47.6C58 54.1 56 61.6 56 69.2V72c0 22.1 17.9 40 40 40s40-17.9 40-40V69.2c0-7.6-2-15-5.8-21.6L105.6 5.5C103.6 2.1 100 0 96 0s-7.6 2.1-9.6 5.5zm128 0L189.8 47.6c-3.8 6.5-5.8 14-5.8 21.6V72c0 22.1 17.9 40 40 40s40-17.9 40-40V69.2c0-7.6-2-15-5.8-21.6L233.6 5.5C231.6 2.1 228 0 224 0s-7.6 2.1-9.6 5.5zM317.8 47.6c-3.8 6.5-5.8 14-5.8 21.6V72c0 22.1 17.9 40 40 40s40-17.9 40-40V69.2c0-7.6-2-15-5.8-21.6L361.6 5.5C359.6 2.1 356 0 352 0s-7.6 2.1-9.6 5.5L317.8 47.6zM128 176c0-17.7-14.3-32-32-32s-32 14.3-32 32v48c-35.3 0-64 28.7-64 64v71c8.3 5.2 18.1 9 28.8 9c13.5 0 27.2-6.1 38.4-13.4c5.4-3.5 9.9-7.1 13-9.7c1.5-1.3 2.7-2.4 3.5-3.1c.4-.4 .7-.6 .8-.8l.1-.1 0 0 0 0s0 0 0 0s0 0 0 0c3.1-3.2 7.4-4.9 11.9-4.8s8.6 2.1 11.6 5.4l0 0 0 0 .1 .1c.1 .1 .4 .4 .7 .7c.7 .7 1.7 1.7 3.1 3c2.8 2.6 6.8 6.1 11.8 9.5c10.2 7.1 23 13.1 36.3 13.1s26.1-6 36.3-13.1c5-3.5 9-6.9 11.8-9.5c1.4-1.3 2.4-2.3 3.1-3c.3-.3 .6-.6 .7-.7l.1-.1c3-3.5 7.4-5.4 12-5.4s9 2 12 5.4l.1 .1c.1 .1 .4 .4 .7 .7c.7 .7 1.7 1.7 3.1 3c2.8 2.6 6.8 6.1 11.8 9.5c10.2 7.1 23 13.1 36.3 13.1s26.1-6 36.3-13.1c5-3.5 9-6.9 11.8-9.5c1.4-1.3 2.4-2.3 3.1-3c.3-.3 .6-.6 .7-.7l.1-.1c2.9-3.4 7.1-5.3 11.6-5.4s8.7 1.6 11.9 4.8l0 0 0 0 0 0 .1 .1c.2 .2 .4 .4 .8 .8c.8 .7 1.9 1.8 3.5 3.1c3.1 2.6 7.5 6.2 13 9.7c11.2 7.3 24.9 13.4 38.4 13.4c10.7 0 20.5-3.9 28.8-9V288c0-35.3-28.7-64-64-64V176c0-17.7-14.3-32-32-32s-32 14.3-32 32v48H256V176c0-17.7-14.3-32-32-32s-32 14.3-32 32v48H128V176zM448 394.6c-8.5 3.3-18.2 5.4-28.8 5.4c-22.5 0-42.4-9.9-55.8-18.6c-4.1-2.7-7.8-5.4-10.9-7.8c-2.8 2.4-6.1 5-9.8 7.5C329.8 390 310.6 400 288 400s-41.8-10-54.6-18.9c-3.5-2.4-6.7-4.9-9.4-7.2c-2.7 2.3-5.9 4.7-9.4 7.2C201.8 390 182.6 400 160 400s-41.8-10-54.6-18.9c-3.7-2.6-7-5.2-9.8-7.5c-3.1 2.4-6.8 5.1-10.9 7.8C71.2 390.1 51.3 400 28.8 400c-10.6 0-20.3-2.2-28.8-5.4V480c0 17.7 14.3 32 32 32H416c17.7 0 32-14.3 32-32V394.6z"]}
3649,CF={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},NF={prefix:"fas",iconName:"guitar",icon:[512,512,[],"f7a6","M465 7c-9.4-9.4-24.6-9.4-33.9 0L383 55c-2.4 2.4-4.3 5.3-5.5 8.5l-15.4 41-77.5 77.6c-45.1-29.4-99.3-30.2-131 1.6c-11 11-18 24.6-21.4 39.6c-3.7 16.6-19.1 30.7-36.1 31.6c-25.6 1.3-49.3 10.7-67.3 28.6C-16 328.4-7.6 409.4 47.5 464.5s136.1 63.5 180.9 18.7c17.9-17.9 27.4-41.7 28.6-67.3c.9-17 15-32.3 31.6-36.1c15-3.4 28.6-10.5 39.6-21.4c31.8-31.8 31-85.9 1.6-131l77.6-77.6 41-15.4c3.2-1.2 6.1-3.1 8.5-5.5l48-48c9.4-9.4 9.4-24.6 0-33.9L465 7zM208 256a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},IF={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},LF={prefix:"fas",iconName:"list-ul",icon:[512,512,["list-dots"],"f0ca","M64 144a48 48 0 1 0 0-96 48 48 0 1 0 0 96zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM64 464a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm48-208a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z"]},PF={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},RF={prefix:"fas",iconName:"music",icon:[512,512,[127925],"f001","M499.1 6.3c8.1 6 12.9 15.6 12.9 25.7v72V368c0 44.2-43 80-96 80s-96-35.8-96-80s43-80 96-80c11.2 0 22 1.6 32 4.6V147L192 223.8V432c0 44.2-43 80-96 80s-96-35.8-96-80s43-80 96-80c11.2 0 22 1.6 32 4.6V200 128c0-14.1 9.3-26.6 22.8-30.7l320-96c9.7-2.9 20.2-1.1 28.3 5z"]},DF={prefix:"fas",iconName:"calendar",icon:[448,512,[128197,128198],"f133","M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"]},MF={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344V280H168c-13.3 0-24-10.7-24-24s10.7-24 24-24h64V168c0-13.3 10.7-24 24-24s24 10.7 24 24v64h64c13.3 0 24 10.7 24 24s-10.7 24-24 24H280v64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},jF={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},UF={prefix:"fas",iconName:"user-large",icon:[512,512,["user-alt"],"f406","M256 288A144 144 0 1 0 256 0a144 144 0 1 0 0 288zm-94.7 32C72.2 320 0 392.2 0 481.3c0 17 13.8 30.7 30.7 30.7H481.3c17 0 30.7-13.8 30.7-30.7C512 392.2 439.8 320 350.7 320H161.3z"]},qF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="map-pin",n=[128205],r="f276",o="M16 144a144 144 0 1 1 288 0A144 144 0 1 1 16 144zM160 80c8.8 0 16-7.2 16-16s-7.2-16-16-16c-53 0-96 43-96 96c0 8.8 7.2 16 16 16s16-7.2 16-16c0-35.3 28.7-64 64-64zM128 480V317.1c10.4 1.9 21.1 2.9 32 2.9s21.6-1 32-2.9V480c0 17.7-14.3 32-32 32s-32-14.3-32-32z";e.definition={prefix:"fas",iconName:t,icon:[320,512,n,r,o]},e.faMapPin=e.definition,e.prefix="fas",e.iconName=t,e.width=320,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=o,e.aliases=n}(qF);var FF={};
3649!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="arrow-right",n=[8594],r="f061",o="M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z";e.definition={prefix:"fas",iconName:t,icon:[448,512,n,r,o]},e.faArrowRight=e.definition,e.prefix="fas",e.iconName=t,e.width=448,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=o,e.aliases=n}(FF);var BF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="calendar-plus",n=[],r="f271",o="M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192zM224 248c13.3 0 24 10.7 24 24v56h56c13.3 0 24 10.7 24 24s-10.7 24-24 24H248v56c0 13.3-10.7 24-24 24s-24-10.7-24-24V376H144c-13.3 0-24-10.7-24-24s10.7-24 24-24h56V272c0-13.3 10.7-24 24-24z";e.definition={prefix:"fas",iconName:t,icon:[448,512,n,r,o]},e.faCalendarPlus=e.definition,e.prefix="fas",e.iconName=t,e.width=448,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=o,e.aliases=n}(BF);var VF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="map-location-dot",n=["map-marked-alt"],r="f5a0",o="M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152V422.8c0 9.8-6 18.6-15.1 22.3L416 503V200.4zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6V451.8L32.9 502.7C17.1 509 0 497.4 0 480.4V209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77V504.3L192 449.4V255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,o]},e.faMapLocationDot=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=o,e.aliases=n}(VF);var zF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="medal",n=[127941],r="f5a2",o="M4.1 38.2C1.4 34.2 0 29.4 0 24.6C0 11 11 0 24.6 0H133.9c11.2 0 21.7 5.9 27.4 15.5l68.5 114.1c-48.2 6.1-91.3 28.6-123.4 61.9L4.1 38.2zm503.7 0L405.6 191.5c-32.1-33.3-75.2-55.8-123.4-61.9L350.7 15.5C356.5 5.9 366.9 0 378.1 0H487.4C501 0 512 11 512 24.6c0 4.8-1.4 9.6-4.1 13.6zM80 336a176 176 0 1 1 352 0A176 176 0 1 1 80 336zm184.4-94.9c-3.4-7-13.3-7-16.8 0l-22.4 45.4c-1.4 2.8-4 4.7-7 5.1L168 298.9c-7.7 1.1-10.7 10.5-5.2 16l36.3 35.4c2.2 2.2 3.2 5.2 2.7 8.3l-8.6 49.9c-1.3 7.6 6.7 13.5 13.6 9.9l44.8-23.6c2.7-1.4 6-1.4 8.7 0l44.8 23.6c6.9 3.6 14.9-2.2 13.6-9.9l-8.6-49.9c-.5-3 .5-6.1 2.7-8.3l36.3-35.4c5.6-5.4 2.5-14.8-5.2-16l-50.1-7.3c-3-.4-5.7-2.4-7-5.1l-22.4
3649-45.4z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,o]},e.faMedal=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=o,e.aliases=n}(zF);var $F={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="bullhorn",n=[128226,128363],r="f0a1",o="M480 32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9L381.7 53c-48 48-113.1 75-181 75H192 160 64c-35.3 0-64 28.7-64 64v96c0 35.3 28.7 64 64 64l0 128c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V352l8.7 0c67.9 0 133 27 181 75l43.6 43.6c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V300.4c18.6-8.8 32-32.5 32-60.4s-13.4-51.6-32-60.4V32zm-64 76.7V240 371.3C357.2 317.8 280.5 288 200.7 288H192V192h8.7c79.8 0 156.5-29.8 215.3-83.3z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,o]},e.faBullhorn=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=o,e.aliases=n}($F);var HF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="radio",n=[128251],r="f8d7",o="M494.8 47c12.7-3.7 20-17.1 16.3-29.8S494-2.8 481.2 1L51.7 126.9c-9.4 2.7-17.9 7.3-25.1 13.2C10.5 151.7 0 170.6 0 192v4V304 448c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64H218.5L494.8 47zM368 240a80 80 0 1 1 0 160 80 80 0 1 1 0-160zM80 256c0-8.8 7.2-16 16-16h96c8.8 0 16 7.2 16 16s-7.2 16-16 16H96c-8.8 0-16-7.2-16-16zM64 320c0-8.8 7.2-16 16-16H208c8.8 0 16 7.2 16 16s-7.2 16-16 16H80c-8.8 0-16-7.2-16-16zm16 64c0-8.8 7.2-16 16-16h96c8.8 0 16 7.2 16 16s-7.2 16-16 16H96c-8.8 0-16-7.2-16-16z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,o]},e.faRadio=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=o,e.aliases=n}(HF);var WF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="download",n=[],r="f019",o="M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-6
36495.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,o]},e.faDownload=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=o,e.aliases=n}(WF);var GF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="lock",n=[128274],r="f023",o="M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z";e.definition={prefix:"fas",iconName:t,icon:[448,512,n,r,o]},e.faLock=e.definition,e.prefix="fas",e.iconName=t,e.width=448,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=o,e.aliases=n}(GF);var KF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="filter",n=[],r="f0b0",o="M3.9 54.9C10.5 40.9 24.5 32 40 32H472c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9V448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6V320.9L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,o]},e.faFilter=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=o,e.aliases=n}(KF);var YF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="telegram",n=[62462,"telegram-plane"],r="f2c6",o="M248,8C111.033,8,0,119.033,0,256S111.033,504,248,504,496,392.967,496,256,384.967,8,248,8ZM362.952,176.66c-3.732,39.215-19.881,134.378-28.1,178.3-3.476,18.584-10.322,24.816-16.948,25.425-14.4,1.326-25.338-9.517-39.287-18.661-21.827-14.308-34.158-23.215-55.346-37.177-24.485-16.135-8.612-25,5.342-39.5,3.652-3.793,67.107-61.51,68.335-66.746.153-.655.3-3.1-1.154-4.384s-3.59-.849-5.135-.5q-3.283.746-104.608,69.142-14.845,10.194-26.894,9.934c-8.855-.191-25.888-5.006-38.551-9.123-15.531-5.048-27.875-7.717-26.8-16.291q.84-6.7,18.45-13.7,108.446-47.248,144.628-62.3c68.872-28.647,83.183-33.623,92.511-33.789,2.052-.034,6.639.474,9.61,2.885a10.452,10.452,0,0,1,3.53,6.716A43.765,43.765,0,0,1,362.952,176.66Z";e.definition={prefix:"fab",iconName:t,icon:[496,512,n,r,o]},e.faTelegram=e.definition,e.prefix="fab",e.iconName=t,e.width=496,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=o,e.aliases=n}(YF),nF.add({prefix:"fab",iconName:"youtube",icon:[576,512,[61802],"f167","M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"]},{prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]}
3649,{prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},CF,OF,RF,{prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},{prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},{prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]},TF,{prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6H344.3c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z"]},{prefix:"fas",iconName:"ticket",icon:[576,512,[127903],"f145","M64 64C28.7 64 0 92.7 0 128v64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320v64c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V320c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6V128c0-35.3-28.7-64-64-64H64zm64 112l0 160c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16zM96 160c0-17.7 14.3-32 32-32H448c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32V160z"]},{prefix:"fab",iconName:"instagram",icon:[448,512,[],"f16d","M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"]},{prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"]},{prefix:"fas",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},EF,DF,NF,UF,SF,{prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s1
36495.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},{prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},{prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"]},bF,{prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6h96 32H424c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},DF,{prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},{prefix:"fas",iconName:"share-nodes",icon:[448,512,["share-alt"],"f1e0","M352 224c53 0 96-43 96-96s-43-96-96-96s-96 43-96 96c0 4 .2 8 .7 11.9l-94.1 47C145.4 170.2 121.9 160 96 160c-53 0-96 43-96 96s43 96 96 96c25.9 0 49.4-10.2 66.6-26.9l94.1 47c-.5 3.9-.7 7.8-.7 11.9c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-25.9 0-49.4 10.2-66.6 26.9l-94.1-47c.5-3.9 .7-7.8 .7-11.9s-.2-8-.7-11.9l94.1-47C302.6 213.8 326.1 224 352 224z"]},{prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},{prefix:"fas",iconName:"headphones",icon:[512,512,[127911],"f025","M256 80C149.9 80 62.4 159.4 49.6 262c9.4-3.8 19.6-6 30.4-6c26.5 0 48 21.5 48 48V432c0 26.5-21.5 48-48 48c-44.2 0-80-35.8-80-80V384 336 288C0 146.6 114.6 32 256 32s256 114.6 256 256v48 48 16c0 44.2-35.8 80-80 80c-26.5 0-48-21.5-48-48V304c0-26.5 21.5-48 48-48c10.8 0 21 2.1 30.4 6C449.6 159.4 362.1 80 256 80z"]},{prefix:"fas",iconName:"thumbs-up",icon:[512,512,[128077,61575],"f164","M313.4 32.9c26 5.2 42.9 30.5 37.7 56.5l-2.3 11.4c-5.3 26.7-15.1 52.1-28.8 75.2H464c26.5 0 48 21.5 48 48c0 18.5-10.5 34.6-25.9 42.6C497 275.4 504 288.9 504 304c0 23.4-16.8 42.9-38.9 47.1c4.4 7.3 6.9 15.8 6.9 24.9c0 21.3-13.9 39.4-33.1 45.6c.7 3.3 1.1 6.8 1.1 10.4c0 26.5-21.5 48-48 48H294.5c-19 
36490-37.5-5.6-53.3-16.1l-38.5-25.7C176 420.4 160 390.4 160 358.3V320 272 247.1c0-29.2 13.3-56.7 36-75l7.4-5.9c26.5-21.2 44.6-51 51.2-84.2l2.3-11.4c5.2-26 30.5-42.9 56.5-37.7zM32 192H96c17.7 0 32 14.3 32 32V448c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32V224c0-17.7 14.3-32 32-32z"]},kF,{prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},{prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V72c0-13.3-10.7-24-24-24H40zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H192zM16 232v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V232c0-13.3-10.7-24-24-24H40c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24H88c13.3 0 24-10.7 24-24V392c0-13.3-10.7-24-24-24H40z"]},xF,jF,{prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0H332.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128h80v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]},{prefix:"fas",iconName:"upload",icon:[512,512,[],"f093","M288 109.3V352c0 17.7-14.3 32-32 32s-32-14.3-32-32V109.3l-73.4 73.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l128-128c12.5-12.5 32.8-12.5 45.3 0l128 128c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L288 109.3zM64 352H192c0 35.3 28.7 64 64 64s64-28.7 64-64H448c35.3 0 64 28.7 64 64v32c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V416c0-35.3 28.7-64 64-64zM432 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},{prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},{prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},{prefix:"fab",iconName:"bitcoin",icon:[512,512,[],"f379","M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zm-141.651-35.33c4.937-32.999-20.191-50.739-54.55-62.573l11.146-44.702-27.213-6.781-10.851 43.524c-7.154-1.783-14.502-3.464-21.803-5.13l10.929-43.81-27.198-6.781-11.153 44.686c-5.922-1.349-11.735-2.682-17.377-4.084l.031-.14-37.53-9.37-7.239 29.062s20.191 4.627 19.765 4.913c11.022 2.751 13.014 10.044 12.68 15.825l-12.696 50.925c.76.194 1.744.473 2.829.907-.907-.225-1.876-.473-2.876-.713l-17.796 71.338c-1.349 3.348-4.767 8.37-12.471 6.464.271.395-19.78-4.937-19.78-4.937l-13.51 31.147 35.414 8.827c6.588 1.651 13.045 3.379 19.4 5.006l-11.262 45.213 27.182 6.781 11.153-44.733a1038.209 1038.209 0 0 0 21.687 5.627l-11.115 44.523 27.213 6.781 11.262-45.128c46.404 8.781 81.299 5.239 95.986-36.727 11.836-33.79-.589-53.281-25.004-65.991 17.78-4.098 31.174-15.792 34.747-39.949zm-62.177 87.179c-8.41 33.79-65.308 15.523-83.755 10.943l14.944-59.899c18.446 4.603 77.6 13.717 68.811 48.956zm8.417-87.667c-7.673 30.736-55.031 15.12-70.393 11.292l13.548-54.327c15.363 3.828 64.836 10.973 56.845 43.035z"]},{prefix:"fab",iconName:"ethereum",icon:[320,512,[],"f42e","M311.9 260.8L160 353.6 8 260.8 160 0l151.9 260.8zM160 383.4L8 290.6 160 512l152-221.4-152 92.8z"]},{prefix:"fas",iconName:"trailer",icon:[640,512,[],"e041","M48 32C21.5 32 0 53.5 0 80V336c0 26.5 21.5 48 48 48H65.1c7.8-54.3 54.4-96 110.9-96s103.1 41.7 110.9 96H488h8H608c17.7 0 32-14.3 32-32s-14.3-32-32-32H544V80c0-26.5-21.5-48-48-48H48zM80 96c8.8 0 16 7.2 16 16l0 131.2c-11.4 5.9-22.2 12.9-32 21V112c0-8.8 7.2-16 16-16zm96 128c-5.4 0-10.7 .2-16 .7L160 112c0-8.8 7.2-16 16-16s16 7.2 16 16l0 112.7c-5.3-.5-10.6-.7-16-.7zm80 19.2L256 112c0-8.8 7.2-16 16-16s16 7.2 16 16l0 152.2c-9.8-8.1-20.6-15.2-32-21zM368 96c8.8 0 16 7.2 16 16l0 192c0 8.8-7.2 16-16 16s-16-7.2
3649-16-16l0-192c0-8.8 7.2-16 16-16zm112 16l0 192c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-192c0-8.8 7.2-16 16-16s16 7.2 16 16zM176 480a80 80 0 1 0 0-160 80 80 0 1 0 0 160zm0-112a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},PF,{prefix:"fas",iconName:"comment",icon:[512,512,[128489,61669],"f075","M512 240c0 114.9-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6C73.6 471.1 44.7 480 16 480c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4l0 0 0 0 0 0 0 0 .3-.3c.3-.3 .7-.7 1.3-1.4c1.1-1.2 2.8-3.1 4.9-5.7c4.1-5 9.6-12.4 15.2-21.6c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208z"]},{prefix:"fas",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480V396.4c0-4 1.5-7.8 4.2-10.7L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s5.9-22.8 16.1-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z"]},{prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},{prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},{prefix:"fab",iconName:"x-twitter",icon:[512,512,[],"e61b","M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"]},IF,{prefix:"fas",iconName:"shield",icon:[512,512,[128737,"shield-blank"],"f132","M256 0c4.6 0 9.2 1 13.4 2.9L457.7 82.8c22 9.3 38.4 31 38.3 57.2c-.5 99.2-41.3 280.7-213.6 363.2c-16.7 8-36.1 8-52.8 0C57.3 420.7 16.5 239.2 16 140c-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.8 1 251.4 0 256 0z"]},MF,_F,{prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},EF,NF,RF,wF,{prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},{prefix:"fas",iconName:"maximize",icon:[512,512,["expand-arrows-alt"],"f31e","M200 32H56C42.7 32 32 42.7 32 56V200c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l40-40 79 79-79 79L73 295c-6.9-6.9-17.2-8.9-26.2-5.2S32 302.3 32 312V456c0 13.3 10.7 24 24 24H200c9.7 0 18.5-5.8 22.2-14.8s1.7-19.3-5.2-26.2l-40-40 79-79 79 79-40 40c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H456c13.3 0 24-10.7 24-24V312c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2l-40 40-79-79 79-79 40 40c6.9 6.9 17.2 8.9 26.2 5.2s14.8-12.5 14.8-22.2V56c0-13.3-10.7-24-24-24H312c-9.7 0-18.5 5.8-22.2 14.8s-1.7 19.3 5.2 26.2l40 40-79 79-79-79 40-40c6.9-6.9 8.9-17.2 5.2-26.2S209.7 32 200 32z"]},{prefix:"fas",iconName:"minimize",icon:[512,512,["compress-arrows-alt"],"f78c","M456 224H312c-13.3 0-24-10.7-24-24V56c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l40 40L442.3 5.7C446 2 450.9 0 456 0s10 2 13.7 5.7l36.7 36.7C510 46 512 50.9 512 56s-2 10-5.7 13.7L433 143l40 40c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8zm0 64c9.7 0 18.5 5.8 22.2 14.8s1.7 19.3-5.2 26.2l-40 40 73.4 73.4c3.6 3.6 5.7 8.5 5.7 13.7s-2 10-5.7 13.7l-36.7 36.7C466 510 461.1 512 456 512s-10-2-13.7-5.7L369 433l-40 40c-6.9 6.9-17.2 8.9-26.2 5.2s-14.8-12.5-14.8-22.2V312c0-13.3 10.7-24 24-24H456zm-256 0c13.3 0 24 10.7 24 24V456c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-40-40L69.7 506.3C66 510 61.1 512 56 512s-10-2-13.7-5.7L5.7 469.7C2 466 0 461.1 0 456s2-10 5.7-13.7L79 369 39 329c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8H200zM56 224c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l40-40L5.7 69.7C2 66 0 61.1 0 56s2-10 5.7-13.7L42.3 5.7C46 2 50.9 0 56 0s10 2 13.7 5.7L143 79l40-40c6.9-6.9 17.2-8.9 26.2-5.2s14.8 12.5 14.8 22.2V200c0 13.3-10.7 24-24 24H56z"]},{prefix:"fas",iconName:"road",icon:[576,512,[128739],"f018","M256 32H181.2c-27.1 0-51.3 17.1-60.3 42.6L3.1 407.2C1.1 413 0 419.2 0 425.4C0 455.5 24.5 480 54.6 480H256V416c0-17.7 14.3-32 32-32s32 14.3 32 32v64H521.4c30.2 0 54.6-24.5 54.6-54.6c0-6.2-1.1-12.4-3.1-18.2L455.1 74.6C446 49.1 421.9 32 394.8 32H320V96c0 17.7-14.3 32-32 32s-32-14.3-32-32V32zm64 192v64c0 17.7-14.3 32-32 32s-32-14.3-32-32V224c0-17.7 14.3-32 32-32s32 14.3 32 32z"]},{prefix:"fas",iconName:"asterisk",icon:[384,512,[10033,61545],"2a","M192 32c17.7 0 32 14.3 32 32V199.5l111.5-66.9c15.2-9.1 34.8-4.2 43.9 11s4.2 34.8-11 43.9L254.2 256l114.3 68.6c15.2 9.1 20.1 28.7 11 43.9s-28.7 20.1-43.9 11L224 312.5V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V312.5L48.5 379.4c-15.2 9.1-34.8 4.2-43.9-11s-4.2-34.8 11-43.9L129.8 256 15.5 187.4c-15.2-9.1-20.1-28.7-11-43.9s28.7-20.1 43.9-11L160 199.5V64c0-17.7 14.3-32 32-32z"]},bF,{prefix:"fab",iconName:"deezer",icon:[576,512,[],"e077","M451.46,244.71H576V172H451.46Zm0-173.89v72.67H576V70.82Zm0,275.06H576V273.2H451.46ZM0,447.09H124.54V374.42H0Zm150.47,0H275V374.42H150.47Zm150.52,0H425.53V374.42H301Zm150.47,0H576V374.42H451.46ZM301,345.88H425.53V273.2H301Zm-150.52,0H275V273.2H150.47Zm0-101.17H275V172H150.47Z"]},{prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},{prefix:"fas",iconName:"wand-magic-sparkles",icon:[576,512,["magic-wand-sparkles"],"e2ca","M234.7 42.7L197 56.8c-3 1.1-5 4-5 7.2s2 6.1 5 7.2l37.7 14.1L248.8 123c1.1 3 4 5 7.2 5s6.1-2 7.2-5l14.1-37.7L315 71.2c3-1.1 5-4 5-7.2s-2-6.1-5-7.2L277.3 42.7 263.2 5c-1.1-3-4-5-7.2-5s-6.1 2-7.2 5L234.7 42.7zM4
36496.1 395.4c-18.7 18.7-18.7 49.1 0 67.9l34.6 34.6c18.7 18.7 49.1 18.7 67.9 0L529.9 116.5c18.7-18.7 18.7-49.1 0-67.9L495.3 14.1c-18.7-18.7-49.1-18.7-67.9 0L46.1 395.4zM484.6 82.6l-105 105-23.3-23.3 105-105 23.3 23.3zM7.5 117.2C3 118.9 0 123.2 0 128s3 9.1 7.5 10.8L64 160l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L128 160l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L128 96 106.8 39.5C105.1 35 100.8 32 96 32s-9.1 3-10.8 7.5L64 96 7.5 117.2zm352 256c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L416 416l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L480 416l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L480 352l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L416 352l-56.5 21.2z"]},{prefix:"fas",iconName:"bold",icon:[384,512,[],"f032","M0 64C0 46.3 14.3 32 32 32H80 96 224c70.7 0 128 57.3 128 128c0 31.3-11.3 60.1-30 82.3c37.1 22.4 62 63.1 62 109.7c0 70.7-57.3 128-128 128H96 80 32c-17.7 0-32-14.3-32-32s14.3-32 32-32H48V256 96H32C14.3 96 0 81.7 0 64zM224 224c35.3 0 64-28.7 64-64s-28.7-64-64-64H112V224H224zM112 288V416H256c35.3 0 64-28.7 64-64s-28.7-64-64-64H224 112z"]},{prefix:"fas",iconName:"italic",icon:[384,512,[],"f033","M128 64c0-17.7 14.3-32 32-32H352c17.7 0 32 14.3 32 32s-14.3 32-32 32H293.3L160 416h64c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H90.7L224 96H160c-17.7 0-32-14.3-32-32z"]},{prefix:"fas",iconName:"strikethrough",icon:[512,512,[],"f0cc","M161.3 144c3.2-17.2 14-30.1 33.7-38.6c21.1-9 51.8-12.3 88.6-6.5c11.9 1.9 48.8 9.1 60.1 12c17.1 4.5 34.6-5.6 39.2-22.7s-5.6-34.6-22.7-39.2c-14.3-3.8-53.6-11.4-66.6-13.4c-44.7-7-88.3-4.2-123.7 10.9c-36.5 15.6-64.4 44.8-71.8 87.3c-.1 .6-.2 1.1-.2 1.7c-2.8 23.9 .5 45.6 10.1 64.6c4.5 9 10.2 16.9 16.7 23.9H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H270.1c-.1 0-.3-.1-.4-.1l-1.1-.3c-36-10.8-65.2-19.6-85.2-33.1c-9.3-6.3-15-12.6-18.2-19.1c-3.1-6.1-5.2-14.6-3.8-27.4zM348.9 337.2c2.7 6.5 4.4 15.8 1.9 30.1c-3 17.6-13.8 30.8-33.9 39.4c-21.1 9-51.7 12.3-88.5 6.5c-18-2.9-49.1-13.5-74.4-22.1c-5.6-1.9-11-3.7-15.9-5.4c-16.8-5.6-34.9 3.5-40.5 20.3s3.5 34.9 20.3 40.5c3.6 1.2 7.9 2.7 12.7 4.3l0 0 0 0c24.9 8.5 63.6 21.7 87.6 25.6l0 0 .2 0c44.7 7 88.3 4.2 123.7-10.9c36.5-15.6 64.4-44.8 71.8-87.3c3.6-21 2.7-40.4-3.1-58.1H335.1c7 5.6 11.4 11.2 13.9 17.2z"]},{prefix:"fas",iconName:"list-ol",icon:[512,512,["list-1-2","list-numeric"],"f0cb","M24 56c0-13.3 10.7-24 24-24H80c13.3 0 24 10.7 24 24V176h16c13.3 0 24 10.7 24 24s-10.7 24-24 24H40c-13.3 0-24-10.7-24-24s10.7-24 24-24H56V80H48C34.7 80 24 69.3 24 56zM86.7 341.2c-6.5-7.4-18.3-6.9-24 1.2L51.5 357.9c-7.7 10.8-22.7 13.3-33.5 5.6s-13.3-22.7-5.6-33.5l11.1-15.6c23.7-33.2 72.3-35.6 99.2-4.9c21.3 24.4 20.8 60.9-1.1 84.7L86.8 432H120c13.3 0 24 10.7 24 24s-10.7 24-24 24H32c-9.5 0-18.2-5.6-22-14.4s-2.1-18.9 4.3-25.9l72-78c5.3-5.8 5.4-14.6 .3-20.5zM224 64H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 160H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 160H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},LF,{prefix:"fas",iconName:"eraser",icon:[576,512,[],"f12d","M290.7 57.4L57.4 290.7c-25 25-25 65.5 0 90.5l80 80c12 12 28.3 18.7 45.3 18.7H288h9.4H512c17.7 0 32-14.3 32-32s-14.3-32-32-32H387.9L518.6 285.3c25-25 25-65.5 0-90.5L381.3 57.4c-25-25-65.5-25-90.5 0zM297.4 416H288l-105.4 0-80-80L227.3 211.3 364.7 348.7 297.4 416z"]},{prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M224 0a128 128 0 1 1 0 256A128 128 0 1 1 224 0zM178.3 304h91.4c20.6 0 40.4 3.5 58.8 9.9C323 331 320 349.1 320 368c0 59.5 29.5 112.1 74.8 144H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM352 368a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H512V304c0-8.8-7.2-16-16-16z"]},{prefix:"fas",iconName:"heart",icon:[512,512,[128153,128154,128155,128156,128420,129293,129294,129505,9829,10084,61578],"f004","M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z"]},{prefix:"fab",iconName:"tiktok",icon:[448,512,[],"e07b","M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"]},{prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z"]},{prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},{prefix:"fas",iconName:"map",icon:[576,512,[128506,62072],"f279","M384 476.1L192 421.2V35.9L384 90.8V476.1zm32-1.2V88.4L543.1 37.5c15.8-6.3 32.9 5.3 32.9 22.3V394.6c0 9.8-6 18.6-15.1 22.3L416 474.8zM15.1 95.1L160 37.2V423.6L32.9 474.5C17.1 480.8 0 469.2 0 452.2V117.4c0-9.8 6-18.6 15.1-22.3z"]},AF,{prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]}
3649,{prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zm64 80v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm128 0v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H336zM64 400v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H208zm112 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H336c-8.8 0-16 7.2-16 16z"]},qF.faMapPin,FF.faArrowRight,BF.faCalendarPlus,VF.faMapLocationDot,zF.faMedal,$F.faBullhorn,HF.faRadio,WF.faDownload,GF.faLock,KF.faFilter,YF.faTelegram),tF.autoAddCss=!1;const QF=Ut(e=>{e.vueApp.component("FaIcon",vF)});function XF(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:i,onRegisterError:s}=e,a=l(!1),c=l(!1),u=function(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:i,onRegisterError:s}=e;let a,c;return c=async function(){if("serviceWorker"in navigator){if(a=await zn(()=>import("./workbox-window.prod.es5.BstLprmM.js"),__vite__mapDeps([]),import.meta.url).then(({Workbox:e})=>new e("/sw.js",{scope:"/",type:"classic"})).catch(e=>{s?.(e)}),!a)return;a.addEventListener("activated",e=>{(e.isUpdate||e.isExternal)&&window.location.reload()}),a.addEventListener("installed",e=>{e.isUpdate||r?.()}),a.register({immediate:t}).then(e=>{i?i("/sw.js",e):o?.(e)}).catch(e=>{s?.(e)})}}(),async(e=!0)=>{await c}}({immediate:t,onNeedRefresh(){a.value=!0,n?.()},onOfflineReady(){c.value=!0,r?.()},onRegistered:o,onRegisteredSW:i,onRegisterError:s});return{updateServiceWorker:u,offlineReady:c,needRefresh:a}}const JF=Ut({name:"vite-pwa:nuxt:client:plugin",enforce:"post",parallel:!0,setup(e){const n=l(!1),r=l(!1),o=l(!1),i=l(!0),a=navigator.userAgent,c=a.match(/iPhone|iPad|iPod/),u="standalone",h=window.matchMedia(`(display-mode: ${u})`).matches,f=l(!!(h||c&&!a.match(/Safari/))),d=l(f.value);let p;window.matchMedia(`(display-mode: ${u})`).addEventListener("change",e=>{!d.value&&e.matches&&(d.value=!0)});const{offlineReady:m,needRefresh:g,updateServiceWorker:y}=XF({immediate:!0,onRegisterError(t){e.hooks.callHook("service-worker:registration-failed",{error:t}),n.value=!0},onRegisteredSW(t,n){p=n,e.hooks.callHook("service-worker:registered",{url:t,registration:n}),"activated"===n?.active?.state?(r.value=!0,e.hooks.callHook("service-worker:activated",{url:t,registration:n})):n?.installing&&n.installing.addEventListener("statechange",o=>{const i=o.target;r.value="activated"===i.state,r.value&&e.hooks.callHook("service-worker:activated",{url:t,registration:n})})}});let v=()=>Promise.resolve(void 0),b=()=>{};if(!i.value){let e;const t=t=>{t.preventDefault(),e=t,o.value=!0};window.addEventListener("beforeinstallprompt",t),window.addEventListener("appinstalled",()=>{e=void 0,o.value=!1}),b=()=>{e=void 0,o.value=!1,window.removeEventListener("beforeinstallprompt",t),i.value=!0,localStorage.setItem(undefined,"true")},v=async()=>{if(o.value&&e)return o.value=!1,await s(),e.prompt(),await e.userChoice;o.value=!1}}return{provide:{pwa:t({isInstalled:f,isPWAInstalled:d,showInstallPrompt:o,cancelInstall:b,install:v,swActivated:r,registrationError:n,offlineReady:m,needRefresh:g,updateServiceWorker:y,cancelPrompt:async()=>{m.value=!1,g.value=!1},getSWRegistration:()=>p})}}}}),ZF=[vo,_o,zs,Ws,Qs,Xs,Js,ea,ta,Yf,Qf,od,ey,ty,ny,ry,Hy,GM,QF,JF],eB=y({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const o in e.route)Object.defineProperty(r,o,{get:()=>t===e.renderKey?e.route[o]:n[o]});return _(Ln,g(r)),()=>b(e.vnode,{ref:e.vnodeRef})}}),tB=y({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=Ft(),i=l(),a=o(Ln,null);let c;n({pageRef:i});const u=o(In,null);let f;const d=r.deferHydration();if(r.isHydrating){const e=r.hooks.hookOnce("app:error",d);Pn().beforeEach(e)}return e.pageKey&&h(()=>e.pageKey,(e,t)=>{e!==t&&r.callHook("page:loading:start")}),()=>b(es,{name:e.name,route:e.route,...t},{default:t=>{const n=function(e,t,n){if(!e)return!1;const r=t.matched.findIndex(e=>e.components?.default===n?.type);if(!r||-1===r)return!1;return t.matched.slice(0,r).some((t,n)=>t.components?.default!==e.matched[n]?.components?.default)||n&&rs({route:t,Component:n})!==rs({route:e,Component:n})}(a,t.route,t.Component),o=a&&a.matched.length===t.route.matched.length;if(!t.Component)return f&&!o?f:void d();if(f&&u&&!u.isCurrent(t.route))return f;
3649if(n&&a&&(!u||u?.isCurrent(a)))return o?f:null;const l=rs(t,e.pageKey);r.isHydrating||function(e,t,n){if(!e)return!1;const r=t.matched.findIndex(e=>e.components?.default===n?.type);return r<t.matched.length-1}(a,t.route,t.Component)||c!==l||r.callHook("page:loading:end"),c=l;const h=!!(e.transition??t.route.meta.pageTransition??eo),p=h&&function(e){const t=e.map(e=>({...e,onAfterLeave:e.onAfterLeave?os(e.onAfterLeave):void 0}));return kn(...t)}([e.transition,t.route.meta.pageTransition,eo,{onAfterLeave:()=>{r.callHook("page:transition:finish",t.Component)}}].filter(Boolean)),m=e.keepalive??t.route.meta.keepalive??false;return f=hs(j,h&&p,((e,t)=>({default:()=>e?b(w,!0===e?{}:e,t):t}))(m,b(M,{suspensible:!0,onPending:()=>r.callHook("page:start",t.Component),onResolve:()=>{s(()=>r.callHook("page:finish",t.Component).then(()=>r.callHook("page:loading:end")).finally(d))}},{default:()=>{const e=b(eB,{key:l||void 0,vnode:t.Component,route:t.route,renderKey:l||void 0,trackRootNodes:h,vnodeRef:i});return m&&(e.type.name=t.Component.type.name||t.Component.type.__name||"RouteProvider"),e}}))).default(),f}})}});const nB=y({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},async setup(e,t){const n=await Zs[e.name]().then(e=>e.default||e);return()=>b(n,e.layoutProps,t.slots)}}),rB=y({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,t){const n=Ft(),r=o(Ln),i=r===Rn()?ns():r,c=v(()=>{let t=a(e.name)??i.meta.layout??"default";return t&&!(t in Zs)&&e.fallback&&(t=a(e.fallback)),t}),u=l();t.expose({layoutRef:u});const h=n.deferHydration();if(n.isHydrating){const e=n.hooks.hookOnce("app:error",h);Pn().beforeEach(e)}return()=>{const n=c.value&&c.value in Zs,r=i.meta.layoutTransition??false;return hs(j,n&&r,{default:()=>b(M,{suspensible:!0,onResolve:()=>{s(h)}},{default:()=>b(oB,{layoutProps:U(t.attrs,{ref:u}),key:c.value||void 0,name:c.value,shouldProvide:!e.name,hasTransition:!!r},t.slots)})}).default()}}}),oB=y({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const n=e.name;return e.shouldProvide&&_(In,{isCurrent:e=>n===(e.meta.layout??"default")}),()=>!n||"string"==typeof n&&!(n in Zs)?t.slots.default?.():b(nB,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}});const iB=new class{prefix="@app:";storeName="@vue-session";storage={};constructor(e,t){e&&(this.storeName=e),t&&(this.prefix=":"===t[t.length]?t:t+":"),"undefined"!=typeof window&&this.syncLocalStorage()}updateLocalStorage(){if("undefined"!=typeof window){const e=JSON.stringify(this.storage);localStorage.setItem(this.storeName,e)}}syncLocalStorage(){if("undefined"!=typeof window){const e=localStorage.getItem(this.storeName);e&&(this.storage=JSON.parse(e))}}_(e){Object.keys(this.storage).length&&this.syncLocalStorage(),e(this.storage),this.updateLocalStorage()}keyName(e){return`${this.prefix}${e}`}parseStorage(){const e={};for(const t in this.storage){const n=new RegExp(this.prefix,"igm");e[t.split(n)[1]]=this.storage[t]}return e}set(e,t){this._(n=>{n[this.keyName(e)]=t})}remove(e){this._(t=>{const n=this.keyName(e);t[n]&&delete t[n]})}destroy(e){"undefined"!=typeof window&&(e?this._(t=>{for(const n in t){const r=new RegExp(this.prefix,"igm"),o=n.split(r)[1];e.includes(o)||delete t[n]}}):(this.storage={},localStorage.removeItem(this.storeName)))}get(e){const t=this.keyName(e);return this.storage[t]}getStorage(){return this.parseStorage()}}("@motofestbr:storage"),sB={class:"__cookie-alert"},aB={class:"container"},cB={class:"row"},lB={class:"col-12"},uB=(e=>(W("data-v-0d809571"),e=e(),G(),e))(()=>B("strong",null,"Atenção!",-1)),hB=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},fB=hB(y({__name:"CookieAlert",setup(e){const t=l(!0),n=()=>{t.value=!0,iB.set("cookies","accepted")};return O(()=>{iB.get("cookies")||(t.value=!1)}),(e,r)=>{const o=H;return q(),F("div",sB,[B("div",aB,[B("div",cB,[B("div",lB,[a(t)?$("",!0):(q(),F("div",{key:0,class:V(["alert alert-info alert-dismissible fade",{show:!a(t)}]),role:"alert"},[uB,z(" Este site utiliza cookies para melhorar a experiência do usuário. "),N(o,{type:"button",class:"btn-close",onClick:n,"data-bs-dismiss":"alert","aria-label":"Close"})],2))])])])])}}}),[["__scopeId","data-v-0d809571"]]),dB=l(null),pB=()=>
3649{const e=Hs("onboarding:showModal",()=>!1),t=Hs("onboarding:selectedRole",()=>null);return{showModal:e,selectedRole:t,pendingAction:dB,setPendingAction:e=>{dB.value=e},executePendingAction:async()=>{if(dB.value)try{await dB.value()}catch(e){console.error("Error executing pending action:",e)}finally{dB.value=null}},openOnboarding:n=>{n&&(t.value=n),e.value=!0},closeOnboarding:()=>{e.value=!1,t.value=null}}};class mB{uid;email;emailVerified;displayName;isAnonymous;photoURL;providerData;stsTokenManager;createdAt;lastLoginAt;apiKey;appName;constructor(e){this.uid=e.uid,this.email=e.email,this.emailVerified=e.emailVerified,this.displayName=e.displayName,this.isAnonymous=e.isAnonymous,this.photoURL=e.photoURL||"",this.providerData=e.providerData,this.stsTokenManager=e.stsTokenManager,this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this.apiKey=e.apiKey,this.appName=e.appName}toJSON(){return{uid:this.uid,email:this.email,emailVerified:this.emailVerified,displayName:this.displayName,isAnonymous:this.isAnonymous,photoURL:this.photoURL||"",providerData:this.providerData,stsTokenManager:this.stsTokenManager,createdAt:this.createdAt,lastLoginAt:this.lastLoginAt,apiKey:this.apiKey,appName:this.appName}}}function gB(e){const t=function(e){const t=new Uint32Array([0,0,0,0]);for(let n=0;n<e.length;n++)t[n%4]=(t[n%4]<<5)-t[n%4]+e.charCodeAt(n);return t}(e);return function(){const e=t[0]^t[0]<<11;return t[0]=t[1],t[1]=t[2],t[2]=t[3],t[3]=t[3]^t[3]>>19^e^e>>8,(t[3]>>>0)/(1<<31>>>0)}}function yB(e){return new Uint16Array([360*e(),40+60*e(),25*(e()+e()+e()+e())])}function vB(e,t){const n=gB(e.toLowerCase()),[r,o,i]=function(e){const t=yB(e);return[yB(e),t,yB(e)]}(n),s=["M0,0H8V8H0z","",""];for(let a,c,l=0;l<32;l++){a=l%4,c=Math.floor(l/4);const e=Math.floor(2.3*n());e>0&&(s[e]+=`M${a},${c}h1v1h-1zM${7-a},${c}h1v1h-1z`)}return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8" shape-rendering="optimizeSpeed" width="${t}" height="${t}"><path fill="hsl(${r[0]} ${r[1]}% ${r[2]}%)" d="${s[0]}"/><path fill="hsl(${o[0]} ${o[1]}% ${o[2]}%)" d="${s[1]}"/><path fill="hsl(${i[0]} ${i[1]}% ${i[2]}%)" d="${s[2]}"/></svg>`}function bB(e,t=64){return"data:image/svg+xml;base64,"+btoa(function(e,t=64){return vB(e,t)}(e,t))}class _B{constructor(e){this.user=e,this.id=e.uid,this.name=e.displayName||"",this.image=e.photoURL||bB(`0x${e.uid}`,150),this.token=e.stsTokenManager.accessToken,this.expiresAt=new Date(e.stsTokenManager.expirationTime),this.email=e.email,this.refreshToken=e.stsTokenManager.refreshToken,this.idToken=e.stsTokenManager.idToken}id;name;image;token;email;expiresAt;refreshToken;idToken;toJSON(){return{id:this.id,name:this.name,image:this.image,token:this.token,email:this.email,expiresAt:this.expiresAt,refreshToken:this.refreshToken,user:this.user.toJSON()}}static fromInterface(e){return new _B(new mB(e))}}const wB=(e,t=!1)=>e.replace(/\<br\s{0,1}\/{0,1}\>/g,t?"\n":"").replace(/<[^>]+>/g,"");function kB(e){if(["number","string"].includes(typeof e)&&!isNaN(Number(e)))return new Date(10===String(e).length?1e3*Number(e):Number(e));if("string"==typeof e)return new Date(e);if(e instanceof Date)return e;throw new Error("Invalid date")}const EB={intl(e,t=!1){try{return Intl.DateTimeFormat("pt-BR",{dateStyle:"full",timeZone:"GMT",...t&&{timeStyle:"short"}}).format(kB(e))}catch(Vz){return console.error(Vz,e),"invalid-date"}},short(e){try{return Intl.DateTimeFormat("pt-BR",{dateStyle:"short",timeZone:"GMT"}).format(kB(e))}catch(Vz){return console.error(Vz,e),"invalid-date"}},DMonthY(e){try{return Intl.DateTimeFormat("pt-BR",{month:"long",day:"numeric",year:"numeric",timeZone:"GMT"}).format(kB(e))}catch(Vz){return console.error(Vz,e),"invalid-date"}},YYYYMMDD(e,t="-"){try{return Intl.DateTimeFormat("pt-BR",{year:"numeric",month:"2-digit",day:"2-digit",timeZone:"GMT"}).format(kB(e)).split("/").reverse().join(t)}catch(Vz){return console.error(Vz,e),"invalid-date"}},DDMM(e){try{return Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"2-digit",timeZone:"GMT"}).format(kB(e))}catch(Vz){return console.error(Vz,e),"invalid-date"}},getDate:e=>kB(e).getUTCDate(),isSameMonth:(e,t)=>kB(e).getUTCMonth()===kB(t).getUTCMonth(),isSameYear:(e,t)=>
3649kB(e).getUTCFullYear()===kB(t).getUTCFullYear(),startOfDay(e=new Date){const t=kB(e);return t.setUTCHours(0,0,0,0),t},endOfDay(e=new Date){const t=kB(e);return t.setUTCHours(23,59,59,999),t},datePeriodString(e,t,n=!0){let r="";return r=t<=e?`${EB.DMonthY(e)}`:EB.isSameMonth(e,t)?`<span>De ${EB.getDate(e)}</span> a <span>${EB.DMonthY(t)}</span>`:`<span>${EB.DMonthY(e)}</span> a <br/> <span>${EB.DMonthY(t)}</span>`,n?r:wB(r)},shortDatePeriodString(e,t,n=!0){let r="";return r=t<=e?`${EB.short(e)}`:EB.isSameMonth(e,t)?`<span>${EB.getDate(e)}</span> a <span>${EB.short(t)}</span>`:EB.isSameYear(e,t)?`<span>De ${EB.DDMM(e)}</span> a <span>${EB.short(t)}</span>`:`<span>${EB.short(e)}</span> a <br/> <span>${EB.short(t)}</span>`,n?r:wB(r)},currentWeek(){const e=new Date,t=e.getUTCDay(),n=new Date(e);n.setUTCDate(e.getUTCDate()-t),n.setUTCHours(0,0,0,0);const r=new Date(n);return r.setUTCDate(n.getUTCDate()+6),r.setUTCHours(23,59,59,999),{start:n,end:r}},getMonthInterval:(e,t)=>({start:new Date(Date.UTC(e,t-1,1,0,0,0,0)),end:new Date(Date.UTC(e,t,0,23,59,59,999))}),toDate:kB},TB={stateToSlug:e=>e?e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,""):"",cityToSlug:e=>e?e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,""):"",categoryToSlug:e=>e?e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,""):"",eventToSlug:e=>e.title.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),removeInvalidChars:e=>TB.removeEmptyHtml(e.trim().normalize("NFD").replace(/(&.+\;)/gm,"").replace(/(\<br\s?\/?\>)/,"\n").replace("\n+","\n").replace(/\s+/gim," ").trim()),removeEmptyHtml:e=>e.replace(/<(p|div|span)>\s+?<br\s+?\/?><\/(p|div|span)>/g,""),toProfileShort:e=>({displayName:e.displayName||"",handle:e.handle||"",photoURL:e.image||"",role:e.role}),toEventShort:e=>({id:e.id||"",title:e.title||"",slug:TB.eventToSlug(e)||"",image:e.image?.[0]||"",dateStart:e.dateStart||"",dateEnd:e.dateEnd||""}),removeAccents:e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),handleToValid:e=>e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/\s+/g,"").replace(/[^a-z0-9-]/g,"").replace(/^-+|-+$/g,""):"",generateKeywords(e){const t=e.toLowerCase().replace(/\W+/," ").replace(/\s+/g," "),n=TB.removeAccents(t),r=new Set;for(let o=0;o<t.length-3;o++)r.add(t.substring(o).trim()),r.add(n.substring(o).trim());for(let o=t.length-1;o>=3;o--)r.add(t.substring(0,o).trim()),r.add(n.substring(0,o).trim());for(let o=0;o<t.length-o;o++)r.add(t.substring(o,t.length-o).trim()),r.add(n.substring(o,t.length-o).trim());return n.split(" ").filter(Boolean).map(e=>r.add(e)),t.split(" ").filter(Boolean).map(e=>r.add(e)),[...r]}},SB=window.setInterval;let xB=null;const OB=function(e=1e3){const t=[];function n(){xB&&(clearInterval(xB),xB=null)}return console.info("Started task queue, ttl:",e),{push:function(e){t.push(e)},start:function(){xB&&n(),xB=SB(async()=>{await async function(){let e=t.shift();for(;e;)await e,e=t.shift()}()},e)},stop:n}}(),AB={isMotoclub:e=>"motoclub"===e.role,isMaker:e=>"maker"===e.role,isMusician:e=>"music"===e.role,isService:e=>"service"===e.role,isUser:e=>"user"===e.role,simple:e=>({uid:e.uid,displayName:e.displayName,handle:e.handle,image:e.image,bio:(e.bio||"").length>160?e.bio?.substring(0,160)+"...":e.bio,role:e.role,socialLinks:e.socialLinks}),parseHandles:e=>e.match(/@(\w+)/g)?e.replace(/@(\w+)/g,(e,t)=>`<a href="/${t}" target="_blank">${e}</a>`):e,parseCheckHandles:async e=>{const t=e.match(/@(\w+)/g);if(!t)return e;const n=new Set;for(const r of t)try{if(n.has(r.toLowerCase()))continue;if(await $fetch("/api/handle-available",{query:{handle:r.replace("@","").toLowerCase()}}))continue;n.add(r.toLowerCase())}catch{}return n.forEach(t=>{e=e.replaceAll(t,`<a class="no-decoration" href="/${t.replace("@","")}">${t}</a>`)}),e}},CB={food:"alimentício",drinks:"drinks",entertainment:"entretenimento",beverage:"bebidas",beer:"cerveja",motorcycles:"motocicletas",mechanic:"mecânico",dyno:"dynamômetro",equipment:"equipamentos","vehicle seller":"vendedor de veículos","food-truck":"food-truck",user:"usuário",motorcyclist:"motociclista",enthusiast:"entusiasta",admin:"admin",motoclub:"motoclube",service:"serviços",music:"músico/banda",maker:"organizador",guest:"convidado",entity:"entidade",motofest:"motofest",bar:"bar",nightclub:"casa noturna",other:"outros",anniversary:"aniversário"};function NB(e){return CB[e]||e}function IB(e){return Array.isArray(e)?e.map(IB):null!==e&&"object"==typeof e?Object.entries(e).filter(([e,t])=>void 0!==t).reduce((e,[t,n])=>(e[t]=IB(n),e),{}):e}const LB="Events",PB="Sidebar",RB="Terms",DB="AccessRequest",MB="Profiles",jB="UploadedMedia",UB="Comments",qB="EventAttendance",FB="ClaimProfile";class BB{db;app;storage;maxUploadFileSize;static instance;constructor(e){this.app=Lb()[0]||Nb(e),this.maxUploadFileSize=e.maxUploadFileSize||5,this.storage=RM(this.app,e.storageBucketUrl);const t=FP(this.app);this.db=t}getDb(){return this.db}docsToEvent(e){return e.map(e=>{const t=e.data(),{promotedUntilTimestamp:n,...r}=t;return{...r,dateStart:EB.YYYYMMDD(t.dateStart),dateEnd:EB.YYYYMMDD(t.dateEnd),id:e.id,image:[t.image].flat()}})}formatEventData(e){const t={...e};return t.visibility||(t.visibility="private"),delete t.id,t.image||(t.image=[]),t.dateStart=EB.toDate(t.dateStart).getTime().toString(),t.dateEnd=EB.toDate(t.dateEnd).getTime().toString(),t.createdAt=Date.now().toString(),t.slug||(t.slug=TB.eventToSlug(e)),IB(t)}static getClient(e){if(!this.instance){const t=jM.get(e);this.instance=new BB(t.firebaseConfig)}return this.instance}async uploadFile(e,t,n){if(!["image/jpeg","image/png","image/webp","image/gif","
3649image/jpg"].includes(e.type.toLowerCase()))throw new Error("Tipo de arquivo inválido. Apenas JPEG, PNG, WebP e GIF são permitidos.");const r=1024*this.maxUploadFileSize*1024;if(e.size>r)throw new Error(`O arquivo excede o limite de ${this.maxUploadFileSize}MB.`);const o=e.name.replace(/[^\w.-]/g,"_").slice(-100),i=Date.now(),s=t?`media/${t}/${i}_${o}`:o,a=LM(PM(this.storage,s),e);n&&a.on("state_changed",n);const c=await a,l=await function(e){return EM(e=yv(e))}(c.ref);return{url:l,storagePath:c.ref.fullPath}}async getDocument(e){return HR(jP(this.db,e))}async createEvent(e){const t={...e},n=await XR(MP(this.db,LB),this.formatEventData(t));return e.slug=t.slug,{id:n.id,slug:t.slug}}async deleteEvent(e){return await QR(jP(this.db,`${LB}/${e}`)),e}async onEventUpdate(e){OB.push(this.updateAttendanceEventRefData(e))}async updateEvent(e){const t={...e};t.dateStart=new Date(t.dateStart).getTime().toString(),t.dateEnd=new Date(t.dateEnd).getTime().toString(),t.updatedAt=Date.now().toString(),t.image||(t.image=[]);const n=jP(this.db,`${LB}/${e.id}`);return await KR(n,this.formatEventData(t)),e.id}async getEventsAdmin(e,t){const n=MP(this.db,LB),r=[OR("dateEnd",">=",t?"0":EB.startOfDay().getTime().toString())];e&&r.push(OR("owner","==",e));const o=SR(n,CR(...r)),i=await GR(o);return this.docsToEvent(i.docs)}async getEvents(e=10,t,n,r){const o=MP(this.db,LB),i=[OR("dateEnd",">=",t?"0":EB.startOfDay().getTime().toString()),OR("visibility","==","public")];n&&i.push(OR("owner","==",n));const s=SR(o,CR(...i),PR(e)),a=await GR(s);return this.docsToEvent(a.docs)}async getEventByDate(e,t){const n=SR(MP(this.db,LB),OR("dateStart",">=",e.getTime().toString()),OR("dateStart","<=",t.getTime().toString())),r=await GR(n);return this.docsToEvent(r.docs)}async getEventById(e){const t=jP(this.db,`${LB}/${e}`),n=await HR(t);return n.exists()?this.docsToEvent([n])[0]:null}async getEventByIdOrSlug(e){if(!e.includes("-"))return this.getEventById(e);const t=SR(MP(this.db,LB),OR("slug","==",e)),n=(await GR(t)).docs.find(t=>t.data().slug===e);return n?.exists()?this.docsToEvent([n])[0]:null}async getByProximity(e,t,n=100){const r=SR(MP(this.db,LB),OR("location.latitude",">=",e-n),OR("location.latitude","<=",e+n),OR("location.longitude",">=",t-n),OR("location.longitude","<=",t+n)),o=await GR(r);return this.docsToEvent(o.docs)}async getSidebar(){const e=MP(this.db,PB);return(await GR(e)).docs.map(e=>({...e.data(),name:e.id}))}async getAccessRequests(e="pending"){const t=SR(MP(this.db,DB),IR("when","desc"),PR(100),OR("status","==",e));return(await GR(t)).docs.map(e=>e.data())}async getAccessRequestStatusCount(){const e=MP(this.db,DB),t=await ZR(SR(e,OR("status","==","pending"))),n=await ZR(SR(e,OR("status","==","auto-approved"))),r=await ZR(SR(e,OR("status","==","approved"))),o=await ZR(SR(e,OR("status","==","archived")));return{approved:r.data().count,archived:o.data().count,pending:t.data().count,"auto-approved":n.data().count}}async getAccessRequestById(e){const t=jP(this.db,`${DB}/${e}`),n=await HR(t);return n.exists()?n.data():null}async setAccessRequest(e){const t=jP(this.db,`${DB}/${e.uid}`);return await KR(t,e),e}async getTerms(e){const t=SR(MP(this.db,RB),OR("type","==",e),IR("createdAt","desc"),PR(1));return(await GR(t)).docs.map(e=>({...e.data(),id:e.id}))[0]}async setTerms(e){e.createdAt=EB.YYYYMMDD(new Date),await XR(MP(this.db,RB),e)}async getProfile(e,t){const n=SR(MP(this.db,MB),OR("owner","==",e),OR("role","==",t),PR(1)),r=await GR(n);if(!r.empty){const e=r.docs[0];return{...e.data(),uid:e.id}}return null}async createProfile(e){if(await this.getProfile(e.owner,e.role))throw new Error("A profile with this owner and role already exists.");e.handle&&(e.handle=TB.handleToValid(e.handle)),e.createdAt=(new Date).toString(),e.visible=!0,e.meta=this.mountProfileMeta(e);const t=await XR(MP(this.db,MB),IB(e));return e.uid=t.id,this.setProfile(e),t.id}onProfileUpdate(e){OB.push(this.updateAttendanceProfileRefData(e)),OB.push(this.updateCommentProfileRefData(e)),e.uid&&OB.push(async function(e){e&&await $fetch("/api/admin/cache-clear",{query:{path:`/api/${e}`}})}(`profiles?id=${e.uid}`))}async setProfile(e,t){const n=e.uid;if(e.handle&&(e.handle=TB.handleToValid(e.handle)),!t&&e.handle&&!(await this.handleIsAvailable(e.handle,n)))throw new Error("Handle already picked up. Please, choose another.");if(!n)return this.createProfile(e);e.createdAt=e.createdAt,e.updatedAt=(new Date).toString(),e.meta=this.mountProfileMeta(e);const r=jP(this.db,`${MB}/${e.uid}`);return await KR(r,IB(e)),this.onProfileUpdate(e),n}async createUploadedMedia(e){const t=MP(this.db,jB),n={...e,likes:e.likes||[],likeCount:e.likeCount||0};return(await XR(t,IB(n))).id}async getUploadedMedia(e="likes",t=12,n,r,o=[]){const i=MP(this.db,jB);let s;if("recent"===e){const e=[IR("createdAt","desc"),PR(t)];n&&e.splice(1,0,OR("createdAt","<",n)),s=SR(i,...e)}else if("oldest"===e){const e=[IR("createdAt","asc"),PR(t)];r&&e.splice(1,0,OR("createdAt",">",r)),s=SR(i,...e)}else s=SR(i,IR("createdAt","desc"),PR(100));let a=(await GR(s)).docs.map(e=>({...e.data(),id:e.id}));"likes"===e&&(a.sort((e,t)=>
3649(t.likeCount||0)-(e.likeCount||0)),a=a.filter(e=>!o.includes(e.id)),a=a.slice(0,t));const c=a.length>0?a[a.length-1]:null;return{items:a,lastCreatedAt:c?c.createdAt:null}}async getMediaById(e){const t=jP(this.db,`${jB}/${e}`),n=await HR(t);return n.exists()?{...n.data(),id:n.id}:null}async getUploadedMediaByProfile(e,t=12,n){const r=MP(this.db,jB),o=[OR("profileId","==",e),IR("createdAt","desc"),PR(t)];n&&o.splice(1,0,OR("createdAt","<",n));const i=SR(r,...o);return(await GR(i)).docs.map(e=>({...e.data(),id:e.id}))}async getUploadedMediaByEvent(e,t=12,n,r="likeCount"){const o=MP(this.db,jB);if("likeCount"===r){const r=SR(o,OR("eventId","==",e),IR("createdAt","desc"),PR(200));let i=(await GR(r)).docs.map(e=>({...e.data(),id:e.id}));if(i.sort((e,t)=>{const n=e.likeCount||0,r=t.likeCount||0;return r!==n?r-n:(t.createdAt||0)-(e.createdAt||0)}),n){const e=i.findIndex(e=>e.createdAt===n);i=-1!==e?i.slice(e+1):i.filter(e=>(e.createdAt||0)<n)}return i.slice(0,t)}const i=[OR("eventId","==",e)];n&&i.push(OR("createdAt","<",n)),i.push(IR("createdAt","desc")),i.push(PR(t));const s=SR(o,...i);return(await GR(s)).docs.map(e=>({...e.data(),id:e.id}))}async countUploadedMediaByProfileAndEvent(e,t){const n=SR(MP(this.db,jB),OR("profileId","==",e),OR("eventId","==",t));return(await ZR(n)).data().count}async deleteUploadedMedia(e){const t=jP(this.db,`${jB}/${e}`),n=await HR(t);if(n.exists()){const e=n.data();if(e.storagePath)try{const t=PM(this.storage,e.storagePath);await function(e){return TM(e=yv(e))}(t)}catch(r){console.error("Error deleting storage object:",r)}await QR(t)}}async likeMedia(e,t){const n=jP(this.db,`${jB}/${e}`);await YR(n,{likes:nD(t),likeCount:oD(1)})}async unlikeMedia(e,t){const n=jP(this.db,`${jB}/${e}`);await YR(n,{likes:rD(t),likeCount:oD(-1)})}async getProfileByIdOrHandle(e){const t=SR(MP(this.db,MB),OR("handle","==",e),PR(1)),n=await GR(t);let r;if(0===n.docs.length){const t=jP(this.db,`${MB}/${e}`);r=await HR(t)}else r=n.docs[0];return r.exists()?{...r.data(),uid:r.id}:null}async handleIsAvailable(e,t){const n=SR(MP(this.db,MB),OR("handle","==",e),PR(1)),r=await GR(n);if(!r.empty){const e=r.docs[0];return!(!t||e.id!==t)}return!0}async countProfiles(e,t){const n=MP(this.db,MB),r=[],o=this.mountProfileSearch(t);r.unshift(IR("displayName","asc")),e&&o.push(OR("role","==",e)),r.push(...o);const i=SR(n,...r);return(await ZR(i)).data().count}async getProfiles(e=50,t,n,r){const o=MP(this.db,MB),i=[],s=this.mountProfileSearch(r);i.unshift(PR(e),IR("uid","asc"),IR("displayName","asc")),t&&i.push(function(...e){return RR._create("startAfter",e,!1)}(t)),n&&s.push(OR("role","==",n)),i.push(...s);const a=SR(o,...i);return(await GR(a)).docs.map(e=>({...e.data(),uid:e.id}))}async getAllProfilesBatch(e=500){const t=[];for(;;){const n=await this.getProfiles(e,t.at(-1)?.uid);if(!n.length)break;t.push(...n)}return t}async requestClaimProfile(e){await XR(MP(this.db,`${FB}`),e)}async updateProfileClaim(e){await KR(jP(this.db,`${FB}/${e.id}`),e)}async getClaimRequests(){const e=SR(MP(this.db,`${FB}`));return(await GR(e)).docs.map(e=>({...e.data(),id:e.id}))}async transferProfile(e,t){const n=await this.getProfileByIdOrHandle(e);if(!n)throw new Error(`Profile ${e} not found.`);await this.getAccessRequestById(t.uid)||await this.setAccessRequest({displayName:t.displayName,email:t.email,status:"pending",type:"motoclub",uid:t.uid,updatedAt:Date.now().toString(),when:Date.now().toString(),socialLink:""});const r={...n};r.owner=t.uid,await this.setProfile(r,!0),await QR(jP(this.db,`${MB}/${e}`))}validateEventAttendance(e,t){const n={event:["dateEnd","dateStart","id","title"].filter(t=>!e[t]),profile:["displayName","handle","role","owner"].filter(e=>!t[e])};if(n.event.length>0||n.profile.length>0)throw new Error(`Missing required fields: Events:${n.event.join(", ")}, Profile:${n.profile.join(", ")}`);return{eventId:e.id,profileUid:t.uid,owner:t.owner,event:{dateEnd:e.dateEnd,dateStart:e.dateStart,id:e.id,image:e.image[0]||"",title:e.title,slug:e.slug},profile:{displayName:t.displayName,handle:t.handle,role:t.role,photoURL:t.image||""}}}async eventAttendance(e,t){const n=this.validateEventAttendance(e,t),r=`${n.eventId}:${n.profileUid}`;await KR(jP(this.db,`${qB}/${r}`),n)}async removeEventAttendance(e,t){const n=`${e}:${t}`;await QR(jP(this.db,`${qB}/${n}`))}async getEventAttendances(e){const t=SR(MP(this.db,qB),OR("eventId","==",e));return(await GR(t)).docs.map(e=>({...e.data(),uid:e.id}))}async getProfileAttendances(e){const t=SR(MP(this.db,qB),OR("profileUid","==",e));return(await GR(t)).docs.map(e=>({...e.data(),uid:e.id}))}async updateAttendanceEventRefData(e){const t=SR(MP(this.db,qB),OR("eventId","==",e.id)),n=await GR(t),r=iD(this.db);n.docs.forEach(t=>{r.update(t.ref,{event:{dateEnd:e.dateEnd,dateStart:e.dateStart,id:e.id,image:e.image,title:e.title}}
3649)}),await r.commit()}async updateAttendanceProfileRefData(e){const t=SR(MP(this.db,qB),OR("profileUid","==",e.uid)),n=await GR(t),r=iD(this.db);n.docs.forEach(t=>{r.update(t.ref,{profile:{displayName:e.displayName,handle:e.handle,role:e.role,photoURL:e.image}})}),await r.commit()}async validateComment(e,t){if(!(e.receiver&&e.content&&e.commenter.displayName&&e.commenter.handle&&e.owner))throw new Error("Missing required fields");if(e.content.length>256)throw new Error("Comment too long")}async getCommentsOf(e){const t=SR(MP(this.db,UB),OR("receiver","==",e));return(await GR(t)).docs.map(e=>({...e.data(),uid:e.id}))}async createComment(e,t){this.validateComment(e,t);return(await XR(MP(this.db,UB),e)).id}async deleteComment(e){await QR(jP(this.db,`${UB}/${e}`))}async updateCommentProfileRefData(e){const t=SR(MP(this.db,UB),OR("owner","==",e.uid)),n=await GR(t),r=iD(this.db);n.docs.forEach(t=>{r.update(t.ref,{commenter:{displayName:e.displayName,handle:e.handle,role:e.role,photoURL:e.image}})}),await r.commit()}mountProfileSearch(e){const t=[],n=e?.search?.toLowerCase().trim();if(e){const{city:r,state:o,category:i,search:s}=e;s&&s.length>3&&(s.startsWith("@")?t.push(OR("handle","==",s.substring(1)?.split(/\W/)?.[0]?.toLowerCase())):t.push(OR("meta.keywords","array-contains",n))),r&&"all"!==r&&t.push(OR("headOffice.city","==",r)),o&&"all"!==o&&t.push(OR("headOffice.state","==",o.toLowerCase())),i&&"all"!==i&&t.push(OR("mg","==","mg"===i))}return t}mountProfileMeta(e){let t=`${e.uid}, ${e.displayName}, ${e.headOffice?.city}, ${e.headOffice?.state}, ${e.headOffice?.name}, ${e.contactInfo.responsibleName}, ${e.handle},`;AB.isMotoclub(e)&&(t+=`${e.president||""},${e.mg?"motogrupo":"motoclube"}`),AB.isMusician(e)&&(t+=`banda, músico, musico, musician, grupo, musical, ${e?.bands?.join(", ")}, ${e?.styles?.join(", ")}`),AB.isMaker(e)&&(t+=`maker ${NB(e.type)}, ${e.type}`),AB.isService(e)&&(t+=`serviços, servicos, ${e?.sectors?.map(NB).join(", ")}, ${e?.sectors?.join(", ")}`);const n=TB.generateKeywords(e.displayName||"");return{searchstr:t.toLowerCase(),keywords:t.toLowerCase().split(", ").map(e=>e.trim()).concat(n)}}}const VB=()=>{const e=Hs("motofest-token",()=>null),t=v(()=>{const t={};return e.value&&(t.Authorization=`Bearer ${e.value}`),t}),n=$fetch.create({baseURL:"/api/backend",onRequest({options:e}){e.headers={...e.headers,...t.value}}});return{token:e,getEvents:(e,t,r,o,i,s,a)=>n("/events",{query:{amount:e||10,userId:t,getPast:r,startAfter:o,state:i,city:s,category:a}}),getPromotedEvents:e=>n("/events/promoted",{query:{amount:e||8}}),validateSlug:e=>n("/events/validate-slug",{method:"POST",body:{slug:e}}),getEventsAdmin:(e,t)=>n("/events/admin",{query:{amount:e||10,userId:t}}),getEvent:e=>n("/events",{query:{id:e}}),getProfiles:(e,t,r,o,i)=>n("/profiles",{query:{amount:e,type:t,lastDisplayName:r,owner:i,...o}}),getProfilebyOwner:(e,t)=>n("/profiles",{query:{amount:1,type:e,owner:t}}),getProfile:e=>n("/profiles",{query:{id:e}}),createProfile(e){const{owner:t,uid:r,createdAt:o,updatedAt:i,...s}=e;return n("/profiles",{method:"POST",body:s})},updateProfile(e){const{owner:t,uid:r,createdAt:o,updatedAt:i,...s}=e;return n(`/profiles/${r}`,{method:"PATCH",body:s})},getEventAttendances(e,t){if(e)return n("/events/attendances",{query:{eventId:e}});if(t)return n("/events/attendances",{query:{profileId:t}});throw new Error("eventId or profileId are required.")},createEventAttendance:e=>n("/events/attendances",{method:"POST",body:{eventId:e}}),removeEventAttendance:(e,t)=>n(`/events/attendances/${e}/${t}`,{method:"DELETE"}),getCommentsOf:e=>n(`/profiles/${e}/comments`),createComment:e=>n("/comments",{method:"POST",body:e}),deleteComment:e=>n(`/comments/${e}`,{method:"DELETE"}),getProfileMedia:(e,t={})=>n("/media/profile",{query:{profileId:e,...t}}),getEventMedia:(e,t={orderBy:"likeCount",orderDirection:"desc"})=>n("/media/event",{query:{eventId:e,...t}}),getExploreMedia:(e={})=>n("/media/explore",{query:e}),getMedia:e=>n(`/media/${e}`),createMedia:e=>n("/media",{method:"POST",body:e}),likeMedia:e=>n(`/media/${e}/like`,{method:"POST"}),unlikeMedia:e=>n(`/media/${e}/like`,{method:"DELETE"}),deleteMedia:e=>n(`/media/${e}`,{method:"DELETE"}),setUserRole:(e,t)=>
3649n("/admin/set-claims",{method:"POST",body:{userId:e,role:t}}),verifyUser:e=>n("/admin/verify-user",{method:"POST",body:{userId:e}}),getAffiliatesProducts:()=>n("/store/affiliates/products"),uploadFile(e){const t=new FormData;return t.append("file",e),n("/media/upload",{method:"POST",body:t})},createEvent:e=>n("/events",{method:"POST",body:e}),updateEvent:e=>n("/events",{method:"PATCH",body:e}),deleteEvent:e=>n("/events",{method:"DELETE",body:{id:e}}),promoteEvent:(e,t)=>n("/events/promote",{method:"POST",body:{eventId:e,promotedUntilTimestamp:t}}),unpromoteEvent:e=>n("/events/unpromote",{method:"POST",body:{eventId:e}})}},zB=()=>{const{$firebase:e}=Ft(),{token:t}=VB(),n=Hs("firebase-auth",()=>null),r=Hs("auth",()=>null),o=Hs("user-role",()=>"guest"),i=Hs("current-role",()=>"guest"),s=Hs("user-verified",()=>!1),a=Hs("auth-state-ready",()=>!1),c=v(()=>"admin"===o.value),u=v(()=>s.value);let h=null;const f=l(["admin","motoclub","music","service","maker","user","guest","enthusiast"]),d=l(["admin","motoclub","music","service","maker"]),p=c=>{if(n.value)return;if(!e)return void console.error("Firebase plugin not initialized. This should only run on client.");const{public:l}=Bt();BB.getClient(l),n.value=e.getAuth(),n.value?.authStateReady().then(()=>{setTimeout(()=>{a.value=!0},100)}),n.value&&(h=n.value.onIdTokenChanged(async e=>{if(!e)return t.value=null,r.value=null,o.value=i.value="guest",void(s.value=!1);const n=await e.getIdTokenResult();o.value=i.value=n.claims.role||"guest",s.value=n.claims.verified||!1,c?.(o.value),t.value=n.token,r.value=_B.fromInterface(e.toJSON())},e=>{console.error("Error on auth state changed:",e)}))},m=new uw;m.addScope("profile"),m.addScope("email");return{firebaseAuth:n,auth:r,signInWithGoogle:async e=>{const{openOnboarding:a}=pB();if(p(),!n.value)throw new Error("Firebase is not initialized");try{const c=await Hw(n.value,m);if(!uw.credentialFromResult(c))throw new Error("Credential is null");const l=c.user;r.value=_B.fromInterface(l.toJSON());const u=await l.getIdTokenResult(!0);t.value=u.token;const h=u.claims.role||"guest";return o.value=i.value=h,s.value=u.claims.verified||!1,"guest"===h?a():e||Dn(gs.panel),!0}catch(c){const e=c.code,t=c.message,n=c.customData.email,r=uw.credentialFromError(c);return console.error(e,t,n,r),!1}},provider:m,init:p,cleanup:()=>{h&&(h(),h=null)},refreshClaims:async()=>{if(!n.value?.currentUser)throw new Error("No authenticated user");const e=await n.value.currentUser.getIdTokenResult(!0);return t.value=e.token,o.value=i.value=e.claims.role||"guest",s.value=e.claims.verified||!1,o.value},role:o,setCurrentRole:e=>{if(!c.value)throw new Error("You are not an admin");i.value=e,iB.set("current-role",e)},currentRole:i,verified:s,ready:a,panelEnabledFor:f,privilegedUsers:d,isAdmin:c,isVerified:u}},$B={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},HB={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},WB={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},GB={dangerouslyHTMLString:!1,multiple:!0,position:$B.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},KB={...GB,rtl:!1,newestOnTop:!1,toastClassName:""};var YB=(e=>(e[e.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",e[e.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",e.CSS_NAMESPACE="Toastify",e))(YB||{}),QB=(e=>(e.ENTRANCE_ANIMATION_END="d",e))(QB||{});const XB={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},JB={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},ZB={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},eV={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},tV="Toastify--animate Toastify__none-enter";function nV(e,t=!1){var n;let r=XB;if(e&&"string"!=typeof e)r=e;else switch(e){case"flip":r=eV;break;case"zoom":r=ZB;break;case"slide":r=JB}
3649if(t)r.enter=tV;else if(r.enter===tV){const e=null==(n=r.exit.split("__")[1])?void 0:n.split("-")[0];r.enter="Toastify--animate Toastify__".concat(e,"-enter")}return r}const rV="will-unmount";function oV(e){var t;const{position:n,containerClassName:r,rtl:o=!1,style:i={}}=e,s=YB.CSS_NAMESPACE,a=function(e=$B.TOP_RIGHT){return"".concat(YB.CSS_NAMESPACE,"__toast-container--").concat(e)}(n),c=document.querySelector(".".concat(s)),l=document.querySelector(".".concat(a)),u=!(!l||null!=(t=l.className)&&t.includes(rV)),h=c||document.createElement("div"),f=document.createElement("div");f.className=function(e,t,n=!1){const r=["".concat(YB.CSS_NAMESPACE,"__toast-container"),"".concat(YB.CSS_NAMESPACE,"__toast-container--").concat(e),n?"".concat(YB.CSS_NAMESPACE,"__toast-container--rtl"):null].filter(Boolean).join(" ");return wV(t)?t({position:e,rtl:n,defaultClassName:r}):"".concat(r," ").concat(t||"")}(n,r,o),f.dataset.testid="".concat(YB.CSS_NAMESPACE,"__toast-container--").concat(n),f.id=function(e){return e.containerId||String(e.position)}(e);for(const d in i)if(Object.prototype.hasOwnProperty.call(i,d)){const e=i[d];f.style[d]=e}return c||(h.className=YB.CSS_NAMESPACE,document.body.appendChild(h)),u||h.appendChild(f),f}function iV(e){var t,n,r;const o="string"==typeof e?e:(null==(t=e.currentTarget)?void 0:t.id)||(null==(n=e.target)?void 0:n.id),i=document.getElementById(o);i&&i.removeEventListener("animationend",iV,!1);try{sV[o].unmount(),null==(r=document.getElementById(o))||r.remove(),delete sV[o],delete hV[o]}catch{}}const sV=t({});function aV(e,t=!0){const n=String(e);if(!sV[n])return;const r=document.getElementById(n);r&&r.classList.add(rV),t?(function(e){for(const t in hV)if(t===e)for(const e of hV[t]||[])cV(e)}(e),r&&r.addEventListener("animationend",iV,!1)):iV(n),fV.items=fV.items.filter(t=>t.containerId!==e)}function cV(e,t){const n=document.getElementById(e.toastId);if(n){let r=e;r={...r,...nV(r.transition)};const o=r.appendPosition?"".concat(r.exit,"--").concat(r.position):r.exit;n.className+=" ".concat(o),t&&t(n)}}function lV(e){return document.getElementById(e)}function uV(e){var t;const n=Y(e.content)?K(e.content.props):null;return null!=n?n:K(null!=(t=e.data)?t:{})}const hV=t({}),fV=t({items:[]});function dV(){const e=K(hV);return Object.values(e).reduce((e,t)=>[...e,...t],[])}function pV(e,t={}){if(function(e){const t=lV(e.containerId);return t&&t.classList.contains(rV)}(t)){const n=lV(t.containerId);n&&n.addEventListener("animationend",mV.bind(null,e,t),!1)}else mV(e,t)}function mV(e,t={}){const n=lV(t.containerId);n&&n.removeEventListener("animationend",mV.bind(null,e,t),!1);const r=hV[t.containerId]||[],o=r.length>0;if(!o&&!function(e=$B.TOP_RIGHT){return!!document.querySelector(".".concat(YB.CSS_NAMESPACE,"__toast-container--").concat(e))}(t.position)){const e=oV(t),n=Q(jV,t);n.mount(e),function(e,t){const n=document.getElementById(String(t));n&&(sV[n.id]=e)}(n,e.id)}o&&!t.updateId&&(t.position=r[0].position),s(()=>{t.updateId?gV.update(t):gV.add(e,t)})}const gV={add(e,t){const{containerId:n=""}=t;n&&(hV[n]=hV[n]||[],hV[n].find(e=>e.toastId===t.toastId)||setTimeout(()=>{var e,r;t.newestOnTop?null==(e=hV[n])||e.unshift(t):null==(r=hV[n])||r.push(t),t.onOpen&&t.onOpen(uV(t))},t.delay||0))},remove(e){if(e){const t=function(e){const t=dV().find(t=>t.toastId===e);return null==t?void 0:t.containerId}(e);if(t){const n=hV[t];let r=n.find(t=>t.toastId===e);hV[t]=n.filter(t=>t.toastId!==e),!hV[t].length&&!function(e){return e?fV.items.filter(t=>t.containerId===e).length>0:fV.items.length>0}(t)&&aV(t,!1),function(){if(fV.items.length>0){const e=fV.items.shift();pV(null==e?void 0:e.toastContent,null==e?void 0:e.toastProps)}}(),s(()=>{null!=r&&r.onClose&&(r.onClose(uV(r)),r=void 0)})}}},update(e={}){const{containerId:t=""}=e;if(t&&e.updateId){hV[t]=hV[t]||[];const n=hV[t].find(t=>t.toastId===e.toastId),r=(null==n?void 0:n.position)!==e.position||(null==n?void 0:n.transition)!==e.transition,o={...e,disabledEnterTransition:!r,updateId:void 0};gV.dismissForce(null==e?void 0:e.toastId),setTimeout(()=>{VV(o.content,o)},e.delay||0)}},clear(e,t=!0){e?aV(e,t):function(e){for(const t in sV)aV(t,e);fV.items=[]}(t)},dismissCallback(e){var t;const n=null==(t=e.currentTarget)?void 0:t.id,r=document.getElementById(n);r&&(r.removeEventListener("animationend",gV.dismissCallback,!1),setTimeout(()=>{gV.remove(n)}))},dismiss(e){if(e){const t=dV();for(const n of t)if(n.toastId===e){cV(n,e=>{e.addEventListener("animationend",gV.dismissCallback,!1)});break}}}
3649,dismissForce(e){if(e){const t=dV();for(const n of t)if(n.toastId===e){const t=document.getElementById(e);t&&(t.remove(),t.removeEventListener("animationend",gV.dismissCallback,!1),gV.remove(e));break}}}},yV=t({}),vV=t({});function bV(){return Math.random().toString(36).substring(2,9)}function _V(e){return"string"==typeof e}function wV(e){return"function"==typeof e}function kV(...e){return U(...e)}function EV(e){return!!("object"==typeof e&&(null!=e&&e.render||null!=e&&e.setup||"object"==typeof(null==e?void 0:e.type)))}var TV=(e=>(e[e.Enter=0]="Enter",e[e.Exit=1]="Exit",e))(TV||{});const SV={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:$B.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default:()=>({})},progressStyle:{type:Object,required:!1,default:()=>({})},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:HB.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default:()=>({})},type:{type:String,required:!1,default:WB.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""}},xV={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:WB.DEFAULT},theme:{type:String,required:!1,default:HB.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},OV=y({name:"ProgressBar",props:xV,setup(e,{attrs:t}){const n=l(),r=v(()=>e.hide?"true":"false"),o=v(()=>({...t.style||{},animationDuration:"".concat(!0===e.autoClose?5e3:e.autoClose,"ms"),animationPlayState:e.isRunning?"running":"paused",opacity:e.hide||!1===e.autoClose?0:1,transform:e.controlledProgress?"scaleX(".concat(e.progress,")"):"none"})),i=v(()=>["".concat(YB.CSS_NAMESPACE,"__progress-bar"),e.controlledProgress?"".concat(YB.CSS_NAMESPACE,"__progress-bar--controlled"):"".concat(YB.CSS_NAMESPACE,"__progress-bar--animated"),"".concat(YB.CSS_NAMESPACE,"__progress-bar-theme--").concat(e.theme),"".concat(YB.CSS_NAMESPACE,"__progress-bar--").concat(e.type),e.rtl?"".concat(YB.CSS_NAMESPACE,"__progress-bar--rtl"):null].filter(Boolean).join(" ")),s=v(()=>"".concat(i.value," ").concat((null==t?void 0:t.class)||"")),a=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},c=()=>{e.isIn&&e.closeToast&&!1!==e.autoClose&&(e.closeToast(),a())},h=v(()=>e.controlledProgress?null:c),f=v(()=>e.controlledProgress?c:null);return u(()=>{n.value&&(a(),n.value.onanimationend=h.value,n.value.ontransitionend=f.value)}),()=>N("div",{ref:n,role:"progressbar","aria-hidden":r.value,"aria-label":"notification timer",class:s.value,style:o.value},null)}}),AV=y({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:HB.AUTO}
3649,type:{type:String,required:!1,default:HB.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup:e=>()=>N("button",{class:"".concat(YB.CSS_NAMESPACE,"__close-button ").concat(YB.CSS_NAMESPACE,"__close-button--").concat(e.theme),type:"button",onClick:t=>{t.stopPropagation(),e.closeToast&&e.closeToast(t)},"aria-label":e.ariaLabel},[N("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[N("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}),CV=({theme:e,type:t,path:n,...r})=>N("svg",U({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":"var(--toastify-icon-color-".concat(t,")")},r),[N("path",{d:n},null)]);const NV={info:function(e){return N(CV,U(e,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)},warning:function(e){return N(CV,U(e,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)},success:function(e){return N(CV,U(e,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)},error:function(e){return N(CV,U(e,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)},spinner:function(){return N("div",{class:"".concat(YB.CSS_NAMESPACE,"__spinner")},null)}};function IV({theme:e,type:t,isLoading:n,icon:r}){let o;const i={theme:e,type:t};return n?o=NV.spinner():!1===r?o=void 0:EV(r)?o=K(r):wV(r)?o=r(i):Y(r)?o=X(r,i):_V(r)||function(e){return"number"==typeof e&&!isNaN(e)}(r)?o=r:(e=>e in NV)(t)&&(o=NV[t](i)),o}const LV=()=>{};function PV(e){const n=l(!1),r=l(!1),o=l(!1),i=l(TV.Enter),s=t({...e,appendPosition:e.appendPosition||!1,collapse:typeof e.collapse>"u"||e.collapse,collapseDuration:e.collapseDuration||YB.COLLAPSE_DURATION}),a=s.done||LV,c=v(()=>s.appendPosition?"".concat(s.enter,"--").concat(s.position):s.enter),h=v(()=>s.appendPosition?"".concat(s.exit,"--").concat(s.position):s.exit),f=v(()=>e.pauseOnHover?{onMouseenter:m,onMouseleave:p}:{});function d(){return e.toastRef.value}function p(){(!e.loading.value||void 0===e.isLoading)&&(n.value=!0)}function m(){n.value=!1}return u(function(){if(!d())return;const e=()=>{const t=d();t.removeEventListener("animationend",e),s.collapse?function(e,t,n=YB.COLLAPSE_DURATION){const{scrollHeight:r,style:o}=e,i=n;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition="all ".concat(i,"ms"),requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,i)})})}(t,a,s.collapseDuration):a()};r.value||(o.value?e():setTimeout(()=>{const t=d();i.value=TV.Exit,t&&(t.className+=" ".concat(h.value),t.addEventListener("animationend",e))}))}),u(()=>{const e=dV();r.value=e.findIndex(e=>e.toastId===s.toastId)>-1}),u(()=>{void 0!==e.isLoading&&(e.loading.value?m():p())}),O(function(){const t=c.value.split(" ");d().addEventListener(QB.ENTRANCE_ANIMATION_END,p,{once:!0});const n=e=>{const r=d();e.target===r&&(r.dispatchEvent(new Event(QB.ENTRANCE_ANIMATION_END)),r.removeEventListener("animationend",n),r.removeEventListener("animationcancel",n),i.value===TV.Enter&&"animationcancel"!==e.type&&r.classList.remove(...t))};e.pauseOnFocusLoss&&(document.hasFocus()||m(),window.addEventListener("focus",p),window.addEventListener("blur",m)),(()=>{const e=d();e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)})()}),A(()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",p),window.removeEventListener("blur",m))}),{isIn:r,isRunning:n,hideToast:function(e){e&&(e.stopPropagation(),e.preventDefault()),r.value=!1},eventHandlers:f}}const RV=y({name:"ToastItem",inheritAttrs:!1,props:SV,setup(e){const t=l(),n=v(()=>!!e.isLoading),r=v(()=>void 0!==e.progress&&null!==e.progress),o=v(()=>IV(e)),i=v(()=>["".concat(YB.CSS_NAMESPACE,"__toast"),"".concat(YB.CSS_NAMESPACE,"__toast-theme--").concat(e.theme),"".concat(YB.CSS_NAMESPACE,"__toast--").concat(e.type),e.rtl?"".concat(YB.CSS_NAMESPACE,"__toast--rtl"):void 0,e.toastClassName||""].filter(
3649Boolean).join(" ")),{isRunning:s,isIn:a,hideToast:c,eventHandlers:u}=PV({toastRef:t,loading:n,done:()=>{gV.remove(e.toastId)},...nV(e.transition,e.disabledEnterTransition),...e});return()=>N("div",U({id:e.toastId,class:i.value,style:e.toastStyle||{},ref:t,"data-testid":"toast-item-".concat(e.toastId),onClick:t=>{e.closeOnClick&&c(),e.onClick&&e.onClick(t)}},u.value),[N("div",{role:e.role,"data-testid":"toast-body",class:"".concat(YB.CSS_NAMESPACE,"__toast-body ").concat(e.bodyClassName||"")},[null!=o.value&&N("div",{"data-testid":"toast-icon-".concat(e.type),class:["".concat(YB.CSS_NAMESPACE,"__toast-icon"),e.isLoading?"":"".concat(YB.CSS_NAMESPACE,"--animate-icon ").concat(YB.CSS_NAMESPACE,"__zoom-enter")].join(" ")},[EV(o.value)?b(K(o.value),{theme:e.theme,type:e.type}):wV(o.value)?o.value({theme:e.theme,type:e.type}):o.value]),N("div",{"data-testid":"toast-content"},[EV(e.content)?b(K(e.content),{toastProps:K(e),closeToast:c,data:e.data}):wV(e.content)?e.content({toastProps:K(e),closeToast:c,data:e.data}):e.dangerouslyHTMLString?b("div",{innerHTML:e.content}):e.content])]),(void 0===e.closeButton||!0===e.closeButton)&&N(AV,{theme:e.theme,closeToast:e=>{e.stopPropagation(),e.preventDefault(),c()}},null),EV(e.closeButton)?b(K(e.closeButton),{closeToast:c,type:e.type,theme:e.theme}):wV(e.closeButton)?e.closeButton({closeToast:c,type:e.type,theme:e.theme}):null,N(OV,{className:e.progressClassName,style:e.progressStyle,rtl:e.rtl,theme:e.theme,isIn:a.value,type:e.type,hide:e.hideProgressBar,isRunning:s.value,autoClose:e.autoClose,controlledProgress:r.value,progress:e.progress,closeToast:e.isLoading?void 0:c},null)])}});let DV=0;function MV(){typeof window>"u"||(DV&&window.cancelAnimationFrame(DV),DV=window.requestAnimationFrame(MV),vV.lastUrl!==window.location.href&&(vV.lastUrl=window.location.href,gV.clear()))}const jV=y({name:"ToastifyContainer",inheritAttrs:!1,props:SV,setup(e){const t=v(()=>e.containerId),n=v(()=>hV[t.value]||[]),r=v(()=>n.value.filter(t=>t.position===e.position));return O(()=>{typeof window<"u"&&e.clearOnUrlChange&&window.requestAnimationFrame(MV)}),A(()=>{typeof window<"u"&&DV&&(window.cancelAnimationFrame(DV),vV.lastUrl="")}),()=>N(C,null,[r.value.map(e=>{const{toastId:t=""}=e;return N(RV,U({key:t},e),null)})])}});let UV=!1;function qV(){const e=[];return dV().forEach(t=>{const n=document.getElementById(t.containerId);n&&!n.classList.contains(rV)&&e.push(t)}),e}function FV(e){(function(e){const t=qV().length,n=null!=e?e:0;return n>0&&t+fV.items.length>=n})(e.limit)&&!e.updateId&&fV.items.push({toastId:e.toastId,containerId:e.containerId,toastContent:e.content,toastProps:e})}function BV(e,t,n={}){if(UV)return;(!(n=kV(yV["".concat(YB.CSS_NAMESPACE,"-default-options")]||KB,{type:t},K(n))).toastId||"string"!=typeof n.toastId&&"number"!=typeof n.toastId)&&(n.toastId=bV()),n={...n,content:e,containerId:n.containerId||String(n.position)};const r=Number(null==n?void 0:n.progress);return r<0&&(n.progress=0),r>1&&(n.progress=1),"auto"===n.theme&&(n.theme=document.documentElement.classList.contains("dark")?"dark":"light"),FV(n),vV.lastUrl=window.location.href,n.multiple?fV.items.length?n.updateId&&pV(e,n):pV(e,n):(UV=!0,VV.clearAll(void 0,!1),setTimeout(()=>{pV(e,n)},0),setTimeout(()=>{UV=!1},390)),n.toastId}const VV=(e,t)=>BV(e,WB.DEFAULT,t);VV.info=(e,t)=>BV(e,WB.DEFAULT,{...t,type:WB.INFO}),VV.error=(e,t)=>BV(e,WB.DEFAULT,{...t,type:WB.ERROR}),VV.warning=(e,t)=>BV(e,WB.DEFAULT,{...t,type:WB.WARNING}),VV.warn=VV.warning,VV.success=(e,t)=>BV(e,WB.DEFAULT,{...t,type:WB.SUCCESS}),VV.loading=(e,t)=>
3649BV(e,WB.DEFAULT,kV(t,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1})),VV.dark=(e,t)=>BV(e,WB.DEFAULT,kV(t,{theme:HB.DARK})),VV.remove=e=>{e?gV.dismiss(e):gV.clear()},VV.clearAll=(e,t)=>{gV.clear(e,t)},VV.isActive=e=>{let t=!1;return t=qV().findIndex(t=>t.toastId===e)>-1,t},VV.update=(e,t={})=>{setTimeout(()=>{const n=function(e){return dV().find(t=>t.toastId===e)}(e);if(n){const r=K(n),{content:o}=r,i={...r,...t,toastId:t.toastId||e,updateId:bV()},s=i.render||o;delete i.render,BV(s,i.type,i)}},0)},VV.done=e=>{VV.update(e,{isLoading:!1,progress:1})},VV.promise=function(e,{pending:t,error:n,success:r},o){var i,s,a;let c;const l={...o||{},autoClose:!1};t&&(c=_V(t)?VV.loading(t,l):VV.loading(t.render,{...l,...t}));const u={autoClose:null==(i=null==o?void 0:o.autoClose)||i,closeOnClick:null==(s=null==o?void 0:o.closeOnClick)||s,closeButton:null!=(a=null==o?void 0:o.autoClose)?a:null,isLoading:void 0,draggable:null,delay:100},h=(e,t,n)=>{if(null==t)return void VV.remove(c);const r={type:e,...u,...o,data:n},i=_V(t)?{render:t}:t;return c?VV.update(c,{...r,...i,isLoading:!1}):VV(i.render,{...r,...i,isLoading:!1}),n},f=wV(e)?e():e;return f.then(e=>{h("success",r,e)}).catch(e=>{h("error",n,e)}),f},VV.POSITION=$B,VV.THEME=HB,VV.TYPE=WB,VV.TRANSITIONS={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"};const zV={install(e,t={}){!function(e={}){const t=kV(KB,e);!function(e={}){yV["".concat(YB.CSS_NAMESPACE,"-default-options")]=e}(t)}(t)}};typeof window<"u"&&(window.Vue3Toastify=zV);const $V=e=>(W("data-v-ce1af4f7"),e=e(),G(),e),HV={class:"role-selector"},WV=$V(()=>B("h5",{class:"text-center mb-4"},"Como você quer se conectar?",-1)),GV={class:"d-grid gap-3"},KV={class:"d-flex align-items-center"},YV={class:"icon-container bg-primary-subtle text-primary me-3"},QV=$V(()=>B("div",{class:"flex-grow-1"},[B("h6",{class:"mb-0"},"Entusiasta"),B("small",{class:"text-muted"},"Acompanhe eventos, curta fotos e participe da comunidade.")],-1)),XV={key:0,class:"spinner-border spinner-border-sm text-primary",role:"status"},JV={class:"d-flex align-items-center"},ZV={class:"icon-container bg-success-subtle text-success me-3"},ez=$V(()=>B("div",{class:"flex-grow-1"},[B("h6",{class:"mb-0"},"Corporativo"),B("small",{class:"text-muted"},"Divulgue seu motoclube, banda, evento ou prestação de serviço.")],-1)),tz=hB(y({__name:"RoleSelector",setup(e){const{selectedRole:t,executePendingAction:n,closeOnboarding:r}=pB(),{auth:o,refreshClaims:i}=zB(),s=l(null),c=async()=>{if(!s.value){s.value="enthusiast";try{await $fetch("/api/user/self-claim-role",{method:"POST",body:{role:"enthusiast"},headers:{authorization:`Bearer ${o.value?.token}`}}),VV.success("Bem-vindo(a) ao Motofest Brasil!"),await i(),await n(),r()}catch(e){console.error(e),VV.error("Erro ao criar perfil. Tente novamente.")}finally{s.value=null}}};return(e,n)=>{const r=J("FaIcon"),o=te;return q(),F("div",HV,[WV,B("div",GV,[N(o,{class:"role-card clickable border-2",onClick:c},{default:Z(()=>[B("div",KV,[B("div",YV,[N(r,{icon:"motorcycle",size:"lg"})]),QV,"enthusiast"===a(s)?(q(),F("div",XV)):(q(),ee(r,{key:1,icon:"chevron-right",class:"text-muted small"}))])]),_:1}),N(o,{class:"role-card clickable border-2",onClick:n[0]||(n[0]=e=>t.value="entity")},{default:Z(()=>[B("div",JV,[B("div",ZV,[N(r,{icon:"users",size:"lg"})]),ez,N(r,{icon:"chevron-right",class:"text-muted small"})])]),_:1})])])}}}),[["__scopeId","data-v-ce1af4f7"]]),nz=y({__name:"Handle",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=ne(e,"modelValue"),n=l(t.value||"");return u(()=>{const e=TB.handleToValid(n.value);e!==n.value&&(n.value=e),t.value=e}),(e,t)=>{const r=re;return q(),ee(r,{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e)},null,8,["modelValue"])}}});var rz=/^\s+|\s+$/g,oz=/^[-+]0x[0-9a-f]+$/i,iz=/^0b[01]+$/i,sz=/^0o[0-7]+$/i,az=parseInt,cz="object"==typeof R&&R&&R.Object===Object&&R,lz="object"==typeof self&&self&&self.Object===Object&&self,uz=cz||lz||Function("return this")(),hz=Object.prototype.toString,fz=Math.max,dz=Math.min,pz=function(){return uz.Date.now()};function mz(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function gz(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==hz.call(e)}(e))return NaN;if(mz(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=mz(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(rz,"");var n=iz.test(e);return n||sz.test(e)?az(e.slice(2),n?2:8):oz.test(e)?NaN:+e}const yz=D(function(e,t,n){var r,o,i,s,a,c,l=0,u=!1,h=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function d(t){var n=r,i=o;return r=o=void 0,l=t,s=e.apply(i,n)}function p(e){var n=e-c;return void 0===c||n>=t||n<0||h&&e-l>=i}function m(){var e=pz();if(p(e))return g(e);a=setTimeout(m,function(e){var n=t-(e-c);return h?dz(n,i-(e-l)):n}(e))}function g(e){return a=void 0,f&&r?d(e):(r=o=void 0,s)}function y(){var e=pz(),n=p(e);if(r=arguments,o=this,c=e,n){if(void 0===a)return function(e){return l=e,a=setTimeout(m,t),u?d(e):s}(c);if(h)return a=setTimeout(m,t),d(c)}return void 0===a&&(a=setTimeout(m,t)),s}return t=gz(t)||0,mz(n)&&(u=!!n.leading,i=(h="maxWait"in n)?fz(gz(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=c=o=a=void 0},y.flush=function(){return void 0===a?s:g(pz())},y}),vz={class:"corporate-form"},bz={class:"d-flex align-items-center mb-4"},_z=B("h5",{class:"mb-0"}
3649,"Dados do Perfil",-1),wz={class:"d-grid mt-4"},kz={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},Ez=y({__name:"CorporateForm",setup(e){const{selectedRole:t,executePendingAction:n,closeOnboarding:r}=pB(),{auth:o,refreshClaims:i}=zB(),s=VB(),c=l(!1),u=l(!1),h=l(null),f=l(""),d=l({role:"motoclub",displayName:"",handle:""}),p=[{value:"motoclub",text:"Motoclube"},{value:"music",text:"Banda / Músico"},{value:"service",text:"Prestador de Serviço"},{value:"maker",text:"Organizador de Eventos"}],m=v(()=>u.value?"Verificando disponibilidade...":`Esta será sua página no portal: https://motofestbrasil.com/${d.value.handle||"meu_identificador"}`),g=yz(async()=>{if(d.value.handle){if(d.value.handle.length<3)return h.value=!1,void(f.value="O handle deve ter pelo menos 3 caracteres");u.value=!0;try{const e=await $fetch("/api/handle-available",{query:{handle:d.value.handle}});h.value=e,f.value=e?"":"Este handle já está em uso"}catch(e){console.error(e)}finally{u.value=!1}}else h.value=null},500),y=async()=>{if(!c.value&&!1!==h.value){c.value=!0;try{await $fetch("/api/user/self-claim-role",{method:"POST",body:{role:d.value.role},headers:{authorization:`Bearer ${o.value?.token}`}}),await s.createProfile({displayName:d.value.displayName,handle:d.value.handle,role:d.value.role,visible:!0,socialLinks:{},contactInfo:{email:o.value?.email}}),VV.success("Perfil criado com sucesso!"),await i(),await n(),r()}catch(e){console.error(e),VV.error(e.message||"Erro ao criar perfil. Tente novamente.")}finally{c.value=null}}};return(e,n)=>{const r=J("FaIcon"),o=H,i=se,s=ae,l=re,u=ce,v=nz,b=le,_=ue,w=he;return q(),F("div",vz,[B("div",bz,[N(o,{variant:"link",class:"p-0 me-3 text-dark",onClick:n[0]||(n[0]=e=>t.value=null)},{default:Z(()=>[N(r,{icon:"arrow-left"})]),_:1}),_z]),N(w,{onSubmit:ie(y,["prevent"])},{default:Z(()=>[N(s,{label:"O que você representa?",class:"mb-3"},{default:Z(()=>[N(i,{modelValue:a(d).role,"onUpdate:modelValue":n[1]||(n[1]=e=>a(d).role=e),options:p,required:""},null,8,["modelValue"])]),_:1}),N(s,{label:"Nome de Exibição",class:"mb-3",description:"O nome do seu negócio, motoclube, banda, etc"},{default:Z(()=>[N(l,{modelValue:a(d).displayName,"onUpdate:modelValue":n[2]||(n[2]=e=>a(d).displayName=e),placeholder:"Ex: Moto Club Brasil",required:""},null,8,["modelValue"])]),_:1}),N(s,{label:"Identificador único (seu @)",class:"mb-3",description:a(m)},{default:Z(()=>[N(b,null,{default:Z(()=>[N(u,null,{default:Z(()=>[z("@")]),_:1}),N(v,{modelValue:a(d).handle,"onUpdate:modelValue":n[3]||(n[3]=e=>a(d).handle=e),placeholder:"meu-motoclube",required:"",state:a(h),onInput:a(g)},null,8,["modelValue","state","onInput"])]),_:1}),N(_,{state:a(h)},{default:Z(()=>[z(oe(a(f)),1)]),_:1},8,["state"])]),_:1},8,["description"]),B("div",wz,[N(o,{type:"submit",variant:"primary",disabled:a(c)||!1===a(h)||!a(d).handle},{default:Z(()=>[a(c)?(q(),F("span",kz)):$("",!0),z(" Concluir Cadastro ")]),_:1},8,["disabled"])])]),_:1})])}}}),Tz={class:"onboarding-content p-3"},Sz=y({__name:"Modal",setup(e){const{showModal:t,selectedRole:n,closeOnboarding:r}=pB();return(e,o)=>{const i=tz,s=Ez,c=fe;return q(),ee(c,{modelValue:a(t),"onUpdate:modelValue":o[0]||(o[0]=e=>E(t)?t.value=e:null),placement:"bottom",title:"Finalize seu Perfil",class:"onboarding-modal",onHide:a(r)},{default:Z(()=>[B("div",Tz,[a(n)?(q(),ee(s,{key:1})):(q(),ee(i,{key:0}))])]),_:1},8,["modelValue","onHide"])}}}),xz=()=>{const e=Hs("profile",()=>null),{auth:t,role:n,currentRole:r}=zB(),o=Hs("isLoadingProfile",()=>!0);return{profile:e,fetchProfile:async i=>{if(!t.value?.user.uid)return void console.error("User not authenticated or UID not set.");if(e.value?.uid&&!i)return e.value;const s=i||r.value||n.value;console.info(s);const a=VB();o.value=!0;const c=await a.getProfilebyOwner(s,t.value.user.uid);return e.value=c,o.value=!1,e.value},isLoadingProfile:o}};var Oz={VITE_VERCEL_OBSERVABILITY_CLIENT_CONFIG:'{"analytics":{"scriptSrc":"5d0825d3fa45c8ba/script.js","viewEndpoint":"5d0825d3fa45c8ba/view","eventEndpoint":"5d0825d3fa45c8ba/event","sessionEndpoint":"5d0825d3fa45c8ba/session"}
3649,"speedInsights":{"scriptSrc":"07c4b2543b1e329c/script.js","endpoint":"07c4b2543b1e329c/vitals"}}',BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function Az(e){return new RegExp(`/${t=e,t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`);var t}function Cz(e={}){var t;if("undefined"==typeof window||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});const n=function(e){return e.scriptSrc?e.scriptSrc:e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js"}(e);if(document.head.querySelector(`script[src*="${n}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));const r=document.createElement("script");return r.src=n,r.defer=!0,r.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),r.dataset.sdkv="1.3.1",e.sampleRate&&(r.dataset.sampleRate=e.sampleRate.toString()),e.route&&(r.dataset.route=e.route),e.endpoint?r.dataset.endpoint=e.endpoint:e.basePath&&(r.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(r.dataset.dsn=e.dsn),r.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${n}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(r),{setRoute:e=>{r.dataset.route=e??void 0}}}function Nz(){try{return Oz.VITE_VERCEL_OBSERVABILITY_BASEPATH}catch{}}var Iz=function(e="vue"){return y({props:["dsn","sampleRate","beforeSend","debug","scriptSrc","endpoint"],setup(t){const n=ns(),r=Cz({...t,framework:e,basePath:Nz()});if(n&&r){const e=()=>{r.setRoute(function(e,t){if(!e||!t)return e;let n=e;try{const e=Object.entries(t);for(const[t,r]of e)if(!Array.isArray(r)){const e=Az(r);e.test(n)&&(n=n.replace(e,`/[${t}]`))}for(const[t,r]of e)if(Array.isArray(r)){const e=Az(r.join("/"));e.test(n)&&(n=n.replace(e,`/[...${t}]`))}return n}catch(Vz){return e}}(n.path,n.params))};e(),h(n,e)}},render:()=>null})}("nuxt");const Lz=()=>Hs("zoomed-image-source",()=>null),Pz=pe(()=>zn(()=>import("./ZoomedImage.BxUKYi3o.js"),__vite__mapDeps([114,14,3,115]),import.meta.url).then(e=>e.default||e));var Rz={};const Dz=B("noscript",null,[B("iframe",{src:"https://www.googletagmanager.com/ns.html?id=GTM-WB8R8BN9",height:"0",width:"0",style:{display:"none",visibility:"hidden"}})],-1),Mz=y({__name:"app",setup(e){const{init:t,currentRole:n,auth:r}=zB(),{initPrefs:o}=(()=>{const e=Hs("preferences",()=>({theme:"light"}));return{prefs:e,savePreferences:t=>{console.info("Saving preferences",t),iB.set("preferences",t),e.value=t},initPrefs:()=>{{const t=iB.get("preferences");console.info("Loading Preferences",t),t&&(e.value=t)}return e}}})(),{fetchProfile:i}=xz(),s=Lz(),c=()=>{const e=Rz.ADSENSE_ACCOUNT;return e?{name:"google-adsense-account",content:e}:{}};return Xr(()=>({htmlAttrs:{lang:"pt-BR"},link:[{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:"anonymous"},{rel:"preload",as:"style",media:"screen",onload:'this.onload=null;this.rel="stylesheet"',href:"https://fonts.googleapis.com/css2?family=Mohave&family=Rubik Distressed&:wght@200;300;500;700&display=swap"}],meta:[c(),{name:"adopt-website-id",content:Rz.NUXT_ADOPT_WEBSITE_ID}]})),h(n,e=>{e&&"guest"!==e&&i(e)}),de(()=>{t(e=>i(e)),o()}),(e,t)=>{const n=tB,r=rB,o=Pz,i=fB,c=Sz;return q(),F(C,null,[N(r,null,{default:Z(()=>[N(n)]),_:1}),N(j,{name:"fade",mode:"out-in"},{default:Z(()=>[a(s)?(q(),ee(o,{src:a(s),key:a(s),onClick:t[0]||(t[0]=e=>s.value=null)},null,8,["src"])):$("",!0)]),_:1}),N(a(Iz)),N(i),N(c),Dz],64)}}}),jz={__name:"nuxt-error-page",props:{error:Object},setup(e){const t=e.error;(t.stack||"").split("\n").splice(1).map(e=>({text:e.replace("webpack:/","").replace(".vue",".js").trim(),internal:e.includes("node_modules")&&!e.includes(".cache")||e.includes("internal")||e.includes("new Promise")})).map(e=>`<span class="stack${e.internal?" internal":""}">${e.text}</span>`).join("\n");const n=Number(t.statusCode||500),r=404===n,o=t.statusMessage??(r?"Page Not Found":"Internal Server Error"),i=t.message||t.toString(),s=pe(()=>zn(()=>import("./error-404.snLIYz_u.js"),__vite__mapDeps([116,27,3,117]),import.meta.url).then(e=>e.default||e)),c=pe(()=>zn(()=>import("./error-500.C1qFcsfb.js"),__vite__mapDeps([118,3,119]),import.meta.url).then(e=>e.default||e)),l=r?s:c;return(e,t)=>(q(),ee(a(l),me(ge({statusCode:a(n),statusMessage:a(o),description:a(i),stack:a(undefined)})),null,16))}},Uz=jz,qz={__name:"nuxt-root",setup(e){const t=()=>null,n=Ft(),r=n.deferHydration();if(n.isHydrating){const e=n.hooks.hookOnce("app:error",r);Pn().beforeEach(e)}const o=!1;_(Ln,Rn()),n.hooks.callHookWith(e=>e.map(e=>e()),"vue:setup");const i=jn();ye((e,t,r)=>{if(n.hooks.callHook("vue:error",e,t,r).catch(e=>console.error("[nuxt] Error in `vue:error` hook",e)),(e=>!!e&&"object"==typeof e&&Mn in e)(e)&&(e.fatal||e.unhandled))return n.runWithContext(()=>Un(e)),!1});const s=!1;return(e,n)=>(q(),ee(M,{onResolve:a(r)},{default:Z(()=>[a(i)?(q(),ee(a(Uz),{key:0,error:a(i)},null,8,["error"])):a(s)?(q(),ee(a(t),{key:1,context:a(s)},null,8,["context"])):a(o)?(q(),ee(ve(a(o)),{key:2})):(q(),ee(a(Mz),{key:3}))]),_:1},8,["onResolve"]))}},Fz=qz;let Bz;{let e;Bz=async function(){if(e)return e;const t=Boolean(window.__NUXT__?.serverRendered||"true"===document.getElementById("__NUXT_DATA__")?.dataset.ssr)?be(Fz):Q(Fz),n=jt({vueApp:t});async function r(e){await n.callHook("app:error",e),n.payload.error=n.payload.error||Fn(e)}t.config.errorHandler=r;try{await async function(e,t){const n=[],r=[],o=[],i=[];let s=0;async function a(c){const l=c.dependsOn?.filter(e=>t.some(t=>t._name===e)&&!n.includes(e))??[];if(l.length>0)r.push([new Set(l),c]);else{const t=async function(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),"function"==typeof t){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&"object"==typeof n)for(const t in n)e.provide(t,n[t])}}(e,c).then(async()=>{c._name&&(n.push(c._name),await Promise.all(r.map(async([e,t])=>{e.has(c._name)&&(e.delete(c._name),0===e.size&&(s++,await a(t)))})))});c.parallel?o.push(t.catch(e=>i.push(e))):await t}}for(const c of t)await a(c);if(await Promise.all(o),s)for(let c=0;c<s;c++)await Promise.all(o);if(i.length)throw i[0]}(n,ZF)}catch(o){r(o)}try{await n.hooks.callHook("app:created",t),await n.hooks.callHook("app:beforeMount",t),t.mount("#__nuxt"),await n.hooks.callHook("app:mounted",t),await s()}catch(o){r(o)}return t.config.errorHandler===r&&(t.config.errorHandler=void 0),t},e=Bz().catch(e=>{throw console.error("Error while mounting app:",e),e})}export{aa as $,Wa as A,cu as B,Ca as C,cl as D,Sl as E,uu as F,wa as G,Ra as H,da as I,ha as J,la as K,Ia as L,Tl as M,Xc as N,rl as O,Zc as P,_a as Q,Ol as R,Uc as S,zu as T,Fa as U,Oc as V,ba as W,nc as X,Cc as Y,ia as Z,sa as _,ic as a,Rs as a$,Ac as a0,ra as a1,fa as a2,Pc as a3,Ha as a4,Wu as a5,Qu as a6,Zu as a7,Ua as a8,uc as a9,Xr as aA,zB as aB,xz as aC,Dn as aD,Rn as aE,Pn as aF,$s as aG,AB as aH,yz as aI,gs as aJ,VV as aK,BB as aL,Lu as aM,vs as aN,bs as aO,wB as aP,VB as aQ,ms as aR,Ps as aS,Os as aT,As as aU,Cs as aV,xs as aW,Ns as aX,Ds as aY,Is as aZ,ks as a_,Xu as aa,Xa as ab,Ka as ac,df as ad,pc as ae,uf as af,ff as ag,qc as ah,Ta as ai,Oa as aj,ya as ak,Yu as al,tc as am,_c as an,Ku as ao,Pu as ap,Ec as aq,ca as ar,xa as as,lc as at,Ja as au,qu as av,Ru as aw,ju as ax,Bt as ay,hB as az,ac as b,EB as b0,zn as b1,Hs as b2,TB as b3,Fn as b4,pr as b5,iB as b6,Ft as b7,Iz as b8,Ms as b9,js as ba,Us as bb,Ve as bc,We as bd,Qe as be,Ze as bf,kn as bg,De as bh,Ys as bi,Gs as bj,Ks as bk,Re as bl,to as bm,He as bn,$e as bo,dn as bp,ro as bq,no as br,pB as bs,nz as bt,OB as bu,ys as bv,Lz as bw,Mc as c,Yc as d,hc as e,ja as f,Ma as g,Sc as h,pa as i,Nc as j,ua as k,La as l,sc as m,fl as n,Na as o,Bu as p,fu as q,jc as r,Vu as s,ga as t,Ba as u,Qc as v,tl as w,hu as x,Fu as y,Au as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.