PageSourceSearch

https://printableheroes.com/_next/static/chunks/2nzw9lxy584rl.js

js printableheroes.com collected 2026-10-08 20:42:00 UTC 138,793 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70355,e=>{"use strict";e.s(["AnalyticsEvents",0,{HEADER:{CLICK_BRAND:"HEADER.CLICK_BRAND",CLICK_NEWS:"HEADER.CLICK_NEWS",CLICK_MINIS:"HEADER.CLICK_MINIS",CLICK_PDF_CREATOR:"HEADER.CLICK_PDF_CREATOR",CLICK_COLLECTIONS:"HEADER.CLICK_COLLECTIONS",CLICK_ENCOUNTERS:"HEADER.CLICK_ENCOUNTERS",CLICK_SOUND_BOARDS:"HEADER.CLICK_SOUND_BOARDS",CLICK_PRICING:"HEADER.CLICK_PRICING",CLICK_WELCOME:"HEADER.CLICK_WELCOME",CLICK_FAQ:"HEADER.CLICK_FAQ",CLICK_LEGAL:{COOKIE_POLICY:"HEADER.CLICK_LEGAL.COOKIE_POLICY",LICENSE:"HEADER.CLICK_LEGAL.LICENSE"},LANGUAGE_DROPDOWN:{SELECT_LANGUAGE:"HEADER.LANGUAGE_DROPDOWN.SELECT_LANGUAGE"},LOGIN_WITH_PATREON:"HEADER.LOGIN_WITH_PATREON",USER_DROPDOWN:{USER_SETTINGS:"HEADER.USER_DROPDOWN.USER_SETTINGS",LOGOUT:"HEADER.USER_DROPDOWN.LOGOUT"}},MINI_BROWSE:{SEARCH:"MINI_BROWSE.SEARCH",CLEAR_SEARCH:"MINI_BROWSE.CLEAR_SEARCH",TABLE_VIEW:"MINI_BROWSE.TABLE_VIEW",SORT_BY:"MINI_BROWSE.SORT_BY",PAGE_SIZE:"MINI_BROWSE.PAGE_SIZE",OPEN_ADVANCED_FILTER:"MINI_BROWSE.OPEN_ADVANCED_FILTER",CLOSE_ADVANCED_FILTER:"MINI_BROWSE.CLOSE_ADVANCED_FILTER",FILTER_BY:{CATEGORY:"MINI_BROWSE.FILTER_BY.CATEGORY",TAGS_INCLUDE:"MINI_BROWSE.FILTER_BY.TAGS_INCLUDE",TAGS_EXCLUDE:"MINI_BROWSE.FILTER_BY.TAGS_EXCLUDE",ENVIRONMENT:"MINI_BROWSE.FILTER_BY.ENVIRONMENT",RPG_RESOURCES:"MINI_BROWSE.FILTER_BY.RPG_RESOURCES",CHALLENGE_RATING:"MINI_BROWSE.FILTER_BY.CHALLENGE_RATING",SIZE:"MINI_BROWSE.FILTER_BY.SIZE",ALIGNMENT:"MINI_BROWSE.FILTER_BY.ALIGNMENT",TYPE:"MINI_BROWSE.FILTER_BY.TYPE",SUB_TYPE:"MINI_BROWSE.FILTER_BY.SUB_TYPE",PDF_COMPATIBLE:"MINI_BROWSE.FILTER_BY.PDF_COMPATIBLE",COLOR_EDITOR_COMPATIBLE:"MINI_BROWSE.FILTER_BY.COLOR_EDITOR_COMPATIBLE",RESET:"MINI_BROWSE.FILTER_BY.RESET"},CLICK_MINI:"MINI_BROWSE.CLICK_MINI",PAGE_CHANGE:"MINI_BROWSE.PAGE_CHANGE"},MINI_DETAIL:{ADD_TO_PAGE:{OPEN_MODAL:"MINI_DETAIL.ADD_TO_PAGE.OPEN_MODAL",CLOSE_MODAL:"MINI_DETAIL.ADD_TO_PAGE.CLOSE_MODAL",SELECT_VARIANT:"MINI_DETAIL.ADD_TO_PAGE.SELECT_VARIANT",SELECT_COLOR_CONFIG:"MINI_DETAIL.ADD_TO_PAGE.SELECT_COLOR_CONFIG"},DOWNLOAD_FILES:{OPEN_MODAL:"MINI_DETAIL.DOWNLOAD_FILES.OPEN_MODAL",CLOSE_MODAL:"MINI_DETAIL.DOWNLOAD_FILES.CLOSE_MODAL",KEEP_FILES_OPEN:"MINI_DETAIL.DOWNLOAD_FILES.KEEP_FILES_OPEN",CLICK_FILE_DOWNLOAD:"MINI_DETAIL.DOWNLOAD_FILES.CLICK_FILE_DOWNLOAD"},ADD_TO_COLLECTION:{OPEN_MODAL:"MINI_DETAIL.ADD_TO_COLLECTION.OPEN_MODAL",CLOSE_MODAL:"MINI_DETAIL.ADD_TO_COLLECTION.CLOSE_MODAL",SELECT_VARIANT:"MINI_DETAIL.ADD_TO_COLLECTION.SELECT_VARIANT"},CLICK_TAG:"MINI_DETAIL.CLICK_TAG",CLICK_ENVIRONMENT:"MINI_DETAIL.CLICK_ENVIRONMENT",CLICK_RPG_RESOURCE:"MINI_DETAIL.CLICK_RPG_RESOURCE",CLICK_SIZE:"MINI_DETAIL.CLICK_SIZE",CLICK_ALIGNMENT:"MINI_DETAIL.CLICK_ALIGNMENT",CLICK_CR:"MINI_DETAIL.CLICK_CR",CLICK_TYPE:"MINI_DETAIL.CLICK_TYPE",SIMILAR_MINIS:{CLICK_MINI:"MINI_DETAIL.SIMILAR_MINIS.CLICK_MINI"}},COLOR_EDITOR:{SMART_OBJECTS:{SELECT_SMART_OBJECT:"COLOR_EDITOR.SMART_OBJECTS.SELECT_SMART_OBJECT",SELECT_ALL:"COLOR_EDITOR.SMART_OBJECTS.SELECT_ALL",SELECT_NONE:"COLOR_EDITOR.SMART_OBJECTS.SELECT_NONE",OPEN:"COLOR_EDITOR.SMART_OBJECTS.OPEN",COLLAPSE:"COLOR_EDITOR.SMART_OBJECTS.COLLAPSE",SELECT_COLOR:"COLOR_EDITOR.SMART_OBJECTS.SELECT_COLOR"},COLOR_LIST:{SELECT_COLOR:"COLOR_EDITOR.COLOR_LIST.SELECT_COLOR",COPY_HEX_CODE:"COLOR_EDITOR.COLOR_LIST.COPY_HEX_CODE",PASTE_HEX_CODE:"COLOR_EDITOR.COLOR_LIST.PASTE_HEX_CODE"},CHANGE_COLOR:{SATURATION_VALUE:"COLOR_EDITOR.CHANGE_COLOR.SATURATION_VALUE",HUE:"COLOR_EDITOR.CHANGE_COLOR.HUE",SATURATION:"COLOR_EDITOR.CHANGE_COLOR.SATURATION",LIGHTNESS:"COLOR_EDITOR.CHANGE_COLOR.LIGHTNESS",RED:"COLOR_EDITOR.CHANGE_COLOR.RED",GREEN:"COLOR_EDITOR.CHANGE_COLOR.GREEN",BLUE:"COLOR_EDITOR.CHANGE_COLOR.BLUE",HEX_CODE:"COLOR_EDITOR.CHANGE_COLOR.HEX_CODE",REVERT_DEFAULT_COLOR:"COLOR_EDITOR.CHANGE_COLOR.REVERT_DEFAULT_COLOR"},UNDO:"COLOR_EDITOR.UNDO",REDO:"COLOR_EDITOR.REDO",DOWNLOAD_FRONT:"COLOR_EDITOR.DOWNLOAD_FRONT",DOWNLOAD_BACK:"COLOR_EDITOR.DOWNLOAD_BACK",VIEW_FRONT:"COLOR_EDITOR.VIEW_FRONT",VIEW_BACK:"COLOR_EDITOR.VIEW_BACK"},COLLECTIONS:{OVERVIEW:{NEW_COLLECTION:"COLLECTIONS.OVERVIEW.NEW_COLLECTION",OPEN_COLLECTION:"COLLECTIONS.OVERVIEW.OPEN_COLLECTION"},DETAIL:{ADD_TO_PAGE:{OPEN_MODAL:"COLLECTIONS.DETAIL.ADD_TO_PAGE.OPEN_MODAL",CLOSE_MODAL:"COLLECTIONS.DETAIL.ADD_TO_PAGE.CLOSE_MODAL",CHANGE_VARIANT_SELECTION:"COLLECTIONS.DETAIL.ADD_TO_PAGE.CHANGE_VARIANT_SELECTION",CHANGE_PAGE_SIZE:"COLLECTIONS.DETAIL.ADD_TO_PAGE.CHANGE_PAGE_SIZE",CHANGE_PAGE_FILL_PERCENT:"COLLECTIONS.DETAIL.ADD_TO_PAGE.CHANGE_PAGE_FILL_PERCENT",CHANGE_PAGE_MARGIN:"COLLECTIONS.DETAIL.ADD_TO_PAGE.CHANGE_PAGE_MARGIN",REGENERATE:"COLLECTIONS.DETAIL.ADD_TO_PAGE.REGENERATE",START_PACKING:"COLLECTIONS.DETAIL.ADD_TO_PAGE.START_PACKING",FINISHED_PACKING:"COLLECTIONS.DETAIL.ADD_TO_PAGE.FINISHED_PACKING",SAVE_PAGE:"COLLECTIONS.DETAIL.ADD_TO_PAGE.SAVE_PAGE",SET_AUTO_PACK:"COLLECTIONS.DETAIL.ADD_TO_PAGE.SET_AUTO_PACK",SHOW_SILHOUETTE:"COLLECTIONS.DETAIL.ADD_TO_PAGE.SHOW_SILHOUETTE",GROUP_SAME_MINIS:"COLLECTIONS.DETAIL.ADD_TO_PAGE.GROUP_SAME_MINIS",SHOW_MARGIN:"COLLECTIONS.DETAIL.ADD_TO_PAGE.SHOW_MARGIN"},FILE:{OPEN_MODAL:"COLLECTIONS.DETAIL.FILE.OPEN_MODAL",CLOSE_MODAL:"COLLECTIONS.DETAIL.FILE.CLOSE_MODAL",DOWNLOAD:"COLLECTIONS.DETAIL.FILE.DOWNLOAD"},CLICK_VARIANT:"COLLECTIONS.DETAIL.CLICK_VARIANT"},EDIT:{SAVE:"COLLECTIONS.EDIT.SAVE",VIEW:"COLLECTIONS.EDIT.VIEW",DELET
1E:"COLLECTIONS.EDIT.DELETE",INSTRUCTIONS_OPEN:"COLLECTIONS.EDIT.INSTRUCTIONS_OPEN",ADD_MINI:"COLLECTIONS.EDIT.ADD_MINI",ADD_CHILD_COLLECTION:"COLLECTIONS.EDIT.ADD_CHILD_COLLECTION",CREATE_CHILD_COLLECTION:"COLLECTIONS.EDIT.CREATE_CHILD_COLLECTION",EXCLUDE_MINI:"COLLECTIONS.EDIT.EXCLUDE_MINI"}},PDF_CREATOR:{OVERVIEW:{NEW_PAGE:"PDF_CREATOR.OVERVIEW.NEW_PAGE",OPEN_PAGE:"PDF_CREATOR.OVERVIEW.OPEN_PAGE"},SINGLE_PAGE:{UNDO:"PDF_CREATOR.SINGLE_PAGE.UNDO",REDO:"PDF_CREATOR.SINGLE_PAGE.REDO",SET_PAGE_SIZE:"PDF_CREATOR.SINGLE_PAGE.SET_PAGE_SIZE",SET_PAGE_MARGIN:"PDF_CREATOR.SINGLE_PAGE.SET_PAGE_MARGIN",SET_SHOW_MARGIN:"PDF_CREATOR.SINGLE_PAGE.SET_SHOW_MARGIN",SET_SHOW_SILHOUETTES:"PDF_CREATOR.SINGLE_PAGE.SET_SHOW_SILHOUETTES",SET_GROUP_SAME_MINIS:"PDF_CREATOR.SINGLE_PAGE.SET_GROUP_SAME_MINIS",SET_SNAP_EDGES:"PDF_CREATOR.SINGLE_PAGE.SET_SNAP_EDGES",CLICK_PRINT:"PDF_CREATOR.SINGLE_PAGE.CLICK_PRINT",CLICK_DELETE:"PDF_CREATOR.SINGLE_PAGE.CLICK_DELETE",CLICK_PACK:"PDF_CREATOR.SINGLE_PAGE.CLICK_PACK",PACKING_FINISHED:"PDF_CREATOR.SINGLE_PAGE.PACKING_FINISHED",QUICK_SEARCH:{OPEN:"PDF_CREATOR.SINGLE_PAGE.QUICK_SEARCH.OPEN",CLOSE:"PDF_CREATOR.SINGLE_PAGE.QUICK_SEARCH.CLOSE",CLICK_VARIANT:"PDF_CREATOR.SINGLE_PAGE.QUICK_SEARCH.CLICK_VARIANT",CLICK_COLOR_CONFIG:"PDF_CREATOR.SINGLE_PAGE.QUICK_SEARCH.CLICK_COLOR_CONFIG"},VARIANT_INSTANCE:{SELECT:"PDF_CREATOR.SINGLE_PAGE.VARIANT_INSTANCE.SELECT",CHANGE_COLOR:{OPEN:"PDF_CREATOR.SINGLE_PAGE.VARIANT_INSTANCE.CHANGE_COLOR.OPEN",SELECT:"PDF_CREATOR.SINGLE_PAGE.VARIANT_INSTANCE.CHANGE_COLOR.SELECT"},ROTATE:"PDF_CREATOR.SINGLE_PAGE.VARIANT_INSTANCE.ROTATE",FLIP:"PDF_CREATOR.SINGLE_PAGE.VARIANT_INSTANCE.FLIP",SCALE:{OPEN:"PDF_CREATOR.SINGLE_PAGE.VARIANT_INSTANCE.SCALE.OPEN",SELECT:"PDF_CREATOR.SINGLE_PAGE.VARIANT_INSTANCE.SCALE.SELECT"},CLONE:"PDF_CREATOR.SINGLE_PAGE.VARIANT_INSTANCE.CLONE",DELETE:"PDF_CREATOR.SINGLE_PAGE.VARIANT_INSTANCE.DELETE"}}},ENCOUNTER_TOOL:{SETUP_MODAL:{CLICK_SETUP_BTN:"ENCOUNTER_TOOL.SETUP_MODAL.CLICK_SETUP_BTN",START_TO_FINISH:"ENCOUNTER_TOOL.SETUP_MODAL.START_TO_FINISH",ADD_MINIS:"ENCOUNTER_TOOL.SETUP_MODAL.ADD_MINIS",HP:"ENCOUNTER_TOOL.SETUP_MODAL.HP",INITIATIVE:"ENCOUNTER_TOOL.SETUP_MODAL.INITIATIVE",OPTIONS:"ENCOUNTER_TOOL.SETUP_MODAL.OPTIONS"},CLICK_DAMAGE_BTN:"ENCOUNTER_TOOL.CLICK_DAMAGE_BTN",APPLY_DAMAGE:"ENCOUNTER_TOOL.APPLY_DAMAGE",CLICK_HEAL_BTN:"ENCOUNTER_TOOL.CLICK_HEAL_BTN",APPLY_HEAL:"ENCOUNTER_TOOL.APPLY_HEAL",SHARE:{OPEN_SHARE_MODAL:"ENCOUNTER_TOOL.SHARE.OPEN_SHARE_MODAL",CLICK_MAKE_PUBLIC_BTN:"ENCOUNTER_TOOL.SHARE.CLICK_MAKE_PUBLIC_BTN",CLICK_SHARE_BTN:"ENCOUNTER_TOOL.SHARE.CLICK_SHARE_BTN",CLICK_COPY_URL_BTN:"ENCOUNTER_TOOL.SHARE.CLICK_COPY_URL_BTN"}},SOUND_BOARD:{CREATE_NEW_SOUND_BOARD:"SOUND_BOARD.CREATE_NEW_SOUND_BOARD",QUICK_START:"SOUND_BOARD.QUICK_START",PLAY:"SOUND_BOARD.PLAY",STOP:"SOUND_BOARD.STOP",STOP_OTHER:"SOUND_BOARD.STOP_OTHER"},PRICING:{JOIN_PATREON:"PRICING.JOIN_PATREON",CLICK_FEATURE:"PRICING.CLICK_FEATURE",VIEW_MINIATURES:"PRICING.VIEW_MINIATURES"},USER:{LOGOUT:"USER.LOGOUT",JOIN_DISCORD:"USER.JOIN_DISCORD",CHANGE_COOKIE_CONSENT:"USER.CHANGE_COOKIE_CONSENT"},NPS:{SUBMIT_NPS:"NPS.SUBMIT_NPS"},PRE_PATREON:{CONTINUE_TO_PATREON:"PRE_PATREON.CONTINUE_TO_PATREON",GO_BACK:"PRE_PATREON.GO_BACK"},NEW_FEATURE_BANNER:{PDF_CREATOR:"NEW_FEATURE_BANNER.PDF_CREATOR",COLLECTIONS:"NEW_FEATURE_BANNER.COLLECTIONS",ENCOUNTER_TOOL:"NEW_FEATURE_BANNER.ENCOUNTER_TOOL",SOUND_BOARD:"NEW_FEATURE_BANNER.SOUND_BOARD"}}])},47827,e=>{"use strict";var t=e.i(45699),r=e.i(25675),i=e.i(31582),s=e.i(91146),n=e.i(5003),o=e.i(50411),a=e.i(9428),l=e.i(40599),u=e.i(93930),c=e.i(69422),h=e.i(3828),p=e.i(91788);let d=(e,t,r)=>{let s=(0,o.decodeJwt)(r);if(!s){a.PhLogger.LogError("JWT payload is null"),E(t);return}t((0,i.updateAuth)({...e,userLevel:+s.role,userId:+s.unique_name,firstName:s.given_name,thumbUrl:s.thumb_url})),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"SetUserLevel",user_level:+s.role})},f=async(e,t)=>{let r=(0,c.getCookie)("Authorization")?.toString().replace("Bearer ","")??null;if(!r)return void E(t);let i=(0,o.decodeJwt)(r);if(!i){a.PhLogger.LogError("JWT payload is null"),E(t);return}if(new Date(1e3*(i.exp??0))<new Date){a.PhLogger.LogError("JWT is expired"),E(t);return}if(d(e,t,r),"True"===i.is_impersonated)return;let s=await g();null===s?a.PhLogger.LogError("Failed to refresh token"):d(e,t,s)},g=async()=>{try{return await (0,t.PhWebApi)().user_RefreshToken()}catch(e){return a.PhLogger.LogError(e),null}},E=async e=>{try{(0,c.deleteCookie)("Authorization"),(0,c.deleteCookie)("Authorization")}catch(e){a.PhLogger.LogError(e)}
1await (0,t.PhWebApi)().user_Logout(),e((0,i.logoutUser)())};e.s(["useAuthorization",0,()=>{let e=(0,h.useRouter)(),i=(0,r.usePhSelector)(e=>e.auth),n=(0,r.usePhDispatch)(),o={PDF_CREATOR_TRY:s.UserLevel.UNAUTHORIZED,PDF_CREATOR_FREE:s.UserLevel.FREE,PDF_CREATOR_FULL:s.UserLevel.TIER1,COLLECTIONS:s.UserLevel.TIER3,USER_COLLECTIONS:s.UserLevel.TIER3,ENCOUNTER_TOOL:s.UserLevel.TIER3,COLOR_EDITOR:s.UserLevel.ADMIN,SOUND_BOARD_TRY:s.UserLevel.UNAUTHORIZED,SOUND_BOARD_FREE:s.UserLevel.FREE,SOUND_BOARD_FULL:s.UserLevel.TIER3},a=i.userLevel>=s.UserLevel.FREE,p=(0,u.useQuery)({queryKey:["isUserInColorEditorClosedBeta",i.userId,i.dbUserId],queryFn:()=>(0,t.PhWebApi)().user_IsInColorEditorClosedBeta(),staleTime:6e4,enabled:a});return{isAuthorized:e=>e===s.UserLevel.FREE||e===s.UserLevel.UNAUTHORIZED||i.userLevel>=e,hasRights:e=>{if("COLOR_EDITOR"===e&&!0===p.data)return!0;let t=o[e];return i.userLevel>=t},isAuthenticated:a,logout:async()=>{await E(n)},userLevel:i.userLevel,patreonUserId:i.userId,phUserId:i.dbUserId,login:()=>{let r=(0,l.getLoginReturnUrl)(e.pathname);(0,c.setCookie)("redirectUrl",r,{secure:!0,sameSite:"lax"});let i=`${(0,t.getApiHost)()}/api/user/login`;e.push(i)},RIGHTS:o,user:i}},"useAuthorizationSingleton",0,()=>{let e=(0,r.usePhSelector)(e=>e.auth),i=(0,r.usePhDispatch)(),s=(0,p.useRef)(!1);(0,n.IsClient)()&&!1===s.current&&(f(e,i),s.current=!0);let o=(0,u.useQuery)({queryKey:["isTokenValid",e.dbUserId],queryFn:async()=>{if(null===((0,c.getCookie)("Authorization")?.toString()||null))return!1;try{return await (0,t.PhWebApi)().user_TokenIsValid()}catch(e){throw a.PhLogger.LogError(e),e}}});(0,p.useEffect)(()=>{!1===o.data&&(a.PhLogger.LogError("Token is not valid, logging out"),E(i))},[o.data])}])},88302,22868,e=>{"use strict";var t,r,i=Symbol.for("immer-nothing"),s=Symbol.for("immer-draftable"),n=Symbol.for("immer-state");function o(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var a=Object,l=a.getPrototypeOf,u="constructor",c="prototype",h="configurable",p="enumerable",d="writable",f="value",g=e=>!!e&&!!e[n];function E(e){return!!e&&(_(e)||L(e)||!!e[s]||!!e[u]?.[s]||T(e)||R(e))}var y=a[c][u].toString(),O=new WeakMap;function _(e){if(!e||!A(e))return!1;let t=l(e);if(null===t||t===a[c])return!0;let r=a.hasOwnProperty.call(t,u)&&t[u];if(r===Object)return!0;if(!N(r))return!1;let i=O.get(r);return void 0===i&&(i=Function.toString.call(r),O.set(r,i)),i===y}function C(e,t,r=!0){0===m(e)?(r?Reflect.ownKeys(e):a.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,i)=>t(i,r,e))}function m(e){let t=e[n];return t?t.type_:L(e)?1:T(e)?2:3*!!R(e)}var v=(e,t,r=m(e))=>2===r?e.has(t):a[c].hasOwnProperty.call(e,t),S=(e,t,r=m(e))=>2===r?e.get(t):e[t],I=(e,t,r,i=m(e))=>{2===i?e.set(t,r):3===i?e.add(r):e[t]=r},L=Array.isArray,T=e=>e instanceof Map,R=e=>e instanceof Set,A=e=>"object"==typeof e,N=e=>"function"==typeof e,b=e=>e.modified_?e.copy_:e.base_;function P(e,t){if(T(e))return new Map(e);if(R(e))return new Set(e);if(L(e))return Array[c].slice.call(e);let r=_(e);if(!0!==t&&("class_only"!==t||r)){let t=l(e);if(null!==t&&r)return{...e};let i=a.create(t);return a.assign(i,e)}{let t=a.getOwnPropertyDescriptors(e);delete t[n];let r=Reflect.ownKeys(t);for(let i=0;i<r.length;i++){let s=r[i],n=t[s];!1===n[d]&&(n[d]=!0,n[h]=!0),(n.get||n.set)&&(t[s]={[h]:!0,[d]:!0,[p]:n[p],[f]:e[s]})}return a.create(l(e),t)}}function D(e,t=!1){return k(e)||g(e)||!E(e)||(m(e)>1&&a.defineProperties(e,{set:w,add:w,clear:w,delete:w}),a.freeze(e),t&&C(e,(e,t)=>{D(t,!0)},!1)),e}var w={[f]:function(){o(2)}};function k(e){return!(null!==e&&A(e))||a.isFrozen(e)}var x="MapSet",M="Patches",U={};function F(e){let t=U[e];return t||o(0),t}function j(e,t){t&&(e.patchPlugin_=F(M),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function G(e){$(e),e.drafts_.forEach(B),e.drafts_=null}function $(e){e===r&&(r=e.parent_)}var K=e=>{let t;return t=r,r={drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:U[x]?F(x):void 0}};function B(e){let t=e[n];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function H(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(void 0!==e&&e!==r){r[n].modified_&&(G(t),o(4)),E(e)&&(e=V(t,e));let{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(r[n].base_,e,t)}else e=V(t,r);return function(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&D(t,r)}(t,e,!0),G(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i?e:void 0}function V(e,t){if(k(t))return t;let r=t[n];if(!r)return J(t,e.handledSet_,e);if(!Q(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:t}=r;if(t)for(;t.length>0;)t.pop()(e);Y(r,e)}return r.copy_}function W(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Q=(e,t)=>e.scope_===t,q=[];
1function z(e,t,r,i){let s=e.copy_||e.base_,n=e.type_;if(void 0!==i&&S(s,i,n)===t)return void I(s,i,r,n);if(!e.draftLocations_){let t=e.draftLocations_=new Map;C(s,(e,r)=>{if(g(r)){let i=t.get(r)||[];i.push(e),t.set(r,i)}})}for(let i of e.draftLocations_.get(t)??q)I(s,i,r,n)}function Y(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||(e.assigned_?.size??0)>0)){let{patchPlugin_:r}=t;if(r){let i=r.getPath(e);i&&r.generatePatches_(e,i,t)}W(e)}}function J(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||g(e)||t.has(e)||!E(e)||k(e)||(t.add(e),C(e,(i,s)=>{if(g(s)){let t=s[n];Q(t,r)&&(I(e,i,b(t),e.type_),W(t))}else E(s)&&J(s,t,r)})),e}var X={get(e,t){if(t===n)return e;let r=e.copy_||e.base_;if(!v(r,t,e.type_)){var i;let s;return i=e,(s=et(r,t))?f in s?s[f]:s.get?.call(i.draft_):void 0}let s=r[t];if(e.finalized_||!E(s))return s;if(s===ee(e.base_,t)){ei(e);let r=1===e.type_?+t:t,i=en(e.scope_,s,e,r);return e.copy_[r]=i}return s},has:(e,t)=>t in(e.copy_||e.base_),ownKeys:e=>Reflect.ownKeys(e.copy_||e.base_),set(e,t,r){let i=et(e.copy_||e.base_,t);if(i?.set)return i.set.call(e.draft_,r),!0;if(!e.modified_){let i=ee(e.copy_||e.base_,t),s=i?.[n];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if((r===i?0!==r||1/r==1/i:r!=r&&i!=i)&&(void 0!==r||v(e.base_,t,e.type_)))return!0;ei(e),er(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_.set(t,!0),!function(e,t,r){let{scope_:i}=e;if(g(r)){let s=r[n];Q(s,i)&&s.callbacks_.push(function(){ei(e),z(e,r,b(s),t)})}else E(r)&&e.callbacks_.push(function(){S(e.copy_||e.base_,t,e.type_)===r&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&J(S(e.copy_,t,e.type_),i.handledSet_,i)})}(e,t,r),!0)},deleteProperty:(e,t)=>(ei(e),void 0!==ee(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),er(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=e.copy_||e.base_,i=Reflect.getOwnPropertyDescriptor(r,t);return i?{[d]:!0,[h]:1!==e.type_||"length"!==t,[p]:i[p],[f]:r[t]}:i},defineProperty(){o(11)},getPrototypeOf:e=>l(e.base_),setPrototypeOf(){o(12)}},Z={};function ee(e,t){let r=e[n];return(r?r.copy_||r.base_:e)[t]}function et(e,t){if(!(t in e))return;let r=l(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=l(r)}}function er(e){!e.modified_&&(e.modified_=!0,e.parent_&&er(e.parent_))}function ei(e){e.copy_||(e.assigned_=new Map,e.copy_=P(e.base_,e.scope_.immer_.useStrictShallowCopy_))}C(X,(e,t)=>{Z[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}),Z.deleteProperty=function(e,t){return Z.set.call(this,e,t,void 0)},Z.set=function(e,t,r){return X.set.call(this,e[0],t,r,e[0])};var es=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,r)=>{let s;if(N(e)&&!N(t)){let r=t;t=e;let i=this;return function(e=r,...s){return i.produce(e,e=>t.call(this,e,...s))}}if(N(t)||o(6),void 0===r||N(r)||o(7),E(e)){let i=K(this),n=en(i,e,void 0),o=!0;try{s=t(n),o=!1}finally{o?G(i):$(i)}return j(i,r),H(s,i)}if(e&&A(e))o(1);else{if(void 0===(s=t(e))&&(s=e),s===i&&(s=void 0),this.autoFreeze_&&D(s,!0),r){let t=[],i=[];F(M).generateReplacementPatches_(e,s,{patches_:t,inversePatches_:i}),r(t,i)}return s}},this.produceWithPatches=(e,t)=>{let r,i;return N(e)?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,i=t}),r,i]},(e=>"boolean"==typeof e)(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),(e=>"boolean"==typeof e)(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),(e=>"boolean"==typeof e)(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){E(e)||o(8),g(e)&&(e=function(e){return g(e)||o(10),function e(t){let r;if(!E(t)||k(t))return t;let i=t[n],s=!0;if(i){if(!i.modified_)return i.base_;i.finalized_=!0,r=P(t,i.scope_.immer_.useStrictShallowCopy_),s=i.scope_.immer_.shouldUseStrictIteration()}else r=P(t,!0);return C(r,(t,i)=>{I(r,t,e(i))},s),i&&(i.finalized_=!1),r}(e)}(e));let t=K(this),r=en(t,e,void 0);return r[n].isManual_=!0,$(t),r}finishDraft(e,t){let r=e&&e[n];r&&r.isManual_||o(9);let{scope_:i}=r;return j(i,t),H(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let i=t[r];
1if(0===i.path.length&&"replace"===i.op){e=i.value;break}}r>-1&&(t=t.slice(r+1));let i=F(M).applyPatches_;return g(e)?i(e,t):this.produce(e,e=>i(e,t))}};function en(e,t,i,s){let[n,o]=T(t)?F(x).proxyMap_(t,i):R(t)?F(x).proxySet_(t,i):function(e,t){let i=L(e),s={type_:+!!i,scope_:t?t.scope_:r,modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=s,o=X;i&&(n=[s],o=Z);let{revoke:a,proxy:l}=Proxy.revocable(n,o);return s.draft_=l,s.revoke_=a,[l,s]}(t,i);if((i?.scope_??r).drafts_.push(n),o.callbacks_=i?.callbacks_??[],o.key_=s,i&&void 0!==s)i.callbacks_.push(function(e){if(!o||!Q(o,e))return;e.mapSetPlugin_?.fixSetContents(o);let t=b(o);z(i,o.draft_??o,t,s),Y(o,e)});else o.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:t}=e;o.modified_&&t&&t.generatePatches_(o,[],e)});return n}var eo=new es().produce,ea=e=>Array.isArray(e)?e:[e],el=0,eu=class{revision=el;_value;_lastValue;_isEqual=ec;constructor(e,t=ec){this._value=this._lastValue=e,this._isEqual=t}get value(){return this._value}set value(e){this.value!==e&&(this._value=e,this.revision=++el)}};function ec(e,t){return e===t}function eh(e){return e instanceof eu||console.warn("Not a valid cell! ",e),e.value}var ep=(e,t)=>!1;function ed(){return function(e=ec){return new eu(null,e)}(ep)}var ef=e=>{let t=e.collectionTag;null===t&&(t=e.collectionTag=ed()),eh(t)};Symbol();var eg=0,eE=Object.getPrototypeOf({}),ey=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy(this,eO);tag=ed();tags={};children={};collectionTag=null;id=eg++},eO={get:(e,t)=>(function(){let{value:r}=e,i=Reflect.get(r,t);if("symbol"==typeof t||t in eE)return i;if("object"==typeof i&&null!==i){var s;let r=e.children[t];return void 0===r&&(r=e.children[t]=Array.isArray(s=i)?new e_(s):new ey(s)),r.tag&&eh(r.tag),r.proxy}{let r=e.tags[t];return void 0===r&&((r=e.tags[t]=ed()).value=i),eh(r),i}})(),ownKeys:e=>(ef(e),Reflect.ownKeys(e.value)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e.value,t),has:(e,t)=>Reflect.has(e.value,t)},e_=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy([this],eC);tag=ed();tags={};children={};collectionTag=null;id=eg++},eC={get:([e],t)=>("length"===t&&ef(e),eO.get(e,t)),ownKeys:([e])=>eO.ownKeys(e),getOwnPropertyDescriptor:([e],t)=>eO.getOwnPropertyDescriptor(e,t),has:([e],t)=>eO.has(e,t)},em="u">typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function ev(){return{s:0,v:void 0,o:null,p:null}}function eS(e,t={}){let r,i=ev(),{resultEqualityCheck:s}=t,n=0;function o(){let t,o=i,{length:a}=arguments;for(let e=0;e<a;e++){let t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=o.o;null===e&&(o.o=e=new WeakMap);let r=e.get(t);void 0===r?(o=ev(),e.set(t,o)):o=r}else{let e=o.p;null===e&&(o.p=e=new Map);let r=e.get(t);void 0===r?(o=ev(),e.set(t,o)):o=r}}let l=o;if(1===o.s)t=o.v;else if(t=e.apply(null,arguments),n++,s){let e=r?.deref?.()??r;null!=e&&s(e,t)&&(t=e,0!==n&&n--),r="object"==typeof t&&null!==t||"function"==typeof t?new em(t):t}return l.s=1,l.v=t,t}return o.clearCache=()=>{i=ev(),o.resetResultsCount()},o.resultsCount=()=>n,o.resetResultsCount=()=>{n=0},o}var eI=function(e,...t){let r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,i=(...e)=>{let t,i,s=0,n=0,o={},a=e.pop();"object"==typeof a&&(o=a,a=e.pop()),function(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);let{memoize:l,memoizeOptions:u=[],argsMemoize:c=eS,argsMemoizeOptions:h=[],devModeChecks:p={}}={...r,...o},d=ea(u),f=ea(h),g=(!function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${r}]`)}}(t=Array.isArray(e[0])?e[0]:e,"createSelector expects all input-selectors to be functions, but received the following types: "),t),E=l(function(){return s++,a.apply(null,arguments)},...d);return Object.assign(c(function(){n++;let e=function(e,t){let r=[],{length:i}=e;for(let s=0;s<i;s++)r.push(e[s].apply(null,t));return r}(g,arguments);return i=E.apply(null,e)},...f),{resultFunc:a,memoizedResultFunc:E,dependencies:g,dependencyRecomputations:()=>n,resetDependencyRecomputations:()=>{n=0},lastResult:()=>i,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:l,argsMemoize:c})};return Object.assign(i,{withTypes:()=>i}),i}
1(eS),eL=Object.assign((e,t=eI)=>{!function(e,t=`expected an object, instead received ${typeof e}`){if("object"!=typeof e)throw TypeError(t)}(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,i)=>(e[r[i]]=t,e),{}))},{withTypes:()=>eL});function eT(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var eR="function"==typeof Symbol&&Symbol.observable||"@@observable",eA=()=>Math.random().toString(36).substring(7).split("").join("."),eN={INIT:`@@redux/INIT${eA()}`,REPLACE:`@@redux/REPLACE${eA()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${eA()}`};function eb(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function eP(e,t,r){if("function"!=typeof e)throw Error(eT(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(eT(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw Error(eT(1));return r(eP)(e,t)}let i=e,s=t,n=new Map,o=n,a=0,l=!1;
1function u(){o===n&&(o=new Map,n.forEach((e,t)=>{o.set(t,e)}))}function c(){if(l)throw Error(eT(3));return s}function h(e){if("function"!=typeof e)throw Error(eT(4));if(l)throw Error(eT(5));let t=!0;u();let r=a++;return o.set(r,e),function(){if(t){if(l)throw Error(eT(6));t=!1,u(),o.delete(r),n=null}}}function p(e){if(!eb(e))throw Error(eT(7));if(void 0===e.type)throw Error(eT(8));if("string"!=typeof e.type)throw Error(eT(17));if(l)throw Error(eT(9));try{l=!0,s=i(s,e)}finally{l=!1}return(n=o).forEach(e=>{e()}),e}return p({type:eN.INIT}),{dispatch:p,subscribe:h,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw Error(eT(10));i=e,p({type:eN.REPLACE})},[eR]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(eT(11));function t(){e.next&&e.next(c())}return t(),{unsubscribe:h(t)}},[eR](){return this}}}}}function eD(e){let t,r=Object.keys(e),i={};for(let t=0;t<r.length;t++){let s=r[t];"function"==typeof e[s]&&(i[s]=e[s])}let s=Object.keys(i);try{Object.keys(i).forEach(e=>{let t=i[e];if(void 0===t(void 0,{type:eN.INIT}))throw Error(eT(12));if(void 0===t(void 0,{type:eN.PROBE_UNKNOWN_ACTION()}))throw Error(eT(13))})}catch(e){t=e}return function(e={},r){if(t)throw t;let n=!1,o={};for(let t=0;t<s.length;t++){let a=s[t],l=i[a],u=e[a],c=l(u,r);if(void 0===c)throw r&&r.type,Error(eT(14));o[a]=c,n=n||c!==u}return(n=n||s.length!==Object.keys(e).length)?o:e}}function ew(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function ek(...e){return t=>(r,i)=>{let s=t(r,i),n=()=>{throw Error(eT(15))},o={getState:s.getState,dispatch:(e,...t)=>n(e,...t)};return n=ew(...e.map(e=>e(o)))(s.dispatch),{...s,dispatch:n}}}function ex(e){return eb(e)&&"type"in e&&"string"==typeof e.type}function eM(e){return({dispatch:t,getState:r})=>i=>s=>"function"==typeof s?s(t,r,e):i(s)}e.s(["applyMiddleware",0,ek,"combineReducers",0,eD,"compose",0,ew,"createStore",0,eP,"isAction",0,ex,"isPlainObject",0,eb],22868);var eU=eM(),eF="u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?ew:ew.apply(null,arguments)};function ej(e,t){function r(...i){if(t){let r=t(...i);if(!r)throw Error(e0(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:i[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>ex(t)&&t.type===e,r}"u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var eG=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function e$(e){return E(e)?eo(e,()=>{}):e}function eK(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var eB=e=>t=>{setTimeout(t,e)};function eH(e){let t,r={},i=[],s={addCase(e,t){let i="string"==typeof e?e:e.type;if(!i)throw Error(e0(28));if(i in r)throw Error(e0(29));return r[i]=t,s},addAsyncThunk:(e,t)=>(t.pending&&(r[e.pending.type]=t.pending),t.rejected&&(r[e.rejected.type]=t.rejected),t.fulfilled&&(r[e.fulfilled.type]=t.fulfilled),t.settled&&i.push({matcher:e.settled,reducer:t.settled}),s),addMatcher:(e,t)=>(i.push({matcher:e,reducer:t}),s),addDefaultCase:e=>(t=e,s)};return e(s),[r,i,t]}var eV=Symbol.for("rtk-slice-createasyncthunk"),eW=((t=eW||{}).reducer="reducer",t.reducerWithPrepare="reducerWithPrepare",t.asyncThunk="asyncThunk",t),eQ=function({creators:e}={}){let t=e?.asyncThunk?.[eV];return function(e){let r,{name:i,reducerPath:s=i}=e;if(!i)throw Error(e0(11));let n=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(n),a={},l={},u={},c=[],h={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(e0(12));if(r in l)throw Error(e0(13));return l[r]=t,h},addMatcher:(e,t)=>(c.push({matcher:e,reducer:t}),h),exposeAction:(e,t)=>(u[e]=t,h),exposeCaseReducer:(e,t)=>(a[e]=t,h)};function p(){let[t={},r=[],i]="function"==typeof e.extraReducers?eH(e.extraReducers):[e.extraReducers],s={...t,...l};return function(e,t){let r,[i,s,n]=eH(t);if("function"==typeof e)r=()=>e$(e());else{let t=e$(e);r=()=>t}function o(e=r(),t){let a=[i[t.type],...s.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===a.filter(e=>!!e).length&&(a=[n]),a.reduce((e,r)=>{if(r)if(g(e)){let i=r(e,t);return void 0===i?e:i}else{if(E(e))return eo(e,e=>r(e,t));let i=r(e,t);if(void 0===i){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return e},e)}return o.getInitialState=r,o}(e.initialState,e=>{for(let t in s)e.addCase(t,s[t]);for(let t of c)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);i&&e.addDefaultCase(i)})}
1o.forEach(r=>{let s=n[r],o={reducerName:r,type:`${i}/${r}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===s._reducerDefinitionType?function({type:e,reducerName:t},r,i,s){if(!s)throw Error(e0(18));let{payloadCreator:n,fulfilled:o,pending:a,rejected:l,settled:u,options:c}=r,h=s(e,n,c);i.exposeAction(t,h),o&&i.addCase(h.fulfilled,o),a&&i.addCase(h.pending,a),l&&i.addCase(h.rejected,l),u&&i.addMatcher(h.settled,u),i.exposeCaseReducer(t,{fulfilled:o||eq,pending:a||eq,rejected:l||eq,settled:u||eq})}(o,s,h,t):function({type:e,reducerName:t,createNotation:r},i,s){let n,o;if("reducer"in i){if(r&&"reducerWithPrepare"!==i._reducerDefinitionType)throw Error(e0(17));n=i.reducer,o=i.prepare}else n=i;s.addCase(e,n).exposeCaseReducer(t,n).exposeAction(t,o?ej(e,o):ej(e))}(o,s,h)});let d=e=>e,f=new Map,y=new WeakMap;function O(e,t){return r||(r=p()),r(e,t)}function _(){return r||(r=p()),r.getInitialState()}function C(t,r=!1){function i(e){let s=e[t];return void 0===s&&r&&(s=eK(y,i,_)),s}function s(t=d){let i=eK(f,r,()=>new WeakMap);return eK(i,t,()=>{let i={};for(let[s,n]of Object.entries(e.selectors??{}))i[s]=function(e,t,r,i){function s(n,...o){let a=t(n);return void 0===a&&i&&(a=r()),e(a,...o)}return s.unwrapped=e,s}(n,t,()=>eK(y,t,_),r);return i})}return{reducerPath:t,getSelectors:s,get selectors(){return s(i)},selectSlice:i}}let m={name:i,reducer:O,actions:u,caseReducers:a,getInitialState:_,...C(s),injectInto(e,{reducerPath:t,...r}={}){let i=t??s;return e.inject({reducerPath:i,reducer:O},r),{...m,...C(i,!0)}}};return m}}();function eq(){}var{assign:ez}=Object,eY="listenerMiddleware",eJ=ez(e=>{let{type:t,predicate:r,effect:i}=(e=>{let{type:t,actionCreator:r,matcher:i,predicate:s,effect:n}=e;if(t)s=ej(t).match;else if(r)t=r.type,s=r.match;else if(i)s=i;else if(s);else throw Error(e0(21));if("function"!=typeof n)throw TypeError(e0(32));return{predicate:s,type:t,effect:n}})(e);return{id:((e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}
1)(),effect:i,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(e0(22))}}},{withTypes:()=>eJ}),eX=ez(ej(`${eY}/add`),{withTypes:()=>eX}),eZ=ez(ej(`${eY}/remove`),{withTypes:()=>eZ});function e0(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}e.s(["configureStore",0,function(e){let t,r,i,s=function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=e??{},n=new eG;return t&&("boolean"==typeof t?n.push(eU):n.push(eM(t.extraArgument))),n},{reducer:n,middleware:o,devTools:a=!0,duplicateMiddlewareCheck:l=!0,preloadedState:u,enhancers:c}=e||{};if("function"==typeof n)t=n;else if(eb(n))t=eD(n);else throw Error(e0(1));r="function"==typeof o?o(s):s();let h=ew;a&&(h=eF({trace:!1,..."object"==typeof a&&a}));let p=(i=ek(...r),function(e){let{autoBatch:t=!0}=e??{},r=new eG(i);return t&&r.push(((e={type:"raf"})=>t=>(...r)=>{let i,s=t(...r),n=!0,o=!1,a=!1,l=new Set,u="tick"===e.type?queueMicrotask:"raf"===e.type?"u">typeof window&&window.requestAnimationFrame?(i=window.requestAnimationFrame,e=>{let t=!1,r=()=>{t||(t=!0,cancelAnimationFrame(s),clearTimeout(n),e())},s=i(r),n=setTimeout(r,100)}):eB(10):"callback"===e.type?e.queueNotification:eB(e.timeout),c=()=>{a=!1,o&&(o=!1,l.forEach(e=>e()))};return Object.assign({},s,{subscribe(e){let t=s.subscribe(()=>n&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return(o=!(n=!e?.meta?.RTK_autoBatch))&&!a&&(a=!0,u(c)),s.dispatch(e)}finally{n=!0}}})})("object"==typeof t?t:void 0)),r});return eP(t,u,h(..."function"==typeof c?c(p):p()))},"createSlice",0,eQ],88302)},14070,56298,e=>{"use strict";let t;var r=e.i(74233),i="u"<typeof window||"Deno"in globalThis;function s(e,t){return(t?.queryKeyHashFn||n)(e)}function n(e){return JSON.stringify(e,(e,t)=>c(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function o(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 r=0;r<t.length;r++)if(!o(e[r],t[r]))return!1;return!0}for(let r of Object.keys(t))if(!o(e[r],t[r]))return!1;return!0}return!1}var a=Object.prototype.hasOwnProperty;function l(e,t,r=0){if(e===t)return e;if(r>500)return t;let i=u(e)&&u(t);if(!i&&!(c(e)&&c(t)))return t;let s=(i?e:Object.keys(e)).length,n=i?t:Object.keys(t),o=n.length,h=i?Array(o):{},p=0;for(let u=0;u<o;u++){let o=i?u:n[u],c=e[o],d=t[o];if(c===d){h[o]=c,(i?u<s:a.call(e,o))&&p++;continue}if(null===c||null===d||"object"!=typeof c||"object"!=typeof d){h[o]=d;continue}let f=l(c,d,r+1);h[o]=f,f===c&&p++}return s===o&&p===s?e:h}function u(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function c(e){if(!h(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!h(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function h(e){return"[object Object]"===Object.prototype.toString.call(e)}var p=Symbol();e.s(["addConsumeAwareSignal",0,function(e,t,r){let i,s=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),s||(s=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),e},"addToEnd",0,function(e,t,r=0){let i=[...e,t];return r&&i.length>r?i.slice(1):i},"addToStart",0,function(e,t,r=0){let i=[t,...e];return r&&i.length>r?i.slice(0,-1):i},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==p?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,n,"hashQueryKeyByOptions",0,s,"isServer",0,i,"isValidTimeout",0,function(e){return"number"==typeof e&&e>=0&&e!==1/0},"matchMutation",0,function(e,t){let{exact:r,status:i,predicate:s,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(n(t.options.mutationKey)!==n(a))return!1}else if(!o(t.options.mutationKey,a))return!1}return(!i||t.state.status===i)&&(!s||!!s(t))},"matchQuery",0,function(e,t){let{type:r="all",exact:i,fetchStatus:n,predicate:a,queryKey:l,stale:u}=e;if(l){if(i){if(t.queryHash!==s(l,t.options))return!1}else if(!o(t.queryKey,l))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(!n||n===t.state.fetchStatus)&&(!a||!!a(t))},"noop",0,function(){},"partialMatchKey",0,o,"replaceData",0,function(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?l(e,t):t},"replaceEqualDeep",0,l,"resolveQueryBoolean",0,function(e,t){return"function"==typeof e?e(t):e},"resolveStaleTime",0,function(e,t){return"function"==typeof e?e(t):e},"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,p,"sleep",0,function(e){return new Promise(t=>{r.timeoutManager.setTimeout(t,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}],56298);var d=(t=()=>i,{isServer:()=>t(),setIsServer(e){t=e}});e.s(["environmentManager",0,d],14070)},79971,95564,e=>{"use strict";var t=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(){}};e.s(["Subscribable",0,t],95564);var r=new class extends t{#e;#t;#r;constructor(){super(),this.#r=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();
1this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,r],79971)},65235,e=>{"use strict";let t,r,i,s,n,o;var a=e.i(74233).systemSetTimeoutZero,l=(t=[],r=0,i=e=>{e()},s=e=>{e()},n=a,{batch:e=>{let o;r++;try{o=e()}finally{let e;--r||(e=t,t=[],e.length&&n(()=>{s(()=>{e.forEach(e=>{i(e)})})}))}return o},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o=e=>{r?t.push(e):n(()=>{i(e)})},setNotifyFunction:e=>{i=e},setBatchNotifyFunction:e=>{s=e},setScheduler:e=>{n=e}});e.s(["notifyManager",0,l])},73340,84813,e=>{"use strict";var t=e.i(79971),r=e.i(14070),i=e.i(65235),s=e.i(56298),n=e.i(51415),o=e.i(71585);function a(e,{pages:t,pageParams:r}){let i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,r[i],r):void 0}var l=class extends o.Removable{#i;#s;#n;#o;#a;#l;#u;#c;constructor(e){super(),this.#c=!1,this.#u=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#o=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#s=h(this.options),this.state=e.state??this.#s,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#i}get promise(){return this.#l?.promise}setOptions(e){if(this.options={...this.#u,...e},e?._type&&(this.#i=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=h(this.options);void 0!==e.data&&(this.setState(c(e.data,e.dataUpdatedAt)),this.#s=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#o.remove(this)}setData(e,t){let r=(0,s.replaceData)(this.state.data,e,this.options);return this.#h({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#h({type:"setState",state:e})}cancel(e){let t=this.#l?.promise;return this.#l?.cancel(e),t?t.then(s.noop).catch(s.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#s}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,s.resolveQueryBoolean)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===s.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,s.resolveStaleTime)(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||!(0,s.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#l&&(this.#c||this.#p()?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#p(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#h({type:"invalidate"})}async fetch(e,t){var r;let i;if("idle"!==this.state.fetchStatus&&this.#l?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let o=new AbortController,l=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#c=!0,o.signal)})},u=()=>{let e,r=(0,s.ensureQueryFn)(this.options,t),i=(l(e={client:this.#a,queryKey:this.queryKey,meta:this.meta}),e);return(this.#c=!1,this.options.persister)?this.options.persister(r,i,this):r(i)},c=(l(i={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:u}),i),h="infinite"===this.#i?(r=this.options.pages,{onFetch:(e,t)=>
1{let i=e.options,n=e.fetchOptions?.meta?.fetchMore?.direction,o=e.state.data?.pages||[],l=e.state.data?.pageParams||[],u={pages:[],pageParams:[]},c=0,h=async()=>{let t=!1,h=(0,s.ensureQueryFn)(e.options,e.fetchOptions),p=async(r,i,n)=>{let o;if(t)return Promise.reject(e.signal.reason);if(null==i&&r.pages.length)return Promise.resolve(r);let a=(o={client:e.client,queryKey:e.queryKey,pageParam:i,direction:n?"backward":"forward",meta:e.options.meta},(0,s.addConsumeAwareSignal)(o,()=>e.signal,()=>t=!0),o),l=await h(a),{maxPages:u}=e.options,c=n?s.addToStart:s.addToEnd;return{pages:c(r.pages,l,u),pageParams:c(r.pageParams,i,u)}};if(n&&o.length){let e="backward"===n,t={pages:o,pageParams:l},r=(e?function(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}:a)(i,t);u=await p(t,r,e)}else{let e=r??o.length;do{let e=0===c?l[0]??i.initialPageParam:a(i,u);if(c>0&&null==e)break;u=await p(u,e),c++}while(c<e)}return u};e.options.persister?e.fetchFn=()=>e.options.persister?.(h,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t):e.fetchFn=h}}):this.options.behavior;h?.onFetch(c,this),this.#n=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#h({type:"fetch",meta:c.fetchOptions?.meta}),this.#l=(0,n.createRetryer)({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:e=>{e instanceof n.CancelledError&&e.revert&&this.setState({...this.#n,fetchStatus:"idle"}),o.abort()},onFail:(e,t)=>{this.#h({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#h({type:"pause"})},onContinue:()=>{this.#h({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{let e=await this.#l.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#o.config.onSuccess?.(e,this),this.#o.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof n.CancelledError){if(e.silent)return this.#l.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#h({type:"error",error:e}),this.#o.config.onError?.(e,this),this.#o.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#h(e){let t=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,...u(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...c(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?r:void 0,r;case"error":let i=e.error;return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),i.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}};function u(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,n.canFetch)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function c(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function h(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,i=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,l,"fetchState",0,u],84813);var p=e.i(95564),d=e.i(92363),f=e.i(74233),g=class extends p.Subscribable{constructor(e,t){super(),this.options=t,this.#a=e,this.#d=null,this.#f=(0,d.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#a;#g=void 0;#E=void 0;#y=void 0;#O;#_;#f;#d;#C;#m;#v;#S;#I;#L;#T=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#g.addObserver(this),E(this.#g,this.options)?this.#R():this.updateResult(),this.#A())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return y(this.#g,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return y(this.#g,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#N(),this.#b(),this.#g.removeObserver(this)}setOptions(e){let t=this.options,r=this.#g;if(this.options=this.#a.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,s.resolveQueryBoolean)(this.options.enabled,this.#g))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#P(),this.#g.setOptions(this.options),t._defaulted&&!(0,s.shallowEqualObjects)(this.options,t)&&this.#a.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#g,observer:this});let i=this.hasListeners();i&&O(this.#g,r,this.options,t)&&this.#R(),this.updateResult(),i&&(this.#g!==r||(0,s.resolveQueryBoolean)(this.options.enabled,this.#g)!==(0,s.resolveQueryBoolean)(t.enabled,this.#g)||(0,s.resolveStaleTime)(this.options.staleTime,this.#g)!==(0,s.resolveStaleTime)(t.staleTime,this.#g))&&this.#D();let n=this.#w();i&&(this.#g!==r||(0,s.resolveQueryBoolean)(this.options.enabled,this.#g)!==(0,s.resolveQueryBoolean)(t.enabled,this.#g)||n!==this.#L)&&this.#k(n)}getOptimisticResult(e){var t,r;let i=this.#a.getQueryCache().build(this.#a,e),n=this.createResult(i,e);return t=this,r=n,(0,s.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#y=n,this.#_=this.options,this.#O=this.#g.state),n}getCurrentResult(){return this.#y}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#f.status||this.#f.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#T.add(e)}getCurrentQuery(){return this.#g}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#a.defaultQueryOptions(e),r=this.#a.getQueryCache().build(this.#a,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#R({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#y))}#R(e){this.#P();let t=this.#g.fetch(this.options,e);return e?.throwOnError||(t=t.catch(s.noop)),t}#D(){this.#N();let e=(0,s.resolveStaleTime)(this.options.staleTime,this.#g);if(r.environmentManager.isServer()||this.#y.isStale||!(0,s.isValidTimeout)(e))return;let t=(0,s.timeUntilStale)(this.#y.dataUpdatedAt,e);this.#S=f.timeoutManager.setTimeout(()=>{this.#y.isStale||this.updateResult()},t+1)}#w(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#g):this.options.refetchInterval)??!1}#k(e){this.#b(),this.#L=e,!r.environmentManager.isServer()&&!1!==(0,s.resolveQueryBoolean)(this.options.enabled,this.#g)&&(0,s.isValidTimeout)(this.#L)&&0!==this.#L&&(this.#I=f.timeoutManager.setInterval(()=>
1{(this.options.refetchIntervalInBackground||t.focusManager.isFocused())&&this.#R()},this.#L))}#A(){this.#D(),this.#k(this.#w())}#N(){void 0!==this.#S&&(f.timeoutManager.clearTimeout(this.#S),this.#S=void 0)}#b(){void 0!==this.#I&&(f.timeoutManager.clearInterval(this.#I),this.#I=void 0)}createResult(e,t){let r,i=this.#g,n=this.options,o=this.#y,a=this.#O,l=this.#_,c=e!==i?e.state:this.#E,{state:h}=e,p={...h},f=!1;if(t._optimisticResults){let r=this.hasListeners(),s=!r&&E(e,t),o=r&&O(e,i,t,n);(s||o)&&(p={...p,...u(h.data,e.options)}),"isRestoring"===t._optimisticResults&&(p.fetchStatus="idle")}let{error:g,errorUpdatedAt:y,status:C}=p;r=p.data;let m=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===C){let e;o?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(e=o.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#v?.state.data,this.#v):t.placeholderData,void 0!==e&&(C="success",r=(0,s.replaceData)(o?.data,e,t),f=!0)}if(t.select&&void 0!==r&&!m)if(o&&r===a?.data&&t.select===this.#C)r=this.#m;else try{this.#C=t.select,r=t.select(r),r=(0,s.replaceData)(o?.data,r,t),this.#m=r,this.#d=null}catch(e){this.#d=e}this.#d&&(g=this.#d,r=this.#m,y=Date.now(),C="error");let v="fetching"===p.fetchStatus,S="pending"===C,I="error"===C,L=S&&v,T=void 0!==r,R={status:C,fetchStatus:p.fetchStatus,isPending:S,isSuccess:"success"===C,isError:I,isInitialLoading:L,isLoading:L,data:r,dataUpdatedAt:p.dataUpdatedAt,error:g,errorUpdatedAt:y,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:p.dataUpdateCount>c.dataUpdateCount||p.errorUpdateCount>c.errorUpdateCount,isFetching:v,isRefetching:v&&!S,isLoadingError:I&&!T,isPaused:"paused"===p.fetchStatus,isPlaceholderData:f,isRefetchError:I&&T,isStale:_(e,t),refetch:this.refetch,promise:this.#f,isEnabled:!1!==(0,s.resolveQueryBoolean)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==R.data,r="error"===R.status&&!t,s=e=>{r?e.reject(R.error):t&&e.resolve(R.data)},n=()=>{s(this.#f=R.promise=(0,d.pendingThenable)())},o=this.#f;switch(o.status){case"pending":e.queryHash===i.queryHash&&s(o);break;case"fulfilled":(r||R.data!==o.value)&&n();break;case"rejected":r&&R.error===o.reason||n()}}return R}updateResult(){let e=this.#y,t=this.createResult(this.#g,this.options);if(this.#O=this.#g.state,this.#_=this.options,void 0!==this.#O.data&&(this.#v=this.#g),(0,s.shallowEqualObjects)(t,e))return;this.#y=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#T.size)return!0;let i=new Set(r??this.#T);return this.options.throwOnError&&i.add("error"),Object.keys(this.#y).some(t=>this.#y[t]!==e[t]&&i.has(t))};this.#x({listeners:r()})}#P(){let e=this.#a.getQueryCache().build(this.#a,this.options);if(e===this.#g)return;let t=this.#g;this.#g=e,this.#E=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#A()}#x(e){i.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#y)}),this.#a.getQueryCache().notify({query:this.#g,type:"observerResultsUpdated"})})}};function E(e,t){return!1!==(0,s.resolveQueryBoolean)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,s.resolveQueryBoolean)(t.retryOnMount,e))||void 0!==e.state.data&&y(e,t,t.refetchOnMount)}function y(e,t,r){if(!1!==(0,s.resolveQueryBoolean)(t.enabled,e)&&"static"!==(0,s.resolveStaleTime)(t.staleTime,e)){let i="function"==typeof r?r(e):r;return"always"===i||!1!==i&&_(e,t)}return!1}function O(e,t,r,i){return(e!==t||!1===(0,s.resolveQueryBoolean)(i.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&_(e,r)}function _(e,t){return!1!==(0,s.resolveQueryBoolean)(t.enabled,e)&&e.isStaleByTime((0,s.resolveStaleTime)(t.staleTime,e))}e.s(["QueryObserver",0,g],73340)},71585,e=>{"use strict";var t=e.i(74233),r=e.i(14070),i=e.i(56298),s=class{#M;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.isValidTimeout)(this.gcTime)&&(this.#M=t.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.environmentManager.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#M&&(t.timeoutManager.clearTimeout(this.#M),this.#M=void 0)}};e.s(["Removable",0,s])},51415,90140,92363,e=>{"use strict";var t=e.i(79971),r=e.i(95564),i=new class extends r.Subscribable{#U=!0;#t;#r;constructor(){super(),this.#r=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}
1setOnline(e){this.#U!==e&&(this.#U=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#U}};e.s(["onlineManager",0,i],90140);var s=e.i(56298);function n(){let e,t,r=new Promise((r,i)=>{e=r,t=i});function i(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{i({status:"fulfilled",value:t}),e(t)},r.reject=e=>{i({status:"rejected",reason:e}),t(e)},r}e.s(["pendingThenable",0,n],92363);var o=e.i(14070);function a(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||i.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};e.s(["CancelledError",0,u,"canFetch",0,l,"createRetryer",0,function(e){let r,c=!1,h=0,p=n(),d=()=>t.focusManager.isFocused()&&("always"===e.networkMode||i.isOnline())&&e.canRun(),f=()=>l(e.networkMode)&&e.canRun(),g=e=>{"pending"===p.status&&(r?.(),p.resolve(e))},E=e=>{"pending"===p.status&&(r?.(),p.reject(e))},y=()=>new Promise(t=>{r=e=>{("pending"!==p.status||d())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,"pending"===p.status&&e.onContinue?.()}),O=()=>{let t;if("pending"!==p.status)return;let r=0===h?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch(t=>{if("pending"!==p.status)return;let r=e.retry??3*!o.environmentManager.isServer(),i=e.retryDelay??a,n="function"==typeof i?i(h,t):i,l=!0===r||"number"==typeof r&&h<r||"function"==typeof r&&r(h,t);c||!l?E(t):(h++,e.onFail?.(h,t),(0,s.sleep)(n).then(()=>d()?void 0:y()).then(()=>{c?E(t):O()}))})};return{promise:p,status:()=>p.status,cancel:t=>{if("pending"===p.status){let r=new u(t);E(r),e.onCancel?.(r)}},continue:()=>(r?.(),p),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1},canStart:f,start:()=>(f()?O():y().then(O),p)}}],51415)},74233,e=>{"use strict";e.i(50461);var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#F=t;#j=!1;setTimeoutProvider(e){this.#F=e}setTimeout(e,t){return this.#F.setTimeout(e,t)}clearTimeout(e){this.#F.clearTimeout(e)}setInterval(e,t){return this.#F.setInterval(e,t)}clearInterval(e){this.#F.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,r])},85700,e=>{"use strict";var t=e.i(91788),r=e.i(91398),i=t.createContext(void 0);e.s(["QueryClientProvider",0,({client:e,children:s})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(i.Provider,{value:e,children:s})),"useQueryClient",0,e=>{let r=t.useContext(i);if(e)return e;if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r}])},93930,40784,36277,90796,68082,e=>{"use strict";let t;var r=e.i(73340),i=e.i(91788),s=e.i(14070),n=e.i(56298),o=e.i(65235),a=e.i(85700);e.i(91398);var l=i.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),u=()=>i.useContext(l);e.s(["useQueryErrorResetBoundary",0,u],40784);var c=(e,t,r)=>{let i=r?.state.error&&"function"==typeof e.throwOnError?(0,n.shouldThrowError)(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&!t.isReset()&&(e.retryOnMount=!1)},h=e=>{i.useEffect(()=>{e.clearReset()},[e])},p=({result:e,errorResetBoundary:t,throwOnError:r,query:i,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(s&&void 0===e.data||(0,n.shouldThrowError)(r,[e.error,i]));e.s(["ensurePreventErrorBoundaryRetry",0,c,"getHasError",0,p,"useClearResetErrorBoundary",0,h],36277);var d=i.createContext(!1),f=()=>i.useContext(d);d.Provider,e.s(["useIsRestoring",0,f],90796);var g=e=>{if(e.suspense){let t=e=>"static"===e?e:Math.max(e??1e3,1e3),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>t(r(...e)):t(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}},E=(e,t)=>e.isLoading&&e.isFetching&&!t,y=(e,t)=>e?.suspense&&t.isPending,O=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});e.s(["ensureSuspenseTimers",0,g,"fetchOptimistic",0,O,"shouldSuspend",0,y,"willFetch",0,E],68082),e.s(["useQuery",0,function(e,t){return function(e,t,r){let l=f(),d=u(),_=(0,a.useQueryClient)(r),C=_.defaultQueryOptions(e);_.getDefaultOptions().queries?._experimental_beforeQuery?.(C);let m=_.getQueryCache().get(C.queryHash),v=!1!==e.subscribed;C._optimisticResults=l?"isRestoring":v?"optimistic":void 0,g(C),c(C,d,m),h(d);let S=!_.getQueryCache().get(C.queryHash),[I]=i.useState(()=>new t(_,C)),L=I.getOptimisticResult(C),T=!l&&v;if(i.useSyncExternalStore(i.useCallback(e=>{let t=T?I.subscribe(o.notifyManager.batchCalls(e)):n.noop;return I.updateResult(),t},[I,T]),()=>I.getCurrentResult(),()=>I.getCurrentResult()),i.useEffect(()=>{I.setOptions(C)},[C,I]),y(C,L))throw O(C,I,d);if(p({result:L,errorResetBoundary:d,throwOnError:C.throwOnError,query:m,suspense:C.suspense}))throw L.error;if(_.getDefaultOptions().queries?._experimental_afterQuery?.(C,L),C.experimental_prefetchInRender&&!s.environmentManager.isServer()&&E(L,l)){let e=S?O(C,I,d):m?.promise;e?.catch(n.noop).finally(()=>{I.updateResult()})}return C.notifyOnChangeProps?L:I.trackResult(L)}(e,r.QueryObserver,t)}],93930)},25544,(e,t,r)=>{"use strict";var i=e.e&&e.e.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},s=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var s=Object.getOwnPropertyDescriptor(t,r);
1(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,s)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=e.e&&e.e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&s(t,e,r);return n(t,e),t};Object.defineProperty(r,"__esModule",{value:!0}),r.CookieProvider=r.CookieContext=void 0;var a=o(e.r(91788)),l=e.r(69422),u=e.r(8633);r.CookieContext=(0,a.createContext)(null),r.CookieProvider=function(e){var t=e.children,s=e.pollingOptions,n=(0,a.useState)({}),o=n[0],c=n[1];(0,a.useEffect)(function(){var e=(0,l.getCookies)();e&&c(e)},[]),(0,l.useCookiesPolling)(function(e){e&&c(e)},s);var h=(0,a.useMemo)(function(){return{cookies:o,set:function(e,t){c(function(r){var s;return i(i({},r),((s={})[e]=encodeURIComponent((0,u.stringify)(t)),s))})},get:function(e){return null==o?void 0:o[e]},getAll:function(){return o},has:function(e){return o.hasOwnProperty(e)},delete:function(e){o.hasOwnProperty(e)&&c(function(t){var r=i({},t);return delete r[e],r})},revalidateCookiesState:function(){(0,l.revalidateCookies)(function(e){e&&c(e)},o)}}},[o]);return a.default.createElement(r.CookieContext.Provider,{value:h},t)}},34919,(e,t,r)=>{"use strict";var i=e.e&&e.e.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),r.revalidateCookies=r.hasCookie=r.deleteCookie=r.setCookie=r.getCookie=r.getCookies=void 0;var s=e.r(17841),n=e.r(8633),o=function(e){if(!(0,n.isClientSide)(e))throw Error("You are trying to access cookies on the server side. Please, use the server-side import with `cookies-next/server` instead.")},a=function(e){if(o(e),"server"!==(0,n.getRenderPhase)()){for(var t={},r=document.cookie?document.cookie.split("; "):[],i=0,s=r.length;i<s;i++){var a=r[i].split("="),l=a.slice(1).join("=");t[a[0]]=l}return t}};r.getCookies=a,r.getCookie=function(e,t){o(t);var r=a(t),i=null==r?void 0:r[e];if(void 0!==i)return(0,n.decode)(i)};var l=function(e,t,r){if(o(r),"server"!==(0,n.getRenderPhase)()){var a=(0,s.serialize)(e,(0,n.stringify)(t),i({path:"/"},r||{}));document.cookie=a}};r.setCookie=l,r.deleteCookie=function(e,t){o(t),l(e,"",i(i({},t),{maxAge:-1}))},r.hasCookie=function(e,t){if(o(t),!e)return!1;var r=a(t);return!!r&&Object.prototype.hasOwnProperty.call(r,e)},r.revalidateCookies=function(e,t){if(o(),"server"!==(0,n.getRenderPhase)()){var r=a();Object.keys(i(i({},r),t)).some(function(e){return(null==r?void 0:r[e])!==(null==t?void 0:t[e])})&&(e(r),t=r)}}},94410,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.useRevalidateCookiesState=r.useReactiveHasCookie=r.useReactiveDeleteCookie=r.useReactiveSetCookie=r.useReactiveGetCookie=r.useReactiveGetCookies=r.useReactiveCookiesNext=r.useCookiesNext=r.useHasCookie=r.useDeleteCookie=r.useSetCookie=r.useGetCookie=r.useGetCookies=r.useCookiesPolling=void 0;var i=e.r(25544),s=e.r(91788),n=e.r(34919),o=function(e){var t=(0,s.useState)(!1),r=t[0],i=t[1];return(0,s.useEffect)(function(){i(!0)},[]),r?e:function(){}},a=function(){var e=(0,s.useContext)(i.CookieContext);if(!e)throw Error("useCookieContext must be used within a CookieProvider");return e};r.useCookiesPolling=function(e,t){var r=t||{},i=r.intervalMs,o=void 0===i?1e3:i,a=r.enabled,l=void 0!==a&&a;(0,s.useEffect)(function(){if(l){var t=(0,n.getCookies)(),r=setInterval(function(){(0,n.revalidateCookies)(e,t)},o);return function(){return clearInterval(r)}}},[e,o])};var l=function(){return o(n.getCookies)};r.useGetCookies=l;var u=function(){return o(n.getCookie)};r.useGetCookie=u;var c=function(){return o(n.hasCookie)};r.useHasCookie=c;var h=function(){return o(n.setCookie)};r.useSetCookie=h;var p=function(){return o(n.deleteCookie)};r.useDeleteCookie=p,r.useCookiesNext=function(){return{getCookies:l(),getCookie:u(),hasCookie:c(),setCo
1okie:h(),deleteCookie:p()}};var d=function(){var e=a();return function(){return null==e?void 0:e.getAll()}};r.useReactiveGetCookies=d;var f=function(){var e=a();return function(t){return null==e?void 0:e.get(t)}};r.useReactiveGetCookie=f;var g=function(){var e=a();return function(t,r,i){return null==e||e.set(t,r),(0,n.setCookie)(t,r,i)}};r.useReactiveSetCookie=g;var E=function(){var e=a();return function(t,r){return null==e||e.delete(t),(0,n.deleteCookie)(t,r)}};r.useReactiveDeleteCookie=E;var y=function(){var e=a();return function(t){return null==e?void 0:e.has(t)}};r.useReactiveHasCookie=y;var O=function(){var e=a();return function(){null==e||e.revalidateCookiesState()}};r.useRevalidateCookiesState=O,r.useReactiveCookiesNext=function(){return{getCookies:d(),getCookie:f(),hasCookie:y(),setCookie:g(),deleteCookie:E(),revalidateCookiesState:O()}}},69422,(e,t,r)=>{"use strict";var i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,s)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),s=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.CookiesNextProvider=void 0,s(e.r(44575),r),s(e.r(34919),r);var n=e.r(25544);Object.defineProperty(r,"CookiesNextProvider",{enumerable:!0,get:function(){return n.CookieProvider}}),s(e.r(94410),r)},3828,(e,t,r)=>{t.exports=e.r(26990)},47620,73279,24340,9007,71179,47977,e=>{"use strict";let t;var r=e.i(91788);let i=e=>"string"==typeof e,s=()=>{let e,t,r=new Promise((r,i)=>{e=r,t=i});return r.resolve=e,r.reject=t,r},n=e=>null==e?"":String(e),o=/###/g,a=e=>e&&e.includes("###")?e.replace(o,"."):e,l=e=>!e||i(e),u=(e,t,r)=>{let s=i(t)?t.split("."):t,n=0;for(;n<s.length-1;){if(l(e))return{};let t=a(s[n]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++n}return l(e)?{}:{obj:e,k:a(s[n])}},c=(e,t,r)=>{let{obj:i,k:s}=u(e,t,Object);if(void 0!==i||1===t.length){i[s]=r;return}let n=t[t.length-1],o=t.slice(0,t.length-1),a=u(e,o,Object);for(;void 0===a.obj&&o.length;)n=`${o[o.length-1]}.${n}`,a=u(e,o=o.slice(0,o.length-1),Object),a?.obj&&void 0!==a.obj[`${a.k}.${n}`]&&(a.obj=void 0);a.obj[`${a.k}.${n}`]=r},h=(e,t)=>{let{obj:r,k:i}=u(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,i))return r[i]},p=(e,t,r)=>{for(let s in t)"__proto__"!==s&&"constructor"!==s&&(Object.prototype.hasOwnProperty.call(e,s)?i(e[s])||e[s]instanceof String||i(t[s])||t[s]instanceof String?r&&(e[s]=t[s]):p(e[s],t[s],r):e[s]=t[s]);return e},d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},f=e=>i(e)?e.replace(/[&<>"'\/]/g,e=>d[e]):e,g=[" ",",","?","!",";"],E=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}(20),y=(e,t,r=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let i=t.split(r),s=e;for(let e=0;e<i.length;){let t;if(!s||"object"!=typeof s)return;let n="";for(let o=e;o<i.length;++o)if(o!==e&&(n+=r),n+=i[o],void 0!==(t=s[n])){if(["string","number","boolean"].includes(typeof t)&&o<i.length-1)continue;e+=o-e+1;break}s=t}return s},O=e=>e?.replace(/_/g,"-"),_={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};var C=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||_,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,r,s){return s&&!this.debug?null:(e=e.map(e=>i(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),i(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{...{prefix:`${this.prefix}:${t}:`},...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}};class m{constructor(){this.observers={}}
1on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}once(e,t){let r=(...i)=>{t(...i),this.off(e,r)};return this.on(e,r),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,r])=>{for(let i=0;i<r;i++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,i])=>{for(let s=0;s<i;s++)r(e,...t)})}}class v extends m{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.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r,s={}){let n,o=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator,a=void 0!==s.ignoreJSONStructure?s.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?n=e.split("."):(n=[e,t],r&&(Array.isArray(r)?n.push(...r):i(r)&&o?n.push(...r.split(o)):n.push(r)));let l=h(this.data,n);return(!l&&!t&&!r&&e.includes(".")&&(e=n[0],t=n[1],r=n.slice(2).join(".")),!l&&a&&i(r))?y(this.data?.[e]?.[t],r,o):l}addResource(e,t,r,i,s={silent:!1}){let n=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator,o=[e,t];r&&(o=o.concat(n?r.split(n):r)),e.includes(".")&&(o=e.split("."),i=t,t=o[1]),this.addNamespaces(t),c(this.data,o,i),s.silent||this.emit("added",e,t,r,i)}addResources(e,t,r,s={silent:!1}){for(let s in r)(i(r[s])||Array.isArray(r[s]))&&this.addResource(e,t,s,r[s],{silent:!0});s.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,i,s,n={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(".")&&(o=e.split("."),i=r,r=t,t=o[1]),this.addNamespaces(t);let a=h(this.data,o)||{};n.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?p(a,r,s):a={...a,...r},c(this.data,o,a),n.silent||this.emit("added",e,t,r)}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){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var S={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,i,s){return e.forEach(e=>{t=this.processors[e]?.process(t,r,i,s)??t}),t}};let I=Symbol("i18next/PATH_KEY");function L(e,t){let r,i,s,{[I]:n}=e((i=[],(s=Object.create(null)).get=(e,t)=>(r?.revoke?.(),t===I)?i:(i.push(t),(r=Proxy.revocable(e,s)).proxy),Proxy.revocable(Object.create(null),s).proxy)),o=t?.keySeparator??".",a=t?.nsSeparator??":",l=t?.enableSelector==="strict";if(n.length>1&&a){let e=t?.ns,r=l?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(r&&(l?r:r.length>1?r.slice(1):[]).includes(n[0]))return`${n[0]}${a}${n.slice(1).join(o)}`}return n.join(o)}let T=e=>!i(e)&&"boolean"!=typeof e&&"number"!=typeof e;class R extends m{constructor(e,t={}){super(),((e,t,r)=>{e.forEach(e=>{t[e]&&(r[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=C.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let r={...t};if(null==e)return!1;let i=this.resolve(e,r);if(i?.res===void 0)return!1;let s=T(i.res);return!1!==r.returnObjects||!s}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let s=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS||[],o=r&&e.includes(r),a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,r)=>{t=t||"",r=r||"";let i=g.filter(e=>!t.includes(e)&&!r.includes(e));if(0===i.length)return!0;let s=E.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`),n=!s.test(e);if(!n){let t=e.indexOf(r);t>0&&!s.test(e.substring(0,t))&&(n=!0)}return n})(e,r,s);if(o&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i(n)?[n]:n};let o=e.split(r);(r!==s||r===s&&this.options.ns.includes(o[0]))&&(n=o.shift()),e=o.join(s)}return{key:e,namespaces:i(n)?[n]:n}}translate(e,t,r){let s="object"==typeof t?{...t}:t;if("object"!=typeof s&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof s&&(s={...s}),s||(s={}),null==e)return"";"function"==typeof e&&(e=L(e,{...this.options,...s})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?L(e,{...this.options,...s}):String(e));let n=void 0!==s.returnDetails?s.returnDetails:this.options.returnDetails,o=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(e[e.length-1],s),u=l[l.length-1],c=void 0!==s.nsSeparator?s.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let h=s.lng||this.language,p=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h?.toLowerCase()==="cimode")return p?n?{res:`${u}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:h,usedNS:u,usedParams:this.getUsedParamsDetails(s)}:`${u}${c}${a}`:n?{res:a,usedKey:a,exactUsedKey:a,usedLng:h,usedNS:u,usedParams:this.getUsedParamsDetails(s)}:a;let d=this.resolve(e,s),f=d?.res,g=d?.usedKey||a,E=d?.exactUsedKey||a,y=void 0!==s.joinArrays?s.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject,_=void 0!==s.count&&!i(s.count),C=R.hasDefaultValue(s),m=_?this.pluralResolver.getSuffix(h,s.count,s):"",v=s.ordinal&&_?this.pluralResolver.getSuffix(h,s.count,{ordinal:!1}):"",S=_&&!s.ordinal&&0===s.count,I=S&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${m}`]||s[`defaultValue${v}`]||s.defaultValue,A=f;O&&!f&&C&&(A=I);let N=T(A),b=Object.prototype.toString.apply(A);if(O&&A&&N&&!["[object Number]","[object Function]","[object RegExp]"].includes(b)&&!(i(y)&&Array.isArray(A))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,A,{...s,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return n?(d.res=e,d.usedParams=this.getUsedParamsDetails(s),d):e}if(o){let e=Array.isArray(A),t=e?[]:{},r=e?E:g;for(let e in A)if(Object.prototype.hasOwnProperty.call(A,e)){let i=`${r}${o}${e}`;C&&!f?t[e]=this.translate(i,{...s,defaultValue:T(I)?I[e]:void 0,...{joinArrays:!1,ns:l}}):t[e]=this.translate(i,{...s,joinArrays:!1,ns:l}),t[e]===i&&(t[e]=A[e])}f=t}}else if(O&&i(y)&&Array.isArray(f))(f=f.join(y))&&(f=this.extendTranslation(f,e,s,r));else{let t=!1,i=!1;!this.isValidLookup(f)&&C&&(t=!0,f=I),this.isValidLookup(f)||(i=!0,f=a);let n=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:f,l=C&&I!==f&&this.options.updateMissing;if(i||t||l){if(this.logger.log(l?"updateKey":"missingKey",h,u,_&&!l?`${a}${this.pluralResolver.getSuffix(h,s.count,s)}`:a,l?I:f),o){let e=this.resolve(a,{...s,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=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let r=0;r<t.length;r++)e.push(t[r]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(s.lng||this.language):e.push(s.lng||this.language);let r=(e,t,r)=>{let i=C&&r!==f?r:n;this.options.missingKeyHandler?this.options.missingKeyHandler(e,u,t,i,l,s):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,u,t,i,l,s),this.emit
1("missingKey",e,u,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,s);S&&s[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],a+t,s[`defaultValue${t}`]||I)})}):r(e,a,I))}f=this.extendTranslation(f,e,s,d,r),i&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${u}${c}${a}`),(i||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${a}`:a,t?f:void 0,s))}return n?(d.res=f,d.usedParams=this.getUsedParamsDetails(s),d):f}extendTranslation(e,t,r,s,n){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){let o;r.interpolation&&this.interpolator.init({...r,...{interpolation:{...this.options.interpolation,...r.interpolation}}});let a=i(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let l=r.replace&&!i(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language||s.usedLng,r),a){let t=e.match(this.interpolator.nestingRegexp);o<(t&&t.length)&&(r.nest=!1)}!r.lng&&s&&s.res&&(r.lng=this.language||s.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(...e)=>n?.[0]!==e[0]||r.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),r)),r.interpolation&&this.interpolator.reset()}let o=r.postProcess||this.options.postProcess,a=i(o)?[o]:o;return null!=e&&a?.length&&!1!==r.applyPostProcessor&&(e=S.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,s,n,o,a;return i(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?L(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(r))return;let l=this.extractFromKey(e,t),u=l.key;s=u;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let h=void 0!==t.count&&!i(t.count),p=h&&!t.ordinal&&0===t.count,d=void 0!==t.context&&(i(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);
1c.forEach(e=>{this.isValidLookup(r)||(a=e,!this.checkedLoadedFor[`${f[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(this.checkedLoadedFor[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${s}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" 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!!!")),f.forEach(i=>{let s;if(this.isValidLookup(r))return;o=i;let a=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,u,i,e,t);else{let e;h&&(e=this.pluralResolver.getSuffix(i,t.count,t));let r=`${this.options.pluralSeparator}zero`,s=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(t.ordinal&&e.startsWith(s)&&a.push(u+e.replace(s,this.options.pluralSeparator)),a.push(u+e),p&&a.push(u+r)),d){let i=`${u}${this.options.contextSeparator||"_"}${t.context}`;a.push(i),h&&(t.ordinal&&e.startsWith(s)&&a.push(i+e.replace(s,this.options.pluralSeparator)),a.push(i+e),p&&a.push(i+r))}}for(;s=a.pop();)this.isValidLookup(r)||(n=s,r=this.getResource(i,e,s,t))}))})}),{res:r,usedKey:s,exactUsedKey:n,usedLng:o,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,r,i):this.resourceStore.getResource(e,t,r,i)}getUsedParamsDetails(e={}){let t=e.replace&&!i(e.replace),r=t?e.replace:e;if(t&&void 0!==e.count&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t)for(let e of(r={...r},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete r[e];return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class A{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=C.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(!(e=O(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=O(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(i(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t: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.includes(e)}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getScriptPartFromCode(e);if(this.isSupportedCode(r))return t=r;let i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>e===i||(!!e.includes("-")||!!i.includes("-"))&&!!(e.includes("-")&&!i.includes("-")&&e.slice(0,e.indexOf("-"))===i||e.startsWith(i)&&i.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),i(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.options.fallbackLng,s=Array.isArray(r)?r.join("|"):r;s!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=s);let n=void 0===t||!1===t||i(t),o=void 0===t&&"function"==typeof this.options.fallbackLng,a=i(e)&&n&&!o,l=null;if(a){let r;r=void 0===t?"undefined":!1===t?"boolean:false":`string:${t}`,l=`${e.length}:${e}|${r}`}if(null!==l){let e=this.resolveHierarchyCache[l];if(void 0!==e)return e.slice()}let u=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),c=[],h=e=>{e&&(this.isSupportedCode(e)?c.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return(i(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&h(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&h(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&h(this.getLanguagePartFromCode(e))):i(e)&&h(this.formatLanguageCode(e)),u.forEach(e
1=>{c.includes(e)||h(this.formatLanguageCode(e))}),null!==l)?(this.resolveHierarchyCache[l]=c,c.slice()):c}}let N={zero:0,one:1,two:2,few:3,many:4,other:5},b={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class P{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=C.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let r,i=O("dev"===e?"en":e),s=t.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:i,type:s});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];try{r=new Intl.PluralRules(i,{type:s})}catch(s){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),b;if(!e.match(/-|_/))return b;let i=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(i,t)}return this.pluralRulesCache[n]=r,r}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return(r||(r=this.getRule("dev",t)),r)?r.resolvedOptions().pluralCategories.sort((e,t)=>N[e]-N[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,r={}){let i=this.getRule(e,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}let D=(e,t,r,s=".",n=!0)=>{let o,a=void 0!==(o=h(e,r))?o:h(t,r);return!a&&n&&i(r)&&void 0===(a=y(e,r,s))&&(a=y(t,r,s)),a},w=e=>e.replace(/\$/g,"$$$$");class k{constructor(e={}){this.logger=C.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:n,suffix:o,suffixEscaped:a,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:h,nestingPrefixEscaped:p,nestingSuffix:d,nestingSuffixEscaped:g,nestingOptionsSeparator:E,maxReplaces:y,alwaysFormat:O}=e.interpolation;this.escape=void 0!==t?t:f,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==i&&i,this.prefix=s?s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):n||"{{",this.suffix=o?o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c?c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":u?u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=h?h.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):p||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=d?d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):g||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=E||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==O&&O,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):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,r,s){let o,a,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=D(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,r,{...s,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),n=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(D(t,u,n,this.options.keySeparator,this.options.ignoreJSONStructure),o,r,{...s,...t,interpolationkey:n})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let h=s?.missingInterpolationHandler||this.options.missingInterpolationHandler,p=s?.interpolation?.ski
1pOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(l=0;o=t.regex.exec(e);){let r=o[1].trim();if(void 0===(a=c(r)))if("function"==typeof h){let t=h(e,o,s);a=i(t)?t:""}else if(s&&Object.prototype.hasOwnProperty.call(s,r))a="";else if(p){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),a="";else i(a)||this.useRawValueToEscape||(a=n(a));let u=t.safeValue(a);if(e=e.replace(o[0],w(u)),p?(t.regex.lastIndex+=u.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t,r={}){let s,o,a,l=(e,t)=>{let r=this.nestingOptionsSeparator;if(!e.includes(r))return e;let i=e.split(RegExp(`${r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),s=`{${i[1]}`;e=i[0];let n=(s=this.interpolate(s,a)).match(/'/g),o=s.match(/"/g);((n?.length??0)%2!=0||o)&&(o?.length??0)%2==0||(s=s.replace(/'/g,'"'));try{a=JSON.parse(s),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${s}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;s=this.nestingRegexp.exec(e);){let u=[];(a=(a={...r}).replace&&!i(a.replace)?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/s.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(-1!==c&&(u=s[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),s[1]=s[1].slice(0,c)),(o=t(l.call(this,s[1].trim(),a),a))&&s[0]===e&&!i(o))return o;i(o)||(o=n(o)),o||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),o=""),u.length&&(o=u.reduce((e,t)=>this.format(e,t,r.lng,{...r,interpolationkey:s[1].trim()}),o.trim())),e=e.replace(s[0],w(n(o))),this.regexp.lastIndex=0}return e}}let x=e=>{let t={};return(r,i,s)=>{let n=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(n={...n,[s.interpolationkey]:void 0});let o=i+JSON.stringify(n),a=t[o];return a||(a=e(O(i),s),t[o]=a),a(r)}},M=e=>(t,r,i)=>e(O(r),i)(t);class U{constructor(e={}){this.logger=C.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let r=t.cacheInBuiltFormats?x:M;this.formats={number:r((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:r((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:r((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:r((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:r((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=x(t)}format(e,t,r,i={}){if(!t||null==e)return e;let s=t.split(this.formatSeparator),n=[];for(let e=0;e<s.length;e++){let t=s[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<s.length;)t=`${t}${this.formatSeparator}${s[++e]}`;n.push(t)}return n.reduce((e,t)=>{let{formatName:s,formatOptions:n}=(e=>{let t=e.toLowerCase().trim(),r={};if(e.includes("(")){let i=e.split("(");t=i[0].toLowerCase().trim();let s=i[1].slice(0,-1);"currency"!==t||s.includes(":")?"relativetime"!==t||s.includes(":")?s.split(";").forEach(e=>{if(e){let[t,...i]=e.split(":"),s=i.join(":").trim().replace(/^'+|'+$/g,""),n=t.trim();r[n]||(r[n]=s),"false"===s&&(r[n]=!1),"true"===s&&(r[n]=!0),isNaN(s)||(r[n]=parseInt(s,10))}}):r.range||(r.range=s.trim()):r.currency||(r.currency=s.trim())}return{formatName:t,formatOptions:r}})(t);if(this.formats[s]){let t=e;try{let o=i?.formatParams?.[i.interpolationkey]||{},a=o.locale||o.lng||i.locale||i.lng||r;t=this.formats[s](e,a,{...n,...i,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${s}`),e},e)}}class F extends m{constructor(e,t,r,i={}){super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=C.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,i.backend,i)}queueLoad(e,t,r,i){let s={},n={},o={},a={};
1return e.forEach(e=>{let i=!0;t.forEach(t=>{let o=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===n[o]&&(n[o]=!0):(this.state[o]=1,i=!1,void 0===n[o]&&(n[o]=!0),void 0===s[o]&&(s[o]=!0),void 0===a[t]&&(a[t]=!0)))}),i||(o[e]=!0)}),(Object.keys(s).length||Object.keys(n).length)&&this.queue.push({pending:n,pendingCount:Object.keys(n).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(n),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(a)}}loaded(e,t,r){let i=e.split("|"),s=i[0],n=i[1];t&&this.emit("failedLoading",s,n,t),!t&&r&&this.store.addResourceBundle(s,n,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);let o={};this.queue.forEach(r=>{((e,t,r)=>{let{obj:i,k:s}=u(e,t,Object);i[s]=i[s]||[],i[s].push(r)})(r.loaded,[s],n),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{o[e]||(o[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===o[e][t]&&(o[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r,i=0,s=this.retryTimeout,n){if(!e.length)return n(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:i,wait:s,callback:n});this.readingCalls++;let o=(o,a)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}o&&a&&i<this.maxRetries?setTimeout(()=>{this.read(e,t,r,i+1,2*s,n)},s):n(o,a)},a=this.backend[r].bind(this.backend);if(2===a.length){try{let r=a(e,t);r&&"function"==typeof r.then?r.then(e=>o(null,e)).catch(o):o(null,r)}catch(e){o(e)}return}return a(e,t,o)}prepareLoading(e,t,r={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();i(e)&&(e=this.languageUtils.toResolveHierarchy(e)),i(t)&&(t=[t]);let n=this.queueLoad(e,t,r,s);if(!n.toLoad.length)return n.pending.length||s(),null;n.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){let r=e.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(r,n)=>{r&&this.logger.warn(`${t}loading namespace ${s} for language ${i} failed`,r),!r&&n&&this.logger.log(`${t}loaded namespace ${s} for language ${i}`,n),this.loaded(e,r,n)})}saveMissing(e,t,r,i,s,n={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${r}" 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!!!");if(null!=r&&""!==r){if(this.backend?.create){let a={...n,isUpdate:s},l=this.backend.create.bind(this.backend);if(l.length<6)try{let s;(s=5===l.length?l(e,t,r,i,a):l(e,t,r,i))&&"function"==typeof s.then?s.then(e=>o(null,e)).catch(o):o(null,s)}catch(e){o(e)}else l(e,t,r,i,o,a)}e&&e[0]&&this.store.addResource(e[0],t,r,i)}}}let j=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,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]),i(e[1])&&(t.defaultValue=e[1]),i(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];
1Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),G=e=>(i(e.ns)&&(e.ns=[e.ns]),i(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),i(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),$=()=>{};class K extends m{constructor(e={},t){if(super(),this.options=G(e),this.services={},this.logger=C,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),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&&(i(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let r=j();this.options={...r,...this.options,...G(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation}
1,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=r.overloadTranslationOptionHandler);let n=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?C.init(n(this.modules.logger),this.options):C.init(null,this.options),e=this.modules.formatter?this.modules.formatter:U;let t=new A(this.options);this.store=new v(this.options.resources,this.options);let r=this.services;r.logger=C,r.resourceStore=this.store,r.languageUtils=t,r.pluralResolver=new P(t,{prepend:this.options.pluralSeparator}),e&&(r.formatter=n(e),r.formatter.init&&r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new k(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new F(n(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(r.languageDetector=n(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=n(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new R(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=$),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let 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)});let o=s(),a=()=>{let e=(e,r)=>{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),o.resolve(r),t(e,r)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),o}loadResources(e,t=$){let r=t,s=i(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(s?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};s?t(s):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),r(e)})}else r(null)}reloadResources(e,t,r){let i=s();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=$),this.services.backendConnector.reload(e,t,e=>{i.resolve(),r(e)}),i}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw 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&&S.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"].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let r=s();
1this.emit("languageChanging",e);let n=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(i,s)=>{s?this.isLanguageChangingTo===e&&(n(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,r.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{e||t||!this.services.languageDetector||(t=[]);let r=i(t)?t:t&&t[0],s=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(i(t)?[t]:t);s&&(this.language||n(s),this.translator.language||this.translator.changeLanguage(s),this.services.languageDetector?.cacheUserLanguage?.(s)),this.loadResources(s,e=>{o(e,s)})};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(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,r,s){let n=s?.scopeNs,o=(e,t,...i)=>{let s,a;(s="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t}).lng=s.lng||o.lng,s.lngs=s.lngs||o.lngs;let l=void 0!==s.ns&&null!==s.ns;s.ns=s.ns||o.ns,""!==s.keyPrefix&&(s.keyPrefix=s.keyPrefix||r||o.keyPrefix);let u={...this.options,...s};Array.isArray(n)&&!l&&(u.ns=n),"function"==typeof s.keyPrefix&&(s.keyPrefix=L(s.keyPrefix,u));let c=this.options.keySeparator||".";return s.keyPrefix&&Array.isArray(e)?a=e.map(e=>("function"==typeof e&&(e=L(e,u)),`${s.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=L(e,u)),a=s.keyPrefix?`${s.keyPrefix}${c}${e}`:e),this.t(a,s)};return i(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}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;
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let n=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||0===r||2===r};if(t.precheck){let e=t.precheck(this,n);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||n(r,e)&&(!i||n(s,e)))}loadNamespaces(e,t){let r=s();return this.options.ns?(i(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=s();i(e)&&(e=[e]);let n=this.options.preload||[],o=e.filter(e=>!n.includes(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=n.concat(o),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new A(j());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"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let r=new K(e,t);return r.createInstance=K.createInstance,r}cloneInstance(e={},t=$){let r=e.forkResourceStore;r&&delete e.forkResourceStore;let i={...this.options,...e,isClone:!0},s=new K(i);if((void 0!==e.debug||void 0!==e.prefix)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(e=>{s[e]=this[e]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new v(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((r,i)=>(r[i]={...e[t][i]},r),e[t]),e),{}),i),s.services.resourceStore=s.store),e.interpolation){let t={...j().interpolation,...this.options.interpolation,...e.interpolation},r={...i,interpolation:t};s.services.interpolator=new k(r)}return s.translator=new R(s.services,i),s.translator.on("*",(e,...t)=>{s.emit(e,...t)}),s.init(i,t),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let B=K.createInstance();B.createInstance,B.dir,B.init,B.loadResources,B.reloadResources,B.use,B.changeLanguage,B.getFixedT;let H=B.t;B.exists,B.setDefaultNamespace,B.hasLoadedNamespace,B.loadNamespaces,B.loadLanguages,e.s(["default",0,B,"keyFromSelector",0,L,"t",0,H],73279);let V={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,"!doctype":!0,"!DOCTYPE":!0},W=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function Q(e){let t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(V[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){let t=e.indexOf("-->");return{type:"comment",comment:-1!==t?e.slice(4,t):""}}let i=new RegExp(W),s=null;for(;null!==(s=i.exec(e));)if(s[0].trim())if(s[1]){let e=s[1].trim(),r=[e,null],n=e.indexOf("=");n>-1&&(r=[e.slice(0,n),e.slice(n+1)]),t.attrs[r[0]]=r[1],i.lastIndex--}else s[2]&&(t.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return t}let q=/<!--[\s\S]*?-->|<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,z=/<\/?([^\s]+?)[/\s>]/,Y=/^\s*$/,J=/^(script|style)$/i,X=Object.create(null);var Z=function(e,t){let r,i,s,n=t&&t.components||X,o=t&&t.allowedTags,a=!1;if(o){let t,r="function"==typeof o?o:function(e){return o.indexOf(e)>-1},i="",s=0;for(q.lastIndex=0;t=q.exec(e);){let n=t[0];i+=e.slice(s,t.index);let o=n.match(z);n.startsWith("<!--")||o&&r(o[1])?(i+=n,s=t.index+n.length):(a=!0,i+="\0",q.lastIndex=s=t.index+1)}e=i+e.slice(s)}let l=[],u=[],c=-1,h=!1,p=0;if(0!==e.indexOf("<")){let t=e.indexOf("<");l.push({type:"text",content:-1===t?e:e.substring(0,t)})}let d=[];for(;s=q.exec(e);)d.push(s);return d.forEach(function(e,t){let r=e[0];if(!r||r.startsWith("<!--"))return;let i=0,s=0,n=-1,o=null;for(let e=0;e<r.length;e++){let t=r.charAt(e);o?t===o&&(o=null):'"'===t||"'"===t?o=t:"<"===t?2==++i&&(n=e):">"===t&&s++}let a=n>-1&&/[a-zA-Z0-9\-!/]/.test(r.charAt(n+1));if(i>s&&a){let e=r.substring(0,n),i=r.substring(e.length);d[t][0]=i,d[t].index+=e.length}}),d.forEach(function(t,s){let o,a,f=t[0];if(!f)return;let g=t.index;if(g<p)return;if(h)if(f!=="</"+r.name+">")return;else h=!1;let E="/"!==f.charAt(1),y=f.startsWith("<!--"),O=g+f.length,_=e.charAt(O),C=d[s+1];if("<"===_&&C){let t=e.substring(O,C.index);o=t.split("<").length>t.split(">").length}if(y){let t=Q(f);if(c<0)return l.push(t),l;(a=u[c]).children.push(t);let r=e.slice(O,C?C.index:void 0);return r.length>0&&a.children.push({type:"text",content:r}),l}if(E){c++,"tag"===(r=Q(f)).type&&n[r.name]&&(r.type="component",h=!0);let t=!1;
1if(!h&&!r.voidElement&&J.test(r.name)){t=!0,i||(i=e.toLowerCase());let s=i.indexOf("</"+r.name.toLowerCase()+">",O),n=-1===s?e.length:s,o=e.slice(O,n);o&&r.children.push({type:"text",content:o}),p=n}r.voidElement||h||t||!_||"<"===_||r.children.push({type:"text",content:e.slice(O,C?C.index:void 0)}),0===c&&l.push(r),(a=u[c-1])&&a.children.push(r),u[c]=r}if((!E||r.voidElement)&&(c>-1&&(r.voidElement||r.name===f.slice(2,-1))&&(r=-1==--c?l:u[c]),!h&&("<"!==_||o)&&_)){a=-1===c?l:u[c].children;let t=C?C.index:-1,r=e.slice(O,-1===t?void 0:t);Y.test(r)&&(r=" "),(t>-1&&c+a.length>=0||" "!==r)&&a.push({type:"text",content:r})}}),a&&function e(t){t.forEach(function(t){if("text"===t.type){t.content=t.content.split("\0").join("<");return}if("comment"===t.type){t.comment=t.comment.split("\0").join("<");return}for(let e in t.attrs){let r=t.attrs[e];"string"==typeof r&&r.indexOf("\0")>-1&&(t.attrs[e]=r.split("\0").join("<"))}t.children.length&&e(t.children)})}(l),l};let ee=(e,t,r,i)=>{let s=[r,{code:t,...i||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(s,"warn","react-i18next::",!0);eo(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...s):console?.warn&&console.warn(...s)},et={},er=(e,t,r,i)=>{eo(r)&&et[r]||(eo(r)&&(et[r]=new Date),ee(e,t,r,i))},ei=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},es=(e,t,r)=>{e.loadNamespaces(t,ei(e,r))},en=(e,t,r,i)=>{if(eo(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return es(e,r,i);r.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,ei(e,i))},eo=e=>"string"==typeof e,ea=e=>"object"==typeof e&&null!==e,el=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,eu={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},ec=e=>eu[e],eh=e=>e.replace(el,ec),ep={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:eh,transDefaultProps:void 0},ed=(e,t)=>{if(!e)return!1;let r=e.props?.children??e.children;return t?r.length>0:!!r},ef=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?eg(t):t},eg=e=>Array.isArray(e)?e:[e],eE=(e,t,i,s)=>{if(!e)return"";let n="",o=eg(e),a=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return o.forEach((e,o)=>{if(eo(e)){n+=`${e}`;return}if((0,r.isValidElement)(e)){let{props:r,type:l}=e,u=Object.keys(r).length,c=a.indexOf(l)>-1,h=r.children;if(!h&&c&&!u){n+=`<${l}/>`;return}if(!h&&(!c||u)||r.i18nIsDynamicList){n+=`<${o}></${o}>`;return}if(c&&u<=1){let e=eo(h)?h:eE(h,t,i,s);n+=`<${l}>${e}</${l}>`;return}let p=eE(h,t,i,s);n+=`<${o}>${p}</${o}>`;return}if(null===e)return void ee(i,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:s});if(ea(e)){let{format:t,...r}=e,o=Object.keys(r);if(1===o.length){let e=t?`${o[0]}, ${t}`:o[0];n+=`{{${e}}}`;return}ee(i,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:s,child:e});return}ee(i,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:s,child:e})}),n},ey=(e,t,i)=>{let s=e.key||t,n=(0,r.cloneElement)(e,{key:s});return!n.props||!n.props.children||0>i.indexOf(`${t}/>`)&&0>i.indexOf(`${t} />`)?n:(0,r.createElement)(function(){return(0,r.createElement)(r.Fragment,null,n)},{key:s})};e.s(["initReactI18next",0,{type:"3rdParty",init(e){((e={})=>{ep={...ep,...e}})(e.options.react),t=e}}],24340);let eO=(0,r.createContext)();class e_{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}e.s(["Trans",0,function({children:e,count:i,parent:s,i18nKey:n,context:o,tOptions:a={}
1,values:l,defaults:u,components:c,ns:h,i18n:p,t:d,shouldUnescape:f,...g}){let{i18n:E,defaultNS:y}=(0,r.useContext)(eO)||{},O=p||E||t,_=d||O?.t.bind(O);return function({children:e,count:i,parent:s,i18nKey:n,context:o,tOptions:a={},values:l,defaults:u,components:c,ns:h,i18n:p,t:d,shouldUnescape:f,...g}){let E=p||t;if(!E)return er(E,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.",{i18nKey:n}),e;let y=d||E.t.bind(E)||(e=>e),O={...ep,...E.options?.react},_=h||y.ns||E.options?.defaultNS;_=eo(_)?[_]:_||["translation"];let{transDefaultProps:C}=O,m=C?.tOptions?{...C.tOptions,...a}:a,v=f??C?.shouldUnescape,S=C?.values?{...C.values,...l}:l,I=C?.components?{...C.components,...c}:c,T=eE(e,O,E,n),R=u||m?.defaultValue||T||O.transEmptyNodeValue||("function"==typeof n?L(n):n),{hashTransKey:A}=O,N=n||(A?A(T||R):T||R);l=E.options?.interpolation?.defaultVariables?S&&Object.keys(S).length>0?{...S,...E.options.interpolation.defaultVariables}:{...E.options.interpolation.defaultVariables}:S;let b=(e=>{let t={};if(!e)return t;let i=e=>{eg(e).forEach(e=>{eo(e)||(ed(e)?i(ef(e)):ea(e)&&!(0,r.isValidElement)(e)&&Object.assign(t,e))})};return i(e),t})(e);b&&"number"==typeof b.count&&void 0===i&&(i=b.count);let P=!l&&(void 0===i||E.options?.interpolation?.alwaysFormat)&&e?{interpolation:{...m.interpolation,prefix:"#$?",suffix:"?$#"}}:m.interpolation,D={...m,context:o||m.context,count:i,...l,...P,defaultValue:R,ns:_},w=N?y(N,D):R;w===N&&R&&(w=R);let k=((e,t,r,i)=>{if(!e)return null;if(Array.isArray(e))return e.map((e,r)=>ey(e,r,t));if(ea(e)){let r;return r={},Object.keys(e).forEach(i=>{Object.assign(r,{[i]:ey(e[i],i,t)})}),r}return er(r,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:i}),null})(I,w,E,n),x=k||e,M=null;!(!ea(k)||Array.isArray(k))&&Object.keys(k).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0)&&(M=k,x=e);let U=((e,t,i,s,n,o,a)=>{if(""===i)return[];let l=n.transKeepBasicHtmlNodesFor||[],u=i&&new RegExp(l.map(e=>`<${e}`).join("|")).test(i);if(!e&&!t&&!u&&!a)return[i];let c=t??{},h=e=>{eg(e).forEach(e=>{eo(e)||(ed(e)?h(ef(e)):ea(e)&&!(0,r.isValidElement)(e)&&Object.assign(c,e))})};h(e);let p=Object.keys(c),d=Z(`<0>${i}</0>`,{allowedTags:e=>/^\d+$/.test(e)||l.indexOf(e)>-1||p.indexOf(e)>-1}),f={...c,...o},g=(e,t,i)=>{let s=ef(e),n=y(s,t.children,i);return eg(s).every(r.isValidElement)&&0===n.length||e.props?.i18nIsDynamicList?s:n},E=(e,t,i,s,n)=>{e.dummy?(e.children=t,i.push((0,r.cloneElement)(e,{key:s},n?void 0:t))):i.push(...r.Children.map([e],e=>{if(e.type===r.Fragment||e.props?.i18nIsDynamicList!==void 0){let i={key:s};return e&&e.props&&Object.keys(e.props).forEach(t=>{"children"!==t&&"i18nIsDynamicList"!==t&&(i[t]=e.props[t])}),(0,r.createElement)(e.type,i,n?null:t)}let i={key:s};return e&&e.props&&Object.keys(e.props).forEach(t=>{"ref"!==t&&"children"!==t&&(i[t]=e.props[t])}),(0,r.cloneElement)(e,i,n?null:t)}))},y=(e,i,o)=>{let c=eg(e),h=eg(i),p={};return h.reduce((e,i,h)=>{let d=i.children?.[0]?.content&&s.services.interpolator.interpolate(i.children[0].content,f,s.language);if("tag"===i.type){var O,_;let C,m=c[parseInt(i.name,10)];!m&&t&&(m=t[i.name]),1!==o.length||m||(m=o[0][i.name]),m||(m={});let v={...i.attrs};a&&Object.keys(v).forEach(e=>{let t=v[e];eo(t)&&(v[e]=eh(t))});let S=0!==Object.keys(v).length?(O={props:v},(C={..._=m}).props={..._.props,...O.props},C):m,I=(0,r.isValidElement)(S),L=I&&ed(i,!0)&&!i.voidElement,T=u&&ea(S)&&S.dummy&&!I,R=ea(t)&&Object.hasOwnProperty.call(t,i.name);if(eo(S)){let t=s.services.interpolator.interpolate(S,f,s.language);e.push(t)}else if(ed(S)||L){let t=g(S,i,o);E(S,t,e,h)}else if(T)E(S,y(c,i.children,o),e,h);else if(Number.isNaN(parseFloat(i.name)))if(R){let t=g(S,i,o);E(S,t,e,h,i.voidElement)}else if(n.transSupportBasicHtmlNodes&&l.indexOf(i.name)>-1)if(i.voidElement)e.push((0,r.createElement)(i.name,{key:`${i.name}-${h}`}));else{let t,s=p[i.name]||0;p[i.name]=s+1;let n=0;for(let e=0;e<c.length;e+=1){let o=c[e];if((0,r.isValidElement)(o)&&o.type===i.name){if(n===s){t=o;break}n+=1}}let a=y(t?eg(ef(t)):c,i.children,o);e.push((0,r.createElement)(i.name,{key:`${i.name}-${h}`},a))}else if(i.voidElement)e.push(`<${i.name} />`);else{let t=y(c,i.children,o);e.push(`<${i.name}>${t}</${i.name}>`)}else if(ea(S)&&!I){let t=i.children[0]?d:null;t&&e.push(t)}else E(S,d,e,h,1!==i.children.length||!d)}else if("text"===i.type){let t=n.transWrapTextNodes,o="function"==typeof n.unescape?n.unescape:ep.unescape,l=a?o(s.services.interpolator.interpolate(i.content,f,s.language)):s.services.interpolator.interpolate(i.content,f,s.language);t?e.push((0,r.createElement)(t,{key:`${i.name}-${h}`},l)):e.push(l)}return e},[])};return ef(y([{dummy:!0,children:e||[]}],d,eg(e||[]))[0])})(x,M,w,E,O,D,v),F=s??O.defaultTransParent;return F?(0,r.createElement)(F,g,U):U}({children:e,count:i,parent:s,i18nKey:n,context:o,tOptions:a,values:l,defaults:u,components:c,ns:h||_?.ns||y||O?.options?.defaultNS,i18n:O,t:d,shouldUne
1scape:f,...g})}],9007);let eC={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"©","&reg;":"®","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"§","&para;":"¶","&middot;":"·","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"£","&yen;":"¥","&cent;":"¢","&curren;":"¤","&times;":"×","&divide;":"÷","&minus;":"−","&plusmn;":"±","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"°","&micro;":"µ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;
1":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&iexcl;":"¡","&iquest;":"¿","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"ª","&ordm;":"º","&macr;":"¯","&acute;":"´","&cedil;":"¸","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"},em=RegExp(Object.keys(eC).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");var ev=e.i(90979);let eS={t:(e,t)=>{if(eo(t))return t;if(ea(t)&&eo(t.defaultValue))return t.defaultValue;if("function"==typeof e)return"";if(Array.isArray(e)){let t=e[e.length-1];return"function"==typeof t?"":t}return e},ready:!1},eI=()=>()=>{};e.s(["useTranslation",0,(e,i={})=>{let{i18n:s}=i,{i18n:n,defaultNS:o}=(0,r.useContext)(eO)||{},a=s||n||t;a&&!a.reportNamespaces&&(a.reportNamespaces=new e_),a||er(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");let l=(0,r.useMemo)(()=>({...ep,...a?.options?.react,...i}),[a,i]),{useSuspense:u,keyPrefix:c}=l,h=e||o||a?.options?.defaultNS,p=eo(h)?[h]:h||["translation"],d=(0,r.useMemo)(()=>p,p);a?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,r.useRef)(0),g=(0,r.useCallback)(e=>{if(!a)return eI;let{bindI18n:t,bindI18nStore:r}=l,i=()=>{f.current+=1,e()};return t&&a.on(t,i),r&&a.store.on(r,i),()=>{t&&t.split(" ").forEach(e=>a.off(e,i)),r&&r.split(" ").forEach(e=>a.store.off(e,i))}},[a,l]),E=(0,r.useRef)(),y=(0,r.useCallback)(()=>{if(!a)return eS;let e=!!(a.isInitialized||a.initializedStoreOnce)&&d.every(e=>((e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,i)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e))return!1}}):(er(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,a,l)),t=i.lng||a.language,r=f.current,s=E.current;if(s&&s.ready===e&&s.lng===t&&s.keyPrefix===c&&s.revision===r)return s;let n={t:a.getFixedT(t,"fallback"===l.nsMode?d:d[0],c,{scopeNs:d}),ready:e,lng:t,keyPrefix:c,revision:r};return E.current=n,n},[a,d,c,l,i.lng]),[O,_]=(0,r.useState)(0),{t:C,ready:m}=(0,ev.useSyncExternalStore)(g,y,y);(0,r.useEffect)(()=>{if(a&&!m&&!u){let e=()=>_(e=>e+1);i.lng?en(a,i.lng,d,e):es(a,d,e)}},[a,i.lng,d,m,u,O]);let v=a||{},S=(0,r.useRef)(null),I=(0,r.useRef)(),L=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let r=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(r,"__original"))try{Object.defineProperty(r,"__original",{value:e,writable:!1,enumerable:!1,
1configurable:!1})}catch(e){}return r},T=(0,r.useMemo)(()=>{let e=v&&`${v.language}|${v.resolvedLanguage}|${v.languages?.join(",")}`,t=v;S.current&&S.current.__original===v?I.current!==e?(S.current=t=L(v),I.current=e):t=S.current:(S.current=t=L(v),I.current=e);let r=m||u?C:(...e)=>(er(a,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),C(...e)),i=[r,t,m];return i.t=r,i.i18n=t,i.ready=m,i},[C,v,m,v.resolvedLanguage,v.language,v.languages]);if(a&&u&&!m)throw new Promise(e=>{let t=()=>e();i.lng?en(a,i.lng,d,t):es(a,d,t)});return T}],71179),e.s(["I18nextProvider",0,function({i18n:e,defaultNS:t,children:i}){let s=(0,r.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,r.createElement)(eO.Provider,{value:s},i)}],47977),e.s([],47620)},60121,(e,t,r)=>{"use strict";var i=e.r(91788),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=i.useState,o=i.useEffect,a=i.useLayoutEffect,l=i.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!s(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),i=n({inst:{value:r,getSnapshot:t}}),s=i[0].inst,c=i[1];return a(function(){s.value=r,s.getSnapshot=t,u(s)&&c({inst:s})},[e,r,t]),o(function(){return u(s)&&c({inst:s}),e(function(){u(s)&&c({inst:s})})},[e]),l(r),r};r.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:c},90979,(e,t,r)=>{"use strict";e.i(50461),t.exports=e.r(60121)},40238,(e,t,r)=>{"use strict";var i=e.r(91788),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=i.useSyncExternalStore,o=i.useRef,a=i.useEffect,l=i.useMemo,u=i.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,i,c){var h=o(null);if(null===h.current){var p={hasValue:!1,value:null};h.current=p}else p=h.current;var d=n(e,(h=l(function(){function e(e){if(!a){if(a=!0,n=e,e=i(e),void 0!==c&&p.hasValue){var t=p.value;if(c(t,e))return o=t}return o=e}if(t=o,s(n,e))return t;var r=i(e);return void 0!==c&&c(t,r)?(n=e,t):(n=e,o=r)}var n,o,a=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,i,c]))[0],h[1]);return a(function(){p.hasValue=!0,p.value=d},[d]),u(d),d}},19979,(e,t,r)=>{"use strict";e.i(50461),t.exports=e.r(40238)},25675,22276,e=>{"use strict";var t=e.i(91788),r=e.i(19979),i={notify(){},get:()=>[]},s="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,n="u">typeof navigator&&"ReactNative"===navigator.product,o=s||n?t.useLayoutEffect:t.useEffect,a=Symbol.for("react-redux-context"),l="u">typeof globalThis?globalThis:{},u=function(){if(!t.createContext)return{};let e=l[a]??=new Map,r=e.get(t.createContext);return r||(r=t.createContext(null),e.set(t.createContext,r)),r}();function c(e=u){return function(){return t.useContext(e)}}var h=c();function p(e=u){let t=e===u?h:c(e),r=()=>{let{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var d=p(),f=function(e=u){let t=e===u?d:p(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}(),g=(e,t)=>e===t,E=function(e=u){let i=e===u?h:c(e),s=(e,s={})=>{let{equalityFn:n=g}="function"==typeof s?{equalityFn:s}:s,{store:o,subscription:a,getServerState:l}=i();t.useRef(!0);let u=t.useCallback({[e.name]:t=>e(t)}[e.name],[e]),c=(0,r.useSyncExternalStoreWithSelector)(a.addNestedSub,o.getState,l||o.getState,u,n);return t.useDebugValue(c),c};return Object.assign(s,{withTypes:()=>s}),s}();e.s(["Provider",0,function(e){let{children:r,context:s,serverState:n,store:a}=e,l=t.useMemo(()=>{let e=function(e){let t,r=i,s=0,n=!1;function o(){u.onStateChange&&u.onStateChange()}function a(){if(s++,!t){let i,s;t=e.subscribe(o),i=null,s=null,r={clear(){i=null,s=null},notify(){let e=i;for(;e;)e.callback(),e=e.next},get(){let e=[],t=i;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0,r=s={callback:e,next:null,prev:s};return r.prev?r.prev.next=r:i=r,function(){t&&null!==i&&(t=!1,r.next?r.next.prev=r.prev:s=r.prev,r.prev?r.prev.next=r.next:i=r.next)}}}}}function l(){s--,t&&0===s&&(t(),t=void 0,r.clear(),r=i)}let u={addNestedSub:function(e){a();let t=r.subscribe(e),i=!1;return()=>{i||(i=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return n},trySubscribe:function(){n||(n=!0,a())},tryUnsubscribe:function(){n&&(n=!1,l())},getListeners:()=>r};return u}(a);return{store:a,subscription:e,getServerState:n?()=>n:void 0}},[a,n]),c=t.useMemo(()=>a.getState(),[a]);return o(()=>{let{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==a.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[l,c]),t.createElement((s||u).Provider,{value:l},r)},"useDispatch",0,f,"useSelector",0,E],22276),e.s(["usePhDispatch",0,()=>f(),"usePhSelector",0,E],25675)},31582,50411,40599,e=>{"use strict";var t=e.i(88302),r=e.i(91146);let i={userLevel:r.UserLevel.UNAUTHORIZED,userId:null,dbUserId:null},s=(0,t.createSlice)({name:"auth",initialState:i,reducers:{updateAuth:(e,t)=>({dbUserId:t.payload.dbUserId,userId:t.payload.userId,userLevel:t.payload.userLevel,firstName:t.payload.firstName,thumbUrl:t.payload.thumbUrl}),logoutUser:()=>({dbUserId:null,userId:null,userLevel:r.UserLevel.UNAUTHORIZED,firstName:void 0,thumbUrl:void 0})}}),{updateAuth:n,logoutUser:o}=s.actions,a=s.reducer;e.s(["authReducer",0,a,"logoutUser",0,o,"updateAuth",0,n],31582);
1class l extends Error{}l.prototype.name="InvalidTokenError";var u=e.i(9428);e.s(["decodeJwt",0,e=>{try{return function(e,t){let r;if("string"!=typeof e)throw new l("Invalid token specified: must be a string");t||(t={});let i=+(!0!==t.header),s=e.split(".")[i];if("string"!=typeof s)throw new l(`Invalid token specified: missing part #${i+1}`);try{r=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var r;return r=t,decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return atob(t)}}(s)}catch(e){throw new l(`Invalid token specified: invalid base64 for part #${i+1} (${e.message})`)}try{return JSON.parse(r)}catch(e){throw new l(`Invalid token specified: invalid json for part #${i+1} (${e.message})`)}}(e)}catch(e){return u.PhLogger.LogError(e),null}}],50411),e.s(["getLoginReturnUrl",0,function(e){return`https://printableheroes.com${e}`}],40599)},34998,87081,e=>{"use strict";var t,r,i=e.i(88302),s=e.i(8437),n=((t={})[t.Milimeters=0]="Milimeters",t[t.Pixels=1]="Pixels",t),o=((r={})[r.A4=0]="A4",r[r.A3=1]="A3",r[r.LETTER=2]="LETTER",r[r.A4LANDSCAPE=3]="A4LANDSCAPE",r[r.A3LANDSCAPE=4]="A3LANDSCAPE",r[r.LETTERLANDSCAPE=5]="LETTERLANDSCAPE",r[r.Tabloid=6]="Tabloid",r[r.Ledger=7]="Ledger",r);let a=[{name:"A4",pageType:0,widthInMilimeters:210,heightInMilimeters:297},{name:"A4 Landscape",pageType:3,widthInMilimeters:297,heightInMilimeters:210},{name:"A3",pageType:1,widthInMilimeters:297,heightInMilimeters:420},{name:"A3 Landscape",pageType:4,widthInMilimeters:420,heightInMilimeters:297},{name:"Letter",pageType:2,widthInMilimeters:216,heightInMilimeters:279},{name:"Letter Landscape",pageType:5,widthInMilimeters:279,heightInMilimeters:216},{name:"Tabloid",widthInMilimeters:279,heightInMilimeters:432,pageType:6},{name:"Ledger",widthInMilimeters:432,heightInMilimeters:279,pageType:7}];function l(e){return a.find(t=>t.pageType===e)}e.s(["GetHeight",0,function(e,t){return 0===e?l(t).heightInMilimeters:(0,s.MillimetersToPixels)(l(t).heightInMilimeters)},"GetPageSize",0,l,"GetPageSizeByWidthAndHeight",0,function(e,t){let r=a.find(r=>r.widthInMilimeters===e&&r.heightInMilimeters===t);return r&&r.pageType},"GetWidth",0,function(e,t){return 0===e?l(t).widthInMilimeters:(0,s.MillimetersToPixels)(l(t).widthInMilimeters)},"PageSizes",0,a,"PageSizesEnum",()=>o,"UnitOfLength",()=>n],87081);let u={lastUsedPageSize:o.A4,lastUsedMargin:18,lastUsedShowMargin:!1,lastUsedShowSilhouette:!0,lastUsedGroupSameMinis:!0,autoPack:!0},c={npsSubmitDate:void 0,pdfCreator:u},h=(0,i.createSlice)({name:"user",initialState:c,reducers:{updateUser:(e,t)=>({...c,...e,...t.payload}),updateUserPdfCreator:(e,t)=>({...c,...e,pdfCreator:{...u,...e.pdfCreator,...t.payload}})}}),{updateUser:p,updateUserPdfCreator:d}=h.actions,f=h.reducer;e.s(["defaultPdfCreatorState",0,u,"updateUser",0,p,"updateUserPdfCreator",0,d,"userReducer",0,f],34998)},44961,e=>{"use strict";e.i(50461);var t=e.i(25675),r=e.i(91788);let i=null,s=null,n=[],o=e=>{i?e(i):n.push(e)};s=e.A(56546).then(({default:e})=>{for(e.init("48fa3daa49e26350aded37595ca1cfb7",{autocapture:{pageview:"full-url",click:!1,dead_click:!1,input:!0,rage_click:!0,scroll:!0,submit:!0,capture_text_content:!1},persistence:"localStorage",record_sessions_percent:25,record_heatmap_data:!0,opt_out_tracking_by_default:!0,record_mask_text_selector:"",record_block_selector:"",record_unmask_input_selector:"#miniBrowseSearchbar",debug:!1}),i=e;n.length;){let t=n.shift();try{t?.(e)}catch{}}return e});let a={track:(...e)=>{o(t=>{t.track(...e)})},register:(...e)=>{o(t=>{t.register(...e)})},register_once:(...e)=>{o(t=>{t.register_once(...e)})},people:{set:(...e)=>{o(t=>{t.people.set(...e)})}},time_event:(...e)=>{o(t=>{t.time_event(...e)})},has_opted_out_tracking:()=>i?.has_opted_out_tracking()??!0,has_opted_in_tracking:()=>i?.has_opted_in_tracking()??!1,opt_in_tracking:(...e)=>{o(t=>{t.opt_in_tracking(...e)})},opt_out_tracking:(...e)=>{o(t=>{t.opt_out_tracking(...e)})},identify:(...e)=>{o(t=>{t.identify(...e)})}};e.s(["mixpanelCustom",0,a,"useMixpanelSingleton",0,()=>{let e=(0,t.usePhSelector)(e=>e.user),i=(0,t.usePhSelector)(e=>e.auth),s=e.cookieConsentStatusV2?.analytics_storage==="granted";(()=>{let e=(0,t.usePhSelector)(e=>e.user),i=e.cookieConsentStatusV2?.analytics_storage==="granted",[s,n]=(0,r.useState)(null),o=(0,r.useRef)(!1);o.current=a.has_opted_in_tracking(),(0,r.useEffect)(()=>{window.location.href&&n({url:new URL(window.location.href),title:window.document.title,time:new Date})},[]),(0,r.useEffect)(()=>{i&&o.current&&s&&a.track("$mp_web_page_view",{current_page_title:s.title,current_domain:s.url.hostname,current_url_path:s.url.pathname,current_url_protocol:s.url.protocol,current_url_search:s.url.search,$time:s.time.getTime()})},[i])})(),(0,r.useEffect)(()=>{s&&a.has_opted_out_tracking()?a.opt_in_tracking():!s&&a.has_opted_in_tracking()&&a.opt_out_tracking()},[s]),(0,r.useEffect)(()=>{a.identify(i.dbUserId?.toString()),a.people.set("user_level",+i.userLevel)},[i.dbUserId,i.userLevel])}])}]);

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.