flickrgallery
Version:
Vue3 Flickr Gallery
14 lines • 129 kB
JavaScript
(function(H,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],p):(H=typeof globalThis<"u"?globalThis:H||self,p(H.FlickrGallery={},H.Vue))})(this,function(H,p){"use strict";/*!
* pinia v3.0.2
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let tt;const et=s=>tt=s,di=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function q(s){return s&&typeof s=="object"&&Object.prototype.toString.call(s)==="[object Object]"&&typeof s.toJSON!="function"}var it;(function(s){s.direct="direct",s.patchObject="patch object",s.patchFunction="patch function"})(it||(it={}));const st=typeof window<"u";function Xt(s,t){for(const e in t){const i=t[e];if(!(e in s))continue;const n=s[e];q(n)&&q(i)&&!p.isRef(i)&&!p.isReactive(i)?s[e]=Xt(n,i):s[e]=i}return s}const Yt=()=>{};function Qt(s,t,e,i=Yt){s.push(t);const n=()=>{const o=s.indexOf(t);o>-1&&(s.splice(o,1),i())};return!e&&p.getCurrentScope()&&p.onScopeDispose(n),n}function X(s,...t){s.slice().forEach(e=>{e(...t)})}const ui=s=>s(),te=Symbol(),Lt=Symbol();function Rt(s,t){s instanceof Map&&t instanceof Map?t.forEach((e,i)=>s.set(i,e)):s instanceof Set&&t instanceof Set&&t.forEach(s.add,s);for(const e in t){if(!t.hasOwnProperty(e))continue;const i=t[e],n=s[e];q(n)&&q(i)&&s.hasOwnProperty(e)&&!p.isRef(i)&&!p.isReactive(i)?s[e]=Rt(n,i):s[e]=i}return s}const pi=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function fi(s){return!q(s)||!Object.prototype.hasOwnProperty.call(s,pi)}const{assign:z}=Object;function ee(s){return!!(p.isRef(s)&&s.effect)}function ie(s,t,e,i){const{state:n,actions:o,getters:r}=t,a=e.state.value[s];let c;function l(){!a&&(process.env.NODE_ENV==="production"||!i)&&(e.state.value[s]=n?n():{});const h=process.env.NODE_ENV!=="production"&&i?p.toRefs(p.ref(n?n():{}).value):p.toRefs(e.state.value[s]);return z(h,o,Object.keys(r||{}).reduce((u,m)=>(process.env.NODE_ENV!=="production"&&m in h&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${m}" in store "${s}".`),u[m]=p.markRaw(p.computed(()=>{et(e);const v=e._s.get(s);return r[m].call(v,v)})),u),{}))}return c=Dt(s,l,t,e,i,!0),c}function Dt(s,t,e={},i,n,o){let r;const a=z({actions:{}},e);if(process.env.NODE_ENV!=="production"&&!i._e.active)throw new Error("Pinia destroyed");const c={deep:!0};process.env.NODE_ENV!=="production"&&(c.onTrigger=_=>{l?v=_:l==!1&&!S._hotUpdating&&(Array.isArray(v)?v.push(_):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let l,h,u=[],m=[],v;const f=i.state.value[s];!o&&!f&&(process.env.NODE_ENV==="production"||!n)&&(i.state.value[s]={});const w=p.ref({});let y;function E(_){let g;l=h=!1,process.env.NODE_ENV!=="production"&&(v=[]),typeof _=="function"?(_(i.state.value[s]),g={type:it.patchFunction,storeId:s,events:v}):(Rt(i.state.value[s],_),g={type:it.patchObject,payload:_,storeId:s,events:v});const P=y=Symbol();p.nextTick().then(()=>{y===P&&(l=!0)}),h=!0,X(u,g,i.state.value[s])}const O=o?function(){const{state:g}=e,P=g?g():{};this.$patch(M=>{z(M,P)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${s}" is built using the setup syntax and does not implement $reset().`)}:Yt;function x(){r.stop(),u=[],m=[],i._s.delete(s)}const N=(_,g="")=>{if(te in _)return _[Lt]=g,_;const P=function(){et(i);const M=Array.from(arguments),gt=[],Jt=[];function Lo(B){gt.push(B)}function Ro(B){Jt.push(B)}X(m,{args:M,name:P[Lt],store:S,after:Lo,onError:Ro});let yt;try{yt=_.apply(this&&this.$id===s?this:S,M)}catch(B){throw X(Jt,B),B}return yt instanceof Promise?yt.then(B=>(X(gt,B),B)).catch(B=>(X(Jt,B),Promise.reject(B))):(X(gt,yt),yt)};return P[te]=!0,P[Lt]=g,P},T=p.markRaw({actions:{},getters:{},state:[],hotState:w}),$={_p:i,$id:s,$onAction:Qt.bind(null,m),$patch:E,$reset:O,$subscribe(_,g={}){const P=Qt(u,_,g.detached,()=>M()),M=r.run(()=>p.watch(()=>i.state.value[s],gt=>{(g.flush==="sync"?h:l)&&_({storeId:s,type:it.direct,events:v},gt)},z({},c,g)));return P},$dispose:x},S=p.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&st?z({_hmrPayload:T,_customProperties:p.markRaw(new Set)},$):$);i._s.set(s,S);const U=(i._a&&i._a.runWithContext||ui)(()=>i._e.run(()=>(r=p.effectScope()).run(()=>t({action:N}))));for(const _ in U){const g=U[_];if(p.isRef(g)&&!ee(g)||p.isReactive(g))process.env.NODE_ENV!=="production"&&n?w.value[_]=p.toRef(U,_):o||(f&&fi(g)&&(p.isRef(g)?g.value=f[_]:Rt(g,f[_])),i.state.value[s][_]=g),process.env.NODE_ENV!=="production"&&T.state.push(_);else if(typeof g=="function"){const P=process.env.NODE_ENV!=="production"&&n?g:N(g,_);U[_]=P,process.env.NODE_ENV!=="production"&&(T.actions[_]=g),a.actions[_]=g}else process.env.NODE_ENV!=="production"&&ee(g)&&(T.getters[_]=o?e.getters[_]:g,st&&(U._getters||(U._getters=p.markRaw([]))).push(_))}if(z(S,U),z(p.toRaw(S),U),Object.defineProperty(S,"$state",{get:()=>process.env.NODE_ENV!=="production"&&n?w.value:i.state.value[s],set:_=>{if(process.env.NODE_ENV!=="production"&&n)throw new Error("cannot set hotState");E(g=>{z(g,_)})}}),process.env.NODE_ENV!=="production"&&(S._hotUpdate=p.markRaw(_=>{S._hotUpdating=!0,_._hmrPayload.state.forEach(g=>{if(g in S.$state){const P=_.$state[g],M=S.$state[g];typeof P=="object"&&q(P)&&q(M)?Xt(P,M):_.$state[g]=M}S[g]=p.toRef(_.$state,g)}),Object.keys(S.$state).forEach(g=>{g in _.$state||delete S[g]}),l=!1,h=!1,i.state.value[s]=p.toRef(_._hmrPayload,"hotState"),h=!0,p.nextTick().then(()=>{l=!0});for(const g in _._hmrPayload.actions){const P=_[g];S[g]=N(P,g)}for(const g in _._hmrPayload.getters){const P=_._hmrPayload.getters[g],M=o?p.computed(()=>(et(i),P.call(S,S))):P;S[g]=M}Object.keys(S._hmrPayload.getters).forEach(g=>{g in _._hmrPayload.getters||delete S[g]}),Object.keys(S._hmrPayload.actions).forEach(g=>{g in _._hmrPayload.actions||delete S[g]}),S._hmrPayload=_._hmrPayload,S._getters=_._getters,S._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&st){const _={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(g=>{Object.defineProperty(S,g,z({value:S[g]},_))})}return i._p.forEach(_=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&st){const g=r.run(()=>_({store:S,app:i._a,pinia:i,options:a}));Object.keys(g||{}).forEach(P=>S._customProperties.add(P)),z(S,g)}else z(S,r.run(()=>_({store:S,app:i._a,pinia:i,options:a})))}),process.env.NODE_ENV!=="production"&&S.$state&&typeof S.$state=="object"&&typeof S.$state.constructor=="function"&&!S.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
state: () => new MyClass()
Found in store "${S.$id}".`),f&&o&&e.hydrate&&e.hydrate(S.$state,f),l=!0,h=!0,S}/*! #__NO_SIDE_EFFECTS__ */function mi(s,t,e){let i;const n=typeof t=="function";i=n?e:t;function o(r,a){const c=p.hasInjectionContext();if(r=(process.env.NODE_ENV==="test"&&tt&&tt._testing?null:r)||(c?p.inject(di,null):null),r&&et(r),process.env.NODE_ENV!=="production"&&!tt)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
This will fail in production.`);r=tt,r._s.has(s)||(n?Dt(s,t,i,r):ie(s,i,r),process.env.NODE_ENV!=="production"&&(o._pinia=r));const l=r._s.get(s);if(process.env.NODE_ENV!=="production"&&a){const h="__hot:"+s,u=n?Dt(h,t,i,r,!0):ie(h,z({},i),r,!0);a._hotUpdate(u),delete r.state.value[h],r._s.delete(h)}if(process.env.NODE_ENV!=="production"&&st){const h=p.getCurrentInstance();if(h&&h.proxy&&!a){const u=h.proxy,m="_pStores"in u?u._pStores:u._pStores={};m[s]=l}}return l}return o.$id=s,o}function gi(s){et(s)}const yi=/"(?:_|\\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*:/,_i=/"(?: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*:/,wi=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function vi(s,t){if(s==="__proto__"||s==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Si(s);return}return t}function Si(s){console.warn(`[destr] Dropping "${s}" key to prevent prototype pollution.`)}function bi(s,t={}){if(typeof s!="string")return s;if(s[0]==='"'&&s[s.length-1]==='"'&&s.indexOf("\\")===-1)return s.slice(1,-1);const e=s.trim();if(e.length<=9)switch(e.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(!wi.test(s)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return s}try{if(yi.test(s)||_i.test(s)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(s,vi)}return JSON.parse(s)}catch(i){if(t.strict)throw i;return s}}function Ei(s,t){if(s==null)return;let e=s;for(let i=0;i<t.length;i++){if(e==null||e[t[i]]==null)return;e=e[t[i]]}return e}function Nt(s,t,e){if(e.length===0)return t;const i=e[0];return e.length>1&&(t=Nt(typeof s!="object"||s===null||!Object.prototype.hasOwnProperty.call(s,i)?Number.isInteger(Number(e[1]))?[]:{}:s[i],t,Array.prototype.slice.call(e,1))),Number.isInteger(Number(i))&&Array.isArray(s)?s.slice()[i]:Object.assign({},s,{[i]:t})}function se(s,t){if(s==null||t.length===0)return s;if(t.length===1){if(s==null)return s;if(Number.isInteger(t[0])&&Array.isArray(s))return Array.prototype.slice.call(s,0).splice(t[0],1);const e={};for(const i in s)e[i]=s[i];return delete e[t[0]],e}if(s[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(s))return Array.prototype.concat.call([],s);const e={};for(const i in s)e[i]=s[i];return e}return Nt(s,se(s[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function ne(s,t){return t.map(e=>e.split(".")).map(e=>[e,Ei(s,e)]).filter(e=>e[1]!==void 0).reduce((e,i)=>Nt(e,i[1],i[0]),{})}function oe(s,t){return t.map(e=>e.split(".")).reduce((e,i)=>se(e,i),s)}function re(s,{storage:t,serializer:e,key:i,debug:n,pick:o,omit:r,beforeHydrate:a,afterHydrate:c},l,h=!0){try{h&&(a==null||a(l));const u=t.getItem(i);if(u){const m=e.deserialize(u),v=o?ne(m,o):m,f=r?oe(v,r):v;s.$patch(f)}h&&(c==null||c(l))}catch(u){n&&console.error("[pinia-plugin-persistedstate]",u)}}function ae(s,{storage:t,serializer:e,key:i,debug:n,pick:o,omit:r}){try{const a=o?ne(s,o):s,c=r?oe(a,r):a,l=e.serialize(c);t.setItem(i,l)}catch(a){n&&console.error("[pinia-plugin-persistedstate]",a)}}function Pi(s,t,e){const{pinia:i,store:n,options:{persist:o=e}}=s;if(!o)return;if(!(n.$id in i.state.value)){const c=i._s.get(n.$id.replace("__hot:",""));c&&Promise.resolve().then(()=>c.$persist());return}const a=(Array.isArray(o)?o:o===!0?[{}]:[o]).map(t);n.$hydrate=({runHooks:c=!0}={})=>{a.forEach(l=>{re(n,l,s,c)})},n.$persist=()=>{a.forEach(c=>{ae(n.$state,c)})},a.forEach(c=>{re(n,c,s),n.$subscribe((l,h)=>ae(h,c),{detached:!0})})}function Ai(s={}){return function(t){Pi(t,e=>({key:(s.key?s.key:i=>i)(e.key??t.store.$id),debug:e.debug??s.debug??!1,serializer:e.serializer??s.serializer??{serialize:i=>JSON.stringify(i),deserialize:i=>bi(i)},storage:e.storage??s.storage??window.localStorage,beforeHydrate:e.beforeHydrate,afterHydrate:e.afterHydrate,pick:e.pick,omit:e.omit}),s.auto??!1)}}var le=Ai();/*!
* PhotoSwipe Lightbox 5.4.4 - https://photoswipe.com
* (c) 2024 Dmytro Semenov
*/function nt(s,t,e){const i=document.createElement(t);return s&&(i.className=s),e&&e.appendChild(i),i}function Oi(s,t,e){let i=`translate3d(${s}px,0px,0)`;return e!==void 0&&(i+=` scale3d(${e},${e},1)`),i}function zt(s,t,e){s.style.width=typeof t=="number"?`${t}px`:t,s.style.height=typeof e=="number"?`${e}px`:e}const F={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function Ci(s){return"button"in s&&s.button===1||s.ctrlKey||s.metaKey||s.altKey||s.shiftKey}function ot(s,t,e=document){let i=[];if(s instanceof Element)i=[s];else if(s instanceof NodeList||Array.isArray(s))i=Array.from(s);else{const n=typeof s=="string"?s:t;n&&(i=Array.from(e.querySelectorAll(n)))}return i}function xi(s){return typeof s=="function"&&s.prototype&&s.prototype.goTo}function ce(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}let Ti=class{constructor(t,e){this.type=t,this.defaultPrevented=!1,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}},Ii=class{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,e,i=100){var n,o,r;this._filters[t]||(this._filters[t]=[]),(n=this._filters[t])===null||n===void 0||n.push({fn:e,priority:i}),(o=this._filters[t])===null||o===void 0||o.sort((a,c)=>a.priority-c.priority),(r=this.pswp)===null||r===void 0||r.addFilter(t,e,i)}removeFilter(t,e){this._filters[t]&&(this._filters[t]=this._filters[t].filter(i=>i.fn!==e)),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){var i;return(i=this._filters[t])===null||i===void 0||i.forEach(n=>{e[0]=n.fn.apply(this,e)}),e[0]}on(t,e){var i,n;this._listeners[t]||(this._listeners[t]=[]),(i=this._listeners[t])===null||i===void 0||i.push(e),(n=this.pswp)===null||n===void 0||n.on(t,e)}off(t,e){var i;this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(n=>e!==n)),(i=this.pswp)===null||i===void 0||i.off(t,e)}dispatch(t,e){var i;if(this.pswp)return this.pswp.dispatch(t,e);const n=new Ti(t,e);return(i=this._listeners[t])===null||i===void 0||i.forEach(o=>{o.call(this,n)}),n}},Li=class{constructor(t,e){if(this.element=nt("pswp__img pswp__img--placeholder",t?"img":"div",e),t){const i=this.element;i.decoding="async",i.alt="",i.src=t,i.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){this.element&&(this.element.tagName==="IMG"?(zt(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=Oi(0,0,t/250)):zt(this.element,t,e))}destroy(){var t;(t=this.element)!==null&&t!==void 0&&t.parentNode&&this.element.remove(),this.element=null}},Ri=class{constructor(t,e,i){this.instance=e,this.data=t,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=F.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(t,e){if(this.slide&&this.usePlaceholder())if(this.placeholder){const i=this.placeholder.element;i&&!i.parentElement&&this.slide.container.prepend(i)}else{const i=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new Li(i,this.slide.container)}this.element&&!e||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=nt("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=nt("pswp__content","div"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){var e,i;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const n=this.element;this.updateSrcsetSizes(),this.data.srcset&&(n.srcset=this.data.srcset),n.src=(e=this.data.src)!==null&&e!==void 0?e:"",n.alt=(i=this.data.alt)!==null&&i!==void 0?i:"",this.state=F.LOADING,n.complete?this.onLoaded():(n.onload=()=>{this.onLoaded()},n.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=F.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===F.LOADED||this.state===F.ERROR)&&this.removePlaceholder())}onError(){this.state=F.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===F.LOADING,this)}isError(){return this.state===F.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(t,e){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,e),!this.instance.dispatch("contentResize",{content:this,width:t,height:e}).defaultPrevented&&(zt(this.element,t,e),this.isImageContent()&&!this.isError()))){const i=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=e,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:e,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==F.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=e+"px",t.dataset.largestUsedSize=String(e))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var t,e;let i=nt("pswp__error-msg","div");i.innerText=(t=(e=this.instance.options)===null||e===void 0?void 0:e.errorMsg)!==null&&t!==void 0?t:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=nt("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===F.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||ce())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!ce()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===F.LOADED||this.state===F.ERROR)&&this.removePlaceholder()))}};function Di(s,t){if(s.getViewportSizeFn){const e=s.getViewportSizeFn(s,t);if(e)return e}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function _t(s,t,e,i,n){let o=0;if(t.paddingFn)o=t.paddingFn(e,i,n)[s];else if(t.padding)o=t.padding[s];else{const r="padding"+s[0].toUpperCase()+s.slice(1);t[r]&&(o=t[r])}return Number(o)||0}function Ni(s,t,e,i){return{x:t.x-_t("left",s,t,e,i)-_t("right",s,t,e,i),y:t.y-_t("top",s,t,e,i)-_t("bottom",s,t,e,i)}}const he=4e3;let zi=class{constructor(t,e,i,n){this.pswp=n,this.options=t,this.itemData=e,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,e,i){const n={x:t,y:e};this.elementSize=n,this.panAreaSize=i;const o=i.x/n.x,r=i.y/n.y;this.fit=Math.min(1,o<r?o:r),this.fill=Math.min(1,o>r?o:r),this.vFill=Math.min(1,r),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){const e=t+"ZoomLevel",i=this.options[e];if(i)return typeof i=="function"?i(this):i==="fill"?this.fill:i==="fit"?this.fit:Number(i)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,this.fit*3),this.elementSize&&t*this.elementSize.x>he&&(t=he/this.elementSize.x),t)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}};function de(s,t,e){const i=t.createContentFromData(s,e);let n;const{options:o}=t;if(o){n=new zi(o,s,-1);let r;t.pswp?r=t.pswp.viewportSize:r=Di(o,t);const a=Ni(o,r,s,e);n.update(i.width,i.height,a)}return i.lazyLoad(),n&&i.setDisplayedSize(Math.ceil(i.width*n.initial),Math.ceil(i.height*n.initial)),i}function Fi(s,t){const e=t.getItemData(s);if(!t.dispatch("lazyLoadSlide",{index:s,itemData:e}).defaultPrevented)return de(e,t,s)}let ki=class extends Ii{getNumItems(){var t;let e=0;const i=(t=this.options)===null||t===void 0?void 0:t.dataSource;i&&"length"in i?e=i.length:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),i.items&&(e=i.items.length));const n=this.dispatch("numItems",{dataSource:i,numItems:e});return this.applyFilters("numItems",n.numItems,i)}createContentFromData(t,e){return new Ri(t,this,e)}getItemData(t){var e;const i=(e=this.options)===null||e===void 0?void 0:e.dataSource;let n={};Array.isArray(i)?n=i[t]:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),n=i.items[t]);let o=n;o instanceof Element&&(o=this._domElementToItemData(o));const r=this.dispatch("itemData",{itemData:o||{},index:t});return this.applyFilters("itemData",r.itemData,t)}_getGalleryDOMElements(t){var e,i;return(e=this.options)!==null&&e!==void 0&&e.children||(i=this.options)!==null&&i!==void 0&&i.childSelector?ot(this.options.children,this.options.childSelector,t)||[]:[t]}_domElementToItemData(t){const e={element:t},i=t.tagName==="A"?t:t.querySelector("a");if(i){e.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(e.srcset=i.dataset.pswpSrcset),e.width=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,e.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,e.w=e.width,e.h=e.height,i.dataset.pswpType&&(e.type=i.dataset.pswpType);const o=t.querySelector("img");if(o){var n;e.msrc=o.currentSrc||o.src,e.alt=(n=o.getAttribute("alt"))!==null&&n!==void 0?n:""}(i.dataset.pswpCropped||i.dataset.cropped)&&(e.thumbCropped=!0)}return this.applyFilters("domItemData",e,t,i)}lazyLoadData(t,e){return de(t,this,e)}};class Mi extends ki{constructor(t){super(),this.options=t||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){ot(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(t){if(Ci(t)||window.pswp)return;let e={x:t.clientX,y:t.clientY};!e.x&&!e.y&&(e=null);let i=this.getClickedIndex(t);i=this.applyFilters("clickedIndex",i,t,this);const n={gallery:t.currentTarget};i>=0&&(t.preventDefault(),this.loadAndOpen(i,n,e))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);const e=t.target,n=ot(this.options.children,this.options.childSelector,t.currentTarget).findIndex(o=>o===e||o.contains(e));return n!==-1?n:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,e,i){if(window.pswp||!this.options)return!1;if(!e&&this.options.gallery&&this.options.children){const n=ot(this.options.gallery);n[0]&&(e={gallery:n[0]})}return this.options.index=t,this.options.initialPointerPos=i,this.shouldOpen=!0,this.preload(t,e),!0}preload(t,e){const{options:i}=this;e&&(i.dataSource=e);const n=[],o=typeof i.pswpModule;if(xi(i.pswpModule))n.push(Promise.resolve(i.pswpModule));else{if(o==="string")throw new Error("pswpModule as string is no longer supported");if(o==="function")n.push(i.pswpModule());else throw new Error("pswpModule is not valid")}typeof i.openPromise=="function"&&n.push(i.openPromise()),i.preloadFirstSlide!==!1&&t>=0&&(this._preloadedContent=Fi(t,this));const r=++this._uid;Promise.all(n).then(a=>{if(this.shouldOpen){const c=a[0];this._openPhotoswipe(c,r)}})}_openPhotoswipe(t,e){if(e!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;const i=typeof t=="object"?new t.default(this.options):new t(this.options);this.pswp=i,window.pswp=i,Object.keys(this._listeners).forEach(n=>{var o;(o=this._listeners[n])===null||o===void 0||o.forEach(r=>{i.on(n,r)})}),Object.keys(this._filters).forEach(n=>{var o;(o=this._filters[n])===null||o===void 0||o.forEach(r=>{i.addFilter(n,r.fn,r.priority)})}),this._preloadedContent&&(i.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),i.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),i.init()}destroy(){var t;(t=this.pswp)===null||t===void 0||t.destroy(),this.shouldOpen=!1,this._listeners={},ot(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.removeEventListener("click",this.onThumbnailsClick,!1)})}}function ue(s,t){return function(){return s.apply(t,arguments)}}const{toString:Bi}=Object.prototype,{getPrototypeOf:Ft}=Object,{iterator:wt,toStringTag:pe}=Symbol,vt=(s=>t=>{const e=Bi.call(t);return s[e]||(s[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Z=s=>(s=s.toLowerCase(),t=>vt(t)===s),St=s=>t=>typeof t===s,{isArray:Y}=Array,rt=St("undefined");function Zi(s){return s!==null&&!rt(s)&&s.constructor!==null&&!rt(s.constructor)&&L(s.constructor.isBuffer)&&s.constructor.isBuffer(s)}const fe=Z("ArrayBuffer");function $i(s){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(s):t=s&&s.buffer&&fe(s.buffer),t}const Ui=St("string"),L=St("function"),me=St("number"),bt=s=>s!==null&&typeof s=="object",Vi=s=>s===!0||s===!1,Et=s=>{if(vt(s)!=="object")return!1;const t=Ft(s);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(pe in s)&&!(wt in s)},Hi=Z("Date"),qi=Z("File"),Wi=Z("Blob"),ji=Z("FileList"),Gi=s=>bt(s)&&L(s.pipe),Ki=s=>{let t;return s&&(typeof FormData=="function"&&s instanceof FormData||L(s.append)&&((t=vt(s))==="formdata"||t==="object"&&L(s.toString)&&s.toString()==="[object FormData]"))},Ji=Z("URLSearchParams"),[Xi,Yi,Qi,ts]=["ReadableStream","Request","Response","Headers"].map(Z),es=s=>s.trim?s.trim():s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function at(s,t,{allOwnKeys:e=!1}={}){if(s===null||typeof s>"u")return;let i,n;if(typeof s!="object"&&(s=[s]),Y(s))for(i=0,n=s.length;i<n;i++)t.call(null,s[i],i,s);else{const o=e?Object.getOwnPropertyNames(s):Object.keys(s),r=o.length;let a;for(i=0;i<r;i++)a=o[i],t.call(null,s[a],a,s)}}function ge(s,t){t=t.toLowerCase();const e=Object.keys(s);let i=e.length,n;for(;i-- >0;)if(n=e[i],t===n.toLowerCase())return n;return null}const W=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ye=s=>!rt(s)&&s!==W;function kt(){const{caseless:s}=ye(this)&&this||{},t={},e=(i,n)=>{const o=s&&ge(t,n)||n;Et(t[o])&&Et(i)?t[o]=kt(t[o],i):Et(i)?t[o]=kt({},i):Y(i)?t[o]=i.slice():t[o]=i};for(let i=0,n=arguments.length;i<n;i++)arguments[i]&&at(arguments[i],e);return t}const is=(s,t,e,{allOwnKeys:i}={})=>(at(t,(n,o)=>{e&&L(n)?s[o]=ue(n,e):s[o]=n},{allOwnKeys:i}),s),ss=s=>(s.charCodeAt(0)===65279&&(s=s.slice(1)),s),ns=(s,t,e,i)=>{s.prototype=Object.create(t.prototype,i),s.prototype.constructor=s,Object.defineProperty(s,"super",{value:t.prototype}),e&&Object.assign(s.prototype,e)},os=(s,t,e,i)=>{let n,o,r;const a={};if(t=t||{},s==null)return t;do{for(n=Object.getOwnPropertyNames(s),o=n.length;o-- >0;)r=n[o],(!i||i(r,s,t))&&!a[r]&&(t[r]=s[r],a[r]=!0);s=e!==!1&&Ft(s)}while(s&&(!e||e(s,t))&&s!==Object.prototype);return t},rs=(s,t,e)=>{s=String(s),(e===void 0||e>s.length)&&(e=s.length),e-=t.length;const i=s.indexOf(t,e);return i!==-1&&i===e},as=s=>{if(!s)return null;if(Y(s))return s;let t=s.length;if(!me(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=s[t];return e},ls=(s=>t=>s&&t instanceof s)(typeof Uint8Array<"u"&&Ft(Uint8Array)),cs=(s,t)=>{const i=(s&&s[wt]).call(s);let n;for(;(n=i.next())&&!n.done;){const o=n.value;t.call(s,o[0],o[1])}},hs=(s,t)=>{let e;const i=[];for(;(e=s.exec(t))!==null;)i.push(e);return i},ds=Z("HTMLFormElement"),us=s=>s.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,i,n){return i.toUpperCase()+n}),_e=(({hasOwnProperty:s})=>(t,e)=>s.call(t,e))(Object.prototype),ps=Z("RegExp"),we=(s,t)=>{const e=Object.getOwnPropertyDescriptors(s),i={};at(e,(n,o)=>{let r;(r=t(n,o,s))!==!1&&(i[o]=r||n)}),Object.defineProperties(s,i)},fs=s=>{we(s,(t,e)=>{if(L(s)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const i=s[e];if(L(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},ms=(s,t)=>{const e={},i=n=>{n.forEach(o=>{e[o]=!0})};return Y(s)?i(s):i(String(s).split(t)),e},gs=()=>{},ys=(s,t)=>s!=null&&Number.isFinite(s=+s)?s:t;function _s(s){return!!(s&&L(s.append)&&s[pe]==="FormData"&&s[wt])}const ws=s=>{const t=new Array(10),e=(i,n)=>{if(bt(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[n]=i;const o=Y(i)?[]:{};return at(i,(r,a)=>{const c=e(r,n+1);!rt(c)&&(o[a]=c)}),t[n]=void 0,o}}return i};return e(s,0)},vs=Z("AsyncFunction"),Ss=s=>s&&(bt(s)||L(s))&&L(s.then)&&L(s.catch),ve=((s,t)=>s?setImmediate:t?((e,i)=>(W.addEventListener("message",({source:n,data:o})=>{n===W&&o===e&&i.length&&i.shift()()},!1),n=>{i.push(n),W.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",L(W.postMessage)),bs=typeof queueMicrotask<"u"?queueMicrotask.bind(W):typeof process<"u"&&process.nextTick||ve,d={isArray:Y,isArrayBuffer:fe,isBuffer:Zi,isFormData:Ki,isArrayBufferView:$i,isString:Ui,isNumber:me,isBoolean:Vi,isObject:bt,isPlainObject:Et,isReadableStream:Xi,isRequest:Yi,isResponse:Qi,isHeaders:ts,isUndefined:rt,isDate:Hi,isFile:qi,isBlob:Wi,isRegExp:ps,isFunction:L,isStream:Gi,isURLSearchParams:Ji,isTypedArray:ls,isFileList:ji,forEach:at,merge:kt,extend:is,trim:es,stripBOM:ss,inherits:ns,toFlatObject:os,kindOf:vt,kindOfTest:Z,endsWith:rs,toArray:as,forEachEntry:cs,matchAll:hs,isHTMLForm:ds,hasOwnProperty:_e,hasOwnProp:_e,reduceDescriptors:we,freezeMethods:fs,toObjectSet:ms,toCamelCase:us,noop:gs,toFiniteNumber:ys,findKey:ge,global:W,isContextDefined:ye,isSpecCompliantForm:_s,toJSONObject:ws,isAsyncFn:vs,isThenable:Ss,setImmediate:ve,asap:bs,isIterable:s=>s!=null&&L(s[wt])};function b(s,t,e,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=s,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),i&&(this.request=i),n&&(this.response=n,this.status=n.status?n.status:null)}d.inherits(b,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:d.toJSONObject(this.config),code:this.code,status:this.status}}});const Se=b.prototype,be={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(s=>{be[s]={value:s}}),Object.defineProperties(b,be),Object.defineProperty(Se,"isAxiosError",{value:!0}),b.from=(s,t,e,i,n,o)=>{const r=Object.create(Se);return d.toFlatObject(s,r,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),b.call(r,s.message,t,e,i,n),r.cause=s,r.name=s.name,o&&Object.assign(r,o),r};const Es=null;function Mt(s){return d.isPlainObject(s)||d.isArray(s)}function Ee(s){return d.endsWith(s,"[]")?s.slice(0,-2):s}function Pe(s,t,e){return s?s.concat(t).map(function(n,o){return n=Ee(n),!e&&o?"["+n+"]":n}).join(e?".":""):t}function Ps(s){return d.isArray(s)&&!s.some(Mt)}const As=d.toFlatObject(d,{},null,function(t){return/^is[A-Z]/.test(t)});function Pt(s,t,e){if(!d.isObject(s))throw new TypeError("target must be an object");t=t||new FormData,e=d.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,y){return!d.isUndefined(y[w])});const i=e.metaTokens,n=e.visitor||h,o=e.dots,r=e.indexes,c=(e.Blob||typeof Blob<"u"&&Blob)&&d.isSpecCompliantForm(t);if(!d.isFunction(n))throw new TypeError("visitor must be a function");function l(f){if(f===null)return"";if(d.isDate(f))return f.toISOString();if(!c&&d.isBlob(f))throw new b("Blob is not supported. Use a Buffer instead.");return d.isArrayBuffer(f)||d.isTypedArray(f)?c&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function h(f,w,y){let E=f;if(f&&!y&&typeof f=="object"){if(d.endsWith(w,"{}"))w=i?w:w.slice(0,-2),f=JSON.stringify(f);else if(d.isArray(f)&&Ps(f)||(d.isFileList(f)||d.endsWith(w,"[]"))&&(E=d.toArray(f)))return w=Ee(w),E.forEach(function(x,N){!(d.isUndefined(x)||x===null)&&t.append(r===!0?Pe([w],N,o):r===null?w:w+"[]",l(x))}),!1}return Mt(f)?!0:(t.append(Pe(y,w,o),l(f)),!1)}const u=[],m=Object.assign(As,{defaultVisitor:h,convertValue:l,isVisitable:Mt});function v(f,w){if(!d.isUndefined(f)){if(u.indexOf(f)!==-1)throw Error("Circular reference detected in "+w.join("."));u.push(f),d.forEach(f,function(E,O){(!(d.isUndefined(E)||E===null)&&n.call(t,E,d.isString(O)?O.trim():O,w,m))===!0&&v(E,w?w.concat(O):[O])}),u.pop()}}if(!d.isObject(s))throw new TypeError("data must be an object");return v(s),t}function Ae(s){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(s).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Bt(s,t){this._pairs=[],s&&Pt(s,this,t)}const Oe=Bt.prototype;Oe.append=function(t,e){this._pairs.push([t,e])},Oe.toString=function(t){const e=t?function(i){return t.call(this,i,Ae)}:Ae;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function Os(s){return encodeURIComponent(s).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ce(s,t,e){if(!t)return s;const i=e&&e.encode||Os;d.isFunction(e)&&(e={serialize:e});const n=e&&e.serialize;let o;if(n?o=n(t,e):o=d.isURLSearchParams(t)?t.toString():new Bt(t,e).toString(i),o){const r=s.indexOf("#");r!==-1&&(s=s.slice(0,r)),s+=(s.indexOf("?")===-1?"?":"&")+o}return s}class xe{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){d.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cs={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Bt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Zt=typeof window<"u"&&typeof document<"u",$t=typeof navigator=="object"&&navigator||void 0,xs=Zt&&(!$t||["ReactNative","NativeScript","NS"].indexOf($t.product)<0),Ts=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Is=Zt&&window.location.href||"http://localhost",I={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zt,hasStandardBrowserEnv:xs,hasStandardBrowserWebWorkerEnv:Ts,navigator:$t,origin:Is},Symbol.toStringTag,{value:"Module"})),...Cs};function Ls(s,t){return Pt(s,new I.classes.URLSearchParams,Object.assign({visitor:function(e,i,n,o){return I.isNode&&d.isBuffer(e)?(this.append(i,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Rs(s){return d.matchAll(/\w+|\[(\w*)]/g,s).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ds(s){const t={},e=Object.keys(s);let i;const n=e.length;let o;for(i=0;i<n;i++)o=e[i],t[o]=s[o];return t}function Ie(s){function t(e,i,n,o){let r=e[o++];if(r==="__proto__")return!0;const a=Number.isFinite(+r),c=o>=e.length;return r=!r&&d.isArray(n)?n.length:r,c?(d.hasOwnProp(n,r)?n[r]=[n[r],i]:n[r]=i,!a):((!n[r]||!d.isObject(n[r]))&&(n[r]=[]),t(e,i,n[r],o)&&d.isArray(n[r])&&(n[r]=Ds(n[r])),!a)}if(d.isFormData(s)&&d.isFunction(s.entries)){const e={};return d.forEachEntry(s,(i,n)=>{t(Rs(i),n,e,0)}),e}return null}function Ns(s,t,e){if(d.isString(s))try{return(t||JSON.parse)(s),d.trim(s)}catch(i){if(i.name!=="SyntaxError")throw i}return(e||JSON.stringify)(s)}const lt={transitional:Te,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const i=e.getContentType()||"",n=i.indexOf("application/json")>-1,o=d.isObject(t);if(o&&d.isHTMLForm(t)&&(t=new FormData(t)),d.isFormData(t))return n?JSON.stringify(Ie(t)):t;if(d.isArrayBuffer(t)||d.isBuffer(t)||d.isStream(t)||d.isFile(t)||d.isBlob(t)||d.isReadableStream(t))return t;if(d.isArrayBufferView(t))return t.buffer;if(d.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Ls(t,this.formSerializer).toString();if((a=d.isFileList(t))||i.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Pt(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),Ns(t)):t}],transformResponse:[function(t){const e=this.transitional||lt.transitional,i=e&&e.forcedJSONParsing,n=this.responseType==="json";if(d.isResponse(t)||d.isReadableStream(t))return t;if(t&&d.isString(t)&&(i&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(a){if(r)throw a.name==="SyntaxError"?b.from(a,b.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:I.classes.FormData,Blob:I.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};d.forEach(["delete","get","head","post","put","patch"],s=>{lt.headers[s]={}});const zs=d.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fs=s=>{const t={};let e,i,n;return s&&s.split(`
`).forEach(function(r){n=r.indexOf(":"),e=r.substring(0,n).trim().toLowerCase(),i=r.substring(n+1).trim(),!(!e||t[e]&&zs[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},Le=Symbol("internals");function ct(s){return s&&String(s).trim().toLowerCase()}function At(s){return s===!1||s==null?s:d.isArray(s)?s.map(At):String(s)}function ks(s){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(s);)t[i[1]]=i[2];return t}const Ms=s=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(s.trim());function Ut(s,t,e,i,n){if(d.isFunction(i))return i.call(this,t,e);if(n&&(t=e),!!d.isString(t)){if(d.isString(i))return t.indexOf(i)!==-1;if(d.isRegExp(i))return i.test(t)}}function Bs(s){return s.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function Zs(s,t){const e=d.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(s,i+e,{value:function(n,o,r){return this[i].call(this,t,n,o,r)},configurable:!0})})}let R=class{constructor(t){t&&this.set(t)}set(t,e,i){const n=this;function o(a,c,l){const h=ct(c);if(!h)throw new Error("header name must be a non-empty string");const u=d.findKey(n,h);(!u||n[u]===void 0||l===!0||l===void 0&&n[u]!==!1)&&(n[u||c]=At(a))}const r=(a,c)=>d.forEach(a,(l,h)=>o(l,h,c));if(d.isPlainObject(t)||t instanceof this.constructor)r(t,e);else if(d.isString(t)&&(t=t.trim())&&!Ms(t))r(Fs(t),e);else if(d.isObject(t)&&d.isIterable(t)){let a={},c,l;for(const h of t){if(!d.isArray(h))throw TypeError("Object iterator must return a key-value pair");a[l=h[0]]=(c=a[l])?d.isArray(c)?[...c,h[1]]:[c,h[1]]:h[1]}r(a,e)}else t!=null&&o(e,t,i);return this}get(t,e){if(t=ct(t),t){const i=d.findKey(this,t);if(i){const n=this[i];if(!e)return n;if(e===!0)return ks(n);if(d.isFunction(e))return e.call(this,n,i);if(d.isRegExp(e))return e.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=ct(t),t){const i=d.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||Ut(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let n=!1;function o(r){if(r=ct(r),r){const a=d.findKey(i,r);a&&(!e||Ut(i,i[a],a,e))&&(delete i[a],n=!0)}}return d.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let i=e.length,n=!1;for(;i--;){const o=e[i];(!t||Ut(this,this[o],o,t,!0))&&(delete this[o],n=!0)}return n}normalize(t){const e=this,i={};return d.forEach(this,(n,o)=>{const r=d.findKey(i,o);if(r){e[r]=At(n),delete e[o];return}const a=t?Bs(o):String(o).trim();a!==o&&delete e[o],e[a]=At(n),i[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return d.forEach(this,(i,n)=>{i!=null&&i!==!1&&(e[n]=t&&d.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(n=>i.set(n)),i}static accessor(t){const i=(this[Le]=this[Le]={accessors:{}}).accessors,n=this.prototype;function o(r){const a=ct(r);i[a]||(Zs(n,r),i[a]=!0)}return d.isArray(t)?t.forEach(o):o(t),this}};R.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),d.reduceDescriptors(R.prototype,({value:s},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>s,set(i){this[e]=i}}}),d.freezeMethods(R);function Vt(s,t){const e=this||lt,i=t||e,n=R.from(i.headers);let o=i.data;return d.forEach(s,function(a){o=a.call(e,o,n.normalize(),t?t.status:void 0)}),n.normalize(),o}function Re(s){return!!(s&&s.__CANCEL__)}function Q(s,t,e){b.call(this,s??"canceled",b.ERR_CANCELED,t,e),this.name="CanceledError"}d.inherits(Q,b,{__CANCEL__:!0});function De(s,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?s(e):t(new b("Request failed with status code "+e.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function $s(s){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(s);return t&&t[1]||""}function Us(s,t){s=s||10;const e=new Array(s),i=new Array(s);let n=0,o=0,r;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),h=i[o];r||(r=l),e[n]=c,i[n]=l;let u=o,m=0;for(;u!==n;)m+=e[u++],u=u%s;if(n=(n+1)%s,n===o&&(o=(o+1)%s),l-r<t)return;const v=h&&l-h;return v?Math.round(m*1e3/v):void 0}}function Vs(s,t){let e=0,i=1e3/t,n,o;const r=(l,h=Date.now())=>{e=h,n=null,o&&(clearTimeout(o),o=null),s.apply(null,l)};return[(...l)=>{const h=Date.now(),u=h-e;u>=i?r(l,h):(n=l,o||(o=setTimeout(()=>{o=null,r(n)},i-u)))},()=>n&&r(n)]}const Ot=(s,t,e=3)=>{let i=0;const n=Us(50,250);return Vs(o=>{const r=o.loaded,a=o.lengthComputable?o.total:void 0,c=r-i,l=n(c),h=r<=a;i=r;const u={loaded:r,total:a,progress:a?r/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a&&h?(a-r)/l:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};s(u)},e)},Ne=(s,t)=>{const e=s!=null;return[i=>t[0]({lengthComputable:e,total:s,loaded:i}),t[1]]},ze=s=>(...t)=>d.asap(()=>s(...t)),Hs=I.hasStandardBrowserEnv?((s,t)=>e=>(e=new URL(e,I.origin),s.protocol===e.protocol&&s.host===e.host&&(t||s.port===e.port)))(new URL(I.origin),I.navigator&&/(msie|trident)/i.test(I.navigator.userAgent)):()=>!0,qs=I.hasStandardBrowserEnv?{write(s,t,e,i,n,o){const r=[s+"="+encodeURIComponent(t)];d.isNumber(e)&&r.push("expires="+new Date(e).toGMTString()),d.isString(i)&&r.push("path="+i),d.isString(n)&&r.push("domain="+n),o===!0&&r.push("secure"),document.cookie=r.join("; ")},read(s){const t=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(s){this.write(s,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ws(s){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s)}function js(s,t){return t?s.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):s}function Fe(s,t,e){let i=!Ws(t);return s&&(i||e==!1)?js(s,t):t}const ke=s=>s instanceof R?{...s}:s;function j(s,t){t=t||{};const e={};function i(l,h,u,m){return d.isPlainObject(l)&&d.isPlainObject(h)?d.merge.call({caseless:m},l,h):d.isPlainObject(h)?d.merge({},h):d.isArray(h)?h.slice():h}function n(l,h,u,m){if(d.isUndefined(h)){if(!d.isUndefined(l))return i(void 0,l,u,m)}else return i(l,h,u,m)}function o(l,h){if(!d.isUndefined(h))return i(void 0,h)}function r(l,h){if(d.isUndefined(h)){if(!d.isUndefined(l))return i(void 0,l)}else return i(void 0,h)}function a(l,h,u){if(u in t)return i(l,h);if(u in s)return i(void 0,l)}const c={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:a,headers:(l,h,u)=>n(ke(l),ke(h),u,!0)};return d.forEach(Object.keys(Object.assign({},s,t)),function(h){const u=c[h]||n,m=u(s[h],t[h],h);d.isUndefined(m)&&u!==a||(e[h]=m)}),e}const Me=s=>{const t=j({},s);let{data:e,withXSRFToken:i,xsrfHeaderName:n,xsrfCookieName:o,headers:r,auth:a}=t;t.headers=r=R.from(r),t.url=Ce(Fe(t.baseURL,t.url,t.allowAbsoluteUrls),s.params,s.paramsSerializer),a&&r.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(d.isFormData(e)){if(I.hasStandardBrowserEnv||I.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((c=r.getContentType())!==!1){const[l,...h]=c?c.split(";").map(u=>u.trim()).filter(Boolean):[];r.setContentType([l||"multipart/form-data",...h].join("; "))}}if(I.hasStandardBrowserEnv&&(i&&d.isFunction(i)&&(i=i(t)),i||i!==!1&&Hs(t.url))){const l=n&&o&&qs.read(o);l&&r.set(n,l)}return t},Gs=typeof XMLHttpRequest<"u"&&function(s){return new Promise(function(e,i){const n=Me(s);let o=n.data;const r=R.from(n.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=n,h,u,m,v,f;function w(){v&&v(),f&&f(),n.cancelToken&&n.cancelToken.unsubscribe(h),n.signal&&n.signal.removeEventListener("abort",h)}let y=new XMLHttpRequest;y.open(n.method.toUpperCase(),n.url,!0),y.timeout=n.timeout;function E(){if(!y)return;const x=R.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),T={data:!a||a==="text"||a==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:x,config:s,request:y};De(function(S){e(S),w()},function(S){i(S),w()},T),y=null}"onloadend"in y?y.onloadend=E:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(E)},y.onabort=function(){y&&(i(new b("Request aborted",b.ECONNABORTED,s,y)),y=null)},y.onerror=function(){i(new b("Network Error",b.ERR_NETWORK,s,y)),y=null},y.ontimeout=function(){let N=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const T=n.transitional||Te;n.timeoutErrorMessage&&(N=n.timeoutErrorMessage),i(new b(N,T.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,s,y)),y=null},o===void 0&&r.setContentType(null),"setRequestHeader"in y&&d.forEach(r.toJSON(),function(N,T){y.setRequestHeader(T,N)}),d.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),a&&a!=="json"&&(y.responseType=n.responseType),l&&([m,f]=Ot(l,!0),y.addEventListener("progress",m)),c&&y.upload&&([u,v]=Ot(c),y.upload.addEventListener("progress",u),y.upload.addEventListener("loadend",v)),(n.cancelToken||n.signal)&&(h=x=>{y&&(i(!x||x.type?new Q(null,s,y):x),y.abort(),y=null)},n.cancelToken&&n.cancelToken.subscribe(h),n.signal&&(n.signal.aborted?h():n.signal.addEventListener("abort",h)));const O=$s(n.url);if(O&&I.protocols.indexOf(O)===-1){i(new b("Unsupported protocol "+O+":",b.ERR_BAD_REQUEST,s));return}y.send(o||null)})},Ks=(s,t)=>{const{length:e}=s=s?s.filter(Boolean):[];if(t||e){let i=new AbortController,n;const o=function(l){if(!n)