1import{aq as e,ap as t,ar as s,a2 as n}from"./vendor-icons-Byg3HwjO.js";import{Z as r}from"./vendor-ui-Cn6fg8C-.js";const i=e.createContext(void 0),o=t=>{const s=e.useContext(i);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},a=({client:t,children:s})=>(e.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),r.jsx(i.Provider,{value:t,children:s})),u={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)};const c=new class{#e=u;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};const l="undefined"==typeof window||"Deno"in globalThis;function h(){}function d(e){return"number"==typeof e&&e>=0&&e!==1/0}function p(e,t){return Math.max(e+(t||0)-Date.now(),0)}function f(e,t){return"function"==typeof e?e(t):e}function g(e,t){const{type:s="all",exact:n,fetchStatus:r,predicate:i,queryKey:o,stale:a}=e;if(o)if(n){if(t.queryHash!==m(o,t.options))return!1}else if(!v(t.queryKey,o))return!1;if("all"!==s){const e=t.isActive();if("active"===s&&!e)return!1;if("inactive"===s&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!r||r===t.state.fetchStatus)&&!(i&&!i(t)))}function y(e,t){const{exact:s,status:n,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(s){if(b(t.options.mutationKey)!==b(i))return!1}else if(!v(t.options.mutationKey,i))return!1}return(!n||t.state.status===n)&&!(r&&!r(t))}function m(e,t){return(t?.queryKeyHashFn||b)(e)}function b(e){return JSON.stringify(e,(e,t)=>x(t)?Object.keys(t).sort().reduce((e,s)=>(e[s]=t[s],e),{}):t)}function v(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){for(let s=0;s<t.length;s++)if(!v(e[s],t[s]))return!1;return!0}const s=Object.keys(t);for(const n of s)if(!v(e[n],t[n]))return!1;return!0}return!1}const O=Object.prototype.hasOwnProperty;function w(e,t,s=0){if(e===t)return e;if(s>500)return t;const n=R(e)&&R(t);if(!(n||x(e)&&x(t)))return t;const r=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),o=i.length,a=n?new Array(o):{};let u=0;for(let c=0;c<o;c++){const o=n?c:i[c],l=e[o],h=t[o];if(l===h){a[o]=l,(n?c<r:O.call(e,o))&&u++;continue}if(null===l||null===h||"object"!=typeof l||"object"!=typeof h){a[o]=h;continue}const d=w(l,h,s+1);a[o]=d,d===l&&u++}return r===o&&u===r?e:a}function S(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function R(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function x(e){if(!E(e))return!1;const t=e.constructor;if(void 0===t)return!0;const s=t.prototype;return!!E(s)&&(!!s.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function E(e){return"[object Object]"===Object.prototype.toString.call(e)}function C(e,t,s){return"function"==typeof s.structuralSharing?s.structuralSharing(e,t):!1!==s.structuralSharing?w(e,t):t}function P(e,t,s=0){const n=[...e,t];return s&&n.length>s?n.slice(1):n}function k(e,t,s=0){const n=[t,...e];return s&&n.length>s?n.slice(0,-1):n}const T=Symbol();function A(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==T?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function L(e,t){return"function"==typeof e?e(...t):!!e}const j=()=>l;var N=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};const _=new class extends N{#s;#n;#r;constructor(){super(),this.#r=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#r=e,this.#n?.(),this.#n=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#s!==e&&(this.#s=e,this.onFocus())}onFocus(){const e=this.isFocused();
1this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#s?this.#s:"hidden"!==globalThis.document?.visibilityState}},F=function(e){setTimeout(e,0)};const D=function(){let e=[],t=0,s=e=>{e()},n=e=>{e()},r=F;const i=n=>{t?e.push(n):r(()=>{s(n)})};return{batch:i=>{let o;t++;try{o=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&r(()=>{n(()=>{t.forEach(e=>{s(e)})})})})()}return o},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{s=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{r=e}}}();const I=new class extends N{#i=!0;#n;#r;constructor(){super(),this.#r=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#n||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#r=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};function U(e){return Math.min(1e3*2**e,3e4)}function q(e){return"online"!==(e??"online")||I.isOnline()}var $=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function M(e){let t,s,n,r=!1,i=0,o="pending";const a=new Promise((e,t)=>{s=e,n=t});a.catch(h);const u=()=>"pending"!==o,l=()=>_.isFocused()&&("always"===e.networkMode||I.isOnline())&&e.canRun(),d=()=>q(e.networkMode)&&e.canRun(),p=e=>{u()||(t?.(),o="resolved",s(e))},f=e=>{u()||(t?.(),o="rejected",n(e))},g=()=>new Promise(s=>{t=e=>{(u()||l())&&s(e)},e.onPause?.()}).then(()=>{t=void 0,u()||e.onContinue?.()}),y=()=>{if(u())return;let t;const s=0===i?e.initialPromise:void 0;try{t=s??e.fn()}catch(n){t=Promise.reject(n)}Promise.resolve(t).then(p).catch(t=>{if(u())return;const s=e.retry??(j()?0:3),n=e.retryDelay??U,o="function"==typeof n?n(i,t):n,a=!0===s||"number"==typeof s&&i<s||"function"==typeof s&&s(i,t);var h;!r&&a?(i++,e.onFail?.(i,t),(h=o,new Promise(e=>{c.setTimeout(e,h)})).then(()=>l()?void 0:g()).then(()=>{r?f(t):y()})):f(t)})};return{promise:a,status:()=>o,cancel:t=>{if(!u()){const s=new $(t);f(s),e.onCancel?.(s)}},continue:()=>(t?.(),a),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:d,start:()=>(d()?y():g().then(y),a)}}var B=class{#o;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),d(this.gcTime)&&(this.#o=c.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(j()?1/0:3e5))}clearGcTimeout(){void 0!==this.#o&&(c.clearTimeout(this.#o),this.#o=void 0)}};function Q(e){return{onFetch:(t,s)=>{const n=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},u=0;const c=async()=>{let s=!1;const c=e=>{!function(e,t,s){let n,r=!1;Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),r||(r=!0,n.aborted?s():n.addEventListener("abort",s,{once:!0})),n)})}(e,()=>t.signal,()=>s=!0)},l=A(t.options,t.fetchOptions),h=async(e,n,r)=>{if(s)return Promise.reject(t.signal.reason);if(null==n&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:r?"backward":"forward",meta:t.options.meta};return c(e),e})(),o=await l(i),{maxPages:a}=t.options,u=r?k:P;return{pages:u(e.pages,o,a),pageParams:u(e.pageParams,n,a)}};if(r&&i.length){const e="backward"===r,t=e?V:K,s={pages:i,pageParams:o};a=await h(s,t(n,s),e)}else{const t=e??i.length;do{const e=0===u?o[0]??n.initialPageParam:K(n,a);if(u>0&&null==e)break;a=await h(a,e),u++}while(u<t)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=c}}}function K(e,{pages:t,pageParams:s}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,s[n],s):void 0}function V(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}var H=class extends B{#a;#u;#c;#l;#h;#d;#p;#f;constructor(e){super(),this.#f=!1,this.#p=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#h=e.client,this.#l=this.#h.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#u=W(this.options),this.state=e.state??this.#u,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#a}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#p,...e},e?._type&&(this.#a=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=W(this.options);void 0!==e.data&&(this.setState(J(e.data,e.dataUpdatedAt)),this.#u=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#l.remove(this)}setData(e,t){const s=C(this.state.data,e,this.options);return this.#g({data:s,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),s}setState(e){this.#g({type:"setState",state:e})}cancel(e){const t=this.#d?.promise;return this.#d?.cancel(e),t?t.then(h).catch(h):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#u}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==f(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===T||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
1Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===f(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!p(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){const t=this.observers.indexOf(e);-1!==t&&(this.observers.splice(t,1),this.observers.length||(this.#d&&(this.#f||"paused"===this.state.fetchStatus&&"pending"===this.state.status?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#g({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#d?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const s=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#f=!0,s.signal)})},r=()=>{const e=A(this.options,t),s=(()=>{const e={client:this.#h,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#f=!1,this.options.persister?this.options.persister(e,s,this):e(s)},i=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#h,state:this.state,fetchFn:r};return n(e),e})();("infinite"===this.#a?Q(this.options.pages):this.options.behavior)?.onFetch(i,this),this.#c=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#g({type:"fetch",meta:i.fetchOptions?.meta});const o=this.#d=M({initialPromise:t?.initialPromise,fn:i.fetchFn,onCancel:e=>{e instanceof $&&e.revert&&this.setState({...this.#c,fetchStatus:"idle"}),s.abort()},onFail:(e,t)=>{this.#g({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#g({type:"pause"})},onContinue:()=>{this.#g({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0});try{const e=await o.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#l.config.onSuccess?.(e,this),this.#l.config.onSettled?.(e,this.state.error,this),e}catch(a){if(a instanceof $){if(a.silent)return this.#d.promise;if(a.revert){if(void 0===this.state.data)throw a;return this.state.data}}throw this.#g({type:"error",error:a}),this.#l.config.onError?.(a,this),this.#l.config.onSettled?.(this.state.data,a,this),a}finally{this.#d===o&&(this.#d=void 0),this.scheduleGc()}}#g(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...z(t.data,this.options),fetchMeta:e.meta??null};case"success":const s={...t,...J(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#c=e.manual?s:void 0,s;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),D.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:e})})}};function z(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:q(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function J(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function W(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,s=void 0!==t,n=s?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?n??Date.now():0,error:null,errorUpdate
vendor: 4,737 bytes, line 1
1Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var G=class extends N{#h;#y=void 0;#m=void 0;#b=void 0;#v;#O;#w;#S;#R;#x;#E;#C;#P;#k=new Set;constructor(e,t){super(),this.options=t,this.#h=e,this.#w=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#y.addObserver(this),X(this.#y,this.options)?this.#T():this.updateResult(),this.#A())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Y(this.#y,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Y(this.#y,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#L(),this.#j(),this.#y.removeObserver(this)}setOptions(e){const t=this.options,s=this.#y;if(this.options=this.#h.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof f(this.options.enabled,this.#y))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#N(),this.#y.setOptions(this.options),t._defaulted&&!S(this.options,t)&&this.#h.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#y,observer:this});const n=this.hasListeners();n&&Z(this.#y,s,this.options,t)&&this.#T(),this.updateResult(),!n||this.#y===s&&f(this.options.enabled,this.#y)===f(t.enabled,this.#y)&&f(this.options.staleTime,this.#y)===f(t.staleTime,this.#y)||this.#_();const r=this.#F();!n||this.#y===s&&f(this.options.enabled,this.#y)===f(t.enabled,this.#y)&&r===this.#P||this.#D(r)}getOptimisticResult(e){const t=this.#h.getQueryCache().build(this.#h,e),s=this.createResult(t,e);return S(this.getCurrentResult(),s)||(this.#b=s,this.#O=this.options,this.#v=this.#y.state),s}getCurrentResult(){return this.#b}trackResult(e,t){return new Proxy(e,{get:(e,s)=>(this.trackProp(s),t?.(s),Reflect.get(e,s))})}trackProp(e){this.#k.add(e)}getCurrentQuery(){return this.#y}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#h.defaultQueryOptions(e),s=this.#h.getQueryCache().build(this.#h,t);let n,r=()=>{};const i=new Promise(e=>{n=e,r=this.#h.getQueryCache().subscribe(n=>{"updated"===n.type&&n.query.queryHash===s.queryHash&&void 0!==s.state.data&&(r(),e(this.createResult(s,t)))})});return Promise.race([s.fetch().then(()=>{const e=this.createResult(s,t);return n?.(e),e}).finally(()=>{r()}),i])}fetch(e){return this.#T({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#b))}#T(e){this.#N();let t=this.#y.fetch(this.options,e);return e?.throwOnError||(t=t.catch(h)),t}#I(e){return!j()&&!1!==f(this.options.enabled,this.#y)&&d(e)}#_(){this.#L();const e=f(this.options.staleTime,this.#y);if(this.#b.isStale||!this.#I(e))return;const t=p(this.#b.dataUpdatedAt,e)+1;this.#E=c.setTimeout(()=>{this.#b.isStale||this.updateResult()},t)}#F(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#y):this.options.refetchInterval)??!1}#D(e){this.#j(),this.#P=e,0!==this.#P&&this.#I(this.#P)&&(this.#C=c.setInterval(()=>{(this.options.refetchIntervalInBackground||_.isFocused())&&this.#T()},this.#P))}#A(){this.#_(),this.#D(this.#F())}#L(){void 0!==this.#E&&(c.clearTimeout(this.#E),this.#E=void 0)}#j(){void 0!==this.#C&&(c.clearInterval(this.#C),this.#C=void 0)}createResult(e,t){const s=this.#y,n=this.options,r=this.#b,i=this.#v,o=this.#O,a=e!==s?e.state:this.#m,{state:u}=e;let c,l={...u},h=!1;if(t._optimisticResults){const r=this.hasListeners(),i=!r&&X(e,t),o=r&&Z(e,s,t,n);(i||o)&&(l={...l,...z(u.data,e.options)}),"isRestoring"===t._optimisticResults&&(l.fetchStatus="idle")}let{error:d,errorUpdatedAt:p,status:g}=l;c=l.data;let y=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===g){let e;r?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=r.data,y=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#x?.state.data,this.#x):t.placeholderData,void 0!==e&&(g="success",c=C(r?.data,e,t),h=!0)}if(t.select&&void 0!==c&&!y)if(r&&c===i?.data&&t.select===this.#S)c=this.#R;else try{this.#S=t.select,c=t.select(c),c=C(r?.data,c,t),this.#R=c,this.#w=null}catch(S){this.#w=S}else void 0===c&&(this.#w=null);this.#w&&(d=this.#w,c=this.#R,p=Date.now(),g="error",h=!1);const m="fetching"===l.fetchStatus,b="pending"===g,v="error"===g,O=b&&m,w=void 0!==c;return{status:g,fetchStatus:l.fetchStatus,isPending:b,isSuccess:"success"===g,isError:v,isInitialLoading:O,isLoading:O,data:c,dataUpdatedAt:l.dataUpdatedAt,error:d,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdate
1Count:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>a.dataUpdateCount||l.errorUpdateCount>a.errorUpdateCount,isFetching:m,isRefetching:m&&!b,isLoadingError:v&&!w,isPaused:"paused"===l.fetchStatus,isPlaceholderData:h,isRefetchError:v&&w,isStale:ee(e,t),refetch:this.refetch,isEnabled:!1!==f(t.enabled,e)}}updateResult(){const e=this.#b,t=this.createResult(this.#y,this.options);if(this.#v=this.#y.state,this.#O=this.options,void 0!==this.#v.data&&(this.#x=this.#y),S(t,e))return;this.#b=t;const s=(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.#k.size)return!0;const n=new Set(s??this.#k);return this.options.throwOnError&&n.add("error"),Object.keys(this.#b).some(t=>{const s=t;return this.#b[s]!==e[s]&&n.has(s)})})();D.batch(()=>{s&&this.listeners.forEach(e=>{e(this.#b)}),this.#h.getQueryCache().notify({query:this.#y,type:"observerResultsUpdated"})})}#N(){const e=this.#h.getQueryCache().build(this.#h,this.options);if(e===this.#y)return;const t=this.#y;this.#y=e,this.#m=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#A()}};function X(e,t){return function(e,t){return!1!==f(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===f(t.retryOnMount,e))}(e,t)||void 0!==e.state.data&&Y(e,t,t.refetchOnMount)}function Y(e,t,s){if(!1!==f(t.enabled,e)&&"static"!==f(t.staleTime,e)){const n="function"==typeof s?s(e):s;return"always"===n||!1!==n&&ee(e,t)}return!1}function Z(e,t,s,n){return(e!==t||!1===f(n.enabled,e))&&(!s.suspense||"error"!==e.state.status)&&ee(e,s)}function ee(e,t){return!1!==f(t.enabled,e)&&e.isStaleByTime(f(t.staleTime,e))}var te=class extends B{#h;#U;#q;#d;constructor(e){super(),this.#h=e.client,this.mutationId=e.mutationId,this.#q=e.mutationCache,this.#U=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#U.includes(e)||(this.#U.push(e),this.clearGcTimeout(),this.#q.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#U=this.#U.filter(t=>t!==e),this.scheduleGc(),this.#q.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#U.length||("pending"===this.state.status?this.scheduleGc():this.#q.remove(this))}continue(){return this.#d?.continue()??("pending"===this.state.status?this.execute(this.state.variables):Promise.resolve())}async execute(e){const t=()=>{this.#g({type:"continue"})},s={client:this.#h,meta:this.options.meta,mutationKey:this.options.mutationKey},n=this.#d=M({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#g({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#g({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#q.canRun(this)}),r="pending"===this.state.status,i=!n.canStart();try{if(r)t();else{this.#g({type:"pending",variables:e,isPaused:i}),this.#q.config.onMutate&&await this.#q.config.onMutate(e,this,s);const t=await(this.options.onMutate?.(e,s));t!==this.state.context&&this.#g({type:"pending",context:t,variables:e,isPaused:i})}const o=await n.start();return await(this.#q.config.onSuccess?.(o,e,this.state.context,this,s)),await(this.options.onSuccess?.(o,e,this.state.context,s)),await(this.#q.config.onSettled?.(o,null,this.state.variables,this.state.context,this,s)),await(this.options.onSettled?.(o,null,e,this.state.context,s)),this.#g({type:"success",data:o}),o}catch(o){try{await(this.#q.config.onError?.(o,e,this.state.context,this,s))}catch(a){Promise.reject(a)}try{await(this.options.onError?.(o,e,this.state.context,s))}catch(a){Promise.reject(a)}try{await(this.#q.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,s))}catch(a){Promise.reject(a)}try{await(this.options.onSettled?.(void 0,o,e,this.state.context,s))}catch(a){Promise.reject(a)}throw this.#g({type:"error",error:o}),o}finally{this.#d===n&&(this.#d=void 0),this.#q.runNext(this)}}#g(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
1case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),D.batch(()=>{this.#U.forEach(t=>{t.onMutationUpdate(e)}),this.#q.notify({mutation:this,type:"updated",action:e})})}};var se=class extends N{#$;#M;#B;constructor(e={}){super(),this.config=e,this.#$=new Set,this.#M=new Map,this.#B=0}build(e,t,s){const n=new te({client:e,mutationCache:this,mutationId:++this.#B,options:e.defaultMutationOptions(t),state:s});return this.add(n),n}add(e){this.#$.add(e);const t=ne(e);if("string"==typeof t){const s=this.#M.get(t);s?s.push(e):this.#M.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#$.delete(e)){const t=ne(e);if("string"==typeof t){const s=this.#M.get(t);if(s)if(s.length>1){const t=s.indexOf(e);-1!==t&&s.splice(t,1)}else s[0]===e&&this.#M.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=ne(e);if("string"==typeof t){const s=this.#M.get(t)?.find(e=>"pending"===e.state.status);return!s||s===e}return!0}runNext(e){const t=ne(e);return"string"==typeof t?this.#M.get(t)?.find(t=>
1t!==e&&t.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){D.batch(()=>{this.#$.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#$.clear(),this.#M.clear()})}getAll(){return Array.from(this.#$)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>y(t,e))}findAll(e={}){return this.getAll().filter(t=>y(e,t))}notify(e){D.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return D.batch(()=>Promise.all(e.map(e=>e.continue().catch(h))))}};function ne(e){return e.options.scope?.id}var re=class extends N{#h;#b=void 0;#Q;#K;constructor(e,t){super(),this.#h=e,this.setOptions(t),this.bindMethods(),this.#V()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#h.defaultMutationOptions(e),S(this.options,t)||this.#h.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#Q,observer:this}),t?.mutationKey&&this.options.mutationKey&&b(t.mutationKey)!==b(this.options.mutationKey)?this.reset():"pending"===this.#Q?.state.status&&this.#Q.setOptions(this.options)}onSubscribe(){1===this.listeners.size&&this.#Q&&(this.#Q.addObserver(this),this.#V())}onUnsubscribe(){this.hasListeners()||this.#Q?.removeObserver(this)}onMutationUpdate(e){this.#V(),this.#H(e)}getCurrentResult(){return this.#b}reset(){this.#Q?.removeObserver(this),this.#Q=void 0,this.#V(),this.#H()}mutate(e,t){return this.#K=t,this.#Q?.removeObserver(this),this.#Q=this.#h.getMutationCache().build(this.#h,this.options),this.#Q.addObserver(this),this.#Q.execute(e)}#V(){const e=this.#Q?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#b={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#H(e){D.batch(()=>{if(this.#K&&this.hasListeners()){const s=this.#b.variables,n=this.#b.context,r={client:this.#h,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{this.#K.onSuccess?.(e.data,s,n,r)}catch(t){Promise.reject(t)}try{this.#K.onSettled?.(e.data,null,s,n,r)}catch(t){Promise.reject(t)}}else if("error"===e?.type){try{this.#K.onError?.(e.error,s,n,r)}catch(t){Promise.reject(t)}try{this.#K.onSettled?.(void 0,e.error,s,n,r)}catch(t){Promise.reject(t)}}}this.listeners.forEach(e=>{e(this.#b)})})}},ie=class extends N{#z;constructor(e={}){super(),this.config=e,this.#z=new Map}build(e,t,s){const n=t.queryKey,r=t.queryHash??m(n,t);let i=this.get(r);return i||(i=new H({client:e,queryKey:n,queryHash:r,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#z.has(e.queryHash)||(this.#z.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#z.get(e.queryHash);t&&(e.destroy(),t===e&&this.#z.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){D.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#z.get(e)}getAll(){return[...this.#z.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>g(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>g(e,t)):t}notify(e){D.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){D.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){D.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},oe=class{#J;#q;#p;#W;#G;#X;#Y;#Z;constructor(e={}){this.#J=e.queryCache||new ie,this.#q=e.mutationCache||new se,this.#p=e.defaultOptions||{},this.#W=new Map,this.#G=new Map,this.#X=0}mount(){this.#X++,1===this.#X&&(this.#Y=_.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#J.onFocus())}),this.#Z=I.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#J.onOnline())}))}unmount(){this.#X--,0===this.#X&&(this.#Y?.(),this.#Y=void 0,this.#Z?.(),this.#Z=void 0)}isFetching(e){return this.#J.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#q.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#J.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),s=this.#J.build(this,t),n=s.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime(f(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#J.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,s){const n=this.defaultQueryOptions({queryKey:e}),r=this.#J.get(n.queryHash)?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,r);if(void 0!==i)return this.#J.build(this,n).setData(i,{...s,manual:!0})}
1setQueriesData(e,t,s){return D.batch(()=>this.#J.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,s)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#J.get(t.queryHash)?.state}removeQueries(e){const t=this.#J;D.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const s=this.#J;return D.batch(()=>{const n=s.findAll(e),r=new Set(n);return n.forEach(e=>{e.reset()}),this.refetchQueries({type:"active",predicate:e=>r.has(e)},t)})}cancelQueries(e,t={}){const s={revert:!0,...t},n=D.batch(()=>this.#J.findAll(e).map(e=>e.cancel(s)));return Promise.all(n).then(h).catch(h)}invalidateQueries(e,t={}){return D.batch(()=>(this.#J.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const s={...t,cancelRefetch:t.cancelRefetch??!0},n=D.batch(()=>this.#J.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,s);return s.throwOnError||(t=t.catch(h)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(n).then(h)}async query(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const s=this.#J.build(this,t),n=s.isStaleByTime(f(t.staleTime,s))?await s.fetch(t):s.state.data,r=t.select;return r?r(n):n}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const s=this.#J.build(this,t);return s.isStaleByTime(f(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(h).catch(h)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(h).catch(h)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return I.isOnline()?this.#q.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#J}getMutationCache(){return this.#q}getDefaultOptions(){return this.#p}setDefaultOptions(e){this.#p=e}setQueryDefaults(e,t){this.#W.set(b(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#W.values()],s={};return t.forEach(t=>{v(e,t.queryKey)&&Object.assign(s,t.defaultOptions)}),s}setMutationDefaults(e,t){this.#G.set(b(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#G.values()],s={};return t.forEach(t=>{v(e,t.mutationKey)&&Object.assign(s,t.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#p.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=m(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===T&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#p.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#J.clear(),this.#q.clear()}};const ae=e.createContext(!1);ae.Provider;const ue=e.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function ce(t,s,n){const r=e.useContext(ae),i=e.useContext(ue),a=o(),u=a.defaultQueryOptions(t),c=a.getQueryCache().get(u.queryHash),l=!1!==t.subscribed;u._optimisticResults=r?"isRestoring":l?"optimistic":void 0,(e=>{if(e.suspense){const t=1e3,s=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>s(n(...e)):s(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(u),((e,t,s)=>{const n=s?.state.error&&"function"==typeof e.throwOnError?L(e.throwOnError,[s.state.error,s]):e.throwOnError;(e.suspense||n)&&(t.isReset()||(e.retryOnMount=!1))})(u,i,c),(t=>{e.useEffect(()=>{t.clearReset()},[t])})(i);const[d]=e.useState(()=>new s(a,u)),p=d.getOptimisticResult(u),f=!r&&l;if(e.useSyncExternalStore(e.useCallback(e=>{const t=f?d.subscribe(D.batchCalls(e)):h;return d.updateResult(),t},[d,f]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),e.useEffect(()=>{d.setOptions(u)},[u,d]),((e,t)=>e?.suspense&&t.isPending)(u,p))throw((e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()}))(u,d,i);if((({result:e,errorResetBoundary:t,throwOnError:s,query:n,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(r&&void 0===e.data||L(s,[e.error,n])))({result:p,errorResetBoundary:i,throwOnError:u.throwOnError,query:c,suspense:u.suspense}))throw p.error;return u.notifyOnChangeProps?p:d.trackResult(p)}function le(e,t){return ce(e,G)}function he(t,s){const n=o(),[r]=e.useState(()=>new re(n,t));e.useEffect(()=>{r.setOptions(t)},[r,t]);const i=e.useSyncExternalStore(e.useCallback(e=>r.subscribe(D.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=e.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(h)},[r]);if(i.error&&L(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var de={};const pe=e=>"string"==typeof e,fe=()=>{let e,t;const s=new Promise((s,n)=>{e=s,t=n});return s.resolve=e,s.reject=t,s},ge=e=>null==e?"":""+e,ye=/###/g,me=e=>e&&e.indexOf("###")>-1?e.replace(ye,"."):e,be=e=>!e||pe(e),ve=(e,t,s)=>{const n=pe(t)?t.split("."):t;let r=0;for(;r<n.length-1;){if(be(e))return{};const t=me(n[r]);!e[t]&&s&&(e[t]=new s),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++r}return be(e)?{}:{obj:e,k:me(n[r])}},Oe=(e,t,s)=>{const{obj:n,k:r}=ve(e,t,Object);if(void 0!==n||1===t.length)return void(n[r]=s);let i=t[t.length-1],o=t.slice(0,t.length-1),a=ve(e,o,Object);for(;void 0===a.obj&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),a=ve(e,o,Object),a?.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=s},we=(e,t)=>{const{obj:s,k:n}=ve(e,t);if(s&&Object.prototype.hasOwnProperty.call(s,n))return s[n]},Se=(e,t,s)=>{for(const n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?pe(e[n])||e[n]instanceof String||pe(t[n])||t[n]instanceof String?s&&(e[n]=t[n]):Se(e[n],t[n],s):e[n]=t[n]);return e},Re=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var xe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Ee=e=>pe(e)?e.replace(/[&<>
1"'\/]/g,e=>xe[e]):e;const Ce=[" ",",","?","!",";"],Pe=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}(20),ke=(e,t,s=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const n=t.split(s);let r=e;for(let i=0;i<n.length;){if(!r||"object"!=typeof r)return;let e,t="";for(let o=i;o<n.length;++o)if(o!==i&&(t+=s),t+=n[o],e=r[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&o<n.length-1)continue;i+=o-i+1;break}r=e}return r},Te=e=>e?.replace(/_/g,"-"),Ae={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){}};class Le{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||Ae,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,s,n){return n&&!this.debug?null:(pe(e[0])&&(e[0]=`${s}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Le(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Le(this.logger,e)}}var je=new Le;class Ne{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const s=this.observers[e].get(t)||0;this.observers[e].set(t,s+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,s])=>{for(let n=0;n<s;n++)e(...t)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([s,n])=>{for(let r=0;r<n;r++)s.apply(s,[e,...t])})}}}class _e extends Ne{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s,n={}){const r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,t],s&&(Array.isArray(s)?o.push(...s):pe(s)&&r?o.push(...s.split(r)):o.push(s)));const a=we(this.data,o);return!a&&!t&&!s&&e.indexOf(".")>-1&&(e=o[0],t=o[1],s=o.slice(2).join(".")),!a&&i&&pe(s)?ke(this.data?.[e]?.[t],s,r):a}addResource(e,t,s,n,r={silent:!1}){const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator;let o=[e,t];s&&(o=o.concat(i?s.split(i):s)),e.indexOf(".")>-1&&(o=e.split("."),n=t,t=o[1]),this.addNamespaces(t),Oe(this.data,o,n),r.silent||this.emit("added",e,t,s,n)}addResources(e,t,s,n={silent:!1}){for(const r in s)(pe(s[r])||Array.isArray(s[r]))&&this.addResource(e,t,r,s[r],{silent:!0});n.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,n,r,i={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),n=s,s=t,t=o[1]),this.addNamespaces(t);let a=we(this.data,o)||{};i.skipCopy||(s=JSON.parse(JSON.stringify(s))),n?Se(a,s,r):a={...a,...s},Oe(this.data,o,a),i.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var Fe={processors:{},addPostProcessor(e){this.processors[e.name]=e}
vendor: 1,691 bytes, line 1
1,handle(e,t,s,n,r){return e.forEach(e=>{t=this.processors[e]?.process(t,s,n,r)??t}),t}};const De=Symbol("i18next/PATH_KEY");function Ie(e,t){const{[De]:s}=e(function(){const e=[],t=Object.create(null);let s;return t.get=(n,r)=>(s?.revoke?.(),r===De?e:(e.push(r),s=Proxy.revocable(n,t),s.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),n=t?.keySeparator??".",r=t?.nsSeparator??":";if(s.length>1&&r){const e=t?.ns,i=Array.isArray(e)?e:null;if(i&&i.length>1&&i.slice(1).includes(s[0]))return`${s[0]}${r}${s.slice(1).join(n)}`}return s.join(n)}const Ue={},qe=e=>!pe(e)&&"boolean"!=typeof e&&"number"!=typeof e;class $e extends Ne{constructor(e,t={}){var s,n;super(),s=e,n=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{s[e]&&(n[e]=s[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=je.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const s={...t};if(null==e)return!1;const n=this.resolve(e,s);if(void 0===n?.res)return!1;const r=qe(n.res);return!1!==s.returnObjects||!r}extractFromKey(e,t){let s=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===s&&(s=":");const n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let r=t.ns||this.options.defaultNS||[];const i=s&&e.indexOf(s)>-1,o=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,s)=>{t=t||"",s=s||"";const n=Ce.filter(e=>t.indexOf(e)<0&&s.indexOf(e)<0);if(0===n.length)return!0;const r=Pe.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!r.test(e);
vendor: 4,997 bytes, line 1
1if(!i){const t=e.indexOf(s);t>0&&!r.test(e.substring(0,t))&&(i=!0)}return i})(e,s,n));if(i&&!o){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:pe(r)?[r]:r};const i=e.split(s);(s!==n||s===n&&this.options.ns.indexOf(i[0])>-1)&&(r=i.shift()),e=i.join(n)}return{key:e,namespaces:pe(r)?[r]:r}}translate(e,t,s){let n="object"==typeof t?{...t}:t;if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==e)return"";"function"==typeof e&&(e=Ie(e,{...this.options,...n})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?Ie(e,{...this.options,...n}):String(e));const r=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],n),u=a[a.length-1];let c=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const l=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===l?.toLowerCase())return h?r?{res:`${u}${c}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${c}${o}`:r?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:o;const d=this.resolve(e,n);let p=d?.res;const f=d?.usedKey||o,g=d?.exactUsedKey||o,y=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,b=void 0!==n.count&&!pe(n.count),v=$e.hasDefaultValue(n),O=b?this.pluralResolver.getSuffix(l,n.count,n):"",w=n.ordinal&&b?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):"",S=b&&!n.ordinal&&0===n.count,R=S&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${O}`]||n[`defaultValue${w}`]||n.defaultValue;let x=p;m&&!p&&v&&(x=R);const E=qe(x),C=Object.prototype.toString.apply(x);if(!(m&&x&&E&&["[object Number]","[object Function]","[object RegExp]"].indexOf(C)<0)||pe(y)&&Array.isArray(x))if(m&&pe(y)&&Array.isArray(p))p=p.join(y),p&&(p=this.extendTranslation(p,e,n,s));else{let t=!1,r=!1;!this.isValidLookup(p)&&v&&(t=!0,p=R),this.isValidLookup(p)||(r=!0,p=o);const a=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:p,h=v&&R!==p&&this.options.updateMissing;if(r||t||h){if(this.logger.log(h?"updateKey":"missingKey",l,u,o,h?R:p),i){const e=this.resolve(o,{...n,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);const s=(e,t,s)=>{const r=v&&s!==p?s:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,u,t,r,h,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,u,t,r,h,n),this.emit("missingKey",e,u,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,n);S&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{s([e],o+t,n[`defaultValue${t}`]||R)})}):s(e,o,R))}p=this.extendTranslation(p,e,n,d,s),r&&p===o&&this.options.appendNamespaceToMissingKey&&(p=`${u}${c}${o}`),(r||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${o}`:o,t?p:void 0,n))}else{if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,x,{...n,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(d.res=e,d.usedParams=this.getUsedParamsDetails(n),d):e}if(i){const e=Array.isArray(x),t=e?[]:{},s=e?g:f;for(const r in x)if(Object.prototype.hasOwnProperty.call(x,r)){const e=`${s}${i}${r}`;t[r]=v&&!p?this.translate(e,{...n,defaultValue:qe(R)?R[r]:void 0,joinArrays:!1,ns:a}):this.translate(e,{...n,joinArrays:!1,ns:a}),t[r]===e&&(t[r]=x[r])}p=t}}return r?(d.res=p,d.usedParams=this.getUsedParamsDetails(n),d):p}extendTranslation(e,t,s,n,r){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});
vendor: 1,613 bytes, line 1
1const i=pe(e)&&(void 0!==s?.interpolation?.skipOnVariables?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let o;if(i){const t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let a=s.replace&&!pe(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),e=this.interpolator.interpolate(e,a,s.lng||this.language||n.usedLng,s),i){const t=e.match(this.interpolator.nestingRegexp);o<(t&&t.length)&&(s.nest=!1)}!s.lng&&n&&n.res&&(s.lng=this.language||n.usedLng),!1!==s.nest&&(e=this.interpolator.nest(e,(...e)=>r?.[0]!==e[0]||s.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),s)),s.interpolation&&this.interpolator.reset()}const i=s.postProcess||this.options.postProcess,o=pe(i)?[i]:i;return null!=e&&o?.length&&!1!==s.applyPostProcessor&&(e=Fe.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),e}resolve(e,t={}){let s,n,r,i,o;return pe(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?Ie(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(s))return;const a=this.extractFromKey(e,t),u=a.key;n=u;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const l=void 0!==t.count&&!pe(t.count),h=l&&!t.ordinal&&0===t.count,d=void 0!==t.context&&(pe(t.context)||"number"==typeof t.context)&&""!==t.context,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);
vendor: 26,526 bytes, line 1
1c.forEach(e=>{this.isValidLookup(s)||(o=e,Ue[`${p[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(o)||(Ue[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(n=>{if(this.isValidLookup(s))return;i=n;const o=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,u,n,e,t);else{let e;l&&(e=this.pluralResolver.getSuffix(n,t.count,t));const s=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(t.ordinal&&0===e.indexOf(r)&&o.push(u+e.replace(r,this.options.pluralSeparator)),o.push(u+e),h&&o.push(u+s)),d){const n=`${u}${this.options.contextSeparator||"_"}${t.context}`;o.push(n),l&&(t.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),o.push(n+e),h&&o.push(n+s))}}let a;for(;a=o.pop();)this.isValidLookup(s)||(r=a,s=this.getResource(n,e,a,t))}))})}),{res:s,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,s,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,s,n):this.resourceStore.getResource(e,t,s,n)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&!pe(e.replace);let n=s?e.replace:e;if(s&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!s){n={...n};for(const e of t)delete n[e]}return n}static hasDefaultValue(e){const t="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t===s.substring(0,12)&&void 0!==e[s])return!0;return!1}}class Me{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=je.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Te(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=Te(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(pe(e)&&e.indexOf("-")>-1){let s;try{s=Intl.getCanonicalLocales(e)[0]}catch(t){}return s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const s=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(s)||(t=s)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const s=this.getScriptPartFromCode(e);if(this.isSupportedCode(s))return t=s;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),pe(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),n=[],r=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return pe(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):pe(e)&&r(this.formatLanguageCode(e)),s.forEach(e=>{n.indexOf(e)<0&&r(this.formatLanguageCode(e))}),n}}const Be={zero:0,one:1,two:2,few:3,many:4,other:5},Qe={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ke{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=je.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const s=Te("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:s,type:n});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];let i;try{i=new Intl.PluralRules(s,{type:n})}catch(o){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Qe;if(!e.match(/-|_/))return Qe;const s=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(s,t)}return this.pluralRulesCache[r]=i,i}needsPlural(e,t={}){let s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,s={}){return this.getSuffixes(e,s).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?s.resolvedOptions().pluralCategories.sort((e,t)=>Be[e]-Be[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,s={}){const n=this.getRule(e,s);return n?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}const Ve=(e,t,s,n=".",r=!0)=>{let i=((e,t,s)=>{const n=we(e,s);return void 0!==n?n:we(t,s)})(e,t,s);return!i&&r&&pe(s)&&(i=ke(e,s,n),void 0===i&&(i=ke(t,s,n))),i},He=e=>e.replace(/\$/g,"$$$$");class ze{constructor(e={}){this.logger=je.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:s,useRawValueToEscape:n,prefix:r,prefixEscaped:i,suffix:o,suffixEscaped:a,formatSeparator:u,unescapeSuffix:c,unescapePrefix:l,nestingPrefix:h,nestingPrefixEscaped:d,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:y,alwaysFormat:m}=e.interpolation;this.escape=void 0!==t?t:Ee,this.escapeValue=void 0===s||s,this.useRawValueToEscape=void 0!==n&&n,this.prefix=r?Re(r):i||"{{",this.suffix=o?Re(o):a||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":l||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=h?Re(h):d||Re("$t("),this.nestingSuffix=p?Re(p):f||Re(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==m&&m,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,s,n){let r,i,o;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=e=>{if(e.indexOf(this.formatSeparator)<0){const r=Ve(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,s,{...n,...t,interpolationkey:e}):r}const r=e.split(this.formatSeparator),i=r.shift().trim(),o=r.join(this.formatSeparator).trim();return this.format(Ve(t,a,i,this.options.keySeparator,this.options.ignoreJSONStructure),o,s,{...n,...t,interpolationkey:i})};this.resetRegExp();const c=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,l=void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>He(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?He(this.escape(e)):He(e)}].forEach(t=>{for(o=0;r=t.regex.exec(e);){const s=r[1].trim();if(i=u(s),void 0===i)if("function"==typeof c){const t=c(e,r,n);i=pe(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,s))i="";else{if(l){i=r[0];continue}this.logger.warn(`missed to pass in variable ${s} for interpolating ${e}`),i=""}else pe(i)||this.useRawValueToEscape||(i=ge(i));const a=t.safeValue(i);if(e=e.replace(r[0],a),l?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,s={}){let n,r,i;const o=(e,t)=>{const s=this.nestingOptionsSeparator;if(e.indexOf(s)<0)return e;const n=e.split(new RegExp(`${Re(s)}[ ]*{`));let r=`{${n[1]}`;e=n[0],r=this.interpolate(r,i);const o=r.match(/'/g),a=r.match(/"/g);((o?.length??0)%2==0&&!a||(a?.length??0)%2!=0)&&(r=r.replace(/'/g,'"'));try{i=JSON.parse(r),t&&(i={...t,...i})}catch(u){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,u),`${e}${s}${r}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let a=[];i={...s},i=i.replace&&!pe(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const u=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(-1!==u&&(a=n[1].slice(u).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),n[1]=n[1].slice(0,u)),r=t(o.call(this,n[1].trim(),i),i),r&&n[0]===e&&!pe(r))return r;pe(r)||(r=ge(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),a.length&&(r=a.reduce((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}const Je=e=>{const t={};return(s,n,r)=>{let i=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(i={...i,[r.interpolationkey]:void 0});const o=n+JSON.stringify(i);let a=t[o];return a||(a=e(Te(n),r),t[o]=a),a(s)}},We=e=>(t,s,n)=>e(Te(s),n)(t);class Ge{constructor(e={}){this.logger=je.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const s=t.cacheInBuiltFormats?Je:We;this.formats={number:s((e,t)=>{const s=new Intl.NumberFormat(e,{...t});return e=>s.format(e)}),currency:s((e,t)=>{const s=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>s.format(e)}),datetime:s((e,t)=>{const s=new Intl.DateTimeFormat(e,{...t});return e=>s.format(e)}),relativetime:s((e,t)=>{const s=new Intl.RelativeTimeFormat(e,{...t});return e=>s.format(e,t.range||"day")}),list:s((e,t)=>{const s=new Intl.ListFormat(e,{...t});return e=>s.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Je(t)}format(e,t,s,n={}){const r=t.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find(e=>e.indexOf(")")>-1)){const e=r.findIndex(e=>e.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,e)].join(this.formatSeparator)}return r.reduce((e,t)=>{const{formatName:r,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const s={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const r=n[1].substring(0,n[1].length-1);"currency"===t&&r.indexOf(":")<0?s.currency||(s.currency=r.trim()):"relativetime"===t&&r.indexOf(":")<0?s.range||(s.range=r.trim()):r.split(";").forEach(e=>{if(e){const[t,...n]=e.split(":"),r=n.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();s[i]||(s[i]=r),"false"===r&&(s[i]=!1),"true"===r&&(s[i]=!0),isNaN(r)||(s[i]=parseInt(r,10))}})}return{formatName:t,formatOptions:s}})(t);if(this.formats[r]){let t=e;try{const o=n?.formatParams?.[n.interpolationkey]||{},a=o.locale||o.lng||n.locale||n.lng||s;t=this.formats[r](e,a,{...i,...n,...o})}catch(o){this.logger.warn(o)}return t}return this.logger.warn(`there was no format function for ${r}`),e},e)}}class Xe extends Ne{constructor(e,t,s,n={}){super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=n,this.logger=je.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(s,n.backend,n)}queueLoad(e,t,s,n){const r={},i={},o={},a={};return e.forEach(e=>{let n=!0;t.forEach(t=>{const o=`${e}|${t}`;!s.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===i[o]&&(i[o]=!0):(this.state[o]=1,n=!1,void 0===i[o]&&(i[o]=!0),void 0===r[o]&&(r[o]=!0),void 0===a[t]&&(a[t]=!0)))}),n||(o[e]=!0)}),(Object.keys(r).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(r),pending:Object.keys(i),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(a)}}loaded(e,t,s){const n=e.split("|"),r=n[0],i=n[1];t&&this.emit("failedLoading",r,i,t),!t&&s&&this.store.addResourceBundle(r,i,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const o={};this.queue.forEach(s=>{((e,t,s)=>{const{obj:n,k:r}=ve(e,t,Object);n[r]=n[r]||[],n[r].push(s)})(s.loaded,[r],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(s,e),t&&s.errors.push(t),0!==s.pendingCount||s.done||(Object.keys(s.loaded).forEach(e=>{o[e]||(o[e]={});const t=s.loaded[e];t.length&&t.forEach(t=>{void 0===o[e][t]&&(o[e][t]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,s,n=0,r=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:s,tried:n,wait:r,callback:i});this.readingCalls++;const o=(o,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}o&&a&&n<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,s,n+1,2*r,i)},r):i(o,a)},a=this.backend[s].bind(this.backend);if(2!==a.length)return a(e,t,o);try{const s=a(e,t);s&&"function"==typeof s.then?s.then(e=>o(null,e)).catch(o):o(null,s)}catch(u){o(u)}}prepareLoading(e,t,s={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();pe(e)&&(e=this.languageUtils.toResolveHierarchy(e)),pe(t)&&(t=[t]);const r=this.queueLoad(e,t,s,n);if(!r.toLoad.length)return r.pending.length||n(),null;r.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e,t=""){const s=e.split("|"),n=s[0],r=s[1];this.read(n,r,"read",void 0,void 0,(s,i)=>{s&&this.logger.warn(`${t}loading namespace ${r} for language ${n} failed`,s),!s&&i&&this.logger.log(`${t}loaded namespace ${r} for language ${n}`,i),this.loaded(e,s,i)})}saveMissing(e,t,s,n,r,i={},o=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=s&&""!==s){if(this.backend?.create){const u={...i,isUpdate:r},c=this.backend.create.bind(this.backend);if(c.length<6)try{let r;r=5===c.length?c(e,t,s,n,u):c(e,t,s,n),r&&"function"==typeof r.then?r.then(e=>o(null,e)).catch(o):o(null,r)}catch(a){o(a)}else c(e,t,s,n,o,u)}e&&e[0]&&this.store.addResource(e[0],t,s,n)}}else this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const Ye=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),pe(e[1])&&(t.defaultValue=e[1]),pe(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const s=e[3]||e[2];Object.keys(s).forEach(e=>{t[e]=s[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Ze=e=>(pe(e.ns)&&(e.ns=[e.ns]),pe(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),pe(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),et=()=>{},tt="__i18next_supportNoticeShown";class st extends Ne{constructor(e={},t){var s;if(super(),this.options=Ze(e),this.services={},this.logger=je,this.modules={external:[]},s=this,Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(e=>{"function"==typeof s[e]&&(s[e]=s[e].bind(s))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(pe(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const s=Ye();var n;this.options={...s,...this.options,...Ze(e)},this.options.interpolation={...s.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=s.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(n=this,n?.modules?.backend?.name?.indexOf("Locize")>0||n?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||n?.options?.backend?.backends&&n.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||n?.options?.backend?.projectId||n?.options?.backend?.backendOptions&&n.options.backend.backendOptions.some(e=>e?.projectId))||"undefined"!=typeof globalThis&&globalThis[tt]||"undefined"!=typeof process&&de&&de.I18NEXT_NO_SUPPORT_NOTICE||"undefined"!=typeof process&&de||("undefined"!=typeof console&&console.info,"undefined"!=typeof globalThis&&(globalThis[tt]=!0));const r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?je.init(r(this.modules.logger),this.options):je.init(null,this.options),e=this.modules.formatter?this.modules.formatter:Ge;const t=new Me(this.options);this.store=new _e(this.options.resources,this.options);const n=this.services;n.logger=je,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new Ke(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format||(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new ze(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Xe(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new $e(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=et),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const i=fe(),o=()=>{const e=(e,s)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(s),t(e,s)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?o():setTimeout(o,0),i}loadResources(e,t=et){let s=t;const n=pe(e)?e:this.language;if("function"==typeof e&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===n?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return s();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(n)t(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e))}this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),s(e)})}else s(null)}reloadResources(e,t,s){const n=fe();return"function"==typeof e&&(s=e,e=void 0),"function"==typeof t&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=et),this.services.backendConnector.reload(e,t,e=>{n.resolve(),s(e)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Fe.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const s=fe();this.emit("languageChanging",e);const n=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},r=(r,i)=>{i?this.isLanguageChangingTo===e&&(n(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,s.resolve((...e)=>this.t(...e)),t&&t(r,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const s=pe(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(s)?s:this.services.languageUtils.getBestMatchFromCodes(pe(t)?[t]:t);i&&(this.language||n(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{r(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),s}getFixedT(e,t,s){const n=(e,t,...r)=>{let i;i="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(r)):{...t},i.lng=i.lng||n.lng,i.lngs=i.lngs||n.lngs,i.ns=i.ns||n.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||s||n.keyPrefix);const o={...this.options,...i};"function"==typeof i.keyPrefix&&(i.keyPrefix=Ie(i.keyPrefix,o));const a=this.options.keySeparator||".";let u;return i.keyPrefix&&Array.isArray(e)?u=e.map(e=>("function"==typeof e&&(e=Ie(e,o)),`${i.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=Ie(e,o)),u=i.keyPrefix?`${i.keyPrefix}${a}${e}`:e),this.t(u,i)};return pe(e)?n.lng=e:n.lngs=e,n.ns=t,n.keyPrefix=s,n}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
vendor: 4,898 bytes, line 1
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===s.toLowerCase())return!0;const i=(e,t)=>{const s=this.services.backendConnector.state[`${e}|${t}`];return-1===s||0===s||2===s};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(s,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(s,e)||n&&!i(r,e)))}loadNamespaces(e,t){const s=fe();return this.options.ns?(pe(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{s.resolve(),t&&t(e)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=fe();pe(e)&&(e=[e]);const n=this.options.preload||[],r=e.filter(e=>n.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return r.length?(this.options.preload=n.concat(r),this.loadResources(e=>{s.resolve(),t&&t(e)}),s):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(s){}const t=this.services?.languageUtils||new Me(Ye());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const s=new st(e,t);return s.createInstance=st.createInstance,s}cloneInstance(e={},t=et){const s=e.forkResourceStore;s&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},r=new st(n);void 0===e.debug&&void 0===e.prefix||(r.logger=r.logger.clone(e));if(["store","services","language"].forEach(e=>{r[e]=this[e]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},s){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((s,n)=>(s[n]={...e[t][n]},s),e[t]),e),{});r.store=new _e(e,n),r.services.resourceStore=r.store}if(e.interpolation){const t={...Ye().interpolation,...this.options.interpolation,...e.interpolation},s={...n,interpolation:t};r.services.interpolator=new ze(s)}return r.translator=new $e(r.services,n),r.translator.on("*",(e,...t)=>{r.emit(e,...t)}),r.init(n,t),r.translator.options=n,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const nt=st.createInstance();var rt,it;nt.createInstance,nt.dir,nt.init,nt.loadResources,nt.reloadResources,nt.use,nt.changeLanguage,nt.getFixedT,nt.t,nt.exists,nt.setDefaultNamespace,nt.hasLoadedNamespace,nt.loadNamespaces,nt.loadLanguages;const ot=t(it?rt:(it=1,rt={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}));var at=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function ut(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},s=e.match(/<\/?([^\s]+?)[/\s>]/);if(s&&(t.name=s[1],(ot[s[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("--\x3e");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}for(var r=new RegExp(at),i=null;null!==(i=r.exec(e));)if(i[0].trim())if(i[1]){var o=i[1].trim(),a=[o,""];o.indexOf("=")>-1&&(a=o.split("=")),t.attrs[a[0]]=a[1],r.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}var ct=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,lt=/^\s*$/,ht=Object.create(null);var dt=function(e,t){t||(t={}),t.components||(t.components=ht);var s,n=[],r=[],i=-1,o=!1;if(0!==e.indexOf("<")){var a=e.indexOf("<");n.push({type:"text",content:-1===a?e:e.substring(0,a)})}return e.replace(ct,function(a,u){if(o){if(a!=="</"+s.name+">")return;o=!1}var c,l="/"!==a.charAt(1),h=a.startsWith("\x3c!--"),d=u+a.length,p=e.charAt(d);if(h){var f=ut(a);return i<0?(n.push(f),n):((c=r[i]).children.push(f),n)}if(l&&(i++,"tag"===(s=ut(a)).type&&t.components[s.name]&&(s.type="component",o=!0),s.voidElement||o||!p||"<"===p||s.children.push({type:"text",content:e.slice(d,e.indexOf("<",d))}),0===i&&n.push(s),(c=r[i-1])&&c.children.push(s),r[i]=s),(!l||s.voidElement)&&(i>
1-1&&(s.voidElement||s.name===a.slice(2,-1))&&(i--,s=-1===i?n:r[i]),!o&&"<"!==p&&p)){c=-1===i?n:r[i].children;var g=e.indexOf("<",d),y=e.slice(d,-1===g?void 0:g);lt.test(y)&&(y=" "),(g>-1&&i+c.length>=0||" "!==y)&&c.push({type:"text",content:y})}}),n};const pt=(e,t,s,n)=>{const r=[s,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);vt(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...r):console},ft={},gt=(e,t,s,n)=>{vt(s)&&ft[s]||(vt(s)&&(ft[s]=new Date),pt(e,t,s,n))},yt=(e,t)=>()=>{if(e.isInitialized)t();else{const s=()=>{setTimeout(()=>{e.off("initialized",s)},0),t()};e.on("initialized",s)}},mt=(e,t,s)=>{e.loadNamespaces(t,yt(e,s))},bt=(e,t,s,n)=>{if(vt(s)&&(s=[s]),e.options.preload&&e.options.preload.indexOf(t)>-1)return mt(e,s,n);s.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,yt(e,n))},vt=e=>"string"==typeof e,Ot=e=>"object"==typeof e&&null!==e,wt=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,St={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Rt=e=>St[e],xt=e=>e.replace(wt,Rt);let Et={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:xt,transDefaultProps:void 0};const Ct=()=>Et;let Pt;const kt=()=>Pt,Tt=(e,t)=>{if(!e)return!1;const s=e.props?.children??e.children;return t?s.length>0:!!s},At=e=>{if(!e)return[];const t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?Lt(t):t},Lt=e=>Array.isArray(e)?e:[e],jt=(t,s,n,r)=>{if(!t)return"";let i="";const o=Lt(t),a=s?.transSupportBasicHtmlNodes?s.transKeepBasicHtmlNodesFor??[]:[];return o.forEach((t,o)=>{if(vt(t))i+=`${t}`;else{if(e.isValidElement(t)){const{props:e,type:u}=t,c=Object.keys(e).length,l=a.indexOf(u)>-1,h=e.children;if(!h&&l&&!c)return void(i+=`<${u}/>`);if(!h&&(!l||c)||e.i18nIsDynamicList)return void(i+=`<${o}></${o}>`);if(l&&1===c&&vt(h))return void(i+=`<${u}>${h}</${u}>`);const d=jt(h,s,n,r);return void(i+=`<${o}>${d}</${o}>`)}if(null!==t){if(Ot(t)){const{format:e,...s}=t,o=Object.keys(s);if(1===o.length){const t=e?`${o[0]}, ${e}`:o[0];return void(i+=`{{${t}}}`)}return void pt(n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:r,child:t})}pt(n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:r,child:t})}else pt(n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:r})}}),i},Nt=(t,s,n,r,i,o,a)=>{if(""===n)return[];const u=i.transKeepBasicHtmlNodesFor||[],c=n&&new RegExp(u.map(e=>`<${e}`).join("|")).test(n);if(!(t||s||c||a))return[n];const l=s??{},h=t=>{Lt(t).forEach(t=>{vt(t)||(Tt(t)?h(At(t)):Ot(t)&&!e.isValidElement(t)&&Object.assign(l,t))})};h(t);const d=((e,t=[],s={})=>{if(!e)return e;const n=[...t,...Object.keys(s)];let r="",i=0;for(;i<e.length;)if("<"===e[i]){let t=!1;const s=e.slice(i).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);if(s){const e=s[1];(/^\d+$/.test(e)||n.includes(e))&&(t=!0,r+=s[0],i+=s[0].length)}if(!t){const s=e.slice(i).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(s){const e=s[1];(/^\d+$/.test(e)||n.includes(e))&&(t=!0,r+=s[0],i+=s[0].length)}}t||(r+="<",i+=1)}else r+=e[i],i+=1;return r})(n,u,l),p=dt(`<0>${d}</0>`),f={...l,...o},g=(t,s,n)=>{const r=At(t),i=m(r,s.children,n);return(t=>Array.isArray(t)&&t.every(e.isValidElement))(r)&&0===i.length||t.props?.i18nIsDynamicList?r:i},y=(t,s,n,r,i)=>{t.dummy?(t.children=s,n.push(e.cloneElement(t,{key:r},i?void 0:s))):n.push(...e.Children.map([t],t=>{const n="data-i18n-is-dynamic-list",o={key:r,[n]:void 0};
vendor: 6,273 bytes, line 1
1return t&&t.props&&Object.keys(t.props).forEach(e=>{"ref"!==e&&"children"!==e&&"i18nIsDynamicList"!==e&&e!==n&&(o[e]=t.props[e])}),e.cloneElement(t,o,i?null:s)}))},m=(t,n,o)=>{const l=Lt(t);return Lt(n).reduce((t,n,h)=>{const d=n.children?.[0]?.content&&r.services.interpolator.interpolate(n.children[0].content,f,r.language);if("tag"===n.type){let p=l[parseInt(n.name,10)];!p&&s&&(p=s[n.name]),1!==o.length||p||(p=o[0][n.name]),p||(p={});const b={...n.attrs};a&&Object.keys(b).forEach(e=>{const t=b[e];vt(t)&&(b[e]=xt(t))});const v=0!==Object.keys(b).length?((e,t)=>{const s={...t};return s.props=Object.assign(e.props,t.props),s})({props:b},p):p,O=e.isValidElement(v),w=O&&Tt(n,!0)&&!n.voidElement,S=c&&Ot(v)&&v.dummy&&!O,R=Ot(s)&&Object.hasOwnProperty.call(s,n.name);if(vt(v)){const e=r.services.interpolator.interpolate(v,f,r.language);t.push(e)}else if(Tt(v)||w){const e=g(v,n,o);y(v,e,t,h)}else if(S){const e=m(l,n.children,o);y(v,e,t,h)}else if(Number.isNaN(parseFloat(n.name)))if(R){const e=g(v,n,o);y(v,e,t,h,n.voidElement)}else if(i.transSupportBasicHtmlNodes&&u.indexOf(n.name)>-1)if(n.voidElement)t.push(e.createElement(n.name,{key:`${n.name}-${h}`}));else{const s=m(l,n.children,o);t.push(e.createElement(n.name,{key:`${n.name}-${h}`},s))}else if(n.voidElement)t.push(`<${n.name} />`);else{const e=m(l,n.children,o);t.push(`<${n.name}>${e}</${n.name}>`)}else if(Ot(v)&&!O){const e=n.children[0]?d:null;e&&t.push(e)}else y(v,d,t,h,1!==n.children.length||!d)}else if("text"===n.type){const s=i.transWrapTextNodes,o="function"==typeof i.unescape?i.unescape:Ct().unescape,u=a?o(r.services.interpolator.interpolate(n.content,f,r.language)):r.services.interpolator.interpolate(n.content,f,r.language);s?t.push(e.createElement(s,{key:`${n.name}-${h}`},u)):t.push(u)}return t},[])},b=m([{dummy:!0,children:t||[]}],p,Lt(t||[]));return At(b[0])},_t=(t,s,n)=>{const r=t.key||s,i=e.cloneElement(t,{key:r});if(!i.props||!i.props.children||n.indexOf(`${s}/>`)<0&&n.indexOf(`${s} />`)<0)return i;return e.createElement(function(){return e.createElement(e.Fragment,null,i)},{key:r})},Ft=(e,t,s,n)=>e?Array.isArray(e)?((e,t)=>e.map((e,s)=>_t(e,s,t)))(e,t):Ot(e)?((e,t)=>{const s={};return Object.keys(e).forEach(n=>{Object.assign(s,{[n]:_t(e[n],n,t)})}),s})(e,t):(gt(s,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:n}),null):null;function Dt({children:t,count:s,parent:n,i18nKey:r,context:i,tOptions:o={},values:a,defaults:u,components:c,ns:l,i18n:h,t:d,shouldUnescape:p,...f}){const g=h||kt();if(!g)return gt(g,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:r}),t;const y=d||g.t.bind(g)||(e=>e),m={...Ct(),...g.options?.react};let b=l||y.ns||g.options?.defaultNS;b=vt(b)?[b]:b||["translation"];const{transDefaultProps:v}=m,O=v?.tOptions?{...v.tOptions,...o}:o,w=p??v?.shouldUnescape,S=v?.values?{...v.values,...a}:a,R=v?.components?{...v.components,...c}:c,x=jt(t,m,g,r),E=u||O?.defaultValue||x||m.transEmptyNodeValue||("function"==typeof r?Ie(r):r),{hashTransKey:C}=m,P=r||(C?C(x||E):x||E);a=g.options?.interpolation?.defaultVariables?S&&Object.keys(S).length>0?{...S,...g.options.interpolation.defaultVariables}:{...g.options.interpolation.defaultVariables}:S;const k=(t=>{const s={};if(!t)return s;const n=t=>{Lt(t).forEach(t=>{vt(t)||(Tt(t)?n(At(t)):Ot(t)&&!e.isValidElement(t)&&Object.assign(s,t))})};return n(t),s})(t);k&&"number"==typeof k.count&&void 0===s&&(s=k.count);const T=a||void 0!==s&&!g.options?.interpolation?.alwaysFormat||!t?O.interpolation:{interpolation:{...O.interpolation,prefix:"#$?",suffix:"?$#"}},A={...O,context:i||O.context,count:s,...a,...T,defaultValue:E,ns:b};let L=P?y(P,A):E;L===P&&E&&(L=E);const j=Ft(R,L,g,r);let N=j||t,_=null;var F;Ot(F=j)&&!Array.isArray(F)&&Object.keys(F).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0)&&(_=j,N=t);const D=Nt(N,_,L,g,m,A,w),I=n??m.defaultTransParent;return I?e.createElement(I,f,D):D}const It={type:"3rdParty",init(e){((e={})=>{Et={...Et,...e}})(e.options.react),(e=>{Pt=e})(e)}},Ut=e.createContext();class qt{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function $t({children:t,count:s,parent:n,i18nKey:r,context:i,tOptions:o={},values:a,defaults:u,components:c,ns:l,i18n:h,t:d,shouldUnescape:p,...f}){const{i18n:g,defaultNS:y}=e.useContext(Ut)||{},m=h||g||kt(),b=d||m?.t.bind(m);return Dt({children:t,count:s,parent:n,i18nKey:r,context:i,tOptions:o,values:a,defaults:u,components:c,ns:l||b?.ns||y||m?.options?.defaultNS,i18n:m,t:d,shouldUnescape:p,...f})}var Mt,Bt,Qt={exports:{}},Kt={};var Vt=(Bt||(Bt=1,Qt.exports=function(){if(Mt)return Kt;Mt=1;var e=s(),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function a(e){var s=e.getSnapshot;e=e.value;try{var n=s();return!t(e,n)}catch(r){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),u=n({inst:{value:s,getSnapshot:t}}),c=u[0].inst,l=u[1];return i(function(){c.value=s,c.getSnapshot=t,a(c)&&l({inst:c})},[e,s,t]),r(function(){return a(c)&&l({inst:c}),e(function(){a(c)&&l({inst:c})})},[e]),o(s),s};return Kt.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u,Kt}()),Qt.exports);const Ht={t:(e,t)=>vt(t)?t:Ot(t)&&vt(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,ready:!1},zt=()=>()=>{},Jt=(t,s={})=>{const{i18n:n}=s,{i18n:r,defaultNS:i}=e.useContext(Ut)||{},o=n||r||kt();o&&!o.reportNamespaces&&(o.reportNamespaces=new qt),o||gt(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const a=e.useMemo(()=>({...Ct(),...o?.options?.react,...s}),[o,s]),{useSuspense:u,keyPrefix:c}=a,l=i||o?.options?.defaultNS,h=vt(l)?[l]:l||["translation"],d=e.useMemo(()=>h,h);o?.reportNamespaces?.addUsedNamespaces?.(d);const p=e.useRef(0),f=e.useCallback(e=>{if(!o)return zt;const{bindI18n:t,bindI18nStore:s}=a,n=()=>{p.current+=1,e()};return t&&o.on(t,n),s&&o.store.on(s,n),()=>
1{t&&t.split(" ").forEach(e=>o.off(e,n)),s&&s.split(" ").forEach(e=>o.store.off(e,n))}},[o,a]),g=e.useRef(),y=e.useCallback(()=>{if(!o)return Ht;const e=!(!o.isInitialized&&!o.initializedStoreOnce)&&d.every(e=>((e,t,s={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:s.lng,precheck:(t,n)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(gt(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,o,a)),t=s.lng||o.language,n=p.current,r=g.current;if(r&&r.ready===e&&r.lng===t&&r.keyPrefix===c&&r.revision===n)return r;const i={t:o.getFixedT(t,"fallback"===a.nsMode?d:d[0],c),ready:e,lng:t,keyPrefix:c,revision:n};return g.current=i,i},[o,d,c,a,s.lng]),[m,b]=e.useState(0),{t:v,ready:O}=Vt.useSyncExternalStore(f,y,y);e.useEffect(()=>{if(o&&!O&&!u){const e=()=>b(e=>e+1);s.lng?bt(o,s.lng,d,e):mt(o,d,e)}},[o,s.lng,d,O,u,m]);const w=o||{},S=e.useRef(null),R=e.useRef(),x=e=>{const t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;const s=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(s,"__original"))try{Object.defineProperty(s,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(n){}return s},E=e.useMemo(()=>{const e=w,t=e?.language;let s=e;e&&(S.current&&S.current.__original===e?R.current!==t?(s=x(e),S.current=s,R.current=t):s=S.current:(s=x(e),S.current=s,R.current=t));const n=[v,s,O];return n.t=v,n.i18n=s,n.ready=O,n},[v,w,O,w.resolvedLanguage,w.language,w.languages]);if(o&&u&&!O)throw new Promise(e=>{const t=()=>e();s.lng?bt(o,s.lng,d,t):mt(o,d,t)});return E},Wt=e=>{let t;const s=new Set,n=(e,n)=>{const r="function"==typeof e?e(t):e;if(!Object.is(r,t)){const e=t;t=(null!=n?n:"object"!=typeof r||null===r)?r:Object.assign({},t,r),s.forEach(s=>s(t,e))}},r=()=>t,i={setState:n,getState:r,getInitialState:()=>o,subscribe:e=>(s.add(e),()=>s.delete(e))},o=t=e(n,r,i);return i},Gt=e=>e;const Xt=e=>{const t=(e=>e?Wt(e):Wt)(e),s=e=>function(e,t=Gt){const s=n.useSyncExternalStore(e.subscribe,n.useCallback(()=>t(e.getState()),[e,t]),n.useCallback(()=>t(e.getInitialState()),[e,t]));return n.useDebugValue(s),s}(t,e);return Object.assign(s,t),s},Yt=e=>e?Xt(e):Xt;function Zt(e,t){return function(){return e.apply(t,arguments)}}const{toString:es}=Object.prototype,{getPrototypeOf:ts}=Object,{iterator:ss,toStringTag:ns}=Symbol,rs=(({hasOwnProperty:e})=>(t,s)=>e.call(t,s))(Object.prototype),is=(e,t)=>{let s=e;const n=[];for(;null!=s&&s!==Object.prototype;){if(-1!==n.indexOf(s))return!1;if(n.push(s),rs(s,t))return!0;s=ts(s)}return!1},os=(e=>t=>{const s=es.call(t);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),as=e=>(e=e.toLowerCase(),t=>os(t)===e),us=e=>t=>typeof t===e,{isArray:cs}=Array,ls=us("undefined");function hs(e){return null!==e&&!ls(e)&&null!==e.constructor&&!ls(e.constructor)&&fs(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ds=as("ArrayBuffer");const ps=us("string"),fs=us("function"),gs=us("number"),ys=e=>null!==e&&"object"==typeof e,ms=e=>{if(!ys(e))return!1;const t=ts(e);return!(null!==t&&t!==Object.prototype&&null!==ts(t)||is(e,ns)||is(e,ss))},bs=as("Date"),vs=as("File"),Os=as("Blob"),ws=as("FileList");const Ss="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Rs=void 0!==Ss.FormData?Ss.FormData:void 0,xs=as("URLSearchParams"),[Es,Cs,Ps,ks]=["ReadableStream","Request","Response","Headers"].map(as);function Ts(e,t,{allOwnKeys:s=!1}={}){if(null==e)return;let n,r;if("object"!=typeof e&&(e=[e]),cs(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(hs(e))return;const r=s?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let o;for(n=0;n<i;n++)o=r[n],t.call(null,e[o],o,e)}}function As(e,t){if(hs(e))return null;t=t.toLowerCase();const s=Object.keys(e);let n,r=s.length;for(;r-- >0;)if(n=s[r],t===n.toLowerCase())return n;return null}const Ls="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,js=e=>!ls(e)&&e!==Ls;const Ns=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&ts(Uint8Array)),_s=as("HTMLFormElement"),{propertyIsEnumerable:Fs}=Object.prototype,Ds=as("RegExp"),Is=(e,t)=>{const s=Object.getOwnPropertyDescriptors(e),n={};Ts(s,(s,r)=>{let i;!1!==(i=t(s,r,e))&&(n[r]=i||s)}),Object.defineProperties(e,n)};const Us=as("AsyncFunction"),qs=($s="function"==typeof setImmediate,Ms=fs(Ls.postMessage),$s?setImmediate:Ms?(Bs=`axios@${Math.random()}`,Qs=[],Ls.addEventListener("message",({source:e,data:t})=>{e===Ls&&t===Bs&&Qs.length&&Qs.shift()()},!1),e=>{Qs.push(e),Ls.postMessage(Bs,"*")}):e=>setTimeout(e));var $s,Ms,Bs,Qs;const Ks="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ls):"undefined"!=typeof process&&process.nextTick||qs,Vs=e=>null!=e&&fs(e[ss]),Hs={isArray:cs,isArrayBuffer:ds,isBuffer:hs,isFormData:e=>{if(!e)return!1;if(Rs&&e instanceof Rs)return!0;const t=ts(e);if(!t||t===Object.prototype)return!1;if(!fs(e.append))return!1;const s=os(e);return"formdata"===s||"object"===s&&fs(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ds(e.buffer),t},isString:ps,isNumber:gs,isBoolean:e=>!0===e||!1===e,isObject:ys,isPlainObject:ms,isEmptyObject:e=>{if(!ys(e)||hs(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:Es,isRequest:Cs,isResponse:Ps,isHeaders:ks,isUndefined:ls,isDate:bs,isFile:vs,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Os,isRegExp:Ds,isFunction:fs,isStream:e=>ys(e)&&fs(e.pipe),isURLSearchParams:xs,isTypedArray:Ns,isFileList:ws,forEach:Ts,merge:function e(...t){const{caseless:s,skipUndefined:n}=js(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;
vendor: 5,184 bytes, line 1
1const o=s&&"string"==typeof i&&As(r,i)||i,a=rs(r,o)?r[o]:void 0;ms(a)&&ms(t)?r[o]=e(a,t):ms(t)?r[o]=e({},t):cs(t)?r[o]=t.slice():n&&ls(t)||(r[o]=t)};for(let o=0,a=t.length;o<a;o++){const e=t[o];if(!e||hs(e))continue;if(Ts(e,i),"object"!=typeof e||cs(e))continue;const s=Object.getOwnPropertySymbols(e);for(let t=0;t<s.length;t++){const n=s[t];Fs.call(e,n)&&i(e[n],n)}}return r},extend:(e,t,s,{allOwnKeys:n}={})=>(Ts(t,(t,n)=>{s&&fs(t)?Object.defineProperty(e,n,{__proto__:null,value:Zt(t,s),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,s,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),s&&Object.assign(e.prototype,s)},toFlatObject:(e,t,s,n)=>{let r,i,o;const a={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],n&&!n(o,e,t)||a[o]||(t[o]=e[o],a[o]=!0);e=!1!==s&&ts(e)}while(e&&(!s||s(e,t))&&e!==Object.prototype);return t},kindOf:os,kindOfTest:as,endsWith:(e,t,s)=>{e=String(e),(void 0===s||s>e.length)&&(s=e.length),s-=t.length;const n=e.indexOf(t,s);return-1!==n&&n===s},toArray:e=>{if(!e)return null;if(cs(e))return e;let t=e.length;if(!gs(t))return null;const s=new Array(t);for(;t-- >0;)s[t]=e[t];return s},forEachEntry:(e,t)=>{const s=(e&&e[ss]).call(e);let n;for(;(n=s.next())&&!n.done;){const s=n.value;t.call(e,s[0],s[1])}},matchAll:(e,t)=>{let s;const n=[];for(;null!==(s=e.exec(t));)n.push(s);return n},isHTMLForm:_s,hasOwnProperty:rs,hasOwnProp:rs,hasOwnInPrototypeChain:is,getSafeProp:(e,t)=>null!=e&&is(e,t)?e[t]:void 0,reduceDescriptors:Is,freezeMethods:e=>{Is(e,(t,s)=>{if(fs(e)&&["arguments","caller","callee"].includes(s))return!1;const n=e[s];fs(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")}))})},toObjectSet:(e,t)=>{const s={},n=e=>{e.forEach(e=>{s[e]=!0})};return cs(e)?n(e):n(String(e).split(t)),s},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,s){return t.toUpperCase()+s}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:As,global:Ls,isContextDefined:js,isSpecCompliantForm:function(e){return!!(e&&fs(e.append)&&"FormData"===e[ns]&&e[ss])},toJSONObject:e=>{const t=new WeakSet,s=e=>{if(ys(e)){if(t.has(e))return;if(hs(e))return e;if(!("toJSON"in e)){t.add(e);const n=cs(e)?[]:{};return Ts(e,(e,t)=>{const r=s(e);!ls(r)&&(n[t]=r)}),t.delete(e),n}}return e};return s(e)},isAsyncFn:Us,isThenable:e=>e&&(ys(e)||fs(e))&&fs(e.then)&&fs(e.catch),setImmediate:qs,asap:Ks,isIterable:Vs,isSafeIterable:e=>null!=e&&is(e,ss)&&Vs(e)},zs=Hs.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"]);const Js=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Ws=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Gs(e,t){return Hs.isArray(e)?e.map(e=>Gs(e,t)):function(e){let t=0,s=e.length;for(;t<s;){const s=e.charCodeAt(t);if(9!==s&&32!==s)break;t+=1}for(;s>t;){const t=e.charCodeAt(s-1);if(9!==t&&32!==t)break;s-=1}return 0===t&&s===e.length?e:e.slice(t,s)}(String(e).replace(t,""))}function Xs(e){const t=Object.create(null);return Hs.forEach(e.toJSON(),(e,s)=>{t[s]=(e=>Gs(e,Ws))(e)}),t}const Ys=Symbol("internals");function Zs(e){return e&&String(e).trim().toLowerCase()}function en(e){return!1===e||null==e?e:Hs.isArray(e)?e.map(en):(e=>Gs(e,Js))(String(e))}function tn(e,t,s,n,r){return Hs.isFunction(n)?n.call(this,t,s):(r&&(t=s),Hs.isString(t)?Hs.isString(n)?-1!==t.indexOf(n):Hs.isRegExp(n)?n.test(t):void 0:void 0)}let sn=class{constructor(e){e&&this.set(e)}set(e,t,s){const n=this;function r(e,t,s){const r=Zs(t);if(!r)return;const i=Hs.findKey(n,r);(!i||void 0===n[i]||!0===s||void 0===s&&!1!==n[i])&&(n[i||t]=en(e))}const i=(e,t)=>Hs.forEach(e,(e,s)=>r(e,s,t));if(Hs.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Hs.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let s,n,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),s=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!s||t[s]&&zs[s]||("set-cookie"===s?t[s]?t[s].push(n):t[s]=[n]:t[s]=t[s]?t[s]+", "+n:n)}),t})(e),t);else if(Hs.isObject(e)&&Hs.isSafeIterable(e)){let s,n,r=Object.create(null);for(const t of e){if(!Hs.isArray(t))throw new TypeError("Object iterator must return a key-value pair");n=t[0],Hs.hasOwnProp(r,n)?(s=r[n],r[n]=Hs.isArray(s)?[...s,t[1]]:[s,t[1]]):r[n]=t[1]}i(r,t)}else null!=e&&r(t,e,s);return this}get(e,t){if(e=Zs(e)){const s=Hs.findKey(this,e);if(s){const e=this[s];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),s=/([^\s,;
vendor: 33,889 bytes, line 1
1=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=s.exec(e);)t[n[1]]=n[2];return t}(e);if(Hs.isFunction(t))return t.call(this,e,s);if(Hs.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Zs(e)){const s=Hs.findKey(this,e);return!(!s||void 0===this[s]||t&&!tn(0,this[s],s,t))}return!1}delete(e,t){const s=this;let n=!1;function r(e){if(e=Zs(e)){const r=Hs.findKey(s,e);!r||t&&!tn(0,s[r],r,t)||(delete s[r],n=!0)}}return Hs.isArray(e)?e.forEach(r):r(e),n}clear(e){const t=Object.keys(this);let s=t.length,n=!1;for(;s--;){const r=t[s];e&&!tn(0,this[r],r,e,!0)||(delete this[r],n=!0)}return n}normalize(e){const t=this,s={};return Hs.forEach(this,(n,r)=>{const i=Hs.findKey(s,r);if(i)return t[i]=en(n),void delete t[r];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,s)=>t.toUpperCase()+s)}(r):String(r).trim();o!==r&&delete t[r],t[o]=en(n),s[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Hs.forEach(this,(s,n)=>{null!=s&&!1!==s&&(t[n]=e&&Hs.isArray(s)?s.join(", "):s)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const s=new this(e);return t.forEach(e=>s.set(e)),s}static accessor(e){const t=(this[Ys]=this[Ys]={accessors:{}}).accessors,s=this.prototype;function n(e){const n=Zs(e);t[n]||(!function(e,t){const s=Hs.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+s,{__proto__:null,value:function(e,s,r){return this[n].call(this,t,e,s,r)},configurable:!0})})}(s,e),t[n]=!0)}return Hs.isArray(e)?e.forEach(n):n(e),this}};sn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Hs.reduceDescriptors(sn.prototype,({value:e},t)=>{let s=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[s]=e}}}),Hs.freezeMethods(sn);function nn(e,t){const s=new Set(t.map(e=>String(e).toLowerCase())),n=[],r=e=>{if(null===e||"object"!=typeof e)return e;if(Hs.isBuffer(e))return e;if(-1!==n.indexOf(e))return;let t;if(e instanceof sn&&(e=e.toJSON()),n.push(e),Hs.isArray(e))t=[],e.forEach((e,s)=>{const n=r(e);Hs.isUndefined(n)||(t[s]=n)});else{if(!Hs.isPlainObject(e)&&function(e){if(Hs.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Hs.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return n.pop(),e;t=Object.create(null);for(const[n,i]of Object.entries(e)){const e=s.has(n.toLowerCase())?"[REDACTED ****]":r(i);Hs.isUndefined(e)||(t[n]=e)}}return n.pop(),t};return r(e)}let rn=class e extends Error{static from(t,s,n,r,i,o){const a=new e(t.message,s||t.code,n,r,i);return Object.defineProperty(a,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),a.name=t.name,null!=t.status&&null==a.status&&(a.status=t.status),o&&Object.assign(a,o),a}constructor(e,t,s,n,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),s&&(this.config=s),n&&(this.request=n),r&&(this.response=r,this.status=r.status)}toJSON(){const e=this.config,t=e&&Hs.hasOwnProp(e,"redact")?e.redact:void 0,s=Hs.isArray(t)&&t.length>0?nn(e,t):Hs.toJSONObject(e);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:s,code:this.code,status:this.status}}};rn.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rn.ERR_BAD_OPTION="ERR_BAD_OPTION",rn.ECONNABORTED="ECONNABORTED",rn.ETIMEDOUT="ETIMEDOUT",rn.ECONNREFUSED="ECONNREFUSED",rn.ERR_NETWORK="ERR_NETWORK",rn.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rn.ERR_DEPRECATED="ERR_DEPRECATED",rn.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rn.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rn.ERR_CANCELED="ERR_CANCELED",rn.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rn.ERR_INVALID_URL="ERR_INVALID_URL",rn.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function on(e){return Hs.isPlainObject(e)||Hs.isArray(e)}function an(e){return Hs.endsWith(e,"[]")?e.slice(0,-2):e}function un(e,t,s){return e?e.concat(t).map(function(e,t){return e=an(e),!s&&t?"["+e+"]":e}).join(s?".":""):t}const cn=Hs.toFlatObject(Hs,{},null,function(e){return/^is[A-Z]/.test(e)});function ln(e,t,s){if(!Hs.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(s=Hs.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Hs.isUndefined(t[e])})).metaTokens,r=s.visitor||p,i=s.dots,o=s.indexes,a=s.Blob||"undefined"!=typeof Blob&&Blob,u=void 0===s.maxDepth?100:s.maxDepth,c=a&&Hs.isSpecCompliantForm(t),l=[];if(!Hs.isFunction(r))throw new TypeError("visitor must be a function");function h(e){if(null===e)return"";if(Hs.isDate(e))return e.toISOString();if(Hs.isBoolean(e))return e.toString();if(!c&&Hs.isBlob(e))throw new rn("Blob is not supported. Use a Buffer instead.");if(Hs.isArrayBuffer(e)||Hs.isTypedArray(e)){if(c&&"function"==typeof a)return new a([e]);if("undefined"!=typeof Buffer)return Buffer.from(e);throw new rn("Blob is not supported. Use a Buffer instead.",rn.ERR_NOT_SUPPORT)}return e}function d(e){if(e>u)throw new rn("Object is too deeply nested ("+e+" levels). Max depth: "+u,rn.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,s,r){let a=e;if(Hs.isReactNative(t)&&Hs.isReactNativeBlob(e))return t.append(un(r,s,i),h(e)),!1;if(e&&!r&&"object"==typeof e)if(Hs.endsWith(s,"{}"))s=n?s:s.slice(0,-2),e=function(e,t){if(u===1/0)return JSON.stringify(e);const s=[];return JSON.stringify(e,function(e,n){if(!Hs.isObject(n))return n;for(;s.length&&s[s.length-1]!==this;)s.pop();return s.push(n),d(t+s.length-1),n})}(e,1);else if(Hs.isArray(e)&&function(e){return Hs.isArray(e)&&!e.some(on)}(e)||(Hs.isFileList(e)||Hs.endsWith(s,"[]"))&&(a=Hs.toArray(e)))return s=an(s),a.forEach(function(e,n){!Hs.isUndefined(e)&&null!==e&&t.append(!0===o?un([s],n,i):null===o?s:s+"[]",h(e))}),!1;return!!on(e)||(t.append(un(r,s,i),h(e)),!1)}const f=Object.assign(cn,{defaultVisitor:p,convertValue:h,isVisitable:on});if(!Hs.isObject(e))throw new TypeError("data must be an object");return function e(s,n,i=0){if(!Hs.isUndefined(s)){if(d(i),-1!==l.indexOf(s))throw new Error("Circular reference detected in "+n.join("."));l.push(s),Hs.forEach(s,function(s,o){!0===(!(Hs.isUndefined(s)||null===s)&&r.call(t,s,Hs.isString(o)?o.trim():o,n,f))&&e(s,n?n.concat(o):[o],i+1)}),l.pop()}}(e),t}function hn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function dn(e,t){this._pairs=[],e&&ln(e,this,t)}const pn=dn.prototype;function fn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function gn(e,t,s){if(!t)return e;e=e||"";const n=Hs.isFunction(s)?{serialize:s}:s,r=Hs.getSafeProp(n,"encode")||fn,i=Hs.getSafeProp(n,"serialize");let o;if(o=i?i(t,n):Hs.isURLSearchParams(t)?t.toString():new dn(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}pn.append=function(e,t){this._pairs.push([e,t])},pn.toString=function(e){const t=e?t=>e.call(this,t,hn):hn;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class yn{constructor(){this.handlers=[]}use(e,t,s){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!s&&s.synchronous,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Hs.forEach(this.handlers,function(t){null!==t&&e(t)})}}const mn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},bn={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:dn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},vn="undefined"!=typeof window&&"undefined"!=typeof document,On="object"==typeof navigator&&navigator||void 0,wn=vn&&(!On||["ReactNative","NativeScript","NS"].indexOf(On.product)<0),Sn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Rn=vn&&window.location.href||"http://localhost",xn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vn,hasStandardBrowserEnv:wn,hasStandardBrowserWebWorkerEnv:Sn,navigator:On,origin:Rn},Symbol.toStringTag,{value:"Module"})),...bn};function En(e){if(e>100)throw new rn("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rn.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Cn(e){function t(e,s,n,r){En(r);let i=e[r++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),a=r>=e.length;if(i=!i&&Hs.isArray(n)?n.length:i,a)return Hs.hasOwnProp(n,i)?n[i]=Hs.isArray(n[i])?n[i].concat(s):[n[i],s]:n[i]=s,!o;Hs.hasOwnProp(n,i)&&Hs.isObject(n[i])||(n[i]=[]);return t(e,s,n[i],r)&&Hs.isArray(n[i])&&(n[i]=function(e){const t={},s=Object.keys(e);let n;const r=s.length;let i;for(n=0;n<r;n++)i=s[n],t[i]=e[i];return t}(n[i])),!o}if(Hs.isFormData(e)&&Hs.isFunction(e.entries)){const s={};return Hs.forEachEntry(e,(e,n)=>{t(function(e){const t=[],s=/\w+|\[(\w*)]/g;let n;for(;null!==(n=s.exec(e));)En(t.length),t.push("[]"===n[0]?"":n[1]||n[0]);return t}(e),n,s,0)}),s}return null}const Pn=(e,t)=>null!=e&&Hs.hasOwnProp(e,t)?e[t]:void 0;const kn={transitional:mn,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const s=t.getContentType()||"",n=s.indexOf("application/json")>-1,r=Hs.isObject(e);r&&Hs.isHTMLForm(e)&&(e=new FormData(e));if(Hs.isFormData(e))return n?JSON.stringify(Cn(e)):e;if(Hs.isArrayBuffer(e)||Hs.isBuffer(e)||Hs.isStream(e)||Hs.isFile(e)||Hs.isBlob(e)||Hs.isReadableStream(e))return e;if(Hs.isArrayBufferView(e))return e.buffer;if(Hs.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(r){const t=Pn(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ln(e,new xn.classes.URLSearchParams,{visitor:function(e,t,s,n){return xn.isNode&&Hs.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=Hs.isFileList(e))||s.indexOf("multipart/form-data")>-1){const s=Pn(this,"env"),n=s&&s.FormData;return ln(i?{"files[]":e}:e,n&&new n,t)}}return r||n?(t.setContentType("application/json",!1),function(e,t,s){if(Hs.isString(e))try{return(t||JSON.parse)(e),Hs.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(s||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Pn(this,"transitional")||kn.transitional,s=t&&t.forcedJSONParsing,n=Pn(this,"responseType"),r="json"===n;if(Hs.isResponse(e)||Hs.isReadableStream(e))return e;if(e&&Hs.isString(e)&&(s&&!n||r)){const s=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,Pn(this,"parseReviver"))}catch(i){if(s){if("SyntaxError"===i.name)throw rn.from(i,rn.ERR_BAD_RESPONSE,this,null,Pn(this,"response"));throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xn.classes.FormData,Blob:xn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function Tn(e,t){const s=this||kn,n=t||s,r=sn.from(n.headers);let i=n.data;return Hs.forEach(e,function(e){i=e.call(s,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function An(e){return!(!e||!e.__CANCEL__)}Hs.forEach(["delete","get","head","post","put","patch","query"],e=>{kn.headers[e]={}});let Ln=class extends rn{constructor(e,t,s){super(null==e?"canceled":e,rn.ERR_CANCELED,t,s),this.name="CanceledError",this.__CANCEL__=!0}};function jn(e,t,s){const n=s.config.validateStatus;s.status&&n&&!n(s.status)?t(new rn("Request failed with status code "+s.status,s.status>=400&&s.status<500?rn.ERR_BAD_REQUEST:rn.ERR_BAD_RESPONSE,s.config,s.request,s)):e(s)}const Nn=(e,t,s=3)=>{let n=0;const r=function(e,t){e=e||10;const s=new Array(e),n=new Array(e);let r,i=0,o=0;return t=void 0!==t?t:1e3,function(a){const u=Date.now(),c=n[o];r||(r=u),s[i]=a,n[i]=u;let l=o,h=0;for(;l!==i;)h+=s[l++],l%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-r<t)return;const d=c&&u-c;return d?Math.round(1e3*h/d):void 0}}(50,250);return function(e,t){let s,n,r=0,i=1e3/t;const o=(t,i=Date.now())=>{r=i,s=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-r;a>=i?o(e,t):(s=e,n||(n=setTimeout(()=>{n=null,o(s)},i-a)))},()=>s&&o(s)]}(s=>{if(!s||"number"!=typeof s.loaded)return;const i=s.loaded,o=s.lengthComputable?s.total:void 0,a=null!=o?Math.min(i,o):i,u=Math.max(0,a-n),c=r(u);n=Math.max(n,a);e({loaded:a,total:o,progress:o?a/o:void 0,bytes:u,rate:c||void 0,estimated:c&&o?(o-a)/c:void 0,event:s,lengthComputable:null!=o,[t?"download":"upload"]:!0})},s)},_n=(e,t)=>{const s=null!=e;return[n=>t[0]({lengthComputable:s,total:e,loaded:n}),t[1]]},Fn=e=>(...t)=>Hs.asap(()=>e(...t)),Dn=xn.hasStandardBrowserEnv?((e,t)=>s=>(s=new URL(s,xn.origin),e.protocol===s.protocol&&e.host===s.host&&(t||e.port===s.port)))(new URL(xn.origin),xn.navigator&&/(msie|trident)/i.test(xn.navigator.userAgent)):()=>!0,In=xn.hasStandardBrowserEnv?{write(e,t,s,n,r,i,o){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];Hs.isNumber(s)&&a.push(`expires=${new Date(s).toUTCString()}`),Hs.isString(n)&&a.push(`path=${n}`),Hs.isString(r)&&a.push(`domain=${r}`),!0===i&&a.push("secure"),Hs.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),i=r.indexOf("=");if(-1!==i&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch(s){return r.slice(i+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};const Un=/^https?:(?!\/\/)/i,qn=/[\t\n\r]/g;function $n(e,t){if("string"==typeof e&&Un.test(function(e){return function(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}(e).replace(qn,"")}(e)))throw new rn('Invalid URL: missing "//" after protocol',rn.ERR_INVALID_URL,t)}function Mn(e,t,s,n){$n(t,n);let r=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(r||!1===s)?($n(e,n),function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t)):t}const Bn=e=>e instanceof sn?{...e}:e;function Qn(e,t){e=e||{},t=t||{};const s=Object.create(null);function n(e,t,s,n){return Hs.isPlainObject(e)&&Hs.isPlainObject(t)?Hs.merge.call({caseless:n},e,t):Hs.isPlainObject(t)?Hs.merge({},t):Hs.isArray(t)?t.slice():t}function r(e,t,s,r){return Hs.isUndefined(t)?Hs.isUndefined(e)?void 0:n(void 0,e,0,r):n(e,t,0,r)}function i(e,t){if(!Hs.isUndefined(t))return n(void 0,t)}function o(e,t){return Hs.isUndefined(t)?Hs.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(s,r,i){return Hs.hasOwnProp(t,i)?n(s,r):Hs.hasOwnProp(e,i)?n(void 0,s):void 0}Object.defineProperty(s,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const u={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:a,headers:(e,t,s)=>r(Bn(e),Bn(t),0,!0)};return Hs.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const i=Hs.hasOwnProp(u,n)?u[n]:r,o=i(Hs.hasOwnProp(e,n)?e[n]:void 0,Hs.hasOwnProp(t,n)?t[n]:void 0,n);Hs.isUndefined(o)&&i!==a||(s[n]=o)}),Hs.hasOwnProp(t,"validateStatus")&&Hs.isUndefined(t.validateStatus)&&!1===function(s){const n=Hs.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Hs.isUndefined(n)){if(!Hs.isPlainObject(n))return;if(Hs.hasOwnProp(n,s))return n[s]}const r=Hs.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Hs.isPlainObject(r)&&Hs.hasOwnProp(r,s))return r[s]}("validateStatusUndefinedResolves")&&(Hs.hasOwnProp(e,"validateStatus")?s.validateStatus=n(void 0,e.validateStatus):delete s.validateStatus),s}const Kn=["content-type","content-length"];function Vn(e){const t=Qn({},e),s=e=>Hs.hasOwnProp(t,e)?t[e]:void 0,n=s("data");let r=s("withXSRFToken");const i=s("xsrfHeaderName"),o=s("xsrfCookieName");let a=s("headers");const u=s("auth"),c=s("baseURL"),l=s("allowAbsoluteUrls"),h=s("url");if(t.headers=a=sn.from(a),t.url=gn(Mn(c,h,l,t),s("params"),s("paramsSerializer")),u){const t=Hs.getSafeProp(u,"username")||"",s=Hs.getSafeProp(u,"password")||"";try{a.set("Authorization","Basic "+btoa(t+":"+(s?encodeURIComponent(s).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(d){throw rn.from(d,rn.ERR_BAD_OPTION_VALUE,e)}}if(Hs.isFormData(n)&&(xn.hasStandardBrowserEnv||xn.hasStandardBrowserWebWorkerEnv||Hs.isReactNative(n)?a.setContentType(void 0):Hs.isFunction(n.getHeaders)&&function(e,t,s){"content-only"===s?Object.entries(t||{}).forEach(([t,s])=>{Kn.includes(t.toLowerCase())&&e.set(t,s)}):e.set(t)}(a,n.getHeaders(),s("formDataHeaderPolicy"))),xn.hasStandardBrowserEnv){Hs.isFunction(r)&&(r=r(t));if(!0===r||null==r&&Dn(t.url)){const e=i&&o&&In.read(o);e&&a.set(i,e)}}return t}const Hn="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,s){const n=Vn(e);let r=n.data;const i=sn.from(n.headers).normalize();let o,a,u,c,l,{responseType:h,onUploadProgress:d,onDownloadProgress:p}=n;function f(){c&&c(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function y(){if(!g)return;const n=sn.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());jn(function(e){t(e),f()},function(e){s(e),f()},{data:h&&"text"!==h&&"json"!==h?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(y)},g.onabort=function(){g&&(s(new rn("Request aborted",rn.ECONNABORTED,e,g)),f(),g=null)},g.onerror=function(t){const n=t&&t.message?t.message:"Network Error",r=new rn(n,rn.ERR_NETWORK,e,g);r.event=t||null,s(r),f(),g=null},g.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const r=n.transitional||mn;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),s(new rn(t,r.clarifyTimeoutError?rn.ETIMEDOUT:rn.ECONNABORTED,e,g)),f(),g=null},void 0===r&&i.setContentType(null),"setRequestHeader"in g&&Hs.forEach(Xs(i),function(e,t){g.setRequestHeader(t,e)}),Hs.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),h&&"json"!==h&&(g.responseType=n.responseType),p&&([u,l]=Nn(p,!0),g.addEventListener("progress",u)),d&&g.upload&&([a,c]=Nn(d),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(o=t=>{g&&(s(!t||t.type?new Ln(null,e,g):t),g.abort(),f(),g=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const m=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(n.url);if(m&&!xn.protocols.includes(m))return s(new rn("Unsupported protocol "+m+":",rn.ERR_BAD_REQUEST,e)),void f();g.send(r||null)})},zn=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const s=new AbortController;let n=!1;const r=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;s.abort(t instanceof rn?t:new Ln(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,r(new rn(`timeout of ${t}ms exceeded`,rn.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r,{once:!0}));const{signal:a}=s;return a.unsubscribe=()=>Hs.asap(o),a},Jn=function*(e,t){let s=e.byteLength;if(s<t)return void(yield e);let n,r=0;for(;r<s;)n=r+t,yield e.slice(r,n),r=n},Wn=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:s}=await t.read();if(e)break;yield s}}finally{await t.cancel()}},Gn=(e,t,s,n)=>{const r=async function*(e,t){for await(const s of Wn(e))yield*Jn(s,t)}(e,t);let i,o=0,a=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await r.next();if(t)return a(),void e.close();let i=n.byteLength;if(s){let e=o+=i;s(e)}e.enqueue(new Uint8Array(n))}catch(t){throw a(t),t}},cancel:e=>(a(e),r.return())},{highWaterMark:2})},Xn=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Yn=(e,t,s)=>t+2<s&&Xn(e.charCodeAt(t+1))&&Xn(e.charCodeAt(t+2));const Zn="1.18.1",{isFunction:er}=Hs,tr=e=>{if(!Hs.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},sr=(e,...t)=>{try{return!!e(...t)}catch(s){return!1}},nr=e=>{const t=void 0!==Hs.global&&null!==Hs.global?Hs.global:globalThis,{ReadableStream:s,TextEncoder:n}=t;e=Hs.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:r,Request:i,Response:o}=e,a=r?er(r):"function"==typeof fetch,u=er(i),c=er(o);if(!a)return!1;const l=a&&er(s),h=a&&("function"==typeof n?(e=>t=>e.encode(t))(new n):async e=>new Uint8Array(await new i(e).arrayBuffer())),d=u&&l&&sr(()=>{let e=!1;const t=new i(xn.origin,{body:new s,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),p=c&&l&&sr(()=>Hs.isReadableStream(new o("").body)),f={stream:p&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,s)=>{let n=t&&t[e];if(n)return n.call(t);throw new rn(`Response type '${e}' is not supported`,rn.ERR_NOT_SUPPORT,s)})});const g=async e=>{if(null==e)return 0;if(Hs.isBlob(e))return e.size;if(Hs.isSpecCompliantForm(e)){const t=new i(xn.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Hs.isArrayBufferView(e)||Hs.isArrayBuffer(e)?e.byteLength:(Hs.isURLSearchParams(e)&&(e+=""),Hs.isString(e)?(await h(e)).byteLength:void 0)};return async e=>{let{url:t,method:s,data:a,signal:c,cancelToken:h,timeout:y,onDownloadProgress:m,onUploadProgress:b,responseType:v,headers:O,withCredentials:w="same-origin",fetchOptions:S,maxContentLength:R,maxBodyLength:x}=Vn(e);const E=Hs.isNumber(R)&&R>-1,C=Hs.isNumber(x)&&x>-1;let P=r||fetch;v=v?(v+"").toLowerCase():"text";let k=zn([c,h&&h.toAbortSignal()],y),T=null;const A=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let L,j=null;const N=()=>new rn("Request body larger than maxBodyLength limit",rn.ERR_BAD_REQUEST,e,T);try{let r;const c=(F="auth",Hs.hasOwnProp(e,F)?e[F]:void 0);if(c){const e=Hs.getSafeProp(c,"username")||"";r={username:e,password:Hs.getSafeProp(c,"password")||""}}if((e=>{const t=e.indexOf("://");let s=e;return-1!==t&&(s=s.slice(t+3)),s.includes("@")||s.includes(":")})(t)){const e=new URL(t,xn.origin);if(!r&&(e.username||e.password)){const t=tr(e.username);r={username:t,password:tr(e.password)}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(r&&(O.delete("authorization"),O.set("Authorization","Basic "+btoa((_=(r.username||"")+":"+(r.password||""),encodeURIComponent(_).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),E&&"string"==typeof t&&t.startsWith("data:")){const s=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const s=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(s)){let e=n.length;const t=n.length;for(let a=0;a<t;a++)if(37===n.charCodeAt(a)&&a+2<t){const t=n.charCodeAt(a+1),s=n.charCodeAt(a+2);Xn(t)&&Xn(s)&&(e-=2,a+=2)}let s=0,r=t-1;const i=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));r>=0&&(61===n.charCodeAt(r)?(s++,r--):i(r)&&(s++,r-=3)),1===s&&r>=0&&(61===n.charCodeAt(r)||i(r))&&s++;const o=3*Math.floor(e/4)-(s||0);return o>0?o:0}let r=0;for(let i=0,o=n.length;i<o;i++){const e=n.charCodeAt(i);if(37===e&&Yn(n,i,o))r+=1,i+=2;else if(e<128)r+=1;else if(e<2048)r+=2;else if(e>=55296&&e<=56319&&i+1<o){const e=n.charCodeAt(i+1);e>=56320&&e<=57343?(r+=4,i++):r+=3}else r+=3}return r}(t);if(s>R)throw new rn("maxContentLength size of "+R+" exceeded",rn.ERR_BAD_RESPONSE,e,T)}if(C&&"get"!==s&&"head"!==s){const e=await g(a);if("number"==typeof e&&isFinite(e)&&(L=e,e>x))throw N()}const h=C&&(Hs.isReadableStream(a)||Hs.isStream(a)),y=(e,t,s)=>Gn(e,65536,e=>{if(C&&e>x)throw j=N();t&&t(e)},s);if(d&&"get"!==s&&"head"!==s&&(b||h)){if(L=null==L?await(async(e,t)=>{const s=Hs.toFiniteNumber(e.getContentLength());return null==s?g(t):s})(O,a):L,0!==L||h){let e,s=new i(t,{method:"POST",body:a,duplex:"half"});if(Hs.isFormData(a)&&(e=s.headers.get("content-type"))&&O.setContentType(e),s.body){const[e,t]=b&&_n(L,Nn(Fn(b)))||[];a=y(s.body,e,t)}}}else if(h&&!u&&l&&"get"!==s&&"head"!==s)a=y(a);else if(h&&u&&!d&&"get"!==s&&"head"!==s)throw new rn("Stream request bodies are not supported by the current fetch implementation",rn.ERR_NOT_SUPPORT,e,T);Hs.isString(w)||(w=w?"include":"omit");const D=u&&"credentials"in i.prototype;if(Hs.isFormData(a)){const e=O.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&O.delete("content-type")}O.set("User-Agent","axios/"+Zn,!1);const I={...S,signal:k,method:s.toUpperCase(),headers:Xs(O.normalize()),body:a,duplex:"half",credentials:D?w:void 0};T=u&&new i(t,I);let U=await(u?P(T,S):P(t,I));const q=sn.from(U.headers);if(E){const t=Hs.toFiniteNumber(q.getContentLength());if(null!=t&&t>R)throw new rn("maxContentLength size of "+R+" exceeded",rn.ERR_BAD_RESPONSE,e,T)}const $=p&&("stream"===v||"response"===v);if(p&&U.body&&(m||E||$&&A)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=U[e]});const s=Hs.toFiniteNumber(q.getContentLength()),[n,r]=m&&_n(s,Nn(Fn(m),!0))||[];let i=0;const a=t=>{if(E&&(i=t,i>R))throw new rn("maxContentLength size of "+R+" exceeded",rn.ERR_BAD_RESPONSE,e,T);n&&n(t)};U=new o(Gn(U.body,65536,a,()=>{r&&r(),A&&A()}),t)}v=v||"text";let M=await f[Hs.findKey(f,v)||"text"](U,e);if(E&&!p&&!$){let t;if(null!=M&&("number"==typeof M.byteLength?t=M.byteLength:"number"==typeof M.size?t=M.size:"string"==typeof M&&(t="function"==typeof n?(new n).encode(M).byteLength:M.length)),"number"==typeof t&&t>R)throw new rn("maxContentLength size of "+R+" exceeded",rn.ERR_BAD_RESPONSE,e,T)}return!$&&A&&A(),await new Promise((t,s)=>{jn(t,s,{data:M,headers:sn.from(U.headers),status:U.status,statusText:U.statusText,config:e,request:T})})}catch(D){if(A&&A(),k&&k.aborted&&k.reason instanceof rn){const t=k.reason;throw t.config=e,T&&(t.request=T),D!==t&&Object.defineProperty(t,"cause",{__proto__:null,value:D,writable:!0,enumerable:!1,configurable:!0}),t}if(j)throw T&&!j.request&&(j.request=T),j;if(D instanceof rn)throw T&&!D.request&&(D.request=T),D;if(D&&"TypeError"===D.name&&/Load failed|fetch/i.test(D.message)){const t=new rn("Network Error",rn.ERR_NETWORK,e,T,D&&D.response);throw Object.defineProperty(t,"cause",{__proto__:null,value:D.cause||D,writable:!0,enumerable:!1,configurable:!0}),t}throw rn.from(D,D&&D.code,e,T,D&&D.response)}var _,F}},rr=new Map,ir=e=>{let t=e&&e.env||{};const{fetch:s,Request:n,Response:r}=t,i=[n,r,s];let o,a,u=i.length,c=rr;for(;u--;)o=i[u],a=c.get(o),void 0===a&&c.set(o,a=u?new Map:nr(t)),c=a;return a};ir();const or={http:null,xhr:Hn,fetch:{get:ir}};Hs.forEach(or,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(s){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const ar=e=>`- ${e}`,ur=e=>Hs.isFunction(e)||null===e||!1===e;const cr={getAdapter:function(e,t){e=Hs.isArray(e)?e:[e];const{length:s}=e;let n,r;const i={};for(let o=0;o<s;o++){let s;if(n=e[o],r=n,!ur(n)&&(r=or[(s=String(n)).toLowerCase()],void 0===r))throw new rn(`Unknown adapter '${s}'`);if(r&&(Hs.isFunction(r)||(r=r.get(t))))break;i[s||"#"+o]=r}if(!r){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=s?e.length>1?"since :\n"+e.map(ar).join("\n"):" "+ar(e[0]):"as no adapter specified";throw new rn("There is no suitable adapter to dispatch the request "+t,rn.ERR_NOT_SUPPORT)}return r},adapters:or};function lr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ln(null,e)}function hr(e){lr(e),e.headers=sn.from(e.headers),e.data=Tn.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return cr.getAdapter(e.adapter||kn.adapter,e)(e).then(function(t){lr(e),e.response=t;try{t.data=Tn.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=sn.from(t.headers),t},function(t){if(!An(t)&&(lr(e),t&&t.response)){e.response=t.response;try{t.response.data=Tn.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=sn.from(t.response.headers)}return Promise.reject(t)})}const dr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{dr[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const pr={};dr.transitional=function(e,t,s){return(n,r,i)=>{if(!1===e)throw new rn(function(e,t){return"[Axios v"+Zn+"] Transitional option '"+e+"'"+t+(s?". "+s:"")}(r," has been removed"+(t?" in "+t:"")),rn.ERR_DEPRECATED);return t&&!pr[r]&&(pr[r]=!0),!e||e(n,r,i)}},dr.spelling=function(e){return(e,t)=>!0};const fr={assertOptions:function(e,t,s){if("object"!=typeof e||null===e)throw new rn("options must be an object",rn.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let r=n.length;for(;r-- >0;){const i=n[r],o=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(o){const t=e[i],s=void 0===t||o(t,i,e);if(!0!==s)throw new rn("option "+i+" must be "+s,rn.ERR_BAD_OPTION_VALUE);continue}if(!0!==s)throw new rn("Unknown option "+i,rn.ERR_BAD_OPTION)}},validators:dr},gr=fr.validators;let yr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new yn,response:new yn}}async request(e,t){try{return await this._request(e,t)}catch(s){if(s instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=(()=>{if(!e.stack)return"";const t=e.stack.indexOf("\n");return-1===t?"":e.stack.slice(t+1)})();try{if(s.stack){if(t){const e=t.indexOf("\n"),n=-1===e?-1:t.indexOf("\n",e+1),r=-1===n?"":t.slice(n+1);String(s.stack).endsWith(r)||(s.stack+="\n"+t)}}else s.stack=t}catch(n){}}throw s}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Qn(this.defaults,t);const{transitional:s,paramsSerializer:n,headers:r}=t;void 0!==s&&fr.assertOptions(s,{silentJSONParsing:gr.transitional(gr.boolean),forcedJSONParsing:gr.transitional(gr.boolean),clarifyTimeoutError:gr.transitional(gr.boolean),legacyInterceptorReqResOrdering:gr.transitional(gr.boolean),advertiseZstdAcceptEncoding:gr.transitional(gr.boolean),validateStatusUndefinedResolves:gr.transitional(gr.boolean)},!1),null!=n&&(Hs.isFunction(n)?t.paramsSerializer={serialize:n}:fr.assertOptions(n,{encode:gr.function,serialize:gr.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),fr.assertOptions(t,{baseUrl:gr.spelling("baseURL"),withXsrfToken:gr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=r&&Hs.merge(r.common,r[t.method]);r&&Hs.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete r[e]}),t.headers=sn.concat(i,r);const o=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const s=t.transitional||mn;s&&s.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});const u=[];let c;this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let l,h=0;if(!a){const e=[hr.bind(this),void 0];for(e.unshift(...o),e.push(...u),l=e.length,c=Promise.resolve(t);h<l;)c=c.then(e[h++],e[h++]);return c}l=o.length;let d=t;for(;h<l;){const e=o[h++],t=o[h++];try{d=e(d)}catch(p){t.call(this,p);break}}try{c=hr.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,l=u.length;h<l;)c=c.then(u[h++],u[h++]);return c}getUri(e){return gn(Mn((e=Qn(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};Hs.forEach(["delete","get","head","options"],function(e){yr.prototype[e]=function(t,s){return this.request(Qn(s||{},{method:e,url:t,data:s&&Hs.hasOwnProp(s,"data")?s.data:void 0}))}}),Hs.forEach(["post","put","patch","query"],function(e){function t(t){return function(s,n,r){return this.request(Qn(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:s,data:n}))}}yr.prototype[e]=t(),"query"!==e&&(yr.prototype[e+"Form"]=t(!0))});const mr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
vendor: 3,188 bytes, line 1
1setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(mr).forEach(([e,t])=>{mr[t]=e});const br=function e(t){const s=new yr(t),n=Zt(yr.prototype.request,s);return Hs.extend(n,yr.prototype,s,{allOwnKeys:!0}),Hs.extend(n,s,null,{allOwnKeys:!0}),n.create=function(s){return e(Qn(t,s))},n}(kn);br.Axios=yr,br.CanceledError=Ln,br.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const s=this;this.promise.then(e=>{if(!s._listeners)return;let t=s._listeners.length;for(;t-- >0;)s._listeners[t](e);s._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{s.subscribe(e),t=e}).then(e);return n.cancel=function(){s.unsubscribe(t)},n},e(function(e,n,r){s.reason||(s.reason=new Ln(e,n,r),t(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},br.isCancel=An,br.VERSION=Zn,br.toFormData=ln,br.AxiosError=rn,br.Cancel=br.CanceledError,br.all=function(e){return Promise.all(e)},br.spread=function(e){return function(t){return e.apply(null,t)}},br.isAxiosError=function(e){return Hs.isObject(e)&&!0===e.isAxiosError},br.mergeConfig=Qn,br.AxiosHeaders=sn,br.formToJSON=e=>Cn(Hs.isHTMLForm(e)?new FormData(e):e),br.getAdapter=cr.getAdapter,br.HttpStatusCode=mr,br.default=br;const{Axios:vr,AxiosError:Or,CanceledError:wr,isCancel:Sr,CancelToken:Rr,VERSION:xr,all:Er,Cancel:Cr,isAxiosError:Pr,spread:kr,toFormData:Tr,AxiosHeaders:Ar,HttpStatusCode:Lr,formToJSON:jr,getAdapter:Nr,mergeConfig:_r,create:Fr}=br;export{oe as Q,$t as T,a,br as b,Yt as c,nt as d,le as e,o as f,Jt as g,It as i,he as u};
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.