1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MainLayout-DhIfxfup.js","assets/SafeTooltip-85STtDia.js","assets/inbox.hooks-CiZ30wq_.js","assets/mobile-shell.store-CO4jkVlA.js","assets/index-DqQ_tARm.js","assets/ResizeDivider-CWU8KnZS.js","assets/useControlledState-DuS597_X.js","assets/index-Dt8uQdk8.js","assets/index-D1CjtfqC.js","assets/MessageContent-CBnom895.js","assets/KeyCode-_5CS0hxx.js","assets/EllipsisOutlined-CeKmazH9.js","assets/PurePanel-JzslRdsg.js","assets/collapse-pgbaNnxn.js","assets/move-D_tsn10R.js","assets/index-cw-PV9jk.js","assets/CheckOutlined-CaEqZPrQ.js","assets/ThinkingIndicator-G0marVZD.js","assets/integrations.hooks-DYsb2owp.js","assets/index-C7osFtbK.js","assets/oauth.api-D0FbRw1o.js","assets/index-DjA_WSCN.js","assets/MessageOutlined-B3ej2yhV.js","assets/index-BzfRe8HF.js","assets/TextArea-BVMFl-Sa.js","assets/billing.hooks-DfbjsxQl.js","assets/index-Cu2Oo36B.js","assets/index-KUCcBvKJ.js","assets/index-CdqOGyAT.js","assets/index-C6lSRew-.js","assets/useProductExplainers.hook-DHrkaCxC.js","assets/activation.analytics-D0MklFcY.js","assets/DeleteOutlined-DbYa6quO.js","assets/useUseCasesLibrary.hook-C0vfvp57.js","assets/useProductAnalytics.hook-lnscMVa8.js","assets/contexts.types-IzYSxLHn.js","assets/share-network.utils-WHo--JTb.js","assets/AccountConnect-DvvAP4dW.js","assets/account-access.api-DXTdXR8K.js","assets/Chat-C3Cq22fW.js","assets/useIsMobileViewport.hook-Cr_qAKro.js","assets/NewBoardModal-B_3wEkoN.js","assets/ExclamationCircleOutlined-DEM5agrr.js","assets/index-DItBJaxx.js","assets/proxy-CtoSBaKR.js","assets/PlusOutlined-MDck8Dfh.js","assets/index-K1LNWLvT.js","assets/use-admitted-destination.hook-C1bfmqZE.js","assets/ProfileView-BaSz1al2.js","assets/index-DPvGb8z2.js","assets/index-CqNWiNTA.js","assets/ContextsView-jyMryNMt.js","assets/ShareTarget-v4cFu1K1.js","assets/UserAuth-BYMBe3i8.js","assets/useAuthOutcomeAnalytics.hook-DHkqRzPm.js","assets/Authorize-CGgAunAS.js","assets/ForgotPassword-9JULUCt7.js","assets/ResetPassword-BPN809xP.js","assets/VerifyEmail-B1Sim5HJ.js","assets/TelegramSignIn-DxoYjQwa.js","assets/EmailSignIn-hTC4o-QY.js","assets/AccountDeletionConfirm-D-ji827w.js","assets/IntegrationsPage-DEJTBXbm.js","assets/JobsView-Bn000ZJm.js","assets/InboxView-D4UEFzph.js","assets/HowItWorks--XH8jm_y.js","assets/ExplainerPage-6GizP26F.js","assets/WaysToUse-CLWeaxN7.js"])))=>i.map(i=>d[i]); 2function k8(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const OY="modulepreload",IY=function(t){return"/"+t},FL={},ct=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let u=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=a?.nonce||a?.getAttribute("nonce");i=u(n.map(h=>{if(h=IY(h),h in FL)return;FL[h]=!0;const p=h.endsWith(".css"),v=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${v}`))return;const y=document.createElement("link");if(y.rel=p?"stylesheet":OY,p||(y.as="script"),y.crossOrigin="",y.href=h,c&&y.setAttribute("nonce",c),document.head.appendChild(y),p)return new Promise((E,S)=>{y.addEventListener("load",E),y.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(a){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=a,window.dispatchEvent(c),!c.defaultPrevented)throw a}return i.then(a=>{for(const c of a||[])c.status==="rejected"&&s(c.reason);return e().catch(s)})};var HS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ju(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var S5={exports:{}},Y0={};var UL;function PY(){if(UL)return Y0;UL=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,s){var a=null;if(s!==void 0&&(a=""+s),i.key!==void 0&&(a=""+i.key),"key"in i){s={};for(var c in i)c!=="key"&&(s[c]=i[c])}else s=i;return i=s.ref,{$$typeof:t,type:r,key:a,ref:i!==void 0?i:null,props:s}}return Y0.Fragment=e,Y0.jsx=n,Y0.jsxs=n,Y0}var BL;function LY(){return BL||(BL=1,S5.exports=PY()),S5.exports}var W=LY();function M8(t,e){return function(){return t.apply(e,arguments)}}const{toString:kY}=Object.prototype,{getPrototypeOf:Km}=Object,{iterator:rb,toStringTag:D8}=Symbol,U2=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),b1=(t,e)=>{let n=t;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),U2(n,e))return!0;n=Km(n)}return!1},MY=(t,e)=>t!=null&&b1(t,e)?t[e]:void 0,t4=(t=>e=>{const n=kY.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),La=t=>(t=t.toLowerCase(),e=>t4(e)===t),ax=t=>e=>typeof e===t,{isArray:dp}=Array,fp=ax("undefined");function yv(t){return t!==null&&!fp(t)&&t.constructor!==null&&!fp(t.constructor)&&Eo(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const N8=La("ArrayBuffer");function DY(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&N8(t.buffer),e}
vendor: 3,411 bytes, line 2
2const NY=ax("string"),Eo=ax("function"),$8=ax("number"),_v=t=>t!==null&&typeof t=="object",$Y=t=>t===!0||t===!1,Nw=t=>{if(!_v(t))return!1;const e=Km(t);return(e===null||e===Object.prototype||Km(e)===null)&&!b1(t,D8)&&!b1(t,rb)},FY=t=>{if(!_v(t)||yv(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},UY=La("Date"),BY=La("File"),jY=t=>!!(t&&typeof t.uri<"u"),HY=t=>t&&typeof t.getParts<"u",zY=La("Blob"),VY=La("FileList"),qY=La("Set"),WY=t=>_v(t)&&Eo(t.pipe);function GY(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const jL=GY(),HL=typeof jL.FormData<"u"?jL.FormData:void 0,KY=t=>{if(!t)return!1;if(HL&&t instanceof HL)return!0;const e=Km(t);if(!e||e===Object.prototype||!Eo(t.append))return!1;const n=t4(t);return n==="formdata"||n==="object"&&Eo(t.toString)&&t.toString()==="[object FormData]"},YY=La("URLSearchParams"),[XY,QY,ZY,JY]=["ReadableStream","Request","Response","Headers"].map(La),eX=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ib(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),dp(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{if(yv(t))return;const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let c;for(r=0;r<a;r++)c=s[r],e.call(null,t[c],c,t)}}function F8(t,e){if(yv(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const Vh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,U8=t=>!fp(t)&&t!==Vh;function LA(...t){const{caseless:e,skipUndefined:n}=U8(this)&&this||{},r={},i=(s,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=e&&typeof a=="string"&&F8(r,a)||a,u=U2(r,c)?r[c]:void 0;Nw(u)&&Nw(s)?r[c]=LA(u,s):Nw(s)?r[c]=LA({},s):dp(s)?r[c]=s.slice():(!n||!fp(s))&&(r[c]=s)};for(let s=0,a=t.length;s<a;s++){const c=t[s];if(!c||yv(c)||(ib(c,i),typeof c!="object"||dp(c)))continue;const u=Object.getOwnPropertySymbols(c);for(let h=0;h<u.length;h++){const p=u[h];fX.call(c,p)&&i(c[p],p)}}return r}const tX=(t,e,n,{allOwnKeys:r}={})=>(ib(e,(i,s)=>{n&&Eo(i)?Object.defineProperty(t,s,{__proto__:null,value:M8(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),nX=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),rX=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},iX=(t,e,n,r)=>{let i,s,a;const c={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],(!r||r(a,t,e))&&!c[a]&&(e[a]=t[a],c[a]=!0);t=n!==!1&&Km(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},sX=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},oX=t=>{if(!t)return null;if(dp(t))return t;let e=t.length;if(!$8(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},aX=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Km(Uint8Array)),lX=(t,e)=>{const r=(t&&t[rb]).call(t);let i;for(;
2(i=r.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},cX=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},uX=La("HTMLFormElement"),dX=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),{propertyIsEnumerable:fX}=Object.prototype,hX=La("RegExp"),B8=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};ib(n,(i,s)=>{let a;(a=e(i,s,t))!==!1&&(r[s]=a||i)}),Object.defineProperties(t,r)},pX=t=>{B8(t,(e,n)=>{if(Eo(t)&&["arguments","caller","callee"].includes(n))return!1;const r=t[n];if(Eo(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},gX=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return dp(t)?r(t):r(String(t).split(e)),n},mX=()=>{},vX=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function yX(t){return!!(t&&Eo(t.append)&&t[D8]==="FormData"&&t[rb])}const _X=t=>{const e=new WeakSet,n=r=>{if(_v(r)){if(e.has(r))return;if(yv(r))return r;if(!("toJSON"in r)){e.add(r);let i;if(qY(r)){i=[];for(const s of r){const a=n(s);!fp(a)&&i.push(a)}}else i=dp(r)?[]:{},ib(r,(s,a)=>{const c=n(s);!fp(c)&&(i[a]=c)});return e.delete(r),i}}return r};return n(t)},bX=La("AsyncFunction"),EX=t=>t&&(_v(t)||Eo(t))&&Eo(t.then)&&Eo(t.catch),j8=((t,e)=>t?setImmediate:e?((n,r)=>(Vh.addEventListener("message",({source:i,data:s})=>{i===Vh&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Vh.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Eo(Vh.postMessage)),SX=typeof queueMicrotask<"u"?queueMicrotask.bind(Vh):typeof process<"u"&&process.nextTick||j8,H8=t=>t!=null&&Eo(t[rb]),wX=t=>t!=null&&b1(t,rb)&&H8(t),oe={isArray:dp,isArrayBuffer:N8,isBuffer:yv,isFormData:KY,isArrayBufferView:DY,isString:NY,isNumber:$8,isBoolean:$Y,isObject:_v,isPlainObject:Nw,isEmptyObject:FY,isReadableStream:XY,isRequest:QY,isResponse:ZY,isHeaders:JY,isUndefined:fp,isDate:UY,isFile:BY,isReactNativeBlob:jY,isReactNative:HY,isBlob:zY,isRegExp:hX,isFunction:Eo,isStream:WY,isURLSearchParams:YY,isTypedArray:aX,isFileList:VY,forEach:ib,merge:LA,extend:tX,trim:eX,stripBOM:nX,inherits:rX,toFlatObject:iX,kindOf:t4,kindOfTest:La,endsWith:sX,toArray:oX,forEachEntry:lX,matchAll:cX,isHTMLForm:uX,hasOwnProperty:U2,hasOwnProp:U2,hasOwnInPrototypeChain:b1,getSafeProp:MY,reduceDescriptors:B8,freezeMethods:pX,toObjectSet:gX,toCamelCase:dX,noop:mX,toFiniteNumber:vX,findKey:F8,global:Vh,isContextDefined:U8,isSpecCompliantForm:yX,toJSONObject:_X,isAsyncFn:bX,isThenable:EX,setImmediate:j8,asap:SX,isIterable:H8,isSafeIterable:wX},CX=oe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xX=t=>{const e={};let n,r,i;return t&&t.split(` 3`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim();const c=oe.hasOwnProp(e,n);!n||c&&oe.hasOwnProp(CX,n)||(n==="set-cookie"?c?e[n].push(r):e[n]=[r]:e[n]=c?e[n]+", "+r:r)}),e};function TX(t){let e=0,n=t.length;for(;e<n;){const r=t.charCodeAt(e);if(r!==9&&r!==32)break;e+=1}for(;n>e;){const r=t.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}const RX=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),AX=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function n4(t,e){return oe.isArray(t)?t.map(n=>n4(n,e)):TX(String(t).replace(e,""))}const OX=t=>n4(t,RX),IX=t=>n4(t,AX);function z8(t){const e=Object.create(null);return oe.forEach(t.toJSON(),(n,r)=>{e[r]=IX(n)}),e}const zL=Symbol("internals");function X0(t){return t&&String(t).trim().toLowerCase()}function $w(t){return t===!1||t==null?t:oe.isArray(t)?t.map($w):OX(String(t))}function PX(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const LX=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function w5(t){let e=0,n=t.length;for(;e<n;){const r=t.charCodeAt(e);if(r!==9&&r!==32)break;e+=1}for(;n>e;){const r=t.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}function kX(t){const e=t.length-1;if(e<1||t.charCodeAt(0)!==34||t.charCodeAt(e)!==34)return t;let n="";for(let r=1;r<e;r++){const i=t.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=e))return t;n+=t[r]}return n}function MX(t){const e=Object.create(null),n=String(t);let r=0,i=!1,s=!1;function a(c){const u=w5(n.slice(r,c)),h=u.indexOf("=");if(h<1)return;const p=w5(u.slice(0,h));if(!LX.test(p))return;const v=p.toLowerCase();if(v==="__proto__"||v==="constructor"||v==="prototype")return;const y=w5(u.slice(h+1));e[v]=kX(y)}for(let c=0;c<n.length;c++){const u=n.charCodeAt(c);i?s?s=!1:u===92?s=!0:u===34&&(i=!1):u===34?i=!0:(u===44||u===59)&&(a(c),r=c+1)}return a(n.length),e}const DX=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function C5(t,e,n,r,i){if(oe.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!oe.isString(e)){if(oe.isString(r))return e.indexOf(r)!==-1;if(oe.isRegExp(r))return r.test(e)}}function NX(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function $X(t,e){const n=oe.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{__proto__:null,value:function(i,s,a){return this[r].call(this,e,i,s,a)},configurable:!0})})}let xs=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function s(c,u,h){const p=X0(u);if(!p)return;const v=oe.findKey(i,p);(!v||i[v]===void 0||h===!0||h===void 0&&i[v]!==!1)&&(i[v||u]=$w(c))}const a=(c,u)=>oe.forEach(c,(h,p)=>s(h,p,u));if(oe.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(oe.isString(e)&&(e=e.trim())&&!DX(e))a(xX(e),n);else if(oe.isObject(e)&&oe.isSafeIterable(e)){let c=Object.create(null),u,h;for(const p of e){if(!oe.isArray(p))throw new TypeError("Object iterator must return a key-value pair");h=p[0],oe.hasOwnProp(c,h)?(u=c[h],c[h]=oe.isArray(u)?[...u,p[1]]:[u,p[1]]):c[h]=p[1]}a(c,n)}else e!=null&&s(n,e,r);return this}get(e,n){if(e=X0(e),e){const r=oe.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return PX(i);if(oe.isFunction(n))return n.call(this,i,r);if(oe.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=X0(e),e){const r=oe.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||C5(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function s(a){if(a=X0(a),a){const c=oe.findKey(r,a);c&&(!n||C5(r,r[c],c,n))&&(delete r[c],i=!0)}}return oe.isArray(e)?e.forEach(s):s(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!e||C5(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const n=this,r={};return oe.forEach(this,(i,s)=>{const a=oe.findKey(r,s);if(a){n[a]=$w(i),delete n[s];return}const c=e?NX(s):String(s).trim();c!==s&&delete n[s],n[c]=$w(i),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return oe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&oe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` 4`)}getSetCookie(){const e=this.get("set-cookie");return oe.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return MX(e)}static concat(e,...n){const r=new this(e);
4return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[zL]=this[zL]={accessors:{}}).accessors,i=this.prototype;function s(a){const c=X0(a);r[c]||($X(i,a),r[c]=!0)}return oe.isArray(e)?e.forEach(s):s(e),this}};xs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);oe.reduceDescriptors(xs.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});oe.freezeMethods(xs);const B2="[REDACTED ****]";function FX(t){if(oe.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(oe.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function UX(t,e){const n=new Set(e.map(s=>String(s).toLowerCase())),r=[],i=s=>{if(s===null||typeof s!="object"||oe.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof xs&&(s=s.toJSON()),r.push(s);let a;if(oe.isArray(s))a=[],s.forEach((c,u)=>{const h=i(c);oe.isUndefined(h)||(a[u]=h)});else{if(!oe.isPlainObject(s)&&FX(s))return r.pop(),s;a=Object.create(null);for(const[c,u]of Object.entries(s)){const h=n.has(c.toLowerCase())?B2:i(u);oe.isUndefined(h)||(a[c]=h)}}return r.pop(),a};return i(t)}function VL(t){try{return String(t)}catch{return""}}function BX(t){return t.errors.map(n=>{try{return n&&n.message?VL(n.message):VL(n)}catch{return""}}).filter(Boolean).join("; ")||t.name||"AggregateError"}let Ze=class V8 extends Error{static from(e,n,r,i,s,a){let c=e.message;!c&&oe.isArray(e.errors)&&e.errors.length&&(c=BX(e));const u=new V8(c,n||e.code,r,i,s);return Object.defineProperty(u,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),u.name=e.name,e.status!=null&&u.status==null&&(u.status=e.status),a&&Object.assign(u,a),u}constructor(e,n,r,i,s){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){const e=this.config,n=e&&oe.hasOwnProp(e,"redact")?e.redact:void 0,r=oe.isArray(n)&&n.length>0?UX(e,n):oe.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};Ze.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ze.ERR_BAD_OPTION="ERR_BAD_OPTION";Ze.ECONNABORTED="ECONNABORTED";Ze.ETIMEDOUT="ETIMEDOUT";Ze.ECONNREFUSED="ECONNREFUSED";Ze.ERR_NETWORK="ERR_NETWORK";Ze.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ze.ERR_DEPRECATED="ERR_DEPRECATED";Ze.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ze.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ze.ERR_CANCELED="ERR_CANCELED";Ze.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ze.ERR_INVALID_URL="ERR_INVALID_URL";Ze.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const jX=null,q8=100;function kA(t){return oe.isPlainObject(t)||oe.isArray(t)}function W8(t){return oe.endsWith(t,"[]")?t.slice(0,-2):t}function x5(t,e,n){return t?t.concat(e).map(function(i,s){return i=W8(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function HX(t){return oe.isArray(t)&&!t.some(kA)}const zX=oe.toFlatObject(oe,{},null,function(e){return/^is[A-Z]/.test(e)});function lx(t,e,n){if(!oe.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=oe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,O){return!oe.isUndefined(O[A])});const r=n.metaTokens,i=n.visitor||S,s=n.dots,a=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,u=n.maxDepth===void 0?q8:n.maxDepth,h=c&&oe.isSpecCompliantForm(e),p=[];if(!oe.isFunction(i))throw new TypeError("visitor must be a function");function v(R){if(R===null)return"";if(oe.isDate(R))return R.toISOString();if(oe.isBoolean(R))return R.toString();if(!h&&oe.isBlob(R))throw new Ze("Blob is not supported. Use a Buffer instead.");if(oe.isArrayBuffer(R)||oe.isTypedArray(R)){if(h&&typeof c=="function")return new c([R]);throw new Ze("Blob is not supported. Use a Buffer instead.",Ze.ERR_NOT_SUPPORT)}return R}function y(R){if(R>u)throw new Ze("Object is too deeply nested ("+R+" levels). Max depth: "+u,Ze.ERR_FORM_DATA_DEPTH_EXCEEDED)}function E(R,A){if(u===1/0)return JSON.stringify(R);const O=[];return JSON.stringify(R,function(L,D){if(!oe.isObject(D))return D;for(;O.length&&O[O.length-1]!==this;)O.pop();
vendor: 4,547 bytes, line 4
4return O.push(D),y(A+O.length-1),D})}function S(R,A,O){let P=R;if(oe.isReactNative(e)&&oe.isReactNativeBlob(R))return e.append(x5(O,A,s),v(R)),!1;if(R&&!O&&typeof R=="object"){if(oe.endsWith(A,"{}"))A=r?A:A.slice(0,-2),R=E(R,1);else if(oe.isArray(R)&&HX(R)||(oe.isFileList(R)||oe.endsWith(A,"[]"))&&(P=oe.toArray(R)))return A=W8(A),P.forEach(function(D,N){!(oe.isUndefined(D)||D===null)&&e.append(a===!0?x5([A],N,s):a===null?A:A+"[]",v(D))}),!1}return kA(R)?!0:(e.append(x5(O,A,s),v(R)),!1)}const x=Object.assign(zX,{defaultVisitor:S,convertValue:v,isVisitable:kA});function C(R,A,O=0){if(!oe.isUndefined(R)){if(y(O),p.indexOf(R)!==-1)throw new Error("Circular reference detected in "+A.join("."));p.push(R),oe.forEach(R,function(L,D){(!(oe.isUndefined(L)||L===null)&&i.call(e,L,oe.isString(D)?D.trim():D,A,x))===!0&&C(L,A?A.concat(D):[D],O+1)}),p.pop()}}if(!oe.isObject(t))throw new TypeError("data must be an object");return C(t),e}function qL(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(r){return e[r]})}function r4(t,e){this._pairs=[],t&&lx(t,this,e)}const G8=r4.prototype;G8.append=function(e,n){this._pairs.push([e,n])};G8.toString=function(e){const n=e?r=>e.call(this,r,qL):qL;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function VX(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function K8(t,e,n){if(!e)return t;t=t||"";const r=oe.isFunction(n)?{serialize:n}:n,i=oe.getSafeProp(r,"encode")||VX,s=oe.getSafeProp(r,"serialize");let a;if(s?a=s(e,r):a=oe.isURLSearchParams(e)?e.toString():new r4(e,r).toString(i),a){const c=t.indexOf("#");c!==-1&&(t=t.slice(0,c)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class WL{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){oe.forEach(this.handlers,function(r){r!==null&&e(r)})}}const i4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},qX=typeof URLSearchParams<"u"?URLSearchParams:r4,WX=typeof FormData<"u"?FormData:null,GX=typeof Blob<"u"?Blob:null,KX={isBrowser:!0,classes:{URLSearchParams:qX,FormData:WX,Blob:GX},protocols:["http","https","file","blob","url","data"]},s4=typeof window<"u"&&typeof document<"u",MA=typeof navigator=="object"&&navigator||void 0,YX=s4&&(!MA||["ReactNative","NativeScript","NS"].indexOf(MA.product)<0),XX=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",QX=s4&&window.location.href||"http://localhost",ZX=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:s4,hasStandardBrowserEnv:YX,hasStandardBrowserWebWorkerEnv:XX,navigator:MA,origin:QX},Symbol.toStringTag,{value:"Module"})),ns={...ZX,...KX};function JX(t,e){return lx(t,new ns.classes.URLSearchParams,{visitor:function(n,r,i,s){return ns.isNode&&oe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}const GL=q8;function Y8(t){if(t>GL)throw new Ze("FormData field is too deeply nested ("+t+" levels). Max depth: "+GL,Ze.ERR_FORM_DATA_DEPTH_EXCEEDED)}function eQ(t){const e=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;(r=n.exec(t))!==null;)Y8(e.length),e.push(r[0]==="[]"?"":r[1]||r[0]);return e}function tQ(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}function X8(t){function e(n,r,i,s){Y8(s);let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),u=s>=n.length;return a=!a&&oe.isArray(i)?i.length:a,u?(oe.hasOwnProp(i,a)?i[a]=oe.isArray(i[a])?i[a].concat(r):[i[a],r]:i[a]=r,!c):((!oe.hasOwnProp(i,a)||!oe.isObject(i[a]))&&(i[a]=[]),e(n,r,i[a],s)&&oe.isArray(i[a])&&(i[a]=tQ(i[a])),!c)}if(oe.isFormData(t)&&oe.isFunction(t.entries)){const n={};return oe.forEachEntry(t,(r,i)=>{e(eQ(r),i,n,0)}),n}return null}const tm=(t,e)=>t!=null&&oe.hasOwnProp(t,e)?t[e]:void 0;function nQ(t,e,n){if(oe.isString(t))try{return(e||JSON.parse)(t),oe.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const sb={transitional:i4,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=oe.isObject(e);
vendor: 11,133 bytes, line 4
4if(s&&oe.isHTMLForm(e)&&(e=new FormData(e)),oe.isFormData(e))return i?JSON.stringify(X8(e)):e;if(oe.isArrayBuffer(e)||oe.isBuffer(e)||oe.isStream(e)||oe.isFile(e)||oe.isBlob(e)||oe.isReadableStream(e))return e;if(oe.isArrayBufferView(e))return e.buffer;if(oe.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(s){const u=tm(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return JX(e,u).toString();if((c=oe.isFileList(e))||r.indexOf("multipart/form-data")>-1){const h=tm(this,"env"),p=h&&h.FormData;return lx(c?{"files[]":e}:e,p&&new p,u)}}return s||i?(n.setContentType("application/json",!1),nQ(e)):e}],transformResponse:[function(e){const n=tm(this,"transitional")||sb.transitional,r=n&&n.forcedJSONParsing,i=tm(this,"responseType"),s=i==="json";if(oe.isResponse(e)||oe.isReadableStream(e))return e;if(e&&oe.isString(e)&&(r&&!i||s)){const c=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e,tm(this,"parseReviver"))}catch(u){if(c)throw u.name==="SyntaxError"?Ze.from(u,Ze.ERR_BAD_RESPONSE,this,null,tm(this,"response")):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ns.classes.FormData,Blob:ns.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};oe.forEach(["delete","get","head","post","put","patch","query"],t=>{sb.headers[t]={}});function T5(t,e){const n=this||sb,r=e||n,i=xs.from(r.headers);let s=r.data;return oe.forEach(t,function(c){s=c.call(n,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Q8(t){return!!(t&&t.__CANCEL__)}let ob=class extends Ze{constructor(e,n,r){super(e??"canceled",Ze.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Z8(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Ze("Request failed with status code "+n.status,n.status>=400&&n.status<500?Ze.ERR_BAD_REQUEST:Ze.ERR_BAD_RESPONSE,n.config,n.request,n))}function rQ(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function iQ(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,s=0,a;return e=e!==void 0?e:1e3,function(u){const h=Date.now(),p=r[s];a||(a=h),n[i]=u,r[i]=h;let v=s,y=0;for(;v!==i;)y+=n[v++],v=v%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),h-a<e)return;const E=p&&h-p;return E?Math.round(y*1e3/E):void 0}}function sQ(t,e){let n=0,r=1e3/e,i,s;const a=(h,p=Date.now())=>{n=p,i=null,s&&(clearTimeout(s),s=null),t(...h)};return[(...h)=>{const p=Date.now(),v=p-n;v>=r?a(h,p):(i=h,s||(s=setTimeout(()=>{s=null,a(i)},r-v)))},()=>i&&a(i)]}const j2=(t,e,n=3)=>{let r=0;const i=iQ(50,250);return sQ(s=>{if(!s||typeof s.loaded!="number")return;const a=s.loaded,c=s.lengthComputable?s.total:void 0,u=Math.max(0,c!=null?Math.min(a,c):a),h=Math.max(0,u-r),p=i(h);r=Math.max(r,u);const v={loaded:u,total:c,progress:c?u/c:void 0,bytes:h,rate:p||void 0,estimated:p&&c?(c-u)/p:void 0,event:s,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(v)},n)},KL=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},YL=(t,e=oe.asap)=>(...n)=>e(()=>t(...n)),oQ=ns.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,ns.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(ns.origin),ns.navigator&&/(msie|trident)/i.test(ns.navigator.userAgent)):()=>!0,aQ=ns.hasStandardBrowserEnv?{write(t,e,n,r,i,s,a){if(typeof document>"u")return;const c=[`${t}=${encodeURIComponent(e)}`];oe.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),oe.isString(r)&&c.push(`path=${r}`),oe.isString(i)&&c.push(`domain=${i}`),s===!0&&c.push("secure"),oe.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const r=e[n].replace(/^\s+/,""),i=r.indexOf("=");if(i!==-1&&r.slice(0,i)===t)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function lQ(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function cQ(t,e){if(!e)return t;let n=t.length;for(;n>0&&t.charCodeAt(n-1)===47;)n--;return t.slice(0,n)+"/"+e.replace(/^\/+/,"")}const uQ=/^https?:(?!\/\/)/i,dQ=/[\t\n\r]/g;function fQ(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}function hQ(t){return fQ(t).replace(dQ,"")}function pQ(t){return t&&t.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,n,r="")=>`${n}${r}${B2}`)}function gQ(t){const e=t.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${B2}@`),n=e.indexOf("#"),i=(n===-1?e:e.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${B2}`);return n===-1?i:`${i}#${pQ(e.slice(n+1))}`}function XL(t,e){if(typeof t=="string"){const n=hQ(t);if(uQ.test(n))throw new Ze(`Invalid URL ${JSON.stringify(gQ(n))}: missing "//" after protocol`,Ze.ERR_INVALID_URL,e)}}function J8(t,e,n,r){XL(e,r);let i=!lQ(e);return t&&(i||n===!1)?(XL(t,r),cQ(t,e)):e}const QL=t=>t instanceof xs?{...t}:t,mQ=t=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(t).concat(Object.getOwnPropertySymbols(t).filter(e=>Object.getOwnPropertyDescriptor(t,e).enumerable)):Object.keys(t);function hp(t,e){t=t||{},e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(p,v,y,E){return oe.isPlainObject(p)&&oe.isPlainObject(v)?oe.merge.call({caseless:E},p,v):oe.isPlainObject(v)?oe.merge({},v):oe.isArray(v)?v.slice():v}function i(p,v,y,E){if(oe.isUndefined(v)){if(!oe.isUndefined(p))return r(void 0,p,y,E)}else return r(p,v,y,E)}function s(p,v){if(!oe.isUndefined(v))return r(void 0,v)}function a(p,v){if(oe.isUndefined(v)){if(!oe.isUndefined(p))return r(void 0,p)}else return r(void 0,v)}function c(p){const v=oe.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!oe.isUndefined(v))if(oe.isPlainObject(v)){if(oe.hasOwnProp(v,p))return v[p]}else return;const y=oe.hasOwnProp(t,"transitional")?t.transitional:void 0;if(oe.isPlainObject(y)&&oe.hasOwnProp(y,p))return y[p]}function u(p,v,y){if(oe.hasOwnProp(e,y))return r(p,v);if(oe.hasOwnProp(t,y))return r(void 0,p)}const h={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:u,headers:(p,v,y)=>i(QL(p),QL(v),y,!0)};return oe.forEach(mQ({...t,...e}),function(v){if(v==="__proto__"||v==="constructor"||v==="prototype")return;const y=oe.hasOwnProp(h,v)?h[v]:i,E=oe.hasOwnProp(t,v)?t[v]:void 0,S=oe.hasOwnProp(e,v)?e[v]:void 0,x=y(E,S,v);oe.isUndefined(x)&&y!==u||(n[v]=x)}),oe.hasOwnProp(e,"validateStatus")&&oe.isUndefined(e.validateStatus)&&c("validateStatusUndefinedResolves")===!1&&(oe.hasOwnProp(t,"validateStatus")?n.validateStatus=r(void 0,t.validateStatus):delete n.validateStatus),n}const vQ=["content-type","content-length"];function yQ(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([r,i])=>{vQ.includes(r.toLowerCase())&&t.set(r,i)})}const _Q=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function eF(t){const e=hp({},t),n=y=>oe.hasOwnProp(e,y)?e[y]:void 0,r=n("data");let i=n("withXSRFToken");const s=n("xsrfHeaderName"),a=n("xsrfCookieName");let c=n("headers");const u=n("auth"),h=n("baseURL"),p=n("allowAbsoluteUrls"),v=n("url");if(e.headers=c=xs.from(c),e.url=K8(J8(h,v,p,e),n("params"),n("paramsSerializer")),u){const y=oe.getSafeProp(u,"username")||"",E=oe.getSafeProp(u,"password")||"";try{c.set("Authorization","Basic "+btoa(y+":"+(E?_Q(E):"")))}catch(S){throw Ze.from(S,Ze.ERR_BAD_OPTION_VALUE,t)}}if(oe.isFormData(r)&&(ns.hasStandardBrowserEnv||ns.hasStandardBrowserWebWorkerEnv||oe.isReactNative(r)?c.setContentType(void 0):oe.isFunction(r.getHeaders)&&yQ(c,r.getHeaders(),n("formDataHeaderPolicy"))),ns.hasStandardBrowserEnv&&(oe.isFunction(i)&&(i=i(e)),i===!0||i==null&&oQ(e.url))){const E=s&&a&&aQ.read(a);E&&c.set(s,E)}return e}const bQ=typeof XMLHttpRequest<"u",EQ=bQ&&function(t){return new Promise(function(n,r){const i=eF(t);let s=i.data;const a=xs.from(i.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:h}=i,p,v,y,E,S;function x(){E&&E(),S&&S(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let C=new XMLHttpRequest;C.open(i.method.toUpperCase(),i.url,!0),C.timeout=i.timeout;function R(){if(!C)return;const O=xs.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),L={data:!c||c==="text"||c==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:O,config:t,request:C};Z8(function(N){n(N),x()},function(N){r(N),x()},L),C=null}"onloadend"in C?C.onloadend=R:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.startsWith("file:"))||setTimeout(R)},C.onabort=function(){C&&(r(new Ze("Request aborted",Ze.ECONNABORTED,t,C)),x(),C=null)},C.onerror=function(P){const L=P&&P.message?P.message:"Network Error",D=new Ze(L,Ze.ERR_NETWORK,t,C);D.event=P||null,r(D),x(),C=null},C.ontimeout=function(){let P=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const L=i.transitional||i4;i.timeoutErrorMessage&&(P=i.timeoutErrorMessage),r(new Ze(P,L.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,t,C)),x(),C=null},s===void 0&&a.setContentType(null),"setRequestHeader"in C&&oe.forEach(z8(a),function(P,L){C.setRequestHeader(L,P)}),oe.isUndefined(i.withCredentials)||(C.withCredentials=!!i.withCredentials),c&&c!=="json"&&(C.responseType=i.responseType),h&&([y,S]=j2(h,!0),C.addEventListener("progress",y)),u&&C.upload&&([v,E]=j2(u),C.upload.addEventListener("progress",v),C.upload.addEventListener("loadend",E)),(i.cancelToken||i.signal)&&(p=O=>{C&&(r(!O||O.type?new ob(null,t,C):O),C.abort(),x(),C=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const A=rQ(i.url);if(A&&!ns.protocols.includes(A)){r(new Ze("Unsupported protocol "+A+":",Ze.ERR_BAD_REQUEST,t)),x();return}C.send(s||null)})},SQ=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const n=new AbortController;let r=!1;const i=function(u){if(!r){r=!0,a();const h=u instanceof Error?u:this.reason;n.abort(h instanceof Ze?h:new ob(h instanceof Error?h.message:h))}};let s=e&&setTimeout(()=>{s=null,i(new Ze(`timeout of ${e}ms exceeded`,Ze.ETIMEDOUT))},e);const a=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),t=null)};t.forEach(u=>{if(!r){if(u.aborted){i.call(u);return}u.addEventListener("abort",i,{once:!0})}});const{signal:c}=n;return c.unsubscribe=()=>
4oe.asap(a),c},wQ=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},CQ=async function*(t,e){for await(const n of xQ(t))yield*wQ(n,e)},xQ=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},ZL=(t,e,n,r)=>{const i=CQ(t,e);let s=0,a,c=u=>{a||(a=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:h,value:p}=await i.next();if(h){c(),u.close();return}let v=p.byteLength;if(n){let y=s+=v;n(y)}u.enqueue(new Uint8Array(p))}catch(h){throw c(h),h}},cancel(u){return c(u),i.return()}},{highWaterMark:2})},JL=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,tF=(t,e,n)=>e+2<n&&JL(t.charCodeAt(e+1))&&JL(t.charCodeAt(e+2)),ek=t=>t<=57?t-48:(t&223)-55,TQ=t=>t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===43||t===47||t===45||t===95,RQ=t=>t===9||t===10||t===12||t===13||t===32,AQ=t=>{const e=Math.floor(t/4),n=t%4;return e*3+(n===2?1:n===3?2:0)},OQ=t=>{const e=t.length;let n=0;return e>0&&t.charCodeAt(e-1)===61&&(n++,e>1&&t.charCodeAt(e-2)===61&&n++),Math.floor((e-n)*3/4)},IQ=t=>{const e=t.length;let n=0,r=0,i=!1;for(let s=0;s<e;s++){let a=t.charCodeAt(s);if(a===37&&tF(t,s,e)&&(a=ek(t.charCodeAt(s+1))*16+ek(t.charCodeAt(s+2)),s+=2),!RQ(a)){if(a===61){r++;continue}if(!TQ(a)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!==0||n%4===1?OQ(t):AQ(n)},PQ=(t,e)=>{if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const n=t.indexOf(",");if(n<0)return 0;const r=t.slice(5,n),i=t.slice(n+1);if(/;base64/i.test(r))return e(i);let a=0;for(let c=0,u=i.length;c<u;c++){const h=i.charCodeAt(c);if(h===37&&tF(i,c,u))a+=1,c+=2;else if(h<128)a+=1;else if(h<2048)a+=2;else if(h>=55296&&h<=56319&&c+1<u){const p=i.charCodeAt(c+1);p>
vendor: 4,768 bytes, line 4
4=56320&&p<=57343?(a+=4,c++):a+=3}else a+=3}return a};function LQ(t){const e=typeof t=="string"?t.indexOf("#"):-1;return PQ(e===-1?t:t.slice(0,e),IQ)}const o4="1.19.0",tk=64*1024,{isFunction:zS}=oe,kQ=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),nk=t=>{if(!oe.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},rk=(t,...e)=>{try{return!!t(...e)}catch{return!1}},MQ=t=>{const e=t.indexOf("://");let n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},DQ=t=>{const e=oe.global!==void 0&&oe.global!==null?oe.global:globalThis,{ReadableStream:n,TextEncoder:r}=e;t=oe.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:i,Request:s,Response:a}=t,c=i?zS(i):typeof fetch=="function",u=zS(s),h=zS(a);if(!c)return!1;const p=c&&zS(n),v=c&&(typeof r=="function"?(R=>A=>R.encode(A))(new r):async R=>new Uint8Array(await new s(R).arrayBuffer())),y=u&&p&&rk(()=>{let R=!1;const A=new s(ns.origin,{body:new n,method:"POST",get duplex(){return R=!0,"half"}}),O=A.headers.has("Content-Type");return A.body!=null&&A.body.cancel(),R&&!O}),E=h&&p&&rk(()=>oe.isReadableStream(new a("").body)),S={stream:E&&(R=>R.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(R=>{!S[R]&&(S[R]=(A,O)=>{let P=A&&A[R];if(P)return P.call(A);throw new Ze(`Response type '${R}' is not supported`,Ze.ERR_NOT_SUPPORT,O)})});const x=async R=>{if(R==null)return 0;if(oe.isBlob(R))return R.size;if(oe.isSpecCompliantForm(R))return(await new s(ns.origin,{method:"POST",body:R}).arrayBuffer()).byteLength;if(oe.isArrayBufferView(R)||oe.isArrayBuffer(R))return R.byteLength;if(oe.isURLSearchParams(R)&&(R=R+""),oe.isString(R))return(await v(R)).byteLength},C=async(R,A)=>{const O=oe.toFiniteNumber(R.getContentLength());return O??x(A)};return async R=>{let{url:A,method:O,data:P,signal:L,cancelToken:D,timeout:N,onDownloadProgress:k,onUploadProgress:U,responseType:F,headers:V,withCredentials:G="same-origin",fetchOptions:Z,maxContentLength:K,maxBodyLength:J}=eF(R);const H=oe.isNumber(K)&&K>-1,Y=oe.isNumber(J)&&J>-1,ee=Se=>oe.hasOwnProp(R,Se)?R[Se]:void 0;let fe=i||fetch;F=F?(F+"").toLowerCase():"text";let ue=SQ([L,D&&D.toAbortSignal()],N),z=null;const Q=ue&&ue.unsubscribe&&(()=>{ue.unsubscribe()});let ae,de=null;const be=()=>new Ze("Request body larger than maxBodyLength limit",Ze.ERR_BAD_REQUEST,R,z);try{let Se;const je=ee("auth");if(je){const $e=oe.getSafeProp(je,"username")||"",vt=oe.getSafeProp(je,"password")||"";Se={username:$e,password:vt}}if(MQ(A)){const $e=new URL(A,ns.origin);if(!Se&&($e.username||$e.password)){const vt=nk($e.username),ot=nk($e.password);Se={username:vt,password:ot}}($e.username||$e.password)&&($e.username="",$e.password="",A=$e.href)}if(Se&&(V.delete("authorization"),V.set("Authorization","Basic "+btoa(kQ((Se.username||"")+":"+(Se.password||""))))),H&&typeof A=="string"&&A.startsWith("data:")&&LQ(A)>K)throw new Ze("maxContentLength size of "+K+" exceeded",Ze.ERR_BAD_RESPONSE,R,z);if(Y&&O!=="get"&&O!=="head"){const $e=await x(P);if(typeof $e=="number"&&isFinite($e)&&(ae=$e,$e>J))throw be()}const Ne=Y&&(oe.isReadableStream(P)||oe.isStream(P)),ze=($e,vt,ot)=>ZL($e,tk,Bt=>{if(Y&&Bt>J)throw de=be();vt&&vt(Bt)},ot);if(y&&O!=="get"&&O!=="head"&&(U||Ne)){if(ae=ae??await C(V,P),ae!==0||Ne){let $e=new s(A,{method:"POST",body:P,duplex:"half"}),vt;if(oe.isFormData(P)&&(vt=$e.headers.get("content-type"))&&V.setContentType(vt),$e.body){const[ot,Bt]=U&&KL(ae,j2(YL(U)))||[];P=ze($e.body,ot,Bt)}}}else if(Ne&&!u&&p&&O!=="get"&&O!=="head")P=ze(P);else if(Ne&&u&&!y&&O!=="get"&&O!=="head")throw new Ze("Stream request bodies are not supported by the current fetch implementation",Ze.ERR_NOT_SUPPORT,R,z);oe.isString(G)||(G=G?"include":"omit");const tt=u&&"credentials"in s.prototype;if(oe.isFormData(P)){const $e=V.getContentType();$e&&/^multipart\/form-data/i.test($e)&&!/boundary=/i.test($e)&&V.delete("content-type")}V.set("User-Agent","axios/"+o4,!1);const Je={...Z,signal:ue,method:O.toUpperCase(),headers:z8(V.normalize()),body:P,duplex:"half",credentials:tt?G:void 0};z=u&&new s(A,Je);let We=await(u?fe(z,Z):fe(A,Je));const Ve=xs.from(We.headers);if(H){const $e=oe.toFiniteNumber(Ve.getContentLength());if($e!=null&&$e>K)throw new Ze("maxContentLength size of "+K+" exceeded",Ze.ERR_BAD_RESPONSE,R,z)}const Pt=E&&(F==="stream"||F==="response");if(E&&We.body&&(k||H||Pt&&Q)){const $e={};["status","statusText","headers"].forEach(qt=>{$e[qt]=We[qt]});const vt=oe.toFiniteNumber(Ve.getContentLength()),[ot,Bt]=k&&KL(vt,j2(YL(k),!0))||[];let An=0;const Ut=qt=>{if(H&&(An=qt,An>K))throw new Ze("maxContentLength size of "+K+" exceeded",Ze.ERR_BAD_RESPONSE,R,z);ot&&ot(qt)};We=new a(ZL(We.body,tk,Ut,()=>{Bt&&Bt(),Q&&Q()}),$e)}F=F||"text";
vendor: 4,372 bytes, lines 4-6
4let dt=await S[oe.findKey(S,F)||"text"](We,R);if(H&&!E&&!Pt){let $e;if(dt!=null&&(typeof dt.byteLength=="number"?$e=dt.byteLength:typeof dt.size=="number"?$e=dt.size:typeof dt=="string"&&($e=typeof r=="function"?new r().encode(dt).byteLength:dt.length)),typeof $e=="number"&&$e>K)throw new Ze("maxContentLength size of "+K+" exceeded",Ze.ERR_BAD_RESPONSE,R,z)}return!Pt&&Q&&Q(),await new Promise(($e,vt)=>{Z8($e,vt,{data:dt,headers:xs.from(We.headers),status:We.status,statusText:We.statusText,config:R,request:z})})}catch(Se){if(Q&&Q(),ue&&ue.aborted&&ue.reason instanceof Ze){const je=ue.reason;throw je.config=R,z&&(je.request=z),Se!==je&&Object.defineProperty(je,"cause",{__proto__:null,value:Se,writable:!0,enumerable:!1,configurable:!0}),je}if(de)throw z&&!de.request&&(de.request=z),de;if(Se instanceof Ze)throw z&&!Se.request&&(Se.request=z),Se;if(Se&&Se.name==="TypeError"&&/Load failed|fetch/i.test(Se.message)){const je=new Ze("Network Error",Ze.ERR_NETWORK,R,z,Se&&Se.response);throw Object.defineProperty(je,"cause",{__proto__:null,value:Se.cause||Se,writable:!0,enumerable:!1,configurable:!0}),je}throw Ze.from(Se,Se&&Se.code,R,z,Se&&Se.response)}}},NQ=new Map,nF=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:i}=e,s=[r,i,n];let a=s.length,c=a,u,h,p=NQ;for(;c--;)u=s[c],h=p.get(u),h===void 0&&p.set(u,h=c?new Map:DQ(e)),p=h;return h};nF();const a4={http:jX,xhr:EQ,fetch:{get:nF}};oe.forEach(a4,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const ik=t=>`- ${t}`,$Q=t=>oe.isFunction(t)||t===null||t===!1;function FQ(t,e){t=oe.isArray(t)?t:[t];const{length:n}=t;let r,i;const s={};for(let a=0;a<n;a++){r=t[a];let c;if(i=r,!$Q(r)&&(i=a4[(c=String(r)).toLowerCase()],i===void 0))throw new Ze(`Unknown adapter '${c}'`);if(i&&(oe.isFunction(i)||(i=i.get(e))))break;s[c||"#"+a]=i}if(!i){const a=Object.entries(s).map(([u,h])=>`adapter ${u} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=n?a.length>1?`since : 5`+a.map(ik).join(` 6`):" "+ik(a[0]):"as no adapter specified";throw new Ze("There is no suitable adapter to dispatch the request "+c,Ze.ERR_NOT_SUPPORT)}return i}const rF={getAdapter:FQ,adapters:a4};function R5(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ob(null,t)}function A5(t){return R5(t),t.headers=xs.from(t.headers),t.data=T5.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),rF.getAdapter(t.adapter||sb.adapter,t)(t).then(function(r){R5(t),t.response=r;try{r.data=T5.call(t,t.transformResponse,r)}finally{delete t.response}return r.headers=xs.from(r.headers),r},function(r){if(!Q8(r)&&(R5(t),r&&r.response)){t.response=r.response;try{r.response.data=T5.call(t,t.transformResponse,r.response)}finally{delete t.response}r.response.headers=xs.from(r.response.headers)}return Promise.reject(r)})}const cx={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{cx[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const sk={};cx.transitional=function(e,n,r){function i(s,a){return"[Axios v"+o4+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,c)=>{if(e===!1)throw new Ze(i(a," has been removed"+(n?" in "+n:"")),Ze.ERR_DEPRECATED);return n&&!sk[a]&&(sk[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,c):!0}};cx.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function UQ(t,e,n){if(typeof t!="object"||t===null)throw new Ze("options must be an object",Ze.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],a=Object.prototype.hasOwnProperty.call(e,s)?e[s]:void 0;if(a){const c=t[s],u=c===void 0||a(c,s,t);if(u!==!0)throw new Ze("option "+s+" must be "+u,Ze.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ze("Unknown option "+s,Ze.ERR_BAD_OPTION)}}const Fw={assertOptions:UQ,validators:cx},vs=Fw.validators;let ep=class{constructor(e){this.defaults=e||{},this.interceptors={request:new WL,response:new WL}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=(()=>
vendor: 4,071 bytes, lines 6-10
6{if(!i.stack)return"";const a=i.stack.indexOf(` 7`);return a===-1?"":i.stack.slice(a+1)})();try{if(!r.stack)r.stack=s;else if(s){const a=s.indexOf(` 8`),c=a===-1?-1:s.indexOf(` 9`,a+1),u=c===-1?"":s.slice(c+1);String(r.stack).endsWith(u)||(r.stack+=` 10`+s)}}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=hp(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Fw.assertOptions(r,{silentJSONParsing:vs.transitional(vs.boolean),forcedJSONParsing:vs.transitional(vs.boolean),clarifyTimeoutError:vs.transitional(vs.boolean),legacyInterceptorReqResOrdering:vs.transitional(vs.boolean),advertiseZstdAcceptEncoding:vs.transitional(vs.boolean),validateStatusUndefinedResolves:vs.transitional(vs.boolean)},!1),i!=null&&(oe.isFunction(i)?n.paramsSerializer={serialize:i}:Fw.assertOptions(i,{encode:vs.function,serialize:vs.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Fw.assertOptions(n,{baseUrl:vs.spelling("baseURL"),withXsrfToken:vs.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&oe.merge(s.common,s[n.method]);s&&oe.forEach(["delete","get","head","post","put","patch","query","common"],S=>{delete s[S]}),n.headers=xs.concat(a,s);const c=[];let u=!0;this.interceptors.request.forEach(function(x){if(typeof x.runWhen=="function"&&x.runWhen(n)===!1)return;u=u&&x.synchronous;const C=n.transitional||i4;C&&C.legacyInterceptorReqResOrdering?c.unshift(x.fulfilled,x.rejected):c.push(x.fulfilled,x.rejected)});const h=[];this.interceptors.response.forEach(function(x){h.push(x.fulfilled,x.rejected)});let p,v=0,y;if(!u){const S=[A5.bind(this),void 0];for(S.unshift(...c),S.push(...h),y=S.length,p=Promise.resolve(n);v<y;)p=p.then(S[v++],S[v++]);return p}y=c.length;let E=n;for(;v<y;){const S=c[v++],x=c[v++];try{E=S?S(E):E}catch(C){if(!x){p=Promise.reject(C);break}try{const R=x.call(this,C);oe.isThenable(R)&&(p=Promise.resolve(R).then(()=>A5.call(this,E)))}catch(R){p=Promise.reject(R)}break}}if(!p)try{p=A5.call(this,E)}catch(S){p=Promise.reject(S)}for(v=0,y=h.length;v<y;)p=p.then(h[v++],h[v++]);return p}getUri(e){e=hp(this.defaults,e);const n=J8(e.baseURL,e.url,e.allowAbsoluteUrls,e);return K8(n,e.params,e.paramsSerializer)}};oe.forEach(["delete","get","head","options"],function(e){ep.prototype[e]=function(n,r){return this.request(hp(r||{},{method:e,url:n,data:r&&oe.hasOwnProp(r,"data")?r.data:void 0}))}});oe.forEach(["post","put","patch","query"],function(e){function n(r){return function(s,a,c){return this.request(hp(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}ep.prototype[e]=n(),e!=="query"&&(ep.prototype[e+"Form"]=n(!0))});let BQ=class iF{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(c=>{r.subscribe(c),s=c}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},e(function(s,a,c){r.reason||(r.reason=new ob(s,a,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new iF(function(i){e=i}),cancel:e}}};function jQ(t){return function(n){return t.apply(null,n)}}function HQ(t){return oe.isObject(t)&&t.isAxiosError===!0}const DA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
10alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(DA).forEach(([t,e])=>{DA[e]=t});function sF(t){const e=new ep(t),n=M8(ep.prototype.request,e);return oe.extend(n,ep.prototype,e,{allOwnKeys:!0}),oe.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return sF(hp(t,i))},n}const xe=sF(sb);xe.Axios=ep;xe.CanceledError=ob;xe.CancelToken=BQ;xe.isCancel=Q8;xe.VERSION=o4;xe.toFormData=lx;xe.AxiosError=Ze;xe.Cancel=xe.CanceledError;xe.all=function(e){return Promise.all(e)};xe.spread=jQ;xe.isAxiosError=HQ;xe.mergeConfig=hp;xe.AxiosHeaders=xs;xe.formToJSON=t=>X8(oe.isHTMLForm(t)?new FormData(t):t);xe.getAdapter=rF.getAdapter;xe.HttpStatusCode=DA;xe.default=xe;const{Axios:zQ,AxiosError:VQ,CanceledError:rf,isCancel:qQ,CancelToken:WQ,VERSION:GQ,all:KQ,Cancel:YQ,isAxiosError:XQ,spread:QQ,toFormData:ZQ,AxiosHeaders:JQ,HttpStatusCode:eZ,formToJSON:tZ,getAdapter:nZ,mergeConfig:rZ,create:iZ}=xe,_4e=Object.freeze(Object.defineProperty({__proto__:null,Axios:zQ,AxiosError:VQ,AxiosHeaders:JQ,Cancel:YQ,CancelToken:WQ,CanceledError:rf,HttpStatusCode:eZ,VERSION:GQ,all:KQ,create:iZ,default:xe,formToJSON:tZ,getAdapter:nZ,isAxiosError:XQ,isCancel:qQ,mergeConfig:rZ,spread:QQ,toFormData:ZQ},Symbol.toStringTag,{value:"Module"})),sZ="/api/v1/",oZ=[{label:"Development",value:"https://dev.i.dessence.ai"},{label:"Staging",value:"https://stage.i.dessence.ai"},{label:"Production",value:"https://app.dessence.ai"},{label:"Local",value:"http://localhost:8000"}],A_="dEssence_",es={USER_ID:"user_id",SELECTED_PROFILE_ID:"selected_profile_id",THUMBNAIL_DB:`${A_}ThumbnailCache`,LAST_LOGIN_METHOD:`${A_}last_login_method`,CUSTOM_API_BASE_URL:`${A_}custom_api_base_url`,TIMEZONE_PROMPT_DISMISSED_PREFIX:`${A_}timezone_prompt_dismissed`,LOCALE_PREFIX:"dEssence:locale"};oZ[0].value;const ok=new Set(["localhost","127.0.0.1","::1"]),l4=(t,e)=>{if(!t||!e||!ok.has(e))return t;try{const n=new URL(t);return!ok.has(n.hostname)||n.hostname===e?t:(n.hostname=e,n.toString().replace(/\/$/,""))}catch{return t}},aZ={BASE_URL:"/",DEV:!1,MODE:"web",PROD:!0,SSR:!1,VITE_BASE_URL:"https://app.dessence.ai",VITE_CHROME_EXTENSION_URL:"https://chromewebstore.google.com/detail/dessence-%E2%80%94-ai-memory-for/inonbmcmkbmdmgbafhnonnaogogmkobc?authuser=0&hl=en",VITE_DISABLE_SENTRY:"false",VITE_FIREBASE_API_KEY:"AIzaSyDllz18lO9QhEXR-dclyQP-pHo_UgUySc4",VITE_FIREBASE_APP_ID:"1:812896581784:web:6fb112b298efe0fa0e38ed",VITE_FIREBASE_AUTH_DOMAIN:"app.dessence.ai",VITE_FIREBASE_AUTH_PROVIDERS:"google",VITE_FIREBASE_MESSAGING_SENDER_ID:"812896581784",VITE_FIREBASE_PROJECT_ID:"dessence-ai-2e287",VITE_FIREBASE_STORAGE_BUCKET:"dessence-ai-2e287.firebasestorage.app",VITE_FRONTEND_BRANCH:"main",VITE_FRONTEND_COMMIT:"20682b684ec512c81b128b51c00653fe8830bba7",VITE_LANDING_PAGE_URL:"https://dessence.ai",VITE_NOTEDIS_SITE_KEY:"site_YvJnp310MQWScb33JZthwWuCY1EPT6gU",VITE_PUBLIC_META_PIXEL_ID:"1847610859951978",VITE_PUBLIC_POSTHOG_HOST:"https://us.i.posthog.com",VITE_PUBLIC_POSTHOG_PROJECT_TOKEN:"phc_oPZCdvtYGZJg9Lny585KKfibwiqD67LDT58efpZuHbQE",VITE_PUBLIC_POSTHOG_UI_HOST:"",VITE_SENTRY_DSN:"https://[email protected]/2",VITE_SENTRY_ENVIRONMENT:"production",VITE_SHOW_VERSION:"false",VITE_STORAGE_BASE_URL:"https://app.dessence.ai/media",VITE_TELEGRAM_BOT_URL:"https://t.me/dessence_bot",VITE_WEB_APP_URL:""},lZ=aZ,dr=t=>lZ[t]||"",cZ=typeof window>"u"?void 0:window.location.hostname,ak=t=>
10l4(dr(t),cZ),ir={VITE_BASE_URL:ak("VITE_BASE_URL"),VITE_WEB_APP_URL:dr("VITE_WEB_APP_URL"),VITE_STORAGE_BASE_URL:ak("VITE_STORAGE_BASE_URL"),VITE_TELEGRAM_BOT_URL:dr("VITE_TELEGRAM_BOT_URL"),VITE_CHROME_EXTENSION_URL:dr("VITE_CHROME_EXTENSION_URL"),VITE_CHROME_EXTENSION_ID:dr("VITE_CHROME_EXTENSION_ID"),VITE_SHOW_VERSION:dr("VITE_SHOW_VERSION"),VITE_FRONTEND_BRANCH:dr("VITE_FRONTEND_BRANCH"),VITE_FRONTEND_COMMIT:dr("VITE_FRONTEND_COMMIT"),VITE_FIREBASE_API_KEY:dr("VITE_FIREBASE_API_KEY"),VITE_FIREBASE_AUTH_DOMAIN:dr("VITE_FIREBASE_AUTH_DOMAIN"),VITE_FIREBASE_PROJECT_ID:dr("VITE_FIREBASE_PROJECT_ID"),VITE_FIREBASE_APP_ID:dr("VITE_FIREBASE_APP_ID"),VITE_FIREBASE_MESSAGING_SENDER_ID:dr("VITE_FIREBASE_MESSAGING_SENDER_ID"),VITE_FIREBASE_STORAGE_BUCKET:dr("VITE_FIREBASE_STORAGE_BUCKET"),VITE_FIREBASE_AUTH_PROVIDERS:dr("VITE_FIREBASE_AUTH_PROVIDERS"),VITE_ENABLE_MOCK:dr("VITE_ENABLE_MOCK"),VITE_LANDING_PAGE_URL:dr("VITE_LANDING_PAGE_URL"),VITE_NOTEDIS_SITE_KEY:dr("VITE_NOTEDIS_SITE_KEY"),VITE_PUBLIC_POSTHOG_PROJECT_TOKEN:dr("VITE_PUBLIC_POSTHOG_PROJECT_TOKEN"),VITE_PUBLIC_POSTHOG_HOST:dr("VITE_PUBLIC_POSTHOG_HOST"),VITE_PUBLIC_POSTHOG_UI_HOST:dr("VITE_PUBLIC_POSTHOG_UI_HOST"),VITE_DISABLE_POSTHOG:dr("VITE_DISABLE_POSTHOG"),VITE_PUBLIC_META_PIXEL_ID:dr("VITE_PUBLIC_META_PIXEL_ID"),VITE_SENTRY_DSN:dr("VITE_SENTRY_DSN"),VITE_SENTRY_ENVIRONMENT:dr("VITE_SENTRY_ENVIRONMENT"),VITE_DISABLE_SENTRY:dr("VITE_DISABLE_SENTRY"),VITE_GOOGLE_OAUTH_ENABLED:dr("VITE_GOOGLE_OAUTH_ENABLED")},Zt={LOGIN:"/",REGISTER:"/register",FORGOT_PASSWORD:"/forgot-password",RESET_PASSWORD:"/reset-password",VERIFY_EMAIL:"/verify-email",ACCOUNT_CONNECT:"/account-connect",TELEGRAM_SIGN_IN:"/telegram-sign-in",EMAIL_SIGN_IN:"/email-sign-in",ACCOUNT_DELETE:"/account/delete",CHAT:"/library",LIBRARY:"/library",CONTEXT:"/library/:contextId",LIBRARY_CHAT:"/library/chat",LEGACY_CHAT:"/chat",PROJECT:"/projects/:contextId",SEARCH:"/searches/:contextId",MEMORY:"/memory",PROFILE:"/profile",CONTEXTS:"/boards",SEARCHES:"/chats",LEGACY_CONTEXTS:"/contexts",LEGACY_SEARCHES:"/searches",JOBS:"/jobs",INBOX:"/inbox",HOW_IT_WORKS:"/how-it-works",WAYS_TO_USE:"/ways-to-use",SHARE_TARGET:"/share-target",INTEGRATIONS:"/integrations",LOGOUT:"/logout",AUTHORIZE:"/authorize"},oF=t=>`/library/${encodeURIComponent(String(t))}`;var ye=typeof window<"u"?window:void 0,ws=typeof globalThis<"u"?globalThis:ye,Gs=ws?.navigator,De=ws?.document,br=ws?.location,c4=ws?.fetch,NA=ws!=null&&ws.XMLHttpRequest&&"withCredentials"in new ws.XMLHttpRequest?ws.XMLHttpRequest:void 0,lk=ws?.AbortController,uZ=ws?.CompressionStream,_o=Gs?.userAgent;function aF(){return!(!ye||ye.navigator.onLine===!1)}var Q0=typeof globalThis<"u"?globalThis:ye;Q0&&typeof self>"u"&&(Q0.self=Q0),Q0&&typeof File>"u"&&(Q0.File=function(){});var st=ye??{},nr={DEBUG:!1,LIB_VERSION:"0.6.1",LIB_NAME:"browser-common"};function ck(t,e,n,r,i,s,a){try{var c=t[s](a),u=c.value}catch(h){return void n(h)}c.done?e(u):Promise.resolve(u).then(r,i)}function rr(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var s=t.apply(e,n);function a(u){ck(s,r,i,a,c,"next",u)}function c(u){ck(s,r,i,a,c,"throw",u)}a(void 0)}))}}function Ae(){return Ae=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ae.apply(null,arguments)}function lF(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}var uk=t=>{if(typeof t!="string")return t;try{return JSON.parse(t)}catch{return t}};function dk(t){return typeof t=="string"||t}function fk(t){return typeof t=="string"?t:void 0}var dZ=["$feature_flag","$feature_flag_response","$feature_flag_has_experiment","$feature_flag_id","$feature_flag_version","$feature_flag_reason","$feature_flag_request_id","$feature_flag_evaluated_at","$feature_flag_error","locally_evaluated","$groups","$process_person_profile","$geoip_disable","$current_url","$pathname","$referring_domain","utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid","gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx","$session_id","$window_id","$lib","$lib_version","$device_id","$is_server"],dc=(function(t){return t.AnonymousId="anonymous_id",t.DistinctId="distinct_id",t.Props="props",t.EnablePersonProcessing="enable_person_processing",t.PersonMode="person_mode",t.FeatureFlagDetails="feature_flag_details",t.FeatureFlags="feature_flags",t.FeatureFlagPayloads="feature_flag_payloads",t.BootstrapFeatureFlagDetails="bootstrap_feature_flag_details",t.BootstrapFeatureFlags="bootstrap_feature_flags",t.BootstrapFeatureFlagPayloads="bootstrap_feature_flag_payloads",t.OverrideFeatureFlags="override_feature_flags",t.Queue="queue",t.AiQueue="ai_queue",t.AiCaptureQueue="ai_capture_queue",t.LogsQueue="logs_queue",t.OptedOut="opted_out",t.SessionId="session_id",t.SessionStartTimestamp="session_start_timestamp",t.SessionLastTimestamp="session_timestamp",t.PersonProperties="person_properties",t.GroupProperties="group_properties",t.InstalledAppBuild="installed_app_build",t.InstalledAppVersion="installed_app_version",t.SessionReplay="session_replay",t.PushRegistered="push_registered",t.SessionReplayEventTriggerActivatedSession="session_replay_event_trigger_activated_session",t.SurveyLastSeenDate="survey_last_seen_date",t.
10SurveysSeen="surveys_seen",t.Surveys="surveys",t.RemoteConfig="remote_config",t.FlagsEndpointWasHit="flags_endpoint_was_hit",t.DeviceId="device_id",t})({}),$A=(function(t){return t.GZipJS="gzip-js",t.Base64="base64",t})({}),fZ=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],hZ=["token"],pZ=20,cF=1e3,gZ=1e4,mZ="[Circular]",FA="[Truncated]",ux="[Unserializable]",vZ="[Function]";function Pm(t){for(var e="",n=0;t.length>n;n++){var r=t.charCodeAt(n);if(55296>r||r>56319)e+=56320>r||r>57343?t[n]:"�";else{var i=t.charCodeAt(n+1);56320>i||i>57343?e+="�":(e+=t[n]+t[n+1],n++)}}return e}var yZ=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterestbot","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],hk=function(t,e){if(e===void 0&&(e=[]),!t)return!1;var n=t.toLowerCase();return yZ.concat(e).some((r=>{var i=r.toLowerCase();return n.indexOf(i)!==-1}))};function Rt(t,e){return t.indexOf(e)!==-1}var dx=function(t){return t.trim()},UA=function(t){return t.replace(/^\$/,"")};function uF(t){var e,n=[];return(e=JSON.stringify(t,(function(r,i){if(typeof i=="bigint")return i.toString();if(typeof i!="function"&&typeof i!="symbol"){if(i instanceof Error)return{name:i.name,message:i.message,stack:i.stack};if(i&&typeof i=="object"){for(;n.length>0&&n[n.length-1]!==this;)n.pop();if(n.includes(i))return"[Circular]";n.push(i)}return i}})))!==null&&e!==void 0?e:"null"}var dF=Object.prototype,fF=dF.hasOwnProperty,fx=dF.toString,Ct=Array.isArray||function(t){return fx.call(t)==="[object Array]"},Es=t=>typeof t=="function",Yn=t=>t===Object(t)&&!Ct(t),dl=t=>{if(Yn(t)){for(var e in t)if(fF.call(t,e))return!1;return!0}return!1},Pe=t=>t===void 0,hn=t=>fx.call(t)=="[object String]",H2=t=>hn(t)&&t.trim().length===0,rs=t=>t===null,Dt=t=>Pe(t)||rs(t),Fr=t=>fx.call(t)=="[object Number]"&&t==t,fu=t=>Fr(t)&&t>0,Ws=t=>fx.call(t)==="[object Boolean]",_Z=t=>t instanceof FormData,bZ=t=>Rt(fZ,t),EZ=t=>Rt(hZ,t);function hF(t){return t===null||typeof t!="object"}function z2(t,e){return{}.toString.call(t)==="[object "+e+"]"}function pF(t){switch({}.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object DOMError]":case"[object WebAssembly.Exception]":return!0;default:return gF(t,Error)}}function u4(t){return typeof Event<"u"&&gF(t,Event)}function gF(t,e){try{return t instanceof e}catch{return!1}}var SZ=[!0,"true",1,"1","yes"],O5=t=>Rt(SZ,t),wZ=[!1,"false",0,"0","no"];function mc(t,e,n,r,i){return e>n&&(r.warn("min cannot be greater than max."),e=n),Fr(t)?t>n?(r.warn(" cannot be greater than max: "+n+". Using max value instead."),n):e>t?(r.warn(" cannot be less than min: "+e+". Using min value instead."),e):t:(r.warn(" must be a number. using max or fallback. max: "+n+", fallback: "+i),mc(i||n,e,n,r))}class CZ{constructor(e){this.k={},this.S=e.S,this.C=mc(e.bucketSize,0,100,e.I),this.A=mc(e.refillRate,0,this.C,e.I),this.R=mc(e.refillInterval,0,864e5,e.I)}O(e,n){var r=Math.floor((n-e.lastAccess)/this.R);r>0&&(e.tokens=Math.min(e.tokens+r*this.A,this.C),e.lastAccess=e.lastAccess+r*this.R)}consumeRateLimit(e){var n,r=Date.now(),i=String(e),s=this.k[i];return s?this.O(s,r):this.k[i]=s={tokens:this.C,lastAccess:r},s.tokens===0||(s.tokens--,s.tokens===0&&((n=this.S)==null||n.call(this,e)),s.tokens===0)}stop(){this.k={}}}var Jo="Mobile",V2="iOS",Tu="Android",Ym="Tablet",mF=Tu+" "+Ym,vF="iPad",yF="Apple",_F=yF+" Watch",Y_="Safari",Xm="BlackBerry",bF="Samsung",EF=bF+"Browser",SF=bF+" Internet",tp="Chrome",xZ=tp+" OS",wF=tp+" "+V2,d4="Internet Explorer",CF=d4+" "+Jo,f4="Opera",TZ=f4+" Mini",h4="Edge",xF="Microsoft "+h4,Lm="Firefox",TF=Lm+" "+V2,E1="Nintendo",S1="PlayStation",km="Xbox",RF=Tu+" "+Jo,AF=Jo+" "+Y_,O_="Windows",BA=O_+" Phone",pk="Nokia",jA="Ouya",OF="Generic",RZ=OF+" "+Jo.toLowerCase(),IF=OF+" "+Ym.toLowerCase(),HA="Konqueror",PF="Oculus Browser",q2="Vivaldi",LF="Yandex",W2="Whale",zA="DuckDuckGo",kF="Pale Moon",G2="Waterfox",X_="Brave",MF="Google Search App",Lr="(\\d+(\\.\\d+)?)",I5=new RegExp("Version/"+Lr),AZ=new RegExp(km,"i"),OZ=new RegExp(S1+" \\w+","i"),IZ=new RegExp(E1+" \\w+","i"),p4=new RegExp(Xm+"|PlayBook|BB10","i"),PZ={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},DF=function(t,e,n,r){e=e||"";var i=(function(s){return s!=null&&s.brave?X_:null})(n);
10return i||(r!=null&&r.detectGoogleSearchApp&&Rt(t,"GSA/")?MF:Rt(t," OPR/")&&Rt(t,"Mini")?TZ:Rt(t," OPR/")?f4:p4.test(t)?Xm:Rt(t,"IE"+Jo)||Rt(t,"WPDesktop")?CF:Rt(t,"OculusBrowser")?PF:Rt(t,EF)?SF:Rt(t,h4)||Rt(t,"Edg/")?xF:Rt(t,q2+"/")?q2:Rt(t,"YaBrowser/")?LF:Rt(t,W2+"/")?W2:Rt(t,zA+"/")||Rt(t,"Ddg/")?zA:Rt(t,"FBIOS")?"Facebook "+Jo:Rt(t,"UCWEB")||Rt(t,"UCBrowser")?"UC Browser":Rt(t,"CriOS")?wF:Rt(t,"CrMo")||Rt(t,tp)?tp:Rt(t,Tu)&&Rt(t,Y_)?RF:Rt(t,"FxiOS")?TF:Rt(t.toLowerCase(),HA.toLowerCase())?HA:Rt(t,X_+"/")?X_:((s,a)=>a&&Rt(a,yF)||(function(c){return Rt(c,Y_)&&!Rt(c,tp)&&!Rt(c,Tu)})(s))(t,e)?Rt(t,Jo)?AF:Y_:Rt(t,"PaleMoon/")?kF:Rt(t,G2+"/")?G2:Rt(t,Lm)?Lm:Rt(t,"MSIE")||Rt(t,"Trident/")?d4:Rt(t,"Gecko")?Lm:"")},LZ={[CF]:[new RegExp("rv:"+Lr)],[xF]:[new RegExp(h4+"?\\/"+Lr)],[tp]:[new RegExp("("+tp+"|CrMo)\\/"+Lr)],[wF]:[new RegExp("CriOS\\/"+Lr)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Lr)],[Y_]:[I5],[AF]:[I5],[f4]:[new RegExp("(Opera|OPR)\\/"+Lr)],[Lm]:[new RegExp(Lm+"\\/"+Lr)],[TF]:[new RegExp("FxiOS\\/"+Lr)],[HA]:[new RegExp("Konqueror[:/]?"+Lr,"i")],[Xm]:[new RegExp(Xm+" "+Lr),I5],[RF]:[new RegExp("android\\s"+Lr,"i")],[SF]:[new RegExp(EF+"\\/"+Lr)],[PF]:[new RegExp("OculusBrowser\\/"+Lr)],[q2]:[new RegExp(q2+"\\/"+Lr)],[LF]:[new RegExp("YaBrowser\\/"+Lr)],[W2]:[new RegExp(W2+"\\/"+Lr)],[X_]:[new RegExp(X_+"\\/"+Lr)],[zA]:[new RegExp("(DuckDuckGo|Ddg)\\/"+Lr)],[kF]:[new RegExp("PaleMoon\\/"+Lr)],[G2]:[new RegExp(G2+"\\/"+Lr)],[MF]:[new RegExp("GSA\\/"+Lr)],[d4]:[new RegExp("(rv:|MSIE )"+Lr)],Mozilla:[new RegExp("rv:"+Lr)]},kZ=function(t,e,n,r){var i=DF(t,e,n,r),s=LZ[i];if(Pe(s))return null;for(var a=0;s.length>a;a++){var c=t.match(s[a]);if(c)return parseFloat(c[c.length-2])}return null},gk=[[new RegExp(km+"; "+km+" (.*?)[);]","i"),t=>[km,t&&t[1]||""]],[new RegExp(E1,"i"),[E1,""]],[new RegExp(S1,"i"),[S1,""]],[p4,[Xm,""]],[new RegExp(O_,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[BA,""];if(new RegExp(Jo).test(e)&&!/IEMobile\b/.test(e))return[O_+" "+Jo,""];var n=/Windows NT ([0-9.]+)/i.exec(e);if(n&&n[1]){var r=PZ[n[1]]||"";return/arm/i.test(e)&&(r="RT"),[O_,r]}return[O_,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>t&&t[3]?[V2,[t[3],t[4],t[5]||"0"].join(".")]:[V2,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=Pe(t[2])?t[3]:t[2]),["watchOS",e]}],[new RegExp("("+Tu+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Tu+")","i"),t=>t&&t[2]?[Tu,[t[2],t[3],t[4]||"0"].join(".")]:[Tu,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var e=["Mac OS X",""];return t&&t[1]&&(e[1]=[t[1],t[2],t[3]||"0"].join(".")),e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[xZ,""]],[/Linux|debian/i,["Linux",""]]],mk=function(t){return IZ.test(t)?E1:OZ.test(t)?S1:AZ.test(t)?km:new RegExp(jA,"i").test(t)?jA:new RegExp("("+BA+"|WPDesktop)","i").test(t)?BA:/iPad/.test(t)?vF:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?_F:p4.test(t)?Xm:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(pk,"i").test(t)?pk:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Jo).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Tu:mF:new RegExp("(pda|"+Jo+")","i").test(t)?RZ:new RegExp(Ym,"i").test(t)&&!new RegExp(Ym+" pc","i").test(t)?IF:""},MZ=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function vk(t,e){return typeof(n=t)=="string"&&MZ.test(n)?t:e();var n}function NF(t,e){var n=new Error(e);try{Object.defineProperty(n,"name",{value:t,writable:!0,enumerable:!0,configurable:!0})}catch{}return n}function ff(t){return t&&t.split("#")[0]}function g4(t,e){var n=setTimeout(t,e);return n?.unref&&n?.unref(),n}function yk(t,e,n){return $F.apply(this,arguments)}function $F(){return($F=rr((function*(t,e,n){var r;try{return yield Promise.race([t,new Promise(((i,s)=>{r=g4((()=>{try{n?.(),i()}catch(a){s(a)}}),e)}))])}finally{clearTimeout(r)}}))).apply(this,arguments)}var Z0,FF="NativeGzipValidationError",VA=t=>t.length>=2&&t[0]===31&&t[1]===139,_k=(t,e)=>t===$A.GZipJS||e===$A.GZipJS||e==="gzip",bk=t=>!(!t||typeof t!="object")&&("name"in t?String(t.name):"")==="NotReadableError",VS=t=>
10{throw NF(FF,"Native gzip produced invalid output: "+t)},DZ=(function(){var t=rr((function*(e,n){18>e.size&&VS("too-short");var r=new Uint8Array(yield e.slice(0,10).arrayBuffer());VA(r)&&r[2]===8||VS("invalid-header");var i=new DataView(yield e.slice(e.size-8).arrayBuffer());i.getUint32(0,!0)!==(a=>{for(var c=(()=>{if(Z0)return Z0;Z0=[];for(var p=0;256>p;p++){for(var v=p,y=0;8>y;y++)v=1&v?3988292384^v>>>1:v>>>1;Z0[p]=v>>>0}return Z0})(),u=4294967295,h=0;a.length>h;h++)u=c[255&(u^a[h])]^u>>>8;return(4294967295^u)>>>0})(n)&&VS("invalid-crc");var s=n.length>>>0;i.getUint32(4,!0)!==s&&VS("invalid-size")}));return function(e,n){return t.apply(this,arguments)}})();function qA(){return qA=rr((function*(t,e,n){e===void 0&&(e=!0);try{var r=new TextEncoder().encode(t),i=new globalThis.CompressionStream("gzip"),s=i.writable.getWriter(),a=s.write(r).then((()=>s.close())).catch((function(){var h=rr((function*(p){try{yield s.abort(p)}catch{}throw p}));return function(p){return h.apply(this,arguments)}})()),c=new Response(i.readable).blob(),u=(yield Promise.all([c,a]))[0];return yield DZ(u,r),u}catch(h){if(n!=null&&n.rethrow)throw h;return e&&console.error("Failed to gzip compress data",h),null}})),qA.apply(this,arguments)}var UF={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},NZ=UF.info,Ek=9223372036854776e3,$Z={}.propertyIsEnumerable;function K2(t,e){try{return BF(t,e,{ancestors:new WeakSet,remainingNodes:gZ},0)}catch{return[]}}function m4(t,e,n,r){if(0>=n.remainingNodes)return{stringValue:FA};if(n.remainingNodes--,Ws(t))return{boolValue:t};if(typeof t=="number"){if(!Number.isFinite(t))return{stringValue:String(t)};if(Number.isInteger(t)){if(Number.isSafeInteger(t))return{intValue:String(t)};if(typeof BigInt>"u")return{stringValue:String(t)};var i=BigInt(t).toString();return t>=Ek||-Ek>t?(e?.debug("Attribute "+i+" is outside the int64 range; encoding it as a string"),{stringValue:i}):{intValue:i}}return{doubleValue:t}}if(typeof t=="string")return{stringValue:Pm(t)};if(typeof t=="function")return{stringValue:vZ};if(typeof t=="symbol")return{stringValue:String(t)};if(typeof t=="object"&&t!==null){if(n.ancestors.has(t))return{stringValue:mZ};if(r>=pZ)return{stringValue:FA};if(t instanceof Date){var s=t.getTime(),a=Number.isFinite(s)?t.toISOString():String(t);return{stringValue:typeof a=="string"?Pm(a):String(a)}}n.ancestors.add(t);try{try{var c=t.toJSON;if(typeof c=="function")return m4(c.call(t),e,n,r+1)}catch{}return Ct(t)?{arrayValue:{values:FZ(t,e,n,r+1)}}:{kvlistValue:{values:BF(t,e,n,r+1)}}}finally{n.ancestors.delete(t)}}return{stringValue:Pm(String(t))}}function FZ(t,e,n,r){for(var i=[],s=Math.min(t.length,cF),a=0;s>a&&n.remainingNodes>0;a++)try{var c=a in t?t[a]:void 0;if(Dt(c))continue;i.push(m4(c,e,n,r))}catch{i.push({stringValue:ux})}return t.length>a&&i.push({stringValue:FA}),i}function BF(t,e,n,r){var i=[];for(var s in t)if($Z.call(t,s)){if(i.length>=cF||0>=n.remainingNodes){e?.debug("Attributes truncated: the value exceeds the OTLP encoder budget");break}try{var a=t[s];if(rs(a)||Pe(a))continue;i.push({key:Pm(s),value:m4(a,e,n,r)})}catch{i.push({key:Pm(s),value:{stringValue:ux}})}}return i}function UZ(t){try{return Pm(String(t))}catch{return ux}}function BZ(t,e,n,r){var i,s=UF[t.level||"info"]||NZ,a=s.text,c=s.number,u=((i=Fr(r)?r:void 0)===void 0&&(i=Date.now()),String(i)+"000000"),h={};e.distinctId&&(h.posthogDistinctId=e.distinctId),e.sessionId&&(h.sessionId=e.sessionId),e.windowId&&(h["window.id"]=e.windowId),Dt(e.sessionStartTimestamp)||(h.sessionStartTimestamp=String(e.sessionStartTimestamp)),Dt(e.lastActivityTimestamp)||(h.lastActivityTimestamp=String(e.lastActivityTimestamp)),e.currentUrl&&(h["url.full"]=e.currentUrl),e.screenName&&(h["screen.name"]=e.screenName),e.appState&&(h["app.state"]=e.appState),e.activeFeatureFlags&&e.activeFeatureFlags.length>0&&(h.feature_flags=e.activeFeatureFlags);var p=Ae({},h),v=t.attributes;if(v){var y=[];try{y=Object.keys(v)}catch{y=[]}for(var E of y){var S=void 0;try{S=v[E]}catch{S=ux}Object.defineProperty(p,E,{value:S,enumerable:!0,writable:!0,configurable:!0})}}var x={timeUnixNano:u,observedTimeUnixNano:u,severityNumber:c,severityText:a,body:{stringValue:UZ(t.body)},attributes:K2(p,n)};return t.trace_id&&(x.traceId=t.trace_id),t.span_id&&(x.spanId=t.span_id),Pe(t.trace_flags)||(x.flags=t.trace_flags),x}function jF(t,e,n){return Ae({},t.resourceAttributes,{"service.name":t.serviceName||"unknown_service"},t.environment&&{"deployment.environment":t.environment},t.serviceVersion&&{"service.version":t.serviceVersion},{"telemetry.sdk.name":e,"telemetry.sdk.version":n})}function HF(t,e,n,r){return{resourceLogs:[{resource:{attributes:K2(e)},scopeLogs:[{scope:{name:n,version:r},logRecords:t}]}]}}let jZ=class{constructor(t,e,n,r,i,s,a){var c;s===void 0&&(s=()=>Promise.resolve()),this._instance=t,this.zi=e,this.I=n,this.hn=r,this.dn=i,this.vn=s,this.fn=a,this.pn=null,this.gn=0,this.mn=0,this.yn=0,this.bn=0,this._n=0,this.wn=!1,this.kn=e.maxBufferSize,this.Sn=Math.max((c=e.maxQueueSize)!==null&&c!==void 0?c:e.maxBufferSize,e.maxBufferSize),this.xn=e.flushIntervalMs,this.Cn=e.maxBatchRecordsPerPost,this.Tn=e.rateCapWindowMs,this.Mn=e.maxLogsPerInterval}clearQueue(){this.mn++,this._instance.setPersistedProperty(dc.LogsQueue,[])}reset(){this.En(),this.bn=0,this._n=0,this.wn=!1,this.yn=0,this.Cn=this.zi.maxBatchRecordsPerPost}onReconnect(){this.yn=0,this.In()}captureLog(t,e){var n;if(!this._instance.isDisabled&&!this._instance.optedOut&&t!=null&&t.body){var r=this.Rn(t);if(r!==null)if(r.body){if(this.Pn()){var i={record:BZ(r,(n=e?.context)!==null&&n!==void 0?n:this.hn(),this.I,e?.occurredAtMs)};this.dn((()=>this.An(i)))}}else this.I.info("Log was rejected in beforeSend function")}}Rn(t){var e=this.zi.beforeSend;if(!e)return t;var n=Ct(e)?e:[e],r=t;for(var i of n)try{var s=i(r);if(!s)return this.I.info("Log was rejected in beforeSend function"),null;r=s}catch(a){return this.I.error("Error in beforeSend function for log:",a),null}return r}Pn(){if(this.Mn===void 0)return!0;var t=Date.now(),e=t-this.bn;return this.Tn>e&&e>=0||(this.bn=t,this._n=0,this.wn=!1),this.Mn>this._n?(this._n++,!0):(this.wn||(this.I.warn("captureLog dropping logs: exceeded "+this.Mn+" logs per "+this.Tn+"ms"),this.wn=!0),!1)}flush(){var t=this;return rr((function*(){if(!t._instance.isDisabled)return t.pn||(t.pn=t.Fn().finally((()=>{t.pn=null}))),t.pn}))()}Fn(){var t=this;return rr((function*(){var e;t.En();var n=(e=t._instance.getPersistedProperty(dc.LogsQueue))!==null&&e!==void 0?e:[];if(n.length!==0)for(var r=n.length,i=0;n.length>0&&r>i;){var s,a,c=t.mn;t.gn=0;var u=Math.min(n.length,t.Cn),h=n.slice(0,u),p=HF(h.map((y=>y.record)),t.On(),(s=t.fn)!==null&&s!==void 0?s:t._instance.getLibraryId(),t._instance.getLibraryVersion()),v=yield t._instance.Ln(p);if(t.mn!==c)return;if(v.kind==="too-large"&&h.length>1)t.Cn=Math.max(1,Math.floor(h.length/2)),t.I.warn("Received 413 when sending logs batch of size "+h.length+", reducing batch size to "+t.Cn);else if(v.kind==="retry-later"||(v.kind==="too-large"?t.I.warn("Dropping a single log record after 413 with batch size 1 â the record
10is larger than the server cap and cannot be split further."):v.kind==="ok"&&t.zi.maxBatchRecordsPerPost>t.Cn&&(t.Cn=Math.min(t.zi.maxBatchRecordsPerPost,t.Cn+1)),yield t.Dn(h.length),n=(a=t._instance.getPersistedProperty(dc.LogsQueue))!==null&&a!==void 0?a:[],i+=h.length,v.kind==="fatal"))throw v.error}}))()}Dn(t){var e=this;return rr((function*(){var n,r=Math.max(0,t-e.gn),i=(n=e._instance.getPersistedProperty(dc.LogsQueue))!==null&&n!==void 0?n:[];e._instance.setPersistedProperty(dc.LogsQueue,i.slice(r)),yield e.vn()}))()}On(){return jF(this.zi,this._instance.getLibraryId(),this._instance.getLibraryVersion())}An(t){var e;if(!this._instance.optedOut){var n=(e=this._instance.getPersistedProperty(dc.LogsQueue))!==null&&e!==void 0?e:[];this.Sn>n.length||(n.shift(),this.gn++,this.I.info("Logs queue is full, dropping oldest record.")),n.push(t),this._instance.setPersistedProperty(dc.LogsQueue,n),this.kn>n.length?this.$n():this.In()}}$n(t){t===void 0&&(t=this.xn),this.Nn||(this.Nn=g4((()=>{this.Nn=void 0,this.In()}),t))}qn(){var t=Math.min(Math.max(0,this.yn-1),6);return this.xn*Math.pow(2,t)}jn(){var t=this._instance.getPersistedProperty(dc.LogsQueue);return!!t&&t.length>0}shutdown(t){var e=this;return rr((function*(){e.En();var n=e.flush().catch((()=>{}));t!==void 0?yield yk(n,t):yield n}))()}flushWithTimeout(t){var e=this;return rr((function*(){var n=e.flush();yield yk(n,t,(()=>{n.catch((()=>{}))}))}))()}In(){this.flush().then((()=>{this.yn=0}),(t=>{this.yn++,this.I.error("PostHog logs flush failed:",t)})).finally((()=>{!this._instance.isDisabled&&this.jn()&&this.$n(this.qn())}))}En(){this.Nn&&(clearTimeout(this.Nn),this.Nn=void 0)}};var P5=[0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4];function Sk(t){return String(t)+"000000"}function wk(t,e,n,r){var i="";return r&&(i=Object.keys(r).sort().map((s=>JSON.stringify(s)+":"+JSON.stringify(r[s]))).join(",")),t+"\0"+e+"\0"+(n??"")+"\0"+i}let HZ=class{constructor(t,e,n){this._instance=t,this.zi=e,this.I=n,this.Bn=new Map,this.pn=null,this.Hn=!1,this.Un=new Map,this.zn=new Set,this.Wn=0}count(t,e,n){e===void 0&&(e=1),this.Vn({name:t,type:"count",value:e,unit:n?.unit,attributes:n?.attributes})}gauge(t,e,n){this.Vn({name:t,type:"gauge",value:e,unit:n?.unit,attributes:n?.attributes})}histogram(t,e,n){this.Vn({name:t,type:"histogram",value:e,unit:n?.unit,attributes:n?.attributes})}flush(){var t=this,e=this.pn,n=(function(){var i=rr((function*(){e&&(yield e.catch((()=>{}))),yield t.Gn()}));return function(){return i.apply(this,arguments)}})(),r=n().finally((()=>{this.pn===r&&(this.pn=null)}));return this.pn=r,r}drainWindow(){if(this.Bn.size===0)return null;var t=this.Bn;return this.Bn=new Map,this.Hn=!1,this.Un=new Map,this.zn=new Set,this.Zn(t)}reset(){this.Wn++,this.En(),this.Bn=new Map,this.pn=null,this.Hn=!1,this.Un=new Map,this.zn=new Set}Vn(t){if(!this._instance.isDisabled&&!this._instance.optedOut){var e=this.Rn(t);if(e!==null)if(e.name&&typeof e.name=="string")if(typeof e.value=="number"&&Number.isFinite(e.value))if(e.type==="count"&&0>e.value)this.I.warn("Dropping count '"+e.name+"': counters are monotonic, value must be >= 0");else{var n,r;try{n=e.attributes?Ae({},e.attributes):void 0,r=wk(e.type,e.name,e.unit,n)}catch(a){return void this.I.warn("Dropping metric '"+e.name+"': attributes could not be serialized",a)}var i=this.Bn.get(r);if(!i){if(!this.Qn())return;i={name:e.name,type:e.type,unit:e.unit,attributes:n,windowStartMs:Date.now()},this.Bn.set(r,i)}var s=this.Un.get(e.name);s===void 0?this.Un.set(e.name,e.type):s===e.type||this.zn.has(e.name)||(this.zn.add(e.name),this.I.warn("Metric name '"+e.name+"' is already used as a "+s+"; recording it as a "+e.type+" too will blend both series in charts. Use a distinct name.")),this.Jn(i,e.value),this.$n()}else this.I.warn("Dropping metric '"+e.name+"': value must be a finite number");else this.I.warn("Dropping metric with empty name")}}Qn(){return this.zi.maxSeriesPerFlush>this.Bn.size||(this.Hn||(this.Hn=!0,this.I.warn("Metric series cap reached ("+this.zi.maxSeriesPerFlush+" per flush window); dropping new series until the next flush. Reduce attribute cardinality.")),!1)}Jn(t,e){var n;switch(t.type){case"count":t.total=((n=t.total)!==null&&n!==void 0?n:0)+e;break;case"gauge":t.last=e;break;case"histogram":t.hist||(t.hist={count:0,sum:0,min:e,max:e,bucketCounts:new Array(P5.length+1).fill(0)});var r=t.hist;r.count+=1,r.sum+=e,r.min=Math.min(r.min,e),r.max=Math.max(r.max,e),r.bucketCounts[(function(i,s){for(var a=0;s.length>a;a++)if(s[a]>=i)return a;return s.length})(e,P5)]+=1}}Rn(t){var e=this.zi.beforeSend;if(!e)return t;var n=Ct(e)?e:[e],r=t;for(var i of n)try{var s=i(r);if(!s)return this.I.info("Metric was rejected in beforeSend function"),null;r=s}catch(a){return this.I.error("Error in beforeSend function for metric:",a),null}return r}$n(){this.Nn||(this.Nn=g4((()=>{this.Nn=void 0,this.flush().catch((t=>{this.I.error("Metrics flush failed:",t)}))}),this.zi.flushIntervalMs))}En(){this.Nn&&(clearTimeout(this.Nn),this.Nn=void 0)}Gn(){var t=this;return rr((function*(){if(t.Bn.size!==0){var e=t.Bn;t.Bn=new Map,t.Hn=!1,t.Un=new Map,t.zn=new Set;var n=t.Wn,r=yield t._instance.Kn(t.Zn(e));if(n===t.Wn)switch(r.kind){case"ok":return;case"retry-later":return t.Yn(e),void t.$n();case"too-large":return void t.I.warn("Metrics batch exceeded the server size limit and was dropped");case"fatal":return void t.I.error("Failed to send metrics batch:",r.error)}}}))()}
10Zn(t){return e=this.Xn(t),n=(function(s,a,c){return Ae({},s.resourceAttributes,{"service.name":s.serviceName||"unknown_service"},s.environment&&{"deployment.environment":s.environment},s.serviceVersion&&{"service.version":s.serviceVersion},{"telemetry.sdk.name":a,"telemetry.sdk.version":c})})(this.zi,this._instance.getLibraryId(),this._instance.getLibraryVersion()),r=this._instance.getLibraryId(),i=this._instance.getLibraryVersion(),{resourceMetrics:[{resource:{attributes:K2(n)},scopeMetrics:[{scope:{name:r,version:i},metrics:e}]}]};var e,n,r,i}Xn(t){var e=Sk(Date.now()),n=new Map;for(var r of t.values()){var i,s=wk(r.type,r.name,r.unit,void 0),a=n.get(s);a||(a=Ae({name:r.name},r.unit&&{unit:r.unit}),r.type==="count"?a.sum={aggregationTemporality:1,isMonotonic:!0,dataPoints:[]}:r.type==="gauge"?a.gauge={dataPoints:[]}:a.histogram={aggregationTemporality:1,dataPoints:[]},n.set(s,a));var c=K2((i=r.attributes)!==null&&i!==void 0?i:{},this.I),u=Sk(r.windowStartMs);if(r.type==="count"){var h,p={attributes:c,startTimeUnixNano:u,timeUnixNano:e,asDouble:(h=r.total)!==null&&h!==void 0?h:0};a.sum.dataPoints.push(p)}else if(r.type==="gauge"){var v,y={attributes:c,timeUnixNano:e,asDouble:(v=r.last)!==null&&v!==void 0?v:0};a.gauge.dataPoints.push(y)}else r.hist&&a.histogram.dataPoints.push({attributes:c,startTimeUnixNano:u,timeUnixNano:e,count:r.hist.count,sum:r.hist.sum,min:r.hist.min,max:r.hist.max,bucketCounts:r.hist.bucketCounts,explicitBounds:P5})}return Array.from(n.values())}Yn(t){var e,n;for(var r of t){var i=r[0],s=r[1],a=this.Bn.get(i);if(a)switch(a.windowStartMs=Math.min(a.windowStartMs,s.windowStartMs),a.type){case"count":a.total=((e=a.total)!==null&&e!==void 0?e:0)+((n=s.total)!==null&&n!==void 0?n:0);break;case"gauge":break;case"histogram":if(s.hist)if(a.hist){a.hist.count+=s.hist.count,a.hist.sum+=s.hist.sum,a.hist.min=Math.min(a.hist.min,s.hist.min),a.hist.max=Math.max(a.hist.max,s.hist.max);for(var c=0;a.hist.bucketCounts.length>c;c++)a.hist.bucketCounts[c]+=s.hist.bucketCounts[c]}else a.hist=s.hist}else this.Qn()&&this.Bn.set(i,s)}}};var qS,Ck,L5;function zZ(t){var e=globalThis._posthogChunkIds;if(e){var n=Object.keys(e);return L5&&n.length===Ck||(Ck=n.length,L5=n.reduce(((r,i)=>{qS||(qS={});var s=qS[i];if(s)r[s[0]]=s[1];else for(var a=t(i),c=a.length-1;c>=0;c--){var u=a[c],h=u?.filename,p=e[i];if(h&&p){r[h]=p,qS[i]=[h,p];break}}return r}),{})),L5}}class VZ{constructor(e,n,r){r===void 0&&(r=[]),this.coercers=e,this.stackParser=n,this.modifiers=r}buildFromUnknown(e,n){n===void 0&&(n={});var r=n&&n.mechanism||{handled:!0,type:"generic"},i=this.buildCoercingContext(r,n,0).apply(e),s=this.buildParsingContext(n),a=this.parseStacktrace(i,s);return{$exception_list:this.convertToExceptionList(a,r),$exception_level:"error"}}modifyFrames(e){var n=this;return rr((function*(){for(var r of e)r.stacktrace&&r.stacktrace.frames&&Ct(r.stacktrace.frames)&&(r.stacktrace.frames=yield n.applyModifiers(r.stacktrace.frames));return e}))()}coerceFallback(e){var n;return{type:"Error",value:"Unknown error",stack:(n=e.syntheticException)==null?void 0:n.stack,synthetic:!0}}parseStacktrace(e,n){var r,i;return e.cause!=null&&(r=this.parseStacktrace(e.cause,n)),e.stack!=""&&e.stack!=null&&(i=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?n.skipFirstLines:0),n.chunkIdMap)),Ae({},e,{cause:r,stack:i})}applyChunkIds(e,n){return e.map((r=>(r.filename&&n&&(r.chunk_id=n[r.filename]),r)))}applyCoercers(e,n){for(var r of this.coercers)if(r.match(e))return r.coerce(e,n);return this.coerceFallback(n)}applyModifiers(e){var n=this;return rr((function*(){var r=e;for(var i of n.modifiers)r=yield i(r);return r}))()}convertToExceptionList(e,n){var r,i,s,a={type:e.type,value:e.value,mechanism:{type:(r=n.type)!==null&&r!==void 0?r:"generic",handled:(i=n.handled)===null||i===void 0||i,synthetic:(s=e.synthetic)!==null&&s!==void 0&&s}};e.stack&&(a.stacktrace={type:"raw",frames:e.stack});var c=[a];return e.cause!=null&&c.push(...this.convertToExceptionList(e.cause,Ae({},n,{handled:!0}))),c}buildParsingContext(e){var n;return{chunkIdMap:zZ(this.stackParser),skipFirstLines:(n=e.skipFirstLines)!==null&&n!==void 0?n:1}}buildCoercingContext(e,n,r){r===void 0&&(r=0);var i=(s,a)=>
10{if(4>=a){var c=this.buildCoercingContext(e,n,a);return this.applyCoercers(s,c)}};return Ae({},n,{syntheticException:r==0?n.syntheticException:void 0,mechanism:e,apply:s=>i(s,r),next:s=>i(s,r+1)})}}var Qm="?";function WA(t,e,n,r,i){var s={platform:t,filename:e,function:n==="<anonymous>"?Qm:n,in_app:!(e!=null&&e.startsWith("webkit-masked-url://"))&&e!=="<anonymous>"};return Pe(r)||(s.lineno=r),Pe(i)||(s.colno=i),s}var zF=(t,e)=>{var n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Qm,n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},qZ=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,WZ=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,GZ=/\((\S*)(?::(\d+))(?::(\d+))\)/,KZ=(t,e)=>{var n=qZ.exec(t);if(n)return WA(e,n[1],Qm,+n[2],+n[3]);var r=WZ.exec(t);if(r){if(r[2]&&r[2].indexOf("eval")===0){var i=GZ.exec(r[2]);i&&(r[2]=i[1],r[3]=i[2],r[4]=i[3])}var s=zF(r[1]||Qm,r[2]);return WA(e,s[1],s[0],r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},YZ=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,XZ=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,QZ=(t,e)=>{var n=YZ.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=XZ.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var i=n[3],s=n[1]||Qm,a=zF(s,i);return WA(e,i=a[1],s=a[0],n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},xk=/\(error: (.*)\)/;class ZZ{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,n){var r=hn(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:r?e.stack:void 0,cause:e.cause?n.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var n=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?n+": "+e.message:n}isDOMException(e){return z2(e,"DOMException")}isDOMError(e){return z2(e,"DOMError")}}class JZ{match(e){return pF(e)}coerce(e,n){var r,i=this.getStack(e),s=i===void 0;return{type:this.getType(e),value:this.getMessage(e,n),stack:i??((r=n.syntheticException)==null?void 0:r.stack),cause:e.cause?n.next(e.cause):void 0,synthetic:s}}getType(e){return e.name||e.constructor.name}getMessage(e,n){var r=e.message;return String(r.error&&typeof r.error.message=="string"?r.error.message:r)}getStack(e){return e.stacktrace||e.stack||void 0}}class eJ{constructor(){}match(e){return!!z2(e,"ErrorEvent")&&(e.error!=null||this.ki(e))}coerce(e,n){var r;if(e.error!=null)return n.apply(e.error);var i=n.apply(e.message);return Ae({},i,{stack:(r=this.Si(e))!==null&&r!==void 0?r:i.stack,synthetic:!0})}ki(e){return hn(e.message)&&e.message.length>0}Si(e){var n,r,i=e,s=(n=i.lineno)!==null&&n!==void 0?n:0,a=(r=i.colno)!==null&&r!==void 0?r:0;if(hn(i.filename)&&i.filename.length!==0&&s!==0)return`Error 11 at `+i.filename+":"+s+":"+a}}var tJ=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class nJ{match(e){return typeof e=="string"}coerce(e,n){var r,i=this.getInfos(e),s=i[0],a=i[1];return{type:s??"Error",value:a??e,stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}getInfos(e){var n="Error",r=e,i=e.match(tJ);return i&&(n=i[1],r=i[2]),[n,r]}}var rJ=["fatal","error","warning","log","info","debug"];function VF(t,e){e===void 0&&(e=40);var n=Object.keys(t);if(n.sort(),!n.length)return"[object has no keys]";for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(e>=i.length)return r===n.length?i:i.length>e?i.slice(0,e)+"...":i}return""}class iJ{match(e){return typeof e=="object"&&e!==null}coerce(e,n){var r,i,s=this.getErrorPropertyFromObject(e);return s?n.apply(s):{type:this.getType(e),value:this.getValue(e),stack:(r=this.getStack(e))!==null&&r!==void 0?r:(i=n.syntheticException)==null?void 0:i.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){if(u4(e))return e.constructor.name;var n="name"in e?e.name:void 0;return hn(n)&&!H2(n)?n:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var n="'"+e.n
11ame+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(n+=" with message: '"+e.message+"'"),n}if("message"in e&&typeof e.message=="string")return e.message;var r=this.getObjectClassName(e);return(r&&r!=="Object"?"'"+r+"'":"Object")+" captured as exception with keys: "+VF(e)}isSeverityLevel(e){return hn(e)&&!H2(e)&&rJ.indexOf(e)>=0}getStack(e){try{return hn(e.stacktrace)&&e.stacktrace.length>0?e.stacktrace:hn(e.stack)&&e.stack.length>0?e.stack:void 0}catch{return}}getErrorPropertyFromObject(e){for(var n in e)if({}.hasOwnProperty.call(e,n)){var r=e[n];if(pF(r))return r}}getObjectClassName(e){try{var n=Object.getPrototypeOf(e);return n?n.constructor.name:void 0}catch{return}}}class sJ{match(e){return u4(e)}coerce(e,n){var r,i=e.constructor.name;return{type:i,value:i+" captured as exception with keys: "+VF(e),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class oJ{match(e){return hF(e)}coerce(e,n){var r;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}}}class aJ{match(e){return z2(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!u4(e))return!1;try{var n=e.detail;return n!=null&&typeof n=="object"&&"reason"in n}catch{return!1}}coerce(e,n){var r,i=this.getUnhandledRejectionReason(e);return hF(i)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i),stack:(r=n.syntheticException)==null?void 0:r.stack,synthetic:!0}:n.apply(i)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}}var Y2="$message",X2="$timestamp",lJ=new Set([Y2,X2]),k5={enabled:!0,max_bytes:32768};function Q2(t){var e;return t?{enabled:(e=t.enabled)!==null&&e!==void 0?e:k5.enabled,max_bytes:uJ(t.max_bytes,k5.max_bytes)}:Ae({},k5)}class cJ{constructor(e){this.ts=[],this.es=0,this.zi=Q2(e)}setConfig(e){this.zi=Q2(e),this.rs()}add(e){var n=(function(i){var s;try{s=uF(i)}catch{return}try{var a=JSON.parse(s);if(!Yn(a))return;var c=a,u=c[Y2],h=c[X2];return!hn(u)||u.trim().length===0||!hn(h)&&!Fr(h)?void 0:{step:c,json:s}}catch{return}})(e);if(n){var r=(function(i){if(typeof TextEncoder<"u")return new TextEncoder().encode(i).length;for(var s=encodeURIComponent(i),a=0,c=0;s.length>c;c++)s[c]==="%"?(a+=1,c+=2):a+=1;return a})(n.json);r>this.zi.max_bytes||(this.ts.push({step:n.step,bytes:r}),this.es+=r,this.rs())}}getAttachable(){return this.ts.map((e=>e.step))}clear(){this.ts=[],this.es=0}size(){return this.ts.length}rs(){for(;this.es>this.zi.max_bytes&&this.ts.length>0;){var e=this.ts.shift();e&&(this.es-=e.bytes)}}}function uJ(t,e){if(!Fr(t)||t===1/0||t===-1/0)return e;var n=Math.floor(t);return 0>n?e:n}var qF=function(t,e){var n=(e===void 0?{}:e).debugEnabled,r={P(i){if(ye&&(nr.DEBUG||ye.POSTHOG_DEBUG||n)&&!Pe(ye.console)&&ye.console){for(var s=("__rrweb_original__"in ye.console[i])?ye.console[i].__rrweb_original__:ye.console[i],a=arguments.length,c=new Array(a>1?a-1:0),u=1;a>u;u++)c[u-1]=arguments[u];s(t,...c)}},debug(){for(var i=arguments.length,s=new Array(i),a=0;i>a;a++)s[a]=arguments[a];r.P("debug",...s)},info(){for(var i=arguments.length,s=new Array(i),a=0;i>a;a++)s[a]=arguments[a];r.P("log",...s)},warn(){for(var i=arguments.length,s=new Array(i),a=0;i>a;a++)s[a]=arguments[a];r.P("warn",...s)},error(){for(var i=arguments.length,s=new Array(i),a=0;i>a;a++)s[a]=arguments[a];r.P("error",...s)},critical(){for(var i=arguments.length,s=new Array(i),a=0;i>a;a++)s[a]=arguments[a];console.error(t,...s)},uninitializedWarning(i){r.error("You must initialize PostHog before calling "+i)},createLogger:(i,s)=>qF(t+" "+i,s)};return r},Ue=qF("[PostHog.js]"),gr=Ue.createLogger,dJ=gr("[ExternalScriptsLoader]"),Z2=t=>{var e=De?.querySelectorAll("script");if(e){for(var n=0;e.length>n;n++)if(e[n].src===t||e[n].getAttribute("src")===t)return e[n]}},Ph=(t,e,n)=>{if(t.config.disable_external_dependency_loading)return dJ.warn(e+" was requested but loading of external scripts is disabled."),n("Loading of external scripts is disabled");var r=Z2(e);
11if(r){if(r.__posthog_loading_callback_fired)return n();var i=r.__posthog_loading_error;return i?n(i):(r.addEventListener("load",(a=>{r.__posthog_loading_callback_fired=!0,n(void 0,a)})),void r.addEventListener("error",(a=>{r.__posthog_loading_error=a,n(a)})))}var s=()=>{if(!De)return n("document not found");if(Z2(e))return Ph(t,e,n);var a=De.createElement("script");if(a.type="text/javascript",a.crossOrigin="anonymous",a.src=e,a.onload=h=>{a.__posthog_loading_callback_fired=!0,n(void 0,h)},a.onerror=h=>{a.__posthog_loading_error=h,n(h)},t.config.prepare_external_dependency_script&&(a=t.config.prepare_external_dependency_script(a)),!a)return n("prepare_external_dependency_script returned null");if(t.config.external_scripts_inject_target==="head")De.head.appendChild(a);else{var c,u=De.querySelectorAll("body > script");u.length>0?(c=u[0].parentNode)==null||c.insertBefore(a,u[0]):De.body.appendChild(a)}};De!=null&&De.body?s():De?.addEventListener("DOMContentLoaded",s)},M5={},Tk=(t,e)=>{var n="/static/"+e+".js?v="+t.version;if(e==="toolbar"){var r=3e5;n=n+"&t="+Math.floor(Date.now()/r)*r}return t.requestRouter.endpointFor("assets",n)};st.__PosthogExtensions__=st.__PosthogExtensions__||{},st.__PosthogExtensions__.loadExternalDependency=(t,e,n)=>{if(e!=="remote-config"){var r=t.config.strict_script_versioning;if(r){var i=t.requestRouter.endpointFor("assets","/static/"+t.version+"/"+e+".js"),s=M5[i];if(r==="fallback"&&s){if(Z2(s))return void Ph(t,s,n);delete M5[i]}Ph(t,i,r==="fallback"?(c,u)=>{if(c)if(typeof c=="string")n(c);else{var h,p=Tk(t,e);M5[i]=p;var v=Z2(i);v==null||(h=v.parentNode)==null||h.removeChild(v),Ph(t,p,n)}else n(void 0,u)}:n)}else Ph(t,Tk(t,e),n)}else{var a=t.requestRouter.endpointFor("assets","/array/"+t.config.token+"/config.js");Ph(t,a,n)}},st.__PosthogExtensions__.loadSiteApp=(t,e,n)=>{var r=t.requestRouter.endpointFor("api",e);Ph(t,r,n)};nr.DEBUG=!1,nr.LIB_VERSION="1.422.1",nr.LIB_NAME="web";var WF="$people_distinct_id",Vs="distinct_id",w1="$device_id",D5="$device_model",xm="__alias",I_="__timers",GA="$autocapture_disabled_server_side",KA="$heatmaps_enabled_server_side",YA="$exception_capture_enabled_server_side",XA="$error_tracking_suppression_rules",QA="$error_tracking_capture_extension_exceptions",ZA="$web_vitals_enabled_server_side",v4="$dead_clicks_enabled_server_side",y4="$product_tours_enabled_server_side",JA="$logs_capture_enabled_server_side",eO="$web_vitals_allowed_metrics",qh="$session_recording_remote_config",GF="$replay_sample_rate",KF="$replay_override_sampling",YF="$replay_override_linked_flag",XF="$replay_override_url_trigger",QF="$replay_override_event_trigger",Tm="$sesid",_4="$session_is_sampled",yu="$enabled_feature_flags",Wh="$active_feature_flags",Uw="$early_access_features",C1="$feature_flag_details",Gh="$feature_flag_payloads",Mm="$feature_flag_request_id",J2="$minimal_flag_called_events",lc="$override_feature_flags",Lh="$override_feature_flag_payloads",al="$stored_person_properties",pc="$stored_group_properties",ZF="$groups",tO="$surveys",eC="$surveys_loaded_at",nO="$surveys_activated",Bw="$surveys_activated_session",jw="$surveys_activated_timestamps",P_="ph_product_tours",bu="$flag_call_reported",L_="$flag_call_reported_session_id",Dm="$feature_flag_errors",np="$feature_flag_evaluated_at",Qt="$user_state",rO="$client_session_props",iO="$capture_rate_limit",sO="$initial_campaign_params",oO="$initial_referrer_info",tC="$initial_person_info",nC="$epp",nm="$posthog_cookieless",JF="$cookieless_mode",eU="$sdk_debug_extensions_init_method",tU="$sdk_debug_extensions_init_time_ms",aO="$sdk_debug_recording_script_not_loaded",b4="PostHog loadExternalDependency extension not found.",kh="on_reject",Eu="always",Wr="anonymous",ts="identified",lO="identified_only",Zm="visibilitychange",rC="beforeunload",ym="$pageview",N5="$pageleave",$5="$identify",Rk="$groupidentify";function WS(t,e){Ct(t)&&t.forEach(e)}function kn(t,e){if(!Dt(t))if(Ct(t))t.forEach(e);else if(_Z(t))t.forEach(((r,i)=>e(r,i)));else for(var n in t)fF.call(t,n)&&e(t[n],n)}var Xn=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;e>r;r++)n[r-1]=arguments[r];for(var i of n)for(var s in i)i[s]!==void 0&&(t[s]=i[s]);return t};function Hw(t){for(var e=Object.keys(t),n=e.length,r=new Array(n);n--;)r[n]=[e[n],t[e[n]]];return r}var Ak=function(t){try{return t()}catch{return}},fJ=function(t){return function(){try{for(var e=arguments.length,n=new Array(e),r=0;e>r;r++)n[r]=arguments[r];return t.apply(this,n)}catch(i){Ue.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Ue.critical(i)}}},E4=function(t){var e={};return kn(t,(function(n,r){(hn(n)&&n.length>0||Fr(n))&&(e[r]=n)})),e},hJ=["herokuapp.com","vercel.app","netlify.app"];function pJ(t){var e=t?.hostname;if(!hn(e))return!1;var n=e.split(".").slice(-2).join(".");for(var r of hJ)if(n===r)return!1;return!0}function sr(t,e,n,r){var i=r??{},s=i.capture,a=i.passive;t?.addEventListener(e,n,{capture:s!==void 0&&s,passive:a===void 0||a})}
11function cO(t){return t.name==="ph_toolbar_internal"}var nU=t=>{if(De){try{for(var e=t+"=",n=De.cookie.split(";").filter((s=>s.length)),r=0;n.length>r;r++){for(var i=n[r];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(e)===0)return decodeURIComponent(i.substring(e.length,i.length))}}catch{}return null}};Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return Fr(t)&&isFinite(t)&&Math.floor(t)===t});class iC{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,n,r,i){if(!Number.isInteger(e)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||0>e||0>n||0>r||0>i||e>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");var s=new Uint8Array(16);return s[0]=e/Math.pow(2,40),s[1]=e/Math.pow(2,32),s[2]=e/Math.pow(2,24),s[3]=e/Math.pow(2,16),s[4]=e/256,s[5]=e,s[6]=112|n>>>8,s[7]=n,s[8]=128|r>>>24,s[9]=r>>>16,s[10]=r>>>8,s[11]=r,s[12]=i>>>24,s[13]=i>>>16,s[14]=i>>>8,s[15]=i,new iC(s)}toString(){for(var e="",n=0;this.bytes.length>n;n++)e=e+(this.bytes[n]>>>4).toString(16)+(15&this.bytes[n]).toString(16),n!==3&&n!==5&&n!==7&&n!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new iC(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var n=0;16>n;n++){var r=this.bytes[n]-e.bytes[n];if(r!==0)return Math.sign(r)}return 0}}class gJ{generate(){var e=this.generateOrAbort();if(!Pe(e))return e;this.Fr=0;var n=this.generateOrAbort();if(Pe(n))throw new Error("Could not generate UUID after timestamp reset");return n}generateOrAbort(){var e=Date.now();if(e>this.Fr)this.Fr=e,this.Nr();else{if(this.Fr>=e+1e4)return;this.qr++,this.qr>4398046511103&&(this.Fr++,this.Nr())}return iC.fromFieldsV7(this.Fr,Math.trunc(this.qr/Math.pow(2,30)),this.qr&Math.pow(2,30)-1,this.jr.nextUint32())}Nr(){this.qr=1024*this.jr.nextUint32()+(1023&this.jr.nextUint32())}constructor(){this.Fr=0,this.qr=0,this.jr=new mJ}}var Ok,rU=t=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;t.length>e;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};ye&&!Pe(ye.crypto)&&crypto.getRandomValues&&(rU=t=>crypto.getRandomValues(t));class mJ{nextUint32(){return this.bt.length>this.Br||(rU(this.bt),this.Br=0),this.bt[this.Br++]}
11constructor(){this.bt=new Uint32Array(8),this.Br=1/0}}var hc=()=>vJ().toString(),vJ=()=>(Ok||(Ok=new gJ)).generate(),J0="",yJ=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,ti={Hr:()=>!!De,zr(t){Ue.error("cookieStore error: "+t)},$r:nU,Vr(t){var e;try{e=JSON.parse(ti.$r(t))||{}}catch{}return e},Ur(t,e,n,r,i){if(!De)return!1;try{var s="",a="",c=(function(p,v){if(v){var y=(function(S,x){if(x===void 0&&(x=De),J0)return J0;if(!x||["localhost","127.0.0.1"].includes(S))return"";for(var C=S.split("."),R=Math.min(C.length,8),A="dmn_chk_"+hc();!J0&&R--;){var O=C.slice(R).join("."),P=A+"=1;domain=."+O+";path=/";x.cookie=P+";max-age=3",x.cookie.includes(A)&&(x.cookie=P+";max-age=0",J0=O)}return J0})(p);if(!y){var E=(S=>{var x=S.match(yJ);return x?x[0]:""})(p);E!==y&&Ue.info("Warning: cookie subdomain discovery mismatch",E,y),y=E}return y?"; domain=."+y:""}return""})(De.location.hostname,r);if(n){var u=new Date;u.setTime(u.getTime()+864e5*n),s="; expires="+u.toUTCString()}i&&(a="; secure");var h=t+"="+encodeURIComponent(JSON.stringify(e))+s+"; SameSite=Lax; path=/"+c+a;return h.length>3686.4&&Ue.warn("cookieStore warning: large cookie, len="+h.length),De.cookie=h,!0}catch{return!1}},Wr(t,e){if(De!=null&&De.cookie)try{ti.Ur(t,"",-1,e)}catch{return}}},F5=null,jn={Hr(){if(!rs(F5))return F5;var t=!0;if(Pe(ye))t=!1;else try{var e="__mplssupport__";jn.Ur(e,"xyz"),jn.$r(e)!=='"xyz"'&&(t=!1),jn.Wr(e)}catch{t=!1}return t||Ue.error("localStorage unsupported; falling back to cookie store"),F5=t,t},zr(t){Ue.error("localStorage error: "+t)},$r(t){try{return ye?.localStorage.getItem(t)}catch(e){jn.zr(e)}return null},Vr(t){try{return JSON.parse(jn.$r(t))||{}}catch{}return null},Ur(t,e){try{return ye?.localStorage.setItem(t,JSON.stringify(e)),!0}catch(n){jn.zr(n)}return!1},Wr(t){try{ye?.localStorage.removeItem(t)}catch(e){jn.zr(e)}}},U5=[al,Wh,yu,C1,Gh,Mm,np,Dm,bu],Mh=[w1,Vs,Tm,_4,nC,tC,Qt],sC=t=>t+"_cpm",_J=["__proto__","constructor","prototype"],B5=t=>{if(!Yn(t))return{};var e={};return Object.keys(t).forEach((n=>{_J.indexOf(n)===-1&&(e[n]=t[n])})),e},j5=function(t,e){e===void 0&&(e=[]);var n={};return[...Mh,...e].forEach((r=>{var i=t[r];Pe(i)||rs(i)||i===""||(n[r]=i)})),n},iU=t=>{for(var e=5381,n=2166136261,r=0;t.length>r;r++){var i=t.charCodeAt(r);e=33*e^i,n=Math.imul(n^i,16777619)}return t.length.toString(36)+"."+(e>>>0).toString(36)+"."+(n>>>0).toString(36)},Ik=(t,e)=>({p:e,f:iU(JSON.stringify(t))}),Pk=(t,e)=>{if(!e)return{properties:[],isValid:!1};try{var n=ti.Vr(sC(t)),r=n?.f===iU(e)&&Ct(n.p);return{properties:r?n.p:[],isValid:r}}catch{return{properties:[],isValid:!1}}},H5=(t,e)=>e+"|"+(ti.$r(sC(t))||""),GS={},bJ={Hr:()=>!0,zr(t){Ue.error("memoryStorage error: "+t)},$r:t=>GS[t]||null,Vr:t=>GS[t]||null,Ur:(t,e)=>(GS[t]=e,!0),Wr(t){delete GS[t]}},Ch=null,Qn={Hr(){if(!rs(Ch))return Ch;if(Ch=!0,Pe(ye))Ch=!1;else try{var t="__support__";Qn.Ur(t,"xyz"),Qn.$r(t)!=='"xyz"'&&(Ch=!1),Qn.Wr(t)}catch{Ch=!1}return Ch},zr(t){Ue.error("sessionStorage error: ",t)},$r(t){try{return ye?.sessionStorage.getItem(t)}catch(e){Qn.zr(e)}return null},Vr(t){try{return JSON.parse(Qn.$r(t))||null}catch{}return null},Ur(t,e){try{return ye?.sessionStorage.setItem(t,JSON.stringify(e)),!0}catch(n){Qn.zr(n)}return!1},Wr(t){try{ye?.sessionStorage.removeItem(t)}catch(e){Qn.zr(e)}}};class EJ{constructor(e){this._instance=e}get zi(){return this._instance.config}get consent(){return this.ks()?0:this.Ss}isOptedOut(){return this.zi.cookieless_mode===Eu||this.isRejected()||this.consent===-1&&this.zi.cookieless_mode===kh}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.zi.opt_out_capturing_by_default}optInOut(e){this.xs.Ur(this.Cs,e?1:0,this.zi.cookie_expiration,this.zi.cross_subdomain_cookie,this.zi.secure_cookie)}reset(){this.xs.Wr(this.Cs,this.zi.cross_subdomain_cookie)}get Cs(){var e=this._instance.config,n=e.token,r=e.opt_out_capturing_cookie_prefix;return e.consent_persistence_name||(r?r+n:"__ph_opt_in_out_"+n)}get Ss(){var e=this.xs.$r(this.Cs);return O5(e)?1:Rt(wZ,e)?0:-1}get xs(){var e=this.zi.opt_out_capturing_persistence_type,n=e==="localStorage"?jn:ti;if(!this.Ts||this.Ts!==n){this.Ts=n;var r=e==="localStorage"?ti:jn;r.$r(this.Cs)&&(this.Ts.$r(this.Cs)||this.optInOut(O5(r.$r(this.Cs))),r.Wr(this.Cs,this.zi.cross_subdomain_cookie))}return this.Ts}ks(){return!!this.zi.respect_dnt&&[Gs?.doNotTrack,Gs?.msDoNotTrack,st.doNotTrack].some((e=>O5(e)))}}function sU(t,e){var n,r=t==null||(n=t.config)==null?void 0:n.get_current_url;if(!Es(r))return e;try{var i=r(e);return hn(i)&&i?i:e}catch(s){return Ue.error("Error in get_current_url, falling back to window.location.href",s),e}}var oU="__POSTHOG_TOOLBAR__",SJ=1,wJ=3,CJ=11;function Lk(t){return t instanceof Element&&(t.id===oU||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function hf(t){return!!t&&t.nodeType===SJ}function Yo(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function aU(t){return!!t&&t.nodeType===wJ}function lU(t){return!!t&&t.nodeType===CJ&&hf(t.host)}var cU=1e3;function S4(t){return t?dx(t).split(/\s+/):[]}function kk(t,e){var n=(function(r){var i,s=ye==null||(i=ye.location)==null?void 0:i.href;return Pe(s)?void 0:sU(r,s)})(e);return!!(n&&t&&t.some((r=>n.match(r))))}function oC(t){var e="";switch(typeof t.className){case"string":e=t.className;break;case"object":e=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return S4(e)}function uU(t){return Dt(t)?null:dx(t).split(/(\s+)/).filter((e=>Q_(e))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function x1(t){var e="";return fO(t)&&!gU(t)&&t.childNodes&&t.childNodes.length&&kn(t.childNodes,(function(n){var r;aU(n)&&n.textContent&&(e+=(r=uU(n.textContent))!==null&&r!==void 0?r:"")})),dx(e)}function uO(t){var e;return Pe(t.target)?t.srcElement||null:(e=t.target)!=null&&e.shadowRoot?t.composedPath()[0]||null:t.target||null}var w4=["a","button","form","input","select","textarea","label"];function dO(t,e){if(Pe(e))return!0;var n,r=function(s){if(e.some((a=>(function(c,u){var h=c.matches||c.matchesSelector||c.msMatchesSelector||c.mozMatchesSelector||c.webkitMatchesSelector||c.oMatchesSelector;
11try{return!!h&&h.call(c,u)}catch{return!1}})(s,a))))return{v:!0}};for(var i of t)if(n=r(i))return n.v;return!1}function dU(t){var e=t.parentNode;return!(!e||!hf(e))&&e}var xJ=[".ph-no-autocapture","[data-ph-no-autocapture]"],fU=["next","previous","prev",">","<"],TJ=[...fU,"+","-","â","â"],Mk=(t,e)=>/[a-z0-9]/i.test(e)?t.includes(e):t===e,Dk=[".ph-no-rageclick",".ph-no-capture"],RJ=["","text","search","email","password","url","tel","number"];function hU(t,e){if(!ye||C4(t))return!1;var n,r,i,s,a;if(Ws(e)?(n=!!e&&Dk,r=void 0,i=!1):(n=(s=e?.css_selector_ignorelist)!==null&&s!==void 0?s:Dk,r=e?.content_ignorelist,i=(a=e?.ignore_text_selection)!==null&&a!==void 0&&a),n===!1||i&&(function(u){return!(!u||!hf(u))&&(!!Yo(u,"textarea")||(Yo(u,"input")?Rt(RJ,(u.getAttribute("type")||"").toLowerCase()):(function(h){if(h.isContentEditable)return!0;var p=h.getAttribute==null?void 0:h.getAttribute("contenteditable");return p==="true"||p===""})(u)))})(t))return!1;var c=pU(t,!1).targetElementList;return!(function(u,h){if(u===!1||Pe(u))return!1;var p;if(u===!0)p=fU;else{if(!Ct(u))return!1;if(u.length>10)return Ue.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;p=u.map((v=>v.toLowerCase()))}return h.some((v=>{var y=v.safeText,E=v.ariaLabel;return p.some((S=>Mk(y,S)||Mk(E,S)))}))})(r,c.map((u=>{var h;return{safeText:x1(u).toLowerCase(),ariaLabel:((h=u.getAttribute("aria-label"))==null?void 0:h.toLowerCase().trim())||""}})))&&!dO(c,n)}var C4=t=>!t||Yo(t,"html")||!hf(t),pU=(t,e)=>{if(!ye||C4(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var n=!1,r=[t],i=t;i.parentNode&&!Yo(i,"body");)if(lU(i.parentNode))r.push(i.parentNode.host),i=i.parentNode.host;else{var s=dU(i);if(!s)break;if(e||w4.indexOf(s.tagName.toLowerCase())>-1)n=!0;else try{var a=ye.getComputedStyle(s);a&&a.getPropertyValue("cursor")==="pointer"&&(n=!0)}catch{}r.push(s),i=s}return{parentIsUsefulElement:n,targetElementList:r}};function fO(t){for(var e=new Set,n=0,r=t;r.parentNode&&!Yo(r,"body");r=r.parentNode){if(n++>=cU||e.has(r))return!1;e.add(r);var i=oC(r);if(Rt(i,"ph-sensitive")||Rt(i,"ph-no-capture"))return!1}if(Rt(oC(t),"ph-include"))return!0;var s=t.type||"";if(hn(s))switch(s.toLowerCase()){case"hidden":case"password":return!1}var a=t.name||t.id||"";return!hn(a)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(a.replace(/[^a-zA-Z0-9]/g,""))}function gU(t){return!!(Yo(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||Yo(t,"select")||Yo(t,"textarea")||t.getAttribute("contenteditable")==="true")}var Nk=new RegExp("^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$"),$k=/(^|[^0-9A-Za-z_])([0-9][0-9 -]*[0-9])(?=$|[^0-9A-Za-z_])/g,AJ=[16,15,14,13],OJ=new RegExp("^(\\d{3}-?\\d{2}-?\\d{4})$"),Fk=new RegExp("(^|[^0-9])((?!000|666)[0-9]{3}-?(?!00)[0-9]{2}-?(?!0000)[0-9]{4})(?=$|([^0-9]))","g"),Uk=/[0-9A-Za-z_]/;function IJ(t){for(var e=0,n=!1,r=t.length-1;r>=0;r--){var i=t.charCodeAt(r)-48;n&&(i*=2)>9&&(i-=9),e+=i,n=!n}return e%10==0}function Q_(t,e){if(e===void 0&&(e=!0),Dt(t))return!1;if(hn(t)){t=dx(t);var n=e?Nk.test((t||"").replace(/[- ]/g,"")):(function(i){var s;for($k.lastIndex=0;s=$k.exec(i);){var a=s[2];if(a)for(var c=a.replace(/[- ]/g,""),u=0;c.length>u;u++)for(var h of AJ){var p=u+h;if(c.length>=p){var v=c.slice(u,p);if(Nk.test(v)&&IJ(v))return!0}}}return!1})(t);if(n)return!1;var r=e?OJ.test(t):(function(i){var s;for(Fk.lastIndex=0;s=Fk.exec(i);){var a=s[1],c=s[3];if(!(a&&c&&Uk.test(a)&&Uk.test(c)))return!0}return!1})(t);if(r)return!1}return!0}function Bk(t){var e=x1(t);return Q_(e=(e+" "+mU(t)).trim())?e:""}function mU(t){var e="";return t&&t.childNodes&&t.childNodes.length&&kn(t.childNodes,(function(n){var r;if(n&&((r=n.tagName)==null?void 0:r.toLowerCase())==="span")try{var i=x1(n);e=(e+" "+i).trim(),n.childNodes&&n.childNodes.length&&(e=(e+" "+mU(n)).trim())}catch(s){Ue.error("[AutoCapture]",s)}})),e}function jk(t){return t.replace(/"|\\"/g,'\\"')}function PJ(t){var e=t.attr__class;if(e)return Ct(e)?e:S4(e)}var KS=gr("[Dead Clicks]"),LJ=()=>!0,kJ=t=>{var e,n=!((e=t.instance.persistence)==null||!e.get_property(v4)),r=t.instance.config.capture_dead_clicks;return Ws(r)?r:!!Yn(r)||n};class Hk{get lazyLoadedDeadClicksAutocapture(){return this.Ms}constructor(e,n,r){this.instance=e,this.isEnabled=n,this.onCapture=r,this.startIfEnabledOrStop()}onRemoteConfig(e){if(e.ok){var n=e.config;"captureDeadClicks"in n&&(this.instance.persistence&&this.instance.persistence.register({[v4]:n.captureDeadClicks}),this.startIfEnabledOrStop())}}startIfEnabledOrStop(){this.isEnabled(this)?this.Es((()=>{this.Is()})):this.stop()}Es(e){var n,r;(n=st.__PosthogExtensions__)!=null&&n.initDeadClicksAutocapture?e():(r=st.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this.instance,"dead-clicks-autocapture",(i=>{i?KS.error("failed to load script",i):e()}))}Is(){var e;if(De){if(!this.Ms&&(e=st.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var n=Yn(this.instance.config.capture_dead_clicks)?Ae({},this.instance.config.capture_dead_clicks):{};n.__onCapture=this.onCapture,this.onCapture&&(n.capture_dead_swipes=!1),this.Ms=st.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,n),this.Ms.start(De),KS.info("starting...")}}else KS.error("`document` not found. Cannot start.")}stop(){this.Ms&&(this.Ms.stop(),this.Ms=void 0,KS.info("stopping..."))}}var z5=gr("[SegmentIntegration]"),vU="posthog-js";function yU(t,e){var n=e===void 0?{}:e,r=n.organization,i=n.projectId,s=n.prefix,a=n.severityAllowList,c=a===void 0?["error"]:a,u=n.sendExceptionsToPostHog,h=u===void 0||u;return p=>{var v,y,E,S,x;if(c!=="*"&&!c.includes(p.level)||!t.__loaded)return p;p.tags||(p.tags={});var C=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/pers
11on/"+t.get_distinct_id());p.tags["PostHog Person URL"]=C,t.sessionRecordingStarted()&&(p.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var R,A=((v=p.exception)==null?void 0:v.values)||[],O=A.map((L=>Ae({},L,{stacktrace:L.stacktrace?Ae({},L.stacktrace,{type:"raw",frames:(L.stacktrace.frames||[]).map((D=>Ae({},D,{platform:"web:javascript"})))}):void 0}))),P={$exception_message:((y=A[0])==null?void 0:y.value)||p.message,$exception_type:(E=A[0])==null?void 0:E.type,$exception_level:p.level,$exception_list:O,$sentry_event_id:p.event_id,$sentry_exception:p.exception,$sentry_exception_message:((S=A[0])==null?void 0:S.value)||p.message,$sentry_exception_type:(x=A[0])==null?void 0:x.type,$sentry_tags:p.tags};return r&&i&&(P.$sentry_url=(s||"https://sentry.io/organizations/")+r+"/issues/?project="+i+"&query="+p.event_id),h&&((R=t.exceptions)==null||R.sendExceptionEvent(P)),p}}class MJ{constructor(e,n,r,i,s,a){this.name=vU,this.setupOnce=function(c){c(yU(e,{organization:n,projectId:r,prefix:i,severityAllowList:s,sendExceptionsToPostHog:a==null||a}))}}}class zk{constructor(e){this.Rs=(n,r,i)=>{i&&(i.noSessionId||i.activityTimeout||i.sessionPastMaximumLength||i.crossTabAdoption)&&(Ue.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:n,changeReason:i}),this.Ps=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.As()}As(){var e;this.Fs=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(this.Rs)}destroy(){var e;(e=this.Fs)==null||e.call(this),this.Fs=void 0}doPageView(e,n){var r,i=this.Os(e,n);return this.Ps={pathname:(r=ye?.location.pathname)!==null&&r!==void 0?r:"",pageViewId:n,timestamp:e},this._instance.scrollManager.resetContext(),i}doPageLeave(e){var n;return this.Os(e,(n=this.Ps)==null?void 0:n.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.Ps)==null?void 0:e.pageViewId}}Os(e,n){var r=this.Ps;if(!r)return{$pageview_id:n};var i={$pageview_id:n,$prev_pageview_id:r.pageViewId},s=this._instance.scrollManager.getContext();if(s&&!this._instance.config.disable_scroll_properties){var a=s.maxScrollHeight,c=s.lastScrollY,u=s.maxScrollY,h=s.maxContentHeight,p=s.lastContentY,v=s.maxContentY;if(!(Pe(a)||Pe(c)||Pe(u)||Pe(h)||Pe(p)||Pe(v))){a=Math.ceil(a),c=Math.ceil(c),u=Math.ceil(u),h=Math.ceil(h),p=Math.ceil(p),v=Math.ceil(v);var y=a>1?mc(c/a,0,1,Ue):1,E=a>1?mc(u/a,0,1,Ue):1,S=h>1?mc(p/h,0,1,Ue):1,x=h>1?mc(v/h,0,1,Ue):1;i=Xn(i,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:y,$prev_pageview_max_scroll:u,$prev_pageview_max_scroll_percentage:E,$prev_pageview_last_content:p,$prev_pageview_last_content_percentage:S,$prev_pageview_max_content:v,$prev_pageview_max_content_percentage:x})}}return r.pathname&&(i.$prev_pageview_pathname=r.pathname),r.timestamp&&(i.$prev_pageview_duration=(e.getTime()-r.timestamp.getTime())/1e3),i}}var V5=["flags","surveys"],DJ={[WF]:{exposure:"hidden"},[xm]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[I_]:{exposure:"hidden"},[GA]:{exposure:"event"},[KA]:{exposure:"hidden"},[JA]:{exposure:"hidden"},[YA]:{exposure:"event"},[XA]:{exposure:"hidden"},[QA]:{exposure:"event"},[ZA]:{exposure:"event"},[v4]:{exposure:"event"},[y4]:{exposure:"hidden"},[eO]:{exposure:"event"},[qh]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[Tm]:{exposure:"hidden"},[_4]:{exposure:"event"},[GF]:{exposure:"event",shouldSkipFromEventProperties:t=>rs(t)},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},$sess_rec_flush_size:{exposure:"hidden"},[yu]:{exposure:"hidden",storageGroup:"flags"},[Wh]:{exposure:"hidden",storageGroup:"flags"},[Uw]:{exposure:"hidden"},[C1]:{exposure:"hidden",storageGroup:"flags"},[Gh]:{exposure:"hidden",storageGroup:"flags"},[Mm]:{exposure:"hidden",storageGroup:"flags",volatile:!0},[J2]:{exposure:"hidden",storageGroup:"flags"},[lc]:{exposure:"hidden"},[Lh]:{exposure:"hidden"},[al]:{exposure:"hidden"},[pc]:{exposure:"hidden"},[tO]:{exposure:"hidden",storageGroup:"surveys"},[eC]:{exposure:"hidden",storageGroup:"surveys",volatile:!0},[nO]:{exposure:"event"},[Bw]:{exposure:"hidden"},[jw]:{exposure:"hidden"},[P_]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$product_tours_activated_session:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"}
11,$conversations_user_traits:{exposure:"event"},[bu]:{exposure:"hidden"},[L_]:{exposure:"hidden"},[ZF]:{exposure:"event"},[Dm]:{exposure:"hidden"},[np]:{exposure:"hidden",storageGroup:"flags",volatile:!0},[Qt]:{exposure:"hidden"},[rO]:{exposure:"hidden"},[iO]:{exposure:"hidden"},[sO]:{exposure:"hidden"},[oO]:{exposure:"hidden"},[tC]:{exposure:"hidden"},[nC]:{exposure:"hidden"},[KF]:{exposure:"event"},[YF]:{exposure:"event"},[XF]:{exposure:"event"},[QF]:{exposure:"event"},[eU]:{exposure:"event"},[tU]:{exposure:"event"},[aO]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_pending_trigger_conditions:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},NJ=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],cc=t=>{var e=DJ[t];if(e)return e;for(var n of NJ){var r=n[1];if(t.indexOf(n[0])===0)return r}},Rm=(t,e)=>{try{return JSON.stringify(t,((n,r)=>typeof r=="bigint"?r.toString():r),e)}catch{return uF(t)}},Jm=t=>{var e=De?.createElement("a");return Pe(e)?null:(e.href=t,e)},ev=function(t,e){for(var n,r=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;r.length>i;i++){var s=r[i].split("=");if(s[0]===e){n=s;break}}if(!Ct(n)||2>n.length)return"";var a=n[1];try{a=decodeURIComponent(a)}catch{Ue.error("Skipping decoding for malformed query param: "+a)}return a.replace(/\+/g," ")},T1=function(t,e,n){if(!t||!e||!e.length)return t;for(var r=t.split("#"),i=r[1],s=(r[0]||"").split("?"),a=s[1],c=s[0],u=(a||"").split("&"),h=[],p=0;u.length>p;p++){var v=u[p].split("=");Ct(v)&&(e.includes(v[0])?h.push(v[0]+"="+n):h.push(u[p]))}var y=c;return a!=null&&(y+="?"+h.join("&")),i!=null&&(y+="#"+i),y},aC=function(t,e){var n=t.match(new RegExp(e+"=([^&]*)"));return n?n[1]:null},_U=(t,e)=>t>=e&&aF(),bU=(t,e,n,r)=>{if(t===0){if(aF()){var i=e+1;return i===n&&r(),i}return e}return 0},YS="https?://(.*)",tv=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],$J=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...tv],R1="<masked>",FJ=["li_fat_id"];function EU(t,e,n){if(!De)return{};var r,i=e?[...tv,...n||[]]:[],s=SU(T1(De.URL,i,R1),t),a=(r={},kn(FJ,(function(c){var u=nU(c);r[c]=u||null})),r);return Xn(a,s)}function SU(t,e){var n=$J.concat(e||[]),r={};return kn(n,(function(i){var s=ev(t,i);r[i]=s||null})),r}function wU(t){var e=(function(s){return s?s.search(YS+"google.([^/?]*)")===0?"google":s.search(YS+"bing.com")===0?"bing":s.search(YS+"yahoo.com")===0?"yahoo":s.search(YS+"duckduckgo.com")===0?"duckduckgo":null:null})(t),n=e!="yahoo"?"q":"p",r={};if(!rs(e)){r.$search_engine=e;var i=De?ev(De.referrer,n):"";i.length&&(r.ph_keyword=i)}return r}function Vk(){return navigator.language||navigator.userLanguage}var lC="$direct";function CU(){return De?.referrer||lC}function xU(t,e,n){n===void 0&&(n=!1);var r=t?[...tv,...e||[]]:[],i=n?ff(br?.href):br?.href,s=i?.substring(0,1e3);return{r:CU().substring(0,1e3),u:s?T1(s,r,R1):void 0}}function TU(t,e){var n;e===void 0&&(e=!1);var r=t.r,i=t.u,s=e?ff(i):i,a={$referrer:r,$referring_domain:r==null?void 0:r==lC?lC:(n=Jm(r))==null?void 0:n.host};
11if(s){a.$current_url=s;var c=Jm(s);a.$host=c?.host,a.$pathname=c?.pathname;var u=SU(s);Xn(a,u)}if(r){var h=wU(r);Xn(a,h)}return a}function RU(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function UJ(){try{return new Date().getTimezoneOffset()}catch{return}}var BJ={flags:np,surveys:eC},jJ=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],XS=t=>t+"_cookie_identity_change_pending",Fd="main",qk=(t,e)=>{kn(t,((n,r)=>{var i=cc(r);i&&i.exposure!=="event"||{}.hasOwnProperty.call(e,r)||delete t[r]}))};class q5{constructor(e,n,r){if(r===void 0&&(r=!0),this.Ls={},this.Ds=!1,this.$s=!1,this.Ns=!1,this.qs=!1,this.zi=e,this.js=r,this.props={},this.Bs=void 0,this.Hs=(s=>{var a="";return s.token&&(a=s.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),s.persistence_name?"ph_"+s.persistence_name:"ph_"+a+"_posthog"})(e),this.xs=this.Us(e),this.$s=this.zs(e),this.load(),e.debug&&Ue.info("Persistence loaded",e.persistence,Ae({},this.props)),this.update_config(e,e,n),this.save(),ye){var i=()=>this.flush();sr(ye,"beforeunload",i,{capture:!1}),sr(ye,"pagehide",i,{capture:!1})}}Ws(){var e,n=(e=this.zi)==null?void 0:e.persistence_save_debounce_ms;return Fr(n)&&n>0?n:0}Vs(e){if(this.zi.cookieWinsOnConflict&&this.zi.persistence.toLowerCase()==="localstorage+cookie")if(e)try{var n=j5(e,this.zi.cookie_persisted_properties||[]),r=Ik(n,this.zi.cookie_persisted_properties||[]),i=JSON.stringify(n)+"|"+JSON.stringify(r),s=ti.$r(this.Hs)||void 0;s&&H5(this.Hs,s)===i&&(this.Gs=i,this.Zs=s)}catch{}else try{var a=ti.$r(this.Hs)||void 0;this.Gs=a?H5(this.Hs,a):void 0,this.Zs=a}catch{}}syncCookieProperties(){return this.Qs(this.zi)}Qs(e,n){if(n===void 0&&(n=!1),this.Js&&!n||this.qs||!e.cookieWinsOnConflict||e.persistence.toLowerCase()!=="localstorage+cookie")return!1;var r;try{r=ti.$r(this.Hs)||void 0}catch{}if(!r||r===this.Zs)return!1;var i,s=H5(this.Hs,r);try{i=B5(JSON.parse(r))}catch{return!1}if((ti.$r(this.Hs)||void 0)!==r)return!1;this.Gs=s,this.Zs=r;var a=Pk(this.Hs,r),c=[...Mh,...a.properties],u={};
11if(Object.keys(i).forEach((x=>{var C=i[x];(Pe(C)||rs(C)||C===""||x===Qt&&C!==Wr&&C!==ts)&&(u[x]=!0,delete i[x])})),dl(i))return!1;var h=Vs in i||i[Qt]===Wr||i[Qt]===ts,p=this.props[Vs],v=this.props[Qt],y=Xn({},this.props);[...Mh,...e.cookie_persisted_properties||[]].forEach((x=>{if(c.indexOf(x)!==-1&&!(x in i)&&!u[x]&&(h||x!==Vs&&x!==Qt)){var C=y[x];!a.isValid&&Mh.indexOf(x)!==-1&&(C===!1||C===0)||delete y[x]}})),this.props=Xn(y,i),!h||Qt in i||Qt in this.props||this.Ks(Qt,Wr);var E=this.props[Vs],S=this.props[Qt];return!h||E===p&&S===v||(this.Ns=!0,Qn.Ur(XS(this.Hs),!0),this.Ys(al),this.Ys(Wh),this.Ys(yu),this.Ys(C1),this.Ys(Gh),this.Ys(Mm),this.Ys(np),this.Ys(Dm),this.Ys(bu),S===Wr&&(v===ts||i[Qt]===Wr||!Pe(p)&&E!==p)&&(qk(this.props,i),this.Ys(pc)),S===ts?this.props.$user_id=E:delete this.props.$user_id,this.Ys(xm)),!0}consumeCookieIdentityChange(){var e=XS(this.Hs),n=this.Ns||!!Qn.$r(e);return this.Ns=!1,n&&Qn.Wr(e),n}Xs(e){return e===void 0&&(e=!1),!(this.qs||this.Js&&!e||!this.zi.cookieWinsOnConflict||this.zi.persistence.toLowerCase()!=="localstorage+cookie"||(this.qs=!0,0))}ta(){this.qs&&(Pe(this.ea)||(clearTimeout(this.ea),this.ea=void 0),delete this.Ls[Fd],this.ia(!0))}ra(e){if(e===void 0&&(e=!0),this.qs)try{e?this.ta():Pe(this.ea)||(clearTimeout(this.ea),this.ea=void 0)}finally{this.qs=!1}}isDisabled(){return!!this.Js}Us(e){jJ.indexOf(e.persistence.toLowerCase())===-1&&(Ue.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var n,r=(function(a,c){a===void 0&&(a=[]),c===void 0&&(c=!1);var u=[...Mh,...a];return Ae({},jn,{Vr(h){try{var p,v={};try{p=ti.$r(h)||void 0,v=p?B5(JSON.parse(p)):{}}catch{}var y,E=JSON.parse(jn.$r(h)||"{}");if(c){var S=Pk(h,p),x=[...Mh,...S.properties],C={};Object.keys(v).forEach((L=>{var D=v[L];rs(D)||D===""||L===Qt&&D!==Wr&&D!==ts||(C[L]=D)}));var R=Vs in C||C[Qt]===Wr||C[Qt]===ts;if(Object.keys(C).length>0){var A,O=E[Vs],P=(A=E[Qt])!==null&&A!==void 0?A:Wr;u.forEach((L=>{if(x.indexOf(L)!==-1&&!(L in v)&&(R||L!==Vs&&L!==Qt)){var D=E[L];!S.isValid&&Mh.indexOf(L)!==-1&&(D===!1||D===0)||delete E[L]}})),!R||Qt in v||Qt in E||(E[Qt]=Wr),!R||(Vs in C?C[Vs]:E[Vs])===O&&(Qt in C?C[Qt]:E[Qt])===P||(U5.forEach((L=>delete E[L])),C[Qt]===ts&&Vs in C?E.$user_id=C[Vs]:delete E.$user_id,C[Qt]!==ts&&(delete E[ZF],delete E[pc]),delete E.__alias)}y=Xn(E,C)}else y=Xn(v,E);return jn.Ur(h,y),y}catch{}return null},Ur(h,p,v,y,E,S){var x=jn.Ur(h,p,void 0,void 0,S);try{var C=j5(p,a);if(Object.keys(C).length){if(c){var R=sC(h),A=Ik(C,a);if(ti.Ur(R,A,v,y,E,S),ti.$r(R)!==JSON.stringify(A)){ti.Wr(R,y);var O=j5(p);return ti.Ur(h,O,v,y,E,S),x}}ti.Ur(h,C,v,y,E,S)}}catch(P){jn.zr(P)}return x},Wr(h,p){try{ye?.localStorage.removeItem(h),ti.Wr(h,p),ti.Wr(sC(h),p)}catch(v){jn.zr(v)}}})})(e.cookie_persisted_properties||[],e.cookieWinsOnConflict),i=!1,s=e.persistence.toLowerCase();return s==="localstorage"&&jn.Hr()?(n=jn,i=!0):s==="localstorage+cookie"&&r.Hr()?(n=r,i=!0):s==="sessionstorage"&&Qn.Hr()?n=Qn:s==="memory"?n=bJ:s==="cookie"?n=ti:r.Hr()?(n=r,i=!0):n=ti,this.Ds=i,n}na(e){return this.Hs+"__"+e}zs(e){return this.Ds&&!!e.split_storage}properties(){var e={};return kn(this.props,((n,r)=>{var i=cc(r);if(!i||i.exposure==="event"){if(i!=null&&i.shouldSkipFromEventProperties!=null&&i.shouldSkipFromEventProperties(n))return;e[r]=n}})),e}load(e){if(e===void 0&&(e=!1),!this.Js||e){var n=this.zi.cookieWinsOnConflict&&this.zi.persistence.toLowerCase()==="localstorage+cookie",r=n?jn.Vr(this.Hs):null,i={};if(n)try{kn(i=B5(ti.Vr(this.Hs)),((S,x)=>{(Pe(S)||rs(S)||S==="")&&delete i[x]}))}catch{}var s=this.xs.Vr(this.Hs);if(s&&(this.props=Xn({},s)),this.$s&&this.sa(),n&&s){var a,c,u=r?.[Vs],h=(a=r?.[Qt])!==null&&a!==void 0?a:Wr,p=s[Vs],v=(c=s[Qt])!==null&&c!==void 0?c:Wr;if(p!==u||v!==h){this.Ns=!0,Qn.Ur(XS(this.Hs),!0);var y=Xn({},this.props);U5.forEach((S=>delete y[S])),v===Wr&&(h===ts||i[Qt]===Wr||!Pe(u)&&p!==u)&&(qk(y,i),delete y[pc]),this.props=y;var E=new Set;U5.forEach((S=>{var x,C=(x=cc(S))==null?void 0:x.storageGroup;C&&E.add(C)}
11)),E.forEach((S=>{var x={};kn(this.props,((C,R)=>{var A;((A=cc(R))==null?void 0:A.storageGroup)===S&&(x[R]=C)})),dl(x)?(jn.Wr(this.na(S)),this.Ls[S]={}):jn.Ur(this.na(S),x)&&(this.Ls[S]={persisted:!0,fingerprint:this.aa(x,S)})}))}}Qn.$r(XS(this.Hs))&&(this.Ns=!0)}}sa(){for(var e of V5){var n=jn.Vr(this.na(e));if(n&&!dl(n)){var r=this.oa(e);r.persisted=!0,this.la(e)||(r.fingerprint=this.aa(n,e)),this.ua(e,n)||Xn(this.props,n)}}}la(e){return Object.keys(this.props).some((n=>{var r;return((r=cc(n))==null?void 0:r.storageGroup)===e}))}ua(e,n){var r=BJ[e];if(!r)return!1;var i=n[r],s=this.props[r];return Fr(i)&&Fr(s)&&s>i}refreshKey(e){var n;if(!this.Js){var r=this.$s?(n=cc(e))==null?void 0:n.storageGroup:void 0,i=r?jn.Vr(this.na(r)):this.xs.Vr(this.Hs);if(i&&e in i)this.Ks(e,i[e]);else{if(r){var s=this.xs.Vr(this.Hs);if(s&&e in s)return void this.Ks(e,s[e])}this.Ys(e)}}}save(){if(!this.Js){var e=this.Ws();e>0?Pe(this.ea)&&(this.ea=setTimeout((()=>{this.ea=void 0,this.ia()}),e)):this.ia()}}flush(){Pe(this.ea)||(clearTimeout(this.ea),this.ea=void 0,this.ia())}ia(e){e===void 0&&(e=!1),this.Js||this.qs&&!e||(e||this.syncCookieProperties(),this.$s?this.ha():this.da(this.xs,this.Hs,this.props,Fd)&&this.Vs(this.props))}ha(){var e=this.va(),n=e.main,r=e.groups;for(var i of(this.da(this.xs,this.Hs,n,Fd)&&this.Vs(n),V5)){var s,a=r[i];(!dl(a)||(s=this.Ls[i])!=null&&s.persisted)&&this.da(jn,this.na(i),a,i)}}va(){var e={},n={flags:{},surveys:{}};return kn(this.props,((r,i)=>{var s,a=(s=cc(i))==null?void 0:s.storageGroup;a?n[a][i]=r:e[i]=r})),{main:e,groups:n}}aa(e,n){if(n===Fd)return JSON.stringify(e)+"|"+this.ca+"|"+this.fa+"|"+this.pa;var r={};return kn(e,((i,s)=>{var a;r[s]=(a=cc(s))!=null&&a.volatile?"__volatile__":i})),JSON.stringify(r)}da(e,n,r,i){var s,a=this.oa(i);if(i!==Fd&&!a.dirty&&!Pe(a.fingerprint))return!1;try{if((s=this.aa(r,i))===a.fingerprint)return a.dirty=!1,!1}catch{s=void 0}return e.Ur(n,r,this.ca,this.fa,this.pa,this.zi.debug)?(a.dirty=!1,i!==Fd&&(a.persisted=!0),Pe(s)||(a.fingerprint=s),!0):(this.zi.debug&&Ue.warn('failed to persist storage entry "'+n+'"; will retry on next save'),!1)}remove(e){var n=(e===void 0?{}:e).keepGroupEntries,r=n!==void 0&&n;if(Pe(this.ea)||(clearTimeout(this.ea),this.ea=void 0),this.xs.Wr(this.Hs,!1),this.xs.Wr(this.Hs,!0),!r&&this.js)for(var i of V5)jn.Wr(this.na(i));r?delete this.Ls[Fd]:this.Ls={},this.Gs=void 0,this.Zs=void 0}clear(){this.remove(),this.props={}}register_once(e,n,r){if(Yn(e)){this.syncCookieProperties(),Pe(n)&&(n="None"),this.ca=Pe(r)?this.ga:r;var i=!1;if(kn(e,((s,a)=>{this.props.hasOwnProperty(a)&&this.props[a]!==n||(this.Ks(a,s),i=!0)})),i)return this.save(),!0}return!1}register(e,n){if(Yn(e)){this.syncCookieProperties(),this.ca=Pe(n)?this.ga:n;var r=!1;if(kn(e,((i,s)=>{e.hasOwnProperty(s)&&(this.props[s]!==i||Yn(i)||Ct(i))&&(this.Ks(s,i),r=!0)})),r)return this.save(),!0}return!1}unregister(e){this.syncCookieProperties();var n=typeof e=="string"?[e]:e,r=!1;for(var i of n)i in this.props&&(this.Ys(i),r=!0);r&&this.save()}update_campaign_params(){var e=De?.URL;if(e!==this.Bs){var n=EU(this.zi.custom_campaign_params,this.zi.mask_personal_data_properties,this.zi.custom_personal_data_properties);dl(E4(n))||this.register(n),this.Bs=e}}update_search_keyword(){var e;this.register((e=De?.referrer)?wU(e):{})}update_referrer_info(){var e;this.register_once({$referrer:CU(),$referring_domain:De!=null&&De.referrer&&((e=Jm(De.referrer))==null?void 0:e.host)||lC},void 0)}set_initial_person_info(){this.props[sO]||this.props[oO]||this.register_once({[tC]:xU(this.zi.mask_personal_data_properties,this.zi.custom_personal_data_properties,this.zi.disable_capture_url_hashes)},void 0)}get_initial_props(){var e={};kn([oO,sO],(i=>{var s=this.props[i];s&&kn(s,(function(a,c){e["$initial_"+UA(c)]=a}))}));var n=this.props[tC];if(n){var r=(function(i,s){s===void 0&&(s=!1);var a=TU(i,s),c={};return kn(a,(function(u,h){c["$initial_"+UA(h)]=u})),c})(n,this.zi.disable_capture_url_hashes);Xn(e,r)}return e}safe_merge(e){return kn(this.props,(function(n,r){r in e||(e[r]=n)})),e}update_config(e,n,r){var i=e.persistence!==n.persistence,s=!((x,C)=>{if(x.length!==C.length)return!1;var R=[...x].sort(),A=[...C].sort();return R.every(((O,P)=>O===A[P]))}
11)(e.cookie_persisted_properties||[],n.cookie_persisted_properties||[]),a=i||s,c=e.cookieWinsOnConflict!==n.cookieWinsOnConflict,u=e.disable_persistence||!!r,h=!!this.Js&&!u;u||this.Qs(n,h),this.zi=e,!u&&(i||s||c)&&(this.Gs=void 0,this.Zs=void 0,this.Qs(Ae({},e,{cookie_persisted_properties:n.cookie_persisted_properties}),h));var p=a||c?this.Us(e):this.xs,v=this.zs(e),y=a||v!==this.$s,E=!u&&(y||e.cross_subdomain_cookie!==this.fa||e.secure_cookie!==this.pa)&&this.Xs(h);try{if(this.ga=this.ca=e.cookie_expiration,this.set_disabled(u),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),y){var S=this.props;this.clear(),this.xs=p,this.$s=v,this.props=S,this.save()}else c&&(this.xs=p,u||(delete this.Ls[Fd],this.ia()))}finally{E&&this.ra()}}set_disabled(e){this.Js=e,this.Js?this.remove():this.save()}set_cross_subdomain(e){e!==this.fa&&(this.fa=e,this.remove({keepGroupEntries:!0}),this.save())}set_secure(e){e!==this.pa&&(this.pa=e,this.remove({keepGroupEntries:!0}),this.save())}set_event_timer(e,n){var r=this.props[I_]||{};r[e]=n,this.Ks(I_,r),this.save()}remove_event_timer(e){var n=this.props[I_]||{},r=n[e];return Pe(r)||(delete n[e],this.Ks(I_,n),this.save()),r}get_property(e){return this.props[e]}set_property(e,n){this.Ks(e,n),this.save()}Ks(e,n){var r;this.props[e]=n,(r=cc(e))!=null&&r.volatile||this.ma(e)}Ys(e){delete this.props[e],this.ma(e)}ma(e){var n,r=(n=cc(e))==null?void 0:n.storageGroup;r&&(this.oa(r).dirty=!0)}oa(e){return this.Ls[e]||(this.Ls[e]={})}}function QS(t){var e=!0;return{dispose(){if(e){e=!1;var n=t();n&&Es(n.then)&&n.then(void 0,(()=>{}))}}}}var qo={GZipJS:"gzip-js",Base64:"base64"},e_={Activation:"events",Cancellation:"cancelEvents"},W5={Popover:"popover",API:"api",Widget:"widget"},Su={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},G5={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},hO={Popover:"popover",Inline:"inline"},HJ={SHOWN:"product tour shown"},Wk={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},Gk=gr("[RateLimiter]");class zJ{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=n=>{var r=n.text;if(r&&r.length)try{(JSON.parse(r).quota_limited||[]).forEach((i=>{Gk.info((i||"events")+" is quota limited."),this.serverLimits[i]=new Date().getTime()+6e4}))}catch(i){return void Gk.warn('could not rate limit - continuing. Error: "'+i?.message+'"',{text:r})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)==null?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)==null?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var n,r,i;e===void 0&&(e=!1);var s=this.captureEventsBurstLimit,a=this.captureEventsPerSecond,c=new Date().getTime(),u=(n=(r=this.instance.persistence)==null?void 0:r.get_property(iO))!==null&&n!==void 0?n:{tokens:s,last:c};u.tokens+=(c-u.last)/1e3*a,u.last=c,u.tokens>s&&(u.tokens=s);var h=1>u.tokens;if(h||e||(u.tokens=Math.max(0,u.tokens-1)),h&&!e){var p=(Fr(u.dropped)?u.dropped:0)+1;u.dropped=p,!this.lastEventRateLimited&&this.ya(p)&&(u.dropped=0)}return this.lastEventRateLimited=h,(i=this.instance.persistence)==null||i.set_property(iO,u),{isRateLimited:h,remainingTokens:u.tokens}}ba(e){var n=this.instance.config.property_denylist;return!Ct(n)||!n.includes(e)}_a(){var e;if(this.ba("$current_url")&&this.ba("$pathname")&&br!=null&&br.pathname)return""+((e=br.origin)!==null&&e!==void 0?e:"")+br.pathname}ya(e){var n,r,i=this.captureEventsBurstLimit,s=this.captureEventsPerSecond,a=this._a(),c=this.ba("$session_id")?(n=(r=this.instance).get_session_id)==null?void 0:n.call(r):void 0,u=[e+" event(s) dropped since the last warning",a?"triggered on "+a:void 0,c?"session "+c:void 0].filter(Boolean).join(", ");return!!this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited: "+u+". Config is set to "+s+" events per second and "+i+" events burst limit."},{skip_client_rate_limiting:!0})}isServerRateLimited(e){var n=this.serverLimits[e||"events"]||!1;return n!==!1&&new Date().getTime()<n}}var Ud=gr("[RemoteConfig]");class AU{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=st._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}wa(e){var n,r;(n=st.__PosthogExtensions__)!=null&&n.loadExternalDependency?(r=st.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,"remote-config",(()=>e(this.remoteConfig))):e()}ka(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:e})}load(){try{if(this.remoteConfig)return Ud.info("Using preloaded remote config",this.remoteConfig),void this.Sa(this.remoteConfig);if(this._instance.xa())return void Ud.warn("Remote config is disabled. Falling back to local config.");this.wa((e=>{if(!e)return Ud.info("No config found after loading remote JS config. Falling back to JSON."),void this.ka((n=>{this.Sa(n.json,n)}));this.Sa(e)}))}catch(e){Ud.error("Error loading remote config",e),this.Sa()}}Sa(e,n){!e&&n&&(n.statusCode===0?n.error||Ud.warn("Failed to fetch remote config from PostHog."):Ud.error("Failed to fetch remote config from PostHog."));try{this._instance.Sa(e?{ok:!0,config:e}:{ok:!1})}catch(i){Ud.error("Error applying remote config",i)}if(e?.hasFeatureFlags!==!1&&!this._instance.config.advanced_disable_feature_flags_on_first_load)try{var r;(r=this._instance.featureFlags)==null||r.ensureFlagsLoaded()}catch(i){Ud.error("Error loading feature flags",i)}}}var Ra=Uint8Array,bo=Uint16Array,nv=Uint32Array,x4=new Ra([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),T4=new Ra([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Kk=new Ra([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),OU=function(t,e){for(var n=new bo(31),r=0;31>r;++r)n[r]=e+=1<<t[r-1];var i=new nv(n[30]);for(r=1;30>r;++r)for(var s=n[r];n[r+1]>s;++s)i[s]=s-n[r]<<5|r;return[n,i]},IU=OU(x4,2),pO=IU[1];IU[0][28]=258,pO[258]=28;for(var Yk=OU(T4,0)[1],PU=new bo(32768),Sr=0;32768>Sr;++Sr){var rm=(43690&Sr)>>>1|(21845&Sr)<<1;PU[Sr]=((65280&(rm=(61680&(rm=(52428&rm)>>>2|(13107&rm)<<2))>>>4|(3855&rm)<<4))>>>8|(255&rm)<<8)>>>1}var Z_=function(t,e,n){for(var r=t.length,i=0,s=new bo(e);r>i;++i)++s[t[i]-1];var a,c=new bo(e);for(i=0;e>i;++i)c[i]=c[i-1]+s[i-1]<<1;for(a=new bo(r),i=0;r>i;++i)a[i]=PU[c[t[i]-1]++]>>>15-t[i];return a},pp=new Ra(288);for(Sr=0;144>Sr;++Sr)pp[Sr]=8;for(Sr=144;256>Sr;++Sr)pp[Sr]=9;for(Sr=256;280>Sr;++Sr)pp[Sr]=7;for(Sr=280;288>Sr;++Sr)pp[Sr]=8;var cC=new Ra(32);for(Sr=0;32>Sr;++Sr)cC[Sr]=5;var VJ=Z_(pp,9),qJ=Z_(cC,5),LU=function(t){return(t/8>>
vendor: 4,194 bytes, line 11
110)+(7&t&&1)},kU=function(t,e,n){(n==null||n>t.length)&&(n=t.length);var r=new(t instanceof bo?bo:t instanceof nv?nv:Ra)(n-e);return r.set(t.subarray(e,n)),r},iu=function(t,e,n){var r=e/8>>0;t[r]|=n<<=7&e,t[r+1]|=n>>>8},t_=function(t,e,n){var r=e/8>>0;t[r]|=n<<=7&e,t[r+1]|=n>>>8,t[r+2]|=n>>>16},K5=function(t,e){for(var n=[],r=0;t.length>r;++r)t[r]&&n.push({s:r,f:t[r]});var i=n.length,s=n.slice();if(!i)return[new Ra(0),0];if(i==1){var a=new Ra(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort((function(L,D){return L.f-D.f})),n.push({s:-1,f:25001});var c=n[0],u=n[1],h=0,p=1,v=2;for(n[0]={s:-1,f:c.f+u.f,l:c,r:u};p!=i-1;)c=n[n[v].f>n[h].f?h++:v++],u=n[h!=p&&n[v].f>n[h].f?h++:v++],n[p++]={s:-1,f:c.f+u.f,l:c,r:u};var y=s[0].s;for(r=1;i>r;++r)s[r].s>y&&(y=s[r].s);var E=new bo(y+1),S=gO(n[p-1],E,0);if(S>e){r=0;var x=0,C=S-e,R=1<<C;for(s.sort((function(L,D){return E[D.s]-E[L.s]||L.f-D.f}));i>r;++r){var A=s[r].s;if(e>=E[A])break;x+=R-(1<<S-E[A]),E[A]=e}for(x>>>=C;x>0;){var O=s[r].s;e>E[O]?x-=1<<e-E[O]++-1:++r}for(;r>=0&&x;--r){var P=s[r].s;E[P]==e&&(--E[P],++x)}S=e}return[new Ra(E),S]},gO=function(t,e,n){return t.s==-1?Math.max(gO(t.l,e,n+1),gO(t.r,e,n+1)):e[t.s]=n},Xk=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new bo(++e),r=0,i=t[0],s=1,a=function(u){n[r++]=u},c=1;e>=c;++c)if(t[c]==i&&c!=e)++s;else{if(!i&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(i),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(i);s=1,i=t[c]}return[n.subarray(0,r),e]},n_=function(t,e){for(var n=0,r=0;e.length>r;++r)n+=t[r]*e[r];return n},mO=function(t,e,n){var r=n.length,i=LU(e+2);t[i]=255&r,t[i+1]=r>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;r>s;++s)t[i+s+4]=n[s];return 8*(i+4+r)},Qk=function(t,e,n,r,i,s,a,c,u,h,p){iu(e,p++,n),++i[256];for(var v=K5(i,15),y=v[0],E=v[1],S=K5(s,15),x=S[0],C=S[1],R=Xk(y),A=R[0],O=R[1],P=Xk(x),L=P[0],D=P[1],N=new bo(19),k=0;A.length>k;++k)N[31&A[k]]++;for(k=0;L.length>k;++k)N[31&L[k]]++;for(var U=K5(N,7),F=U[0],V=U[1],G=19;G>4&&!F[Kk[G-1]];--G);var Z,K,J,H,Y=h+5<<3,ee=n_(i,pp)+n_(s,cC)+a,fe=n_(i,y)+n_(s,x)+a+14+3*G+n_(N,F)+(2*N[16]+3*N[17]+7*N[18]);if(ee>=Y&&fe>=Y)return mO(e,p,t.subarray(u,u+h));if(iu(e,p,1+(ee>fe)),p+=2,ee>fe){Z=Z_(y,E),K=y,J=Z_(x,C),H=x;var ue=Z_(F,V);for(iu(e,p,O-257),iu(e,p+5,D-1),iu(e,p+10,G-4),p+=14,k=0;G>k;++k)iu(e,p+3*k,F[Kk[k]]);p+=3*G;for(var z=[A,L],Q=0;2>Q;++Q){var ae=z[Q];for(k=0;ae.length>k;++k)iu(e,p,ue[de=31&ae[k]]),p+=F[de],de>15&&(iu(e,p,ae[k]>>>5&127),p+=ae[k]>>>12)}}else Z=VJ,K=pp,J=qJ,H=cC;for(k=0;c>k;++k)if(r[k]>255){var de;t_(e,p,Z[257+(de=r[k]>>>18&31)]),p+=K[de+257],de>7&&(iu(e,p,r[k]>>>23&31),p+=x4[de]);var be=31&r[k];t_(e,p,J[be]),p+=H[be],be>3&&(t_(e,p,r[k]>>>5&8191),p+=T4[be])}else t_(e,p,Z[r[k]]),p+=K[r[k]];return t_(e,p,Z[256]),p+K[256]},WJ=new nv([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),GJ=(function(){for(var t=new nv(256),e=0;256>e;++e){for(var n=e,r=9;--r;)n=(1&n&&3988292384)^n>>>1;t[e]=n}return t})(),Y5=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8};function KJ(t,e){e===void 0&&(e={});var n=(function(){var v=4294967295;return{p(y){for(var E=v,S=0;y.length>S;++S)E=GJ[255&E^y[S]]^E>>>8;v=E},d(){return 4294967295^v}}})(),r=t.length;n.p(t);var i,s,a,c,u,h=(c=10+((i=e).filename&&i.filename.length+1||0),u=8,(function(v,y,E,S,x,C){var R=v.length,A=new Ra(S+R+5*(1+Math.floor(R/7e3))+x),O=A.subarray(S,A.length-x),P=0;if(!y||8>R)for(var L=0;R>=L;L+=65535){var D=L+65535;R>D?P=mO(O,P,v.subarray(L,D)):(O[L]=!0,P=mO(O,P,v.subarray(L,R)))}else{for(var N=WJ[y-1],k=N>>>13,U=8191&N,F=(1<<E)-1,V=new bo(32768),G=new bo(F+1),Z=Math.ceil(E/3),K=2*Z,J=function(or){return(v[or]^v[or+1]<<Z^v[or+2]<<K)&F},H=new nv(25e3),Y=new bo(288),ee=new bo(32),fe=0,ue=0,z=(L=0,0),Q=0,ae=0;R>L;++L){var de=J(L),be=32767&L,Se=G[de];if(V[be]=Se,G[de]=be,L>=Q){var je=R-L;if((fe>7e3||z>24576)&&je>423){P=Qk(v,O,0,H,Y,ee,ue,z,ae,L-ae,P),z=fe=ue=0,ae=L;for(var Ne=0;286>Ne;++Ne)Y[Ne]=0;for(Ne=0;30>Ne;++Ne)ee[Ne]=0}var ze=2,tt=0,Je=U,We=be-Se&32767;if(je>2&&de==J(L-We))for(var Ve=Math.min(k,je)-1,Pt=Math.min(32767,L),dt=Math.min(258,je);Pt>=We&&--Je&&be!=Se;){if(v[L+ze]==v[L+ze-We]){for(var $e=0;dt>$e&&v[L+$e]==v[L+$e-We];++$e);
11if($e>ze){if(ze=$e,tt=We,$e>Ve)break;var vt=Math.min(We,$e-2),ot=0;for(Ne=0;vt>Ne;++Ne){var Bt=L-We+Ne+32768&32767,An=Bt-V[Bt]+32768&32767;An>ot&&(ot=An,Se=Bt)}}}We+=(be=Se)-(Se=V[be])+32768&32767}if(tt){H[z++]=268435456|pO[ze]<<18|Yk[tt];var Ut=31&pO[ze],qt=31&Yk[tt];ue+=x4[Ut]+T4[qt],++Y[257+Ut],++ee[qt],Q=L+ze,++fe}else H[z++]=v[L],++Y[v[L]]}}P=Qk(v,O,!0,H,Y,ee,ue,z,ae,L-ae,P)}return kU(A,0,S+LU(P)+x)})(s=t,(a=e).level==null?6:a.level,a.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):12+a.mem,c,u)),p=h.length;return(function(v,y){var E=y.filename;if(v[0]=31,v[1]=139,v[2]=8,v[8]=2>y.level?4:y.level==9?2:0,v[9]=3,y.mtime!=0&&Y5(v,4,Math.floor(new Date(y.mtime||Date.now())/1e3)),E){v[3]=8;for(var S=0;E.length>=S;++S)v[S+10]=E.charCodeAt(S)}})(h,e),Y5(h,p-8,n.d()),Y5(h,p-4,r),h}var YJ=!!NA||!!c4,MU="text/plain",zw=!1,DU=(t,e)=>{var n=t.split("#"),r=n[1],i=n[0].split("?"),s=i[0],a=i[1];if(!a)return t;var c=a.split("&").filter((u=>u.split("=")[0]!==e)).join("&");return s+(c?"?"+c:"")+(r?"#"+r:"")},ab=function(t,e,n){var r;n===void 0&&(n=!0);var i=t.split("?"),s=i[0],a=i[1],c=Ae({},e),u=(r=a?.split("&").map((p=>{var v,y=p.split("="),E=y[0],S=n&&(v=c[E])!==null&&v!==void 0?v:y[1];return delete c[E],E+"="+S})))!==null&&r!==void 0?r:[],h=(function(p,v){var y,E;v===void 0&&(v="&");var S=[];return kn(p,(function(x,C){Pe(x)||Pe(C)||C==="undefined"||(y=encodeURIComponent((R=>R instanceof File)(x)?x.name:x.toString()),E=encodeURIComponent(C),S[S.length]=E+"="+y)})),S.join(v)})(c);return h&&u.push(h),u.length>0?s+"?"+u.join("&"):s},X5=t=>{if(t.Ca)return t.Ca;var e=t.data,n=t.compression;if(e){if(n===qo.GZipJS){var r=KJ((function(c,u){var h=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var p=new Ra(c.length+(c.length>>>1)),v=0,y=function(C){p[v++]=C},E=0;h>E;++E){if(v+5>p.length){var S=new Ra(v+8+(h-E<<1));S.set(p),p=S}var x=c.charCodeAt(E);128>x?y(x):2048>x?(y(192|x>>>6),y(128|63&x)):x>55295&&57344>x?(y(240|(x=65536+(1047552&x)|1023&c.charCodeAt(++E))>>>18),y(128|x>>>12&63),y(128|x>>>6&63),y(128|63&x)):(y(224|x>>>12),y(128|x>>>6&63),y(128|63&x))}return kU(p,0,v)})(Rm(e)),{mtime:0});return{contentType:MU,body:r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength),estimatedSize:r.byteLength}}if(n===qo.Base64){var i=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((u,h)=>String.fromCharCode(parseInt(h,16)))))})(Rm(e)),s=(c=>"data="+encodeURIComponent(typeof c=="string"?c:Rm(c)))(i);return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}var a=Rm(e);return{contentType:"application/json",body:a,estimatedSize:new Blob([a]).size}}},NU=t=>{var e,n,r=()=>t.transport==="sendBeacon"?{url:ab(t.url,{compression:qo.Base64}),encodedBody:X5(Ae({},t,{compression:qo.Base64,Ca:void 0}))}:{url:DU(t.url,"compression"),encodedBody:X5(Ae({},t,{compression:void 0,Ca:void 0}))};try{e=X5(t)}catch(i){if(_k(t.compression,ev(t.url,"compression")))return Ue.error("Failed to gzip request body, sending uncompressed payload",i),r();throw i}return e&&_k(t.compression,ev(t.url,"compression"))&&!((n=e.body)instanceof ArrayBuffer?VA(new Uint8Array(n)):ArrayBuffer.isView(n)&&VA(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)))?(zw=!0,r()):{url:t.url,encodedBody:e}},$U=t=>{try{return NU(t)}catch(e){return Ue.error(e),void(t.callback==null||t.callback({statusCode:0,error:e}))}},XJ=(function(){var t=rr((function*(e){var n=Rm(e.data),r=yield(function(s,a,c){return qA.apply(this,arguments)})(n,nr.DEBUG,{rethrow:!0});if(!r)return e;var i=yield r.arrayBuffer();return Ae({},e,{Ca:{contentType:MU,body:i,estimatedSize:i.byteLength}})}));return function(e){return t.apply(this,arguments)}})(),QJ=/Failed to fetch|NetworkError|Load failed/i,FU=t=>t?.name==="TypeError"&&QJ.test(t?.message||""),UU=t=>{var e=$U(t);if(e){var n=e.url,r=e.encodedBody,i=r??{},s=i.contentType,a=i.body,c=i.estimatedSize,u=new Headers;kn(t.headers,(function(S,x){u.append(x,S)})),s&&u.append("Content-Type",s);var h=null,p=!1;if(lk){var v=new lk;h={signal:v.signal,timeout:setTimeout((()=>{var S;p=!0,v.abort(NF("AbortError","PostHog request timed out"+((S=t.timeout)?" after "+S+"ms":"")))}),t.timeout)}}var y=S=>{p&&S?.name==="AbortError"||FU(S)?Ue.warn(S):Ue.error(S),t.callback==null||t.callback({statusCode:0,error:S})};try{var E;c4(n,Ae({method:t?.method||"GET",headers:u,keepalive:t.method==="POST"&&!t.Ta&&52428.8>(c||0),body:a,signal:(E=h)==null?void 0:E.signal},t.fetchOptions)).then((S=>S.text().then((x=>{var C={statusCode:S.status,text:x};if(S.status===200)try{C.json=JSON.parse(x)}catch(R){Ue.error(R)}t.callback==null||t.callback(C)}
11)))).catch(y).finally((()=>h?clearTimeout(h.timeout):null))}catch(S){h&&clearTimeout(h.timeout),y(S)}}},vO=t=>{try{var e,n=NU(t),r=n.url,i=n.encodedBody,s=i??{},a=s.body,c=s.estimatedSize;if(!a)return;var u=a instanceof Blob?a:new Blob([a],{type:s.contentType});if(Gs.sendBeacon(r,u))return;var h=Ct(t.data)?t.data:(e=t.data)==null?void 0:e.batch;if(Ct(h)&&h.length>1&&(c??0)>16384){var p=Math.ceil(h.length/2),v=y=>Ct(t.data)?y:Ae({},t.data,{batch:y});return vO(Ae({},t,{data:v(h.slice(0,p))})),void vO(Ae({},t,{data:v(h.slice(p))}))}Ue.warn("Beacon of ~"+(c??0)+" bytes was rejected by the browser, falling back to fetch"),UU(Ae({},t,{Ta:!0}))}catch(y){Ue.warn("Beacon send failed",y)}},Zk=(t,e,n,r)=>{var i=r==="query"?e==="POST"?"sent_at":"_":void 0;return ab(n===qo.GZipJS?DU(t,"compression"):t,Ae({},i?{[i]:Date.now().toString()}:{},n===qo.GZipJS?{}:{compression:n}))},Vw=[];c4&&Vw.push({transport:"fetch",method:UU}),NA&&Vw.push({transport:"XHR",method(t){var e=$U(t);if(e){var n=new NA,r=e.encodedBody;n.open(t.method||"GET",e.url,!0);var i=r??{},s=i.contentType,a=i.body;kn(t.headers,(function(c,u){n.setRequestHeader(u,c)})),s&&n.setRequestHeader("Content-Type",s),t.timeout&&(n.timeout=t.timeout),n.onreadystatechange=()=>{if(n.readyState===4){var c={statusCode:n.status,text:n.responseText};if(n.status===200)try{c.json=JSON.parse(n.responseText)}catch{}t.callback==null||t.callback(c)}},n.send(a)}}}),Gs!=null&&Gs.sendBeacon&&Vw.push({transport:"sendBeacon",method:vO});var yO=3e3;class ZJ{constructor(e,n){this.Ma=!0,this.Ea=[],this.Ia=mc(n?.flush_interval_ms||yO,250,5e3,Ue.createLogger("flush interval"),yO),this.Ra=e}enqueue(e){this.Ea.push(e),this.Pa||this.Aa()}unload(){this.Fa();var e=this.Ea.length>0?this.Oa():{},n=Object.values(e);[...n.filter((r=>r.url.indexOf("/e")===0)),...n.filter((r=>r.url.indexOf("/e")!==0))].map((r=>{this.La(Ae({},r,{transport:"sendBeacon"}))}))}enable(){this.Ma=!1,this.Aa()}Aa(){var e=this;this.Ma||(this.Pa=setTimeout((()=>{if(this.Fa(),this.Ea.length>0){var n=this.Oa(),r=function(){var s=n[i],a=new Date().getTime();s.data&&Ct(s.data)&&kn(s.data,(c=>{c.offset=Math.abs(c.timestamp-a),delete c.timestamp})),e.La(s)};for(var i in n)r()}}),this.Ia))}La(e){try{this.Ra(e)}catch(n){Ue.error(n)}}Fa(){clearTimeout(this.Pa),this.Pa=void 0}Oa(){var e={};return kn(this.Ea,(n=>{var r,i=n,s=(i?i.batchKey:null)||i.url;Pe(e[s])&&(e[s]=Ae({},i,{data:[]})),(r=e[s].data)==null||r.push(i.data)})),this.Ea=[],e}}var JJ=["retriesPerformedSoFar"];class eee{constructor(e){this.Da=!1,this.$a=3e3,this.Ea=[],this._instance=e,this.Ea=[],this.Na=!0,!Pe(ye)&&"onLine"in ye.navigator&&(this.Na=ye.navigator.onLine,this.qa=()=>{this.Na=!0,this.ja()},this.Ba=()=>{this.Na=!1},sr(ye,"online",this.qa),sr(ye,"offline",this.Ba))}get length(){return this.Ea.length}retriableRequest(e){var n=e.retriesPerformedSoFar,r=lF(e,JJ);fu(n)&&(r.url=ab(r.url,{retry_count:n})),this._instance._send_request(Ae({},r,{callback:i=>{if(i.statusCode!==200&&(400>i.statusCode||i.statusCode>=500)){if((i.statusCode===0?3:10)>(n??0))return void this.An(Ae({retriesPerformedSoFar:n},r));i.statusCode===0&&Ue.warn("Request failed before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped retrying after "+(n??0)+" retries.")}r.callback==null||r.callback(i)}}))}An(e){var n=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=n+1;var r=(function(a){var c=3e3*Math.pow(2,a),u=c/2,h=Math.min(18e5,c),p=Math.random()-.5;return Math.ceil(h+p*(h-u))})(n),i=Date.now()+r;this.Ea.push({retryAt:i,requestOptions:e});var s="Enqueued failed request for retry in "+r;navigator.onLine||(s+=" (Browser is offline)"),Ue.warn(s),this.Da||(this.Da=!0,this.Ha())}Ha(){if(this.Ua&&clearTimeout(this.Ua),this.Ea.length===0)return this.Da=!1,void(this.Ua=void 0);this.Ua=setTimeout((()=>{this.Na&&this.Ea.length>0&&this.ja(),this.Ha()}),this.$a)}ja(){var e=Date.now(),n=[],r=this.Ea.filter((s=>e>s.retryAt||(n.push(s),!1)));if(this.Ea=n,r.length>0)for(var i of r)this.retriableRequest(i.requestOptions)}unload(){for(var e of(this.Ua&&(clearTimeout(this.Ua),this.Ua=void 0),this.Da=!1,Pe(ye)||(this.qa&&(ye.removeEventListener("online",this.qa),this.qa=void 0),this.Ba&&(ye.removeEventListener("offline",this.Ba),this.Ba=void 0)),this.Ea)){var n=e.requestOptions;try{this._instance._send_request(Ae({},n,{transport:"sendBeacon"}))}catch(r){Ue.error(r)}}this.Ea=[]}}class tee{constructor(e){this.za=()=>{var n,r,i,s;this.Wa||(this.Wa={});var a=this.scrollElement(),c=this.scrollY(),u=a?Math.max(0,a.scrollHeight-a.clientHeight):0,h=c+(a?.clientHeight||0),p=a?.scrollHeight||0;this.Wa.lastScrollY=Math.ceil(c),this.Wa.maxScrollY=Math.max(c,(n=this.Wa.maxScrollY)!==null&&n!==void 0?n:0),this.Wa.maxScrollHeight=Math.max(u,(r=this.Wa.maxScrollHeight)!==null&&r!==void 0?r:0),this.Wa.lastContentY=h,this.Wa.maxContentY=Math.max(h,(i=this.Wa.maxContentY)!==null&&i!==void 0?i:0),this.Wa.maxContentHeight=Math.max(p,(s=this.Wa.maxContentHeight)!==null&&s!==void 0?s:0)},this._instance=e}get Va(){return this._instance.config.scroll_root_selector}getContext(){return this.Wa}resetContext(){var e=this.Wa;return setTimeout(this.za,0),e}startMeasuringScrollPosition(){sr(ye,"scroll",this.za,{capture:!0}),sr(ye,"scrollend",this.za,{capture:!0}),sr(ye,"resize",this.za)}scrollElement(){if(!this.Va)return ye?.document.documentElement;var e=Ct(this.Va)?this.Va:[this.Va];for(var n of e){var r=ye?.document.querySelector(n);if(r)return r}}Ga(e){var n=e==="y"?"scrollTop":"scrollLeft";if(this.Va){var r=this.scrollElement();return r&&r[n]||0}return ye?e==="y"?ye.scrollY||ye.pageYOffset||ye.document.documentElement.scrollTop||0:ye.scrollX||ye.pageXOffset||ye.document.documentElement.scrollLeft||0:0}scrollY(){return this.Ga("y")}scrollX(){return this.Ga("x")}}var nee=t=>xU(t?.config.mask_personal_data_properties,t?.config.custom_personal_data_properties,t?.config.disable_capture_url_hashes
11);class Jk{constructor(e,n,r,i){this.ut=s=>{var a=this.Za();if(!a||a.sessionId!==s){var c={sessionId:s,props:this.Qa(this._instance)};this.Ja.register({[rO]:c})}},this._instance=e,this.Ka=n,this.Ja=r,this.Qa=i||nee,this.Ka.onSessionId(this.ut)}Za(){return this.Ja.props[rO]}getSetOnceProps(){var e,n=(e=this.Za())==null?void 0:e.props;return n?"r"in n?TU(n,this._instance.config.disable_capture_url_hashes):{$referring_domain:n.referringDomain,$pathname:n.initialPathName,utm_source:n.utm_source,utm_campaign:n.utm_campaign,utm_medium:n.utm_medium,utm_content:n.utm_content,utm_term:n.utm_term}:{}}getSessionProps(){var e={};return kn(E4(this.getSetOnceProps()),((n,r)=>{r==="$current_url"&&(r="url"),e["$session_entry_"+UA(r)]=n})),e}}class uC{on(e,n){return this.Ya[e]||(this.Ya[e]=[]),this.Ya[e].push(n),()=>{this.Ya[e]=this.Ya[e].filter((r=>r!==n))}}emit(e,n){for(var r of this.Ya[e]||[])r(n);for(var i of this.Ya["*"]||[])i(e,n)}constructor(){this.Ya={}}}var im=gr("[SessionId]"),eM=864e5;class tM{on(e,n){return this.Xa.on(e,n)}constructor(e,n,r){var i;if(this.eo=null,this.io=null,this.ro=[],this.no=void 0,this.so=!1,this.Xa=new uC,this.ao=(u,h)=>!(!fu(u)||!fu(h))&&Math.abs(u-h)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===Eu)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.zi=e.config,this.Ja=e.persistence,this.ct=void 0,this._e=void 0,this._sessionStartTimestamp=null,this.oo=void 0,this._sessionActivityTimestamp=null,this.lo=n||hc,this.uo=r||hc;var s=this.zi.persistence_name||this.zi.token;if(this._sessionTimeoutMs=1e3*mc(this.zi.session_idle_timeout_seconds||1800,60,36e3,im.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.ho(),this.do="ph_"+s+"_window_id",this.vo="ph_"+s+"_primary_window_exists",this.co()){var a=Qn.Vr(this.do),c=Qn.Vr(this.vo);a&&!c?this.ct=a:Qn.Wr(this.do),Qn.Ur(this.vo,!0)}(i=this.zi.bootstrap)!=null&&i.sessionID&&this.setBootstrapSessionId(this.zi.bootstrap.sessionID),this.fo()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return Pe(this.ro)&&(this.ro=[]),this.ro.push(e),this._e&&e(this._e,this.ct),()=>{this.ro=this.ro.filter((n=>n!==e))}}co(){return this.zi.persistence!=="memory"&&!this.Ja.Js&&Qn.Hr()}po(e){e!==this.ct&&(this.ct=e,this.co()&&Qn.Ur(this.do,e))}mo(){return this.ct?this.ct:this.co()?Qn.Vr(this.do):null}yo(e){var n=this.eo;return!rs(n)&&!rs(e)&&5e3>Math.abs(e-n)}bo(e,n,r){var i=n!==this._sessionActivityTimestamp,s=!(e!==this._e||r!==this._sessionStartTimestamp);this._sessionStartTimestamp=r,this._sessionActivityTimestamp=n,this._e=e,s&&!i||s&&this.yo(n)||(this.eo=n,this.Ja.register({[Tm]:[n,e,r]}))}_o(){var e,n=(e=this.zi)==null?void 0:e.persistence_save_debounce_ms;return fu(n)&&n>0}wo(){this._o()?this.Ja.refreshKey(Tm):(this.Ja.flush(),this.Ja.load())}ko(){var e;if(!rs(this._sessionActivityTimestamp)&&this._sessionActivityTimestamp!==this.eo){this.wo();var n=this.So();n[1]===this._e&&n[2]===this._sessionStartTimestamp&&(this.eo=this._sessionActivityTimestamp,this.Ja.register({[Tm]:[this._sessionActivityTimestamp,(e=this._e)!==null&&e!==void 0?e:null,this._sessionStartTimestamp]}),this.Ja.flush())}}xo(){var e=this.So()[0],n=fu(e)?e:0,r=fu(this._sessionActivityTimestamp)?this._sessionActivityTimestamp:0;return Math.max(n,r)}Co(e){return this.wo(),this.ao(e,this.xo())}So(){var e=this.Ja.props[Tm];return Ct(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.eo=null,this.oo=void 0,clearTimeout(this.To),this.To=void 0,this.bo(null,null,null)}setBootstrapSessionId(e,n){n===void 0&&(n=!1);var r=(function(i,s){s===void 0&&(s=new Date().getTime());try{var a=(c=>{var u=c.replace(/-/g,"");if(u.length!==32)throw new Error("Not a valid UUID");if(u[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(u.substring(0,12),16)})(i);return a>s+6e4?void im.error("Bootstrap sessionID cannot be in the future"):a}catch(c){return void im.error("Invalid sessionID in bootstrap",c)}})(e);return!Pe(r)&&(n?this.oo={sessionId:e,sessionStartTimestamp:r}:this.bo(e,new Date().getTime(),r),!0)}destroy(){this.so=!0,this.ko(),clearTimeout(this.To),this.To=void 0,this.no&&ye&&(ye.removeEventListener(rC,this.no,{capture:!1}),this.no=void 0),this.ro=[]}fo(){this.no=()=>{this.ko(),this.co()&&Qn.Wr(this.vo)},sr(ye,rC,this.no,{capture:!1})}
11checkAndGetSessionAndWindowId(e,n,r){if(e===void 0&&(e=!1),n===void 0&&(n=null),r===void 0&&(r=!1),this.zi.cookieless_mode===Eu)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var i=n||new Date().getTime(),s=this._e;if(r)this.io=i;else if(rs(this.io)||this.io>i||i-this.io>=1e3){var a,c;(a=(c=this.Ja).syncCookieProperties)==null||a.call(c),this.io=i}var u=this.So(),h=u[1],p=u[2],v=!Pe(s)&&h!==s,y=this.xo(),E=this.mo(),S=this.oo,x=!!S&&(S.sessionStartTimestamp>i+6e4||i-S.sessionStartTimestamp>eM),C=S?x:fu(p)&&Math.abs(i-p)>eM,R=!1,A=v,O=!h||!!S,P=h,L=!O&&!e&&this.ao(i,y);if(L){(L=this.Co(i))||im.info("cross-tab refresh kept the session alive",{sessionId:h});var D=this.So();h=D[1],p=D[2]}if(O||L||C){A=!1;var N=S&&!x;h=N?S.sessionId:this.lo(),E=this.uo(),im.info("new session ID assigned",{sessionId:h,windowId:E,bootstrapped:!!N,changeReason:{noSessionId:O,activityTimeout:L,sessionPastMaximumLength:C}}),p=N?S.sessionStartTimestamp:i,this.oo=void 0,R=!0}else E||(E=this.uo(),R=!0),(A=A||h!==P)&&(im.info("adopted cross-tab session id",{sessionId:h,windowId:E}),R=!0);var k=fu(y)&&e&&!C?y:i,U=fu(p)?p:new Date().getTime();this.po(E),this.bo(h,k,U),e||this.ho();var F={noSessionId:O,activityTimeout:L,sessionPastMaximumLength:C,crossTabAdoption:A};return R&&this.ro.forEach((V=>V(h,E,F))),{sessionId:h,windowId:E,sessionStartTimestamp:U,changeReason:R?F:void 0,lastActivityTimestamp:y}}ho(){this.so||(clearTimeout(this.To),this.To=setTimeout((()=>{if(!this.so)if(this.Co(new Date().getTime())){var e=this._e;this.resetSessionId(),this.Xa.emit("forcedIdleReset",{idleSessionId:e})}else this.ho()}),1.1*this.sessionTimeoutMs))}}var BU=function(t,e){if(!t)return!1;var n=t.userAgent;if(n&&hk(n,e))return!0;try{var r=t?.userAgentData;if(r!=null&&r.brands&&r.brands.some((i=>hk(i?.brand,e))))return!0}catch{}return!!t.webdriver};function jU(){return(jU=rr((function*(){var t=Gs?.userAgentData;if(t!=null&&t.getHighEntropyValues)try{var e=yield t.getHighEntropyValues(["model"]),n=e?.model;return hn(n)&&n.length>0?n:void 0}catch(r){return void Ue.info("Unable to resolve $device_model from userAgentData.getHighEntropyValues",r)}}))).apply(this,arguments)}function HU(t){var e;return!((e=t.conditions)==null||(e=e.events)==null||(e=e.values)==null||!e.length)}var dC=(t,e)=>{if(!(n=>{try{new RegExp(n)}catch{return!1}return!0})(e))return!1;try{return new RegExp(e).test(t)}catch{return!1}},ZS=t=>t.toLowerCase(),zU={exact:(t,e)=>e.some((n=>t.some((r=>n===r)))),is_not:(t,e)=>e.every((n=>t.every((r=>n!==r)))),regex:(t,e)=>e.some((n=>t.some((r=>dC(n,r))))),not_regex:(t,e)=>e.every((n=>t.every((r=>!dC(n,r))))),icontains:(t,e)=>e.map(ZS).some((n=>t.map(ZS).some((r=>n.includes(r))))),not_icontains:(t,e)=>e.map(ZS).every((n=>t.map(ZS).every((r=>!n.includes(r))))),gt:(t,e)=>e.some((n=>{var r=parseFloat(n);return!isNaN(r)&&t.some((i=>r>parseFloat(i)))})),lt:(t,e)=>e.some((n=>{var r=parseFloat(n);return!isNaN(r)&&t.some((i=>r<parseFloat(i)))}))};function VU(t,e){return!t||Object.entries(t).every((n=>{var r=n[1],i=e?.[n[0]];if(i==null)return!1;var s=zU[r.operator];return!!s&&s(r.values,[String(i)])}))}function Q5(t,e,n){return Rm({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:n})}var _O="custom",nM="i.posthog.com",ree=/^\/static\//,iee=["/s/","/e/","/i/"];class see{constructor(e){this.Mo={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,n=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return n||(n=this.apiHost.replace("."+nM,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}get region(){return this.Mo[this.apiHost]||(this.Mo[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":_O),this.Mo[this.apiHost]}Eo(e){if(ree.test(e)){var n=this.instance.config.asset_host;if(typeof n=="string")return n.trim().replace(/\/$/,"")||void 0}}Io(e){var n=Jm(e);return n?n.protocol+"//"+n.host+n.pathname:void 0}Ro(e,n,r){if(e==="ui")return r;var i=r,s=this.instance.config.rewriteRequestPath;if(s){var a,c=((a=Jm(r))==null?void 0:a.href)||r;i=s(new URL(c)).toString()}if(s&&e==="api"&&iee.some((y=>n.indexOf(y)===0))){var u=this.Io(i);if(u){var h,p=this.apiHost,v=this.Po;((h=v)==null?void 0:h.apiHost)===p&&v.rewriteRequestPath===s||(v={apiHost:p,rewriteRequestPath:s,urls:new Set},this.Po=v),v.urls.add(u)}}return i}isIngestionEndpoint(e){var n=this.Po,r=this.Io(e);return n?.apiHost===this.apiHost&&n.rewriteRequestPath===this.instance.config.rewriteRequestPath&&!!r&&n.urls.has(r)}endpointFor(e,n){if(n===void 0&&(n=""),n&&(n=n[0]==="/"?n:"/"+n),e==="ui")return this.Ro(e,n,this.uiHost+n);if(e==="flags")return this.Ro(e,n,this.flagsApiHost+n);if(e==="assets"){var r=this.Eo(n);if(r)return this.Ro(e,n,""+r+n)}if(this.region===_O)return this.Ro(e,n,this.apiHost+n);var i=nM+n;switch(e){case"assets":return this.Ro(e,n,"https://"+this.region+"-assets."+i);case"api":return this.Ro(e,n,"https://"+this.region+"."+i)}}}var Cn=gr("[Surveys]"),qU="seenSurvey_",WU=t=>{try{var e=(n=>((r,i)=>""+qU+(function(s){return s.current_iteration&&s.current_iteration>0?s.id+"_"+s.current_iteration:s.id})(i))(0,n))(t);if(localStorage.getItem(e))return;localStorage.setItem(e,"true")}catch(n){Cn.error("Failed to persist survey seen state",n)}},oee=[W5.Popover,W5.Widget,W5.API],aee={ignoreConditions:!1,ignoreDelay:!1,displayType:hO.Popover}
11,lee=gr("[PostHog ExternalIntegrations]"),cee={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class uee{constructor(e){this._instance=e}Es(e,n){var r;(r=st.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,e,(i=>{if(i)return lee.error("failed to load script",i);n()}))}startIfEnabledOrStop(){var e=this,n=function(){var s,a,c,u=r[0],h=r[1];!h||(s=st.__PosthogExtensions__)!=null&&(s=s.integrations)!=null&&s[u]||e.Es(cee[u],(()=>{var p;(p=st.__PosthogExtensions__)==null||(p=p.integrations)==null||(p=p[u])==null||p.start(e._instance)})),!h&&(a=st.__PosthogExtensions__)!=null&&(a=a.integrations)!=null&&a[u]&&((c=st.__PosthogExtensions__)==null||(c=c.integrations)==null||(c=c[u])==null||c.stop())};for(var r of Object.entries((i=this._instance.config.integrations)!==null&&i!==void 0?i:{})){var i;n()}}}class dee{constructor(e,n){this.I=e,this.cs=n,this.Ao=new Map,this.us=!1}add(e){var n=this;return rr((function*(){if(n.us)throw new Error("Cannot add an extension to a disposed ExtensionRuntime");if(n.Ao.has(e.name))throw new Error('Browser extension "'+e.name+'" is already registered');n.Ao.set(e.name,e);try{var r=e.setup(n.cs);r&&(yield r)}catch(s){var i=n.Ao.get(e.name)===e;i&&n.Ao.delete(e.name),n.I.error('Failed to set up browser extension "'+e.name+'"',s),i&&n.Fo(e)}}))()}getExtension(e){return this.Ao.get(e)}dispose(){if(!this.us){this.us=!0;var e=Array.from(this.Ao.values()).reverse();for(var n of(this.Ao.clear(),e))this.Fo(n)}}Fo(e){try{var n=e.dispose==null?void 0:e.dispose();n&&Es(n.then)&&n.then(void 0,(r=>{this.I.error('Failed to dispose browser extension "'+e.name+'"',r)}))}catch(r){this.I.error('Failed to dispose browser extension "'+e.name+'"',r)}}}class fee{constructor(e){this._instance=e}initialize(){}get(e){var n=this._instance.persistence;if(typeof e=="string")return n?.get_property(e);var r={};for(var i of e){var s=n?.get_property(i);Pe(s)||(r[i]=s)}return r}set(e,n){var r;(r=this._instance.persistence)==null||r.register(typeof e=="string"?{[e]:n}:e)}remove(e){var n;(n=this._instance.persistence)==null||n.unregister(e)}}var rM="extensionsRemoteConfig";class hee{constructor(e){this.us=!1,this.instance=e,this.I=Ue,this.Oo=e.Lo,this.kv=new fee(e),this.onEvent=n=>QS(this.instance.on("eventCaptured",(r=>{try{n({event:r.event,properties:r.properties})}catch(i){this.I.error("Browser extension event listener failed",i)}}))),this.onRemoteConfig=n=>{if(this.us)return QS((()=>{}));var r=s=>{try{n(s)}catch(a){this.I.error("Browser extension remote config listener failed",a)}},i=this.instance.Do.on(rM,r);return this.Oo&&r(this.Oo),QS(i)},this.$o=new dee(Ue.createLogger("[BrowserExtensions]"),this)}get logger(){return this.I}get distinctId(){return this.instance.get_distinct_id()}get anonymousId(){var e;return(e=this.instance.get_property(w1))!==null&&e!==void 0?e:this.distinctId}get deviceId(){var e=this.instance.get_property(w1);return typeof e=="string"?e:void 0}get library(){return{name:nr.LIB_NAME,version:nr.LIB_VERSION}}get initialPersonProperties(){var e,n;return(e=(n=this.instance.persistence)==null?void 0:n.get_initial_props())!==null&&e!==void 0?e:{}}get groups(){return this.instance.getGroups()}get session(){try{var e,n,r,i,s=(e=this.instance.sessionManager)==null?void 0:e.checkAndGetSessionAndWindowId(!0);return{sessionId:(n=s?.sessionId)!==null&&n!==void 0?n:"",windowId:(r=s?.windowId)!==null&&r!==void 0?r:"",sessionStartTimestamp:(i=s?.sessionStartTimestamp)!==null&&i!==void 0?i:0}}catch{return{sessionId:"",windowId:"",sessionStartTimestamp:0}}}get canCapture(){return this.instance.is_capturing()}get projectToken(){return this.instance.config.token}add(e){return this.$o.add(e)}getExtension(e){return this.$o.getExtension(e)}capture(e,n,r){var i=this;return rr((function*(){r?i.instance.capture(e,n,{timestamp:r.timestamp,uuid:r.uuid,$set:r.set,$set_once:r.setOnce}):i.instance.capture(e,n)}))()}registerDynamicEventProperties(e){return QS(this.instance.No(e))}handleRemoteConfig(e){this.us||(this.Oo=e,this.instance.Do.emit(rM,e))}sendRequest(e,n){var r=this;return rr((function*(){var i;n===void 0&&(n={});var s=r.instance.requestRouter.endpointFor((i=n.target)!==null&&i!==void 0?i:"api",e),a={method:n.method,url:n.query?ab(s,n.query):s,data:n.body,headers:n.headers,timeout:n.timeoutMs,fireCallbackOnDrop:!0,transport:n.transport,compression:n.compression,compressionFallback:n.target==="flags"&&n.compression==="best-available"?$A.Base64:void 0,timestampMode:n.sentAt};return n.transport==="sendBeacon"?(r.instance._send_request(a),{statusCode:202}):new Promise((c=>{a.callback=c,r.instance._send_request(a)}
11))}))()}dispose(){this.us||(this.us=!0,this.$o.dispose())}}var J_={},Z5=0,fC=()=>{},iM='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',r_="Surveys module not available",sM="sanitize_properties is deprecated. Use before_send instead",GU="Invalid value for property_denylist config: ",pee=["token","distinct_id",JF],_m="posthog",KU=!YJ&&_o?.indexOf("MSIE")===-1&&_o?.indexOf("Mozilla")===-1,gee=t=>{var e={};return t&&t!=="unset"&&("2025-11-30">t||(e.strictMinimumDuration=!0),"2026-05-30">t||(e.canvasCapture={resolutionScale:.6}),"2026-06-25">t||(e.streamNetworkBody=!0),"2026-08-30">t||(e.captureJsonLd=!0)),e},J5=t=>{var e;return Ae({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,asset_host:null,token:"",autocapture:!0,cross_subdomain_cookie:pJ(De?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:fC,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:t??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,__preview_cookie_wins_on_conflict:!1,debug:br&&hn(br?.search)&&br.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disableDeviceModel:!1,disable_external_dependency_loading:!1,strict_script_versioning:"fallback",enable_recording_console_log:void 0,secure_cookie:(ye==null||(e=ye.location)==null?void 0:e.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(n){Ue.error("Bad HTTP status: "+n.statusCode+" "+n.text)},get_device_id:n=>n,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:lO,before_send:void 0,get_current_url:void 0,request_queue_config:{flush_interval_ms:yO},error_tracking:{},_onCapture:fC},(n=>({rageclick:n&&n>="2026-05-30"?{content_ignorelist:TJ,ignore_text_selection:!0}
11:!n||"2025-11-30">n||{content_ignorelist:!0},capture_pageview:!n||"2025-05-24">n||"history_change",session_recording:gee(n),external_scripts_inject_target:n&&n>="2026-01-30"?"head":"body",internal_or_test_user_hostname:n&&n>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0,persistence_save_debounce_ms:n&&n>="2026-05-30"?250:0,split_storage:!(!n||"2026-05-30">n),detect_google_search_app:!(!n||"2026-05-30">n),disable_capture_url_hashes:!(!n||"2026-06-25">n),cookieWinsOnConflict:!(!n||n==="unset"||"2026-08-29">n)}))(t))},mee=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["__preview_disable_beacon","disable_beacon"],["store_google","save_campaign_params"],["verbose","debug"],["__preview_cookie_wins_on_conflict","cookieWinsOnConflict"]],oM=t=>{var e={};for(var n of mee){var r=n[0],i=n[1];Pe(t[r])||(e[i]=t[r])}var s=Xn({},e,t),a=t.__preview_external_dependency_versioned_paths;return Pe(a)||(Pe(t.strict_script_versioning)&&(s.strict_script_versioning=!!a),hn(a)&&Pe(t.asset_host)&&(s.asset_host=a)),Ct(t.property_blacklist)&&(Pe(t.property_denylist)?s.property_denylist=t.property_blacklist:Ct(t.property_denylist)?s.property_denylist=[...t.property_blacklist,...t.property_denylist]:Ue.error(GU+t.property_denylist)),s};class vee{constructor(){this.__forceAllowLocalhost=!1}get qo(){return this.__forceAllowLocalhost}set qo(e){Ue.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class Wo{jo(e,n){if(e){var r=this.Ao.indexOf(e);r!==-1&&this.Ao.splice(r,1)}return this.Ao.push(n),n.initialize==null||n.initialize(),n}Bo(){return this.config.cookieless_mode===Eu||this.config.cookieless_mode===kh&&this.consent.isRejected()}Ho(){if(!this.Bo()&&this.get_distinct_id()===nm){var e=this.persistence;if(e){this.Uo()||e.load(!0);var n=this.get_distinct_id();if(!n||n===nm){var r=this.config.get_device_id(hc());this.register({distinct_id:r,$device_id:r}),e.set_property(Qt,Wr)}this.zo()}}}get decideEndpointWasHit(){var e,n;return(e=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,n;return(e=(n=this.featureFlags)==null?void 0:n.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){var e;this.webPerformance=new vee,this.Wo=!1,this.version=nr.LIB_VERSION,this.Vo=new Set,this.Go="",this.Do=new uC,this.Ao=[],this.Zo=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=J5(),this.SentryIntegration=MJ,this.sentryIntegration=r=>(function(i,s){var a=yU(i,s);return{name:vU,processEvent:c=>a(c)}})(this,r),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Qo=!1,this.Jo=null,this.Ko=null,this.Yo=null,this.scrollManager=new tee(this),this.pageViewManager=new zk(this),this.rateLimiter=new zJ(this),this.requestRouter=new see(this),this.consent=new EJ(this),this.externalIntegrations=new uee(this);var n=(e=Wo.__defaultExtensionClasses)!==null&&e!==void 0?e:{};this.featureFlags=n.featureFlags&&new n.featureFlags(this),this.toolbar=n.toolbar&&new n.toolbar(this),this.surveys=n.surveys&&new n.surveys(this),this.conversations=n.conversations&&new n.conversations(this),this.logs=n.logs&&new n.logs(this),this.metrics=n.metrics&&new n.metrics(this),this.experiments=n.experiments&&new n.experiments(this),this.exceptions=n.exceptions&&new n.exceptions(this),this.people={set:(r,i,s)=>{var a=hn(r)?{[r]:i}:r;this.setPersonProperties(a),s?.({})},set_once:(r,i,s)=>{var a=hn(r)?{[r]:i}:r;this.setPersonProperties(void 0,a),s?.({})}},this.on("eventCaptured",(r=>Ue.info('send "'+r?.event+'"',r)))}init(e,n,r){if(r&&r!==_m){var i,s=(i=J_[r])!==null&&i!==void 0?i:new Wo;return s._init(e,n,r),J_[r]=s,J_[_m][r]=s,s}return this._init(e,n,r)}_init(e,n,r){var i,s;n===void 0&&(n={});var a,c=hn(e)?e.trim():"";if(!c)return Ue.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return c!==((a=this.config)==null?void 0:a.token)?console.warn("[PostHog.js]","You have already initialized PostHog with a different project token! Re-initializing is a no-op, so events will keep going to the project this instance was initialized with. To capture into a second project, load PostHog once, then initialize a named instance after the SDK has loaded, e.g. posthog.init('"+c+"', { ... }, 'project2')"):console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config=J5(n.defaults),n.debug=this.Xo(n.debug),this.tl=n,this.el=[],n.person_profiles?this.Ko=n.person_profiles:n.process_person&&(this.Ko=n.process_person);var u=J5(n.defaults),h=oM(n),p=Xn({},u,h,{name:r,token:c});Yn(u.rageclick)&&Yn(h.rageclick)&&(p.rageclick=Xn({},u.rageclick,h.rageclick)),Yn(u.session_recording)&&Yn(h.session_recording)&&(p.session_recording=Xn({},u.session_recording,h.session_recording)),this.set_config(p),this.config.on_xhr_error&&Ue.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=n.disable_compression?void 0:qo.GZipJS;var v=this.Uo();if(this.persistence=new q5(this.config,v),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new q5(Ae({},this.config,{persistence:"sessionStorage"}),v,!1),this.Go="ph_"+(this.config.persistence_name||this.config.token)+"_session_registered_properties",this.config.persistence!=="memory"&&!v&&Qn.Hr()){var y=Qn.Vr(this.Go);
11Ct(y)&&y.forEach((D=>{hn(D)&&this.Vo.add(D)}))}else Qn.Wr(this.Go);var E=Ae({},this.persistence.props),S=Ae({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.il=new ZJ((D=>this.rl(D)),this.config.request_queue_config),this.nl=new eee(this),this.__request_queue=[];var x=this.Bo();if(x||(this.sessionManager=new tM(this),this.sessionPropsManager=new Jk(this,this.sessionManager,this.persistence),this.sessionManager.onSessionId(((D,N,k)=>{(k!=null&&k.activityTimeout||k!=null&&k.sessionPastMaximumLength||k!=null&&k.crossTabAdoption)&&this.sl()}))),this.al(),this.config.__preview_deferred_init_extensions?(Ue.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.ol(x)}),0)):(Ue.info("Initializing extensions synchronously"),this.ol(x)),nr.DEBUG=nr.DEBUG||this.config.debug,nr.DEBUG&&Ue.info("Starting in debug mode",{this:this,config:n,thisC:Ae({},this.config),p:E,s:S}),!this.config.identity_distinct_id||(i=n.bootstrap)!=null&&i.distinctID||(n.bootstrap=Ae({},n.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((s=n.bootstrap)==null?void 0:s.distinctID)!==void 0){var C=n.bootstrap.distinctID,R=this.get_distinct_id(),A=this.persistence.get_property(Qt);if(n.bootstrap.isIdentifiedID&&R!=null&&R!==C&&A===Wr)this.identify(C);else if(n.bootstrap.isIdentifiedID&&R!=null&&R!==C&&A===ts)Ue.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var O=this.config.get_device_id(hc()),P=n.bootstrap.isIdentifiedID?O:C;this.persistence.set_property(Qt,n.bootstrap.isIdentifiedID?ts:Wr),this.register({distinct_id:C,$device_id:P})}}if(x)this.register_once({distinct_id:nm,$device_id:null},"");else if(!this.get_distinct_id()){var L=this.config.get_device_id(hc());this.register_once({distinct_id:L,$device_id:L},""),this.persistence.set_property(Qt,Wr)}return sr(ye,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),n.segment?(function(D,N){var k=D.config.segment;if(!k)return N();(function(U,F){var V=U.config.segment;if(!V)return F();var G=K=>{var J=()=>K.anonymousId()||hc();U.config.get_device_id=J,K.id()&&(U.register({distinct_id:K.id(),$device_id:J()}),U.persistence.set_property(Qt,ts)),F()},Z=V.user();"then"in Z&&Es(Z.then)?Z.then(G):G(Z)})(D,(()=>{k.register((U=>{typeof Promise<"u"&&Promise.resolve||z5.warn("This browser does not have Promise support, and can not use the segment integration");var F=(V,G)=>{if(!G)return V;V.event.userId||V.event.anonymousId===U.get_distinct_id()||(z5.info("No userId set, resetting PostHog"),U.reset()),V.event.userId&&V.event.userId!==U.get_distinct_id()&&(z5.info("UserId set, identifying with PostHog"),U.identify(V.event.userId));var Z=U.calculateEventProperties(G,V.event.properties);return V.event.properties=Object.assign({},Z,V.event.properties),V};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:V=>F(V,V.event.event),page:V=>F(V,ym),identify:V=>F(V,$5),screen:V=>F(V,"$screen")}})(D)).then((()=>{N()}))}))})(this,(()=>this.ll())):this.ll(),Es(this.config._onCapture)&&this.config._onCapture!==fC&&(Ue.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(D=>this.config._onCapture(D.event,D)))),this.config.ip&&Ue.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this.config.disableDeviceModel||(function(){return jU.apply(this,arguments)})().then((D=>{D&&this.register({[D5]:D})})).catch(fC),this}ul(e){var n=e;return hn(n.name)&&Es(n.setup)}hl(e,n){this.ul(e)?n.push((()=>{this.dl().add(e).catch((()=>e.dispose==null?void 0:e.dispose())).catch((r=>{Ue.error('Failed to dispose browser extension "'+e.name+'"',r)}))})):this.Ao.push(e)}al(){var e,n,r,i,s,a,c=(e=(n=this.config.__extensionClasses)==null?void 0:n.featureFlags)!==null&&e!==void 0?e:(r=Wo.__defaultExtensionClasses)==null?void 0:r.featureFlags;c&&(this.featureFlags&&this.featureFlags instanceof c||((i=this.vl)==null||i.call(this),this.vl=void 0,this.featureFlags=new c(this)),Es(this.featureFlags.onReloading)&&Es(this.featureFlags.setup)?this.vl||(this.vl=this.featureFlags.onReloading((()=>{this.Do.emit("featureFlagsReloading",!0)})),this.dl().add(this.featureFlags)):(s=(a=this.featureFlags).initialize)==null||s.call(a))}ol(e){var n,r,i,s,a,c,u,h=performance.now(),p=Ae({},Wo.__defaultExtensionClasses,this.config.__extensionClasses),v=[];p.exceptions&&this.Ao.push(this.exceptions=(n=this.exceptions)!==null&&n!==void 0?n:new p.exceptions(this)),p.historyAutocapture&&this.Ao.push(this.historyAutocapture=new p.historyAutocapture(this)),p.tracingHeaders&&this.Ao.push(this.tracingHeaders=new p.tracingHeaders(this)),p.siteApps&&this.Ao.push(this.siteApps=new p.siteApps(this)),p.sessionRecording&&!e&&this.Ao.push(this.sessionRecording=new p.sessionRecording(this)),this.config.disable_scroll_properties||v.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),p.autocapture&&this.hl(this.autocapture=new p.autocapture(this),v),p.surveys&&this.hl(this.surveys=(r=this.surveys)!==null&&r!==void 0?r:new p.surveys(this),v),p.logs&&this.hl(this.logs=(i=this.logs)!==null&&i!==void 0?i:new p.logs(this),v),p.metrics&&this.Ao.push(this.metrics=(s=this.metrics)!==null&&s!==void 0?s:new p.metrics(this)),p.conversations&&this.Ao.push(this.conversations=(a=this.conversations)!==null&&a!==void 0?a:new p.conversations(this)),p.productTours&&this.Ao.push(this.productTours=new p.productTours(this)),p.heatmaps&&this.Ao.push(this.heatmaps=new p.heatmaps(this)),p.webVitalsAutocapture&&this.Ao.push(this.webVitalsAutocapture=new p.webVitalsAutocapture(this)),p.exceptionObserver&&this.Ao.push(this.exceptionObserver=new p.exceptionObserver(this)),p.deadClicksAutocapture&&this.Ao.push(this.deadClicksAutocapture=new p.deadClicksAutocapture(this,kJ)),p.toolbar&&this.Ao.push(this.toolbar=(c=this.toolbar)!==null&&c!==void 0?c:new p.toolbar(this)),p.experiments&&this.Ao.push(this.experiments=(u=this.experiments)!==null&&u!==void 0?u:new p.experiments(this)),this.Ao.forEach((y=>{y.initialize&&v.push((()=>{y.initialize==null||y.initialize()}))})),v.push((()=>
11{if(this.cl){var y=this.cl;this.cl=void 0,this.Ao.forEach((E=>E.onRemoteConfig==null?void 0:E.onRemoteConfig(y)))}})),this.fl(v,h)}fl(e,n){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-n>=30&&e.length>0)return void setTimeout((()=>{this.fl(e,n)}),0);var r=e.shift();if(r)try{r()}catch(s){Ue.error("Error initializing extension:",s)}}var i=Math.round(performance.now()-n);this.register_for_session({[eU]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[tU]:i}),this.config.__preview_deferred_init_extensions&&Ue.info("PostHog extensions initialized ("+i+"ms)")}Sa(e){var n;if(!De||!De.body)return Ue.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Sa(e)}),500);if(this.config.__preview_deferred_init_extensions&&(this.cl=e),this.Lo=e,this.compression=void 0,e.ok){var r,i=e.config;i.supportedCompression&&!this.config.disable_compression&&(this.compression=Rt(i.supportedCompression,qo.GZipJS)?qo.GZipJS:Rt(i.supportedCompression,qo.Base64)?qo.Base64:void 0),(r=i.analytics)!=null&&r.endpoint&&(this.analyticsDefaultEndpoint=i.analytics.endpoint)}this.set_config({person_profiles:this.Ko?this.Ko:lO}),(n=this.pl)==null||n.handleRemoteConfig(e),this.Ao.forEach((s=>s.onRemoteConfig==null?void 0:s.onRemoteConfig(e)))}ll(){try{this.config.loaded(this)}catch(r){Ue.critical("`loaded` function failed",r)}if(this.gl(),this.config.internal_or_test_user_hostname&&br!=null&&br.hostname){var e=br.hostname,n=this.config.internal_or_test_user_hostname;(typeof n=="string"?e===n:n.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Bo())&&this.ml()}),1),this.yl=new AU(this),this.yl.load()}gl(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.il)==null||e.enable())}_dom_loaded(){this.is_capturing()&&WS(this.__request_queue,(e=>this.rl(e))),this.__request_queue=[],this.gl()}_handle_unload(){var e,n,r,i,s;(e=this.surveys)==null||e.handlePageUnload==null||e.handlePageUnload(),(n=this.metrics)==null||n.flush("sendBeacon"),this.config.request_batching?(this.bl()&&this.capture(N5),(r=this.logs)==null||r.flushLogs("sendBeacon"),(i=this.il)==null||i.unload(),(s=this.nl)==null||s.unload()):this.bl()&&this.capture(N5,null,{transport:"sendBeacon"})}_send_request(e){var n;this.__loaded?KU?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)?e.fireCallbackOnDrop&&(e.callback==null||e.callback({statusCode:429})):(e.transport=e.transport||this.config.api_transport,e.headers=Ae({},this.config.request_headers,e.headers),e.compression=e.compression==="best-available"?(n=this.compression)!==null&&n!==void 0?n:e.compressionFallback:e.compression,(Pe(this.config.disable_beacon)?this.config.__preview_disable_beacon:this.config.disable_beacon)&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(r=>{var i,s,a,c=Ae({},r);c.timeout=c.timeout||6e4;var u,h,p,v,y,E=(i=c.transport)!==null&&i!==void 0?i:"fetch";E==="sendBeacon"&&Pe(c.compression)&&c.data&&(c.compression=qo.Base64),c.method==="POST"&&c.data&&(c.timestampMode==="capture-body"?c.data={api_key:(h=(y=(v=(Ct(u=c.data)?u:[u]).map((R=>Ae({},R,R.timestamp instanceof Date&&!isNaN(R.timestamp.getTime())?{timestamp:R.timestamp.toISOString()}:{}))))[0])==null||(p=y.properties)==null?void 0:p.token)!==null&&h!==void 0?h:y?.token,batch:v,sent_at:new Date().toISOString()}:c.timestampMode==="body"&&(c.data=(function(R,A){return A===void 0&&(A=new Date().toISOString()),Ct(R)?R.map((O=>Ae({},O,{sent_at:A}))):Ae({},R,{sent_at:A})})(c.data))),c.url=Zk(c.url,c.method,c.compression,c.timestampMode);var S=Vw.filter((R=>!c.disableTransport||!R.transport||!c.disableTransport.includes(R.transport))),x=(s=(a=(function(R,A){for(var O=0;R.length>O;O++)if(R[O].transport===E)return R[O]})(S))==null?void 0:a.method)!==null&&s!==void 0?s:S[0].method;if(!x)throw new Error("No available transport method");var C=R=>{try{x(R)}catch(A){FU(A)?Ue.warn(A):Ue.error(A),c.callback==null||c.callback({statusCode:0,error:A})}};E!=="sendBeacon"&&c.data&&c.compression===qo.GZipJS&&uZ&&typeof Promise<"u"&&!zw?XJ(c).then((R=>{C(R)})).catch((R=>
11{if(bk(R))return zw=!0,void C(Ae({},c,{compression:void 0,url:Zk(r.url,r.method,void 0,r.timestampMode)}));(A=>{if(!A||typeof A!="object")return!1;var O="name"in A?String(A.name):"";return bk(A)||O===FF})(R)&&(zw=!0),C(c)})):x(c)})(Ae({},e,{callback:r=>{var i,s;this.rateLimiter.checkForLimiting(r),400>r.statusCode||(i=(s=this.config).on_request_error)==null||i.call(s,r),e.callback==null||e.callback(r)}}))):e.fireCallbackOnDrop&&(e.callback==null||e.callback({statusCode:0}))}rl(e){this.nl?this.nl.retriableRequest(e):this._send_request(e)}_execute_array(e){Z5++;try{var n,r=[],i=[],s=[];WS(e,(c=>{if(c)if(Ct(n=c[0]))s.push(c);else if(Es(c))try{c.call(this)}catch(u){Ue.error("Error executing queued PostHog call",c,u)}else Ct(c)&&n==="alias"?r.push(c):Ct(c)&&n.indexOf("capture")!==-1&&Es(this[n])?s.push(c):i.push(c)}));var a=function(c,u){WS(c,(function(h){try{if(Ct(h[0])){var p=u;kn(h,(function(v){p=p[v[0]].apply(p,v.slice(1))}))}else u[h[0]].apply(u,h.slice(1))}catch(v){Ue.error("Error executing queued PostHog call",h,v)}}))};a(r,this),a(i,this),a(s,this)}finally{Z5--}}push(e){if(Z5>0&&Ct(e)&&hn(e[0])){var n=Wo.prototype[e[0]];Es(n)&&n.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,n,r){var i,s,a,c,u;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.il){if(this.is_capturing())if(!Pe(e)&&hn(e)){this.Ho();var h=!this.config.opt_out_useragent_filter&&this._is_bot();if(!h||this.config.__preview_capture_bot_pageviews){var p=r!=null&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(p==null||!p.isRateLimited){n!=null&&n.$current_url&&!hn(n?.$current_url)&&(Ue.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),n==null||delete n.$current_url),e!=="$exception"||r!=null&&r._l||Ue.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var v=new Date,y=r?.timestamp||v,E=vk(r?.uuid,hc),S={uuid:E,event:e,properties:this.calculateEventProperties(e,n||{},y,E)};e===ym&&this.config.__preview_capture_bot_pageviews&&h&&(S.event="$bot_pageview",S.properties.$browser_type="bot"),p&&(S.properties.$lib_rate_limit_remaining_tokens=p.remainingTokens);var x=e==="$feature_flag_called"&&S.properties.$feature_flag_has_experiment===!1&&this.get_property(J2)===!0;r?.$set&&!x&&(S.$set=r?.$set);var C=r?.$unset;C&&(S.$unset=C);var R,A,O,P=x?void 0:this.wl(r?.$set_once,e!==Rk,e===$5);if(P&&(S.$set_once=P),r!=null&&r._noTruncate||(s=this.config.properties_string_max_length,a=S,c=G=>hn(G)?G.slice(0,s):G,u=new Set,S=(function G(Z,K){if(Z!==Object(Z))return c?c(Z):Z;if(!u.has(Z)){var J;if(u.add(Z),Ct(Z))J=[],WS(Z,(Y=>{J.push(G(Y))}));else{var H={};kn(Z,((Y,ee)=>{u.has(Y)||(H[ee]=G(Y))})),J=H}return J}})(a)),S.timestamp=y,Pe(r?.timestamp)||(S.properties.$event_time_override_provided=!0,S.properties.$event_time_override_system_time=v),x&&(S.properties=(function(G,Z){Z===void 0&&(Z=[]);var K={},J=H=>{G[H]!==void 0&&(K[H]=G[H])};return dZ.forEach(J),Z.forEach(J),K})(S.properties,pee)),e===Su.DISMISSED||e===Su.SENT){var L=n?.[G5.SURVEY_ID],D=n?.[G5.SURVEY_ITERATION];WU({id:L,current_iteration:D}),S.$set=Ae({},S.$set,{[(R={id:L,current_iteration:D},A=e===Su.SENT?"responded":"dismissed",O="$survey_"+A+"/"+R.id,R.current_iteration&&R.current_iteration>0&&(O="$survey_"+A+"/"+R.id+"/"+R.current_iteration),O)]:!0})}else e===Su.SHOWN&&(S.$set=Ae({},S.$set,{[G5.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===HJ.SHOWN){var N=n?.[Wk.TOUR_TYPE];N&&(S.$set=Ae({},S.$set,{[Wk.TOUR_LAST_SEEN_DATE+"/"+N]:new Date().toISOString()}))}var k=Ae({},S.properties.$set,S.$set);if(dl(k)||this.setPersonPropertiesForFlags(k),!Dt(this.config.before_send)){var U=this.Rn(S);if(!U)return;(S=U).uuid=vk(S.uuid,hc)}this.Do.emit("eventCaptured",S);var F=(i=r?._url)!==null&&i!==void 0?i:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),V={method:"POST",url:F,data:S,compression:"best-available",timestampMode:r?._batchKey==="recordings"||/\/s\/(?:\?|$)/.test(F)?"body":"capture-body",batchKey:r?._batchKey,transport:r?.transport};return!this.config.request_batching||r&&(r==null||!r._batchKey)||r!=null&&r.send_instantly?this.rl(V):this.il.enqueue(V),S}Ue.critical("This capture call is ignored due to client rate limiting.")}}else Ue.error("No event name provided to posthog.capture")}else Ue.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",(n=>e(n.event,n)))}getExtension(e){var n;return(n=this.pl)==null?void 0:n.getExtension(e)}dl(){var e;return(e=this.pl)!==null&&e!==void 0?e:this.pl=new hee(this)}No(e){this.Zo.push(e);var n=!0;return()=>{if(n){n=!1;var r=this.Zo.indexOf(e);r!==-1&&this.Zo.splice(r,1)}}}kl(e){var n,r,i;return e===void 0&&(e=!0),!((n=this.persistence)==null||!n.consumeCookieIdentityChange())&&(this.Yo=null,this.persistence.get_property(Qt)===Wr&&((i=this.sessionPersistence)==null||i.clear(),this.Vo.clear(),this.Sl()),(r=this.featureFlags)==null||r.reset(),e&&this.reloadFeatureFlags(),!0)}calculateEventProperties(e,n,r,i,s){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return n;this.persistence.syncCookieProperties(),this.kl();var a=s?void 0:this.persistence.remove_event_timer(e),c=Ae({},n);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Bo()&&(c[JF]=!0),e==="$snapshot"){var u=Ae({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=u.distinct_id,(!hn(c.distinct_id)&&!Fr(c.distinct_id)||H2(c.distinct_id))&&Ue.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var h,p=(function(L,D,N,k){var U,F,V,G;if(k===void 0&&(k=!1),!_o)return{};var Z,K=L?[...tv,...D||[]]:[],J=(function(dt){for(var $e=0;gk.length>$e;$e++){var vt=gk[$e],ot=vt[1],Bt=vt[0].exec(dt),An=Bt&&(Es(ot)?ot(Bt,dt):ot);if(An)return An}return["",""]})(_o),H=J[0],Y=J[1],ee=(Z=typeof navigator<"u"?navigator:void 0)!=null&&Z.brave?{brave:!0}:{},fe={};Pe(N)||(fe.detectGoogleSearchApp=N);var ue={},z=(U=navigator)==null||(U=U.userAgentData)==null?void 0:U.platform,Q=(F=navigator)==null?void 0:F.maxTouchPoints,ae=ye==null||(V=ye.screen)==null?void 0:V.width,de=ye==null||(G=ye.screen)==null?void 0:G.height,be=ye?.devicePixelRatio;Pe(z)||(ue.userAgentDataPlatform=z),Pe(Q)||(ue.maxTouchPoints=Q),Pe(ae)||(ue.screenWidth=ae),Pe(de)||(ue.screenHeight=de),Pe(be)||(ue.devicePixelRatio=be);var Se,je,Ne,ze,tt,Je,We,Ve,Pt=Xn(E4({$os:H,$os_version:Y,$browser:DF(_o,navigator.vendor,ee,fe),$device:mk(_o),$device_type:(je=_o,Ne=ue,Ve=mk(je),Ve===vF||Ve===mF||Ve==="Kobo"||Ve==="Kindle Fire"||Ve===IF?Ym:Ve===E1||Ve===km||Ve===S1||Ve===jA?"Console":Ve===_F?"Wearable":Ve?Jo:Ne?.userAgentDataPlatform==="Android"&&((ze=Ne?.maxTouchPoints)!==null&&ze!==void 0?ze:0)>0?600>Math.min((tt=Ne?.screenWidth)!==null&&tt!==void 0?tt:0,(Je=Ne?.screenHeight)!==null&&Je!==void 0?Je:0)/((We=Ne?.devicePixelRatio)!==null&&We!==void 0?We:1)?Jo:Ym:"Desktop"),$timezone:RU(),$timezone_offset:UJ()}),{$current_url:T1(k?ff(br?.href):br?.href,K,R1),$host:br?.host,$pathname:br?.pathname,$raw_user_agent:_o.length>1e3?_o.substring(0,997)+"...":_o,$browser_version:kZ(_o,navigator.vendor,ee,fe),$browser_language:Vk(),$browser_language_prefix:(Se=Vk(),typeof Se=="string"?Se.split("-")[0]:void 0),$screen_height:ye?.screen.height,$screen_width:ye?.screen.width,$viewport_height:ye?.innerHe
11ight,$viewport_width:ye?.innerWidth,$lib:nr.LIB_NAME,$lib_version:nr.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3});return nr.SDK_DIST_CHANNEL&&(Pt.$sdk_dist_channel=nr.SDK_DIST_CHANNEL),Pt})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties,this.config.detect_google_search_app,this.config.disable_capture_url_hashes);if(this.sessionManager){var v=this.sessionManager.checkAndGetSessionAndWindowId(s,r.getTime(),!0),y=v.windowId;c.$session_id=v.sessionId,c.$window_id=y}this.sessionPropsManager&&Xn(c,this.sessionPropsManager.getSessionProps());try{var E;this.sessionRecording&&Xn(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(E=this.nl)==null?void 0:E.length}catch(L){c.$sdk_debug_error_capturing_properties=String(L)}if(this.requestRouter.region===_O&&(c.$lib_custom_api_host=this.config.api_host),h=e!==ym||s?e!==N5||s?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(r):this.pageViewManager.doPageView(r,i),c=Xn(c,h),e===ym&&De&&(c.title=De.title),!Pe(a)){var S=r.getTime()-a;c.$duration=parseFloat((S/1e3).toFixed(3))}_o&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser");var x=this.persistence.properties(),C=this.sessionPersistence.properties();kn(["$referrer","$referring_domain"],(L=>{L in x&&delete C[L]}));var R={};if(this.Zo.length>0)for(var A of this.Zo.slice())try{Xn(R,A())}catch(L){Ue.error("Failed to produce browser extension event properties",L)}(c=Xn({},p,x,C,Ae({},R,c))).$is_identified=this._isIdentified(),Ct(this.config.property_denylist)?kn(this.config.property_denylist,(function(L){delete c[L]})):Ue.error(GU+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var O=this.config.sanitize_properties;O&&(Ue.error(sM),c=O(c,e));var P=this.xl();return c.$process_person_profile=P,P&&!s&&this.Cl("_calculate_event_properties"),c}wl(e,n,r){var i;if(n===void 0&&(n=!0),r===void 0&&(r=!1),!this.persistence||!this.xl()||this.Wo&&!r)return e;var s=this.persistence.get_initial_props(),a=(i=this.sessionPropsManager)==null?void 0:i.getSetOnceProps(),c=Xn({},s,a||{},e||{}),u=this.config.sanitize_properties;return u&&(Ue.error(sM),c=u(c,"$set_once")),n&&(this.Wo=!0),dl(c)?void 0:c}register(e,n){var r;(r=this.persistence)==null||r.register(e,n)}register_once(e,n,r){var i;(i=this.persistence)==null||i.register_once(e,n,r)}register_for_session(e){var n,r;(n=this.persistence)==null||n.syncCookieProperties(),this.kl(),(r=this.sessionPersistence)==null||r.register(e),Object.keys(e).forEach((i=>this.Vo.add(i))),this.Sl()}unregister(e){var n;(n=this.persistence)==null||n.unregister(e)}unregister_for_session(e){var n;(n=this.sessionPersistence)==null||n.unregister(e),this.Vo.delete(e),this.Sl()}Tl(e,n){this.register({[e]:n})}sl(){this.Vo.forEach((e=>{var n;(n=this.sessionPersistence)==null||n.unregister(e)})),this.Vo.clear(),this.Sl()}Sl(){var e;if(this.Go)if(this.config.persistence==="memory"||(e=this.sessionPersistence)!=null&&e.Js||!Qn.Hr())Qn.Wr(this.Go);else{var n=[];this.Vo.forEach((r=>n.push(r))),n.length>0?Qn.Ur(this.Go,n):Qn.Wr(this.Go)}}getFeatureFlag(e,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlag(e,n)}getFeatureFlagPayload(e){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagPayload(e)}getFeatureFlagResult(e,n){var r;return(r=this.featureFlags)==null?void 0:r.getFeatureFlagResult(e,n)}getAllFeatureFlags(){var e,n;return(e=(n=this.featureFlags)==null?void 0:n.getAllFeatureFlags())!==null&&e!==void 0?e:[]}isFeatureEnabled(e,n){var r,i;return(r=(i=this.featureFlags)==null?void 0:i.isFeatureEnabled(e,n))!==null&&r!==void 0?r:n?.defaultValue}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,n,r){var i;(i=this.featureFlags)==null||i.updateFlags(e,n,r)}updateEarlyAccessFeatureEnrollment(e,n,r){var i;(i=this.featureFlags)==null||i.updateEarlyAccessFeatureEnrollment(e,n,r)}getEarlyAccessFeatures(e,n,r){var i;return n===void 0&&(n=!1),(i=this.featureFlags)==null?void 0:i.getEarlyAccessFeatures(e,n,r)}on(e,n){return this.Do.on(e,n)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:r_}),()=>{})}onSessionId(e){var n,r;return(n=(r=this.sessionManager)==null?void 0:r.onSessionId(e))!==null&&n!==void 0?n:()=>{}}
11getSurveys(e,n){n===void 0&&(n=!1),this.surveys?this.surveys.getSurveys(e,n):e([],{isLoaded:!1,error:r_})}getActiveMatchingSurveys(e,n){n===void 0&&(n=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,n):e([],{isLoaded:!1,error:r_})}renderSurvey(e,n){var r;(r=this.surveys)==null||r.renderSurvey(e,n)}displaySurvey(e,n){var r;n===void 0&&(n=aee),(r=this.surveys)==null||r.displaySurvey(e,n)}cancelPendingSurvey(e){var n;(n=this.surveys)==null||n.cancelPendingSurvey(e)}canRenderSurvey(e){var n,r;return(n=(r=this.surveys)==null?void 0:r.canRenderSurvey(e))!==null&&n!==void 0?n:{visible:!1,disabledReason:r_}}canRenderSurveyAsync(e,n){var r,i;return n===void 0&&(n=!1),(r=(i=this.surveys)==null?void 0:i.canRenderSurveyAsync(e,n))!==null&&r!==void 0?r:Promise.resolve({visible:!1,disabledReason:r_})}Ml(e){return!e||H2(e)?(Ue.critical("Unique user id has not been set in posthog.identify"),!1):e===nm?(Ue.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(Ue.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,n,r){if(!this.__loaded||!this.persistence)return Ue.uninitializedWarning("posthog.identify");if(Fr(e)&&(e=e.toString(),Ue.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.Ml(e)&&this.Cl("posthog.identify")){this.Ho();var i=this.get_distinct_id(),s=this.persistence.syncCookieProperties()&&this.get_distinct_id()!==i,a=this.kl(!1),c=this.persistence.Xs(),u=!1;try{var h=this.get_distinct_id();this.register({$user_id:e}),this.get_property(w1)||this.register_once({$had_persisted_distinct_id:!0,$device_id:h},""),e!==h&&e!==this.get_property(xm)&&(this.unregister(xm),this.register({distinct_id:e}));var p,v=(this.persistence.get_property(Qt)||Wr)===Wr,y=e!==h,E=!y&&v;if(y&&v)this.persistence.set_property(Qt,ts),this.setPersonPropertiesForFlags({$set:n||{},$set_once:r||{}},!1),this.config.cookieWinsOnConflict&&this.persistence.ta(),this.capture($5,{distinct_id:e,$anon_distinct_id:h},{$set:n||{},$set_once:r||{}}),this.Yo=Q5(e,n,r),(p=this.featureFlags)==null||p.setAnonymousDistinctId(h);else if(E){this.persistence.set_property(Qt,ts);var S=n||{},x=r||{};this.setPersonPropertiesForFlags({$set:S,$set_once:x},!1),this.config.cookieWinsOnConflict&&this.persistence.ta(),this.capture("$set",{$set:S,$set_once:x}),this.Yo=Q5(e,n,r)}else(n||r)&&this.setPersonProperties(n,r);y||s||a?(this.reloadFeatureFlags(),this.featureFlags?this.featureFlags.resetFlagCallReported():this.unregister(bu)):E&&(n||r)&&this.reloadFeatureFlags(),u=!0}finally{c&&this.persistence.ra(u)}}}setPersonProperties(e,n){if((e||n)&&this.Cl("posthog.setPersonProperties")){var r=Q5(this.get_distinct_id(),e,n);this.Yo!==r?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:n||{}},!0),this.capture("$set",{$set:e||{},$set_once:n||{}}),this.Yo=r):Ue.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}unsetPersonProperties(e){var n,r=(Ct(e)?e:[e]).filter((i=>hn(i)&&i.length>0));r.length!==0&&this.Cl("posthog.unsetPersonProperties")&&((n=this.featureFlags)==null||n.unsetPersonPropertiesForFlags(r,!0),this.capture("$set",{$unset:r}),this.Yo=null)}group(e,n,r){var i;if(e&&n){(i=this.persistence)==null||i.syncCookieProperties(),this.kl();var s=this.getGroups(),a=s[e]!==n;if(a&&this.resetGroupPropertiesForFlags(e),this.register({$groups:Ae({},s,{[e]:n})}),a||r){var c={$group_type:e,$group_key:n};r&&(c.$group_set=r),this.capture(Rk,c)}r&&this.setGroupPropertiesForFlags({[e]:r}),a&&!r&&this.reloadFeatureFlags()}else Ue.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,n){var r;n===void 0&&(n=!0),(r=this.featureFlags)==null||r.setPersonPropertiesForFlags(e,n)}resetPersonPropertiesForFlags(e){var n;e===void 0&&(e=!0),(n=this.featureFlags)==null||n.resetPersonPropertiesForFlags(e)}setGroupPropertiesForFlags(e,n){var r;n===void 0&&(n=!0),this.Cl("posthog.setGroupPropertiesForFlags")&&((r=this.featureFlags)==null||r.setGroupPropertiesForFlags(e,n))}resetGroupPropertiesForFlags(e){var n;(n=this.featureFlags)==null||n.resetGroupPropertiesForFlags(e)}reset(e){var n=Ws(e)?e:e?.resetDeviceID,r=Ws(e)||e==null?void 0:e.bootstrap;this.El(n,!1,r)}El(e,n,r){var i,s,a;if(n===void 0&&(n=!1),Ue.info("reset"),!this.__loaded)return Ue.uninitializedWarning("posthog.reset");var c=r?.sessionID;this.config.bootstrap=r||((i=this.tl)==null?void 0:i.bootstrap)||{},(s=this.featureFlags)==null||s.updateConfig==null||s.updateConfig(this.config,this.xa());var u=this.get_property(w1),h=this.get_property(D5),p=this.get_property(qh),v=this.is_capturing();this.consent.reset(),n||!v||this.is_capturing()||console.warn("[PostHog.js]","reset() cleared the stored consent, and capturing is now off because of `opt_out_capturing_by_default`. Call opt_in_capturing() again, and prefer calling reset() before opting in rather than after.");var y=(a=this.persistence)==null||a.Xs==null?void 0:a.Xs(),E=!1;try{var S,x,C,R,A,O,P,L,D,N,k,U,F;
11if((S=this.persistence)==null||S.clear(),(x=this.sessionPersistence)==null||x.clear(),this.Vo.clear(),this.Sl(),Pe(p)||(N=this.persistence)==null||N.register({[qh]:p}),(C=this.surveys)==null||C.reset(),(R=this.featureFlags)==null||R.reset(),(A=this.conversations)==null||A.reset(),(O=this.logs)==null||O.reset(),(P=this.metrics)==null||P.reset(),(L=this.persistence)==null||L.set_property(Qt,Wr),(D=this.sessionManager)==null||D.resetSessionId(),this.Yo=null,this.config.cookieless_mode===Eu)this.register_once({distinct_id:nm,$device_id:null},"");else{var V=this.config.get_device_id(hc());this.register_once({distinct_id:V,$device_id:e?V:u},""),e||Pe(h)||this.register({[D5]:h})}if(this.register({$last_posthog_reset:new Date().toISOString()},1),r&&(r.distinctID===void 0||this.Bo()||((F=this.persistence)==null||F.set_property(Qt,r.isIdentifiedID?ts:Wr),this.register({distinct_id:r.distinctID})),(k=this.featureFlags)==null||k.initialize(),!(Pe(c)||(U=this.sessionManager)!=null&&U.setBootstrapSessionId(c,!0)))){var G=Ae({},r);delete G.sessionID,this.config.bootstrap=G}delete this.config.identity_distinct_id,delete this.config.identity_hash,E=!0}finally{var Z;y&&((Z=this.persistence)==null||Z.ra==null||Z.ra(E))}this.reloadFeatureFlags()}shutdown(e){var n=this;return rr((function*(){var r,i,s,a,c;if(n.__loaded){n.dl().dispose(),(r=n.sessionRecording)==null||r.dispose(),(i=n.logs)==null||i.flushLogs("sendBeacon"),(s=n.metrics)==null||s.flush("sendBeacon"),(a=n.il)==null||a.unload(),(c=n.nl)==null||c.unload();try{var u;(u=n.featureFlags)==null||u.destroy()}catch(h){Ue.error("Error while destroying feature flags",h)}}else Ue.uninitializedWarning("posthog.shutdown")}))()}setIdentity(e,n){var r;this.config.identity_distinct_id=e,this.config.identity_hash=n,this.alias(e),(r=this.conversations)==null||r.Il()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,(e=this.conversations)==null||e.Rl()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,n;return(e=(n=this.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var n=this.sessionManager.checkAndGetSessionAndWindowId(!0),r=n.sessionStartTimestamp,i=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+n.sessionId);if(e!=null&&e.withTimestamp&&r){var s,a=(s=e.timestampLookBack)!==null&&s!==void 0?s:10;if(!r)return i;i+="?t="+Math.max(Math.floor((new Date().getTime()-r)/1e3)-a,0)}return i}alias(e,n){return e===this.get_property(WF)?(Ue.critical("Attempting to create alias for existing People user - aborting."),-2):this.Cl("posthog.alias")?(Pe(n)&&(n=this.get_distinct_id()),e!==n?(this.Tl(xm,e),this.capture("$create_alias",{alias:e,distinct_id:n})):(Ue.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var n=Ae({},this.config);if(Yn(e)){var r,i,s,a,c,u,h,p,v,y,E,S;Xn(this.config,oM(e));var x=this.Uo();(r=this.persistence)==null||r.update_config(this.config,n,x),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new q5(Ae({},this.config,{persistence:"sessionStorage"}),x,!1);var C,R=this.Xo(this.config.debug);Ws(R)&&(this.config.debug=R),Ws(this.config.debug)&&(this.config.debug?(nr.DEBUG=!0,jn.Hr()&&jn.Ur("ph_debug",!0),Ue.info("set_config",{config:e,oldConfig:n,newConfig:Ae({},this.config)})):(nr.DEBUG=!1,jn.Hr()&&jn.Wr("ph_debug"))),(i=this.featureFlags)==null||i.updateConfig==null||i.updateConfig(this.config,this.xa()),(s=this.exceptionObserver)==null||s.onConfigChange(),(a=this.exceptions)==null||a.onConfigChange(),(c=this.sessionRecording)==null||c.startIfEnabledOrStop(),(u=this.tracingHeaders)==null||u.startIfEnabledOrStop(),(h=this.autocapture)==null||h.startIfEnabled(),(p=this.heatmaps)==null||p.startIfEnabled(),("capture_pageview"in e||"disable_capture_url_hashes"in e)&&((C=this.historyAutocapture)==null||C.startIfEnabledOrStop()),(v=this.exceptionObserver)==null||v.startIfEnabledOrStop(),(y=this.deadClicksAutocapture)==null||y.startIfEnabledOrStop(),(E=this.surveys)==null||E.loadIfEnabled(),this.zo(),(S=this.externalIntegrations)==null||S.startIfEnabledOrStop()}}
11_overrideSDKInfo(e,n){nr.LIB_NAME=e,nr.LIB_VERSION=n}startSessionRecording(e){var n,r,i,s,a,c=e===!0,u={sampling:c||!(e==null||!e.sampling),linked_flag:c||!(e==null||!e.linked_flag),url_trigger:c||!(e==null||!e.url_trigger),event_trigger:c||!(e==null||!e.event_trigger)};Object.values(u).some(Boolean)&&((n=this.sessionManager)==null||n.checkAndGetSessionAndWindowId(),u.sampling&&((r=this.sessionRecording)==null||r.overrideSampling()),u.linked_flag&&((i=this.sessionRecording)==null||i.overrideLinkedFlag()),u.url_trigger&&((s=this.sessionRecording)==null||s.overrideTrigger("url")),u.event_trigger&&((a=this.sessionRecording)==null||a.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,n){if(this.exceptions){var r=new Error("PostHog syntheticException"),i=this.exceptions.buildProperties(e,{handled:!0,syntheticException:r});return this.exceptions.sendExceptionEvent(Ae({},i,n))}}addExceptionStep(e,n){var r;(r=this.exceptions)==null||r.addExceptionStep(e,n)}captureLog(e){var n;(n=this.logs)==null||n.captureLog(e)}get logger(){var e,n;return(e=(n=this.logs)==null?void 0:n.logger)!==null&&e!==void 0?e:Wo.Pl}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var n,r;return(n=(r=this.toolbar)==null?void 0:r.loadToolbar(e))!==null&&n!==void 0&&n}get_property(e){var n;return(n=this.persistence)==null?void 0:n.props[e]}getSessionProperty(e){var n;return(n=this.sessionPersistence)==null?void 0:n.props[e]}toString(){var e,n=(e=this.config.name)!==null&&e!==void 0?e:_m;return n!==_m&&(n=_m+"."+n),n}_isIdentified(){var e,n;return((e=this.persistence)==null?void 0:e.get_property(Qt))===ts||((n=this.sessionPersistence)==null?void 0:n.get_property(Qt))===ts}xl(){var e,n;return!(this.config.person_profiles==="never"||this.config.person_profiles===lO&&!this._isIdentified()&&dl(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[xm])&&((n=this.persistence)==null||(n=n.props)==null||!n[nC]))}bl(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&!!this.config.capture_pageview}createPersonProfile(){this.xl()||this.Cl("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.Cl("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}Cl(e){return this.config.person_profiles==="never"?(Ue.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Tl(nC,!0),!0)}Uo(){if(this.config.cookieless_mode==="always")return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==kh)}zo(){var e,n,r,i,s,a=this.Uo();return this.is_capturing()||(r=this.logs)==null||r.Al(),((e=this.persistence)==null?void 0:e.Js)!==a&&((i=this.persistence)==null||i.set_disabled(a)),((n=this.sessionPersistence)==null?void 0:n.Js)!==a&&((s=this.sessionPersistence)==null||s.set_disabled(a)),a&&(this.Vo.clear(),this.Sl()),a}opt_in_capturing(e){var n;if(this.config.cookieless_mode!==Eu){if(this.Bo()){var r,i,s,a,c;this.El(!0,!0),(r=this.sessionManager)==null||r.destroy(),(i=this.pageViewManager)==null||i.destroy(),this.sessionManager=new tM(this),this.pageViewManager=new zk(this),this.persistence&&(this.sessionPropsManager=new Jk(this,this.sessionManager,this.persistence));var u,h=(s=(a=this.config.__extensionClasses)==null?void 0:a.sessionRecording)!==null&&s!==void 0?s:(c=Wo.__defaultExtensionClasses)==null?void 0:c.sessionRecording;h&&(this.sessionRecording=this.jo(this.sessionRecording,new h(this)),this.Lo&&((u=this.sessionRecording)==null||u.onRemoteConfig==null||u.onRemoteConfig(this.Lo)))}var p,v;this.consent.optInOut(!0),this.zo(),this.gl(),(n=this.sessionRecording)==null||n.startIfEnabledOrStop(),this.config.cookieless_mode==kh&&((p=this.surveys)==null||p.loadIfEnabled()),(Pe(e?.captureEventName)||e!=null&&e.captureEventName)&&this.capture((v=e?.captureEventName)!==null&&v!==void 0?v:"$opt_in",e?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.ml()}else Ue.warn(iM)}opt_out_capturing(){var e,n,r;this.config.cookieless_mode!==Eu?(this.config.cookieless_mode===kh&&this.consent.isOptedIn()&&this.El(!0,!0),this.consent.optInOut(!1),this.zo(),this.config.cookieless_mode===kh&&(this.register({distinct_id:nm,$device_id:null}),(e=this.sessionRecording)==null||e.stopRecording(),this.sessionRecording=void 0,(n=this.sessionManager)==null||n.destroy(),(r=this.pageViewM
11anager)==null||r.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,this.config.capture_pageview&&this.ml(),this.gl())):Ue.warn(iM)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===1?"granted":e===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===Eu||(this.config.cookieless_mode===kh?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.zo()}_is_bot(){return Gs?BU(Gs,this.config.custom_blocked_useragents):void 0}ml(){De&&(De.visibilityState==="visible"?this.Qo||(this.Qo=!0,this.capture(ym,{title:De.title},{send_instantly:!0}),this.Jo&&(De.removeEventListener(Zm,this.Jo),this.Jo=null)):this.Jo||(this.Jo=this.ml.bind(this),sr(De,Zm,this.Jo)))}debug(e){e===!1?(ye?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(ye?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}xa(){var e=this.tl||{};return"advanced_disable_flags"in e?!!e.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(Ue.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(function(n,r,i,s,a){var c=r in n&&!Dt(n[r]),u=i in n&&!Dt(n[i]);return c?n[r]:!!u&&(a&&a.warn("Config field '"+i+"' is deprecated. Please use '"+r+"' instead. The old field will be removed in a future major version."),n[i])})(e,"advanced_disable_flags","advanced_disable_decide",0,Ue)}Rn(e){var n;if(Dt(this.config.before_send))return e;var r=Object.keys((n=e.properties)!==null&&n!==void 0?n:{}).filter(EZ),i=Ct(this.config.before_send)?this.config.before_send:[this.config.before_send],s=e;for(var a of i)try{if(s=a(s),Dt(s)){var c="Event '"+e.event+"' was rejected in beforeSend function";return bZ(e.event)?Ue.warn(c+". This can cause unexpected behavior."):Ue.info(c),null}s.properties&&!dl(s.properties)||Ue.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}catch(h){return Ue.error("Error in beforeSend function for event '"+e.event+"':",h),null}for(var u of r)if(s.properties&&Dt(s.properties[u]))return Ue.warn("Event '"+e.event+"' had its '"+u+"' property removed in a beforeSend function. This property is required for ingestion, so the event will be dropped."),null;return s}getPageViewId(){var e;return(e=this.pageViewManager.Ps)==null?void 0:e.pageViewId}captureTraceFeedback(e,n){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:n})}captureTraceMetric(e,n,r){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:n,$ai_metric_value:String(r)})}Xo(e){var n=Ws(e)&&!e,r=jn.Hr()&&jn.$r("ph_debug")==="true";return!n&&(!!r||e)}}Wo.__defaultExtensionClasses={},Wo.Pl=(()=>{var t=()=>{};return{trace:t,debug:t,info:t,warn:t,error:t,fatal:t}})(),(function(t,e){for(var n=0;e.length>n;n++)t.prototype[e[n]]=fJ(t.prototype[e[n]])})(Wo,["identify"]);class YU{constructor(e){this.disabled=e===!1;var n=Yn(e)?e:{};this.thresholdPx=n.threshold_px||30,this.timeoutMs=n.timeout_ms||1e3,this.clickCount=n.click_count||3,this.clicks=[]}isRageClick(e,n,r){if(this.disabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(e-i.x)+Math.abs(n-i.y)<this.thresholdPx&&this.timeoutMs>r-i.timestamp){if(this.clicks.push({x:e,y:n,timestamp:r}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:n,timestamp:r}];return!1}}var eR="$copy_autocapture",JS=gr("[AutoCapture]");function tR(t,e){return e.length>t?e.slice(0,t)+"...":e}function yee(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!hf(e));return e}function _ee(t,e){var n,r,i=e.e,s=e.maskAllElementAttributes,a=e.maskAllText,c=e.elementAttributeIgnoreList,u=e.elementsC
11hainAsString,h=e.disableCaptureUrlHashes;if(!hf(t))return{props:{}};for(var p=[t],v=new Set([t]),y=t;y.parentNode&&!Yo(y,"body")&&cU>p.length;)if(lU(y.parentNode)){var E=y.parentNode.host;if(v.has(E))break;v.add(E),p.push(E),y=E}else{if(!hf(y.parentNode)||v.has(y.parentNode))break;v.add(y.parentNode),p.push(y.parentNode),y=y.parentNode}var S,x,C=[],R={},A=!1,O=!1;if(kn(p,(k=>{var U=fO(k);if(Yo(k,"a")){var F=k.getAttribute("href");A=!!(U&&F&&Q_(F))&&(h?ff(F):F)}Rt(oC(k),"ph-no-capture")&&(O=!0),C.push((function(G,Z,K,J,H){H===void 0&&(H=!1);var Y=G.tagName.toLowerCase(),ee={tag_name:Y};w4.indexOf(Y)>-1&&!K&&(ee.$el_text=Y.toLowerCase()==="a"||Y.toLowerCase()==="button"?tR(1024,Bk(G)):tR(1024,x1(G)));var fe=oC(G);fe.length>0&&(ee.classes=fe.filter((function(ae){return ae!==""}))),kn(G.attributes,(function(ae){var de;if((!gU(G)||["name","id","class","aria-label"].indexOf(ae.name)!==-1)&&(J==null||!J.includes(ae.name))&&!Z&&Q_(ae.value)&&(!hn(de=ae.name)||de.substring(0,10)!=="_ngcontent"&&de.substring(0,7)!=="_nghost")){var be=ae.value;ae.name==="class"&&(be=S4(be).join(" ")),ee["attr__"+ae.name]=tR(1024,ae.name==="href"&&H?ff(be):be)}}));for(var ue=1,z=1,Q=G;Q=yee(Q);)ue++,Q.tagName===G.tagName&&z++;return ee.nth_child=ue,ee.nth_of_type=z,ee})(k,s,a,c,h));var V=(function(G){if(!fO(G))return{};var Z={};return kn(G.attributes,(function(K){if(K.name&&K.name.indexOf("data-ph-capture-attribute")===0){var J=K.name.replace("data-ph-capture-attribute-",""),H=K.value;J&&H&&Q_(H)&&(Z[J]=H)}})),Z})(k);Xn(R,V)})),O)return{props:{},explicitNoCapture:O};if(a||(C[0].$el_text=Yo(t,"a")||Yo(t,"button")?Bk(t):x1(t)),A){var P,L;C[0].attr__href=A;var D=(P=Jm(A))==null?void 0:P.host,N=ye==null||(L=ye.location)==null?void 0:L.host;D&&N&&D!==N&&(S=A)}return{props:Xn({$event_type:i.type,$ce_version:1},u?{}:{$elements:C},{$elements_chain:(x=C,(function(k){return k.map((U=>{var F,V,G="";if(U.tag_name&&(G+=U.tag_name),U.attr_class)for(var Z of(U.attr_class.sort(),U.attr_class))G+="."+Z.replace(/"/g,"");var K=Ae({},U.text?{text:U.text}:{},{"nth-child":(F=U.nth_child)!==null&&F!==void 0?F:0,"nth-of-type":(V=U.nth_of_type)!==null&&V!==void 0?V:0},U.href?{href:U.href}:{},U.attr_id?{attr_id:U.attr_id}:{},U.attributes),J={};return Hw(K).sort(((H,Y)=>H[0].localeCompare(Y[0]))).forEach((H=>{var Y=H[1];return J[jk(H[0].toString())]=jk(Y.toString())})),(G+=":")+Hw(J).map((H=>H[0]+'="'+H[1]+'"')).join("")})).join(";")})((function(k){return k.map((U=>{var F,V,G={text:(F=U.$el_text)==null?void 0:F.slice(0,400),tag_name:U.tag_name,href:(V=U.attr__href)==null?void 0:V.slice(0,2048),attr_class:PJ(U),attr_id:U.attr__id,nth_child:U.nth_child,nth_of_type:U.nth_of_type,attributes:{}};return Hw(U).filter((Z=>Z[0].indexOf("attr__")===0)).forEach((Z=>G.attributes[Z[0]]=Z[1])),G}))})(x)))},(n=C[0])!=null&&n.$el_text?{$el_text:(r=C[0])==null?void 0:r.$el_text}:{},S&&i.type==="click"?{$external_click_url:S}:{},R)}}class bee{constructor(e){this.name="autocapture",this.ns=!1,this.ss=null,this.os=!1,this.ls=!1,this.zi={enabled:!1,rageclick:!1,maskAllElementAttributes:!1,maskAllText:!1,disableCaptureUrlHashes:!1,remoteRequestsDisabled:!1},this.us=!1,this.hs=e,this.hs.refresh(this.zi),this.rageclicks=new YU(this.zi.rageclick),this.ds=null}setup(e){this.vs(),this.cs=e;var n=e.onRemoteConfig(this.onRemoteConfig.bind(this));this.us?n.dispose():(this.fs=n,this.startIfEnabled())}dispose(){var e;this.us||(this.us=!0,this.cs=void 0,(e=this.fs)==null||e.dispose(),this.fs=void 0,this.ps())}gs(){return this.hs.refresh(this.zi),this.zi}vs(){var e,n;return this.gs(),this.zi.url_allowlist=(e=this.zi.url_allowlist)==null?void 0:e.map((r=>new RegExp(r))),this.zi.url_ignorelist=(n=this.zi.url_ignorelist)==null?void 0:n.map((r=>new RegExp(r))),this.zi}ys(){if(this.isBrowserSupported()){if(ye&&De){var e=this.bs=r=>{r=r||ye?.event;try{this._s(r)}catch(i){JS.error("Failed to capture event",i)}};if(sr(De,"submit",e,{capture:!0}),sr(De,"change",e,{capture:!0}),sr(De,"click",e,{capture:!0}),this.gs().capture_copied_text){var n=this.ws=r=>{r=r||ye?.event;try{this._s(r,eR)}catch(i){JS.error("Failed to capture clipboard event",i)}};sr(De,"copy",n,{capture:!0}),sr(De,"cut",n,{capture:!0}
11),sr(De,"paste",n,{capture:!0})}}}else JS.info("Disabling Automatic Event Collection because this browser is not supported")}ps(){this.bs&&(De?.removeEventListener("submit",this.bs,!0),De?.removeEventListener("change",this.bs,!0),De?.removeEventListener("click",this.bs,!0),this.bs=void 0),this.ws&&(De?.removeEventListener("copy",this.ws,!0),De?.removeEventListener("cut",this.ws,!0),De?.removeEventListener("paste",this.ws,!0),this.ws=void 0),this.ns=!1}startIfEnabled(){!this.us&&this.cs&&this.isEnabled&&!this.ns&&(this.ys(),this.ns=!0)}onRemoteConfig(e){if(!this.us)if(this.os=!0,e.ok){var n=e.config;n.elementsChainAsString&&(this.ls=n.elementsChainAsString);var r,i=n.autocapture_opt_out;Ws(i)&&((r=this.cs)==null||r.kv.set(GA,i),this.ss=i),this.startIfEnabled()}else this.startIfEnabled()}setElementSelectors(e){this.ds=e}getElementSelectors(e){var n,r=[];return(n=this.ds)==null||n.forEach((i=>{var s=De?.querySelectorAll(i);s?.forEach((a=>{e===a&&r.push(i)}))})),r}get isEnabled(){var e,n;if(this.us)return!1;var r=(e=this.cs)==null?void 0:e.kv.get(GA),i=this.ss,s=this.gs(),a=s.remoteRequestsDisabled&&!this.os;if(rs(i)&&!Ws(r)&&!a)return!1;var c=(n=this.ss)!==null&&n!==void 0?n:!!r;return!!s.enabled&&!c}_s(e,n){if(n===void 0&&(n="$autocapture"),this.isEnabled){var r=uO(e);aU(r)&&(r=r.parentNode||null);var i,s=this.vs();n==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&s.rageclick&&(i=this.rageclicks)!=null&&i.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&hU(r,s.rageclick)&&this._s(e,"$rageclick");var a=n===eR,c=a?Ae({},s,{dom_event_allowlist:void 0}):s;if(r&&(function(R,A,O,P,L,D){var N;if(!ye||C4(R)||O!=null&&O.url_allowlist&&!kk(O.url_allowlist,D)||O!=null&&O.url_ignorelist&&kk(O.url_ignorelist,D))return!1;if(O!=null&&O.dom_event_allowlist){var k=O.dom_event_allowlist;if(k&&!k.some((K=>A.type===K)))return!1}var U=pU(R,P),F=U.parentIsUsefulElement,V=U.targetElementList;if(!(function(K,J){var H=J?.element_allowlist;if(Pe(H))return!0;var Y,ee=function(ue){if(H.some((z=>ue.tagName.toLowerCase()===z)))return{v:!0}};for(var fe of K)if(Y=ee(fe))return Y.v;return!1})(V,O)||!dO(V,O?.css_selector_allowlist)||dO(V,(N=O?.css_selector_ignorelist)!==null&&N!==void 0?N:xJ))return!1;try{var G=ye.getComputedStyle(R);if(G&&G.getPropertyValue("cursor")==="pointer"&&A.type==="click")return!0}catch{}var Z=R.tagName.toLowerCase();switch(Z){case"html":return!1;case"form":return(L||["submit"]).indexOf(A.type)>=0;case"input":case"select":case"textarea":return(L||["change","click"]).indexOf(A.type)>=0;default:return F?(L||["click"]).indexOf(A.type)>=0:(L||["click"]).indexOf(A.type)>=0&&(w4.indexOf(Z)>-1||R.getAttribute("contenteditable")==="true")}})(r,e,c,a,a?["copy","cut","paste"]:void 0,{config:{get_current_url:s.getCurrentUrl}})){var u,h=_ee(r,{e,maskAllElementAttributes:s.maskAllElementAttributes,maskAllText:s.maskAllText,elementAttributeIgnoreList:s.element_attribute_ignorelist,elementsChainAsString:this.ls,disableCaptureUrlHashes:s.disableCaptureUrlHashes}),p=h.props;if(h.explicitNoCapture)return!1;var v=this.getElementSelectors(r);if(v&&v.length>0&&(p.$element_selectors=v),n===eR){var y=e.type||"clipboard";if(y!=="paste"){var E,S,x=ye==null||(E=ye.getSelection())==null?void 0:E.toString(),C=uU(x);if(!C)return!1;p.$selected_content=C,p.$clipboard_text_length=(S=x?.length)!==null&&S!==void 0?S:0}p.$copy_type=y}return(u=this.cs)==null||u.capture(n,p).catch((R=>JS.error("Failed to capture event",R))),!0}}}isBrowserSupported(){return Es(De?.querySelectorAll)}}class Eee{constructor(e){this._instance=e}refresh(e){var n=this._instance.config,r=Yn(n.autocapture)?n.autocapture:void 0;e.enabled=!!n.autocapture,e.rageclick=n.rageclick,e.maskAllElementAttributes=n.mask_all_element_attributes,e.maskAllText=n.mask_all_text,e.disableCaptureUrlHashes=n.disable_capture_url_hashes,e.getCurrentUrl=n.get_current_url,e.remoteRequestsDisabled=this._instance.xa(),e.url_allowlist=r?.url_allowlist,e.url_ignorelist=r?.url_ignorelist,e.dom_event_allowlist=r?.dom_event_allowlist,e.element_allowlist=r?.element_allowlist,e.css_selector_allowlist=r?.css_selector_allowlist,e.css_selector_ignorelist=r?.css_selector_ignorelist,e.element_attribute_ignorelist=r?.element_attribute_ignorelist,e.capture_copied_text=r?.capture_copied_text}}var i_=gr("[ExceptionAutocapture]"),aM=()=>{},lM=t=>{var e;if(Es(t))return(e=t.__posthog_layer__)!==null&&e!==void 0?e:t.__rrweb_layer__};function XU(t,e,n){try{if(!(e in t))return aM;
11var r={next:t[e]},i=n((function(){for(var s=arguments.length,a=new Array(s),c=0;s>c;c++)a[c]=arguments[c];return r.next.apply(this,a)}));return Es(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0},__posthog_layer__:{enumerable:!1,value:r}})),t[e]=i,()=>{if(t[e]!==i)for(var s=t[e],a=lM(s);a;){if(a.next===i)return void(a.next=r.next);a=lM(s=a.next)}else t[e]=r.next}}catch{return aM}}var See=gr("[TracingHeaders]"),xh=gr("[Web Vitals]"),cM=9e5,uM=["CLS","FCP","INP","LCP"],wee=["INP","LCP"],Cee=["interactionTarget","interactionType","inputDelay","processingDuration","presentationDelay","loadState","target","url","timeToFirstByte","resourceLoadDelay","resourceLoadDuration","elementRenderDelay","largestShiftTarget","largestShiftTime","largestShiftValue","firstByteToFCP"],dM="disabled",fM="lazy_loading",s_="awaiting_config",ew="missing_config";gr("[SessionRecording]"),gr("[SessionRecording]");var bO="[SessionRecording]",su=gr(bO),xee=gr("[Heatmaps]");function nR(t){return Yn(t)&&"clientX"in t&&"clientY"in t&&Fr(t.clientX)&&Fr(t.clientY)}var tw=gr("[Product Tours]"),rR=t=>{var e;return!t.config.disable_product_tours&&!((e=t.persistence)==null||!e.get_property(y4))},Tee=["$set_once","$set"],oc=gr("[SiteApps]"),hM="Error while initializing PostHog app with config id ",QU=(t,e)=>t!=null&&t.then?t.then(e):e(t),sm="SDK is not enabled or survey functionality is not yet loaded",pM="Disabled. Not loading surveys.";class Ree{constructor(e,n){this.name="surveys",this._surveyEventReceiver=null,this._surveyManager=null,this.Fl=!1,this.Ol=[],this.Ll=null,this.Dl=null,this.us=!1,this.$l=new Set,this.onRemoteConfig=r=>{if(!this.us&&!this.zi.disableSurveys){if(!r.ok)return Cn.warn("Remote config unavailable. Not loading surveys.");var i=r.config.surveys;if(Dt(i))return Cn.warn("Flags not loaded yet. Not loading surveys.");this.Nl=Ws(i)?i:i.length>0,Cn.info("flags response received, isSurveysEnabled: "+this.Nl),this.loadIfEnabled()}},this.hs=e,this.ql=n}setup(e){if(!this.us)return this.jl=e,QU(e.kv.initialize(),(()=>{if(this.jl===e&&!this.us){this.jl=void 0,this.cs=e;var n=e.onRemoteConfig(this.onRemoteConfig);this.us?n.dispose():(this.fs=n,this.loadIfEnabled())}}))}dispose(){var e,n,r;this.us||(this.us=!0,this.jl=void 0,this.cs=void 0,(e=this.fs)==null||e.dispose(),this.fs=void 0,(n=this._surveyEventReceiver)==null||n.dispose(),this._surveyEventReceiver=null,(r=this._surveyManager)==null||r.dispose==null||r.dispose(),this._surveyManager=null,this.Ol=[],this.Ll=null,this.$l.forEach((i=>clearTimeout(i))),this.$l.clear())}get zi(){return this.hs.get()}initialize(){this.loadIfEnabled()}reset(){try{var e;(e=this._surveyEventReceiver)==null||e.reset(),localStorage.removeItem("lastSeenSurveyDate");for(var n=[],r=0;r<localStorage.length;r++){var i=localStorage.key(r);(i!=null&&i.startsWith(qU)||i!=null&&i.startsWith("inProgressSurvey_"))&&n.push(i)}n.forEach((s=>localStorage.removeItem(s)))}catch{}}loadIfEnabled(){if(!this.us&&this.cs){var e=this.zi;if(!this._surveyManager)if(this.Fl)Cn.info("Already initializing surveys, skipping...");else if(e.disableSurveys)Cn.info(pM);else if(e.cookielessMode&&this.hs.isOptedOut())Cn.info("Not loading surveys in cookieless mode without consent.");else{var n=this.hs.getExtensions();if(n){if(!Pe(this.Nl)||e.advancedEnableSurveys){var r=this.Nl||e.advancedEnableSurveys;this.Fl=!0;try{var i=n.generateSurveys;if(i)return this.Bl(i,r),void(this.Fl=!1);var s=n.loadExternalDependency;if(!s)return this.Hl(b4),void(this.Fl=!1);s((a=>{try{if(this.us)return;var c=this.hs.getExtensions();a||c==null||!c.generateSurveys?this.Hl("Could not load surveys script",a):this.Bl(c.generateSurveys,r)}finally{this.Fl=!1}}))}catch(a){throw this.Fl=!1,this.Hl("Error initializing surveys",a),a}}}else Cn.error("PostHog Extensions not found.")}}}Bl(e,n){this.us||(this._surveyManager=e(n),this._surveyEventReceiver=this.hs.createEventReceiver(),Cn.info("Surveys loaded successfully"),this.Ul({isLoaded:!0}))}Hl(e,n){Cn.error(e,n),this.Ul({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.Ol.push(e),this._surveyManager&&this.Ul({isLoaded:!0}),()=>{this.Ol=this.Ol.filter((n=>n!==e))}}getSurveys(e,n){var r;n===void 0&&(n=!1);var i=(r=this.cs)!==null&&r!==void 0?r:this.ql;if(i&&!this.us){if(this.zi.disableSurveys)return Cn.info(pM),e([]);var s=i.kv.get(tO);if(s&&!n)return e(s,{isLoaded:!0}
11),void(this.zl()&&this.getSurveys((()=>{}),!0));if(this.Ll)this.Ll.then((u=>{this.us||e(u.surveys,u.context)})).catch((u=>Cn.error("Error in survey callback",u)));else{var a=this.Wl("/api/surveys/",{method:"GET",query:{token:i.projectToken},sentAt:"query",timeoutMs:this.zi.requestTimeoutMs}).then((u=>{try{return this.Vl(i,u)}catch(h){return Cn.error("Error processing surveys response",h),this.Vl(i,{statusCode:0,error:h})}}),(u=>this.Vl(i,{statusCode:0,error:u})));this.Ll=a;var c=()=>{this.Ll===a&&(this.Ll=null)};a.then((u=>{c(),this.us||e(u.surveys,u.context)}),c).catch((u=>Cn.error("Error in survey callback",u)))}}}Wl(e,n){var r=this.cs;return r?r.sendRequest(e,n):new Promise((i=>i({statusCode:0,error:new Error(sm)})))}Vl(e,n){if(this.us)return{surveys:[],context:{isLoaded:!1,error:sm}};var r=n.statusCode;if(r!==200||!n.json){var i="Surveys API could not be loaded, status: "+r;return r!==0?Cn.error(i):n.error||Cn.warn(i),this.Dl=Date.now(),{surveys:[],context:{isLoaded:!1,error:i}}}this.Dl=null;var s,a=n.json.surveys||[],c=a.filter((u=>(function(h){return!(!h.start_date||h.end_date)})(u)&&(HU(u)||(function(h){var p;return!((p=h.conditions)==null||(p=p.actions)==null||(p=p.values)==null||!p.length)})(u))));return c.length>0&&((s=this._surveyEventReceiver)==null||s.register(c)),e.kv.set({[tO]:a,[eC]:Date.now()}),{surveys:a,context:{isLoaded:!0}}}zl(){return this.Gl()&&!this.Ll&&!this.Zl()}Gl(){var e,n,r=(e=(n=this.cs)!==null&&n!==void 0?n:this.ql)==null?void 0:e.kv.get(eC);return Fr(r)&&Date.now()-r>3e5}Zl(){return Fr(this.Dl)&&3e5>Date.now()-this.Dl}markSurveyAsSeen(e,n){var r,i={id:e,current_iteration:(r=n?.iteration)!==null&&r!==void 0?r:null};WU(i);try{localStorage.setItem("lastSeenSurveyDate",new Date().toISOString())}catch{}}Ul(e){for(var n of this.Ol)try{if(!e.isLoaded)return n([],e);this.getSurveys(n)}catch(r){Cn.error("Error in survey callback",r)}}getActiveMatchingSurveys(e,n){if(n===void 0&&(n=!1),!Dt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,n);Cn.warn("init was not called")}Ql(e){var n=null;return this.getSurveys((r=>{var i;n=(i=r.find((s=>s.id===e)))!==null&&i!==void 0?i:null})),n}Jl(e){if(Dt(this._surveyManager))return{eligible:!1,reason:sm};var n=typeof e=="string"?this.Ql(e):e;return n?this._surveyManager.checkSurveyEligibility(n):{eligible:!1,reason:"Survey not found"}}Kl(e){if(Dt(this._surveyManager))return{eligible:!1,reason:sm};var n=typeof e=="string"?this.Ql(e):e;return n?this._surveyManager.checkSurveyRenderability(n):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Dt(this._surveyManager))return Cn.warn("init was not called"),{visible:!1,disabledReason:sm};var n=this.Kl(e);return{visible:n.eligible,disabledReason:n.reason}}canRenderSurveyAsync(e,n){return Dt(this._surveyManager)?(Cn.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:sm})):new Promise((r=>{this.getSurveys((i=>{var s,a=(s=i.find((u=>u.id===e)))!==null&&s!==void 0?s:null;if(a){var c=this.Kl(a);r({visible:c.eligible,disabledReason:c.reason})}else r({visible:!1,disabledReason:"Survey not found"})}),n)}))}renderSurvey(e,n,r){var i;if(Dt(this._surveyManager))Cn.warn("init was not called");else{var s=typeof e=="string"?this.Ql(e):e;if(s!=null&&s.id)if(oee.includes(s.type)){var a=De?.querySelector(n);if(a)if((i=s.appearance)!=null&&i.surveyPopupDelaySeconds){Cn.info("Rendering survey "+s.id+" with delay of "+s.appearance.surveyPopupDelaySeconds+" seconds");var c=setTimeout((()=>{var u,h;this.$l.delete(c),this.us||(Cn.info("Rendering survey "+s.id+" with delay of "+((u=s.appearance)==null?void 0:u.surveyPopupDelaySeconds)+" seconds"),(h=this._surveyManager)==null||h.renderSurvey(s,a,r),Cn.info("Survey "+s.id+" rendered"))}),1e3*s.appearance.surveyPopupDelaySeconds);this.$l.add(c)}else this._surveyManager.renderSurvey(s,a,r);else Cn.warn("Survey element not found")}else Cn.warn("Surveys of type "+s.type+" cannot be rendered in the app");else Cn.warn("Survey not found")}}displaySurvey(e,n){var r;if(Dt(this._surveyManager))Cn.warn("init was not called");else{var i=this.Ql(e);if(i){var s=i;if((r=i.appearance)!=null&&r.surveyPopupDelaySeconds&&n.ignoreDelay&&(s=Ae({},i,{appearance:Ae({},i.appearance,{surveyPopupDelaySeconds:0})}
11)),n.displayType!==hO.Popover&&n.initialResponses&&Cn.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),n.ignoreConditions===!1){var a=this.Jl(i);if(!a.eligible)return void Cn.warn("Survey is not eligible to be displayed: ",a.reason)}n.displayType!==hO.Inline?this._surveyManager.handlePopoverSurvey(s,n):this.renderSurvey(s,n.selector,n.properties)}else Cn.warn("Survey not found")}}cancelPendingSurvey(e){Dt(this._surveyManager)?Cn.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload==null||e.handlePageUnload()}}function om(t,e,n){if(Dt(t))return!1;switch(n){case"exact":return t===e;case"contains":var r=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(r,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch{return!1}default:return!1}}class Aee{constructor(e){this.Yl=new Set,this.Xl=new Set,this.tu=new uC,this.eu=(n,r)=>this.iu(n,r)&&this.ru(n,r)&&this.nu(n,r)&&this.su(n,r),this.iu=(n,r)=>r==null||!r.event||n?.event===r?.event,this._instance=e}init(){var e,n;Pe((e=this._instance)==null?void 0:e._addCaptureHook)||(this.au=(n=this._instance)==null?void 0:n._addCaptureHook(((r,i)=>{this.on(r,i)})))}dispose(){var e;(e=this.au)==null||e.call(this),this.au=void 0,this.tu=new uC}register(e){var n,r;if(!Pe((n=this._instance)==null?void 0:n._addCaptureHook)&&(e.forEach((s=>{var a;this.Yl.add(s),(a=s.steps)==null||a.forEach((c=>{this.Xl.add(c?.event||"")}))})),(r=this._instance)!=null&&r.autocapture)){var i=new Set;this.Yl.forEach((s=>{var a;(a=s.steps)==null||a.forEach((c=>{c!=null&&c.selector&&i.add(c.selector)}))})),this._instance.autocapture.setElementSelectors(i)}}replace(e){this.Yl.clear(),this.Xl.clear(),this.register(e)}on(e,n){n!=null&&e.length!=0&&(this.Xl.has(e)||this.Xl.has(n.event))&&this.Yl.forEach((r=>{this.ou(n,r)&&this.tu.emit("actionCaptured",r.name)}))}lu(e){this.onAction("actionCaptured",(n=>e(n)))}ou(e,n){if(n?.steps==null)return!1;for(var r of n.steps)if(this.eu(e,r))return!0;return!1}onAction(e,n){return this.tu.on(e,n)}ru(e,n){if(n!=null&&n.url){var r,i=e==null||(r=e.properties)==null?void 0:r.$current_url;if(!i||typeof i!="string"||!om(i,n.url,n.url_matching||"contains"))return!1}return!0}nu(e,n){return!!this.uu(e,n)&&!!this.hu(e,n)&&!!this.du(e,n)}uu(e,n){var r;if(n==null||!n.href)return!0;var i=this.vu(e);if(i.length>0)return i.some((c=>om(c.href,n.href,n.href_matching||"exact")));var s,a=(e==null||(r=e.properties)==null?void 0:r.$elements_chain)||"";return!!a&&om((s=a.match(/(?::|")href="(.*?)"/))?s[1]:"",n.href,n.href_matching||"exact")}hu(e,n){var r;if(n==null||!n.text)return!0;var i=this.vu(e);if(i.length>0)return i.some((h=>om(h.text,n.text,n.text_matching||"exact")||om(h.$el_text,n.text,n.text_matching||"exact")));var s,a,c,u=(e==null||(r=e.properties)==null?void 0:r.$elements_chain)||"";return!!u&&(s=(function(h){for(var p,v=[],y=/(?::|")text="(.*?)"/g;!Dt(p=y.exec(h));)v.includes(p[1])||v.push(p[1]);return v})(u),a=n.text,c=n.text_matching||"exact",s.some((h=>om(h,a,c))))}du(e,n){var r,i;if(n==null||!n.selector)return!0;var s=e==null||(r=e.properties)==null?void 0:r.$element_selectors;if(s!=null&&s.includes(n.selector))return!0;var a=(e==null||(i=e.properties)==null?void 0:i.$elements_chain)||"";if(n.selector_regex&&a)try{return new RegExp(n.selector_regex).test(a)}catch{return!1}return!1}vu(e){var n;return(e==null||(n=e.properties)==null?void 0:n.$elements)==null?[]:e?.properties.$elements}su(e,n){return n==null||!n.properties||n.properties.length===0||VU(n.properties.reduce(((r,i)=>{var s=Ct(i.value)?i.value.map(String):i.value!=null?[String(i.value)]:[];return r[i.key]={values:s,operator:i.operator||"exact"},r}),{}),e?.properties)}}class Oee{constructor(e){var n;this.cu=[],this._instance=e,this.fu=new Map,this.pu=new Map,this.gu=new Map,this.mu=(n=this._instance)==null||n.onSessionId==null?void 0:n.onSessionId((r=>this.yu(r)))}bu(e){return!1}_u(){return null}wu(e){}ku(){}Su(e,n){return!!e&&VU(e.propertyFilters,n?.properties)}xu(e,n){var r=new Map;return e.forEach((i=>{var s;(s=i.conditions)==null||(s=s[n])==null||(s=s.values)==null||s.forEac
11h((a=>{if(a!=null&&a.name){var c=r.get(a.name)||[];c.push(i.id),r.set(a.name,c)}}))})),r}Cu(e,n,r){var i=(r===e_.Activation?this.fu:this.pu).get(e),s=[];return this.Tu((a=>{s=a.filter((c=>i?.includes(c.id)))})),s.filter((a=>{var c,u=(c=a.conditions)==null||(c=c[r])==null||(c=c.values)==null?void 0:c.find((h=>h.name===e));return this.Su(u,n)}))}register(e){this.Mu(e,!1)}replace(e){this.Mu(e,!0)}Mu(e,n){var r;Pe((r=this._instance)==null?void 0:r._addCaptureHook)||(this.Eu(e,n),this.Iu(e,n))}Iu(e,n){var r=e.filter((a=>{var c;return(c=a.conditions)==null||(c=c.actions)==null||(c=c.values)==null?void 0:c.length}));if(n&&this.gu.clear(),r.length!==0){this.Ru||(this.Ru=new Aee(this._instance),this.Ru.init(),this.Ru.lu((a=>this.onAction(a))));var i=[];r.forEach((a=>{var c;(c=a.conditions)==null||(c=c.actions)==null||c.values.forEach((u=>{if(i.push(u),u.name){var h,p=(h=this.gu.get(u.name))!==null&&h!==void 0?h:[];p.includes(a.id)||p.push(a.id),this.gu.set(u.name,p)}}))})),n?this.Ru.replace(i):this.Ru.register(i)}else{var s;n&&((s=this.Ru)==null||s.replace([]))}}Pu(e,n){n.forEach(((r,i)=>{var s,a=(s=e.get(i))!==null&&s!==void 0?s:[];r.forEach((c=>{a.includes(c)||a.push(c)})),e.set(i,a)}))}Eu(e,n){var r,i,s=e.filter((h=>{var p,v;return((p=h.conditions)==null?void 0:p.events)&&((v=h.conditions)==null||(v=v.events)==null||(v=v.values)==null?void 0:v.length)>0})),a=e.filter((h=>{var p,v;return((p=h.conditions)==null?void 0:p.cancelEvents)&&((v=h.conditions)==null||(v=v.cancelEvents)==null||(v=v.values)==null?void 0:v.length)>0})),c=this.xu(e,e_.Activation),u=this.xu(e,e_.Cancellation);n?(this.fu=c,this.pu=u):(this.Pu(this.fu,c),this.Pu(this.pu,u)),(s.length!==0||a.length!==0)&&((r=this.au)!==null&&r!==void 0||(this.au=(i=this._instance)==null?void 0:i._addCaptureHook(((h,p)=>{this.onEvent(h,p)}))))}onEvent(e,n){var r,i,s=this.Au(),a=(n==null||(r=n.properties)==null?void 0:r.$survey_id)||(n==null||(i=n.properties)==null?void 0:i.$product_tour_id);if(a&&this.getActivatedIds().includes(a)){var c=this.Fu(e,a);if(c==="consume")return s.info("event consumed activated item, removing it",{event:e,itemId:a}),void this.Ou([a]);if(c==="persist")return s.info("shown item promoted to persisted activation",{event:e,itemId:a}),this.Lu(a),void this.Du([a])}if(this.pu.has(e)){var u=this.Cu(e,n,e_.Cancellation);u.length>0&&(s.info("cancel event matched, cancelling items",{event:e,itemsToCancel:u.map((p=>p.id))}),this.Ou(u.map((p=>p.id))),u.forEach((p=>this.$u(p.id))))}if(this.fu.has(e)){s.info("event name matched",{event:e,eventPayload:n,items:this.fu.get(e)});var h=this.Cu(e,n,e_.Activation);this.Nu(h.map((p=>p.id)))}}onAction(e){this.gu.has(e)&&this.Nu(this.gu.get(e)||[])}Nu(e){var n;if(e.length!==0){var r=!((n=this._instance)==null||n.get_session_id==null||!n.get_session_id()),i=[];for(var s of e)r&&this.bu(s)?this.Lu(s)&&this.qu(s):i.push(s);i.length>0&&(this.cu=[...new Set([...this.cu,...i])]),this.Au().info("updating activated items",{activatedItems:this.getActivatedIds()})}}Lu(e){this.cu=this.cu.filter((r=>r!==e));var n=this.ju();return!n.includes(e)&&(this.Bu([...n,e]),this.Hu(),!0)}Ou(e){var n=new Set(e);this.cu=this.cu.filter((s=>!n.has(s)));var r=this.Uu(),i=r.filter((s=>!n.has(s)));i.length!==r.length&&(this.Bu(i),i.length===0&&this.zu()),this.Du(e)}Wu(){var e,n=this._u();if(!n)return{};var r=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[n];return r&&typeof r=="object"?r:{}}qu(e){if(this._u()){var n=this.Wu();this.wu(Ae({},n,{[e]:Date.now()}))}}Du(e){if(this._u()){var n=this.Wu(),r={},i=!1;for(var s of Object.entries(n)){var a=s[0],c=s[1];e.includes(a)?i=!0:r[a]=c}i&&(dl(r)?this.ku():this.wu(r))}}Vu(){this._u()&&this.ku()}getActivationTimestamp(e){if(this.ju().includes(e)){var n=this.Wu()[e];return Fr(n)?n:void 0}}Uu(){var e,n=this.Gu();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[n])||[]}ju(){var e,n,r=this.Uu();if(r.length===0)return[];var i=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[this.Zu()],s=(n=this._instance)==null||n.get_session_id==null?void 0:n.get_session_id();return s&&i===s?r:[]}Hu(){var e,n=(e=this._instance)==null||e.get_session_id==null?void 0:e.get_session_id();n&&this.Qu(n)}zu(){this.Ju()}yu(e){var n,r=(n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[this.Zu()];if(r&&r!==e){var i=this.Uu(),s=this.Wu();i.length>0&&(this.Bu([]),i.filter((a=>
11Fr(s[a]))).forEach((a=>this.$u(a)))),this.zu(),this.Vu()}}getActivatedIds(){return[...new Set([...this.ju(),...this.cu])].filter((e=>!this.Ku(e)))}dispose(){var e,n,r;(e=this.mu)==null||e.call(this),this.mu=void 0,(n=this.au)==null||n.call(this),this.au=void 0,(r=this.Ru)==null||r.dispose(),this.Ru=void 0}reset(){this.cu=[],this.Uu().length>0&&this.Bu([]),this.zu(),this.Vu()}getEventToItemsMap(){return this.fu}Yu(){return this.Ru}}class Iee extends Oee{constructor(e){super(e)}Gu(){return nO}Zu(){return Bw}_u(){return jw}wu(e){var n;(n=this._instance)==null||(n=n.persistence)==null||n.register({[jw]:e})}ku(){var e;(e=this._instance)==null||(e=e.persistence)==null||e.unregister(jw)}bu(e){var n,r;this.Tu((s=>{r=s.find((a=>a.id===e))}));var i=(n=r)==null||(n=n.appearance)==null?void 0:n.surveyPopupDelaySeconds;return Fr(i)&&i>0}Xu(){return Su.SHOWN}Tu(e){var n;(n=this._instance)==null||n.getSurveys(e)}$u(e){var n;(n=this._instance)==null||n.cancelPendingSurvey(e)}Au(){return Cn}Bu(e){var n;(n=this._instance)==null||(n=n.persistence)==null||n.register({[nO]:e})}Qu(e){var n;(n=this._instance)==null||(n=n.persistence)==null||n.register({[Bw]:e})}Ju(){var e;(e=this._instance)==null||(e=e.persistence)==null||e.unregister(Bw)}Ku(){return!1}Fu(e,n){var r;this.Tu((s=>{r=s.find((a=>a.id===n))}));var i=!r||(function(s){var a;return HU(s)&&!((a=s.conditions)==null||(a=a.events)==null||!a.repeatedActivation)||s.schedule==="always"})(r);return i?e===Su.SHOWN?"consume":"ignore":e===Su.SHOWN?"persist":e===Su.DISMISSED||e===Su.SENT?"consume":"ignore"}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}class Pee{constructor(e){this._instance=e}initialize(){}get(e){if(typeof e=="string")return this._instance.get_property(e);var n={};for(var r of e){var i=this._instance.get_property(r);Pe(i)||(n[r]=i)}return n}set(e,n){this._instance.register(typeof e=="string"?{[e]:n}:e)}remove(e){typeof e!="string"?e.forEach((n=>this._instance.unregister(n))):this._instance.unregister(e)}}class Lee{constructor(e){this._instance=e}get(){var e=this._instance.config;return{disableSurveys:e.disable_surveys,cookielessMode:!!e.cookieless_mode,advancedEnableSurveys:e.advanced_enable_surveys,requestTimeoutMs:e.surveys_request_timeout_ms}}isOptedOut(){return this._instance.consent.isOptedOut()}getExtensions(){var e=st?.__PosthogExtensions__;if(e){var n=e.generateSurveys,r=e.loadExternalDependency;return{generateSurveys:n?i=>n(this._instance,i):void 0,loadExternalDependency:r?i=>r(this._instance,"surveys",i):void 0}}}createEventReceiver(){return new Iee(this._instance)}}var kee=ye!=null&&ye.location?aC(ye.location.hash,"__posthog")||aC(location.hash,"state"):null,gM="_postHogToolbarParams",mM=gr("[Toolbar]"),vM=gr("[FeatureFlags]");class Mee{constructor(e,n){n===void 0&&(n=!1),this.th=!1,this.update(e,n)}update(e,n){this.eh=((r,i)=>{var s,a,c,u,h;return{bootstrap:{featureFlags:(s=r.bootstrap)==null?void 0:s.featureFlags,featureFlagPayloads:(a=r.bootstrap)==null?void 0:a.featureFlagPayloads},remoteRequestsDisabled:i,featureFlagsDisabled:!!r.advanced_disable_feature_flags,onlyEvaluateSurveyFeatureFlags:!!r.advanced_only_evaluate_survey_feature_flags,deduplicateCallsPerSession:!!r.advanced_feature_flags_dedup_per_session,cacheTtlMs:r.feature_flag_cache_ttl_ms,refreshIntervalMs:(c=r.remote_config_refresh_interval_ms)!==null&&c!==void 0?c:3e5,requestTimeoutMs:r.feature_flag_request_timeout_ms,compression:r.disable_compression?void 0:"best-available",evaluationContexts:(u=(h=r.evaluation_contexts)!==null&&h!==void 0?h:r.evaluation_environments)!==null&&u!==void 0?u:[],flagKeys:Ct(r.flag_keys)?r.flag_keys:void 0}})(e,n),!e.evaluation_environments||e.evaluation_contexts||this.th||(vM.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.th=!0),Pe(e.flag_keys)||Ct(e.flag_keys)||vM.error("Invalid flag_keys found:",e.flag_keys,"Expected array of non-empty strings")}get(){return this.eh}}var yM=gr("[FeatureFlags]"),Th=gr("[FeatureFlags]",{debugEnabled:!0}),iR=`" failed. Feature flags didn't load in time.`,_M="connection_error",bM=t=>{for(var e={},n=0;t.length>n;n++)e[t[n]]=!0;return e},EM=t=>{var e={};for(var n of Hw(t||{})){var r=n[1];r&&(e[n[0]]=r)}return e},sl=gr("[Error tracking]"),Dee=["chrome-extension://","moz-extension://","safari-extension:","safari-web-extension:"],Nee=["__firefox__","__gCrWeb"],SM="Refusing to render web experiment since the viewer is a likely bot",$ee={icontains:(t,e)=>e.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,e)=>e.toLowerCase().indexOf(t.toLowerCase())===-1,regex:(t,e)=>dC(e,t),not_regex:(t,e)=>!dC(e,t),exact:(t,e)=>e===t,is_not:(t,e)=>e!==t};class _s{get zi(){return this._instance.config}constructor(e){var n=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(r){r===void 0&&(r=!1),n.getWebExperiments((i=>{_s.ih("retrieved web experiments from the server"),n.rh=new Map,i.forEac
11h((s=>{if(s.feature_flag_key){var a;n.rh&&(_s.ih("setting flag key ",s.feature_flag_key," to web experiment ",s),(a=n.rh)==null||a.set(s.feature_flag_key,s));var c=n._instance.getFeatureFlag(s.feature_flag_key);hn(c)&&s.variants[c]&&n.nh(s.name,c,s.variants[c].transforms)}else if(s.variants)for(var u in s.variants){var h=s.variants[u];_s.sh(h,n._instance)&&n.nh(s.name,u,h.transforms)}}))}),r)},this._instance=e,this._instance.onFeatureFlags((r=>{this.onFeatureFlags(r)}))}initialize(){}onFeatureFlags(e){if(this._is_bot())_s.ih(SM);else if(!this.zi.disable_web_experiments){if(Dt(this.rh))return this.rh=new Map,this.loadIfEnabled(),void this.previewWebExperiment();_s.ih("applying feature flags",e),e.forEach((n=>{var r;if(this.rh&&(r=this.rh)!=null&&r.has(n)){var i,s=this._instance.getFeatureFlag(n),a=(i=this.rh)==null?void 0:i.get(n);s&&a!=null&&a.variants[s]&&this.nh(a.name,s,a.variants[s].transforms)}}))}}previewWebExperiment(){var e=_s.getWindowLocation();if(e!=null&&e.search){var n=ev(e?.search,"__experiment_id"),r=ev(e?.search,"__experiment_variant");n&&r&&(_s.ih("previewing web experiments "+n+" && "+r),this.getWebExperiments((i=>{this.ah(parseInt(n),r,i)}),!1,!0))}}loadIfEnabled(){this.zi.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,n,r){if(this.zi.disable_web_experiments&&!r)return e([]);var i=this._instance.get_property("$web_experiments");if(i&&!n)return e(i);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.zi.token),method:"GET",timestampMode:"query",callback:s=>e(s.statusCode===200&&s.json&&s.json.experiments||[])})}ah(e,n,r){var i=r.filter((s=>s.id===e));i&&i.length>0&&(_s.ih("Previewing web experiment ["+i[0].name+"] with variant ["+n+"]"),this.nh(i[0].name,n,i[0].variants[n].transforms))}static sh(e,n){return!Dt(e.conditions)&&_s.oh(e,n)&&_s.lh(e)}static oh(e,n){var r;if(Dt(e.conditions)||Dt((r=e.conditions)==null?void 0:r.url))return!0;var i=_s.getWindowLocation();if(i){var s,a,c,u=sU(n,i.href);return(s=e.conditions)==null||!s.url||$ee[(a=(c=e.conditions)==null?void 0:c.urlMatchType)!==null&&a!==void 0?a:"icontains"](e.conditions.url,u)}return!1}
11static getWindowLocation(){return ye?.location}static lh(e){var n;if(Dt(e.conditions)||Dt((n=e.conditions)==null?void 0:n.utm))return!0;var r=EU();if(r.utm_source){var i,s,a,c,u,h,p,v,y=(i=e.conditions)==null||(i=i.utm)==null||!i.utm_campaign||((s=e.conditions)==null||(s=s.utm)==null?void 0:s.utm_campaign)==r.utm_campaign,E=(a=e.conditions)==null||(a=a.utm)==null||!a.utm_source||((c=e.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==r.utm_source,S=(u=e.conditions)==null||(u=u.utm)==null||!u.utm_medium||((h=e.conditions)==null||(h=h.utm)==null?void 0:h.utm_medium)==r.utm_medium,x=(p=e.conditions)==null||(p=p.utm)==null||!p.utm_term||((v=e.conditions)==null||(v=v.utm)==null?void 0:v.utm_term)==r.utm_term;return y&&S&&x&&E}return!1}static ih(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;n>i;i++)r[i-1]=arguments[i];Ue.info("[WebExperiments] "+e,r)}nh(e,n,r){this._is_bot()?_s.ih(SM):n!=="control"?r.forEach((i=>{if(i.selector){var s;_s.ih("applying transform of variant "+n+" for experiment "+e+" ",i);var a=(s=document)==null?void 0:s.querySelectorAll(i.selector);a?.forEach((c=>{var u=c;i.html&&(u.innerHTML=i.html),i.css&&u.setAttribute("style",i.css)}))}})):_s.ih("Control variants leave the page unmodified.")}_is_bot(){return Gs&&this._instance?BU(Gs,this.zi.custom_blocked_useragents):void 0}}var ya=gr("[Conversations]"),Rh="Conversations not available yet.";function wM(t,e){var n,r,i,s,a,c,u,h=(n=t?.flushIntervalMs)!==null&&n!==void 0?n:3e3,p=(r=t?.maxBufferSize)!==null&&r!==void 0?r:100,v=e!=null&&e.consoleCapture?void 0:(i=t?.maxLogsPerInterval)!==null&&i!==void 0?i:1e3,y=Pe(v)?Math.max(p,2048):Math.max(p,v),E=t?.resourceAttributes;return{serviceName:(s=(a=E?.["service.name"])!==null&&a!==void 0?a:t?.serviceName)!==null&&s!==void 0?s:e?.serviceNameDefault,serviceVersion:(c=E?.["service.version"])!==null&&c!==void 0?c:t?.serviceVersion,environment:(u=E?.["deployment.environment"])!==null&&u!==void 0?u:t?.environment,resourceAttributes:E,beforeSend:t?.beforeSend,flushIntervalMs:h,maxBufferSize:p,maxQueueSize:y,maxBatchRecordsPerPost:100,rateCapWindowMs:h,maxLogsPerInterval:v,backgroundFlushBudgetMs:0,terminationFlushBudgetMs:0}}var Fee=["debug","log","warn","error","info"],CM="console",ZU="__posthogHandledLogsRequestError",sR=(t,e)=>{var n=t instanceof Error?t:new Error(e);return n[ZU]=!0,n},xM=t=>!!t&&typeof t=="object"&&t[ZU]===!0,hx={featureFlags:class{constructor(t){this.name="featureFlags",this.uh=!1,this.featureFlagEventHandlers=[],this.I=yM,this.hh={},this.dh={},this.fh=[],this.ph=!1,this.gh=!1,this.mh=0,this.yh=!1,this.bh=!1,this._h=!1,this.wh=!1,this.kh=0,this.Et=()=>{var e=this.Sh();this.kh=0,e&&this.reloadFeatureFlags()},this.xh=()=>{var e,n=this.Ch;Pe(n)||this.zi.remoteRequestsDisabled||!De||De.visibilityState==="hidden"||Date.now()-((e=this.Th)!==null&&e!==void 0?e:0)<n||(this.reloadFeatureFlags(),this.Mh())},this.At=()=>{De?.visibilityState==="visible"&&this.xh()},"get"in t?this.hs=t:(this.Eh=new Mee(t.config,t.xa()),this.hs=this.Eh)}updateConfig(t,e){var n;(n=this.Eh)==null||n.update(t,e),this.cs&&this.Ih()}setup(t){return this.jl=t,this.I=t.logger.createLogger("[FeatureFlags]"),QU(t.kv.initialize(),(()=>{this.jl===t&&(this.jl=void 0,this.cs=t,this.Rh(t))}))}Rh(t){if(this.cs===t)return ye&&sr(ye,"online",this.Et),this.Ih(),this.Ph=t.registerDynamicEventProperties((()=>this.Ah()?this.hh:this.dh)),this.Fh(),this.initialize()}Ih(){var t=this.zi.refreshIntervalMs,e=!this.zi.remoteRequestsDisabled&&De&&!Pe(t)&&t>0?t:void 0;e!==this.Ch&&(this.Oh(),Pe(e)||(this.Ch=e,this.Mh(),De!=null&&De.addEventListener&&sr(De,Zm,this.At)))}Mh(){Pe(this.Ch)||(Pe(this.Lh)||clearInterval(this.Lh),this.Th=Date.now(),this.Lh=setInterval(this.xh,this.Ch))}Oh(){Pe(this.Lh)||(clearInterval(this.Lh),this.Lh=void 0,De==null||De.removeEventListener==null||De.removeEventListener(Zm,this.At)),this.Ch=void 0,this.Th=void 0}destroy(){this.Dh()}dispose(){this.Dh()}Dh(){var t;this.Oh(),this.mh++,this.bh=!1,this.jl=void 0,this.cs&&(this.$h(),(t=this.Ph)==null||t.dispose(),this.Ph=void 0,this.fh=[],ye?.removeEventListener("online",this.Et),this.cs=void 0)}get zi(){return this.hs.get()}Nh(t){var e;return(e=this.cs)==null?void 0:e.kv.get(t)}Ur(t){this.qh((()=>{var e;return(e=this.cs)==null?void 0:e.kv.set(t)}))}Wr(t){this.qh((()=>{var e;return(e=this.cs)==null?void 0:e.kv.remove(t)}))}qh(t){try{t()}catch(e){this.I.error("Failed to update feature flag persistence",e)}}Fh(){var t={};for(var e of[Wh,Gh,Mm,lc]){var n=this.Nh(e);Pe(n)||(t[e]=n)}this.hh=t;var r=Ae({},t),i=this.Nh(yu);if(i)for(var s of Object.entries(i))r["$feature/"+s[0]]=s[1];this.dh=r}Ah(){var t=this.zi.cacheTtlMs;
11if(!t||0>=t)return!1;var e=this.Nh(np);return typeof e!="number"||Date.now()-e>t}jh(){return!!this.Ah()&&(this.wh||this.gh||(this.wh=!0,this.I.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}Bh(){var t=this.zi.evaluationContexts;return t!=null&&t.length?t.filter((e=>{var n=e&&typeof e=="string"&&e.trim().length>0;return n||this.I.error("Invalid evaluation context found:",e,"Expected non-empty string"),n})):[]}Hh(){var t=this.zi.flagKeys;if(!Pe(t))return t.filter((e=>{var n=e&&typeof e=="string"&&e.trim().length>0;return n||this.I.error("Invalid flag key found:",e,"Expected non-empty string"),n}))}initialize(){var t,e,n=this.zi,r=(t=(e=n.bootstrap)==null?void 0:e.featureFlags)!==null&&t!==void 0?t:{};if(Object.keys(r).length){var i,s,a=(i=(s=n.bootstrap)==null?void 0:s.featureFlagPayloads)!==null&&i!==void 0?i:{},c=Object.keys(r).filter((h=>!!r[h])).reduce(((h,p)=>(h[p]=r[p]||!1,h)),{}),u=Object.keys(a).filter((h=>c[h])).reduce(((h,p)=>(h[p]=a[p],h)),{});return this.Uh({featureFlags:c,featureFlagPayloads:u})}}updateFlags(t,e,n){var r,i,s=n!=null&&n.merge&&(r=this.Nh(yu))!==null&&r!==void 0?r:{},a=n!=null&&n.merge&&(i=this.Nh(Gh))!==null&&i!==void 0?i:{},c=Ae({},s,t),u=Ae({},a,e),h={};for(var p of Object.entries(c)){var v=p[0],y=p[1];h[v]={key:v,enabled:dk(y),variant:fk(y),reason:void 0,metadata:Pe(u?.[v])?void 0:{id:0,version:void 0,description:void 0,payload:u[v]}}}this.Uh({flags:h})}get hasLoadedFlags(){return this.ph}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this.Nh(C1),e=this.Nh(lc),n=this.Nh(Lh);if(!n&&!e)return t||{};var r=Xn({},t||{}),i=[...new Set([...Object.keys(n||{}),...Object.keys(e||{})])];for(var s of i){var a,c,u=r[s],h=e?.[s],p=Pe(h)?(a=u?.enabled)!==null&&a!==void 0&&a:!!h,v=Pe(h)?u?.variant:typeof h=="string"?h:void 0,y=n?.[s],E=Ae({},u,{enabled:p,variant:p?v??u?.variant:void 0});p!==u?.enabled&&(E.original_enabled=u?.enabled),v!==u?.variant&&(E.original_variant=u?.variant),y&&(E.metadata=Ae({},u?.metadata,{payload:y,original_payload:u==null||(c=u.metadata)==null?void 0:c.payload})),r[s]=E}return this.uh||(this.I.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:n,finalDetails:r}),this.uh=!0),r}getAllFeatureFlags(){var t=this.getFlagVariants(),e=this.getFlagPayloads();return Object.keys(t).map((n=>{var r=t[n];return{key:n,enabled:dk(r),variant:fk(r),payload:uk(e[n])}}))}getFlagVariants(){var t=this.Nh(yu),e=this.Nh(lc);if(!e)return t||{};for(var n=Xn({},t||{}),r=Object.keys(e),i=0;r.length>i;i++)n[r[i]]=e[r[i]];return this.uh||(this.I.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:e,finalFlags:n}),this.uh=!0),n}getFlagPayloads(){var t=this.Nh(Gh),e=this.Nh(Lh);if(!e)return t||{};for(var n=Xn({},t||{}),r=Object.keys(e),i=0;r.length>i;i++)n[r[i]]=e[r[i]];return this.uh||(this.I.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:e,finalPayloads:n}),this.uh=!0),n}reloadFeatureFlags(){this.yh||this.zi.featureFlagsDisabled||this.Sh()||this.zh||(this.fh.slice().forEach((t=>{try{t()}catch(e){this.I.error("Error while running feature flags reloading callback",e)}})),this.zh=setTimeout((()=>{this.Wh()}),5))}$h(){clearTimeout(this.zh),this.zh=void 0}onReloading(t){return this.fh.push(t),()=>{this.fh=this.fh.filter((e=>e!==t))}}ensureFlagsLoaded(){this.ph||this.gh||this.zh||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.yh=t}resetFlagCallReported(){this.Wr(bu)}Wh(t){this.$h();var e=this.cs;if(e&&!this.zi.remoteRequestsDisabled&&!this.Sh())if(this.gh)this.bh=!0;else{var n={token:e.projectToken,distinct_id:e.distinctId,groups:e.groups,$anon_distinct_id:this.$anon_distinct_id,person_properties:Ae({},e.initialPersonProperties,this.Nh(al)||{},{$lib:e.library.name,$lib_version:e.library.version}),group_properties:this.Nh(pc),timezone:RU()};Pe(e.deviceId)||(n.$device_id=e.deviceId),(t!=null&&t.disableFlags||this.zi.featureFlagsDisabled)&&(n.disable_flags=!0);var r=this.Bh();r.length&&(n.evaluation_contexts=r);var i=this.Hh();Pe(i)||(n.flag_keys=i);var s=this.zi.onlyEvaluateSurveyFeatureFlags,a="/flags/?v=2"+(s?"&only_evaluate_survey_feature_flags=true":""),c=this.mh;this.gh=!0;var u=()=>{this.bh&&(this.bh=!1,this.Wh())},h=p=>{this.gh=!1,c===this.mh&&(this.Ur({[Dm]:[_M]}),this.I.error("Feature flag request failed",p)),u()};try{e.sendRequest(a,{target:"flags",method:"POST",body:n,compression:this.zi.compression,sentAt:"body",timeoutMs:this.zi.requestTimeoutMs}).then((p=>{var v,y,E=(v=p.json)!==null&&v!==void 0?v:{},S=p.statusCode!==200;if(this.gh=!1,c===this.mh){if(this.Vh(p.statusCode),S||this.bh||(this.$anon_distinct_id=void 0),!n.disable_flags||this.bh){this._h=!S;var x=[];p.error?x.push(p.error instanceof Error&&p.error.name==="AbortError"?"timeout":p.error instanceof Error?_M:"unknown_error"):p.statusCode!==200&&x.push("api_error_"+p.statusCode),E.errorsWhileComputingFlags&&x.push("errors_while_computing_flags");var C=!((y=E.quotaLimited)==null||!y.includes("feature_flags"));C&&x.push("quota_limited"),this.Ur({[Dm]:x}),C?this.I.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):n.disable_flags||this.Uh(E,S,{partialResponse:s}),u()}}else u()})).catch(h)}catch(p){h(p)}}}Sh(){return _U(this.kh,3)}Vh(t){this.kh=bU(t,this.kh,3,(()=>this.I.warn("Feature flag requests are failing before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped refreshing feature flags; will try again when connectivity changes.")))}getFeatureFlag(t,e){var n;if(e===void 0&&(e={}),!e.fresh||this._h)if(this.ph||this.getFlags()&&this.getFlags().length>0){if(!this.jh()){var r=this.getFeatureFlagResult(t,e);return(n=r?.variant)!==null&&n!==void 0?n:r?.enabled}}else this.I.warn('getFeatureFlag for key "'+t+iR)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){var e=this.getFeatureFlagResult(t,{send_event:!1});return e?.payload}getFeatureFlagResult(t,e){if(e===void 0&&(e={}),!e.fresh||this._h)if(this.ph||this.getFlags()&&this.getFlags().length>0){if(!this.jh()){var n,r=this.getFlagVariants(),i=t in r,s=r[t],a=this.getFlagPayloads()[t],c=String(s),u=this.Nh(Mm)||void 0,h=this.Nh(np)||void 0,p=this.Nh(bu)||{};if(this.zi.deduplicateCallsPerSession){var v,y=(v=this.cs)==null?void 0:v.session.sessionId,E=this.Nh(L_);y&&y!==E&&(p={},n=y)}if(e.send_event||!("send_event"in e))if(t in p&&p[t].includes(c))n&&this.Ur({[bu]:p,[L_]:n});else{var S,x,C,R,A,O,P,L,D,N,k,U;Ct(p[t])?p[t].push(c):p[t]=[c],this.Ur(Ae({[bu]:p},n?{[L_]:n}:{}));var F=this.getFeatureFlagDetails(t),V=[...(S=this.Nh(Dm))!==null&&S!==void 0?S:[]];Pe(s)&&V.push("flag_missing");var G={$feature_flag:t,$feature_flag_response:s,$feature_flag_payload:a??null,$feature_flag_request_id:u,$feature_flag_evaluated_at:h,$feature_flag_bootstrapped_response:(x=(C=this.zi.bootstrap)==null||(C=C.featureFlags)==null?void 0:C[t])!==null&&x!==void 0?x:null,$feature_flag_bootstrapped_payload:(R=(A=this.zi.bootstrap)==null||(A=A.featureFlagPayloads)==null?void 0:A[t])!==null&&R!==void 0?R:null,$used_bootstrap_value:!this._h};Pe(F==null||(O=F.metadata)==null?void 0:O.has_experiment)||(G.$feature_flag_has_experiment=F.metadata.has_experiment),Pe(F==null||(P=F.metadata)==null?void 0:P.version)||(G.$feature_flag_version=F.metadata.version);var Z,K=(L=F==null||(D=F.reason)==null?void 0:D.description)!==null&&L!==void 0?L:F==null||(N=F.reason)==null?void 0:N.co
11de;K&&(G.$feature_flag_reason=K),F!=null&&(k=F.metadata)!=null&&k.id&&(G.$feature_flag_id=F.metadata.id),Pe(F?.original_variant)&&Pe(F?.original_enabled)||(G.$feature_flag_original_response=Pe(F.original_variant)?F.original_enabled:F.original_variant),F!=null&&(U=F.metadata)!=null&&U.original_payload&&(G.$feature_flag_original_payload=F==null||(Z=F.metadata)==null?void 0:Z.original_payload),V.length&&(G.$feature_flag_error=V.join(",")),this.Gh(G)}else n&&this.Ur({[bu]:p,[L_]:n});if(i)return{key:t,enabled:!!s,variant:typeof s=="string"?s:void 0,payload:uk(a)}}}else this.I.warn('getFeatureFlagResult for key "'+t+iR)}Gh(t){try{var e;(e=this.cs)==null||e.capture("$feature_flag_called",t).catch((n=>{this.I.error("Failed to capture feature flag call",n)}))}catch(n){this.I.error("Failed to capture feature flag call",n)}}getRemoteConfigPayload(t,e){this.Zh(t,e)}Zh(t,e){var n=this;return rr((function*(){var r=n.cs;if(r){var i={distinct_id:r.distinctId,token:r.projectToken,person_properties:{$lib:r.library.name,$lib_version:r.library.version}},s=n.Bh();s.length&&(i.evaluation_contexts=s);var a,c=n.Hh();Pe(c)||(i.flag_keys=c);try{var u,h=(u=(yield r.sendRequest("/flags/?v=2",{target:"flags",method:"POST",body:i,compression:n.zi.compression,sentAt:"body",timeoutMs:n.zi.requestTimeoutMs})).json)==null?void 0:u.featureFlagPayloads;a=h?.[t]||void 0}catch(p){return void n.I.error("Remote config feature flag request failed",p)}try{e(a)}catch(p){n.I.error("Remote config feature flag callback failed",p)}}}))()}isFeatureEnabled(t,e){if(e===void 0&&(e={}),e.fresh&&!this._h)return e.defaultValue;if(!(this.ph||this.getFlags()&&this.getFlags().length>0))return this.I.warn('isFeatureEnabled for key "'+t+iR),e.defaultValue;var n=this.getFeatureFlag(t,e);return Pe(n)?e.defaultValue:!!n}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((e=>e!==t))}receivedFeatureFlags(t,e,n){this.Uh(t,e,n)}Uh(t,e,n){if(this.cs){this.ph=!0;var r=(function(i,s,a,c,u,h){s===void 0&&(s={}),a===void 0&&(a={}),c===void 0&&(c={}),h===void 0&&(h=yM);var p=((D,N)=>{var k=D.flags;return k?Ae({},D,{featureFlags:Object.fromEntries(Object.keys(k).map((U=>{var F;return[U,(F=k[U].variant)!==null&&F!==void 0?F:k[U].enabled]}))),featureFlagPayloads:Object.fromEntries(Object.keys(k).filter((U=>k[U].enabled)).filter((U=>{var F;return(F=k[U].metadata)==null?void 0:F.payload})).map((U=>{var F;return[U,(F=k[U].metadata)==null?void 0:F.payload]})))}):(D.featureFlags&&N.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),D)})(i,h),v=p.flags,y=p.featureFlags,E=p.featureFlagPayloads;if(y){var S=i.requestId,x=i.evaluatedAt;if(Ct(y)){h.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var C={};if(y)for(var R=0;y.length>R;R++)C[y[R]]=!0;return{[Wh]:y,[yu]:C,[J2]:!1}}var A=y,O=E,P=v;if(u!=null&&u.partialResponse)A=Ae({},s,A),O=Ae({},a,O),P=Ae({},c,P);else if(i.errorsWhileComputingFlags)if(v){var L=new Set(Object.keys(v).filter((D=>{var N;return!((N=v[D])!=null&&N.failed)})));A=Ae({},s,Object.fromEntries(Object.entries(A).filter((D=>L.has(D[0]))))),O=Ae({},a,Object.fromEntries(Object.entries(O||{}).filter((D=>L.has(D[0]))))),P=Ae({},c,Object.fromEntries(Object.entries(P||{}).filter((D=>L.has(D[0])))))}else A=Ae({},s,A),O=Ae({},a,O),P=Ae({},c,P);return Ae({[Wh]:Object.keys(EM(A)),[yu]:A||{},[Gh]:O||{},[C1]:P||{},[J2]:i.minimalFlagCalledEvents===!0},S?{[Mm]:S}:{},x?{[np]:x}:{})}})(t,this.getFlagVariants(),this.getFlagPayloads(),this.getFlagsWithDetails(),n,this.I);r&&this.Ur(r),e||(this.wh=!1),this.Qh(e)}}override(t,e){e===void 0&&(e=!1),this.I.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:e})}overrideFeatureFlags(t){this.Jh(t)}Jh(t){if(this.cs){if(t===!1)return this.Wr([lc,Lh]),this.Qh(),void Th.info("All overrides cleared");if(Ct(t))return this.Ur({[lc]:bM(t)}),this.Qh(),void Th.info("Flag overrides set",{flags:t});if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var e,n=t;this.uh=!!((e=n.suppressWarning)!==null&&e!==void 0&&e);var r={},i=n.flags,s=n.payloads;return i&&(r[lc]=Ct(i)?bM(i):i),s&&(r[Lh]=s),Object.keys(r).length&&this.Ur(r),i===!1&&s===!1?this.Wr([lc,Lh]):i===!1?this.Wr(lc):s===!1&&this.Wr(Lh),this.Qh(),i===!1?Th.info("Flag overrides cleared"):i&&Th.info("Flag overrides set",{flags:i}),void(s===!1?Th.info("Payload overrides cleared"):s&&Th.info("Payload overrides set",{payloads:s}))}if(t&&typeof t=="object")return this.Ur({[lc]:t}),this.Qh(),void Th.info("Flag overrides set",{flags:t});this.I.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:t})}else this.I.warn("posthog.featureFlags.overrideFeatureFlags called before feature flags were ready")}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.ph){var e=this.Kh(),n=e.flags,r=e.flagVariants;try{t(n,r)}catch(i){this.I.error("Error while running feature flags callback",i)}}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,e,n){var r=(this.Nh(Uw)||[]).find((u=>u.flagKey===t)),i={["$feature_enrollment/"+t]:e},s={$feature_flag:t,$feature_enrollment:e,$set:i};r&&(s.$early_access_feature_name=r.name),n&&(s.$feature_enrollment_stage=n);var a=Ae({},this.getFlagVariants(),{[t]:e});this.Ur({[Wh]:Object.keys(EM(a)),[yu]:a,[al]:Ae({},this.Nh(al)||{},i)}),this.Qh();try{var c;(c=this.cs)==null||c.capture("$feature_enrollment_update",s).catch((u=>{this.I.error("Failed to capture early access feature enrollment",u)}))}catch(u){this.I.error("Failed to capture early access feature enrollment",u)}}getEarlyAccessFeatures(t,e,n){e===void 0&&(e=!1);var r=this.Nh(Uw);!r||e?this.Yh(t,n):t(r)}Yh(t,e){var n=this;return rr((function*(){var r=n.cs;if(r){var i,s=e?"&"+e.map((c=>"stage="+c)).join("&"):"";try{var a=yield r.sendRequest("/api/early_access_features/?token="+r.projectToken+s,{target:"api",method:"GET",sentAt:"query"});if(!a.json)return;n.Ur({[Uw]:i=a.json.earlyAccessFeatures})}catch(c){return void n.I.error("Early access feature request failed",c)}try{t(i)}catch(c){n.I.error("Early access feature callback failed",c)}}}))()}Kh(){var t=this.getFlags(),e=this.getFlagVariants();return{flags:t.filter((n=>e[n])),flagVariants:Object.keys(e).filter((n=>e[n])).reduce(((n,r)=>(n[r]=e[r],n)),{})}}Qh(t){this.Fh();var e=this.Kh(),n=e.flags,r=e.flagVariants;
11this.featureFlagEventHandlers.forEach((i=>{try{i(n,r,{errorsLoading:t})}catch(s){this.I.error("Error while running feature flags callback",s)}}))}setPersonPropertiesForFlags(t,e){e===void 0&&(e=!0),this.Xh(t,e)}Xh(t,e){e===void 0&&(e=!0);var n=this.Nh(al)||{},r=t?.$set||(t!=null&&t.$set_once?{}:t),i=t?.$set_once,s={};if(i)for(var a in i)({}).hasOwnProperty.call(i,a)&&(a in n||(s[a]=i[a]));this.Ur({[al]:Ae({},n,s,r)}),e&&this.reloadFeatureFlags()}unsetPersonPropertiesForFlags(t,e){e===void 0&&(e=!0);var n=Ae({},this.Nh(al)||{});t.forEach((r=>{delete n[r]})),this.Ur({[al]:n}),e&&this.reloadFeatureFlags()}resetPersonPropertiesForFlags(t){t===void 0&&(t=!0),this.Wr(al),t&&this.reloadFeatureFlags()}setGroupPropertiesForFlags(t,e){e===void 0&&(e=!0);var n=this.Nh(pc)||{},r=Ae({},n);for(var i of Object.keys(t))r[i]=Ae({},n[i],t[i]);this.Ur({[pc]:r}),e&&this.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var e=this.Nh(pc)||{};this.Ur({[pc]:Ae({},e,{[t]:{}})})}else this.Wr(pc)}reset(){this.mh++,this.bh=!1,this.hh={},this.dh={},this.ph=!1,this.yh=!1,this._h=!1,this.$anon_distinct_id=void 0,this.$h(),this.uh=!1,this.kh=0}}},Uee={sessionRecording:class{get zi(){return this._instance.config}get Ja(){return this._instance.persistence}get started(){var t;return!((t=this.td)==null||!t.isStarted)}get status(){var t,e;return this.ed===s_||this.ed===ew?this.ed:(t=(e=this.td)==null?void 0:e.status)!==null&&t!==void 0?t:this.ed}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.ed=dM,this.rd=void 0,this.nd=!1,this.St=(()=>{var e;if(De==null||!De.visibilityState||De.visibilityState==="visible")return!0;var n=ye==null||(e=ye.performance)==null||e.getEntriesByType==null?void 0:e.getEntriesByType("visibility-state");return!(n!=null&&n.length)||n.some((r=>r.name==="visible"))})(),this.At=()=>{var e;De?.visibilityState==="visible"&&(this.St=!0,(e=this.td)==null||e.setDocumentWasEverVisible==null||e.setDocumentWasEverVisible(!0))},this._instance=t,!this._instance.sessionManager)throw su.error("started without valid sessionManager"),new Error(bO+" started without valid sessionManager. This is a bug.");if(this.zi.cookieless_mode===Eu)throw new Error(bO+' cannot be used with cookieless_mode="always"');De!=null&&De.addEventListener&&sr(De,"visibilitychange",this.At)}initialize(){this.startIfEnabledOrStop()}dispose(){this.nd=!0,De==null||De.removeEventListener==null||De.removeEventListener("visibilitychange",this.At),this.stopRecording()}get sd(){var t,e=!((t=this._instance.get_property(qh))==null||!t.enabled),n=!this.zi.disable_session_recording,r=this.zi.disable_session_recording||this._instance.consent.isOptedOut();return ye&&e&&n&&!r}startIfEnabledOrStop(t){var e;if(!(this.nd||this.sd&&(e=this.td)!=null&&e.isStarted)){var n=!Pe(Object.assign)&&!Pe(Array.from);this.sd&&n?(this.ad(t),su.info("starting")):(this.ed=dM,this.stopRecording())}}ad(t){var e,n,r;this.sd&&(this.ed!==s_&&this.ed!==ew&&(this.ed=fM),st!=null&&(e=st.__PosthogExtensions__)!=null&&(e=e.rrweb)!=null&&e.record&&(n=st.__PosthogExtensions__)!=null&&n.initSessionRecording?this.od(t):(r=st.__PosthogExtensions__)==null||r.loadExternalDependency==null||r.loadExternalDependency(this._instance,this.ld,(i=>{if(i)return this._instance.register_for_session({[aO]:!0}),su.error("could not load recorder",i);this.od(t)})))}stopRecording(){var t,e;(t=this.rd)==null||t.call(this),this.rd=void 0,(e=this.td)==null||e.stop()}ud(){var t,e;(t=this.rd)==null||t.call(this),this.rd=void 0,(e=this.td)==null||e.discard()}hd(){var t,e;(t=this.Ja)==null||t.unregister(_4),(e=this.Ja)==null||e.unregister(GF)}dd(t,e){if(Dt(t))return null;var n,r=Fr(t)?t:parseFloat(t);return typeof(n=r)!="number"||!Number.isFinite(n)||0>n||n>1?(su.warn(e+" must be between 0 and 1. Ignoring invalid value:",t),null):r}vd(t){if(this.Ja){var e,n,r=this.Ja,i=()=>{var s,a=t.sessionRecording===!1?void 0:t.sessionRecording,c=this.dd((s=this.zi.session_recording)==null?void 0:s.sampleRate,"session_recording.sampleRate"),u=this.dd(a?.sampleRate,"remote config sampleRate"),h=c??u;Dt(h)&&this.hd();var p=a?.minimumDurationMilliseconds;r.register({[qh]:Ae({cache_timestamp:Date.now(),enabled:!!a},a,{networkPayloadCapture:Ae({capturePerformance:t.capturePerformance},a?.networkPayloadCapture),canvasRecording:{enabled:a?.recordCanvas,fps:a?.canvasFps,quality:a?.canvasQuality},sampleRate:h,minimumDurationMilliseconds:Pe(p)?null:p,endpoint:a?.endpoint,triggerMatchType:a?.triggerMatchType,masking:a?.masking,urlTriggers:a?.urlTriggers,version:a?.version,triggerGroups:a?.triggerGroups})})};i(),(e=this.rd)==null||e.call(this),this.rd=(n=this._instance.sessionManager)==null?void 0:n.onSessionId(i)}}onRemoteConfig(t){var e=t.ok?t.config:void 0;return e&&"sessionRecording"in e?e.sessionRecording===!1?(this.vd(e),void this.ud()):(this.vd(e),void this.startIfEnabledOrStop()):(this.ed===s_&&(this.ed=ew,su.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(t,e){var n;e===void 0&&(e="log"),(n=this.td)!=null&&n.log?this.td.log(t,e):su.w
11arn("log called before recorder was ready")}get ld(){var t,e,n=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(qh);return(n==null||(e=n.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}fd(){var t,e=this._instance.get_property(qh);if(!e)return!1;try{t=typeof e=="object"?e:JSON.parse(e)}catch(n){return su.warn("persisted remote config for session recording is invalid and will be ignored",n),!1}return!Dt(t.cache_timestamp)&&36e5>=Date.now()-t.cache_timestamp}od(t){var e,n,r;if(!this.nd){if((e=st.__PosthogExtensions__)==null||!e.initSessionRecording)return su.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[aO]:!0});var i;if(this.td||(this.td=(i=st.__PosthogExtensions__)==null?void 0:i.initSessionRecording(this._instance,this.St),this.td._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.fd())return this.ed===ew||this.ed===s_?void 0:(this.ed=s_,su.info("persisted remote config is stale, requesting fresh config before starting"),void new AU(this._instance).load());this.ed=fM,(n=(r=this.td).setDocumentWasEverVisible)==null||n.call(r,this.St),this.td.start(t)}}onRRwebEmit(t){var e;(e=this.td)==null||e.onRRwebEmit==null||e.onRRwebEmit(t)}overrideLinkedFlag(){var t,e;this.td||(e=this.Ja)==null||e.register({[YF]:!0}),(t=this.td)==null||t.overrideLinkedFlag()}overrideSampling(){var t,e;this.td||(e=this.Ja)==null||e.register({[KF]:!0}),(t=this.td)==null||t.overrideSampling()}overrideTrigger(t){var e,n;this.td||(n=this.Ja)==null||n.register({[t==="url"?XF:QF]:!0}),(e=this.td)==null||e.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.td)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,e){var n;return!((n=this.td)==null||!n.tryAddCustomEvent(t,e))}}},Bee={autocapture:class extends bee{constructor(t){super(new Eee(t)),this.instance=t}},historyAutocapture:class{constructor(t){this._instance=t,this.pd=this.gd()}initialize(){this.startIfEnabled()}get isEnabled(){var t=this.md();return!!(t.path||t.search||this.yd(t))}startIfEnabled(){this.isEnabled&&(Ue.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}startIfEnabledOrStop(){this.stop(),this.pd=this.gd(),this.startIfEnabled()}stop(){this.bd&&this.bd(),this.bd=void 0,this._d&&this._d(),this._d=void 0,Ue.info("History API monitoring stopped")}monitorHistoryChanges(){ye&&ye.history&&(this.wd("pushState"),this.wd("replaceState"),this.kd(),this.yd()&&this.Sd())}wd(t){var e;if(ye&&((e=ye.history[t])==null||!e.__posthog_wrapped__)){var n=this;XU(ye.history,t,(r=>function(i,s,a){r.call(this,i,s,a),n.xd(t)}))}}gd(){var t=ye?.location;if(t!=null&&t.pathname)return{pathname:t.pathname,search:t.search,hash:t.hash}}md(){var t=this._instance.config.capture_pageview;return t==="history_change"?{path:!0}:Yn(t)?t:{}}yd(t){return t===void 0&&(t=this.md()),!!t.hash&&!this._instance.config.disable_capture_url_hashes}Cd(t){var e=this.md(),n=this.pd;return!(!n||!(e.path&&t.pathname!==n.pathname||e.search&&t.search!==n.search||this.yd(e)&&t.hash!==n.hash))}xd(t){try{var e=this.gd();if(!e)return;this.Cd(e)&&this._instance.capture(ym,{navigation_type:t}),this.pd=e}catch(n){Ue.error("Error capturing "+t+" pageview",n)}}kd(){if(!this.bd){var t=()=>{this.xd("popstate")};sr(ye,"popstate",t),this.bd=()=>{ye&&ye.removeEventListener("popstate",t)}}}Sd(){if(!this._d){var t=()=>{this.xd("hashchange")};sr(ye,"hashchange",t),this._d=()=>{ye&&ye.removeEventListener("hashchange",t)}}}},heatmaps:class{get zi(){return this.instance.config}constructor(t){var e;this.Td=!1,this.ns=!1,this.Md=null,this.instance=t,this.Td=!((e=this.instance.persistence)==null||!e.props[KA]),this.rageclicks=new YU(t.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var t=5e3;return Yn(this.zi.capture_heatmaps)&&this.zi.capture_heatmaps.flush_interval_milliseconds&&(t=this.zi.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return Dt(this.zi.capture_heatmaps)?Dt(this.zi.enable_heatmaps)?this.Td:this.zi.enable_heatmaps:this.zi.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.ns)return;xee.info("starting..."),this.Ed(),this.At()}else{var t;clearInterval((t=this.Md)!==null&&t!==void 0?t:void 0),this.Id(),this.getAndClearBuffer()}}onRemoteConfig(t){if(t.ok){var e=t.config;if("heatmaps"in e){var n=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[KA]:n}),this.Td=n,this.startIfEnabled()}}}getAndClearBuffer(){var t=this.bt;return this.bt=void 0,t}Rd(t){nR(t.originalEvent)&&this.Ei(t.originalEvent,"deadclick")}At(){this.Md&&clearInterval(this.Md),this.Md=De?.visibilityState==="visible"?setInterval(this.ja.bind(this),this.flushIntervalMilliseconds):null}Ed(){ye&&De&&(this.Pd=this.ja.bind(this),sr(ye,rC,this.Pd),this.Ad=t=>this.Ei(t||ye?.event),sr(De,"click",this.Ad,{capture:!0}),this.Fd=t=>this.Od(t||ye?.event),sr(De,"mousemove",this.Fd,{capture:!0}),this.Ld=new Hk(this.instance,LJ,this.Rd.bind(this)),this.Ld.startIfEnabledOrStop(),this.Dd=this.At.bind(this),sr(De,Zm,this.Dd),this.ns=!0)}Id(){var t;ye&&De&&(this.Pd&&ye.removeEventListener(rC,this.Pd),this.Ad&&De.removeEventListener("click",this.Ad,{capture:!0}),this.Fd&&De.removeEventListener("mousemove",this.Fd,{capture:!0}),this.Dd&&De.removeEventListener(Zm,this.Dd),clearTimeout(this.$d),(t=this.Ld)==null||t.stop(),this.ns=!1)}Nd(t,e){var n=this.instance.scrollManager.scrollY(),r=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),s=(function(a,c,u){for(var h=a;h&&hf(h)&&!Yo(h,"body");){if(h===u)return!1;var p=void 0;try{var v,y,E;p=(v=(y=(E=h.ownerDocument)==null?void 0:E.defaultView)!==null&&y!==void 0?y:ye)==null?void 0:v.getComputedStyle(h).position}catch{return!1}if(Rt(c,p))return!0;h=dU(h)}return!1})(uO(t),["fixed","sticky"],i);return{x:t.clientX+(s?0:r),y:t.clientY+(s?0:n),target_fixed:s,type:e}}Ei(t,e){var n;if(e===void 0&&(e="click"),!Lk(t.target)&&nR(t)){var r=this.Nd(t,e);(n=this.rageclicks)!=null&&n.isRageClick(t.clientX,t.clientY,new Date().getTime())&&hU(uO(t),this.instance.config.rageclick)&&this.Vn(Ae({},r,{type:"rageclick"})),this.Vn(r)}
11}Od(t){!Lk(t.target)&&nR(t)&&(clearTimeout(this.$d),this.$d=setTimeout((()=>{this.Vn(this.Nd(t,"mousemove"))}),500))}Vn(t){if(ye){var e=this.zi.disable_capture_url_hashes?ff(ye.location.href):ye.location.href,n=this.zi.custom_personal_data_properties,r=this.zi.mask_personal_data_properties?[...tv,...n||[]]:[],i=T1(e,r,R1);this.bt=this.bt||{},this.bt[i]||(this.bt[i]=[]),this.bt[i].push(t)}}ja(){this.bt&&!dl(this.bt)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:Hk,webVitalsAutocapture:class{constructor(t){var e;this.Td=!1,this.ns=!1,this.bt={navigationKey:void 0,url:void 0,metrics:[],firstMetricTimestamp:void 0},this.qd=()=>{clearTimeout(this.jd),this.jd=void 0,this.bt.metrics.length!==0&&(this._instance.capture("$web_vitals",Ae({$current_url:this.bt.url},this.bt.metrics.reduce(((n,r)=>Ae({},n,{["$web_vitals_"+r.name+"_event"]:Ae({},r),["$web_vitals_"+r.name+"_value"]:r.value})),{}))),this.bt={navigationKey:void 0,url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Bd=n=>{var r;if(this.bt=this.bt||{navigationKey:void 0,url:void 0,metrics:[],firstMetricTimestamp:void 0},Dt(n?.name)||Dt(n?.value))xh.error("Invalid metric received",n);else{var i=typeof n.navigationURL=="string"?n.navigationURL:void 0,s=this.Hd(i);if(!Pe(s)){var a=Fr(n.navigationId)||typeof n.navigationId=="string"?"navigation:"+n.navigationId:"url:"+s;if(!this.Ud||this.Ud>n.value){this.bt.navigationKey!==a&&(this.qd(),this.jd=setTimeout(this.qd,this.flushToCaptureTimeoutMs)),Pe(this.bt.navigationKey)&&(this.bt.navigationKey=a,this.bt.url=s),this.bt.firstMetricTimestamp=Pe(this.bt.firstMetricTimestamp)?Date.now():this.bt.firstMetricTimestamp;var c=(r=this._instance.sessionManager)==null?void 0:r.checkAndGetSessionAndWindowId(!0),u=Ae({},n,i?{navigationURL:s}:{},{$current_url:s,timestamp:Date.now()});if(delete u.entries,Yn(n.attribution)&&this.attributionMetrics.indexOf(n.name)>-1){var h={};for(var p of Cee){var v=p==="url"&&typeof n.attribution[p]=="string"?this.Hd(n.attribution[p]):n.attribution[p];Pe(v)||(h[p]=v)}u.attribution=h}else delete u.attribution;Pe(c)||(u.$session_id=c.sessionId,u.$window_id=c.windowId),this.bt.metrics.push(u),this.bt.metrics.length===this.allowedMetrics.length&&this.qd()}else xh.error("Ignoring metric with value >= "+this.Ud,n)}}},this.zd=()=>{if(!this.ns){var n,r,i,s,a=!1,c=st.__PosthogExtensions__,u=c?.postHogWebVitalsCallbacksByFlavor,h=u?.[this.Wd]||(this.Wd==="web-vitals"&&Pe(u)?c?.postHogWebVitalsCallbacks:void 0);if(!Pe(h)){var p=h.withoutAttribution,v=this.attributionMetrics;a=!Pe(p),n=v.indexOf("LCP")>-1?h.onLCP:p?.onLCP||h.onLCP,r=v.indexOf("CLS")>-1?h.onCLS:p?.onCLS||h.onCLS,i=v.indexOf("FCP")>-1?h.onFCP:p?.onFCP||h.onFCP,s=v.indexOf("INP")>-1?h.onINP:p?.onINP||h.onINP}if(n&&r&&i&&s){var y={reportSoftNavs:this.useSoftNavs},E=a&&this.attributionMetrics.indexOf("INP")>-1?Ae({},y,{includeProcessedEventEntries:!1}):y;this.allowedMetrics.indexOf("LCP")>-1&&n(this.Bd.bind(this),y),this.allowedMetrics.indexOf("CLS")>-1&&r(this.Bd.bind(this),y),this.allowedMetrics.indexOf("FCP")>-1&&i(this.Bd.bind(this),y),this.allowedMetrics.indexOf("INP")>-1&&s(this.Bd.bind(this),E),this.ns=!0}else xh.error("web vitals callbacks not loaded - not starting")}},this._instance=t,this.Td=!((e=this._instance.persistence)==null||!e.props[ZA]),this.startIfEnabled()}get Vd(){return this._instance.config.capture_performance}get allowedMetrics(){var t,e,n=Yn(this.Vd)?(t=this.Vd)==null?void 0:t.web_vitals_allowed_metrics:void 0;return Dt(n)?((e=this._instance.persistence)==null?void 0:e.props[eO])||uM:n}get flushToCaptureTimeoutMs(){return(Yn(this.Vd)?this.Vd.web_vitals_delayed_flush_ms:void 0)||5e3}get attributionMetrics(){var t=Yn(this.Vd)?this.Vd.web_vitals_attribution:void 0;return Ws(t)?t?uM:[]:Ct(t)?t:wee}get useAttribution(){return this.attributionMetrics.length>0}get useSoftNavs(){var t=Yn(this.Vd)?this.Vd.__preview_web_vitals_soft_navs:void 0;return t!=null&&t}get Ud(){var t=Yn(this.Vd)&&Fr(this.Vd.__web_vitals_max_value)?this.Vd.__web_vitals_max_value:cM;return t>0&&6e4>=t?cM:t}get isEnabled(){var t=br?.protocol;if(t!=="http:"&&t!=="https:")return xh.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=Yn(this.Vd)?this.Vd.web_vitals:Ws(this.Vd)?this.Vd:void 0;return Ws(e)?e:this.Td}startIfEnabled(){this.isEnabled&&!this.ns&&(xh.info("enabled, starting..."),this.Es(this.zd))}onRemoteConfig(t){if(t.ok){var e=t.config;if("capturePerformance"in e){var n=Yn(e.capturePerformance)&&!!e.capturePerformance.web_vitals,r=Yn(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[ZA]:n}),this._instance.persistence.register({[eO]:r})),this.Td=n,this.startIfEnabled()}}}get Wd(){return this.useSoftNavs?this.useAttribution?"web-vitals-with-attribution-soft-navs":"web-vitals-soft-navs":this.useAttribution?"web-vitals-with-attribution":"web-vitals"}Es(t){var e=st.__PosthogExtensions__,n=this.Wd,r=e?.postHogWebVitalsCallbacksByFlavor;r!=null&&r[n]||n==="web-vitals"&&Pe(r)&&e!=null&&e.postHogWebVitalsCallbacks?t():e==null||e.loadExternalDependency==null||e.loadExternalDependency(this._instance,n,(i=>{i?xh.error("failed to load script",i):t()}))}Hd(t){var e=t||ye?.location.href;if(e){var n=this._instance.config.disable_capture_url_hashes?ff(e):e,r=this._instance.config.custom_personal_data_properties,i=this._instance.config.mask_personal_data_properties?[...tv,...r||[]]:[];return T1(n,i,R1)}xh.error("Could not determine current URL")}}},jee={exceptionObserver:class{constructor(t){var e;this.zd=()=>{var n;if(ye&&this.isEnabled&&(n=st.__PosthogExtensions__)!=null&&n.errorWrappingFunctions){var r=st.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,i=st.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,s=st.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.Gd&&this.zi.capture_unhandled_errors&&(this.Gd=r(this.captureException.bind(this))),!this.Zd&&this.zi.capture_unhandled_rejections&&(this.Zd=i(this.captureException.bind(this))),!this.Qd&&this.zi.capture_console_errors&&(this.Qd=s(this.captureException.bind(this)))}catch(a){i_.error("failed to start",a),this.Jd()}}},this._instance=t,this.Kd=!((e=this._instance.persistence)==null||!e.props[YA]),this.oe=new CZ(Ae({},(function(n){var r,i,s,a;return n===void 0&&(n={}),{refillRate:(r=(i=n.exceptionRateLimiterRefillRate)!==null&&i!==void 0?i:n.__exceptionRateLimiterRefillRate)!==null&&r!==void 0?r:1,bucketSize:(s=(a=n.exceptionRateLimiterBucketSize)!==null&&a!==void 0?a:n.__exceptionRateLimiterBucketSize)!==null&&s!==void 0?s:10}})(this._instance.config.error_tracking),{refillInterval:1e4,I:i_})),this.zi=this.Yd(),this.startIfEnabledOrStop()}Yd(){var t=this._instance.config.capture_exceptions,e={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Yn(t)?e=Ae({},e,t):(Pe(t)?this.Kd:t)&&(e=Ae({},e,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),e}get isEnabled(){return this.zi.capture_console_errors||this.zi.capture_unhandled_errors||this.zi.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(i_.info("enabled"),this.Jd(),this.Es(this.zd)):this.Jd()}Es(t){var e,n;(e=st.__PosthogExtensions__)!=null&&e.errorWrappingFunctions?t():(n=st.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"exception-autocapture",(r=>{if(r)return i_.error("failed to load script",r);t()}))}Jd(){var t,e,n;(t=this.Gd)==null||t.call(this),this.Gd=void 0,(e=this.Zd)==null||e.call(this),this.Zd=void 0,(n=this.Qd)==null||n.call(this),this.Qd=void 0}onRemoteConfig(t){if(t.ok){var e=t.config;"autocaptureExceptions"in e&&(this.Kd=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[YA]:this.Kd}),this.zi=this.Yd(),this.startIfEnabledOrStop())}}onConfigChange(){this.zi=this.Yd()}captureException(t){var e,n,r,i=(e=t==null||(n=t.$exception_list)==null||(n=n[0])==null?void 0:n.type)!==null&&e!==void 0?e:"Exception";this.oe.consumeRateLimit(i)?i_.info("Skipping exception capture because of client rate limiting.",{exception:i}):(r=this._instance.exceptions)==null||r.sendExceptionEvent(t)}},exceptions:class{constructor(t){var e,n;this.Xd=[],this.tv=new VZ([new ZZ,new aJ,new eJ,new JZ,new sJ,new iJ,new nJ,new oJ],(function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),a=1;i>a;a++)s[a-1]=arguments[a];return function(c,u){u===void 0&&(u=0);for(var h=[],p=c.split(` 12`),v=u;p.length>v;v++){var y=p[v];if(1024>=y.length){var E=xk.test(y)?y.replace(xk,"$1"):y;if(!E.match(/\S*Error: /)){for(var S of s){var x=S(E,r);if(x){h.push(x);break}}if(h.length>=50)break}}}return(function(C){if(!C.length)return[];var R=Array.from(C);return R.reverse(),R.slice(0,50).map((A=>{return Ae({},A,{filename:A.filename||(O=R,O[O.length-1]||{}).filename,function:A.function||Qm});var O}))})(h)}})("web:javascript",KZ,QZ)),this._instance=t,this.Xd=(e=(n=this._instance.persistence)==null?void 0:n.get_property(XA))!==null&&e!==void 0?e:[],this.ev=Q2(this.iv()),this.rv=ne
12w cJ(this.ev)}onConfigChange(){this.ev=Q2(this.iv()),this.rv.setConfig(this.ev)}onRemoteConfig(t){var e,n,r;if(t.ok){var i=t.config;if("errorTracking"in i){var s=(e=(n=i.errorTracking)==null?void 0:n.suppressionRules)!==null&&e!==void 0?e:[],a=(r=i.errorTracking)==null?void 0:r.captureExtensionExceptions;this.Xd=s,this._instance.persistence&&this._instance.persistence.register({[XA]:this.Xd,[QA]:a})}}}get nv(){var t,e=!!this._instance.get_property(QA),n=this._instance.config.error_tracking.captureExtensionExceptions;return(t=n??e)!==null&&t!==void 0&&t}buildProperties(t,e){return this.tv.buildFromUnknown(t,{syntheticException:e?.syntheticException,mechanism:{handled:e?.handled}})}addExceptionStep(t,e){if(this.ev.enabled)try{if(!hn(t)||t.trim().length===0)return void sl.warn("Ignoring exception step because message must be a non-empty string");var n=(function(s){if(!s)return{sanitizedProperties:{},droppedKeys:[]};var a=[];return{sanitizedProperties:Object.keys(s).reduce(((c,u)=>lJ.has(u)?(a.push(u),c):(c[u]=s[u],c)),{}),droppedKeys:a}})(this.sv(e)),r=n.sanitizedProperties,i=n.droppedKeys;i.length>0&&sl.warn("Ignoring reserved exception step fields",{droppedKeys:i}),this.rv.add(Ae({[Y2]:t,[X2]:new Date().toISOString()},r))}catch(s){sl.error("Failed to add exception step. Ignoring breadcrumb.",s)}}sendExceptionEvent(t){try{var e=t.$exception_list;if(this.av(e)){if(this.ov(e))return this.lv("Exception dropped: matched a suppression rule"),void sl.info("Skipping exception capture because a suppression rule matched");if(!this.nv&&this.uv(e))return this.lv("Exception dropped: thrown by a browser extension"),void sl.info("Skipping exception capture because it was thrown by an extension");if(!this.nv&&this.hv(e))return this.lv("Exception dropped: thrown by an injected browser script"),void sl.info("Skipping exception capture because it was thrown by an injected browser script");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.dv(e))return this.lv("Exception dropped: thrown by the PostHog SDK"),void sl.info("Skipping exception capture because it was thrown by the PostHog SDK")}var n=this.ev.enabled&&Dt(t.$exception_steps)?this.vv(t):t,r=typeof(s=globalThis._posthogReleaseId)=="string"&&s.length>0?s:void 0;r&&(n.$release_id=r);try{var i=this._instance.capture("$exception",n,{_noTruncate:!0,_batchKey:"exceptionEvent",_l:!0});return i&&this.rv.clear(),i}catch(a){return sl.error("Failed to capture exception event. Dropping this exception.",a),void this.rv.clear()}}catch(a){return void sl.error("Failed to process exception event. Ignoring this exception.",a)}var s}vv(t){try{var e=this.rv.getAttachable();return e.length===0?t:Ae({},t,{$exception_steps:e})}catch(n){return sl.error("Failed to read buffered exception steps. Capturing exception without steps.",n),t}}lv(t){this.ev.enabled&&this.rv.add({[Y2]:t,[X2]:new Date().toISOString()})}sv(t){return Yn(t)?Ae({},t):{}}iv(){var t,e;return(t=(e=this._instance.config.error_tracking)==null?void 0:e.exception_steps)!==null&&t!==void 0?t:{}}ov(t){if(t.length===0)return!1;try{var e=t.reduce(((n,r)=>{var i=r.type,s=r.value;return hn(i)&&i.length>0&&n.$exception_types.push(i),hn(s)&&s.length>0&&n.$exception_values.push(s),n}),{$exception_types:[],$exception_values:[]});return this.Xd.some((n=>{var r=n.values.map((i=>{var s=zU[i.operator],a=e[i.key];if(!s||!a)return!1;var c=Ct(i.value)?i.value:[i.value];return c.length>0&&s(c,a)}));return n.type==="OR"?r.some(Boolean):r.every(Boolean)}))}catch(n){return sl.warn("Failed to evaluate suppression rules. Capturing the exception.",n),!1}}uv(t){return t.flatMap((e=>{var n,r;return(n=(r=e.stacktrace)==null?void 0:r.frames)!==null&&n!==void 0?n:[]})).some((e=>{var n=e.filename;return!!n&&Dee.some((r=>n.startsWith(r)))}))}hv(t){return t.some((e=>{var n=e.value;return hn(n)&&Nee.some((r=>n.includes(r)))}))}dv(t){if(t.length>0){var e,n,r,i,s=(e=(n=t[0].stacktrace)==null?void 0:n.frames)!==null&&e!==void 0?e:[],a=s[s.length-1];return(r=a==null||(i=a.filename)==null?void 0:i.includes("posthog.com/static"))!==null&&r!==void 0&&r}return!1}av(t){return!Dt(t)&&Ct(t)}}},Hee=Ae({productTours:class{get Ja(){return this._instance.persistence}constructor(t){this.fv=null,this.pv=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(t.ok){var e=t.config;if("productTours"in e){var n,r;if(this.Ja&&this.Ja.register({[y4]:!!e.productTours}),!rR(this._instance))return!this.fv&&Dt((n=this.Ja)==null?void 0:n.props[P_])||tw.info("product tours disabled; stopping and clearing cached tours"),(r=this.fv)==null||r.stop(),this.fv=null,void this.clearCache();this.loadIfEnabled()}}}loadIfEnabled(){!this.fv&&rR(this._instance)&&this.Es((()=>this.gv()))}Es(t){var e,n;(e=st.__PosthogExtensions__)!=null&&e.generateProductTours?t():(n=st.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"product-tours",(r=>{r?tw.error("Could not load product tours script",r):t()}))}gv(){var t;!this.fv&&(t=st.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.fv=st.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!Ct(this.pv)||e){var n=this.Ja;if(n){var r=n.props[P_];if(Ct(r)&&!e)return this.pv=r,void t(r,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",timestampMode:"query",callback:i=>{if(rR(this._instance)){var s=i.statusCode;if(s!==200||!i.json){var a="Product Tours API could not be loaded, status: "+s;return s===0?i.error||tw.warn(a):tw.error(a),void t([],{isLoaded:!1,error:a})}var c=Ct(i.json.product_tours)?i.json.product_tours:[];this.pv=c,n&&n.register({[P_]:c}),t(c,{isLoaded:!0})}else t([],{isLoaded:!0})}})}else t(this.pv,{isLoaded:!0})}getActiveProductTours(t){Dt(this.fv)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this.fv.getActiveProductTours(t)}showProductTour(t){var e;(e=this.fv)==null||e.showTourById(t)}previewTour(t){this.fv?this.fv.previewTour(t):this.Es((()=>{var e;this.gv(),(e=this.fv)==null||e.previewTour(t)}))}dismissProductTour(){var t;(t=this.fv)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.fv)==null||t.nextStep()}previousStep(){var t;(t=this.fv)==null||t.previousStep()}clearCache(){var t;this.pv=null,(t=this.Ja)==null||t.unregister(P_)}resetTour(t){var e;(e=this.fv)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.fv)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.fv)==null||e.cancelPendingTour(t)}}},hx),zee={siteApps:class{constructor(t){this.mv=0,this._instance=t,this.yv=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}bv(t,e){if(e){var n=this.globalsForEvent(e);this.yv.push(n),this.yv.length>1e3&&(this.yv=this.yv.slice(10))}}get siteAppLoaders(){var t;return(t=st._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this.bv.bind(this));this._v=()=>{t(),this.yv=[],this._v=void 0}}}globalsForEvent(t){var e,n,r,i,s,a,c;if(!t)throw new Error("Event payload is required");var u={},h=this._instance.get_property("$groups")||[],p=this._instance.get_property("$stored_group_properties")||{};for(var v of Object.entries(p)){var y=v[0];u[y]={id:h[y],type:y,properties:v[1]}}var E=t.$set_once,S=t.$set;return{event:Ae({},lF(t,Tee),{properties:Ae({},t.properties,S?{$set:Ae({},(e=(n=t.properties)==null?void 0:n.$set)!==null&&e!==void 0?e:{},S)}:{},E?{$set_once:Ae({},(r=(i=t.properties)==null?void 0:i.$set_once)!==null&&r!==void 0?r:{},E)}:{}),elements_chain:(s=(a=t.properties)==null?void 0:a.$elements_chain)!==null&&s!==void 0?s:"",distinct_id:(c=t.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:u}}wv(t){var e,n=(e=t.tagName)==null?void 0:e.toLowerCase();return n==="style"&&this._instance.config.prepare_external_dependency_stylesheet?this._instance.config.prepare_external_dependency_stylesheet(t)||(oc.error("prepare_external_dependency_stylesheet returned null"),null):n==="script"&&this._instance.config.prepare_external_dependency_script?this._instance.config.prepare_external_dependency_script(t)||(oc.error("prepare_external_dependency_script returned null"),null):t}Sv(){var t,e,n,r,i,s,a,c;if(!this._instance.config.prepare_external_dependency_stylesheet&&!this._instance.config.prepare_external_dependency_script)return()=>{};var u=De?.defaultView,h=u==null||(t=u.Node)==null?void 0:t.prototype;if(!u||!h)return()=>{};if(this.mv++,this.xv)return this.Cv();var p=[],v=this,y=new WeakSet,E=(C,R,A)=>{if(C!=null&&C[R]){var O=C[R];C[R]=A(O),p.push((()=>{C[R]=O}))}},S=C=>{if(y.has(C))return C;var R=v.wv(C);return R&&y.add(R),R},x=C=>C.map((R=>
12typeof R=="string"?R:S(R))).filter((R=>!rs(R)));return E(h,"appendChild",(C=>function(R){var A=S(R);return A?C.call(this,A):R})),E(h,"insertBefore",(C=>function(R,A){var O=S(R);return O?C.call(this,O,A):R})),E(h,"replaceChild",(C=>function(R,A){var O=S(R);return O?C.call(this,O,A):A})),[(e=u.Element)==null?void 0:e.prototype,(n=u.Document)==null?void 0:n.prototype,(r=u.DocumentFragment)==null?void 0:r.prototype].forEach((C=>{E(C,"append",(R=>function(){for(var A=arguments.length,O=new Array(A),P=0;A>P;P++)O[P]=arguments[P];return R.apply(this,x(O))})),E(C,"prepend",(R=>function(){for(var A=arguments.length,O=new Array(A),P=0;A>P;P++)O[P]=arguments[P];return R.apply(this,x(O))}))})),[(i=u.Element)==null?void 0:i.prototype,(s=u.CharacterData)==null?void 0:s.prototype,(a=u.DocumentType)==null?void 0:a.prototype].forEach((C=>{E(C,"before",(R=>function(){for(var A=arguments.length,O=new Array(A),P=0;A>P;P++)O[P]=arguments[P];return R.apply(this,x(O))})),E(C,"after",(R=>function(){for(var A=arguments.length,O=new Array(A),P=0;A>P;P++)O[P]=arguments[P];return R.apply(this,x(O))})),E(C,"replaceWith",(R=>function(){for(var A=arguments.length,O=new Array(A),P=0;A>P;P++)O[P]=arguments[P];var L=x(O);return O.length&&!L.length?void 0:R.apply(this,L)}))})),E((c=u.Element)==null?void 0:c.prototype,"insertAdjacentElement",(C=>function(R,A){var O=S(A);return O?C.call(this,R,O):null})),this.xv=()=>{p.forEach((C=>C())),this.xv=void 0},this.Cv()}Cv(){var t=!1;return()=>{var e;t||(t=!0,this.mv--,this.mv===0&&((e=this.xv)==null||e.call(this)))}}Tv(t,e){e===void 0&&(e=!0);var n=this.Sv();try{var r=t(n);return e&&n(),r}catch(i){throw n(),i}}setupSiteApp(t){var e=this.apps[t.id],n=()=>{var a;!e.errored&&this.yv.length&&(oc.info("Processing "+this.yv.length+" events for site app with id "+t.id),this.yv.forEach((c=>this.Tv((()=>e.processEvent==null?void 0:e.processEvent(c))))),e.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((a=this._v)==null||a.call(this))},r=!1,i=a=>{e.errored=!a,e.loaded=!0,oc.info("Site app with id "+t.id+" "+(a?"loaded":"errored")),r&&n()};try{var s=this.Tv((a=>t.init({posthog:this._instance,callback(c){a(),i(c)}})),!1).processEvent;s&&(e.processEvent=s),r=!0}catch(a){oc.error(hM+t.id,a),i(!1)}if(r&&e.loaded)try{n()}catch(a){oc.error("Error while processing buffered events PostHog app with config id "+t.id,a),e.errored=!0}}Mv(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of t)this.setupSiteApp(n)}Ev(t){var e=this;if(Object.keys(this.apps).length!==0){var n=this.globalsForEvent(t),r=function(s){try{e.Tv((()=>s.processEvent==null?void 0:s.processEvent(n)))}catch(a){oc.error("Error while processing event "+t.event+" for site app "+s.id,a)}};for(var i of Object.values(this.apps))r(i)}}onRemoteConfig(t){var e,n,r,i=this;if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.Mv(),void this._instance.on("eventCaptured",(u=>this.Ev(u)))):void oc.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((n=this._v)==null||n.call(this),t.ok){var s=t.config;if((r=s.siteApps)!=null&&r.length)if(this.isEnabled){var a=function(){var u,h=c.id,p=c.url;st["__$$ph_site_app_"+h]=i._instance,(u=st.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(i._instance,p,(v=>{if(v)return oc.error(hM+h,v)}))};for(var c of s.siteApps)a()}else oc.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}}},Vee={tracingHeaders:class{constructor(t){this.Iv=void 0,this.Rv=void 0,this.Pv=void 0,this.zd=()=>{var e,n,r=this.Av();r?(Pe(this.Iv)&&(this.Iv=(e=st.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null?void 0:e._patchXHR(r,(()=>this._instance.get_distinct_id()),this._instance.sessionManager)),Pe(this.Rv)&&(this.Rv=(n=st.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null?void 0:n._patchFetch(r,(()=>this._instance.get_distinct_id()),this._instance.sessionManager))):this.Jd()},this._instance=t}initialize(){this.startIfEnabledOrStop()}Es(t){var e,n;(e=st.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns?t():(n=st.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"tracing-headers",(r=>{if(r)return See.error("failed to load script",r);t()}))}Fv(){var t,e;return(t=(e=this._instance.config.tracing_headers)!==null&&e!==void 0?e:this._instance.config.addTracingHeaders)!==null&&t!==void 0?t:this._instance.config.__add_tracing_headers}Av(){var t=this.Fv();return Ct(t)?(Ct(this.Pv)?this.Pv.splice(0,this.Pv.length,...t):this.Pv=[...t],t.length>0?this.Pv:void 0):(Ct(this.Pv)&&this.Pv.splice(0),this.Pv=t||void 0,this.Pv)}Jd(){var t,e;(t=this.Iv)==null||t.call(this),(e=this.Rv)==null||e.call(this),this.Iv=void 0,this.Rv=void 0}startIfEnabledOrStop(){this.Av()?this.Es(this.zd):this.Jd()}}},qee=Ae({surveys:class extends Ree{constructor(t){var e;super(new Lee(t),{get projectToken(){return e.config.token},kv:new Pee(e=t)}),this._instance=t}Wl(t,e){var n=e.query?ab(t,e.query):t;return new Promise((r=>{var i;this._instance._send_request({method:e.method,url:this._instance.requestRouter.endpointFor((i=e.target)!==null&&i!==void 0?i:"api",n),data:e.body,headers:e.headers,timeout:e.timeoutMs,fireCallbackOnDrop:!0,transport:e.transport,compression:e.compression,timestampMode:e.sentAt,callback:r})}))}}},hx),Wee={toolbar:class{constructor(t){this.instance=t}Ov(t){st.ph_toolbar_state=t}Lv(){var t;return(t=st.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,n){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),n===void 0&&(n=void 0),cO(this.instance.config)||!ye||!De)return!1;t=t??ye.location,n=n??ye.history;try{if(!e){try{ye.localStorage.setItem("test","test"),ye.localStorage.removeItem("test")}catch{return!1}e=ye?.localStorage}var r,i=kee||aC(t.hash,"__posthog")||aC(t.hash,"state"),s=i?Ak((()=>JSON.parse(atob(decodeURIComponent(i)))))||Ak((()=>JSON.parse(decodeURIComponent(i)))):null;return s&&s.action==="ph_authorize"?((r=s).source="url",r&&Object.keys(r).length>0&&(s.desiredHash?t.hash=s.desiredHash:n?n.replaceState(n.state,"",t.pathname+t.search):t.hash="")):((r=JSON.parse(e.getItem(gM)||"{}")).source="localstorage",delete r.userIntent),!(!r.token||this.instance.config.token!==r.token||(this.loadToolbar(r),0))}catch{return!1}}Dv(t){var e=st.ph_load_toolbar||st.ph_load_editor;!Dt(e)&&Es(e)?e(t,this.instance):mM.warn("No toolbar load function found")}loadToolbar(t){var e=!(De==null||!De.getElementById(oU));if(!ye||e)return!1;var n=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,r=Ae({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if(ye.localStorage.setItem(gM,JSON.stringify(Ae({},r,{source:void 0}))),this.Lv()===2)this.Dv(r);else if(this.Lv()===0){var i;this.Ov(1),(i=st.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this.instance,"toolbar",(s=>{if(s)return mM.error("[Toolbar] Failed to load",s),void this.Ov(0);this.Ov(2),this.Dv(r)})),sr(ye,"turbolinks:load",(()=>{this.Ov(0),this.loadToolbar(r)}))}return!0}$v(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,n){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(t,e,n)}}},Gee=Ae({experiments:_s},hx),Kee={conversations:class{constructor(t){this.Nv=void 0,this._conversationsManager=null,this.qv=!1,this.Me=null,this.jv=!1,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations&&(this.Bv=t.ok,t.ok)){var e=t.config.conversations;Dt(e)||(Ws(e)?this.Nv=e:(this.Nv=e.enabled,this.Me=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Nv=void 0,this.Me=null,this.Bv=void 0,this.jv=!1}loadIfEnabled(){if(!(this._conversationsManager||this.qv||this._instance.config.disable_conversations||cO(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=st?.__PosthogExtensions__;if(t&&!Pe(this.Nv)&&this.Nv)if(this.Me&&this.Me.token){this.qv=!0;try{var e=t.initConversations;if(e)return this.Hv(e),void(this.qv=!1);var n=t.loadExternalDependency;if(!n)return void this.Uv(b4);n(this._instance,"conversations",(r=>{r||!t.initConversations?this.Uv("Could not load conversations script",r):this.Hv(t.initConversations),this.qv=!1}))}catch(r){this.Uv("Error initializing conversations",r),this.qv=!1}}else ya.error("Conversations enabled but missing token in remote config.")}}Hv(t){if(this.Me)try{this._conversationsManager=t(this.Me,this._instance),this.jv=!1,ya.info("Conversations loaded successfully")}catch(e){this.Uv("Error completing conversations initialization",e)}else ya.error("Cannot complete initialization: remote config is null")}Uv(t,e){ya.error(t,e),this._conversationsManager=null,this.qv=!1,this.jv=!0}show(){this._conversationsManager?this._conversationsManager.show():ya.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Nv===!0&&!rs(this._conversationsManager)}getUnavailableReason(){return this.isAvailable()?null:this._instance.config.disable_conversations?"disabled_by_config":cO(this._instance.config)?"disabled_for_toolbar":this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut()?"consent_opted_out":this.Bv===!1?"remote_config_failed":Pe(this.Nv)?this.Bv?"disabled_in_project":"remote_config_pending":this.Nv?Dt(this.Me)||!this.Me.token?"missing_token":st!=null&&st.__PosthogExtensions__?this.qv?"initializing":this.jv?"load_failed":"not_loaded":"extensions_unavailable":"disabled_in_project"}isVisible(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&t!==void 0&&t}sendMessage(t,e,n){var r=this;return rr((function*(){return r._conversationsManager?r._conversationsManager.sendMessage(t,e,n):(ya.warn(Rh),null)}))()}getMessages(t,e){var n=this;return rr((function*(){return n._conversationsManager?n._conversationsManager.getMessages(t,e):(ya.warn(Rh),null)}))()}markAsRead(t){var e=this;return rr((function*(){return e._conversationsManager?e._conversationsManager.markAsRead(t):(ya.warn(Rh),null)}))()}getTickets(t){var e=this;return rr((function*(){return e._conversationsManager?e._conversationsManager.getTickets(t):(ya.warn(Rh),null)}))()}requestRestoreLink(t){var e=this;return rr((function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(t):(ya.warn(Rh),null)}))()}restoreFromToken(t){var e=this;return rr((function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(t):(ya.warn(Rh),null)}))()}restoreFromUrlToken(){var t=this;return rr((function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(ya.warn(Rh),null)}))()}getCurrentTicketId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&t!==void 0?t:null}Il(){var t;(t=this._conversationsManager)==null||t.setIdentity()}Rl(){var t;(t=this._conversationsManager)==null||t.clearIdentity()}}},Yee={logs:class{constructor(t){var e,n=this;this.name="logs",this.zv=!1,this.Wv=!1,this.Vv=!1,this.I=gr("[logs]"),this.Gv=Ae({},this.I,{error(){for(var r=arguments.length,i=new Array(r),s=0;r>s;s++)i[s]=arguments[s];i.some(xM)||n.I.error(...i)}}),this.Ea=[],this.Zv=[],this.kh=0,this.us=!1,this.Qv=[],this.Jv=[],this.Kv=!1,this.Yv=!1,this.Xv=()=>{var r,i;this.us||(this.kh=0,(r=this.tc)==null||r.onReconnect(),(i=this.ec)==null||i.onReconnect())},this._instance=t,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.zv=!0),ye&&sr(ye,"online",this.Xv)}ic(t,e,n,r){var i,s=wM((i=this._instance)==null||(i=i.config)==null?void 0:i.logs,n);return[new jZ(this.rc(t,e),s,this.Gv,(()=>this.nc()),(a=>a()),void 0,r),s]}sc(){var t,e=(t=this._instance)==null||(t=t.config)==null?void 0:t.logs;if(!this.tc||this.ac!==e){var n;(n=this.tc)==null||n.reset(),this.ac=e;var r=this.ic((()=>this.Ea),(i=>{this.Ea=i}));this.tc=r[0],this.oc=r[1]}return this.tc}lc(){var t,e=(t=this._instance)==null||(t=t.config)==null?void 0:t.logs;if(!this.ec||this.uc!==e){var n;(n=this.ec)==null||n.reset(),this.uc=e;var r=this.ic((()=>this.Zv),(i=>{this.Zv=i}),{serviceNameDefault:"posthog-browser-logs",consoleCapture:!0},CM);this.ec=r[0],this.hc=r[1]}return this.ec}setup(t){var e;if(!this.us){this.cs=t,(e=this._instance)!=null&&(e=e.config)!=null&&(e=e.logs)!=null&&e.captureConsoleLogs&&(this.zv=!0),(this.zv||this.dc()&&this.vc())&&this.cc();var n=!1,r=t.onRemoteConfig((i=>{var s;n=i.ok&&((s=i.config.logs)==null?void 0:s.captureConsoleLogs)===!0,this.onRemoteConfig(i)}));this.us?r.dispose():(this.fs=r,n||this.loadIfEnabled())}}dispose(){var t,e,n,r;
12this.us||(this.us=!0,this.fc(),(t=this.fs)==null||t.dispose(),this.fs=void 0,this.cs=void 0,this.Vv=!1,ye?.removeEventListener("online",this.Xv),(e=this.gc)==null||e.call(this),this.gc=void 0,(n=this.tc)==null||n.reset(),(r=this.ec)==null||r.reset())}onRemoteConfig(t){var e,n;if(!this.us){var r=t.ok?(e=t.config.logs)==null?void 0:e.captureConsoleLogs:void 0;Dt(r)?this.mc():((n=this._instance)==null||(n=n.persistence)==null||n.register({[JA]:!!r}),r?(this.zv=!0,this.Wv||this.cc(),this.loadIfEnabled()):this.mc())}}reset(){var t,e,n,r;this.fc(),(t=this.tc)==null||t.clearQueue(),this.Ea=[],(e=this.tc)==null||e.reset(),(n=this.ec)==null||n.clearQueue(),this.Zv=[],(r=this.ec)==null||r.reset(),this.kh=0}captureLog(t){this.us||this.sc().captureLog(t)}captureConsoleLog(t){this.us||this.lc().captureLog(t)}captureBufferedConsoleLog(t,e,n){this.us||this.lc().captureLog(t,{context:e,occurredAtMs:n})}vc(){var t;return!((t=this._instance)==null||(t=t.persistence)==null||(t=t.props)==null||!t[JA])}dc(){var t,e;return(t=this._instance)==null||t.xa==null||!t.xa()||!((e=st._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null||!e.config)}Al(){var t;this.fc(),(t=this.ec)==null||t.clearQueue(),this.Zv=[]}mc(){this.zv||this.fc()}cc(){var t,e=this;if(!this.Kv&&st!=null&&st.console){var n=wM((t=this._instance)==null||(t=t.config)==null?void 0:t.logs).maxBufferSize,r=function(s){var a;try{a=(c=>{for(;(u=c)!=null&&u.__rrweb_original__;){var u;c=c.__rrweb_original__}return c})(st.console[s])}catch{return 0}if(!a)return 0;e.Jv.push(XU(st.console,s,(c=>{var u=function(){for(var h=arguments.length,p=new Array(h),v=0;h>v;v++)p[v]=arguments[v];try{e.yc(s,p,n)}catch{}return c.apply(st.console,p)};return u.__rrweb_original__=a,u})))};for(var i of Fee)r(i);this.Kv=!0,this.bc=setTimeout((()=>{this.fc()}),3e4)}}yc(t,e,n){var r;if(this.Kv&&!this.Yv&&e.length!==0)if((r=this._instance)!=null&&r.is_capturing()){if(n>this.Qv.length){this.Yv=!0;try{this.Qv.push({level:t,args:e,occurredAtMs:Date.now(),context:this.nc()})}finally{this.Yv=!1}}}else this.fc()}fc(){if(this.Qv=[],this.Kv){for(var t of(this.Kv=!1,this.bc&&(clearTimeout(this.bc),this.bc=void 0),this.Jv))t();this.Jv=[]}}_c(){var t=this.Qv;return this.fc(),t}get logger(){return this.wc||(this.wc={trace:(t,e)=>this.captureLog({body:t,level:"trace",attributes:e}),debug:(t,e)=>this.captureLog({body:t,level:"debug",attributes:e}),info:(t,e)=>this.captureLog({body:t,level:"info",attributes:e}),warn:(t,e)=>this.captureLog({body:t,level:"warn",attributes:e}),error:(t,e)=>this.captureLog({body:t,level:"error",attributes:e}),fatal:(t,e)=>this.captureLog({body:t,level:"fatal",attributes:e})}),this.wc}flushLogs(t){t?this.kc(t):(this.tc&&this.tc.flush().catch((e=>this.Sc(e))),this.ec&&this.ec.flush().catch((e=>this.Sc(e))))}Sc(t){xM(t)||this.I.error("PostHog logs flush failed:",t)}loadIfEnabled(){if(!this.us&&this.zv&&!this.Wv&&!this.Vv){var t=st?.__PosthogExtensions__;if(!t)return this.I.error("PostHog Extensions not found."),void this.fc();var e=t.loadExternalDependency;if(!e)return this.I.error(b4),void this.fc();this.Vv=!0;try{e(this._instance,"logs",(n=>{if(this.Vv=!1,!this.us&&this.zv){var r=t.logs;if(n||r==null||!r.initializeLogs)this.I.error("Could not load logs script",n),this.fc();else{var i,s,a=this._c();this.gc=r.initializeLogs((i=this.cs)!==null&&i!==void 0?i:this._instance),this.Wv=!0,a.length>0&&(r.replayConsoleBuffer==null||r.replayConsoleBuffer((s=this.cs)!==null&&s!==void 0?s:this._instance,a))}}}))}catch(n){throw this.Vv=!1,n}}}rc(t,e){var n=this._instance;return{get isDisabled(){return!1},get optedOut(){return!n.is_capturing()},getPersistedProperty:r=>r===dc.LogsQueue?t():void 0,setPersistedProperty(r,i){var s;r===dc.LogsQueue&&e((s=i)!==null&&s!==void 0?s:[])},Ln:r=>this.Ln(r),getLibraryId:()=>nr.LIB_NAME,getLibraryVersion:()=>nr.LIB_VERSION}}Ln(t){return new Promise((e=>{if(_U(this.kh,3))e({kind:"fatal",error:sR(void 0,"logs endpoint is unreachable, dropping batch")});else{var n=!1,r=s=>{n||(n=!0,clearTimeout(i),e(s))},i=setTimeout((()=>{this.I.warn("Logs request timed out before receiving a response"),r({kind:"retry-later",error:sR(void 0,"logs request timed out")})}),9e4);this._instance._send_request({method:"POST",url:this.xc(),data:t,compression:"best-available",batchKey:"logs",fireCallbackOnDrop:!0,callback:s=>{var a=s.statusCode;if(this.Cc(a),a>=200&&300>a)r({kind:"ok"});else if(a===413)r({kind:"too-large"});else if(a!==0&&a!==408&&a!==429&&500>a)r({kind:"fatal",error:new Error("logs request failed with status "+a)});else{var c;a===0?(s.error||this.I.warn("Logs request failed before receiving an HTTP response"),r({kind:"retry-later",error:sR(s.error,"logs request failed before receiving an HTTP response")})):r({kind:"retry-later",error:(c=s.error)!==null&&c!==void 0?c:new Error("logs request failed with status "+a)})}}})}}))}Cc(t){(t!==0||this._instance.__loaded)&&(this.kh=bU(t,this.kh,3,(()=>this.I.warn("Log requests are failing before receiving an HTTP response; this can happen due to network issues, CORS, browser blocking, or ad blockers. Stopped sending logs; will try again when connectivity changes."))))}kc(t){this.Ea.length>0&&this.Tc(t,this.Ea,this.oc,nr.LIB_NAME,(e=>{this.Ea=e})),this.Zv.length>0&&this.Tc(t,this.Zv,this.hc,CM,(e=>{this.Zv=e}))}Tc(t,e,n,r,i){if(e.length!==0){var s=e.map((c=>c.record));i([]);var a=HF(s,jF(n,nr.LIB_NAME,nr.LIB_VERSION),r,nr.LIB_VERSION);this._instance._send_request({method:"POST",url:this.xc(),data:a,compression:"best-available",batchKey:"logs",transport:t})}}xc(){return this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token)}nc(){var t,e={};if(e.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var n=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0),r=n.windowId,i=n.sessionStartTimestamp,s=n.lastActivityTimestamp;e.sessionId=n.sessionId,e.windowId=r,Dt(i)||(e.sessionStartTimestamp=i),Dt(s)||(e.lastActivityTimestamp=s)}if(st!=null&&(t=st.location)!=null&&t.href&&(e.currentUrl=this._instance.config.disable_capture_url_hashes?ff(st.location.href):st.location.href),this._instance.featureFlags){var a=this._instance.featureFlags.getFlags();a&&a.length>0&&(e.activeFeatureFlags=a)}return e}}},Xee={metrics:class{constructor(t){this.I=gr("[metrics]"),this._instance=t}initialize(){}sc(){var t,e,n=(t=this._instance)==null||(t=t.config)==null?void 0:t.metrics;return this.tc&&this.ac===n||((e=this.tc)==null||e.reset(),this.ac=n,this.tc=new HZ(this.rc(),(function(r){var i,s,a,c,u,h=r?.resourceAttributes;
12return{serviceName:(i=h?.["service.name"])!==null&&i!==void 0?i:r?.serviceName,serviceVersion:(s=h?.["service.version"])!==null&&s!==void 0?s:r?.serviceVersion,environment:(a=h?.["deployment.environment"])!==null&&a!==void 0?a:r?.environment,resourceAttributes:h,beforeSend:r?.beforeSend,flushIntervalMs:(c=r?.flushIntervalMs)!==null&&c!==void 0?c:1e4,maxSeriesPerFlush:(u=r?.maxSeriesPerFlush)!==null&&u!==void 0?u:1e3}})(n),this.I)),this.tc}count(t,e,n){e===void 0&&(e=1),this.sc().count(t,e,n)}gauge(t,e,n){this.sc().gauge(t,e,n)}histogram(t,e,n){this.sc().histogram(t,e,n)}flush(t){if(!this.tc)return Promise.resolve();if(t){var e=this.tc.drainWindow();return e&&this.Kn(e,t),Promise.resolve()}return this.tc.flush().catch((n=>this.I.error("PostHog metrics flush failed:",n)))}reset(){var t;(t=this.tc)==null||t.reset()}rc(){var t=this._instance,e=this;return{get isDisabled(){return!1},get optedOut(){return!t.is_capturing()},Kn:n=>e.Kn(n),getLibraryId:()=>nr.LIB_NAME,getLibraryVersion:()=>nr.LIB_VERSION}}Kn(t,e){return new Promise((n=>{var r=!1,i=a=>{r||(r=!0,clearTimeout(s),n(a))},s=setTimeout((()=>i({kind:"retry-later",error:new Error("metrics request timed out")})),9e4);this._instance._send_request(Ae({method:"POST",url:this.Mc(),data:t,compression:"best-available",batchKey:"metrics"},e&&{transport:e},{fireCallbackOnDrop:!0,callback(a){var c=a.statusCode;if(c>=200&&300>c)i({kind:"ok"});else if(c===413)i({kind:"too-large"});else if(c!==0&&c!==408&&c!==429&&500>c)i({kind:"fatal",error:new Error("metrics request failed with status "+c)});else{var u;i({kind:"retry-later",error:(u=a.error)!==null&&u!==void 0?u:new Error("metrics request failed with status "+c)})}}}))}))}Mc(){return this._instance.requestRouter.endpointFor("api","/i/v1/metrics")+"?token="+encodeURIComponent(this._instance.config.token)}}},Qee=Ae({},hx,Uee,Bee,jee,Hee,zee,qee,Vee,Wee,Gee,Kee,Yee,Xee);Wo.__defaultExtensionClasses=Ae({},Qee);var gp=(function(){nr.SDK_DIST_CHANNEL="npm";var t=J_[_m]=new Wo;return(function(){function e(){e.done||(e.done=!0,KU=!1,kn(J_,(function(n){n._dom_loaded()})))}De!=null&&De.addEventListener?De.readyState==="complete"?e():sr(De,"DOMContentLoaded",e,{capture:!1}):ye&&Ue.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),t})();const Zee="dessence_attribution",Jee=512,ete=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","ref","ref_type","gclid","fbclid","msclkid","ttclid","twclid","li_fat_id","adsgram_campaign","click_id","record","referring_domain"],tte=["gclid","fbclid","msclkid","ttclid","twclid","li_fat_id","click_id"],nte=["cpc","ppc","paid","paidsearch","paid-search","paid_search","paidsocial","paid-social","paid_social","display","banner","ads","advertising"],rte=["organic","search"],ite=["referral","affiliate","backlink","partner"],ste=["adv","paid"],ote=["google","bing","yahoo","duckduckgo","yandex","baidu","ecosia","ask","aol"],Hu={storageKey:Zee,maxValueLength:Jee,forwardedKeys:ete,clickIdKeys:tte,paidMediums:nte,searchMediums:rte,referralMediums:ite,paidRefTypes:ste,searchEngines:ote},JU=Hu.storageKey,ate=Hu.maxValueLength,lte=Hu.forwardedKeys,cte=Hu.clickIdKeys,ute=Hu.paidMediums,dte=Hu.searchMediums,fte=Hu.referralMediums,hte=Hu.paidRefTypes,pte=Hu.searchEngines,gte={USER_SIGNED_UP:{name:"user_signed_up",de
12scription:"An account came into existence. Fires once, from the surface that created it.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:["App - Sign-in - User successfully creates an account","signed_up","TG Bot - User successfully creates an account"]},USER_SIGNED_IN:{name:"user_signed_in",description:"An existing account authenticated.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:["App - Auth - User successfully logs in to account","signed_in"]},ITEM_SAVED:{name:"item_saved",description:"A new Library item was persisted. Server-side, from the shared accept path, so every channel is shape-identical and a duplicate save does not emit.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:["content_saved"]},TRACKING_CONSENT_GRANTED:{name:"tracking_consent_granted",description:"A visitor accepted analytics cookies. Fires once while the existing session-scoped identity is migrated to persistent browser storage and carries the available first-party join keys.",trackingDomain:"marketing",eventKind:"custom",eventVersion:1,deprecatedAliases:["consent_granted"]},GUEST_FILE_REJECTED:{name:"guest_file_rejected",description:"The landing demo refused a file before it was ever sent. Fires for any file kind, not only images.",trackingDomain:"marketing",eventKind:"custom",eventVersion:1,deprecatedAliases:["guest_photo_rejected"]},TELEGRAM_INTERACTED:{name:"telegram_interacted",description:"A supported user action arrived through Telegram. The bounded interaction_type property identifies the action without recording message content.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:["TG Bot - User opens the bot","TG Bot - User clicks the start button","TG Bot - User clicks login-in button","TG Bot - User clicks sign-in button","TG Bot - User enters username","TG Bot - Menu - User clicks help","TG Bot - Menu - User clicks menu","TG Bot - Menu - User clicks profile","TG Bot - Menu - User clicks send","TG Bot - Menu - User clicks start","TG Bot - User sends content for saving","TG Bot - User sees saved message confirmation"]},ONBOARDING_STARTED:{name:"onboarding_started",description:"A new user's agent-native onboarding kickoff turn was durably accepted.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:["App - Onboarding - User starts tour"]},ONBOARDING_COMPLETED:{name:"onboarding_completed",description:"The persisted agent-native onboarding objective reached its completed state.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:["App - Onboarding - User successfully completes onboarding"]},ONBOARDING_DECLINED:{name:"onboarding_declined",description:"The person explicitly declined the persisted agent-native onboarding objective.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},CHAT_TURN_ACCEPTED:{name:"chat_turn_accepted",description:"The backend accepted one web chat turn. Staged in the admission transaction with turn_id and user_message_id so the turn joins to its persisted message.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},REMINDER_CREATED:{name:"reminder_created",description:"Legacy reminder creation projection retained for existing campaigns. Excluded from canonical job creation totals; remove only after DES-449 consumer migration and production QA.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},RECURRING_JOB_CREATED:{name:"recurring_job_created",description:"A recurring Agent Job of any spec, including reminders, was persisted.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},ONE_TIME_JOB_CREATED:{name:"one_time_job_created",description:"A one-time Agent Job of any spec, including reminders, was persisted. Exactly one canonical creation per job.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},JOB_RUN_STARTED:{name:"job_run_started",description:"A worker began executing one logical Agent Job run. At most once per run_id; a stall-recovery re-queue of the same run does not emit again.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},JOB_RUN_COMPLETED:{name:"job_run_completed",description:"One logical Agent Job run reached its final status and outcome. At most once per run_id, from every finalization path including stall recovery.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},NOTIFICATION_SENT:{name:"notification_sent",description:"One logical proactive notification passed the product's delivery boundary: the durable web message exists or a provider accepted the send. Not read, not device receipt.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},PROACTIVE_ACTION_SHOWN:{name:"proactive_action_shown",description:"An actionable proactive result was actually presented on a surface where presentation is observable (web chat observed, inbox read). Never emitted for Telegram.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},PROACTIVE_ACTION_RESPONDED:{name:"proactive_action_responded",de
12scription:"The user made an explicit, observable response to a specific proactive action: accepted, dismissed, snoozed, acted or replied. Never inferred from silence or proximity.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},AUTH_METHOD_STARTED:{name:"auth_method_started",description:"The user begins a credential method.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},AUTH_CHALLENGE_REQUESTED:{name:"auth_challenge_requested",description:"The browser received an email-link request acknowledgement; not proof of sending.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},AUTH_CHALLENGE_SENT:{name:"auth_challenge_sent",description:"The email provider accepted the challenge email; not proof of inbox delivery.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},AUTH_CHALLENGE_CONSUMED:{name:"auth_challenge_consumed",description:"The server committed successful challenge consumption and session creation.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},MAGIC_LINK_OPENED:{name:"magic_link_opened",description:"The browser opened an email sign-in link with a token; challenge validity is not asserted.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},AUTH_SCREEN_RENDERED:{name:"auth_screen_rendered",description:"The authentication screen rendered.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},AUTH_METHOD_CLICKED:{name:"auth_method_clicked",description:"The user selected a sign-in method.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},AUTH_SCREEN_PAGELEAVE:{name:"auth_screen_pageleave",description:"The user left the authentication screen.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},CONSENT_MODAL_SHOWN:{name:"consent_modal_shown",description:"The tracking consent panel was displayed.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},CONSENT_MODAL_ACCEPTED:{name:"consent_modal_accepted",description:"The user accepted tracking consent.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]},CONSENT_MODAL_DECLINED:{name:"consent_modal_declined",description:"The user declined tracking consent.",trackingDomain:"product",eventKind:"custom",eventVersion:1,deprecatedAliases:[]}},mte={acts:gte},wo=mte.acts,vte="tracking_domain",yte="event_version",b4e=t=>({[vte]:wo[t].trackingDomain,[yte]:wo[t].eventVersion});wo.USER_SIGNED_UP.name;wo.USER_SIGNED_IN.name;wo.ITEM_SAVED.name;wo.GUEST_FILE_REJECTED.name;const _te=wo.TRACKING_CONSENT_GRANTED.name;wo.TELEGRAM_INTERACTED.name;wo.ONBOARDING_STARTED.name;wo.ONBOARDING_COMPLETED.name;wo.ONBOARDING_DECLINED.name;wo.CHAT_TURN_ACCEPTED.name;new Set(Object.values(wo).flatMap(t=>[...t.deprecatedAliases]));new Set(Object.values(wo).map(t=>t.name));const bte="app_env",Ete="app_surface",Ste=/^\d{1,3}(?:\.\d{1,3}){3}$/,wte=t=>t.trim().toLowerCase().split(":")[0]?.replace(/\.$/,"")??"",Cte=t=>!t||t==="localhost"||t.endsWith(".localhost")||t==="127.0.0.1"||t==="0.0.0.0"||t==="::1"||Ste.test(t),xte=t=>{const e=wte(t??"");return Cte(e)?"local":e==="i.dessence.ai"||e.endsWith(".i.dessence.ai")?e.slice(0,-14).startsWith("stage")?"stage":"dev":e==="dessence.ai"||e.endsWith(".dessence.ai")||e.endsWith(".translate.goog")&&e.startsWith("dessence-ai")?"production":"unknown"},Tte=(t,e)=>({[bte]:e,[Ete]:t}),Rte="sessionStorage",Ate="localStorage+cookie",e9=t=>t==="granted"?Ate:Rte,Ote=(t,e,n={})=>{const r=e9(e),s=t.config.persistence!==r,a={...n.superProperties,...n.bridgeProperties};if(e==="granted"){s&&(t.capture(_te,n.bridgeProperties),t.set_config({persistence:r})),Object.keys(a).length>0&&t.register(a),n.identity&&t.identify(n.identity.distinctId,n.identity.setProperties,n.identity.setOnceProperties);return}s&&(t.set_config({persistence:r}),t.reset()),Object.keys(a).length>0&&t.register(a)},Am="data-replay-private",t9="data-replay-block",E4e={[Am]:"true"},S4e={[t9]:"true"},Ite=`[${Am}="true"]`,Pte=[`[${t9}="true"]`,`[${Am}="true"] img`,`[${Am}="true"] video`,`[${Am}="true"] audio`,`[${Am}="true"] canvas`].join(", "),TM=t=>t.split(/[?#]/,1)[0],Lte=t=>({...t,...typeof t.name=="string"?{name:TM(t.name)}:{},...typeof t.url=="string"?{url:TM(t.url)}:{}}),kte=t=>({persistence:e9(t),person_profiles:"identified_only",internal_or_test_user_hostname:null,enable_recording_console_log:!1,disable_capture_url_hashes:!0,session_recording:{maskAllInputs:!0,maskTextSelector:Ite,blockSelector:Pte,recordHeaders:!1,recordBody:!1,captureCanvas:{recordCanvas:!1}
12,maskCapturedNetworkRequestFn:Lte}}),n9="landing_visit_id",r9="dessence_landing_visit_id",Mte=/^[a-zA-Z0-9_-]{12,128}$/,R4=t=>{const e=t?.trim();if(!(!e||!Mte.test(e)))return e},EO="dessence_tracking_consent",Dte=3600*24*365,Nte=/^\d{1,3}(?:\.\d{1,3}){3}$/,$te=t=>!t||t==="localhost"||t.endsWith(".localhost")||t==="127.0.0.1"||t==="0.0.0.0"||t==="::1"||Nte.test(t),i9=t=>{const e=t.toLowerCase();if(!$te(e)){if(e==="i.dessence.ai"||e.endsWith(".i.dessence.ai"))return".i.dessence.ai";if(e==="dessence.ai"||e.endsWith(".dessence.ai"))return".dessence.ai"}},Fte=t=>t==="granted"||t==="denied"?t:"pending",Ute=t=>{try{return decodeURIComponent(t)}catch{return t}},Bte=t=>t?Fte(Ute(t)):"pending",jte=t=>{const e=t.split(";").map(n=>n.trim()).find(n=>n.startsWith(`${EO}=`));return e?Bte(e.slice(EO.length+1)):"pending"},Cp=()=>typeof document>"u"?"pending":jte(document.cookie),s9=t=>{if(typeof document>"u"||typeof window>"u")return!1;const e=[`${EO}=${encodeURIComponent(t)}`,"Path=/",`Max-Age=${Dte}`,"SameSite=Lax"],n=i9(window.location.hostname);return n&&e.push(`Domain=${n}`),window.location.protocol==="https:"&&e.push("Secure"),document.cookie=e.join("; "),!0},Hte="https://connect.facebook.net/en_US/fbevents.js",zte=({pixelId:t,enabled:e})=>{const n=t?.trim()||"",r=c=>!!n&&c==="granted",i=()=>{if(window.fbq)return;const c=((...p)=>{if(c.callMethod){c.callMethod(...p);return}c.queue?.push(p)});c.queue=[],c.loaded=!0,c.version="2.0",window.fbq=c,window._fbq=c;const u=document.createElement("script");u.src=Hte,u.async=!0;const h=document.getElementsByTagName("script")[0];if(h?.parentNode){h.parentNode.insertBefore(u,h);return}document.head.appendChild(u)},s=()=>typeof window>"u"||typeof document>"u"||!n?!1:(i(),window.__dessenceMetaPixelInitialized||(window.fbq?.("init",n),window.__dessenceMetaPixelInitialized=!0),!0);return{canUseMetaPixel:r,ensureMetaPixel:s,trackMetaPixelEvent:(c,u=Cp())=>{!r(u)||!s()||window.fbq?.("track",c)}}},Vte="a2_j6793whq0n7p",qte="https://www.redditstatic.com/ads/pixel.js",Wte=({enabled:t})=>{const e=s=>s==="granted",n=()=>{if(window.rdt)return;const s=((u,...h)=>{if(s.sendEvent){s.sendEvent(u,...h);return}s.callQueue?.push([u,...h])});s.callQueue=[],window.rdt=s;const a=document.createElement("script");a.src=qte,a.async=!0;const c=document.getElementsByTagName("script")[0];if(c?.parentNode){c.parentNode.insertBefore(a,c);return}document.head.appendChild(a)},r=()=>typeof window>"u"||typeof document>"u"?!1:(n(),window.__dessenceRedditPixelInitialized||(window.rdt?.("init",Vte),window.__dessenceRedditPixelInitialized=!0),!0);return{canUseRedditPixel:e,ensureRedditPixel:r,trackRedditPixelEvent:(s,a=Cp())=>{!e(a)||!r()||window.rdt?.("track",s)}}},Gte=new Set(["guest_id","landing_visit_id","attempt_id","auth_flow_id"]),Kte=new Set(["display_name","displayName","email","id","user_id","userId","username"]),Yte=t=>Gte.has(t)?!0:Kte.has(t)?!1:!t.endsWith("_id")&&!t.endsWith("Id"),Xte="auth_flow_id",px="dessence_auth_flow",o9=t=>t&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)?t.toLowerCase():void 0,Qte=t=>({auth_flow_id:t.auth_flow_id,...t.landing_visit_id?{landing_visit_id:t.landing_visit_id}:{}}),A4=t=>t==="granted",a9=(t,e)=>{if(!t||A4(e))return t;const n=Object.entries(t).filter(([r])=>Yte(r));if(n.length!==0)return Object.fromEntries(n)},Zte=(t,e)=>t==="granted"&&e!=="granted";let O4=null;const Jte=(t,e)=>{O4={userId:t,properties:e}},RM=()=>{O4=null},ene=()=>O4,tne=t=>Object.fromEntries(Object.entries(t).filter(([,e])=>e!=null)),nne=(t,e,n,r={},i={})=>{if(!t)return;const s=A4(e)?ene():null;Ote(t,e,{superProperties:i,bridgeProperties:tne(r),identity:s?{distinctId:s.userId,setProperties:s.properties}:void 0})},rne=()=>{s9("granted")},ine=()=>{s9("denied")},SO=(t,e)=>{gp.__loaded&&gp.capture(t,a9(e,Cp()))},rv={PAGE_VIEWED:"App - Page viewed",APP_OPENED:"App - App opened",NAVIGATION_ITEM_CLICKED:"App - Navigation item clicked",SIGNIN_PAGE_OPENED:"App - Sign-in - User opens sign-in page",SIGNIN_CREATE_ACCOUNT_CLICKED:"App - Sign-in - User clicks create account",SIGNIN_GMAIL_SELECTED:"App - Sign-in - User selects sign up with Gmail",AUTH_LOGIN_CLICKED:"App - Auth - User clicks login",AUTH_ERROR_OCCURRED:"App - Auth - User sees authorization error",AUTH_METHOD_STARTED:"auth_method_started",AUTH_CHALLENGE_SENT:"auth_challenge_sent",AUTH_CHALLENGE_REQUESTED:"auth_challenge_requested",MAGIC_LINK_OPENED:"magic_link_opened",AUTH_CANCELLED:"auth_cancelled",USER_SIGNED_OUT:"App - User signed out",CHAT_CREATED:"App - Chat - User clicks create new chat",CHAT_SELECTED:"App - Chat - User selects chat to open",CHAT_RENAMED:"App - Chat - User renames chat",CHAT_DELETED:"App - Chat - User deletes chat",CHAT_MESSAGE_SENT:"App - Chat - Message sent",CHAT_RESPONSE_RECEIVED:"App - Chat - Message received",CHAT_SUGGESTION_CLICKED:"App - Chat - User clicks suggestion",CHAT_WELCOME_SUGGESTION_CLICKED:"App - Chat - User clicks welcome suggestion",CHAT_REASONING_VIEWED:"App - Chat - User views chat reasoning",CHAT_NAME_CLICKED:"App - Chat - User clicks chat name",CHAT_RESPONSE_COPIED:"App - Chat - User copies response",CHAT_RESPONSE_RETRIED:"App - Chat - User retries response",CHAT_WEB_SEARCH_TRIGGERED:"App - Chat - Web search triggered",CHAT_LIBRARY_CONTEXT_USED:"App - Chat - Library context used",CHAT_LIBRARY_HINT_OPENED:"App - Chat - User opens library from intro hint",CHAT_ATTACHMENT_SENT:"App - Chat - User sends attachment",CHAT_ERROR_OCCURRED:"App - Chat - Error occurred",LIBRARY_ITEM_CREATED:"App - Library - User adds item",LIBRARY_ITEM_DELETED:"App - Library - User deletes item",LIBRARY_ITEM_EDITED:"App - Library - User edits item",LIBRARY_ITEM_CLICKED:"App - Library - User clicks card",LIBRARY_ITEM_DROPPED:"App - Library - User drops content onto library",LIBRARY_ITEM_DRAGGED:"App - Library - User drags item",LIBRARY_TAB_SWITCHED:"App - Library - User switches tab",LIBRARY_FILTER_CHANGED:"App - Library - User changes filter",LIBRARY_DETAIL_VIEWED:"App - Library - User opens the item",LIBRARY_BULK_UPLOAD_STARTED:"App - Library - User starts bulk upload",LIBRARY_CLIPBOARD_PASTED:"App - Library - User pastes from clipboard",LIBRARY_CARD_CLOSED:"App - Library - User closes card",LIBRARY_ANALYSIS_COMPLETED:"App - Library - Item analysis completed",LIBRARY_ANALYSIS_FAILED:"App - Library - Item analysis failed",LIBRARY_SEARCHED:"App - Library - User searches library",LIBRARY_INFO_ICON_CLICKED:"App - Library - User clicks info icon on card",PROFILE_CREATED:"App - Profile - User creates profile",PROFILE_SWITCHED:"App - Profile - User switches profile",PROFILE_RENAMED:"App - Profile - User renames profile",PROFILE_DELETED:"App - Profile - User deletes profile",OTHER_PROFILE_CLICKED:"App - Other - User clicks profile",OTHER_TRAITS_CLICKED:"App - Other - User clicks traits",TRAIT_EDITED:"App - Trait - User edits trait",TRAIT_DELETED:"App - Trait - User deletes trait",TRAIT_FILTERED:"App - Trait - User filters traits",TRAIT_SEARCHED:"App - Trait - User searches traits",TRAIT_VIEW_TOGGLED:"App - Trait - User toggles trait view",SETTINGS_OPENED:"App - Settings & UI -
12User opens settings",SETTINGS_SIMILARITY_TOGGLED:"App - Settings & UI - User toggles similarity",SETTINGS_LANGUAGE_CHANGED:"App - Settings & UI - User changes language",THEME_CHANGED:"App - Settings & UI - User changes theme",SIDEBAR_TOGGLED:"App - Settings & UI - User toggles sidebar",INTEGRATION_CONNECT_CLICKED:"App - Integrations - Connect button clicked",INTEGRATION_EXPLANATION_MODAL_SHOWN:"App - Integrations - Explanation modal shown",INTEGRATION_EXPLANATION_MODAL_CONTINUE_CLICKED:"App - Integrations - Explanation modal continue clicked",INTEGRATION_EXTERNAL_REDIRECT:"App - Integrations - External redirect",DESSENCE_CLUB_CLICKED:"App - Integrations - User clicks Join dEssence Club",EXTENSION_CONTEXT_MENU_USED:"App - Extension - User uses context menu",EXTENSION_REGION_CAPTURED:"App - Extension - User captures region",EXTENSION_SAVE_CONFIRMED:"App - Extension - User confirms save",EXTENSION_SAVE_CANCELLED:"App - Extension - User cancels save",EXTENSION_SIDEPANEL_OPENED:"App - Extension - User opens sidepanel",ONBOARDING_STEP_VIEWED:"App - Onboarding - User views onboarding step",ONBOARDING_STEP_COMPLETED:"App - Onboarding - User completes onboarding step",ONBOARDING_SKIPPED:"App - Onboarding - User skips onboarding",ONBOARDING_TEST_DATA_DELETED:"App - Onboarding - User deletes test data",ONBOARDING_TOUR_START_POPUP_VIEWED:"App - Onboarding - Tour Start - User sees the popup to start tour",ONBOARDING_STEP_1_ADD_ITEM_POPUP_VIEWED:"App - Onboarding - Tour Step 1 - User sees popup to add item to library",ONBOARDING_STEP_1_GO_TO_LIBRARY_POPUP_VIEWED:"App - Onboarding - Tour Step 1 - User sees popup to go to library",ONBOARDING_STEP_2_CHAT_HINT_VIEWED:"App - Onboarding - Tour Step 2 - User sees chat hint",ONBOARDING_STEP_2_START_CHAT_POPUP_VIEWED:"App - Onboarding - Tour Step 2 - User sees popup to start chat",ONBOARDING_STEP_3_ITEMS_POPUP_VIEWED:"App - Onboarding - Tour Step 3 - User sees popup about the items",ONBOARDING_STEP_4_DRAG_DROP_POPUP_VIEWED:"App - Onboarding - Tour Step 4 - User sees drag and drop popup",ONBOARDING_HINT_VIEWED:"onboarding_hint_viewed",ONBOARDING_HINT_CLOSED:"onboarding_hint_closed",ONBOARDING_VIDEO_HINT_SHOWN:"onboarding_video_hint_shown",DEMO_SIGNUP_COMPLETED:"signup_completed_from_demo",DEMO_THREAD_RESUMED:"thread_resumed_in_app",DEMO_CLAIM_SKIPPED_EXISTING_SESSION:"claim_skipped_existing_session",READ_RENDERED:"read_rendered",READ_CORRECTED:"read_corrected",READ_SHARED:"read_shared",BILLING_UPGRADE_CLICKED:"App - Billing - User clicks upgrade",BILLING_CHECKOUT_STARTED:"App - Billing - Checkout started",BILLING_CHECKOUT_RETURNED:"App - Billing - User returns from checkout",BILLING_PORTAL_OPENED:"App - Billing - User opens billing portal",BILLING_LIMIT_PROMPT_SHOWN:"App - Billing - Limit upgrade prompt shown",BILLING_LIMIT_PROMPT_UPGRADE_CLICKED:"App - Billing - Limit upgrade prompt upgrade clicked",BILLING_LIMIT_PROMPT_DISMISSED:"App - Billing - Limit upgrade prompt dismissed",ERROR_OCCURRED:"App - error_occurred",ERROR_API_TIMEOUT:"App - Error - API timeout",ERROR_CONTENT_SAVE_FAILED:"App - Error - Content save failed",WEBSOCKET_CONNECTED:"App - websocket_connected",WEBSOCKET_DISCONNECTED:"App - websocket_disconnected"},l9=new Map,gx=(t,e)=>{l9.set(t,e)},sne=()=>{for(const t of l9.values())t()},ou=new Map,oR=new WeakMap,wO=new Set;let Bd=0,c9=0,am=!1;const nw=()=>{c9+=1,wO.forEach(t=>t())},kr={subscribe:t=>(wO.add(t),()=>{wO.delete(t)}),snapshot:()=>c9,generation:()=>Bd,isSessionClosed:()=>am,deniedCount:()=>ou.size,reset:()=>{Bd+=1,am=!1,ou.clear(),nw()},closeSession:()=>{am=!0,nw()},admit:(t,e,n=!1)=>{if(e!==Bd)throw new rf("Account changed");if(am)throw new rf("Session ended");const r=ou.get(t);if(r&&!n)throw r.error},deny:(t,e,n,r)=>e!==Bd||am||(typeof n=="object"&&n!==null&&oR.set(n,{key:t,generation:Bd}),ou.has(t))?!1:(ou.set(t,{error:n,probe:r}),nw(),!0),isBlocked:t=>{if(am)return!0;if(typeof t!="object"||t===null)return!1;const e=oR.get(t);return e!==void 0&&(e.generation!==Bd||ou.has(e.key))},isKnownDenial:t=>typeof t=="object"&&t!==null&&oR.has(t),recheck:async()=>{const t=Bd;await Promise.allSettled([...ou.entries()].map(([e,n])=>(n.flight||(n.flight=n.probe().then(()=>{t===Bd&&ou.get(e)===n&&(ou.delete(e),nw())}).finally(()=>{n.flight=void 0})),n.flight)))}};gx("request-access",kr.reset);const I4=t=>{if(!(typeof t!="object"||t===null))return t.response?.status},u9=t=>{if(kr.isBlocked(t)||t instanceof rf)return!1;const e=I4(t);if(e!==void 0)return[500,502,503,504].includes(e);const n=t?.code;return n==="ERR_NETWORK"||n==="ECONNABORTED"||n==="ETIMEDOUT"};function Ji(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var one=typeof Symbol=="function"&&Symbol.observable||"@@observable",AM=one,aR=()=>Math.random().toString(36).substring(7).split("").join("."),ane={INIT:`@@redux/INIT${aR()}`,REPLACE:`@@redux/REPLACE${aR()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${aR()}`},hC=ane;function P4(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function L4(t,e,n){if(typeof t!="function")throw new Error(Ji(2));if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Ji(0));if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ji(1));return n(L4)(t,e)}let r=t,i=e,s=new Map,a=s,c=0,u=!1;
12function h(){a===s&&(a=new Map,s.forEach((C,R)=>{a.set(R,C)}))}function p(){if(u)throw new Error(Ji(3));return i}function v(C){if(typeof C!="function")throw new Error(Ji(4));if(u)throw new Error(Ji(5));let R=!0;h();const A=c++;return a.set(A,C),function(){if(R){if(u)throw new Error(Ji(6));R=!1,h(),a.delete(A),s=null}}}function y(C){if(!P4(C))throw new Error(Ji(7));if(typeof C.type>"u")throw new Error(Ji(8));if(typeof C.type!="string")throw new Error(Ji(17));if(u)throw new Error(Ji(9));try{u=!0,i=r(i,C)}finally{u=!1}return(s=a).forEach(A=>{A()}),C}function E(C){if(typeof C!="function")throw new Error(Ji(10));r=C,y({type:hC.REPLACE})}function S(){const C=v;return{subscribe(R){if(typeof R!="object"||R===null)throw new Error(Ji(11));function A(){const P=R;P.next&&P.next(p())}return A(),{unsubscribe:C(A)}},[AM](){return this}}}return y({type:hC.INIT}),{dispatch:y,subscribe:v,getState:p,replaceReducer:E,[AM]:S}}function lne(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:hC.INIT})>"u")throw new Error(Ji(12));if(typeof n(void 0,{type:hC.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ji(13))})}function d9(t){const e=Object.keys(t),n={};for(let s=0;s<e.length;s++){const a=e[s];typeof t[a]=="function"&&(n[a]=t[a])}const r=Object.keys(n);let i;try{lne(n)}catch(s){i=s}return function(a={},c){if(i)throw i;let u=!1;const h={};for(let p=0;p<r.length;p++){const v=r[p],y=n[v],E=a[v],S=y(E,c);if(typeof S>"u")throw c&&c.type,new Error(Ji(14));h[v]=S,u=u||S!==E}return u=u||r.length!==Object.keys(a).length,u?h:a}}function pC(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,n)=>(...r)=>e(n(...r)))}function cne(...t){return e=>(n,r)=>{const i=e(n,r);let s=()=>{throw new Error(Ji(15))};const a={getState:i.getState,dispatch:(u,...h)=>s(u,...h)},c=t.map(u=>u(a));return s=pC(...c)(i.dispatch),{...i,dispatch:s}}}function une(t){return P4(t)&&"type"in t&&typeof t.type=="string"}var f9=Symbol.for("immer-nothing"),OM=Symbol.for("immer-draftable"),Qs=Symbol.for("immer-state");function fl(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Xo=Object,iv=Xo.getPrototypeOf,gC="constructor",mx="prototype",CO="configurable",mC="enumerable",qw="writable",A1="value",Nu=t=>!!t&&!!t[Qs];function _l(t){return t?h9(t)||yx(t)||!!t[OM]||!!t[gC]?.[OM]||_x(t)||bx(t):!1}var dne=Xo[mx][gC].toString(),IM=new WeakMap;function h9(t){if(!t||!k4(t))return!1;const e=iv(t);if(e===null||e===Xo[mx])return!0;const n=Xo.hasOwnProperty.call(e,gC)&&e[gC];if(n===Object)return!0;if(!bm(n))return!1;let r=IM.get(n);return r===void 0&&(r=Function.toString.call(n),IM.set(n,r)),r===dne}function vx(t,e,n=!0){lb(t)===0?(n?Reflect.ownKeys(t):Xo.keys(t)).forEach(i=>{e(i,t[i],t)}):t.forEach((r,i)=>e(i,r,t))}function lb(t){const e=t[Qs];return e?e.type_:yx(t)?1:_x(t)?2:bx(t)?3:0}var PM=(t,e,n=lb(t))=>n===2?t.has(e):Xo[mx].hasOwnProperty.call(t,e),xO=(t,e,n=lb(t))=>n===2?t.get(e):t[e],vC=(t,e,n,r=lb(t))=>{r===2?t.set(e,n):r===3?t.add(n):t[e]=n};function fne(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var yx=Array.isArray,_x=t=>t instanceof Map,bx=t=>t instanceof Set,k4=t=>typeof t=="object",bm=t=>typeof t=="function",lR=t=>typeof t=="boolean";function hne(t){const e=+t;return Number.isInteger(e)&&String(e)===t}var _u=t=>t.copy_||t.base_,M4=t=>t.modified_?t.copy_:t.base_;function TO(t,e){if(_x(t))return new Map(t);if(bx(t))return new Set(t);if(yx(t))return Array[mx].slice.call(t);const n=h9(t);if(e===!0||e==="class_only"&&!n){const r=Xo.getOwnPropertyDescriptors(t);delete r[Qs];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const a=i[s],c=r[a];c[qw]===!1&&(c[qw]=!0,c[CO]=!0),(c.get||c.set)&&(r[a]={[CO]:!0,[qw]:!0,[mC]:c[mC],[A1]:t[a]})}return Xo.create(iv(t),r)}else{const r=iv(t);if(r!==null&&n)return{...t};const i=Xo.create(r);return Xo.assign(i,t)}}function D4(t,e=!1){return Ex(t)||Nu(t)||!_l(t)||(lb(t)>1&&Xo.defineProperties(t,{set:rw,add:rw,clear:rw,delete:rw}),Xo.freeze(t),e&&vx(t,(n,r)=>{D4(r,!0)},!1)),t}function pne(){fl(2)}var rw={[A1]:pne};function Ex(t){return t===null||!k4(t)?!0:Xo.isFrozen(t)}var yC="MapSet",RO="Patches",LM="ArrayMethods",p9={};function mp(t){const e=p9[t];return e||fl(0,t),e}var kM=t=>!!p9[t],O1,g9=()=>O1,gne=(t,e)=>
12({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:kM(yC)?mp(yC):void 0,arrayMethodsPlugin_:kM(LM)?mp(LM):void 0});function MM(t,e){e&&(t.patchPlugin_=mp(RO),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function AO(t){OO(t),t.drafts_.forEach(mne),t.drafts_=null}function OO(t){t===O1&&(O1=t.parent_)}var DM=t=>O1=gne(O1,t);function mne(t){const e=t[Qs];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function NM(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];if(t!==void 0&&t!==n){n[Qs].modified_&&(AO(e),fl(4)),_l(t)&&(t=$M(e,t));const{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(n[Qs].base_,t,e)}else t=$M(e,n);return vne(e,t,!0),AO(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==f9?t:void 0}function $M(t,e){if(Ex(e))return e;const n=e[Qs];if(!n)return _C(e,t.handledSet_,t);if(!Sx(n,t))return e;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(t);y9(n,t)}return n.copy_}function vne(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&D4(e,n)}function m9(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Sx=(t,e)=>t.scope_===e,yne=[];function v9(t,e,n,r){const i=_u(t),s=t.type_;if(r!==void 0&&xO(i,r,s)===e){vC(i,r,n,s);return}if(!t.draftLocations_){const c=t.draftLocations_=new Map;vx(i,(u,h)=>{if(Nu(h)){const p=c.get(h)||[];p.push(u),c.set(h,p)}})}const a=t.draftLocations_.get(e)??yne;for(const c of a)vC(i,c,n,s)}function _ne(t,e,n){t.callbacks_.push(function(i){const s=e;if(!s||!Sx(s,i))return;i.mapSetPlugin_?.fixSetContents(s);const a=M4(s);v9(t,s.draft_??s,a,n),y9(s,i)})}function y9(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){const{patchPlugin_:r}=e;if(r){const i=r.getPath(t);i&&r.generatePatches_(t,i,e)}m9(t)}}function bne(t,e,n){const{scope_:r}=t;if(Nu(n)){const i=n[Qs];Sx(i,r)&&i.callbacks_.push(function(){Ww(t);const a=M4(i);v9(t,n,a,e)})}else _l(n)&&t.callbacks_.push(function(){const s=_u(t);t.type_===3?s.has(n)&&_C(n,r.handledSet_,r):xO(s,e,t.type_)===n&&r.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&_C(xO(t.copy_,e,t.type_),r.handledSet_,r)})}function _C(t,e,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Nu(t)||e.has(t)||!_l(t)||Ex(t)||(e.add(t),vx(t,(r,i)=>{if(Nu(i)){const s=i[Qs];if(Sx(s,n)){const a=M4(s);vC(t,r,a,t.type_),m9(s)}}else _l(i)&&_C(i,e,n)})),t}function Ene(t,e){const n=yx(t),r={type_:n?1:0,scope_:e?e.scope_:g9(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,s=bC;n&&(i=[r],s=I1);const{revoke:a,proxy:c}=Proxy.revocable(i,s);return r.draft_=c,r.revoke_=a,[c,r]}var bC={get(t,e){if(e===Qs)return t;let n=t.scope_.arrayMethodsPlugin_;const r=t.type_===1&&typeof e=="string";if(r&&n?.isArrayOperationMethod(e))return n.createMethodInterceptor(t,e);const i=_u(t);if(!PM(i,e,t.type_))return Sne(t,i,e);const s=i[e];if(t.finalized_||!_l(s)||r&&t.operationMethod&&n?.isMutatingArrayMethod(t.operationMethod)&&hne(e))return s;if(s===cR(t.base_,e)){Ww(t);const a=t.type_===1?+e:e,c=PO(t.scope_,s,t,a);return t.copy_[a]=c}return s},has(t,e){return e in _u(t)},ownKeys(t){return Reflect.ownKeys(_u(t))},set(t,e,n){const r=_9(_u(t),e);if(r?.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const i=cR(_u(t),e),s=i?.[Qs];if(s&&s.base_===n)return t.copy_[e]=n,t.assigned_.set(e,!1),!0;if(fne(n,i)&&(n!==void 0||PM(t.base_,e,t.type_)))return!0;Ww(t),IO(t)}return t.copy_[e]===n&&(n!==void 0||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_.set(e,!0),bne(t,e,n)),!0},deleteProperty(t,e){return Ww(t),cR(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),IO(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){const n=_u(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{[qw]:!0,[CO]:t.type_!==1||e!=="length",[mC]:r[mC],[A1]:n[e]}},defineProperty(){fl(11)},getPrototypeOf(t){return iv(t.base_)},setPrototypeOf(){fl(12)}},I1={};for(let t in bC){let e=bC[t];I1[t]=function(){const n=arguments;return n[0]=n[0][0],e.apply(this,n)}}I1.deleteProperty=function(t,e){return I1.set.call(this,t,e,void 0)};I1.set=function(t,e,n){return bC.set.call(this,t[0],e,n,t[0])};function cR(t,e){const n=t[Qs];return(n?_u(n):t)[e]}function Sne(t,e,n){const r=_9(e,n);return r?A1 in r?r[A1]:r.get?.call(t.draft_):void 0}function _9(t,e){if(!(e in t))return;let n=iv(t);for(;n;){const r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=iv(n)}}function IO(t){t.modified_||(t.modified_=!0,t.parent_&&IO(t.parent_))}function Ww(t){t.copy_||(t.assigned_=new Map,t.copy_=TO(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var wne=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,n,r)=>{if(bm(e)&&!bm(n)){const s=n;n=e;const a=this;return function(u=s,...h){return a.produce(u,p=>n.call(this,p,...h))}}bm(n)||fl(6),r!==void 0&&!bm(r)&&fl(7);let i;if(_l(e)){const s=DM(this),a=PO(s,e,void 0);let c=!0;try{i=n(a),c=!1}finally{c?AO(s):OO(s)}return MM(s,r),NM(i,s)}else if(!e||!k4(e)){if(i=n(e),i===void 0&&(i=e),i===f9&&(i=void 0),this.autoFreeze_&&D4(i,!0),r){const s=[],a=[];mp(RO).generateReplacementPatches_(e,i,{patches_:s,inversePatches_:a}),r(s,a)}return i}else fl(1,e)},this.produceWithPatches=(e,n)=>{if(bm(e))return(a,...c)=>this.produceWithPatches(a,u=>e(u,...c));let r,i;return[this.produce(e,n,(a,c)=>{r=a,i=c}
12),r,i]},lR(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),lR(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),lR(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){_l(t)||fl(8),Nu(t)&&(t=Cne(t));const e=DM(this),n=PO(e,t,void 0);return n[Qs].isManual_=!0,OO(e),n}finishDraft(t,e){const n=t&&t[Qs];(!n||!n.isManual_)&&fl(9);const{scope_:r}=n;return MM(r,e),NM(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const i=e[n];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}n>-1&&(e=e.slice(n+1));const r=mp(RO).applyPatches_;return Nu(t)?r(t,e):this.produce(t,i=>r(i,e))}};function PO(t,e,n,r){const[i,s]=_x(e)?mp(yC).proxyMap_(e,n):bx(e)?mp(yC).proxySet_(e,n):Ene(e,n);return(n?.scope_??g9()).drafts_.push(i),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?_ne(n,s,r):s.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:h}=u;s.modified_&&h&&h.generatePatches_(s,[],u)}),i}function Cne(t){return Nu(t)||fl(10,t),b9(t)}function b9(t){if(!_l(t)||Ex(t))return t;const e=t[Qs];let n,r=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=TO(t,e.scope_.immer_.useStrictShallowCopy_),r=e.scope_.immer_.shouldUseStrictIteration()}else n=TO(t,!0);return vx(n,(i,s)=>{vC(n,i,b9(s))},r),e&&(e.finalized_=!1),n}var xne=new wne,E9=xne.produce;function S9(t){return({dispatch:n,getState:r})=>i=>s=>typeof s=="function"?s(n,r,t):i(s)}var Tne=S9(),Rne=S9,Ane=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?pC:pC.apply(null,arguments)},One=t=>t&&typeof t.match=="function";function e1(t,e){function n(...r){if(e){let i=e(...r);if(!i)throw new Error(Lu(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:r[0]}}return n.toString=()=>`${t}`,n.type=t,n.match=r=>une(r)&&r.type===t,n}var w9=class k_ extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,k_.prototype)}static get[Symbol.species](){return k_}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new k_(...e[0].concat(this)):new k_(...e.concat(this))}};function FM(t){return _l(t)?E9(t,()=>{}):t}function iw(t,e,n){return t.has(e)?t.get(e):t.set(e,n(e)).get(e)}function Ine(t){return typeof t=="boolean"}var Pne=()=>function(e){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=e??{};let a=new w9;return n&&(Ine(n)?a.push(Tne):a.push(Rne(n.extraArgument))),a},Lne="RTK_autoBatch",UM=t=>e=>{setTimeout(e,t)},kne=(t,e)=>n=>{let r=!1;const i=()=>{r||(r=!0,cancelAnimationFrame(s),clearTimeout(a),n())},s=t(i),a=setTimeout(i,e)},Mne=(t={type:"raf"})=>e=>(...n)=>{const r=e(...n);let i=!0,s=!1,a=!1;const c=new Set,u=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?kne(window.requestAnimationFrame,100):UM(10):t.type==="callback"?t.queueNotification:UM(t.timeout),h=()=>{a=!1,s&&(s=!1,c.forEach(p=>p()))};return Object.assign({},r,{subscribe(p){const v=()=>i&&p(),y=r.subscribe(v);return c.add(p),()=>{y(),c.delete(p)}},dispatch(p){try{return i=!p?.meta?.[Lne],s=!i,s&&(a||(a=!0,u(h))),r.dispatch(p)}finally{i=!0}}})},Dne=t=>function(n){const{autoBatch:r=!0}=n??{};let i=new w9(t);return r&&i.push(Mne(typeof r=="object"?r:void 0)),i};function Nne(t){const e=Pne(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{};let c;if(typeof n=="function")c=n;else if(P4(n))c=d9(n);else throw new Error(Lu(1));let u;typeof r=="function"?u=r(e):u=e();let h=pC;i&&(h=Ane({trace:!1,...typeof i=="object"&&i}));const p=cne(...u),v=Dne(p);let y=typeof a=="function"?a(v):v();const E=h(...y);return L4(c,s,E)}function C9(t){const e={},n=[];let r;const i={addCase(s,a){const c=typeof s=="string"?s:s.type;if(!c)throw new Error(Lu(28));if(c in e)throw new Error(Lu(29));return e[c]=a,i},addAsyncThunk(s,a){return a.pending&&(e[s.pending.type]=a.pending),a.rejected&&(e[s.rejected.type]=a.rejected),a.fulfilled&&(e[s.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:s.settled,reducer:a.settled}),i},addMatcher(s,a){return n.push({matcher:s,reducer:a}),i},addDefaultCase(s){return r=s,i}};return t(i),[e,n,r]}function $ne(t){return typeof t=="function"}function Fne(t,e){let[n,r,i]=C9(e),s;if($ne(t))s=()=>FM(t());else{const c=FM(t);s=()=>c}function a(c=s(),u){let h=[n[u.type],...r.filter(({matcher:p})=>p(u)).map(({reducer:p})=>p)];return h.filter(p=>!!p).length===0&&(h=[i]),h.reduce((p,v)=>{if(v)if(Nu(p)){const E=v(p,u);return E===void 0?p:E}else{if(_l(p))return E9(p,y=>v(y,u));{const y=v(p,u);if(y===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return p},c)}return a.getInitialState=s,a}var Une=(t,e)=>One(t)?t.match(e):t(e);function Bne(...t){return e=>t.some(n=>Une(n,e))}var jne="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hne=(t=21)=>{let e="",n=t;
12for(;n--;)e+=jne[Math.random()*64|0];return e},zne=["name","message","stack","code"],uR=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},BM=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Vne=t=>{if(typeof t=="object"&&t!==null){const e={};for(const n of zne)typeof t[n]=="string"&&(e[n]=t[n]);return e}return{message:String(t)}},jM="External signal was aborted",Ts=(()=>{function t(e,n,r){const i=e1(e+"/fulfilled",(u,h,p,v)=>({payload:u,meta:{...v||{},arg:p,requestId:h,requestStatus:"fulfilled"}})),s=e1(e+"/pending",(u,h,p)=>({payload:void 0,meta:{...p||{},arg:h,requestId:u,requestStatus:"pending"}})),a=e1(e+"/rejected",(u,h,p,v,y)=>({payload:v,error:(r&&r.serializeError||Vne)(u||"Rejected"),meta:{...y||{},arg:p,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function c(u,{signal:h}={}){return(p,v,y)=>{const E=r?.idGenerator?r.idGenerator(u):Hne(),S=new AbortController;let x,C;function R(O){C=O,S.abort()}h&&(h.aborted?R(jM):h.addEventListener("abort",()=>R(jM),{once:!0}));const A=(async function(){let O;try{let L=r?.condition?.(u,{getState:v,extra:y});if(Wne(L)&&(L=await L),L===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const D=new Promise((N,k)=>{x=()=>{k({name:"AbortError",message:C||"Aborted"})},S.signal.addEventListener("abort",x,{once:!0})});p(s(E,u,r?.getPendingMeta?.({requestId:E,arg:u},{getState:v,extra:y}))),O=await Promise.race([D,Promise.resolve(n(u,{dispatch:p,getState:v,extra:y,requestId:E,signal:S.signal,abort:R,rejectWithValue:((N,k)=>new uR(N,k)),fulfillWithValue:((N,k)=>new BM(N,k))})).then(N=>{if(N instanceof uR)throw N;return N instanceof BM?i(N.payload,E,u,N.meta):i(N,E,u)})])}catch(L){O=L instanceof uR?a(null,E,u,L.payload,L.meta):a(L,E,u)}finally{x&&S.signal.removeEventListener("abort",x)}return r&&!r.dispatchConditionRejection&&a.match(O)&&O.meta.condition||p(O),O})();return Object.assign(A,{abort:R,requestId:E,arg:u,unwrap(){return A.then(qne)}})}}return Object.assign(c,{pending:s,rejected:a,fulfilled:i,settled:Bne(a,i),typePrefix:e})}return t.withTypes=()=>t,t})();function qne(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Wne(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Gne=Symbol.for("rtk-slice-createasyncthunk");function Kne(t,e){return`${t}/${e}`}function Yne({creators:t}={}){const e=t?.asyncThunk?.[Gne];return function(r){const{name:i,reducerPath:s=i}=r;if(!i)throw new Error(Lu(11));const a=(typeof r.reducers=="function"?r.reducers(Qne()):r.reducers)||{},c=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(O,P){const L=typeof O=="string"?O:O.type;if(!L)throw new Error(Lu(12));if(L in u.sliceCaseReducersByType)throw new Error(Lu(13));return u.sliceCaseReducersByType[L]=P,h},addMatcher(O,P){return u.sliceMatchers.push({matcher:O,reducer:P}),h},exposeAction(O,P){return u.actionCreators[O]=P,h},exposeCaseReducer(O,P){return u.sliceCaseReducersByName[O]=P,h}};c.forEach(O=>{const P=a[O],L={reducerName:O,type:Kne(i,O),createNotation:typeof r.reducers=="function"};Jne(P)?tre(L,P,h,e):Zne(L,P,h)});function p(){const[O={},P=[],L=void 0]=typeof r.extraReducers=="function"?C9(r.extraReducers):[r.extraReducers],D={...O,...u.sliceCaseReducersByType};return Fne(r.initialState,N=>{for(let k in D)N.addCase(k,D[k]);for(let k of u.sliceMatchers)N.addMatcher(k.matcher,k.reducer);for(let k of P)N.addMatcher(k.matcher,k.reducer);L&&N.addDefaultCase(L)})}const v=O=>O,y=new Map,E=new WeakMap;let S;function x(O,P){return S||(S=p()),S(O,P)}function C(){return S||(S=p()),S.getInitialState()}function R(O,P=!1){function L(N){let k=N[O];return typeof k>"u"&&P&&(k=iw(E,L,C)),k}function D(N=v){const k=iw(y,P,()=>new WeakMap);return iw(k,N,()=>{const U={};for(const[F,V]of Object.entries(r.selectors??{}))U[F]=Xne(V,N,()=>iw(E,N,C),P);return U})}return{reducerPath:O,getSelectors:D,get selectors(){return D(L)},selectSlice:L}}const A={name:i,reducer:x,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:C,...R(s),injectInto(O,{reducerPath:P,...L}={}){const D=P??s;return O.inject({reducerPath:D,reducer:x},L),{...A,...R(D,!0)}}};return A}}function Xne(t,e,n,r){function i(s,...a){let c=e(s);return typeof c>"u"&&r&&(c=n()),t(c,...a)}return i.unwrapped=t,i}var N4=Yne();function Qne(){function t(e,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...n}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...n){return e(...n)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:n}},asyncThunk:t}}function Zne({type:t,reducerName:e,createNotation:n},r,i){let s,a;if("reducer"in r){if(n&&!ere(r))throw new Error(Lu(17));s=r.reducer,a=r.prepare}else s=r;i.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,a?e1(t,a):e1(t))}function Jne(t){return t._reducerDefinitionType==="asyncThunk"}function ere(t){return t._reducerDefinitionType==="reducerWithPrepare"}function tre({type:t,reducerName:e},n,r,i){if(!i)throw new Error(Lu(18));const{payloadCreator:s,fulfilled:a,pending:c,rejected:u,settled:h,options:p}=n,v=i(t,s,p);r.exposeAction(e,v),a&&r.addCase(v.fulfilled,a),c&&r.addCase(v.pending,c),u&&r.addCase(v.rejected,u),h&&r.addMatcher(v.settled,h),r.exposeCaseReducer(e,{fulfilled:a||sw,pending:c||sw,rejected:u||sw,settled:h||sw})}function sw(){}function Lu(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var $4="persist:",F4="persist/FLUSH",wx="persist/REHYDRATE",U4="persist/PAUSE",B4="persist/PERSIST",j4="persist/PURGE",H4="persist/REGISTER",nre=-1;function Gw(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gw=function(n){return typeof n}:Gw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Gw(t)}function HM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function rre(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
vendor: 4,987 bytes, line 12
12e%2?HM(n,!0).forEach(function(r){ire(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):HM(n).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ire(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sre(t,e,n,r){r.debug;var i=rre({},n);return t&&Gw(t)==="object"&&Object.keys(t).forEach(function(s){s!=="_persist"&&e[s]===n[s]&&(i[s]=t[s])}),i}function ore(t){var e=t.blacklist||null,n=t.whitelist||null,r=t.transforms||[],i=t.throttle||0,s="".concat(t.keyPrefix!==void 0?t.keyPrefix:$4).concat(t.key),a=t.storage,c;t.serialize===!1?c=function(L){return L}:typeof t.serialize=="function"?c=t.serialize:c=are;var u=t.writeFailHandler||null,h={},p={},v=[],y=null,E=null,S=function(L){Object.keys(L).forEach(function(D){R(D)&&h[D]!==L[D]&&v.indexOf(D)===-1&&v.push(D)}),Object.keys(h).forEach(function(D){L[D]===void 0&&R(D)&&v.indexOf(D)===-1&&h[D]!==void 0&&v.push(D)}),y===null&&(y=setInterval(x,i)),h=L};function x(){if(v.length===0){y&&clearInterval(y),y=null;return}var P=v.shift(),L=r.reduce(function(D,N){return N.in(D,P,h)},h[P]);if(L!==void 0)try{p[P]=c(L)}catch(D){console.error("redux-persist/createPersistoid: error serializing state",D)}else delete p[P];v.length===0&&C()}function C(){Object.keys(p).forEach(function(P){h[P]===void 0&&delete p[P]}),E=a.setItem(s,c(p)).catch(A)}function R(P){return!(n&&n.indexOf(P)===-1&&P!=="_persist"||e&&e.indexOf(P)!==-1)}function A(P){u&&u(P)}var O=function(){for(;v.length!==0;)x();return E||Promise.resolve()};return{update:S,flush:O}}function are(t){return JSON.stringify(t)}function lre(t){var e=t.transforms||[],n="".concat(t.keyPrefix!==void 0?t.keyPrefix:$4).concat(t.key),r=t.storage;t.debug;var i;return t.deserialize===!1?i=function(a){return a}:typeof t.deserialize=="function"?i=t.deserialize:i=cre,r.getItem(n).then(function(s){if(s)try{var a={},c=i(s);return Object.keys(c).forEach(function(u){a[u]=e.reduceRight(function(h,p){return p.out(h,u,c)},i(c[u]))}),a}catch(u){throw u}else return})}function cre(t){return JSON.parse(t)}function ure(t){var e=t.storage,n="".concat(t.keyPrefix!==void 0?t.keyPrefix:$4).concat(t.key);return e.removeItem(n,dre)}function dre(t){}function zM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function au(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zM(n,!0).forEach(function(r){fre(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zM(n).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function fre(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hre(t,e){if(t==null)return{};var n=pre(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function pre(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var gre=5e3;function mre(t,e){var n=t.version!==void 0?t.version:nre;t.debug;var r=t.stateReconciler===void 0?sre:t.stateReconciler,i=t.getStoredState||lre,s=t.timeout!==void 0?t.timeout:gre,a=null,c=!1,u=!0,h=function(v){return v._persist.rehydrated&&a&&!u&&a.update(v),v};return function(p,v){var y=p||{},E=y._persist,S=hre(y,["_persist"]),x=S;if(v.type===B4){var C=!1,R=function(k,U){C||(v.rehydrate(t.key,k,U),C=!0)};if(s&&setTimeout(function(){!C&&R(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(t.key,'"')))},s),u=!1,a||(a=ore(t)),E)return au({},e(x,v),{_persist:E});if(typeof v.rehydrate!="function"||typeof v.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return v.register(t.key),i(t).then(function(N){var k=t.migrate||function(U,F){return Promise.resolve(U)};k(N,n).then(function(U){R(U)},function(U){R(void 0,U)})},function(N){R(void 0,N)}),au({},e(x,v),{_persist:{version:n,rehydrated:!1}})}else{if(v.type===j4)return c=!0,v.result(ure(t)),au({},e(x,v),{_persist:E});if(v.type===F4)return v.result(a&&a.flush()),au({},e(x,v),{_persist:E});if(v.type===U4)u=!0;else if(v.type===wx){if(c)return au({},x,{_persist:au({},E,{rehydrated:!0})});if(v.key===t.key){var A=e(x,v),O=v.payload,P=r!==!1&&O!==void 0?r(O,p,A,t):A,L=au({},P,{_persist:au({},E,{rehydrated:!0})});return h(L)}}}if(!E)return e(p,v);var D=e(x,v);return D===x?p:h(au({},D,{_persist:E}))}}
12function VM(t){return _re(t)||yre(t)||vre()}function vre(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function yre(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}function _re(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function qM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function LO(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qM(n,!0).forEach(function(r){bre(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qM(n).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bre(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var x9={registry:[],bootstrapped:!1},Ere=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x9,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case H4:return LO({},e,{registry:[].concat(VM(e.registry),[n.key])});case wx:var r=e.registry.indexOf(n.key),i=VM(e.registry);return i.splice(r,1),LO({},e,{registry:i,bootstrapped:i.length===0});default:return e}};function Sre(t,e,n){var r=L4(Ere,x9,void 0),i=function(u){r.dispatch({type:H4,key:u})},s=function(u,h,p){var v={type:wx,payload:h,err:p,key:u};t.dispatch(v),r.dispatch(v)},a=LO({},r,{purge:function(){var u=[];return t.dispatch({type:j4,result:function(p){u.push(p)}}),Promise.all(u)},flush:function(){var u=[];return t.dispatch({type:F4,result:function(p){u.push(p)}}),Promise.all(u)},pause:function(){t.dispatch({type:U4})},persist:function(){t.dispatch({type:B4,register:i,rehydrate:s})}});return a.persist(),a}var bv=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},wre=class extends bv{#e;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},z4=new wre,Cre={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},xre=class{#e=Cre;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},Kh=new xre;function Tre(t){setTimeout(t,0)}var Rre=typeof window>"u"||"Deno"in globalThis;function qs(){}function Are(t,e){return typeof t=="function"?t(e):t}function kO(t){return typeof t=="number"&&t>=0&&t!==1/0}function T9(t,e){return Math.max(t+(e||0)-Date.now(),0)}function sf(t,e){return typeof t=="function"?t(e):t}function Go(t,e){return typeof t=="function"?t(e):t}function WM(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:a,stale:c}=t;if(a){if(r){if(e.queryHash!==V4(a,e.options))return!1}else if(!P1(e.queryKey,a))return!1}if(n!=="all"){const u=e.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof c=="boolean"&&e.isStale()!==c||i&&i!==e.state.fetchStatus||s&&!s(e))}function GM(t,e){const{exact:n,status:r,predicate:i,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(vp(e.options.mutationKey)!==vp(s))return!1}else if(!P1(e.options.mutationKey,s))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function V4(t,e){return(e?.queryKeyHashFn||vp)(t)}function vp(t){return JSON.stringify(t,(e,n)=>MO(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function P1(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>P1(t[n],e[n])):!1}var Ore=Object.prototype.hasOwnProperty;function R9(t,e,n=0){if(t===e)return t;if(n>500)return e;const r=KM(t)&&KM(e);if(!r&&!(MO(t)&&MO(e)))return e;const s=(r?t:Object.keys(t)).length,a=r?e:Object.keys(e),c=a.length,u=r?new Array(c):{};let h=0;for(let p=0;p<c;p++){const v=r?p:a[p],y=t[v],E=e[v];
vendor: 4,381 bytes, line 12
12if(y===E){u[v]=y,(r?p<s:Ore.call(t,v))&&h++;continue}if(y===null||E===null||typeof y!="object"||typeof E!="object"){u[v]=E;continue}const S=R9(y,E,n+1);u[v]=S,S===y&&h++}return s===c&&h===s?t:u}function EC(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function KM(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function MO(t){if(!YM(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!YM(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function YM(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ire(t){return new Promise(e=>{Kh.setTimeout(e,t)})}function DO(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?R9(t,e):e}function Pre(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function Lre(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var Cx=Symbol();function A9(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===Cx?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function q4(t,e){return typeof t=="function"?t(...e):!!t}function kre(t,e,n){let r=!1,i;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(i??=e(),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),t}var L1=(()=>{let t=()=>Rre;return{isServer(){return t()},setIsServer(e){t=e}}})();function NO(){let t,e;const n=new Promise((i,s)=>{t=i,e=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),t(i)},n.reject=i=>{r({status:"rejected",reason:i}),e(i)},n}var Mre=Tre;function Dre(){let t=[],e=0,n=c=>{c()},r=c=>{c()},i=Mre;const s=c=>{e?t.push(c):i(()=>{n(c)})},a=()=>{const c=t;t=[],c.length&&i(()=>{r(()=>{c.forEach(u=>{n(u)})})})};return{batch:c=>{let u;e++;try{u=c()}finally{e--,e||a()}return u},batchCalls:c=>(...u)=>{s(()=>{c(...u)})},schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{i=c}}}var Ai=Dre(),Nre=class extends bv{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(n=>{n(t)}))}isOnline(){return this.#e}},SC=new Nre;function $re(t){return Math.min(1e3*2**t,3e4)}function O9(t){return(t??"online")==="online"?SC.isOnline():!0}var $O=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function I9(t){let e=!1,n=0,r;const i=NO(),s=()=>i.status!=="pending",a=x=>{if(!s()){const C=new $O(x);y(C),t.onCancel?.(C)}},c=()=>{e=!0},u=()=>{e=!1},h=()=>z4.isFocused()&&(t.networkMode==="always"||SC.isOnline())&&t.canRun(),p=()=>O9(t.networkMode)&&t.canRun(),v=x=>{s()||(r?.(),i.resolve(x))},y=x=>{s()||(r?.(),i.reject(x))},E=()=>new Promise(x=>{r=C=>{(s()||h())&&x(C)},t.onPause?.()}).then(()=>{r=void 0,s()||t.onContinue?.()}),S=()=>{if(s())return;let x;const C=n===0?t.initialPromise:void 0;try{x=C??t.fn()}catch(R){x=Promise.reject(R)}Promise.resolve(x).then(v).catch(R=>{if(s())return;const A=t.retry??(L1.isServer()?0:3),O=t.retryDelay??$re,P=typeof O=="function"?O(n,R):O,L=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,R);if(e||!L){y(R);return}n++,t.onFail?.(n,R),Ire(P).then(()=>h()?void 0:E()).then(()=>{e?y(R):S()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(r?.(),i),cancelRetry:c,continueRetry:u,canStart:p,start:()=>(p()?S():E().then(S),i)}}var P9=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kO(this.gcTime)&&(this.#e=Kh.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(L1.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Kh.clearTimeout(this.#e),this.#e=void 0)}};function Fre(t){return{onFetch:(e,n)=>
12{const r=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,s=e.state.data?.pages||[],a=e.state.data?.pageParams||[];let c={pages:[],pageParams:[]},u=0;const h=async()=>{let p=!1;const v=S=>{kre(S,()=>e.signal,()=>p=!0)},y=A9(e.options,e.fetchOptions),E=async(S,x,C)=>{if(p)return Promise.reject(e.signal.reason);if(x==null&&S.pages.length)return Promise.resolve(S);const A=(()=>{const D={client:e.client,queryKey:e.queryKey,pageParam:x,direction:C?"backward":"forward",meta:e.options.meta};return v(D),D})(),O=await y(A),{maxPages:P}=e.options,L=C?Lre:Pre;return{pages:L(S.pages,O,P),pageParams:L(S.pageParams,x,P)}};if(i&&s.length){const S=i==="backward",x=S?L9:FO,C={pages:s,pageParams:a},R=x(r,C);c=await E(C,R,S)}else{const S=t??s.length;do{const x=u===0?a[0]??r.initialPageParam:FO(r,c);if(u>0&&x==null)break;c=await E(c,x),u++}while(u<S)}return c};e.options.persister?e.fetchFn=()=>e.options.persister?.(h,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=h}}}function FO(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function L9(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}function Ure(t,e){return e?FO(t,e)!=null:!1}function Bre(t,e){return!e||!t.getPreviousPageParam?!1:L9(t,e)!=null}var jre=class extends P9{#e;#t;#n;#r;#s;#i;#a;#o;constructor(t){super(),this.#o=!1,this.#a=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#s=t.client,this.#r=this.#s.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=QM(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#i?.promise}setOptions(t){if(this.options={...this.#a,...t},t?._type&&(this.#e=t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=QM(this.options);e.data!==void 0&&(this.setState(XM(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(t,e){const n=DO(this.state.data,t,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t){this.#l({type:"setState",state:t})}cancel(t){const e=this.#i?.promise;return this.#i?.cancel(t),e?e.then(qs).catch(qs):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Go(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Cx||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>sf(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!T9(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#i&&(this.#o||this.#u()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(t&&this.setOptions(t),!this.options.queryFn){const u=this.observers.find(h=>h.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)}
vendor: 8,591 bytes, line 12
12)},i=()=>{const u=A9(this.options,e),p=(()=>{const v={client:this.#s,queryKey:this.queryKey,meta:this.meta};return r(v),v})();return this.#o=!1,this.options.persister?this.options.persister(u,p,this):u(p)},a=(()=>{const u={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:i};return r(u),u})();(this.#e==="infinite"?Fre(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:"fetch",meta:a.fetchOptions?.meta}),this.#i=I9({initialPromise:e?.initialPromise,fn:a.fetchFn,onCancel:u=>{u instanceof $O&&u.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(u,h)=>{this.#l({type:"failed",failureCount:u,error:h})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{const u=await this.#i.start();if(u===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(u),this.#r.config.onSuccess?.(u,this),this.#r.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof $O){if(u.silent)return this.#i.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#l({type:"error",error:u}),this.#r.config.onError?.(u,this),this.#r.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#l(t){const e=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...k9(n.data,this.options),fetchMeta:t.meta??null};case"success":const r={...n,...XM(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=t.manual?r:void 0,r;case"error":const i=t.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=e(this.state),Ai.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:t})})}};function k9(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:O9(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function XM(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function QM(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var M9=class extends bv{constructor(t,e){super(),this.options=e,this.#e=t,this.#o=null,this.#a=NO(),this.bindMethods(),this.setOptions(e)}#e;#t=void 0;#n=void 0;#r=void 0;#s;#i;#a;#o;#u;#l;#p;#d;#f;#c;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),ZM(this.#t,this.options)?this.#h():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return UO(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return UO(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#E(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Go(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),e._defaulted&&!EC(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&JM(this.#t,n,this.options,e)&&this.#h(),this.updateResult(),r&&(this.#t!==n||Go(this.options.enabled,this.#t)!==Go(e.enabled,this.#t)||sf(this.options.staleTime,this.#t)!==sf(e.staleTime,this.#t))&&this.#m();const i=this.#v();r&&(this.#t!==n||Go(this.options.enabled,this.#t)!==Go(e.enabled,this.#t)||i!==this.#c)&&this.#y(i)}getOptimisticResult(t){const e=this.#e.getQueryCache().build(this.#e,t),n=this.createResult(e,t);return zre(this,n)&&(this.#r=n,this.#i=this.options,this.#s=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(t,e){return new Proxy(t,{get:(n,r)=>(this.trackProp(r),e?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(t){this.#g.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#e.defaultQueryOptions(t),n=this.#e.getQueryCache().build(this.#e,e);return n.fetch().then(()=>this.createResult(n,e))}fetch(t){return this.#h({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(t){this.#S();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(qs)),e}#m(){this.#b();const t=sf(this.options.staleTime,this.#t);if(L1.isServer()||this.#r.isStale||!kO(t))return;const n=T9(this.#r.dataUpdatedAt,t)+1;this.#d=Kh.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(t){this.#E(),this.#c=t,!(L1.isServer()||Go(this.options.enabled,this.#t)===!1||!kO(this.#c)||this.#c===0)&&(this.#f=Kh.setInterval(()=>{(this.options.refetchIntervalInBackground||z4.isFocused())&&this.#h()},this.#c))}#_(){this.#m(),this.#y(this.#v())}#b(){this.#d!==void 0&&(Kh.clearTimeout(this.#d),this.#d=void 0)}#E(){this.#f!==void 0&&(Kh.clearInterval(this.#f),this.#f=void 0)}createResult(t,e){const n=this.#t,r=this.options,i=this.#r,s=this.#s,a=this.#i,u=t!==n?t.state:this.#n,{state:h}=t;let p={...h},v=!1,y;if(e._optimisticResults){const k=this.hasListeners(),U=!k&&ZM(t,e),F=k&&JM(t,n,e,r);(U||F)&&(p={...p,...k9(h.data,t.options)}),e._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:E,errorUpdatedAt:S,status:x}=p;y=p.data;let C=!1;if(e.placeholderData!==void 0&&y===void 0&&x==="pending"){let k;i?.isPlaceholderData&&e.placeholderData===a?.placeholderData?(k=i.data,C=!0):k=typeof e.placeholderData=="function"?e.placeholderData(this.#p?.state.data,this.#p):e.placeholderData,k!==void 0&&(x="success",y=DO(i?.data,k,e),v=!0)}if(e.select&&y!==void 0&&!C)if(i&&y===s?.data&&e.select===this.#u)y=this.#l;else try{this.#u=e.select,y=e.select(y),y=DO(i?.data,y,e),this.#l=y,this.#o=null}catch(k){this.#o=k}this.#o&&(E=this.#o,y=this.#l,S=Date.now(),x="error");const R=p.fetchStatus==="fetching",A=x==="pending",O=x==="error",P=A&&R,L=y!==void 0,N={status:x,fetchStatus:p.fetchStatus,isPending:A,isSuccess:x==="success",isError:O,isInitialLoading:P,isLoading:P,data:y,dataUpdatedAt:p.dataUpdatedAt,error:E,errorUpdatedAt:S,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:p.dataUpdateCount>u.dataUpdateCount||p.errorUpdateCount>u.errorUpdateCount,isFetching:R,isRefetching:R&&!A,isLoadingError:O&&!L,isPaused:p.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:O&&L,isStale:W4(t,e),refetch:this.refetch,promise:this.#a,isEnabled:Go(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const k=N.data!==void 0,U=N.status==="error"&&!k,F=Z=>{U?Z.reject(N.error):k&&Z.resolve(N.data)},V=()=>{const Z=this.#a=N.promise=NO();F(Z)},G=this.#a;switch(G.status){case"pending":t.queryHash===n.queryHash&&F(G);break;case"fulfilled":(U||N.data!==G.value)&&V();break;case"rejected":(!U||N.error!==G.reason)&&V();break}}return N}updateResult(){const t=this.#r,e=this.createResult(this.#t,this.options);if(this.#s=this.#t.state,this.#i=this.options,this.#s.data!==void 0&&(this.#p=this.#t),EC(e,t))return;this.#r=e;const n=()=>
12{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#g.size)return!0;const s=new Set(i??this.#g);return this.options.throwOnError&&s.add("error"),Object.keys(this.#r).some(a=>{const c=a;return this.#r[c]!==t[c]&&s.has(c)})};this.#w({listeners:n()})}#S(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#w(t){Ai.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Hre(t,e){return Go(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&Go(e.retryOnMount,t)===!1)}function ZM(t,e){return Hre(t,e)||t.state.data!==void 0&&UO(t,e,e.refetchOnMount)}function UO(t,e,n){if(Go(e.enabled,t)!==!1&&sf(e.staleTime,t)!=="static"){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&W4(t,e)}return!1}function JM(t,e,n,r){return(t!==e||Go(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&W4(t,n)}function W4(t,e){return Go(e.enabled,t)!==!1&&t.isStaleByTime(sf(e.staleTime,t))}function zre(t,e){return!EC(t.getCurrentResult(),e)}var Vre=class extends M9{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){t._type="infinite",super.setOptions(t)}getOptimisticResult(t){return t._type="infinite",super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){const{state:n}=t,r=super.createResult(t,e),{isFetching:i,isRefetching:s,isError:a,isRefetchError:c}=r,u=n.fetchMeta?.fetchMore?.direction,h=a&&u==="forward",p=i&&u==="forward",v=a&&u==="backward",y=i&&u==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Ure(e,n.data),hasPreviousPage:Bre(e,n.data),isFetchNextPageError:h,isFetchingNextPage:p,isFetchPreviousPageError:v,isFetchingPreviousPage:y,isRefetchError:c&&!h&&!v,isRefetching:s&&!p&&!y}}},qre=class extends P9{#e;#t;#n;#r;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||D9(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#s({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=I9({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,a)=>{this.#s({type:"failed",failureCount:s,error:a})},onPause:()=>{this.#s({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",i=!this.#r.canStart();try{if(r)e();else{this.#s({type:"pending",variables:t,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,n);const a=await this.options.onMutate?.(t,n);a!==this.state.context&&this.#s({type:"pending",context:a,variables:t,isPaused:i})}const s=await this.#r.start();return await this.#n.config.onSuccess?.(s,t,this.state.context,this,n),await this.options.onSuccess?.(s,t,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,t,this.state.context,n),this.#s({type:"success",data:s}),s}catch(s){try{await this.#n.config.onError?.(s,t,this.state.context,this,n)}catch(a){Promise.reject(a)}try{await this.options.onError?.(s,t,this.state.context,n)}catch(a){Promise.reject(a)}try{await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n)}catch(a){Promise.reject(a)}try{await this.options.onSettled?.(void 0,s,t,this.state.context,n)}catch(a){Promise.reject(a)}throw this.#s({type:"error",error:s}),s}finally{this.#n.runNext(this)}}#s(t){const e=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};
vendor: 1,579 bytes, line 12
12case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),Ai.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function D9(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wre=class extends bv{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,e,n){const r=new qre({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(e),state:n});return this.add(r),r}add(t){this.#e.add(t);const e=ow(t);if(typeof e=="string"){const n=this.#t.get(e);n?n.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=ow(t);if(typeof e=="string"){const n=this.#t.get(e);if(n)if(n.length>1){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}else n[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=ow(t);if(typeof e=="string"){const r=this.#t.get(e)?.find(i=>i.state.status==="pending");return!r||r===t}else return!0}runNext(t){const e=ow(t);return typeof e=="string"?this.#t.get(e)?.find(r=>
12r!==t&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ai.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(n=>GM(e,n))}findAll(t={}){return this.getAll().filter(e=>GM(t,e))}notify(t){Ai.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return Ai.batch(()=>Promise.all(t.map(e=>e.continue().catch(qs))))}};function ow(t){return t.options.scope?.id}var Gre=class extends bv{#e;#t=void 0;#n;#r;constructor(e,n){super(),this.#e=e,this.setOptions(n),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const n=this.options;this.options=this.#e.defaultMutationOptions(e),EC(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&vp(n.mutationKey)!==vp(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#s(),this.#i(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#i()}mutate(e,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#s(){const e=this.#n?.state??D9();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#i(e){Ai.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#r.onSuccess?.(e.data,n,r,i)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(e.data,null,n,r,i)}catch(s){Promise.reject(s)}}else if(e?.type==="error"){try{this.#r.onError?.(e.error,n,r,i)}catch(s){Promise.reject(s)}try{this.#r.onSettled?.(void 0,e.error,n,r,i)}catch(s){Promise.reject(s)}}}this.listeners.forEach(n=>{n(this.#t)})})}},Kre=class extends bv{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,n){const r=e.queryKey,i=e.queryHash??V4(r,e);let s=this.get(i);return s||(s=new jre({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(s)),s}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);
vendor: 11,178 bytes, line 12
12e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ai.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(n=>WM(e,n))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(n=>WM(t,n)):e}notify(t){Ai.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){Ai.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ai.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Yre=class{#e;#t;#n;#r;#s;#i;#a;#o;constructor(t={}){this.#e=t.queryCache||new Kre,this.#t=t.mutationCache||new Wre,this.#n=t.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=z4.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=SC.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=this.#e.build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(sf(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),s=this.#e.get(r.queryHash)?.state.data,a=Are(e,s);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(t,e,n){return Ai.batch(()=>this.#e.findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){const e=this.#e;Ai.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=this.#e;return Ai.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=Ai.batch(()=>this.#e.findAll(t).map(i=>i.cancel(n)));return Promise.all(r).then(qs).catch(qs)}invalidateQueries(t,e={}){return Ai.batch(()=>(this.#e.findAll(t).forEach(n=>{n.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=Ai.batch(()=>this.#e.findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(qs)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(qs)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=this.#e.build(this,e);return n.isStaleByTime(sf(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(qs).catch(qs)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(qs).catch(qs)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return SC.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,e){this.#r.set(vp(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#r.values()],n={};return e.forEach(r=>{P1(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){this.#s.set(vp(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#s.values()],n={};return e.forEach(r=>{P1(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=V4(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Cx&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},dR={exports:{}},Ht={};var eD;function Xre(){if(eD)return Ht;eD=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),y=Symbol.iterator;function E(z){return z===null||typeof z!="object"?null:(z=y&&z[y]||z["@@iterator"],typeof z=="function"?z:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function R(z,Q,ae){this.props=z,this.context=Q,this.refs=C,this.updater=ae||S}R.prototype.isReactComponent={},R.prototype.setState=function(z,Q){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,Q,"setState")},R.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function A(){}A.prototype=R.prototype;function O(z,Q,ae){this.props=z,this.context=Q,this.refs=C,this.updater=ae||S}var P=O.prototype=new A;P.constructor=O,x(P,R.prototype),P.isPureReactComponent=!0;var L=Array.isArray;function D(){}var N={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function U(z,Q,ae){var de=ae.ref;return{$$typeof:t,type:z,key:Q,ref:de!==void 0?de:null,props:ae}}function F(z,Q){return U(z.type,Q,z.props)}function V(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function G(z){var Q={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(ae){return Q[ae]})}var Z=/\/+/g;function K(z,Q){return typeof z=="object"&&z!==null&&z.key!=null?G(""+z.key):Q.toString(36)}function J(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(D,D):(z.status="pending",z.then(function(Q){z.status==="pending"&&(z.status="fulfilled",z.value=Q)},function(Q){z.status==="pending"&&(z.status="rejected",z.reason=Q)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function H(z,Q,ae,de,be){var Se=typeof z;(Se==="undefined"||Se==="boolean")&&(z=null);var je=!1;if(z===null)je=!0;else switch(Se){case"bigint":case"string":case"number":je=!0;break;case"object":switch(z.$$typeof){case t:case e:je=!0;break;case p:return je=z._init,H(je(z._payload),Q,ae,de,be)}}if(je)return be=be(z),je=de===""?"."+K(z,0):de,L(be)?(ae="",je!=null&&(ae=je.replace(Z,"$&/")+"/"),H(be,Q,ae,"",function(tt){return tt})):be!=null&&(V(be)&&(be=F(be,ae+(be.key==null||z&&z.key===be.key?"":(""+be.key).replace(Z,"$&/")+"/")+je)),Q.push(be)),1;je=0;var Ne=de===""?".":de+":";if(L(z))for(var ze=0;ze<z.length;ze++)de=z[ze],Se=Ne+K(de,ze),je+=H(de,Q,ae,Se,be);else if(ze=E(z),typeof ze=="function")for(z=ze.call(z),ze=0;!(de=z.next()).done;)de=de.value,Se=Ne+K(de,ze++),je+=H(de,Q,ae,Se,be);else if(Se==="object"){if(typeof z.then=="function")return H(J(z),Q,ae,de,be);throw Q=String(z),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return je}function Y(z,Q,ae){if(z==null)return z;var de=[],be=0;return H(z,de,"","",function(Se){return Q.call(ae,Se,be++)}),de}function ee(z){if(z._status===-1){var Q=z._result;Q=Q(),Q.then(function(ae){(z._status===0||z._status===-1)&&(z._status=1,z._result=ae)},function(ae){(z._status===0||z._status===-1)&&(z._status=2,z._result=ae)}),z._status===-1&&(z._status=0,z._result=Q)}if(z._status===1)return z._result.default;throw z._result}var fe=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},ue={map:Y,forEach:function(z,Q,ae){Y(z,function(){Q.apply(this,arguments)},ae)},count:function(z){var Q=0;return Y(z,function(){Q++}),Q},toArray:function(z){return Y(z,function(Q){return Q})||[]},only:function(z){if(!V(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return Ht.Activity=v,Ht.Children=ue,Ht.Component=R,Ht.Fragment=n,Ht.Profiler=i,Ht.PureComponent=O,Ht.StrictMode=r,Ht.Suspense=u,Ht.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Ht.__COMPILER_RUNTIME={__proto__:null,c:function(z){return N.H.useMemoCache(z)}},Ht.cache=function(z){return function(){return z.apply(null,arguments)}},Ht.cacheSignal=function(){return null},Ht.cloneElement=function(z,Q,ae){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var de=x({},z.props),be=z.key;if(Q!=null)for(Se in Q.key!==void 0&&(be=""+Q.key),Q)!k.call(Q,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&Q.ref===void 0||(de[Se]=Q[Se]);var Se=arguments.length-2;if(Se===1)de.children=ae;else if(1<Se){for(var je=Array(Se),Ne=0;Ne<Se;Ne++)je[Ne]=arguments[Ne+2];de.children=je}return U(z.type,be,de)},Ht.createContext=function(z){return z={$$typeof:a,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:s,_context:z},z},Ht.createElement=function(z,Q,ae){var de,be={},Se=null;if(Q!=null)for(de in Q.key!==void 0&&(Se=""+Q.key),Q)k.call(Q,de)&&de!=="key"&&de!=="__self"&&de!=="__source"&&(be[de]=Q[de]);var je=arguments.length-2;if(je===1)be.children=ae;else if(1<je){for(var Ne=Array(je),ze=0;ze<je;ze++)Ne[ze]=arguments[ze+2];be.children=Ne}if(z&&z.defaultProps)for(de in je=z.defaultProps,je)be[de]===void 0&&(be[de]=je[de]);return U(z,Se,be)},Ht.createRef=function(){return{current:null}},Ht.forwardRef=function(z){return{$$typeof:c,render:z}},Ht.isValidElement=V,Ht.lazy=function(z){return{$$typeof:p,_payload:{_status:-1,_result:z},_init:ee}},Ht.memo=function(z,Q){return{$$typeof:h,type:z,compare:Q===void 0?null:Q}},Ht.startTransition=function(z){var Q=N.T,ae={};N.T=ae;try{var de=z(),be=N.S;be!==null&&be(ae,de),typeof de=="object"&&de!==null&&typeof de.then=="function"&&de.then(D,fe)}
12catch(Se){fe(Se)}finally{Q!==null&&ae.types!==null&&(Q.types=ae.types),N.T=Q}},Ht.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Ht.use=function(z){return N.H.use(z)},Ht.useActionState=function(z,Q,ae){return N.H.useActionState(z,Q,ae)},Ht.useCallback=function(z,Q){return N.H.useCallback(z,Q)},Ht.useContext=function(z){return N.H.useContext(z)},Ht.useDebugValue=function(){},Ht.useDeferredValue=function(z,Q){return N.H.useDeferredValue(z,Q)},Ht.useEffect=function(z,Q){return N.H.useEffect(z,Q)},Ht.useEffectEvent=function(z){return N.H.useEffectEvent(z)},Ht.useId=function(){return N.H.useId()},Ht.useImperativeHandle=function(z,Q,ae){return N.H.useImperativeHandle(z,Q,ae)},Ht.useInsertionEffect=function(z,Q){return N.H.useInsertionEffect(z,Q)},Ht.useLayoutEffect=function(z,Q){return N.H.useLayoutEffect(z,Q)},Ht.useMemo=function(z,Q){return N.H.useMemo(z,Q)},Ht.useOptimistic=function(z,Q){return N.H.useOptimistic(z,Q)},Ht.useReducer=function(z,Q,ae){return N.H.useReducer(z,Q,ae)},Ht.useRef=function(z){return N.H.useRef(z)},Ht.useState=function(z){return N.H.useState(z)},Ht.useSyncExternalStore=function(z,Q,ae){return N.H.useSyncExternalStore(z,Q,ae)},Ht.useTransition=function(){return N.H.useTransition()},Ht.version="19.2.6",Ht}var tD;function Ev(){return tD||(tD=1,dR.exports=Xre()),dR.exports}var _=Ev();const Te=ju(_),N9=k8({__proto__:null,default:Te},[_]);var $9=_.createContext(void 0),Js=t=>{const e=_.useContext($9);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Qre=({client:t,children:e})=>(_.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),W.jsx($9.Provider,{value:t,children:e})),F9=_.createContext(!1),Zre=()=>_.useContext(F9);F9.Provider;function Jre(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var eie=_.createContext(Jre()),tie=()=>_.useContext(eie),nie=(t,e,n)=>{const r=n?.state.error&&typeof t.throwOnError=="function"?q4(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||r)&&(e.isReset()||(t.retryOnMount=!1))},rie=t=>{_.useEffect(()=>{t.clearReset()},[t])},iie=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||q4(n,[t.error,r])),sie=t=>{if(t.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},oie=(t,e)=>t.isLoading&&t.isFetching&&!e,aie=(t,e)=>t?.suspense&&e.isPending,nD=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function U9(t,e,n){const r=Zre(),i=tie(),s=Js(),a=s.defaultQueryOptions(t);s.getDefaultOptions().queries?._experimental_beforeQuery?.(a);const c=s.getQueryCache().get(a.queryHash),u=t.subscribed!==!1;a._optimisticResults=r?"isRestoring":u?"optimistic":void 0,sie(a),nie(a,i,c),rie(i);const h=!s.getQueryCache().get(a.queryHash),[p]=_.useState(()=>new e(s,a)),v=p.getOptimisticResult(a),y=!r&&u;if(_.useSyncExternalStore(_.useCallback(E=>{const S=y?p.subscribe(Ai.batchCalls(E)):qs;return p.updateResult(),S},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),_.useEffect(()=>{p.setOptions(a)},[a,p]),aie(a,v))throw nD(a,p,i);if(iie({result:v,errorResetBoundary:i,throwOnError:a.throwOnError,query:c,suspense:a.suspense}))throw v.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(a,v),a.experimental_prefetchInRender&&!L1.isServer()&&oie(v,r)&&(h?nD(a,p,i):c?.promise)?.catch(qs).finally(()=>{p.updateResult()}),a.notifyOnChangeProps?v:p.trackResult(v)}function lie(t,e){return U9(t,M9)}function _c(t,e){const n=Js(),[r]=_.useState(()=>new Gre(n,t));_.useEffect(()=>{r.setOptions(t)},[r,t]);const i=_.useSyncExternalStore(_.useCallback(a=>r.subscribe(Ai.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=_.useCallback((a,c)=>{r.mutate(a,c).catch(qs)},[r]);if(i.error&&q4(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}function cie(t,e){return U9(t,Vre)}const B9=new Yre({defaultOptions:{queries:{staleTime:300*1e3,retry:(t,e)=>t<3&&u9(e)},mutations:{retry:!1}}}),G4=new Map,Kw=new Map,uie=t=>t==="project"?"projects":"searches",gu=(t,e)=>{!t||!e||G4.set(t,e)},j9=()=>{G4.clear(),Kw.clear()},BO=(t,e)=>`${ir.VITE_BASE_URL}/api/v2/profiles/${e}`,M_=(t,e,n)=>`${BO(t,e)}/${n}`,K4=(t,e,n,r)=>`${M_(t,e,r)}/${n}`,jo={baseURL:""},rD=t=>({...t,context_id:t.context_id,is_library_chat:t.is_library_chat??!1,has_user_messages:t.has_user_messages??(t.message_count??0)>0}),o_=t=>({...t,context_id:t.context_id,is_library_chat:t.is_library_chat??!1}),die=t=>({...t,context_id:t.context_id}),aw=t=>({...t,context_id:t.context_id}),fie=t=>xe.isAxiosError(t)&&t.response?.status===404,Y4=async(t,e,n,r)=>{if(r==="project"||r==="board")return"projects";if(r==="search")return"searches";const i=G4.get(n);if(i)return uie(i);const s=Kw.get(n);if(s)return s;const a=(async()=>{try{const c=await xe.get(K4(t,e,n,"projects"),jo);return gu(n,c.data.kind??"project"),"projects"}catch(c){if(!fie(c))throw c}return gu(n,"search"),"searches"})();Kw.set(n,a);try{return await a}finally{Kw.delete(n)}},Xd=async(t,e,n,r)=>{const i=await Y4(t,e,n,r);return K4(t,e,n,i)},Cc={list:async(t,e,n={})=>{const[r,i]=await Promise.all([xe.get(M_(t,e,"searches"),{...jo,params:n}),xe.get(M_(t,e,"projects"),{...jo,params:n})]),s=[...r.data.searches.map(rD),...i.data.projects.map(rD)].sort((a,c)=>new Date(c.updated_at).getTime()-new Date(a.updated_at).getTime());
12return s.forEach(a=>gu(a.context_id,a.kind)),{contexts:s,count:s.length}},get:async(t,e,n,r)=>{const i=await Y4(t,e,n,r),s=await xe.get(K4(t,e,n,i),jo);return gu(n,s.data.kind),o_(s.data)},getItems:async(t,e,n,r)=>{const i=await Xd(t,e,n,r),s=await xe.get(`${i}/items`,jo);return gu(n,s.data.kind),die(s.data)},attachItems:async(t,e,n,r,i)=>{const s=await Xd(t,e,n,i),a=await xe.post(`${s}/items`,r,jo);return aw(a.data)},detachItems:async(t,e,n,r,i)=>{const s=await Xd(t,e,n,i),a=await xe.delete(`${s}/items`,{...jo,data:r});return aw(a.data)},confirmItems:async(t,e,n,r,i)=>{const s=await Xd(t,e,n,i),a=await xe.patch(`${s}/items`,r,jo);return aw(a.data)},getOrCreateLibraryChat:async(t,e)=>{const n=await xe.post(`${BO(t,e)}/library-chat`,void 0,jo);return gu(n.data.context_id,n.data.kind??"project"),o_(n.data)},create:async(t,e,n={})=>{const r=await xe.post(M_(t,e,"searches"),n,jo);return gu(r.data.context_id,r.data.kind??"search"),o_(r.data)},createBoard:async(t,e,n={})=>{const r=await xe.post(M_(t,e,"projects"),n,jo);return gu(r.data.context_id,r.data.kind??"project"),o_(r.data)},promoteToBoard:async(t,e,n,r)=>{const i=await xe.post(`${BO(t,e)}/contexts/${n}/promote`,r,jo);return gu(i.data.context_id,i.data.kind??"project"),o_(i.data)},update:async(t,e,n,r,i)=>{const s=await Xd(t,e,n,i),a=await xe.patch(s,r,jo);return aw(a.data)}},H9=()=>{throw new Error("Extension release context is only available in extension builds")};function hie(t,e,n={},r=H9()){return{version:1,surface:"chrome_extension",capture_kind:t,...r,source_event_id:crypto.randomUUID(),captured_at:e.timestamp||new Date().toISOString(),origin:{...e.page_url?{url:e.page_url}:{},...e.canonical_url?{canonical_url:e.canonical_url}:{},...e.page_title?{title:e.page_title}:{},...e.page_domain?{domain:e.page_domain}:{},...e.page_path?{path:e.page_path}:{},...e.language?{language:e.language}:{},...e.favicon_url?{favicon_url:e.favicon_url}:{}},target:{...n.url?{url:n.url}:{},...n.linkUrl?{link_url:n.linkUrl}:{},...n.imageUrl?{image_url:n.imageUrl}:{}},metadata:e}}const pie=(t,e={})=>{if(!(e.isExtension??!1))return t;const r=e.releaseContext??H9();return hie("sidepanel",{},{},r)},gie=(t,e,n={})=>{const r=pie(e,n);r&&t.append("capture_provenance",JSON.stringify(r))},Ti=()=>`${ir.VITE_BASE_URL}/api/v2`,iD=200,mie=4,vie=async(t,e)=>{const n=Array.from({length:e.length},()=>{});let r=0;const i=async()=>{for(;r<e.length;){const s=r++;try{const a=await xe.get(`${Ti()}/profiles/${t}/library/${e[s]}`,{baseURL:""});n[s]=bs(a.data)}catch{}}};return await Promise.all(Array.from({length:Math.min(mie,e.length)},()=>i())),n.filter(s=>!!s)},yie=async(t,e)=>{try{const n=await xe.post(`${Ti()}/profiles/${t}/library/batch`,{item_ids:e},{baseURL:""});return bs(n.data).items??[]}catch(n){return console.warn("Batch item hydration failed; falling back to individual requests.",n),vie(t,e)}},bs=t=>t,hu={addText:async(t,e,n,r)=>hu.addItem(t,e,{content:n.content,metadata:n.metadata,saveSource:r}),addLink:async(t,e,n,r,i,s)=>(i?.("processing","Link accepted for processing..."),hu.addItem(t,e,{url:n,metadata:r,saveSource:s})),addLinkWithImage:async(t,e,n,r,i,s)=>hu.addItem(t,e,{url:n,image:r,content:i,metadata:s}),addImage:async(t,e,n,r,i,s)=>hu.addItem(t,e,{image:n,content:r,metadata:i,saveSource:s}),addFile:async(t,e,n,r,i,s)=>hu.addItem(t,e,{file:n,content:r,metadata:i,saveSource:s}),addImages:async(t,e,n,r,i)=>await Promise.all(n.map(a=>hu.addItem(t,e,{image:a,content:r,metadata:i}))),getLibraryItems:async(t,e,n=0,r=50)=>{try{const i=await xe.get(`${Ti()}/profiles/${e}/library`,{baseURL:"",params:{offset:n,limit:r}});return bs(i.data)}catch(i){throw console.error("Error getting Library items:",i),i}},getLibraryItem:async(t,e,n)=>{try{const r=await xe.get(`${Ti()}/profiles/${e}/library/${n}`,{baseURL:""});return bs(r.data)}catch(r){throw console.error("Error getting Library item:",r),r}},getShoppingFeedback:async(t,e,n)=>(await xe.get(`${Ti()}/profiles/${e}/library/${n}/shopping-feedback`,{baseURL:""})).data,setShoppingFeedback:async(t,e,n,r)=>(await xe.put(`${Ti()}/profiles/${e}/library/${n}/shopping-feedback`,r,{baseURL:""})).data,enableOfferWatch:async(t,e,n,r)=>{const i=await xe.put(`${Ti()}/profiles/${e}/library/${n}/offer-watch`,{target:r},{baseURL:""});return bs(i.data)},disableOfferWatch:async(t,e,n)=>{const r=await xe.delete(`${Ti()}/profiles/${e}/library/${n}/offer-watch`,{baseURL:""});return bs(r.data)},getItemCaptures:async(t,e,n,r=0,i=20)=>(await xe.get(`${Ti()}/profiles/${e}/library/${n}/captures`,{baseURL:"",params:{offset:r,limit:i}})).data,getItemCapture:async(t,e,n,r)=>(await xe.get(`${Ti()}/profiles/${e}/library/${n}/captures/${r}`,{baseURL:""})).data,getLibraryItemsByIds:async(t,e,n)=>{if(n.length===0)return[];const r=[];for(let i=0;i<n.length;i+=iD){const s=n.slice(i,i+iD);r.push(...await yie(e,s))}return r},getItemProjectOptions:async(t,e,n)=>(await xe.get(`${Ti()}/profiles/${e}/library/${n}/projects`,{baseURL:""})).data,deleteLibraryItem:async(t,e,n)=>{try{const r=await xe.delete(`${Ti()}/profiles/${e}/library/${n}`,{baseURL:""});return bs(r.data)}catch(r){throw console.error("Error deleting Library item:",r),r}},updateLibraryItem:async(t,e,n,r)=>{try{const i=await xe.patch(`${Ti()}/profiles/${e}/library/${n}`,r,{baseURL:"",headers:{"Content-Type":"application/json"}});return bs(i.data)}catch(i){throw console.error("Error updating Library item:",i),i}},reprocessLibraryItem:async(t,e,n)=>{try{const r=await xe.post(`${Ti()}/profiles/${e}/library/${n}/reprocess`,{},{baseURL:"",headers:{"Content-Type":"application/json"}});return bs(r.data)}catch(r){throw console.error("Error reprocessing Library item:",r),r}},createStructuredItem:async(t,e,n)=>{const r=await xe.post(`${Ti()}/profiles/${e}/library/structured`,n,{baseURL:"",headers:{"Content-Type":"application/json"}});return bs(r.data)},updateStructuredItem:async(t,e,n,r)=>{const i=await xe.patch(`${Ti()}/profiles/${e}/library/${n}/structured`,r,{baseURL:"",headers:{"Content-Type":"application/json"}});return bs(i.data)},addItem:async(t,e,n)=>{try{const r=new FormData;n.content&&r.append("content",n.content),n.url&&r.append("url",n.url),n.file&&r.append("file",n.file),n.image&&r.append("image",n.image),n.pdf&&r.append("pdf",n.pdf),n.metadata&&r.append("metadata",JSON.stringify(n.metadata)),n.saveSource&&r.append("save_source",n.saveSource),gie(r);const i=await xe.post(`${Ti()}/profiles/${e}/library`,r,{baseURL:"",headers:{"Content-Type":"multipart/form-data"}});return bs(i.data)}catch(r){throw console.error("Error adding Library item:",r),r}},getContextSnapshot:async(t,e,n,r=!1,i=null)=>{try{const s=await Xd(t,e,n),a=await xe.get(`${s}/context`,{baseURL:"",params:{...r?{include_scores:!0}:{},...i?{assistant_message_id:i}:{}}});return bs(a.data)}catch(s){throw console.error("Error getting library context:",s),s}},addLinkAsync:async(t,e,n,r,i)=>{i?.("pending","Saving...");const s=await hu.addItem(t,e,{url:n,metadata:r});return i?.("completed","Saved â enrichment continues in the background"),s},addItemAsync:async(t,e,n,r)=>{r?.("pending","Saving...");const i=await hu.addItem(t,e,n);return r?.("completed","Saved â enrichment continues in the background"),i},importBookmarks:async(t,e,n)=>{const r=new FormData;r.append("bookmarks_file",n);const i=await xe.post(`${Ti()}/profiles/${e}/library/import-bookmarks`,r,{baseURL:"",headers:{"Content-Type":"multipart/form-data"}});return bs(i.data)},getTaskStatus:async(t,e,n)=>{const r=await xe.get(`${Ti()}/profiles/${e}/library/tasks/${n}`,{baseURL:""});return bs(r.data)}},wC={getVapidPublicKey:async()=>{const t=await xe.get("/push/vapid-public-key");if(!t.data.enabled||!t.data.public_key)throw new Error("unsupported");return t.data.public_key}
12,createPushSubscription:async t=>(await xe.post("/push/subscriptions",t)).data,deletePushSubscription:async t=>{await xe.delete(`/push/subscriptions/${encodeURIComponent(t)}`)},testPushSubscription:async t=>{await xe.post(`/push/subscriptions/${encodeURIComponent(t)}/test`)},getCurrentPushSubscription:async t=>(await xe.get("/push/subscriptions/current",{params:{installation_id:t}})).data,deleteCurrentPushSubscription:async t=>{await xe.delete("/push/subscriptions/current",{params:{installation_id:t}})},cleanupDemoProject:async(t,e)=>(await xe.post(`/profiles/${e}/onboarding/demo-project/cleanup`)).data},_ie=()=>{if(typeof window>"u")return!1;const t=window.navigator.standalone===!0;return!!window.matchMedia?.("(display-mode: standalone)").matches||t},bie=()=>typeof navigator>"u"?!1:/iPad|iPhone|iPod/.test(navigator.userAgent)||navigator.maxTouchPoints>1&&/Mac/.test(navigator.userAgent),Eie=()=>bie()&&!_ie(),sD="dessence.web-push.installation-id",X4=()=>{const t=window.localStorage.getItem(sD);if(t)return t;const e=crypto.randomUUID();return window.localStorage.setItem(sD,e),e},Sie=t=>{const e="=".repeat((4-t.length%4)%4),n=atob((t+e).replace(/-/g,"+").replace(/_/g,"/")),r=new Uint8Array(new ArrayBuffer(n.length));for(let i=0;i<n.length;i+=1)r[i]=n.charCodeAt(i);return r},z9=()=>typeof window<"u"&&window.isSecureContext&&"Notification"in window&&"serviceWorker"in navigator&&"PushManager"in window&&!Eie(),V9=async(t,e)=>{const[n,r]=await Promise.all([navigator.serviceWorker.ready,wC.getVapidPublicKey()]),s=await n.pushManager.getSubscription()??await n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Sie(r)}),a=s.toJSON().keys;if(!a?.p256dh||!a.auth)throw new Error("missing_keys");return wC.createPushSubscription({...t?{profile_id:t}:{},installation_id:X4(),endpoint:s.endpoint,keys:{p256dh:a.p256dh,auth:a.auth},language_tag:"en"})},C4e=async(t,e)=>{if(!z9())throw new Error("unsupported");if(Notification.permission!=="granted")throw new Error(Notification.permission);await V9(t)},x4e=async(t,e)=>{if(!z9())throw new Error("unsupported");const n=await Notification.requestPermission();if(n!=="granted")throw new Error(n==="denied"?"denied":"dismissed");const r=await V9(t);await wC.testPushSubscription(r.subscription_id)},T4e=async()=>{if(typeof window>"u")return;const e=await(await navigator.serviceWorker.ready).pushManager.getSubscription();await wC.deleteCurrentPushSubscription(X4()),await e?.unsubscribe()},wie=!1;let Cie=class{shouldLog(e){return e==="error"?!0:wie}formatMessage(e,n,...r){return[`[${new Date().toISOString()}] [${e.toUpperCase()}] [${n}]`,...r]}log(e,...n){this.shouldLog("log")&&console.log(...this.formatMessage("log",e,...n))}warn(e,...n){this.shouldLog("warn")&&console.warn(...this.formatMessage("warn",e,...n))}error(e,...n){this.shouldLog("error")&&console.error(...this.formatMessage("error",e,...n))}debug(e,...n){this.shouldLog("debug")&&console.debug(...this.formatMessage("debug",e,...n))}info(e,...n){this.shouldLog("info")&&console.info(...this.formatMessage("info",e,...n))}};const rp=new Cie,xie=t=>{switch(t){case"library_updated":return"context_updated";case"library_item_context_membership_changed":return"library_item_membership_changed";default:return t}};class Tie{ws=null;reconnectAttempts=0;maxReconnectAttempts=5;reconnectDelay=3e3;reconnectTimeout=null;listeners=new Map;isIntentionallyClosed=!1;currentScopeKey=null;tabId=crypto.randomUUID();async connect(e,n){const r=`${e}:${n}`;if(this.currentScopeKey&&this.currentScopeKey!==r&&this.ws&&this.disconnect(),(this.ws?.readyState===WebSocket.OPEN||this.ws?.readyState===WebSocket.CONNECTING)&&this.currentScopeKey===r)return;this.isIntentionallyClosed=!1,this.currentScopeKey=r;const i=`/ws/profiles/${n}`;let s=D1?`${D1.replace(/^http/,"ws")}${i}`:`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}${i}`;const a=s.includes("?")?"&":"?";s+=`${a}installation_id=${encodeURIComponent(X4())}&tab_id=${encodeURIComponent(this.tabId)}`;try{const c=new WebSocket(s);this.ws=c,c.onopen=()=>this.handleOpen(),c.onmessage=u=>this.handleMessage(u),c.onerror=u=>
12this.handleError(u),c.onclose=u=>{this.ws===c&&this.handleClose(e,n,u)}}catch(c){rp.error("ProfileWebSocket","Connection error:",c),this.scheduleReconnect(e,n)}}disconnect(){document.removeEventListener("visibilitychange",this.sendPresence),this.isIntentionallyClosed=!0,this.reconnectAttempts=0,this.currentScopeKey=null,this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null),this.ws&&(this.ws.onopen=null,this.ws.onmessage=null,this.ws.onerror=null,this.ws.onclose=null,this.ws.close(1e3,"Client disconnect"),this.ws=null)}on(e,n){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e)?.add(n),()=>{this.listeners.get(e)?.delete(n)}}isConnected(){return this.ws?.readyState===WebSocket.OPEN}handleOpen(){this.sendPresence(),document.addEventListener("visibilitychange",this.sendPresence);const e=this.reconnectAttempts>0;this.reconnectAttempts=0,this.emit("connection",{message:"Connected"}),e&&this.emit("reconnected",{message:"Reconnected"})}sendPresence=()=>{this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({event_type:"presence",visible:document.visibilityState==="visible"}))};handleMessage(e){try{if(typeof e.data!="string"){console.error("[ProfileWebSocket] Received non-text message");return}const n=bs(JSON.parse(e.data));switch(n.event_type=xie(n.event_type),rp.info("ProfileWebSocket",`Received message: ${n.event_type}`,n),n.event_type){case"connected":this.emit("connection",n);break;case"context_updated":this.emit("context_updated",n);break;default:n.error?this.emit("error",{error:n.error,timestamp:n.timestamp}):this.emit(n.event_type,n)}}catch(n){console.error("[ProfileWebSocket] Failed to parse message:",n)}}handleError(e){console.error("[ProfileWebSocket] Error:",e),this.emit("error",{error:"WebSocket connection error",timestamp:new Date().toISOString()})}handleClose(e,n,r){this.ws=null,!this.isIntentionallyClosed&&this.reconnectAttempts<this.maxReconnectAttempts?this.scheduleReconnect(e,n):this.reconnectAttempts>=this.maxReconnectAttempts&&this.emit("error",{error:"Max reconnection attempts reached",code:"MAX_RECONNECT",timestamp:new Date().toISOString()})}scheduleReconnect(e,n){const r=`${e}:${n}`;if(this.currentScopeKey!==r)return;this.reconnectTimeout&&clearTimeout(this.reconnectTimeout),this.reconnectAttempts++;const i=this.reconnectDelay*this.reconnectAttempts;this.reconnectTimeout=setTimeout(()=>{this.reconnectTimeout=null,this.currentScopeKey===r&&!this.isIntentionallyClosed&&this.connect(e,n)},i)}emit(e,n){const r=this.listeners.get(e);r&&r.forEach(i=>i(n))}}const Rie=new Tie;class Aie{ws=null;reconnectAttempts=0;maxReconnectAttempts=5;reconnectDelay=3e3;reconnectTimeout=null;listeners=new Map;isIntentionallyClosed=!1;currentContextId=null;async connect(e,n,r){if(this.currentContextId&&this.currentContextId!==r&&this.ws&&this.disconnect(),(this.ws?.readyState===WebSocket.OPEN||this.ws?.readyState===WebSocket.CONNECTING)&&this.currentContextId===r)return;this.isIntentionallyClosed=!1,this.currentContextId=r;const i=await Y4(e,n,r),s=`/ws/profiles/${n}/${i}/${r}`;let a;D1?a=`${D1.replace(/^http/,"ws")}${s}`:a=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}${s}`;try{const c=new WebSocket(a);this.ws=c,c.onopen=()=>this.handleOpen(),c.onmessage=u=>this.handleMessage(u),c.onerror=u=>this.handleError(u),c.onclose=u=>{this.ws===c&&this.handleClose(e,n,r,u)}}catch(c){rp.error("WebSocket","Connection error:",c),this.scheduleReconnect(e,n,r)}}disconnect(){this.isIntentionallyClosed=!0,this.reconnectAttempts=0,this.currentContextId=null,this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null),this.ws&&(this.ws.onopen=null,this.ws.onmessage=null,this.ws.onerror=null,this.ws.onclose=null,this.ws.close(1e3,"Client disconnect"),this.ws=null)}on(e,n){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(n),()=>{this.listeners.get(e)?.delete(n)}}isConnected(){return this.ws?.readyState===WebSocket.OPEN}handleOpen(){this.reconnectAttempts=0,this.emit("connection",{message:"Connected"})}handleMessage(e){try{if(typeof e.data!="string"){console.error("[WebSocket] Received non-text message");return}const n=JSON.parse(e.data);rp.info("WebSocket",`Received message: ${n.event_type}
12`,n),n.event_type==="context_updated"?this.emit("context_updated",n):n.error?this.emit("error",{error:n.error,timestamp:n.timestamp}):this.emit(n.event_type,n)}catch(n){console.error("[WebSocket] Failed to parse message:",n)}}handleError(e){console.error("[WebSocket] Error:",e),this.emit("error",{error:"WebSocket connection error",timestamp:new Date().toISOString()})}handleClose(e,n,r,i){this.ws=null,!this.isIntentionallyClosed&&this.reconnectAttempts<this.maxReconnectAttempts?this.scheduleReconnect(e,n,r):this.reconnectAttempts>=this.maxReconnectAttempts&&this.emit("error",{error:"Max reconnection attempts reached",code:"MAX_RECONNECT",timestamp:new Date().toISOString()})}scheduleReconnect(e,n,r){if(this.currentContextId!==r)return;this.reconnectTimeout&&clearTimeout(this.reconnectTimeout),this.reconnectAttempts++;const i=this.reconnectDelay*this.reconnectAttempts;this.reconnectTimeout=setTimeout(()=>{this.reconnectTimeout=null,this.currentContextId===r&&!this.isIntentionallyClosed&&this.connect(e,n,r)},i)}emit(e,n){const r=this.listeners.get(e);r&&r.forEach(i=>i(n))}}const Oie=new Aie,oD={chatId:null,chatTitle:"",pendingMessage:void 0},q9=N4({name:"chat",initialState:oD,reducers:{resetChatState:()=>oD,setChatInfo:(t,e)=>{t.chatId=e.payload.chatId,t.chatTitle=e.payload.chatTitle},setPendingMessage:(t,e)=>{t.pendingMessage=e.payload}}}),{resetChatState:Iie,setChatInfo:A4e,setPendingMessage:O4e}=q9.actions,Pie=q9.reducer,Lie=900*1e3,kie=t=>{const e=Date.parse(t.updated_at);return Number.isNaN(e)?!0:Date.now()-e<Lie},aD={byChatId:{}},W9="input:",Mie=t=>`${W9}${t}`,I4e=t=>t.turnId.startsWith(W9)?null:t.turnId,Die=t=>t?.steps??[],Yh=t=>t==="completed"||t==="failed"||t==="cancelled",lD=(t,e)=>{if(!kie(e)&&!Yh(e.status))return;const n=t.byChatId[e.chat_id];if(n&&n.turnId!==e.turn_id){if(n.sourceInputOrder!=null){if(e.source_input_order==null||e.source_input_order<n.sourceInputOrder||e.source_input_order===n.sourceInputOrder&&!n.inputId)return}else if(e.source_input_order==null){const i=Date.parse(n.updatedAt??""),s=Date.parse(e.updated_at);if(Number.isNaN(s)||!Number.isNaN(i)&&s<=i)return}}if(n?.turnId===e.turn_id){if((e.revision??1)<(n.revision??1)||Yh(n.status)&&e.status!==n.status||e.attempt<n.attempt)return;const i=Yh(e.status)&&!Yh(n.status);if(e.attempt===n.attempt&&e.sequence<n.sequence&&!i)return}const r=n?.turnId===e.turn_id&&(n.revision??1)===(e.revision??1);t.byChatId[e.chat_id]={turnId:e.turn_id,revision:e.revision??1,sourceInputOrder:e.source_input_order,chatId:e.chat_id,status:e.status,attempt:e.attempt,sequence:r?Math.max(n.sequence,e.sequence):e.sequence,partialResponse:e.partial_response,committedParts:e.progress?.parts??(r?n.committedParts??[]:[]),provisionalParts:r?n.provisionalParts??{}:{},steps:Die(e.progress),userMessageId:e.user_message_id??(r?n.userMessageId:void 0),assistantMessageId:e.assistant_message_id??(r?n.assistantMessageId:void 0),events:r?n.events:[],error:r?n.error:void 0,dailyQuota:e.progress?.daily_quota??(r?n.dailyQuota:void 0),updatedAt:e.updated_at}},Nie=(t,e)=>{const n=t.byChatId[e.chat_id];
12if(n&&n.turnId!==e.turn_id&&n.sourceInputOrder!=null&&(e.source_input_order==null||e.source_input_order<n.sourceInputOrder||e.source_input_order===n.sourceInputOrder&&!n.inputId))return;if(n&&n.turnId!==e.turn_id&&n.sourceInputOrder==null&&e.source_input_order==null){const a=n.updatedAt?Date.parse(n.updatedAt):Number.NaN,c=Date.parse(e.timestamp);if(n.status==="queued"||n.status==="running"||Number.isNaN(c)||!Number.isNaN(a)&&c<=a)return}const r=n?.turnId===e.turn_id?n:void 0;if(r&&(e.revision??1)<(r.revision??1)||r&&e.attempt<r.attempt||r&&Yh(r.status)&&e.status!==r.status)return;const i=(e.status==="failed"||e.status==="completed"||e.status==="cancelled")&&r!==void 0&&!Yh(r.status);if(r&&e.attempt===r.attempt&&e.sequence<=r.sequence&&!i)return;const s=r??{turnId:e.turn_id,chatId:e.chat_id,status:e.status,attempt:e.attempt,sequence:0,partialResponse:"",committedParts:[],provisionalParts:{},steps:[],events:[]};if((e.revision??1)>(s.revision??1)&&(s.partialResponse="",s.committedParts=[],s.provisionalParts={},s.steps=[],s.events=[],s.assistantMessageId=void 0),s.revision=e.revision??1,s.turnId=e.turn_id,s.sourceInputOrder=e.source_input_order??s.sourceInputOrder,s.committedParts??=[],s.provisionalParts??={},s.attempt=e.attempt,s.sequence=e.sequence,s.status=e.status,s.updatedAt=e.timestamp,e.event==="start"&&(s.partialResponse="",s.committedParts=[],s.provisionalParts={}),e.event==="token"){const a=e.data;s.partialResponse+=a.token??a.chunk??""}if(e.event==="assistant_part_delta"){const a=e.data;a.round_key&&a.chunk&&(s.provisionalParts[a.round_key]=(s.provisionalParts[a.round_key]??"")+a.chunk)}if(e.event==="assistant_part_committed"){const a=e.data;a.part&&!s.committedParts.some(c=>c.part_id===a.part?.part_id)&&(s.committedParts.push(a.part),s.committedParts.sort((c,u)=>c.position-u.position)),s.provisionalParts={}}if(e.event==="assistant_part_discarded"){const a=e.data;a.round_key&&delete s.provisionalParts[a.round_key]}if(e.event==="status"){const a=e.data,c=s.steps.find(u=>u.key===a.step);s.steps=c?s.steps.map(u=>u.key===a.step?{...u,...a}:u):[...s.steps,{key:a.step,...a}]}if(e.event==="error"){const a=e.data;s.error=a.error??"The response could not be generated.",s.dailyQuota=a.daily_quota}s.events=[...s.events,e].slice(-500),t.byChatId[e.chat_id]=s},G9=N4({name:"chatGeneration",initialState:aD,reducers:{resetChatGenerations:()=>aD,hydrateChatTurns:(t,e)=>{for(const n of e.payload)lD(t,n)},reconcileChatTurn:(t,e)=>{lD(t,e.payload)},registerChatTurn:(t,e)=>{const n=t.byChatId[e.payload.chatId];
12if(!(n&&n.turnId!==e.payload.turnId&&n.sourceInputOrder!=null&&(e.payload.sourceInputOrder==null||e.payload.sourceInputOrder<n.sourceInputOrder||e.payload.sourceInputOrder===n.sourceInputOrder&&!n.inputId))){if(n?.turnId===e.payload.turnId){n.userMessageId=e.payload.userMessageId??n.userMessageId,n.sourceInputOrder=e.payload.sourceInputOrder??n.sourceInputOrder;return}t.byChatId[e.payload.chatId]={turnId:e.payload.turnId,sourceInputOrder:e.payload.sourceInputOrder,chatId:e.payload.chatId,status:"queued",attempt:1,sequence:0,partialResponse:"",committedParts:[],provisionalParts:{},steps:[],userMessageId:e.payload.userMessageId,events:[]}}},registerConversationInput:(t,e)=>{const n=e.payload,r=t.byChatId[n.chatId];r&&!r.inputId&&!Yh(r.status)&&!n.rejected||r?.sourceInputOrder!=null&&(r.sourceInputOrder>n.inputOrder||r.sourceInputOrder===n.inputOrder&&r.inputId!==n.inputId)||r?.inputId===n.inputId&&r.status===(n.rejected?"failed":"queued")||(t.byChatId[n.chatId]={turnId:Mie(n.inputId),inputId:n.inputId,sourceInputOrder:n.inputOrder,chatId:n.chatId,status:n.rejected?"failed":"queued",attempt:1,sequence:0,partialResponse:"",committedParts:[],provisionalParts:{},steps:[],events:[],userMessageId:n.userMessageId,error:n.error,dailyQuota:n.dailyQuota})},receiveChatTurnEvent:(t,e)=>{Nie(t,e.payload)}}}),{registerConversationInput:K9,resetChatGenerations:$ie,hydrateChatTurns:P4e,reconcileChatTurn:Fie,registerChatTurn:Uie,receiveChatTurnEvent:L4e}=G9.actions,Bie=G9.reducer,k4e=(t,e)=>e?t.chatGeneration.byChatId[e]??null:null,jie=(t,e)=>{Oie.disconnect(),Rie.disconnect(),t(Iie()),t($ie()),e.clear(),j9(),sne()},Hie=new Set(["user/loginUser/fulfilled","user/consumeEmailLinkUser/fulfilled","user/registerUser/fulfilled","user/loginWithFirebaseUser/fulfilled","user/fetchUser/fulfilled","user/switchAccount/fulfilled","user/setUser"]),zie=new Set(["user/clearUser","user/deleteUser/fulfilled","user/logoutAllAccounts/fulfilled","user/validateSession/rejected"]),cD=t=>typeof t!="object"||t===null||!("user_id"in t)?null:t,Vie=t=>e=>n=>{const r=n,i=t.getState(),s=i.user.user?.user_id??null,a=i.user.selectedProfileId;let c=s,u=a;if(Hie.has(r.type))c=cD(r.payload)?.user_id??s;else if(r.type==="user/validateSession/fulfilled")c=cD(r.payload)?.user_id??null;else if(r.type==="user/logoutAccount/fulfilled")c=r.payload?.switchedToUser?.user_id??s;else if(zie.has(r.type))c=null;else if(r.type==="user/hydrateMockSession"){const h=r.payload;c=h?.user?.user_id??s,u=h?.selectedProfileId??null}else r.type==="user/setSelectedProfile"&&(u=typeof r.payload=="string"?r.payload:null);return(c!==s||u!==a)&&jie(t.dispatch,B9),e(r)};var a_={},lw={},cw={},uD;function qie(){if(uD)return cw;uD=1,cw.__esModule=!0,cw.default=i;function t(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(c){return typeof c}:t=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(s)}function e(){}var n={getItem:e,setItem:e,removeItem:e};function r(s){if((typeof self>"u"?"undefined":t(self))!=="object"||!(s in self))return!1;try{var a=self[s],c="redux-persist ".concat(s," test");a.setItem(c,"test"),a.getItem(c),a.removeItem(c)}catch{return!1}return!0}function i(s){var a="".concat(s,"Storage");return r(a)?self[a]:n}return cw}var dD;function Wie(){if(dD)return lw;dD=1,lw.__esModule=!0,lw.default=n;var t=e(qie());function e(r){return r&&r.__esModule?r:{default:r}}function n(r){var i=(0,t.default)(r);return{getItem:function(a){return new Promise(function(c,u){c(i.getItem(a))})},setItem:function(a,c){return new Promise(function(u,h){u(i.setItem(a,c))})},removeItem:function(a){return new Promise(function(c,u){c(i.removeItem(a))})}}}return lw}var fD;function Gie(){if(fD)return a_;fD=1,a_.__esModule=!0,a_.default=void 0;var t=e(Wie());function e(r){return r&&r.__esModule?r:{default:r}}var n=(0,t.default)("local");return a_.default=n,a_}var Kie=Gie();const Yie=ju(Kie);var D_={exports:{}};var Xie=D_.exports,hD;function Qie(){return hD||(hD=1,(function(t,e){(function(){var n,r="4.18.1",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="Invalid `imports` option passed into `_.template`",h="__lodash_hash_undefined__",p=500,v="__lodash_placeholder__",y=1,E=2,S=4,x=1,C=2,R=1,A=2,O=4,P=8,L=16,D=32,N=64,k=128,U=256,F=512,V=30,G="...",Z=800,K=16,J=1,H=2,Y=3,ee=1/0,fe=9007199254740991,ue=17976931348623157e292,z=NaN,Q=4294967295,ae=Q-1,de=Q>>>1,be=[["ary",k],["bind",R],["bindKey",A],["curry",P],["curryRight",L],["flip",F],["partial",D],["partialRight",N],["rearg",U]],Se="[object Arguments]",je="[object Array]",Ne="[object AsyncFunction]",ze="[object Boolean]",tt="[object Date]",Je="[object DOMException]",We="[object Error]",Ve="[object Function]",Pt="[object GeneratorFunction]",dt="[object Map]",$e="[object Number]",vt="[object Null]",ot="[object Object]",Bt="[object Promise]",An="[object Proxy]",Ut="[object RegExp]",qt="[object Set]",or="[object String]",Hn="[object Symbol]",Yr="[object Undef
12ined]",xr="[object WeakMap]",pi="[object WeakSet]",zn="[object ArrayBuffer]",Zn="[object DataView]",ar="[object Float32Array]",Vi="[object Float64Array]",Vn="[object Int8Array]",Wt="[object Int16Array]",Nt="[object Int32Array]",Xt="[object Uint8Array]",nn="[object Uint8ClampedArray]",Xr="[object Uint16Array]",Li="[object Uint32Array]",ki=/\b__p \+= '';/g,gi=/\b(__p \+=) '' \+/g,qn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,si=/&(?:amp|lt|gt|quot|#39);/g,Wn=/[&<>"']/g,Os=RegExp(si.source),mi=RegExp(Wn.source),Mn=/<%-([\s\S]+?)%>/g,ro=/<%([\s\S]+?)%>/g,vi=/<%=([\s\S]+?)%>/g,yi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,io=/^\w*$/,Co=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xo=/[\\^$.*+?()[\]{}|]/g,te=RegExp(xo.source),se=/^\s+/,pe=/\s/,Oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Le=/\{\n\/\* \[wrapped with (.+)\] \*/,Ke=/,? & /,qe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ye=/[()=,{}\[\]\/\s]/,Ge=/\\(\\)?/g,it=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nt=/\w*$/,xt=/^[-+]0x[0-9a-f]+$/i,ht=/^0b[01]+$/i,lt=/^\[object .+?Constructor\]$/,rn=/^0o[0-7]+$/i,On=/^(?:0|[1-9]\d*)$/,bt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 14,379 bytes, line 12
127f]/g,Et=/($^)/,xn=/['\n\r\u2028\u2029\\]/g,kt="\\ud800-\\udfff",ss="\\u0300-\\u036f",Mi="\\ufe20-\\ufe2f",Tr="\\u20d0-\\u20ff",mr=ss+Mi+Tr,_i="\\u2700-\\u27bf",yt="a-z\\xdf-\\xf6\\xf8-\\xff",dn="\\xac\\xb1\\xd7\\xf7",Qr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",so="\\u2000-\\u206f",oo=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Tt="A-Z\\xc0-\\xd6\\xd8-\\xde",Tn="\\ufe0e\\ufe0f",Di=dn+Qr+so+oo,qi="['â]",Cl="["+kt+"]",Da="["+Di+"]",yn="["+mr+"]",ia="\\d+",Wi="["+_i+"]",Vu="["+yt+"]",Dv="[^"+kt+Di+ia+_i+yt+Tt+"]",Cf="\\ud83c[\\udffb-\\udfff]",qu="(?:"+yn+"|"+Cf+")",Nv="[^"+kt+"]",Np="(?:\\ud83c[\\udde6-\\uddff]){2}",xl="[\\ud800-\\udbff][\\udc00-\\udfff]",Wu="["+Tt+"]",$v="\\u200d",Fv="(?:"+Vu+"|"+Dv+")",Uv="(?:"+Wu+"|"+Dv+")",Vb="(?:"+qi+"(?:d|ll|m|re|s|t|ve))?",qb="(?:"+qi+"(?:D|LL|M|RE|S|T|VE))?",xf=qu+"?",sa="["+Tn+"]?",Bv="(?:"+$v+"(?:"+[Nv,Np,xl].join("|")+")"+sa+xf+")*",jv="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rc=sa+xf+Bv,Wb="(?:"+[Wi,Np,xl].join("|")+")"+Rc,Hv="(?:"+[Nv+yn+"?",yn,Np,xl,Cl].join("|")+")",Gb=RegExp(qi,"g"),Tf=RegExp(yn,"g"),To=RegExp(Cf+"(?="+Cf+")|"+Hv+Rc,"g"),zv=RegExp([Wu+"?"+Vu+"+"+Vb+"(?="+[Da,Wu,"$"].join("|")+")",Uv+"+"+qb+"(?="+[Da,Wu+Fv,"$"].join("|")+")",Wu+"?"+Fv+"+"+Vb,Wu+"+"+qb,Gu,jv,ia,Wb].join("|"),"g"),Rf=RegExp("["+$v+kt+mr+Tn+"]"),Tl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vv=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$p=-1,Jn={};Jn[ar]=Jn[Vi]=Jn[Vn]=Jn[Wt]=Jn[Nt]=Jn[Xt]=Jn[nn]=Jn[Xr]=Jn[Li]=!0,Jn[Se]=Jn[je]=Jn[zn]=Jn[ze]=Jn[Zn]=Jn[tt]=Jn[We]=Jn[Ve]=Jn[dt]=Jn[$e]=Jn[ot]=Jn[Ut]=Jn[qt]=Jn[or]=Jn[xr]=!1;var In={};In[Se]=In[je]=In[zn]=In[Zn]=In[ze]=In[tt]=In[ar]=In[Vi]=In[Vn]=In[Wt]=In[Nt]=In[dt]=In[$e]=In[ot]=In[Ut]=In[qt]=In[or]=In[Hn]=In[Xt]=In[nn]=In[Xr]=In[Li]=!0,In[We]=In[Ve]=In[xr]=!1;var Fp={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"},Kb={"&":"&","<":"<",">":">",'"':""","'":"'"},os={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ac={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Up=parseFloat,Af=parseInt,Yb=typeof HS=="object"&&HS&&HS.Object===Object&&HS,qv=typeof self=="object"&&self&&self.Object===Object&&self,Zr=Yb||qv||Function("return this")(),Oc=e&&!e.nodeType&&e,oa=Oc&&!0&&t&&!t.nodeType&&t,Wv=oa&&oa.exports===Oc,Gv=Wv&&Yb.process,ao=(function(){try{var le=oa&&oa.require&&oa.require("util").types;return le||Gv&&Gv.binding&&Gv.binding("util")}catch{}})(),Xb=ao&&ao.isArrayBuffer,Bp=ao&&ao.isDate,Qb=ao&&ao.isMap,Zb=ao&&ao.isRegExp,Jb=ao&&ao.isSet,eE=ao&&ao.isTypedArray;function Is(le,we,_e){switch(_e.length){case 0:return le.call(we);case 1:return le.call(we,_e[0]);case 2:return le.call(we,_e[0],_e[1]);case 3:return le.call(we,_e[0],_e[1],_e[2])}return le.apply(we,_e)}function tE(le,we,_e,et){for(var gt=-1,ln=le==null?0:le.length;++gt<ln;){var Mr=le[gt];we(et,Mr,_e(Mr),le)}return et}function Ps(le,we){for(var _e=-1,et=le==null?0:le.length;++_e<et&&we(le[_e],_e,le)!==!1;);return le}function ET(le,we){for(var _e=le==null?0:le.length;_e--&&we(le[_e],_e,le)!==!1;);return le}function nE(le,we){for(var _e=-1,et=le==null?0:le.length;++_e<et;)if(!we(le[_e],_e,le))return!1;return!0}function Rl(le,we){for(var _e=-1,et=le==null?0:le.length,gt=0,ln=[];++_e<et;){var Mr=le[_e];we(Mr,_e,le)&&(ln[gt++]=Mr)}return ln}function Ku(le,we){var _e=le==null?0:le.length;return!!_e&&Yu(le,we,0)>-1}function Kv(le,we,_e){for(var et=-1,gt=le==null?0:le.length;++et<gt;)if(_e(we,le[et]))return!0;return!1}function hr(le,we){for(var _e=-1,et=le==null?0:le.length,gt=Array(et);++_e<et;)gt[_e]=we(le[_e],_e,le);return gt}function Al(le,we){for(var _e=-1,et=we.length,gt=le.length;++_e<et;)le[gt+_e]=we[_e];return le}function jp(le,we,_e,et){var gt=-1,ln=le==null?0:le.length;for(et&&ln&&(_e=le[++gt]);++gt<ln;)_e=we(_e,le[gt],gt,le);return _e}function ST(le,we,_e,et){var gt=le==null?0:le.length;for(et&>&&(_e=le[--gt]);gt--;)_e=we(_e,le[gt],gt,le);return _e}function Yv(le,we){for(var _e=-1,et=le==null?0:le.length;++_e<et;)if(we(le[_e],_e,le))return!0;return!1}var wT=Xv("length");function CT(le){return le.split("")}function xT(le){return le.match(qe)||[]}function rE(le,we,_e){var et;return _e(le,function(gt,ln,Mr){if(we(gt,ln,Mr))return et=ln,!1}),et}function Hp(le,we,_e,et){for(var gt=le.length,ln=_e+(et?1:-1);et?ln--:++ln<gt;)if(we(le[ln],ln,le))return ln;return-1}function Yu(le,we,_e){return we===we?OT(le,we,_e):Hp(le,zp,_e)}function TT(le,we,_e,et){for(var gt=_e-1,ln=le.length;++gt<ln;)if(et(le[gt],we))return gt;return-1}function zp(le){return le!==le}function Xu(le,we){var _e=le==null?0:le.length;return _e?qp(le,we)/_e:z}function Xv(le){return function(we){return we==null?n:we[le]}}function Vp(le){return function(we){return le==null?n:le[we]}}function Qv(le,we,_e,et,gt){return gt(le,function(ln,Mr,Dn){_e=et?(et=!1,ln):we(_e,ln,Mr,Dn)}),_e}function iE(le,we){var _e=le.length;for(le.sort(we);_e--;)le[_e]=le[_e].value;return le}function qp(le,we){for(var _e,et=-1,gt=le.length;++et<gt;){var ln=we(le[et]);ln!==n&&(_e=_e===n?ln:_e+ln)}return _e}function Wp(le,we){for(var _e=-1,et=Array(le);++_e<le;)et[_e]=we(_e);return et}function Qu(le,we){return hr(we,function(_e){return[_e,le[_e]]})}function sE(le){return le&&le.slice(0,ny(le)+1).replace(se,"")}function Ls(le){return function(we){return le(we)}}function Zv(le,we){return hr(we,function(_e){return le[_e]})}function Zu(le,we){return le.has(we)}function Jv(le,we){for(var _e=-1,et=le.length;++_e<et&&Yu(we,le[_e],0)>-1;);return _e}function Ju(le,we){for(var _e=le.length;_e--&&Yu(we,le[_e],0)>-1;);return _e}function Of(le,we){for(var _e=le.length,et=0;_e--;)le[_e]===we&&++et;return et}var RT=Vp(Fp),Gp=Vp(Kb);function oE(le){return"\\"+Ac[le]}function aE(le,we){return le==null?n:le[we]}function Ol(le){return Rf.test(le)}function ey(le){return Tl.test(le)}function lE(le){for(var we,_e=[];!(we=le.next()).done;)_e.push(we.value);return _e}function Kp(le){var we=-1,_e=Array(le.size);return le.forEach(function(et,gt){_e[++we]=[gt,et]}),_e}function ty(le,we){return function(_e){return le(we(_e))}}function Il(le,we){for(var _e=-1,et=le.length,gt=0,ln=[];++_e<et;){var Mr=le[_e];(Mr===we||Mr===v)&&(le[_e]=v,ln[gt++]=_e)}return ln}function Yp(le){var we=-1,_e=Array(le.size);return le.forEach(function(et){_e[++we]=et}),_e}function AT(le){var we=-1,_e=Array(le.size);return le.forEach(function(et){_e[++we]=[et,et]}),_e}function OT(le,we,_e){for(var et=_e-1,gt=le.length;++et<gt;)if(le[et]===we)return et;return-1}function IT(le,we,_e){for(var et=_e+1;et--;)if(le[et]===we)return et;return et}function oi(le){return Ol(le)?uE(le):wT(le)}function Gi(le){return Ol(le)?dE(le):CT(le)}function ny(le){for(var we=le.length;we--&&pe.test(le.charAt(we)););return we}var cE=Vp(os);function uE(le){for(var we=To.lastIndex=0;To.test(le);)++we;return we}function dE(le){return le.match(To)||[]}function ry(le){return le.match(zv)||[]}var PT=(function le(we){we=we==null?Zr:Ro.defaults(Zr.Object(),we,Ro.pick(Zr,Vv));var _e=we.Array,et=we.Date,gt=we.Error,ln=we.Function,Mr=we.Math,Dn=we.Object,Na=we.RegExp,fE=we.String,ks=we.TypeError,If=_e.prototype,LT=ln.prototype,ed=Dn.prototype,Xp=we["__core-js_shared__"],Pf=LT.toString,En=ed.hasOwnProperty,iy=0,lo=(function(){var f=/[^.]+$/.exec(Xp&&Xp.keys&&Xp.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""})(),Ic=ed.toString,co=Pf.call(Dn),td=Zr._,sy=Na("^"+Pf.call(En).replace(xo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pc=Wv?we.Buffer:n,Ao=we.Symbol,nd=we.Uint8Array,Pl=Pc?Pc.allocUnsafe:n,Lf=ty(Dn.getPrototypeOf,Dn),kf=Dn.create,Lc=ed.propertyIsEnumerable,Qp=If.splice,as=Ao?Ao.isConcatSpreadable:n,kc=Ao?Ao.iterator:n,Ki=Ao?Ao.toStringTag:n,Mf=(function(){try{var f=Do(Dn,"defineProperty");return f({},"",{}),f}catch{}})(),Zp=we.clearTimeout!==Zr.clearTimeout&&we.clearTimeout,Mc=et&&et.now!==Zr.Date.now&&et.now,oy=we.setTimeout!==Zr.setTimeout&&we.setTimeout,Df=Mr.ceil,rd=Mr.floor,Jp=Dn.getOwnPropertySymbols,uo=Pc?Pc.isBuffer:n,Dc=we.isFinite,id=If.join,eg=ty(Dn.keys,Dn),vr=Mr.max,Gn=Mr.min,fo=et.now,Ll=we.parseInt,Oo=Mr.random,aa=If.reverse,Io=Do(we,"DataView"),sd=Do(we,"Map"),Nf=Do(we,"Promise"),kl=Do(we,"Set"),od=Do(we,"WeakMap"),Dr=Do(Dn,"create"),Nn=od&&new od,Yt={},Ml=Gl(Io),ho=Gl(sd),ay=Gl(Nf),Dl=Gl(kl),hE=Gl(od),$f=Ao?Ao.prototype:n,la=$f?$f.valueOf:n,Nl=$f?$f.toString:n;function j(f){if(Pr(f)&&!Mt(f)&&!(f instanceof $t)){if(f instanceof ai)return f;if(En.call(f,"__wrapped__"))return s0(f)}return new ai(f)}var ca=(function(){function f(){}return function(m){if(!yr(m))return{};if(kf)return kf(m);f.prototype=m;var w=new f;return f.prototype=n,w}})();function ad(){}function ai(f,m){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!m,this.__index__=0,this.__values__=n}j.templateSettings={escape:Mn,evaluate:ro,interpolate:vi,variable:"",imports:{_:j}},j.prototype=ad.prototype,j.prototype.constructor=j,ai.prototype=ca(ad.prototype),ai.prototype.constructor=ai;function $t(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function $l(){var f=new $t(this.__wrapped__);return f.__actions__=Ni(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=Ni(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=Ni(this.__views__),f}function $a(){if(this.__filtered__){var f=new $t(this);f.__dir__=-1,f.__filtered__=!0}else f=this.clone(),f.__dir__*=-1;return f}function ly(){var f=this.__wrapped__.value(),m=this.__dir__,w=Mt(f),I=m<0,$=w?f.length:0,q=xg(0,$,this.__views__),X=q.start,re=q.end,he=re-X,ke=I?re:X-1,Me=this.__iteratees__,Fe=Me.length,Qe=0,ut=Gn(he,this.__takeCount__);if(!w||!I&&$==he&&ut==he)return Ay(f,this.__actions__);var St=[];e:for(;he--&&Qe<ut;){ke+=m;for(var en=-1,_t=f[ke];++en<Fe;){var fn=Me[en],gn=fn.iteratee,Fo=fn.type,zs=gn(_t);if(Fo==H)_t=zs;else if(!zs){if(Fo==J)continue e;break e}}St[Qe++]=_t}return St}$t.prototype=ca(ad.prototype),$t.prototype.constructor=$t;function Fa(f){var m=-1,w=f==null?0:f.length;for(this.clear();++m<w;){var I=f[m];this.set(I[0],I[1])}}function ld(){this.__data__=Dr?Dr(null):{},this.size=0}function tg(f){var m=this.has(f)&&delete this.__data__[f];return this.size-=m?1:0,m}function Nc(f){var m=this.__data__;if(Dr){var w=m[f];return w===h?n:w}return En.call(m,f)?m[f]:n}function bi(f){var m=this.__data__;return Dr?m[f]!==n:En.call(m,f)}function ng(f,m){var w=this.__data__;return this.size+=this.has(f)?0:1,w[f]=Dr&&m===n?h:m,this}Fa.prototype.clear=ld,Fa.prototype.delete=tg,Fa.prototype.get=Nc,Fa.prototype.has=bi,Fa.prototype.set=ng;function ua(f){var m=-1,w=f==null?0:f.length;for(this.clear();++m<w;){var I=f[m];this.set(I[0],I[1])}}function kT(){this.__data__=[],this.size=0}function MT(f){var m=this.__data__,w=jf(m,f);if(w<0)return!1;var I=m.length-1;return w==I?m.pop():Qp.call(m,w,1),--this.size,!0}function DT(f){var m=this.__data__,w=jf(m,f);return w<0?n:m[w][1]}function Ur(f){return jf(this.__data__,f)>-1}function cy(f,m){var w=this.__data__,I=jf(w,f);return I<0?(++this.size,w.push([f,m])):w[I][1]=m,this}ua.prototype.clear=kT,ua.prototype.delete=MT,ua.prototype.get=DT,ua.prototype.has=Ur,ua.prototype.set=cy;function Ms(f){var m=-1,w=f==null?0:f.length;for(this.clear();++m<w;){var I=f[m];this.set(I[0],I[1])}}function Ff(){this.size=0,this.__data__={hash:new Fa,map:new(sd||ua),string:new Fa}}function uy(f){var m=Jf(this,f).delete(f);return this.size-=m?1:0,m}function cd(f){return Jf(this,f).get(f)}function ud(f){return Jf(this,f).has(f)}function NT(f,m){var w=Jf(this,f),I=w.size;return w.set(f,m),this.size+=w.size==I?0:1,this}Ms.prototype.clear=Ff,Ms.prototype.delete=uy,Ms.prototype.get=cd,Ms.prototype.has=ud,Ms.prototype.set=NT;function Fl(f){var m=-1,w=f==null?0:f.length;for(this.__data__=new Ms;++m<w;)this.add(f[m])}function $T(f){return this.__data__.set(f,h),this}function pE(f){return this.__data__.has(f)}Fl.prototype.add=Fl.prototype.push=$T,Fl.prototype.has=pE;function Ei(f){var m=this.__data__=new ua(f);this.size=m.size}function dy(){this.__data__=new ua,this.size=0}function rg(f){var m=this.__data__,w=m.delete(f);return this.size=m.size,w}function gE(f){return this.__data__.get(f)}function dd(f){return this.__data__.has(f)}function fy(f,m){var w=this.__data__;if(w instanceof ua){var I=w.__data__;if(!sd||I.length<i-1)return I.push([f,m]),this.size=++w.size,this;w=this.__data__=new Ms(I)}return w.set(f,m),this.size=w.size,this}Ei.prototype.clear=dy,Ei.prototype.delete=rg,Ei.prototype.get=gE,Ei.prototype.has=dd,Ei.prototype.set=fy;function Uf(f,m){var w=Mt(f),I=!w&&tl(f),$=!w&&!I&&nl(f),q=!w&&!I&&!$&&Jl(f),
vendor: 9,092 bytes, line 12
12X=w||I||$||q,re=X?Wp(f.length,fE):[],he=re.length;for(var ke in f)(m||En.call(f,ke))&&!(X&&(ke=="length"||$&&(ke=="offset"||ke=="parent")||q&&(ke=="buffer"||ke=="byteLength"||ke=="byteOffset")||ma(ke,he)))&&re.push(ke);return re}function Bf(f){var m=f.length;return m?f[Wf(0,m-1)]:n}function mE(f,m){return th(Ni(f),da(m,0,f.length))}function vE(f){return th(Ni(f))}function Ua(f,m,w){(w!==n&&!go(f[m],w)||w===n&&!(m in f))&&Ds(f,m,w)}function Po(f,m,w){var I=f[m];(!(En.call(f,m)&&go(I,w))||w===n&&!(m in f))&&Ds(f,m,w)}function jf(f,m){for(var w=f.length;w--;)if(go(f[w][0],m))return w;return-1}function yE(f,m,w,I){return fa(f,function($,q,X){m(I,$,w($),X)}),I}function $c(f,m){return f&&Mo(m,ci(m),f)}function Hf(f,m){return f&&Mo(m,ms(m),f)}function Ds(f,m,w){m=="__proto__"&&Mf?Mf(f,m,{configurable:!0,enumerable:!0,value:w,writable:!0}):f[m]=w}function Fc(f,m){for(var w=-1,I=m.length,$=_e(I),q=f==null;++w<I;)$[w]=q?n:Wg(f,m[w]);return $}function da(f,m,w){return f===f&&(w!==n&&(f=f<=w?f:w),m!==n&&(f=f>=m?f:m)),f}function Ns(f,m,w,I,$,q){var X,re=m&y,he=m&E,ke=m&S;if(w&&(X=$?w(f,I,$,q):w(f)),X!==n)return X;if(!yr(f))return f;var Me=Mt(f);if(Me){if(X=LE(f),!re)return Ni(f,X)}else{var Fe=$i(f),Qe=Fe==Ve||Fe==Pt;if(nl(f))return yg(f,re);if(Fe==ot||Fe==Se||Qe&&!$){if(X=he||Qe?{}:Yy(f),!re)return he?FT(f,Hf(X,f)):TE(f,$c(X,f))}else{if(!In[Fe])return $?f:{};X=Xy(f,Fe,re)}}q||(q=new Ei);var ut=q.get(f);if(ut)return ut;q.set(f,X),L0(f)?f.forEach(function(_t){X.add(Ns(_t,m,w,_t,f,q))}):I0(f)&&f.forEach(function(_t,fn){X.set(fn,Ns(_t,m,w,fn,f,q))});var St=ke?he?Zf:qy:he?ms:ci,en=Me?n:St(f);return Ps(en||f,function(_t,fn){en&&(fn=_t,_t=f[fn]),Po(X,fn,Ns(_t,m,w,fn,f,q))}),X}function Uc(f){var m=ci(f);return function(w){return hy(w,f,m)}}function hy(f,m,w){var I=w.length;if(f==null)return!I;for(f=Dn(f);I--;){var $=w[I],q=m[$],X=f[$];if(X===n&&!($ in f)||!q(X))return!1}return!0}function Ba(f,m,w){if(typeof f!="function")throw new ks(a);return Sd(function(){f.apply(n,w)},m)}function Bc(f,m,w,I){var $=-1,q=Ku,X=!0,re=f.length,he=[],ke=m.length;if(!re)return he;w&&(m=hr(m,Ls(w))),I?(q=Kv,X=!1):m.length>=i&&(q=Zu,X=!1,m=new Fl(m));e:for(;++$<re;){var Me=f[$],Fe=w==null?Me:w(Me);if(Me=I||Me!==0?Me:0,X&&Fe===Fe){for(var Qe=ke;Qe--;)if(m[Qe]===Fe)continue e;he.push(Me)}else q(m,Fe,I)||he.push(Me)}return he}var fa=Ny(Lo),ja=Ny(jl,!0);function Ul(f,m){var w=!0;return fa(f,function(I,$,q){return w=!!m(I,$,q),w}),w}function Bl(f,m,w){for(var I=-1,$=f.length;++I<$;){var q=f[I],X=m(q);if(X!=null&&(re===n?X===X&&!Zi(X):w(X,re)))var re=X,he=q}return he}function py(f,m,w,I){var $=f.length;for(w=jt(w),w<0&&(w=-w>$?0:$+w),I=I===n||I>$?$:jt(I),I<0&&(I+=$),I=w>I?0:k0(I);w<I;)f[w++]=m;return f}function ig(f,m){var w=[];return fa(f,function(I,$,q){m(I,$,q)&&w.push(I)}),w}function Nr(f,m,w,I,$){var q=-1,X=f.length;for(w||(w=Zy),$||($=[]);++q<X;){var re=f[q];m>0&&w(re)?m>1?Nr(re,m-1,w,I,$):Al($,re):I||($[$.length]=re)}return $}var jc=_g(),gy=_g(!0);function Lo(f,m){return f&&jc(f,m,ci)}function jl(f,m){return f&&gy(f,m,ci)}function Hc(f,m){return Rl(m,function(w){return mo(f[w])})}function Hl(f,m){m=Va(m,f);for(var w=0,I=m.length;f!=null&&w<I;)f=f[Hr(m[w++])];return w&&w==I?f:n}function sg(f,m,w){var I=m(f);return Mt(f)?I:Al(I,w(f))}function Si(f){return f==null?f===n?Yr:vt:Ki&&Ki in Dn(f)?PE(f):NE(f)}function Yi(f,m){return f>m}function po(f,m){return f!=null&&En.call(f,m)}function zl(f,m){return f!=null&&m in Dn(f)}function my(f,m,w){return f>=Gn(m,w)&&f<vr(m,w)}function og(f,m,w){for(var I=w?Kv:Ku,$=f[0].length,q=f.length,X=q,re=_e(q),he=1/0,ke=[];X--;){var Me=f[X];X&&m&&(Me=hr(Me,Ls(m))),he=Gn(Me.length,he),re[X]=!w&&(m||$>=120&&Me.length>=120)?new Fl(X&&Me):n}Me=f[0];var Fe=-1,Qe=re[0];e:for(;++Fe<$&&ke.length<he;){var ut=Me[Fe],St=m?m(ut):ut;if(ut=w||ut!==0?ut:0,!(Qe?Zu(Qe,St):I(ke,St,w))){for(X=q;--X;){var en=re[X];if(!(en?Zu(en,St):I(f[X],St,w)))continue e}Qe&&Qe.push(St),ke.push(ut)}}return ke}function Vl(f,m,w,I){return Lo(f,function($,q,X){m(I,w($),q,X)}),I}function wi(f,m,w){m=Va(m,f),f=Ed(f,m);var I=f==null?f:f[Hr(Us(m))];return I==null?n:Is(I,f,w)}function Rr(f){return Pr(f)&&Si(f)==Se}function ag(f){return Pr(f)&&Si(f)==zn}function Ha(f){return Pr(f)&&Si(f)==tt}function Lt(f,m,w,I,$){return f===m?!0:f==null||m==null||!Pr(f)&&!Pr(m)?f!==f&&m!==m:$n(f,m,w,I,Lt,$)}function $n(f,m,w,I,$,q){var X=Mt(f),re=Mt(m),he=X?je:$i(f),ke=re?je:$i(m);he=he==Se?ot:he,ke=ke==Se?ot:ke;var Me=he==ot,Fe=ke==ot,Qe=he==ke;if(Qe&&nl(f)){if(!nl(m))return!1;X=!0,Me=!1}if(Qe&&!Me)return q||(q=new Ei),X||Jl(f)?zy(f,m,w,I,$,q):Vy(f,m,he,w,I,$,q);if(!(w&x)){var ut=Me&&En.call(f,"__wrapped__"),St=Fe&&En.call(m,"__wrapped__");if(ut||St){var en=ut?f.value():f,_t=St?m.value():m;return q||(q=new Ei),$(en,_t,w,I,q)}}return Qe?(q||(q=new Ei),IE(f,m,w,I,$,q)):!1}function Br(f){return Pr(f)&&$i(f)==dt}function fd(f,m,w,I){var $=w.length,q=$,X=!I;if(f==null)return!q;for(f=Dn(f);$--;){var re=w[$];if(X&&re[2]?re[1]!==f[re[0]]:!(re[0]in f))return!1}for(;++$<q;){re=w[$];var he=re[0],ke=f[he],Me=re[1];if(X&&re[2]){if(ke===n&&!(he in f))return!1}else{var Fe=new Ei;if(I)var Qe=I(ke,Me,he,f,m,Fe);if(!(Qe===n?Lt(Me,ke,x|C,I,Fe):Qe))return!1}}return!0}function zc(f){if(!yr(f)||e0(f))return!1;var m=mo(f)?sy:lt;return m.test(Gl(f))}function Vc(f){return Pr(f)&&Si(f)==Ut}function lg(f){return Pr(f)&&$i(f)==qt}function zf(f){return Pr(f)&&hh(f.length)&&!!Jn[Si(f)]}function qc(f){return typeof f=="function"?f:f==null?Ui:typeof f=="object"?Mt(f)?_y(f[0],f[1]):yy(f):ne(f)}function vy(f){if(!Fs(f))return eg(f);var m=[];for(var w in Dn(f))En.call(f,w)&&w!="constructor"&&m.push(w);return m}function Ar(f){if(!yr(f))return t0(f);var m=Fs(f),w=[];for(var I in f)I=="constructor"&&(m||!En.call(f,I))||w.push(I);return w}function Vf(f,m){return f<m}function cg(f,m){var w=-1,I=hs(f)?_e(f.length):[];return fa(f,function($,q,X){I[++w]=m($,q,X)}),I}function yy(f){var m=Cg(f);return m.length==1&&m[0][2]?ME(m[0][0],m[0][1]):function(w){return w===f||fd(w,f,m)}}function _y(f,m){return bd(f)&&Rg(m)?ME(Hr(f),m):function(w){var I=Wg(w,f);return I===n&&I===m?N0(w,f):Lt(m,I,x|C)}}function ug(f,m,w,I,$){f!==m&&jc(m,function(q,X){if($||($=new Ei),yr(q))by(f,m,X,w,ug,I,$);else{var re=I?I(n0(f,X),q,X+"",f,m,$):n;re===n&&(re=q),Ua(f,X,re)}},ms)}function by(f,m,w,I,$,q,X){var re=n0(f,w),he=n0(m,w),ke=X.get(he);if(ke){Ua(f,w,ke);return}var Me=q?q(re,he,w+"",f,m,X):n,Fe=Me===n;if(Fe){var Qe=Mt(he),ut=!Qe&&nl(he),St=!Qe&&!ut&&Jl(he);Me=he,Qe||ut||St?Mt(re)?Me=re:ur(re)?Me=Ni(re):ut?(Fe=!1,Me=yg(he,!0)):St?(Fe=!1,Me=Py(he,!0)):Me=[]:nu(he)||tl(he)?(Me=re,tl(re)?Me=bS(re):(!yr(re)||mo(re))&&(Me=Yy(he))):Fe=!1}Fe&&(X.set(he,Me),$(Me,he,I,q,X),X.delete(he)),Ua(f,w,Me)}function dg(f,m){var w=f.length;if(w)return m+=m<0?w:0,ma(m,w)?f[m]:n}function fg(f,m,w){m.length?m=hr(m,function(q){return Mt(q)?function(X){return Hl(X,q.length===1?q[0]:q)}:q}):m=[Ui];var I=-1;m=hr(m,Ls(pt()));var $=cg(f,function(q,X,re){var he=hr(m,function(ke){return ke(q)});return{criteria:he,index:++I,value:q}});return iE($,function(q,X){return ky(q,X,w)})}function Xi(f,m){return Or(f,m,function(w,I){return N0(f,I)})}function Or(f,m,w){for(var I=-1,$=m.length,q={};++I<$;){var X=m[I],re=Hl(f,X);w(re,X)&&pd(q,Va(X,f),re)}return q}function hg(f){return function(m){return Hl(m,f)}}function Wc(f,m,w,I){var $=I?TT:Yu,q=-1,X=m.length,re=f;for(f===m&&(m=Ni(m)),w&&(re=hr(f,Ls(w)));++q<X;)for(var he=0,ke=m[q],Me=w?w(ke):ke;(he=$(re,Me,he,I))>-1;)re!==f&&Qp.call(re,he,1),Qp.call(f,he,1);return f}function qf(f,m){for(var w=f?m.length:0,I=w-1;w--;){var $=m[w];if(w==I||$!==q){var q=$;ma($)?Qp.call(f,$,1):pg(f,$)}}return f}function Wf(f,m){return f+rd(Oo()*(m-f+1))}function za(f,m,w,I){for(var $=-1,q=vr(Df((m-f)/(w||1)),0),X=_e(q);q--;)X[I?q:++$]=f,f+=w;return X}function hd(f,m){var w="";if(!f||m<1||m>fe)return w;do m%2&&(w+=f),m=rd(m/2),m&&(f+=f);while(m);return w}function Gt(f,m){return Qc(eh(f,m,Ui),f+"")}function Ey(f){return Bf(ec(f))}function _E(f,m){var w=ec(f);return th(w,da(m,0,w.length))}function pd(f,m,w,I){if(!yr(f))return f;m=Va(m,f);for(var $=-1,q=m.length,X=q-1,re=f;re!=null&&++$<q;){var he=Hr(m[$]),ke=w;if(he==="__proto__"||he==="constructor"||he==="prototype")return f;if($!=X){var Me=re[he];ke=I?I(Me,he,re):n,ke===n&&(ke=yr(Me)?Me:ma(m[$+1])?[]:{})}Po(re,he,ke),re=re[he]}return f}var Sy=Nn?function(f,m){return Nn.set(f,m),f}:Ui,bE=Mf?function(f,m){return Mf(f,"toString",{configurable:!0,enumerable:!1,value:Dd(m),writable:!0})}:Ui;function EE(f){return th(ec(f))}function $s(f,m,w){var I=-1,$=f.length;m<0&&(m=-m>$?0:$+m),w=w>$?$:w,w<0&&(w+=$),$=m>w?0:w-m>>>0,m>>>=0;for(var q=_e($);++I<$;)q[I]=f[I+m];return q}function wy(f,m){var w;return fa(f,function(I,$,q){return w=m(I,$,q),!w}),!!w}function Gf(f,m,w){var I=0,$=f==null?I:f.length;if(typeof m=="number"&&m===m&&$<=de){for(;I<$;){var q=I+$>>>1,X=f[q];X!==null&&!Zi(X)&&(w?X<=m:X<m)?I=q+1:$=q}return $}return Cy(f,m,Ui,w)}function Cy(f,m,w,I){var $=0,q=f==null?0:f.length;if(q===0)return 0;m=w(m);for(var X=m!==m,re=m===null,he=Zi(m),ke=m===n;$<q;){var Me=rd(($+q)/2),Fe=w(f[Me]),Qe=Fe!==n,ut=Fe===null,St=Fe===Fe,en=Zi(Fe);
vendor: 10,373 bytes, line 12
12if(X)var _t=I||St;else ke?_t=St&&(I||Qe):re?_t=St&&Qe&&(I||!ut):he?_t=St&&Qe&&!ut&&(I||!en):ut||en?_t=!1:_t=I?Fe<=m:Fe<m;_t?$=Me+1:q=Me}return Gn(q,ae)}function xy(f,m){for(var w=-1,I=f.length,$=0,q=[];++w<I;){var X=f[w],re=m?m(X):X;if(!w||!go(re,he)){var he=re;q[$++]=X===0?0:X}}return q}function Ty(f){return typeof f=="number"?f:Zi(f)?z:+f}function ls(f){if(typeof f=="string")return f;if(Mt(f))return hr(f,ls)+"";if(Zi(f))return Nl?Nl.call(f):"";var m=f+"";return m=="0"&&1/f==-ee?"-0":m}function ha(f,m,w){var I=-1,$=Ku,q=f.length,X=!0,re=[],he=re;if(w)X=!1,$=Kv;else if(q>=i){var ke=m?null:OE(f);if(ke)return Yp(ke);X=!1,$=Zu,he=new Fl}else he=m?[]:re;e:for(;++I<q;){var Me=f[I],Fe=m?m(Me):Me;if(Me=w||Me!==0?Me:0,X&&Fe===Fe){for(var Qe=he.length;Qe--;)if(he[Qe]===Fe)continue e;m&&he.push(Fe),re.push(Me)}else $(he,Fe,w)||(he!==re&&he.push(Fe),re.push(Me))}return re}function pg(f,m){m=Va(m,f);var w=-1,I=m.length;if(!I)return!0;for(;++w<I;){var $=Hr(m[w]);if($==="__proto__"&&!En.call(f,"__proto__")||($==="constructor"||$==="prototype")&&w<I-1)return!1}var q=Ed(f,m);return q==null||delete q[Hr(Us(m))]}function Ry(f,m,w,I){return pd(f,m,w(Hl(f,m)),I)}function Kf(f,m,w,I){for(var $=f.length,q=I?$:-1;(I?q--:++q<$)&&m(f[q],q,f););return w?$s(f,I?0:q,I?q+1:$):$s(f,I?q+1:0,I?$:q)}function Ay(f,m){var w=f;return w instanceof $t&&(w=w.value()),jp(m,function(I,$){return $.func.apply($.thisArg,Al([I],$.args))},w)}function gg(f,m,w){var I=f.length;if(I<2)return I?ha(f[0]):[];for(var $=-1,q=_e(I);++$<I;)for(var X=f[$],re=-1;++re<I;)re!=$&&(q[$]=Bc(q[$]||X,f[re],m,w));return ha(Nr(q,1),m,w)}function SE(f,m,w){for(var I=-1,$=f.length,q=m.length,X={};++I<$;){var re=I<q?m[I]:n;w(X,f[I],re)}return X}function mg(f){return ur(f)?f:[]}function ql(f){return typeof f=="function"?f:Ui}function Va(f,m){return Mt(f)?f:bd(f,m)?[f]:wd(wn(f))}var vg=Gt;function ko(f,m,w){var I=f.length;return w=w===n?I:w,!m&&w>=I?f:$s(f,m,w)}var Oy=Zp||function(f){return Zr.clearTimeout(f)};function yg(f,m){if(m)return f.slice();var w=f.length,I=Pl?Pl(w):new f.constructor(w);return f.copy(I),I}function Iy(f){var m=new f.constructor(f.byteLength);return new nd(m).set(new nd(f)),m}function wE(f,m){var w=m?Iy(f.buffer):f.buffer;return new f.constructor(w,f.byteOffset,f.byteLength)}function CE(f){var m=new f.constructor(f.source,nt.exec(f));return m.lastIndex=f.lastIndex,m}function xE(f){return la?Dn(la.call(f)):{}}function Py(f,m){var w=m?Iy(f.buffer):f.buffer;return new f.constructor(w,f.byteOffset,f.length)}function Ly(f,m){if(f!==m){var w=f!==n,I=f===null,$=f===f,q=Zi(f),X=m!==n,re=m===null,he=m===m,ke=Zi(m);if(!re&&!ke&&!q&&f>m||q&&X&&he&&!re&&!ke||I&&X&&he||!w&&he||!$)return 1;if(!I&&!q&&!ke&&f<m||ke&&w&&$&&!I&&!q||re&&w&&$||!X&&$||!he)return-1}return 0}function ky(f,m,w){for(var I=-1,$=f.criteria,q=m.criteria,X=$.length,re=w.length;++I<X;){var he=Ly($[I],q[I]);if(he){if(I>=re)return he;var ke=w[I];return he*(ke=="desc"?-1:1)}}return f.index-m.index}function My(f,m,w,I){for(var $=-1,q=f.length,X=w.length,re=-1,he=m.length,ke=vr(q-X,0),Me=_e(he+ke),Fe=!I;++re<he;)Me[re]=m[re];for(;++$<X;)(Fe||$<q)&&(Me[w[$]]=f[$]);for(;ke--;)Me[re++]=f[$++];return Me}function Dy(f,m,w,I){for(var $=-1,q=f.length,X=-1,re=w.length,he=-1,ke=m.length,Me=vr(q-re,0),Fe=_e(Me+ke),Qe=!I;++$<Me;)Fe[$]=f[$];for(var ut=$;++he<ke;)Fe[ut+he]=m[he];for(;++X<re;)(Qe||$<q)&&(Fe[ut+w[X]]=f[$++]);return Fe}function Ni(f,m){var w=-1,I=f.length;for(m||(m=_e(I));++w<I;)m[w]=f[w];return m}function Mo(f,m,w,I){var $=!w;w||(w={});for(var q=-1,X=m.length;++q<X;){var re=m[q],he=I?I(w[re],f[re],re,w,f):n;he===n&&(he=f[re]),$?Ds(w,re,he):Po(w,re,he)}return w}function TE(f,m){return Mo(f,_d(f),m)}function FT(f,m){return Mo(f,Wy(f),m)}function gd(f,m){return function(w,I){var $=Mt(w)?tE:yE,q=m?m():{};return $(w,f,pt(I,2),q)}}function Gc(f){return Gt(function(m,w){var I=-1,$=w.length,q=$>1?w[$-1]:n,X=$>2?w[2]:n;for(q=f.length>3&&typeof q=="function"?($--,q):n,X&&Ci(w[0],w[1],X)&&(q=$<3?n:q,$=1),m=Dn(m);++I<$;){var re=w[I];re&&f(m,re,I,q)}return m})}function Ny(f,m){return function(w,I){if(w==null)return w;if(!hs(w))return f(w,I);for(var $=w.length,q=m?$:-1,X=Dn(w);(m?q--:++q<$)&&I(X[q],q,X)!==!1;);return w}}function _g(f){return function(m,w,I){for(var $=-1,q=Dn(m),X=I(m),re=X.length;re--;){var he=X[f?re:++$];if(w(q[he],he,q)===!1)break}return m}}function RE(f,m,w){var I=m&R,$=Yf(f);function q(){var X=this&&this!==Zr&&this instanceof q?$:f;return X.apply(I?w:this,arguments)}return q}function $y(f){return function(m){m=wn(m);var w=Ol(m)?Gi(m):n,I=w?w[0]:m.charAt(0),$=w?ko(w,1).join(""):m.slice(1);return I[f]()+$}}function md(f){return function(m){return jp(K0(OS(m).replace(Gb,"")),f,"")}}function Yf(f){return function(){var m=arguments;switch(m.length){case 0:return new f;case 1:return new f(m[0]);case 2:return new f(m[0],m[1]);case 3:return new f(m[0],m[1],m[2]);case 4:return new f(m[0],m[1],m[2],m[3]);case 5:return new f(m[0],m[1],m[2],m[3],m[4]);case 6:return new f(m[0],m[1],m[2],m[3],m[4],m[5]);case 7:return new f(m[0],m[1],m[2],m[3],m[4],m[5],m[6])}var w=ca(f.prototype),I=f.apply(w,m);return yr(I)?I:w}}function AE(f,m,w){var I=Yf(f);function $(){for(var q=arguments.length,X=_e(q),re=q,he=Xc($);re--;)X[re]=arguments[re];var ke=q<3&&X[0]!==he&&X[q-1]!==he?[]:Il(X,he);if(q-=ke.length,q<w)return Eg(f,m,Kc,$.placeholder,n,X,ke,n,n,w-q);var Me=this&&this!==Zr&&this instanceof $?I:f;return Is(Me,this,X)}return $}function vd(f){return function(m,w,I){var $=Dn(m);if(!hs(m)){var q=pt(w,3);m=ci(m),w=function(re){return q($[re],re,$)}}var X=f(m,w,I);return X>-1?$[q?m[X]:X]:n}}function bg(f){return ga(function(m){var w=m.length,I=w,$=ai.prototype.thru;for(f&&m.reverse();I--;){var q=m[I];if(typeof q!="function")throw new ks(a);if($&&!X&&jr(q)=="wrapper")var X=new ai([],!0)}for(I=X?I:w;++I<w;){q=m[I];var re=jr(q),he=re=="wrapper"?Ir(q):n;he&&Tg(he[0])&&he[1]==(k|P|D|U)&&!he[4].length&&he[9]==1?X=X[jr(he[0])].apply(X,he[3]):X=q.length==1&&Tg(q)?X[re]():X.thru(q)}return function(){var ke=arguments,Me=ke[0];if(X&&ke.length==1&&Mt(Me))return X.plant(Me).value();for(var Fe=0,Qe=w?m[Fe].apply(this,ke):Me;++Fe<w;)Qe=m[Fe].call(this,Qe);return Qe}})}function Kc(f,m,w,I,$,q,X,re,he,ke){var Me=m&k,Fe=m&R,Qe=m&A,ut=m&(P|L),St=m&F,en=Qe?n:Yf(f);function _t(){for(var fn=arguments.length,gn=_e(fn),Fo=fn;Fo--;)gn[Fo]=arguments[Fo];if(ut)var zs=Xc(_t),Uo=Of(gn,zs);if(I&&(gn=My(gn,I,$,ut)),q&&(gn=Dy(gn,q,X,ut)),fn-=Uo,ut&&fn<ke){var ei=Il(gn,zs);return Eg(f,m,Kc,_t.placeholder,w,gn,ei,re,he,ke-fn)}var il=Fe?w:this,ru=Qe?il[f]:f;return fn=gn.length,re?gn=lr(gn,re):St&&fn>1&&gn.reverse(),Me&&he<fn&&(gn.length=he),this&&this!==Zr&&this instanceof _t&&(ru=en||Yf(ru)),ru.apply(il,gn)}return _t}function Fy(f,m){return function(w,I){return Vl(w,f,m(I),{})}}function Xf(f,m){return function(w,I){var $;if(w===n&&I===n)return m;if(w!==n&&($=w),I!==n){if($===n)return I;typeof w=="string"||typeof I=="string"?(w=ls(w),I=ls(I)):(w=Ty(w),I=Ty(I)),$=f(w,I)}return $}}function Yc(f){return ga(function(m){return m=hr(m,Ls(pt())),Gt(function(w){var I=this;return f(m,function($){return Is($,I,w)})})})}function Qf(f,m){m=m===n?" ":ls(m);var w=m.length;if(w<2)return w?hd(m,f):m;var I=hd(m,Df(f/oi(m)));return Ol(m)?ko(Gi(I),0,f).join(""):I.slice(0,f)}function Uy(f,m,w,I){var $=m&R,q=Yf(f);function X(){for(var re=-1,he=arguments.length,ke=-1,Me=I.length,Fe=_e(Me+he),Qe=this&&this!==Zr&&this instanceof X?q:f;++ke<Me;)Fe[ke]=I[ke];for(;he--;)Fe[ke++]=arguments[++re];return Is(Qe,$?w:this,Fe)}return X}function By(f){return function(m,w,I){return I&&typeof I!="number"&&Ci(m,w,I)&&(w=I=n),m=Fi(m),w===n?(w=m,m=0):w=Fi(w),I=I===n?m<w?1:-1:Fi(I),za(m,w,I,f)}}function yd(f){return function(m,w){return typeof m=="string"&&typeof w=="string"||(m=ps(m),w=ps(w)),f(m,w)}}function Eg(f,m,w,I,$,q,X,re,he,ke){var Me=m&P,Fe=Me?X:n,Qe=Me?n:X,ut=Me?q:n,St=Me?n:q;m|=Me?D:N,m&=~(Me?N:D),m&O||(m&=-4);var en=[f,m,$,ut,Fe,St,Qe,re,he,ke],_t=w.apply(n,en);return Tg(f)&&$E(_t,en),_t.placeholder=I,Wa(_t,f,m)}function Sg(f){var m=Mr[f];return function(w,I){if(w=ps(w),I=I==null?0:Gn(jt(I),292),I&&Dc(w)){var $=(wn(w)+"e").split("e"),q=m($[0]+"e"+(+$[1]+I));return $=(wn(q)+"e").split("e"),+($[0]+"e"+(+$[1]-I))}return m(w)}}var OE=kl&&1/Yp(new kl([,-0]))[1]==ee?function(f){return new kl(f)}:g;function Wl(f){return function(m){var w=$i(m);return w==dt?Kp(m):w==qt?AT(m):Qu(m,f(m))}}function pa(f,m,w,I,$,q,X,re){var he=m&A;if(!he&&typeof f!="function")throw new ks(a);var ke=I?I.length:0;if(ke||(m&=-97,I=$=n),X=X===n?X:vr(jt(X),0),re=re===n?re:jt(re),ke-=$?$.length:0,m&N){var Me=I,Fe=$;I=$=n}var Qe=he?n:Ir(f),ut=[f,m,w,I,$,Me,Fe,q,X,re];if(Qe&&qa(ut,Qe),f=ut[0],m=ut[1],w=ut[2],I=ut[3],$=ut[4],re=ut[9]=ut[9]===n?he?0:f.length:vr(ut[9]-ke,0),!re&&m&(P|L)&&(m&=-25),!m||m==R)var St=RE(f,m,w);else m==P||m==L?St=AE(f,m,re):(m==D||m==(R|D))&&!$.length?St=Uy(f,m,w,I):St=Kc.apply(n,ut);var en=Qe?Sy:$E;return Wa(en(St,ut),f,m)}function jy(f,m,w,I){return f===n||go(f,ed[w])&&!En.call(I,w)?m:f}function Hy(f,m,w,I,$,q){return yr(f)&&yr(m)&&(q.set(m,f),ug(f,m,n,Hy,q),q.delete(m)),f}function wg(f){return nu(f)?n:f}function zy(f,m,w,I,$,q){var X=w&x,re=f.length,he=m.length;if(re!=he&&!(X&&he>re))return!1;var ke=q.get(f),Me=q.get(m);if(ke&&Me)return ke==m&&Me==f;var Fe=-1,Qe=!0,ut=w&C?new Fl:n;for(q.set(f,m),q.set(m,f);++Fe<re;){var St=f[Fe],en=m[Fe];if(I)var _t=X?I(en,St,Fe,m,f,q):I(St,en,Fe,f,m,q);if(_t!==n){if(_t)continue;Qe=!1;break}if(ut){if(!Yv(m,function(fn,gn){if(!Zu(ut,gn)&&(St===fn||$(St,fn,w,I,q)))return ut.push(gn)})){Qe=!1;break}}else if(!(St===en||$(St,en,w,I,q))){Qe=!1;break}}return q.delete(f),q.delete(m),Qe}function Vy(f,m,w,I,$,q,X){switch(w){case Zn:if(f.byteLength!=m.byteLength||f.byteOffset!=m.byteOffset)return!1;f=f.buffer,m=m.buffer;case zn:return!(f.byteLength!=m.byteLength||!q(new nd(f),new nd(m)));case ze:case tt:case $e:return go(+f,+m);case We:return f.name==m.name&&f.message==m.message;case Ut:case or:return f==m+"";case dt:var re=Kp;case qt:var he=I&x;if(re||(re=Yp),f.size!=m.size&&!he)return!1;var ke=X.get(f);if(ke)return ke==m;I|=C,X.set(f,m);var Me=zy(re(f),re(m),I,$,q,X);return X.delete(f),Me;case Hn:if(la)return la.call(f)==la.call(m)}return!1}function IE(f,m,w,I,$,q){var X=w&x,re=qy(f),he=re.length,ke=qy(m),Me=ke.length;if(he!=Me&&!X)return!1;for(var Fe=he;Fe--;){var Qe=re[Fe];if(!(X?Qe in m:En.call(m,Qe)))return!1}var ut=q.get(f),St=q.get(m);
vendor: 4,479 bytes, lines 12-14
12if(ut&&St)return ut==m&&St==f;var en=!0;q.set(f,m),q.set(m,f);for(var _t=X;++Fe<he;){Qe=re[Fe];var fn=f[Qe],gn=m[Qe];if(I)var Fo=X?I(gn,fn,Qe,m,f,q):I(fn,gn,Qe,f,m,q);if(!(Fo===n?fn===gn||$(fn,gn,w,I,q):Fo)){en=!1;break}_t||(_t=Qe=="constructor")}if(en&&!_t){var zs=f.constructor,Uo=m.constructor;zs!=Uo&&"constructor"in f&&"constructor"in m&&!(typeof zs=="function"&&zs instanceof zs&&typeof Uo=="function"&&Uo instanceof Uo)&&(en=!1)}return q.delete(f),q.delete(m),en}function ga(f){return Qc(eh(f,n,Qi),f+"")}function qy(f){return sg(f,ci,_d)}function Zf(f){return sg(f,ms,Wy)}var Ir=Nn?function(f){return Nn.get(f)}:g;function jr(f){for(var m=f.name+"",w=Yt[m],I=En.call(Yt,m)?w.length:0;I--;){var $=w[I],q=$.func;if(q==null||q==f)return $.name}return m}function Xc(f){var m=En.call(j,"placeholder")?j:f;return m.placeholder}function pt(){var f=j.iteratee||$d;return f=f===$d?qc:f,arguments.length?f(arguments[0],arguments[1]):f}function Jf(f,m){var w=f.__data__;return Jy(m)?w[typeof m=="string"?"string":"hash"]:w.map}function Cg(f){for(var m=ci(f),w=m.length;w--;){var I=m[w],$=f[I];m[w]=[I,$,Rg($)]}return m}function Do(f,m){var w=aE(f,m);return zc(w)?w:n}function PE(f){var m=En.call(f,Ki),w=f[Ki];try{f[Ki]=n;var I=!0}catch{}var $=Ic.call(f);return I&&(m?f[Ki]=w:delete f[Ki]),$}var _d=Jp?function(f){return f==null?[]:(f=Dn(f),Rl(Jp(f),function(m){return Lc.call(f,m)}))}:ve,Wy=Jp?function(f){for(var m=[];f;)Al(m,_d(f)),f=Lf(f);return m}:ve,$i=Si;(Io&&$i(new Io(new ArrayBuffer(1)))!=Zn||sd&&$i(new sd)!=dt||Nf&&$i(Nf.resolve())!=Bt||kl&&$i(new kl)!=qt||od&&$i(new od)!=xr)&&($i=function(f){var m=Si(f),w=m==ot?f.constructor:n,I=w?Gl(w):"";if(I)switch(I){case Ml:return Zn;case ho:return dt;case ay:return Bt;case Dl:return qt;case hE:return xr}return m});function xg(f,m,w){for(var I=-1,$=w.length;++I<$;){var q=w[I],X=q.size;switch(q.type){case"drop":f+=X;break;case"dropRight":m-=X;break;case"take":m=Gn(m,f+X);break;case"takeRight":f=vr(f,m-X);break}}return{start:f,end:m}}function Gy(f){var m=f.match(Le);return m?m[1].split(Ke):[]}function Ky(f,m,w){m=Va(m,f);for(var I=-1,$=m.length,q=!1;++I<$;){var X=Hr(m[I]);if(!(q=f!=null&&w(f,X)))break;f=f[X]}return q||++I!=$?q:($=f==null?0:f.length,!!$&&hh($)&&ma(X,$)&&(Mt(f)||tl(f)))}function LE(f){var m=f.length,w=new f.constructor(m);return m&&typeof f[0]=="string"&&En.call(f,"index")&&(w.index=f.index,w.input=f.input),w}function Yy(f){return typeof f.constructor=="function"&&!Fs(f)?ca(Lf(f)):{}}function Xy(f,m,w){var I=f.constructor;switch(m){case zn:return Iy(f);case ze:case tt:return new I(+f);case Zn:return wE(f,w);case ar:case Vi:case Vn:case Wt:case Nt:case Xt:case nn:case Xr:case Li:return Py(f,w);case dt:return new I;case $e:case or:return new I(f);case Ut:return CE(f);case qt:return new I;case Hn:return xE(f)}}function Qy(f,m){var w=m.length;if(!w)return f;var I=w-1;return m[I]=(w>1?"& ":"")+m[I],m=m.join(w>2?", ":" "),f.replace(Oe,`{ 13/* [wrapped with `+m+`] */ 14`)}function Zy(f){return Mt(f)||tl(f)||!!(as&&f&&f[as])}function ma(f,m){var w=typeof f;return m=m??fe,!!m&&(w=="number"||w!="symbol"&&On.test(f))&&f>-1&&f%1==0&&f<m}function Ci(f,m,w){if(!yr(w))return!1;var I=typeof m;return(I=="number"?hs(w)&&ma(m,w.length):I=="string"&&m in w)?go(w[m],f):!1}function bd(f,m){if(Mt(f))return!1;var w=typeof f;return w=="number"||w=="symbol"||w=="boolean"||f==null||Zi(f)?!0:io.test(f)||!yi.test(f)||m!=null&&f in Dn(m)}function Jy(f){var m=typeof f;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?f!=="__proto__":f===null}function Tg(f){var m=jr(f),w=j[m];if(typeof w!="function"||!(m in $t.prototype))return!1;if(f===w)return!0;var I=Ir(w);return!!I&&f===I[0]}function e0(f){return!!lo&&lo in f}var kE=Xp?mo:Ee;function Fs(f){var m=f&&f.constructor,w=typeof m=="function"&&m.prototype||ed;return f===w}function Rg(f){return f===f&&!yr(f)}function ME(f,m){return function(w){return w==null?!1:w[f]===m&&(m!==n||f in Dn(w))}}function DE(f){var m=$g(f,function(I){return w.size===p&&w.clear(),I}),w=m.cache;return m}function qa(f,m){var w=f[1],I=m[1],$=w|I,q=$<(R|A|k),X=I==k&&w==P||I==k&&w==U&&f[7].length<=m[8]||I==(k|U)&&m[7].length<=m[8]&&w==P;if(!(q||X))return f;I&R&&(f[2]=m[2],$|=w&R?0:O);var re=m[3];if(re){var he=f[3];f[3]=he?My(he,re,m[4]):re,f[4]=he?Il(f[3],v):m[4]}return re=m[5],re&&(he=f[5],f[5]=he?Dy(he,re,m[6]):re,f[6]=he?Il(f[5],v):m[6]),re=m[7],re&&(f[7]=re),I&k&&(f[8]=f[8]==null?m[8]:Gn(f[8],m[8])),f[9]==null&&(f[9]=m[9]),f[0]=m[0],f[1]=$,f}function t0(f){var m=[];
vendor: 4,520 bytes, line 14
14if(f!=null)for(var w in Dn(f))m.push(w);return m}function NE(f){return Ic.call(f)}function eh(f,m,w){return m=vr(m===n?f.length-1:m,0),function(){for(var I=arguments,$=-1,q=vr(I.length-m,0),X=_e(q);++$<q;)X[$]=I[m+$];$=-1;for(var re=_e(m+1);++$<m;)re[$]=I[$];return re[m]=w(X),Is(f,this,re)}}function Ed(f,m){return m.length<2?f:Hl(f,$s(m,0,-1))}function lr(f,m){for(var w=f.length,I=Gn(m.length,w),$=Ni(f);I--;){var q=m[I];f[I]=ma(q,w)?$[q]:n}return f}function n0(f,m){if(!(m==="constructor"&&typeof f[m]=="function")&&m!="__proto__")return f[m]}var $E=r0(Sy),Sd=oy||function(f,m){return Zr.setTimeout(f,m)},Qc=r0(bE);function Wa(f,m,w){var I=m+"";return Qc(f,Qy(I,i0(Gy(I),w)))}function r0(f){var m=0,w=0;return function(){var I=fo(),$=K-(I-w);if(w=I,$>0){if(++m>=Z)return arguments[0]}else m=0;return f.apply(n,arguments)}}function th(f,m){var w=-1,I=f.length,$=I-1;for(m=m===n?I:m;++w<m;){var q=Wf(w,$),X=f[q];f[q]=f[w],f[w]=X}return f.length=m,f}var wd=DE(function(f){var m=[];return f.charCodeAt(0)===46&&m.push(""),f.replace(Co,function(w,I,$,q){m.push($?q.replace(Ge,"$1"):I||w)}),m});function Hr(f){if(typeof f=="string"||Zi(f))return f;var m=f+"";return m=="0"&&1/f==-ee?"-0":m}function Gl(f){if(f!=null){try{return Pf.call(f)}catch{}try{return f+""}catch{}}return""}function i0(f,m){return Ps(be,function(w){var I="_."+w[0];m&w[1]&&!Ku(f,I)&&f.push(I)}),f.sort()}function s0(f){if(f instanceof $t)return f.clone();var m=new ai(f.__wrapped__,f.__chain__);return m.__actions__=Ni(f.__actions__),m.__index__=f.__index__,m.__values__=f.__values__,m}function o0(f,m,w){(w?Ci(f,m,w):m===n)?m=1:m=vr(jt(m),0);var I=f==null?0:f.length;if(!I||m<1)return[];for(var $=0,q=0,X=_e(Df(I/m));$<I;)X[q++]=$s(f,$,$+=m);return X}function a0(f){for(var m=-1,w=f==null?0:f.length,I=0,$=[];++m<w;){var q=f[m];q&&($[I++]=q)}return $}function Ag(){var f=arguments.length;if(!f)return[];for(var m=_e(f-1),w=arguments[0],I=f;I--;)m[I-1]=arguments[I];return Al(Mt(w)?Ni(w):[w],Nr(m,1))}var FE=Gt(function(f,m){return ur(f)?Bc(f,Nr(m,1,ur,!0)):[]}),Ga=Gt(function(f,m){var w=Us(m);return ur(w)&&(w=n),ur(f)?Bc(f,Nr(m,1,ur,!0),pt(w,2)):[]}),zr=Gt(function(f,m){var w=Us(m);return ur(w)&&(w=n),ur(f)?Bc(f,Nr(m,1,ur,!0),n,w):[]});function l0(f,m,w){var I=f==null?0:f.length;return I?(m=w||m===n?1:jt(m),$s(f,m<0?0:m,I)):[]}function UE(f,m,w){var I=f==null?0:f.length;return I?(m=w||m===n?1:jt(m),m=I-m,$s(f,0,m<0?0:m)):[]}function li(f,m){return f&&f.length?Kf(f,pt(m,3),!0,!0):[]}function UT(f,m){return f&&f.length?Kf(f,pt(m,3),!0):[]}function BE(f,m,w,I){var $=f==null?0:f.length;return $?(w&&typeof w!="number"&&Ci(f,m,w)&&(w=0,I=$),py(f,m,w,I)):[]}function c0(f,m,w){var I=f==null?0:f.length;if(!I)return-1;var $=w==null?0:jt(w);return $<0&&($=vr(I+$,0)),Hp(f,pt(m,3),$)}function cr(f,m,w){var I=f==null?0:f.length;if(!I)return-1;var $=I-1;return w!==n&&($=jt(w),$=w<0?vr(I+$,0):Gn($,I-1)),Hp(f,pt(m,3),$,!0)}function Qi(f){var m=f==null?0:f.length;return m?Nr(f,1):[]}function Ka(f){var m=f==null?0:f.length;return m?Nr(f,ee):[]}function jE(f,m){var w=f==null?0:f.length;return w?(m=m===n?1:jt(m),Nr(f,m)):[]}function HE(f){for(var m=-1,w=f==null?0:f.length,I={};++m<w;){var $=f[m];Ds(I,$[0],$[1])}return I}function u0(f){return f&&f.length?f[0]:n}function BT(f,m,w){var I=f==null?0:f.length;if(!I)return-1;var $=w==null?0:jt(w);return $<0&&($=vr(I+$,0)),Yu(f,m,$)}function Og(f){var m=f==null?0:f.length;return m?$s(f,0,-1):[]}var cs=Gt(function(f){var m=hr(f,mg);return m.length&&m[0]===f[0]?og(m):[]}),No=Gt(function(f){var m=Us(f),w=hr(f,mg);return m===Us(w)?m=n:w.pop(),w.length&&w[0]===f[0]?og(w,pt(m,2)):[]}),zE=Gt(function(f){var m=Us(f),w=hr(f,mg);return m=typeof m=="function"?m:n,m&&w.pop(),w.length&&w[0]===f[0]?og(w,n,m):[]});function us(f,m){return f==null?"":id.call(f,m)}function Us(f){var m=f==null?0:f.length;return m?f[m-1]:n}function Ya(f,m,w){var I=f==null?0:f.length;if(!I)return-1;var $=I;return w!==n&&($=jt(w),$=$<0?vr(I+$,0):Gn($,I-1)),m===m?IT(f,m,$):Hp(f,zp,$,!0)}function Zc(f,m){return f&&f.length?dg(f,jt(m)):n}var Xa=Gt(Ig);function Ig(f,m){return f&&f.length&&m&&m.length?Wc(f,m):f}function d0(f,m,w){return f&&f.length&&m&&m.length?Wc(f,m,pt(w,2)):f}function $o(f,m,w){return f&&f.length&&m&&m.length?Wc(f,m,n,w):f}var VE=ga(function(f,m){var w=f==null?0:f.length,I=Fc(f,m);return qf(f,hr(m,function($){return ma($,w)?+$:$}).sort(Ly)),I});function Cd(f,m){var w=[];if(!(f&&f.length))return w;var I=-1,$=[],q=f.length;for(m=pt(m,3);++I<q;){var X=f[I];m(X,I,f)&&(w.push(X),$.push(I))}return qf(f,$),w}
vendor: 5,563 bytes, line 14
14function Jc(f){return f==null?f:aa.call(f)}function nh(f,m,w){var I=f==null?0:f.length;return I?(w&&typeof w!="number"&&Ci(f,m,w)?(m=0,w=I):(m=m==null?0:jt(m),w=w===n?I:jt(w)),$s(f,m,w)):[]}function xd(f,m){return Gf(f,m)}function qE(f,m,w){return Cy(f,m,pt(w,2))}function WE(f,m){var w=f==null?0:f.length;if(w){var I=Gf(f,m);if(I<w&&go(f[I],m))return I}return-1}function rh(f,m){return Gf(f,m,!0)}function GE(f,m,w){return Cy(f,m,pt(w,2),!0)}function Pg(f,m){var w=f==null?0:f.length;if(w){var I=Gf(f,m,!0)-1;if(go(f[I],m))return I}return-1}function KE(f){return f&&f.length?xy(f):[]}function jT(f,m){return f&&f.length?xy(f,pt(m,2)):[]}function HT(f){var m=f==null?0:f.length;return m?$s(f,1,m):[]}function Sn(f,m,w){return f&&f.length?(m=w||m===n?1:jt(m),$s(f,0,m<0?0:m)):[]}function Kn(f,m,w){var I=f==null?0:f.length;return I?(m=w||m===n?1:jt(m),m=I-m,$s(f,m<0?0:m,I)):[]}function sn(f,m){return f&&f.length?Kf(f,pt(m,3),!1,!0):[]}function cn(f,m){return f&&f.length?Kf(f,pt(m,3)):[]}var Pn=Gt(function(f){return ha(Nr(f,1,ur,!0))}),Bs=Gt(function(f){var m=Us(f);return ur(m)&&(m=n),ha(Nr(f,1,ur,!0),pt(m,2))}),Kl=Gt(function(f){var m=Us(f);return m=typeof m=="function"?m:n,ha(Nr(f,1,ur,!0),n,m)});function Td(f){return f&&f.length?ha(f):[]}function f0(f,m){return f&&f.length?ha(f,pt(m,2)):[]}function Qa(f,m){return m=typeof m=="function"?m:n,f&&f.length?ha(f,n,m):[]}function pr(f){if(!(f&&f.length))return[];var m=0;return f=Rl(f,function(w){if(ur(w))return m=vr(w.length,m),!0}),Wp(m,function(w){return hr(f,Xv(w))})}function Za(f,m){if(!(f&&f.length))return[];var w=pr(f);return m==null?w:hr(w,function(I){return Is(m,n,I)})}var eu=Gt(function(f,m){return ur(f)?Bc(f,m):[]}),h0=Gt(function(f){return gg(Rl(f,ur))}),js=Gt(function(f){var m=Us(f);return ur(m)&&(m=n),gg(Rl(f,ur),pt(m,2))}),Rd=Gt(function(f){var m=Us(f);return m=typeof m=="function"?m:n,gg(Rl(f,ur),n,m)}),ih=Gt(pr);function ds(f,m){return SE(f||[],m||[],Po)}function p0(f,m){return SE(f||[],m||[],pd)}var Lg=Gt(function(f){var m=f.length,w=m>1?f[m-1]:n;return w=typeof w=="function"?(f.pop(),w):n,Za(f,w)});function g0(f){var m=j(f);return m.__chain__=!0,m}function kg(f,m){return m(f),f}function tu(f,m){return m(f)}var Yl=ga(function(f){var m=f.length,w=m?f[0]:0,I=this.__wrapped__,$=function(q){return Fc(q,f)};return m>1||this.__actions__.length||!(I instanceof $t)||!ma(w)?this.thru($):(I=I.slice(w,+w+(m?1:0)),I.__actions__.push({func:tu,args:[$],thisArg:n}),new ai(I,this.__chain__).thru(function(q){return m&&!q.length&&q.push(n),q}))});function Jr(){return g0(this)}function Xl(){return new ai(this.value(),this.__chain__)}function Ad(){this.__values__===n&&(this.__values__=_S(this.value()));var f=this.__index__>=this.__values__.length,m=f?n:this.__values__[this.__index__++];return{done:f,value:m}}function Ja(){return this}function m0(f){for(var m,w=this;w instanceof ad;){var I=s0(w);I.__index__=0,I.__values__=n,m?$.__wrapped__=I:m=I;var $=I;w=w.__wrapped__}return $.__wrapped__=f,m}function v0(){var f=this.__wrapped__;if(f instanceof $t){var m=f;return this.__actions__.length&&(m=new $t(this)),m=m.reverse(),m.__actions__.push({func:tu,args:[Jc],thisArg:n}),new ai(m,this.__chain__)}return this.thru(Jc)}function YE(){return Ay(this.__wrapped__,this.__actions__)}var sh=gd(function(f,m,w){En.call(f,w)?++f[w]:Ds(f,w,1)});function y0(f,m,w){var I=Mt(f)?nE:Ul;return w&&Ci(f,m,w)&&(m=n),I(f,pt(m,3))}function Hs(f,m){var w=Mt(f)?Rl:ig;return w(f,pt(m,3))}var XE=vd(c0),fs=vd(cr);function QE(f,m){return Nr(ah(f,m),1)}function ZE(f,m){return Nr(ah(f,m),ee)}function zT(f,m,w){return w=w===n?1:jt(w),Nr(ah(f,m),w)}function el(f,m){var w=Mt(f)?Ps:fa;return w(f,pt(m,3))}function oh(f,m){var w=Mt(f)?ET:ja;return w(f,pt(m,3))}var _0=gd(function(f,m,w){En.call(f,w)?f[w].push(m):Ds(f,w,[m])});function Od(f,m,w,I){f=hs(f)?f:ec(f),w=w&&!I?jt(w):0;var $=f.length;return w<0&&(w=vr($+w,0)),gh(f)?w<=$&&f.indexOf(m,w)>-1:!!$&&Yu(f,m,w)>-1}var JE=Gt(function(f,m,w){var I=-1,$=typeof m=="function",q=hs(f)?_e(f.length):[];return fa(f,function(X){q[++I]=$?Is(m,X,w):wi(X,m,w)}),q}),eS=gd(function(f,m,w){Ds(f,w,m)});function ah(f,m){var w=Mt(f)?hr:cg;return w(f,pt(m,3))}function tS(f,m,w,I){return f==null?[]:(Mt(m)||(m=m==null?[]:[m]),w=I?n:w,Mt(w)||(w=w==null?[]:[w]),fg(f,m,w))}var Mg=gd(function(f,m,w){f[w?0:1].push(m)},function(){return[[],[]]});function b0(f,m,w){var I=Mt(f)?jp:Qv,$=arguments.length<3;return I(f,pt(m,4),w,$,fa)}function VT(f,m,w){var I=Mt(f)?ST:Qv,$=arguments.length<3;return I(f,pt(m,4),w,$,ja)}function qT(f,m){var w=Mt(f)?Rl:ig;return w(f,Fg(pt(m,3)))}function WT(f){var m=Mt(f)?Bf:Ey;return m(f)}function nS(f,m,w){(w?Ci(f,m,w):m===n)?m=1:m=jt(m);var I=Mt(f)?mE:_E;return I(f,m)}function rS(f){var m=Mt(f)?vE:EE;return m(f)}function Id(f){if(f==null)return 0;if(hs(f))return gh(f)?oi(f):f.length;var m=$i(f);return m==dt||m==qt?f.size:vy(f).length}function Dg(f,m,w){var I=Mt(f)?Yv:wy;return w&&Ci(f,m,w)&&(m=n),I(f,pt(m,3))}var iS=Gt(function(f,m){if(f==null)return[];var w=m.length;return w>1&&Ci(f,m[0],m[1])?m=[]:w>2&&Ci(m[0],m[1],m[2])&&(m=[m[0]]),fg(f,Nr(m,1),[])}),lh=Mc||function(){return Zr.Date.now()};function sS(f,m){if(typeof m!="function")throw new ks(a);return f=jt(f),function(){if(--f<1)return m.apply(this,arguments)}}function E0(f,m,w){return m=w?n:m,m=f&&m==null?f.length:m,pa(f,k,n,n,n,n,m)}function S0(f,m){var w;if(typeof m!="function")throw new ks(a);return f=jt(f),function(){return--f>0&&(w=m.apply(this,arguments)),f<=1&&(m=n),w}}var Ng=Gt(function(f,m,w){var I=R;if(w.length){var $=Il(w,Xc(Ng));I|=D}return pa(f,I,m,w,$)}
vendor: 13,525 bytes, lines 14-31
14),ch=Gt(function(f,m,w){var I=R|A;if(w.length){var $=Il(w,Xc(ch));I|=D}return pa(m,I,f,w,$)});function w0(f,m,w){m=w?n:m;var I=pa(f,P,n,n,n,n,n,m);return I.placeholder=w0.placeholder,I}function C0(f,m,w){m=w?n:m;var I=pa(f,L,n,n,n,n,n,m);return I.placeholder=C0.placeholder,I}function Rn(f,m,w){var I,$,q,X,re,he,ke=0,Me=!1,Fe=!1,Qe=!0;if(typeof f!="function")throw new ks(a);m=ps(m)||0,yr(w)&&(Me=!!w.leading,Fe="maxWait"in w,q=Fe?vr(ps(w.maxWait)||0,m):q,Qe="trailing"in w?!!w.trailing:Qe);function ut(ei){var il=I,ru=$;return I=$=n,ke=ei,X=f.apply(ru,il),X}function St(ei){return ke=ei,re=Sd(fn,m),Me?ut(ei):X}function en(ei){var il=ei-he,ru=ei-ke,$L=m-il;return Fe?Gn($L,q-ru):$L}function _t(ei){var il=ei-he,ru=ei-ke;return he===n||il>=m||il<0||Fe&&ru>=q}function fn(){var ei=lh();if(_t(ei))return gn(ei);re=Sd(fn,en(ei))}function gn(ei){return re=n,Qe&&I?ut(ei):(I=$=n,X)}function Fo(){re!==n&&Oy(re),ke=0,I=he=$=re=n}function zs(){return re===n?X:gn(lh())}function Uo(){var ei=lh(),il=_t(ei);if(I=arguments,$=this,he=ei,il){if(re===n)return St(he);if(Fe)return Oy(re),re=Sd(fn,m),ut(he)}return re===n&&(re=Sd(fn,m)),X}return Uo.cancel=Fo,Uo.flush=zs,Uo}var x0=Gt(function(f,m){return Ba(f,1,m)}),GT=Gt(function(f,m,w){return Ba(f,ps(m)||0,w)});function oS(f){return pa(f,F)}function $g(f,m){if(typeof f!="function"||m!=null&&typeof m!="function")throw new ks(a);var w=function(){var I=arguments,$=m?m.apply(this,I):I[0],q=w.cache;if(q.has($))return q.get($);var X=f.apply(this,I);return w.cache=q.set($,X)||q,X};return w.cache=new($g.Cache||Ms),w}$g.Cache=Ms;function Fg(f){if(typeof f!="function")throw new ks(a);return function(){var m=arguments;switch(m.length){case 0:return!f.call(this);case 1:return!f.call(this,m[0]);case 2:return!f.call(this,m[0],m[1]);case 3:return!f.call(this,m[0],m[1],m[2])}return!f.apply(this,m)}}function KT(f){return S0(2,f)}var Ug=vg(function(f,m){m=m.length==1&&Mt(m[0])?hr(m[0],Ls(pt())):hr(Nr(m,1),Ls(pt()));var w=m.length;return Gt(function(I){for(var $=-1,q=Gn(I.length,w);++$<q;)I[$]=m[$].call(this,I[$]);return Is(f,this,I)})}),Ql=Gt(function(f,m){var w=Il(m,Xc(Ql));return pa(f,D,n,m,w)}),Bg=Gt(function(f,m){var w=Il(m,Xc(Bg));return pa(f,N,n,m,w)}),jg=ga(function(f,m){return pa(f,U,n,n,n,m)});function T0(f,m){if(typeof f!="function")throw new ks(a);return m=m===n?m:jt(m),Gt(f,m)}function Zl(f,m){if(typeof f!="function")throw new ks(a);return m=m==null?0:vr(jt(m),0),Gt(function(w){var I=w[m],$=ko(w,0,m);return I&&Al($,I),Is(f,this,$)})}function va(f,m,w){var I=!0,$=!0;if(typeof f!="function")throw new ks(a);return yr(w)&&(I="leading"in w?!!w.leading:I,$="trailing"in w?!!w.trailing:$),Rn(f,m,{leading:I,maxWait:m,trailing:$})}function uh(f){return E0(f,1)}function YT(f,m){return Ql(ql(m),f)}function aS(){if(!arguments.length)return[];var f=arguments[0];return Mt(f)?f:[f]}function lS(f){return Ns(f,S)}function cS(f,m){return m=typeof m=="function"?m:n,Ns(f,S,m)}function uS(f){return Ns(f,y|S)}function XT(f,m){return m=typeof m=="function"?m:n,Ns(f,y|S,m)}function R0(f,m){return m==null||hy(f,m,ci(m))}function go(f,m){return f===m||f!==f&&m!==m}var dS=yd(Yi),QT=yd(function(f,m){return f>=m}),tl=Rr((function(){return arguments})())?Rr:function(f){return Pr(f)&&En.call(f,"callee")&&!Lc.call(f,"callee")},Mt=_e.isArray,ZT=Xb?Ls(Xb):ag;function hs(f){return f!=null&&hh(f.length)&&!mo(f)}function ur(f){return Pr(f)&&hs(f)}function JT(f){return f===!0||f===!1||Pr(f)&&Si(f)==ze}var nl=uo||Ee,on=Bp?Ls(Bp):Ha;function A0(f){return Pr(f)&&f.nodeType===1&&!nu(f)}function Hg(f){if(f==null)return!0;if(hs(f)&&(Mt(f)||typeof f=="string"||typeof f.splice=="function"||nl(f)||Jl(f)||tl(f)))return!f.length;var m=$i(f);if(m==dt||m==qt)return!f.size;if(Fs(f))return!vy(f).length;for(var w in f)if(En.call(f,w))return!1;return!0}function O0(f,m){return Lt(f,m)}function fS(f,m,w){w=typeof w=="function"?w:n;var I=w?w(f,m):n;return I===n?Lt(f,m,n,w):!!I}function dh(f){if(!Pr(f))return!1;var m=Si(f);return m==We||m==Je||typeof f.message=="string"&&typeof f.name=="string"&&!nu(f)}function fh(f){return typeof f=="number"&&Dc(f)}function mo(f){if(!yr(f))return!1;var m=Si(f);return m==Ve||m==Pt||m==Ne||m==An}function hS(f){return typeof f=="number"&&f==jt(f)}function hh(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=fe}function yr(f){var m=typeof f;return f!=null&&(m=="object"||m=="function")}function Pr(f){return f!=null&&typeof f=="object"}var I0=Qb?Ls(Qb):Br;function pS(f,m){return f===m||fd(f,m,Cg(m))}function Fn(f,m,w){return w=typeof w=="function"?w:n,fd(f,m,Cg(m),w)}function P0(f){return mS(f)&&f!=+f}function xi(f){if(kE(f))throw new gt(s);return zc(f)}function e5(f){return f===null}function gS(f){return f==null}function mS(f){return typeof f=="number"||Pr(f)&&Si(f)==$e}function nu(f){if(!Pr(f)||Si(f)!=ot)return!1;var m=Lf(f);if(m===null)return!0;var w=En.call(m,"constructor")&&m.constructor;return typeof w=="function"&&w instanceof w&&Pf.call(w)==co}var ph=Zb?Ls(Zb):Vc;function zg(f){return hS(f)&&f>=-fe&&f<=fe}var L0=Jb?Ls(Jb):lg;function gh(f){return typeof f=="string"||!Mt(f)&&Pr(f)&&Si(f)==or}function Zi(f){return typeof f=="symbol"||Pr(f)&&Si(f)==Hn}var Jl=eE?Ls(eE):zf;function t5(f){return f===n}function vS(f){return Pr(f)&&$i(f)==xr}function n5(f){return Pr(f)&&Si(f)==pi}var yS=yd(Vf),r5=yd(function(f,m){return f<=m});function _S(f){if(!f)return[];if(hs(f))return gh(f)?Gi(f):Ni(f);if(kc&&f[kc])return lE(f[kc]());var m=$i(f),w=m==dt?Kp:m==qt?Yp:ec;return w(f)}function Fi(f){if(!f)return f===0?f:0;if(f=ps(f),f===ee||f===-ee){var m=f<0?-1:1;return m*ue}return f===f?f:0}function jt(f){var m=Fi(f),w=m%1;return m===m?w?m-w:m:0}function k0(f){return f?da(jt(f),0,Q):0}function ps(f){if(typeof f=="number")return f;if(Zi(f))return z;if(yr(f)){var m=typeof f.valueOf=="function"?f.valueOf():f;f=yr(m)?m+"":m}if(typeof f!="string")return f===0?f:+f;f=sE(f);var w=ht.test(f);return w||rn.test(f)?Af(f.slice(2),w?2:8):xt.test(f)?z:+f}function bS(f){return Mo(f,ms(f))}function i5(f){return f?da(jt(f),-fe,fe):f===0?f:0}function wn(f){return f==null?"":ls(f)}var M0=Gc(function(f,m){if(Fs(m)||hs(m)){Mo(m,ci(m),f);return}for(var w in m)En.call(m,w)&&Po(f,w,m[w])}),Vg=Gc(function(f,m){Mo(m,ms(m),f)}),ES=Gc(function(f,m,w,I){Mo(m,ms(m),f,I)}),gs=Gc(function(f,m,w,I){Mo(m,ci(m),f,I)}),D0=ga(Fc);function SS(f,m){var w=ca(f);return m==null?w:$c(w,m)}var wS=Gt(function(f,m){f=Dn(f);var w=-1,I=m.length,$=I>2?m[2]:n;for($&&Ci(m[0],m[1],$)&&(I=1);++w<I;)for(var q=m[w],X=ms(q),re=-1,he=X.length;++re<he;){var ke=X[re],Me=f[ke];(Me===n||go(Me,ed[ke])&&!En.call(f,ke))&&(f[ke]=q[ke])}return f}),CS=Gt(function(f){return f.push(n,Hy),Is($0,n,f)});function mh(f,m){return rE(f,pt(m,3),Lo)}function vo(f,m){return rE(f,pt(m,3),jl)}function xS(f,m){return f==null?f:jc(f,pt(m,3),ms)}function qg(f,m){return f==null?f:gy(f,pt(m,3),ms)}function rl(f,m){return f&&Lo(f,pt(m,3))}function s5(f,m){return f&&jl(f,pt(m,3))}function o5(f){return f==null?[]:Hc(f,ci(f))}function Pd(f){return f==null?[]:Hc(f,ms(f))}function Wg(f,m,w){var I=f==null?n:Hl(f,m);return I===n?w:I}function a5(f,m){return f!=null&&Ky(f,m,po)}function N0(f,m){return f!=null&&Ky(f,m,zl)}var l5=Fy(function(f,m,w){m!=null&&typeof m.toString!="function"&&(m=Ic.call(m)),f[m]=w},Dd(Ui)),c5=Fy(function(f,m,w){m!=null&&typeof m.toString!="function"&&(m=Ic.call(m)),En.call(f,m)?f[m].push(w):f[m]=[w]},pt),u5=Gt(wi);function ci(f){return hs(f)?Uf(f):vy(f)}function ms(f){return hs(f)?Uf(f,!0):Ar(f)}function TS(f,m){var w={};return m=pt(m,3),Lo(f,function(I,$,q){Ds(w,m(I,$,q),I)}),w}function Ld(f,m){var w={};return m=pt(m,3),Lo(f,function(I,$,q){Ds(w,$,m(I,$,q))}),w}var vh=Gc(function(f,m,w){ug(f,m,w)}),$0=Gc(function(f,m,w,I){ug(f,m,w,I)}),d5=ga(function(f,m){var w={};if(f==null)return w;var I=!1;m=hr(m,function(q){return q=Va(q,f),I||(I=q.length>1),q}),Mo(f,Zf(f),w),I&&(w=Ns(w,y|E|S,wg));for(var $=m.length;$--;)pg(w,m[$]);return w});function kd(f,m){return F0(f,Fg(pt(m)))}var yh=ga(function(f,m){return f==null?{}:Xi(f,m)});function F0(f,m){if(f==null)return{};var w=hr(Zf(f),function(I){return[I]});return m=pt(m),Or(f,w,function(I,$){return m(I,$[0])})}function Gg(f,m,w){m=Va(m,f);var I=-1,$=m.length;for($||($=1,f=n);++I<$;){var q=f==null?n:f[Hr(m[I])];q===n&&(I=$,q=w),f=mo(q)?q.call(f):q}return f}function U0(f,m,w){return f==null?f:pd(f,m,w)}function B0(f,m,w,I){return I=typeof I=="function"?I:n,f==null?f:pd(f,m,w,I)}var _h=Wl(ci),j0=Wl(ms);function RS(f,m,w){var I=Mt(f),$=I||nl(f)||Jl(f);if(m=pt(m,4),w==null){var q=f&&f.constructor;$?w=I?new q:[]:yr(f)?w=mo(q)?ca(Lf(f)):{}:w={}}return($?Ps:Lo)(f,function(X,re,he){return m(w,X,re,he)}),w}function f5(f,m){return f==null?!0:pg(f,m)}function AS(f,m,w){return f==null?f:Ry(f,m,ql(w))}function h5(f,m,w,I){return I=typeof I=="function"?I:n,f==null?f:Ry(f,m,ql(w),I)}function ec(f){return f==null?[]:Zv(f,ci(f))}function p5(f){return f==null?[]:Zv(f,ms(f))}function Kg(f,m,w){return w===n&&(w=m,m=n),w!==n&&(w=ps(w),w=w===w?w:0),m!==n&&(m=ps(m),m=m===m?m:0),da(ps(f),m,w)}function Yg(f,m,w){return m=Fi(m),w===n?(w=m,m=0):w=Fi(w),f=ps(f),my(f,m,w)}function Xg(f,m,w){if(w&&typeof w!="boolean"&&Ci(f,m,w)&&(m=w=n),w===n&&(typeof m=="boolean"?(w=m,m=n):typeof f=="boolean"&&(w=f,f=n)),f===n&&m===n?(f=0,m=1):(f=Fi(f),m===n?(m=f,f=0):m=Fi(m)),f>m){var I=f;f=m,m=I}if(w||f%1||m%1){var $=Oo();return Gn(f+$*(m-f+Up("1e-"+(($+"").length-1))),m)}return Wf(f,m)}var g5=md(function(f,m,w){return m=m.toLowerCase(),f+(w?Md(m):m)});function Md(f){return G0(wn(f).toLowerCase())}function OS(f){return f=wn(f),f&&f.replace(bt,RT).replace(Tf,"")}function IS(f,m,w){f=wn(f),m=ls(m);var I=f.length;w=w===n?I:da(jt(w),0,I);var $=w;return w-=m.length,w>=0&&f.slice(w,$)==m}function PS(f){return f=wn(f),f&&mi.test(f)?f.replace(Wn,Gp):f}function LS(f){return f=wn(f),f&&te.test(f)?f.replace(xo,"\\$&"):f}var kS=md(function(f,m,w){return f+(w?"-":"")+m.toLowerCase()}),H0=md(function(f,m,w){return f+(w?" ":"")+m.toLowerCase()}),MS=$y("toLowerCase");function DS(f,m,w){f=wn(f),m=jt(m);var I=m?oi(f):0;if(!m||I>=m)return f;var $=(m-I)/2;return Qf(rd($),w)+f+Qf(Df($),w)}function Qg(f,m,w){f=wn(f),m=jt(m);var I=m?oi(f):0;return m&&I<m?f+Qf(m-I,w):f}function m5(f,m,w){f=wn(f),m=jt(m);var I=m?oi(f):0;return m&&I<m?Qf(m-I,w)+f:f}function v5(f,m,w){return w||m==null?m=0:m&&(m=+m),Ll(wn(f).replace(se,""),m||0)}function z0(f,m,w){return(w?Ci(f,m,w):m===n)?m=1:m=jt(m),hd(wn(f),m)}function V0(){var f=arguments,m=wn(f[0]);return f.length<3?m:m.replace(f[1],f[2])}var Zg=md(function(f,m,w){return f+(w?"_":"")+m.toLowerCase()});function q0(f,m,w){return w&&typeof w!="number"&&Ci(f,m,w)&&(m=w=n),w=w===n?Q:w>>>0,w?(f=wn(f),f&&(typeof m=="string"||m!=null&&!ph(m))&&(m=ls(m),!m&&Ol(f))?ko(Gi(f),0,w):f.split(m,w)):[]}var NS=md(function(f,m,w){return f+(w?" ":"")+G0(m)});function W0(f,m,w){return f=wn(f),w=w==null?0:da(jt(w),0,f.length),m=ls(m),f.slice(w,w+m.length)==m}function tc(f,m,w){var I=j.templateSettings;w&&Ci(f,m,w)&&(m=n),f=wn(f),m=gs({},m,I,jy);var $=gs({},m.imports,I.imports,jy),q=ci($),X=Zv($,q);Ps(q,function(_t){if(Ye.test(_t))throw new gt(u)});var re,he,ke=0,Me=m.interpolate||Et,Fe="__p += '",Qe=Na((m.escape||Et).source+"|"+Me.source+"|"+(Me===vi?it:Et).source+"|"+(m.evaluate||Et).source+"|$","g"),ut="//# sourceURL="+(En.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$p+"]")+` 15`;f.replace(Qe,function(_t,fn,gn,Fo,zs,Uo){return gn||(gn=Fo),Fe+=f.slice(ke,Uo).replace(xn,oE),fn&&(re=!0,Fe+=`' + 16__e(`+fn+`) + 17'`),zs&&(he=!0,Fe+=`'; 18`+zs+`; 19__p += '`),gn&&(Fe+=`' + 20((__t = (`+gn+`)) == null ? '' : __t) + 21'`),ke=Uo+_t.length,_t}),Fe+=`'; 22`;var St=En.call(m,"variable")&&m.variable;if(!St)Fe=`with (obj) { 23`+Fe+` 24} 25`;else if(Ye.test(St))throw new gt(c);Fe=(he?Fe.replace(ki,""):Fe).replace(gi,"$1").replace(qn,"$1;"),Fe="function("+(St||"obj")+`) { 26`+(St?"":`obj || (obj = {}); 27`)+"var __t, __p = ''"+(re?", __e = _.escape":"")+(he?`, __j = Array.prototype.join; 28function print() { __p += __j.call(arguments, '') } 29`:`; 30`)+Fe+`return __p 31}`;var en=wh(function(){return ln(q,ut+"return "+Fe).apply(n,X)});if(en.source=Fe,dh(en))throw en;return en}function nc(f){return wn(f).toLowerCase()}function rc(f){return wn(f).toUpperCase()}function bh(f,m,w){if(f=wn(f),f&&(w||m===n))return sE(f);if(!f||!(m=ls(m)))return f;var I=Gi(f),$=Gi(m),q=Jv(I,$),X=Ju(I,$)+1;return ko(I,q,X).join("")}function Eh(f,m,w){if(f=wn(f),f&&(w||m===n))return f.slice(0,ny(f)+1);if(!f||!(m=ls(m)))return f;var I=Gi(f),$=Ju(I,Gi(m))+1;return ko(I,0,$).join("")}function ic(f,m,w){if(f=wn(f),f&&(w||m===n))return f.replace(se,"");if(!f||!(m=ls(m)))return f;var I=Gi(f),$=Jv(I,Gi(m));return ko(I,$).join("")}function y5(f,m){var w=V,I=G;if(yr(m)){var $="separator"in m?m.separator:$;w="length"in m?jt(m.length):w,I="omission"in m?ls(m.omission):I}f=wn(f);var q=f.length;if(Ol(f)){var X=Gi(f);q=X.length}if(w>=q)return f;var re=w-oi(I);if(re<1)return I;var he=X?ko(X,0,re).join(""):f.slice(0,re);if($===n)return he+I;if(X&&(re+=he.length-re),ph($)){if(f.slice(re).search($)){var ke,Me=he;for($.global||($=Na($.source,wn(nt.exec($))+"g")),$.lastIndex=0;ke=$.exec(Me);)var Fe=ke.index;he=he.slice(0,Fe===n?re:Fe)}}else if(f.indexOf(ls($),re)!=re){var Qe=he.lastIndexOf($);Qe>-1&&(he=he.slice(0,Qe))}return he+I}function $S(f){return f=wn(f),f&&Os.test(f)?f.replace(si,cE):f}var Sh=md(function(f,m,w){return f+(w?" ":"")+m.toUpperCase()}),G0=$y("toUpperCase");function K0(f,m,w){return f=wn(f),m=w?n:m,m===n?ey(f)?ry(f):xT(f):f.match(m)||[]}var wh=Gt(function(f,m){try{return Is(f,n,m)}catch(w){return dh(w)?w:new gt(w)}}
vendor: 4,360 bytes, line 31
31),FS=ga(function(f,m){return Ps(m,function(w){w=Hr(w),Ds(f,w,Ng(f[w],f))}),f});function _5(f){var m=f==null?0:f.length,w=pt();return f=m?hr(f,function(I){if(typeof I[1]!="function")throw new ks(a);return[w(I[0]),I[1]]}):[],Gt(function(I){for(var $=-1;++$<m;){var q=f[$];if(Is(q[0],this,I))return Is(q[1],this,I)}})}function Jg(f){return Uc(Ns(f,y))}function Dd(f){return function(){return f}}function US(f,m){return f==null||f!==f?m:f}var Nd=bg(),BS=bg(!0);function Ui(f){return f}function $d(f){return qc(typeof f=="function"?f:Ns(f,y))}function jS(f){return yy(Ns(f,y))}function b5(f,m){return _y(f,Ns(m,y))}var em=Gt(function(f,m){return function(w){return wi(w,f,m)}}),o=Gt(function(f,m){return function(w){return wi(f,w,m)}});function l(f,m,w){var I=ci(m),$=Hc(m,I);w==null&&!(yr(m)&&($.length||!I.length))&&(w=m,m=f,f=this,$=Hc(m,ci(m)));var q=!(yr(w)&&"chain"in w)||!!w.chain,X=mo(f);return Ps($,function(re){var he=m[re];f[re]=he,X&&(f.prototype[re]=function(){var ke=this.__chain__;if(q||ke){var Me=f(this.__wrapped__),Fe=Me.__actions__=Ni(this.__actions__);return Fe.push({func:he,args:arguments,thisArg:f}),Me.__chain__=ke,Me}return he.apply(f,Al([this.value()],arguments))})}),f}function d(){return Zr._===this&&(Zr._=td),this}function g(){}function b(f){return f=jt(f),Gt(function(m){return dg(m,f)})}var T=Yc(hr),M=Yc(nE),B=Yc(Yv);function ne(f){return bd(f)?Xv(Hr(f)):hg(f)}function me(f){return function(m){return f==null?n:Hl(f,m)}}var Ce=By(),Ie=By(!0);function ve(){return[]}function Ee(){return!1}function rt(){return{}}function mt(){return""}function Un(){return!0}function ce(f,m){if(f=jt(f),f<1||f>fe)return[];var w=Q,I=Gn(f,Q);m=pt(m),f-=Q;for(var $=Wp(I,m);++w<f;)m(w);return $}function ie(f){return Mt(f)?hr(f,Hr):Zi(f)?[f]:Ni(wd(wn(f)))}function ge(f){var m=++iy;return wn(f)+m}var Re=Xf(function(f,m){return f+m},0),ft=Sg("ceil"),_n=Xf(function(f,m){return f/m},1),at=Sg("floor");function Kt(f){return f&&f.length?Bl(f,Ui,Yi):n}function un(f,m){return f&&f.length?Bl(f,pt(m,2),Yi):n}function bn(f){return Xu(f,Ui)}function sc(f,m){return Xu(f,pt(m,2))}function E5(f){return f&&f.length?Bl(f,Ui,Vf):n}function wY(f,m){return f&&f.length?Bl(f,pt(m,2),Vf):n}var CY=Xf(function(f,m){return f*m},1),xY=Sg("round"),TY=Xf(function(f,m){return f-m},0);function RY(f){return f&&f.length?qp(f,Ui):0}function AY(f,m){return f&&f.length?qp(f,pt(m,2)):0}return j.after=sS,j.ary=E0,j.assign=M0,j.assignIn=Vg,j.assignInWith=ES,j.assignWith=gs,j.at=D0,j.before=S0,j.bind=Ng,j.bindAll=FS,j.bindKey=ch,j.castArray=aS,j.chain=g0,j.chunk=o0,j.compact=a0,j.concat=Ag,j.cond=_5,j.conforms=Jg,j.constant=Dd,j.countBy=sh,j.create=SS,j.curry=w0,j.curryRight=C0,j.debounce=Rn,j.defaults=wS,j.defaultsDeep=CS,j.defer=x0,j.delay=GT,j.difference=FE,j.differenceBy=Ga,j.differenceWith=zr,j.drop=l0,j.dropRight=UE,j.dropRightWhile=li,j.dropWhile=UT,j.fill=BE,j.filter=Hs,j.flatMap=QE,j.flatMapDeep=ZE,j.flatMapDepth=zT,j.flatten=Qi,j.flattenDeep=Ka,j.flattenDepth=jE,j.flip=oS,j.flow=Nd,j.flowRight=BS,j.fromPairs=HE,j.functions=o5,j.functionsIn=Pd,j.groupBy=_0,j.initial=Og,j.intersection=cs,j.intersectionBy=No,j.intersectionWith=zE,j.invert=l5,j.invertBy=c5,j.invokeMap=JE,j.iteratee=$d,j.keyBy=eS,j.keys=ci,j.keysIn=ms,j.map=ah,j.mapKeys=TS,j.mapValues=Ld,j.matches=jS,j.matchesProperty=b5,j.memoize=$g,j.merge=vh,j.mergeWith=$0,j.method=em,j.methodOf=o,j.mixin=l,j.negate=Fg,j.nthArg=b,j.omit=d5,j.omitBy=kd,j.once=KT,j.orderBy=tS,j.over=T,j.overArgs=Ug,j.overEvery=M,j.overSome=B,j.partial=Ql,j.partialRight=Bg,j.partition=Mg,j.pick=yh,j.pickBy=F0,j.property=ne,j.propertyOf=me,j.pull=Xa,j.pullAll=Ig,j.pullAllBy=d0,j.pullAllWith=$o,j.pullAt=VE,j.range=Ce,j.rangeRight=Ie,j.rearg=jg,j.reject=qT,j.remove=Cd,j.rest=T0,j.reverse=Jc,j.sampleSize=nS,j.set=U0,j.setWith=B0,j.shuffle=rS,j.slice=nh,j.sortBy=iS,j.sortedUniq=KE,j.sortedUniqBy=jT,j.split=q0,j.spread=Zl,j.tail=HT,j.take=Sn,j.takeRight=Kn,j.takeRightWhile=sn,j.takeWhile=cn,j.tap=kg,j.throttle=va,j.thru=tu,j.toArray=_S,j.toPairs=_h,j.toPairsIn=j0,j.toPath=ie,j.toPlainObject=bS,j.transform=RS,j.unary=uh,j.union=Pn,j.unionBy=Bs,j.unionWith=Kl,j.uniq=Td,j.uniqBy=f0,j.uniqWith=Qa,j.unset=f5,j.unzip=pr,j.unzipWith=Za,j.update=AS,j.updateWith=h5,j.values=ec,j.valuesIn=p5,j.without=eu,j.words=K0,j.wrap=YT,j.xor=h0,j.xorBy=js,j.xorWith=Rd,j.zip=ih,j.zipObject=ds,j.zipObjectDeep=p0,j.zipWith=Lg,j.entr
31ies=_h,j.entriesIn=j0,j.extend=Vg,j.extendWith=ES,l(j,j),j.add=Re,j.attempt=wh,j.camelCase=g5,j.capitalize=Md,j.ceil=ft,j.clamp=Kg,j.clone=lS,j.cloneDeep=uS,j.cloneDeepWith=XT,j.cloneWith=cS,j.conformsTo=R0,j.deburr=OS,j.defaultTo=US,j.divide=_n,j.endsWith=IS,j.eq=go,j.escape=PS,j.escapeRegExp=LS,j.every=y0,j.find=XE,j.findIndex=c0,j.findKey=mh,j.findLast=fs,j.findLastIndex=cr,j.findLastKey=vo,j.floor=at,j.forEach=el,j.forEachRight=oh,j.forIn=xS,j.forInRight=qg,j.forOwn=rl,j.forOwnRight=s5,j.get=Wg,j.gt=dS,j.gte=QT,j.has=a5,j.hasIn=N0,j.head=u0,j.identity=Ui,j.includes=Od,j.indexOf=BT,j.inRange=Yg,j.invoke=u5,j.isArguments=tl,j.isArray=Mt,j.isArrayBuffer=ZT,j.isArrayLike=hs,j.isArrayLikeObject=ur,j.isBoolean=JT,j.isBuffer=nl,j.isDate=on,j.isElement=A0,j.isEmpty=Hg,j.isEqual=O0,j.isEqualWith=fS,j.isError=dh,j.isFinite=fh,j.isFunction=mo,j.isInteger=hS,j.isLength=hh,j.isMap=I0,j.isMatch=pS,j.isMatchWith=Fn,j.isNaN=P0,j.isNative=xi,j.isNil=gS,j.isNull=e5,j.isNumber=mS,j.isObject=yr,j.isObjectLike=Pr,j.isPlainObject=nu,j.isRegExp=ph,j.isSafeInteger=zg,j.isSet=L0,j.isString=gh,j.isSymbol=Zi,j.isTypedArray=Jl,j.isUndefined=t5,j.isWeakMap=vS,j.isWeakSet=n5,j.join=us,j.kebabCase=kS,j.last=Us,j.lastIndexOf=Ya,j.lowerCase=H0,j.lowerFirst=MS,j.lt=yS,j.lte=r5,j.max=Kt,j.maxBy=un,j.mean=bn,j.meanBy=sc,j.min=E5,j.minBy=wY,j.stubArray=ve,j.stubFalse=Ee,j.stubObject=rt,j.stubString=mt,j.stubTrue=Un,j.multiply=CY,j.nth=Zc,j.noConflict=d,j.noop=g,j.now=lh,j.pad=DS,j.padEnd=Qg,j.padStart=m5,j.parseInt=v5,j.random=Xg,j.reduce=b0,j.reduceRight=VT,j.repeat=z0,j.replace=V0,j.result=Gg,j.round=xY,j.runInContext=le,j.sample=WT,j.size=Id,j.snakeCase=Zg,j.some=Dg,j.sortedIndex=xd,j.sortedIndexBy=qE,j.sortedIndexOf=WE,j.sortedLastIndex=rh,j.sortedLastIndexBy=GE,j.sortedLastIndexOf=Pg,j.startCase=NS,j.startsWith=W0,j.subtract=TY,j.sum=RY,j.sumBy=AY,j.template=tc,j.times=ce,j.toFinite=Fi,j.toInteger=jt,j.toLength=k0,j.toLower=nc,j.toNumber=ps,j.toSafeInteger=i5,j.toString=wn,j.toUpper=rc,j.trim=bh,j.trimEnd=Eh,j.trimStart=ic,j.truncate=y5,j.unescape=$S,j.uniqueId=ge,j.upperCase=Sh,j.upperFirst=G0,j.each=el,j.eachRight=oh,j.first=u0,l(j,(function(){var f={};return Lo(j,function(m,w){En.call(j.prototype,w)||(f[w]=m)}),f})(),{chain:!1}),j.VERSION=r,Ps(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){j[f].placeholder=j}),Ps(["drop","take"],function(f,m){$t.prototype[f]=function(w){w=w===n?1:vr(jt(w),0);var I=this.__filtered__&&!m?new $t(this):this.clone();return I.__filtered__?I.__takeCount__=Gn(w,I.__takeCount__):I.__views__.push({size:Gn(w,Q),type:f+(I.__dir__<0?"Right":"")}),I},$t.prototype[f+"Right"]=function(w){return this.reverse()[f](w).reverse()}}),Ps(["filter","map","takeWhile"],function(f,m){var w=m+1,I=w==J||w==Y;$t.prototype[f]=function($){var q=this.clone();return q.__iteratees__.push({iteratee:pt($,3),type:w}),q.__filtered__=q.__filtered__||I,q}}),Ps(["head","last"],function(f,m){var w="take"+(m?"Right":"");$t.prototype[f]=function(){return this[w](1).value()[0]}}),Ps(["initial","tail"],function(f,m){var w="drop"+(m?"":"Right");$t.prototype[f]=function(){return this.__filtered__?new $t(this):this[w](1)}}),$t.prototype.compact=function(){return this.filter(Ui)},$t.prototype.find=function(f){return this.filter(f).head()},$t.prototype.findLast=function(f){return this.reverse().find(f)},$t.prototype.invokeMap=Gt(function(f,m){return typeof f=="function"?new $t(this):this.map(function(w){return wi(w,f,m)})}),$t.prototype.reject=function(f){return this.filter(Fg(pt(f)))},$t.prototype.slice=function(f,m){f=jt(f);var w=this;return w.__filtered__&&(f>0||m<0)?new $t(w):(f<0?w=w.takeRight(-f):f&&(w=w.drop(f)),m!==n&&(m=jt(m),w=m<0?w.dropRight(-m):w.take(m-f)),w)},$t.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},$t.prototype.toArray=function(){return this.take(Q)},Lo($t.prototype,function(f,m){var w=/^(?:filter|find|map|reject)|While$/.test(m),I=/^(?:head|last)$/.test(m),$=j[I?"take"+(m=="last"?"Right":""):m],q=I||/^find/.test(m);$&&(j.prototype[m]=function(){var X=this.__wrapped__,re=I?[1]:arguments,he=X instanceof $t,ke=re[0],Me=he||Mt(X),Fe=function(fn){var gn=$.apply(j,Al([fn],re));return I&&Qe?gn[0]:gn};Me&&w&&typeof ke=="function"&&ke.length!=1&&(he=Me=!1);var Qe=this.__chain__,ut=!!this.__actions__.length,St=q&&!Qe,en=he&&!ut;if(!q&&Me){X=en?X:new $t(this);var _t=f.apply(X,re);return _t.__actions__.push({func:tu,args:[Fe],thisArg:n}),new ai(_t,Qe)}return St&&en?f.apply(this,re):(_t=this.thru(Fe),St?I?_t.value()[0]:_t.value():_t)})}),Ps(["pop","push","shift","sort","splice","unshift"],function(f){var m=If[f],w=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",I=/^(?:pop|shift)$/.test(f);j.prototype[f]=function(){var $=arguments;if(I&&!this.__chain__){var q=this.value();return m.apply(Mt(q)?q:[],$)}return this[w](function(X){return m.apply(Mt(X)?X:[],$)})}}),Lo($t.prototype,function(f,m){var w=j[m];if(w){var I=w.name+"";En.call(Yt,I)||(Yt[I]=[]),Yt[I].push({name:m,func:w})}}),Yt[Kc(n,A).name]=[{name:"wrapper",func:n}],$t.prototype.clone=$l,$t.prototype.reverse=$a,$t.prototype.value=ly,j.prototype.at=Yl,j.prototype.chain=Jr,j.prototype.commit=Xl,j.prototype.next=Ad,j.prototype.plant=m0,j.prototype.reverse=v0,j.prototype.toJSON=j.prototype.valueOf=j.prototype.value=YE,j.prototype.first=j.prototype.head,kc&&(j.prototype[kc]=Ja),j}),Ro=PT();oa?((oa.exports=Ro)._=Ro,Oc._=Ro):Zr._=Ro}).call(Xie)})(D_,D_.exports)),D_.exports}var Nm=Qie();const Zie=t=>t.valid&&typeof t.user_id=="string"&&t.user_id.length>0,Xs={requestEmailLink:async t=>(await xe.post("/auth/email-link/request",t)).data,consumeEmailLink:async t=>(await xe.post("/auth/email-link/consume",t)).data,register:async t=>(await xe.post("/auth/register",t)).data,login:async t=>(await xe.post("/auth/login",t)).data,loginWithFirebase:async t=>(await xe.post("/auth/firebase",t)).data,exchangeTelegramMiniApp:async t=>(await xe.post("/auth/telegram/mini-app-session",{init_data:t})).data,claimGuest:async t=>(await xe.post("/auth/claim-guest",t)).data,validate:async()=>(await xe.post("/auth/validate")).data,refresh:async(t=!1)=>(await xe.post("/auth/refresh",void 0,{sessionBootstrap:t})).data,restoreSession:async()=>{const t=await Xs.validate();if(Zie(t))return t;try{await Xs.refresh(!0)}catch{return t}return Xs.validate()},logout:async()=>(await xe.post("/auth/logout")).data,getAccounts:async()=>(await xe.get("/auth/accounts")).data,switchAccount:async t=>(await xe.post("/auth/switch",{target_user_id:t})).data,logoutAccount:async t=>(await xe.post(`/auth/accounts/${t}/logout`)).data,logoutAll:async()=>(await xe.post("/auth/logout-all")).data,verifyEmail:async t=>(await xe.post("/auth/verify-email",t)).data,resendVerification:async t=>(await xe.post("/auth/resend-verification",t)).data,forgotPassword:async t=>(await xe.post("/auth/forgot-password",t)).data,resetPassword:async t=>(await xe.post("/auth/reset-password",t)).data,checkResetToken:async t=>(await xe.post("/auth/reset-password/check",{token:t})).data};function Y9(t,e){_.useSyncExternalStore(kr.subscribe,kr.snapshot);const n=Js(),r=n.getDefaultOptions().queries,i=t.retry??r?.retry??3,s=h=>kr.isBlocked(h)||!kr.isKnownDenial(h)&&[401,403].includes(I4(h)??0),a=!s(t.queryKey?n.getQueryState(t.queryKey)?.error:void 0),c=t.enabled,u=t.refetchInterval;return{enabled:h=>a&&!s(h.state.error)&&(typeof c=="function"?c(h):c!==!1),refetchInterval:h=>s(h.state.error)?!1:typeof u=="function"?u(h):u,retry:(h,p)=>u9(p)&&(typeof i=="function"?i(h,p):i===!0?h<3:typeof i=="number"&&h<i)}}const bc=((t,e)=>lie({...t,...Y9(t)})),M4e=((t,e)=>cie({...t,...Y9(t)})),Jie="en",ese=[{key:"en",pathPrefix:"",htmlLang:"en",hreflang:"en",ogLocale:"en_US",antdModule:"en_US",dayjsModule:"en",intlTag:"en-US",strapiLocale:"en",endonym:"English",endonymShort:"English",variant:"International English",experiments:!0},{key:"es",pathPrefix:"/es",htmlLang:"es-419",hreflang:"es",ogLocale:"es_LA",antdModule:"es_ES",dayjsModule:"es-mx",intlTag:"es-419",strapiLocale:"es",endonym:"Español (Latinoamérica)",endonymShort:"Español",variant:"Latin American Spanish â tú, not vosotros",experiments:!0},{key:"pt",pathPrefix:"/pt",htmlLang:"pt-BR",hreflang:"pt",ogLocale:"pt_BR",antdModule:"pt_BR",dayjsModule:"pt-br",intlTag:"pt-BR",stra
31piLocale:"pt-BR",endonym:"Português (Brasil)",endonymShort:"Português",variant:"Brazilian Portuguese â você",experiments:!0}],X9={sourceLocale:Jie,locales:ese},xx=Object.freeze(X9.locales),of=X9.sourceLocale;Object.freeze(xx.map(t=>t.key));const Q9=new Map(xx.map(t=>[t.key,t])),Q4=t=>{const e=Q9.get(t);if(!e)throw new Error(`Unknown locale: ${t}`);return e},Z4=t=>typeof t=="string"&&Q9.has(t),tse=new Map(xx.map(t=>[t.key,t.key])),Z9=t=>{if(typeof t!="string")return null;const e=t.trim().toLowerCase().replace(/_/g,"-").split("-")[0];return e?tse.get(e)??null:null},nse=t=>{if(!t)return of;for(const e of t){const n=Z9(e);if(n)return n}return of},J4=t=>Z4(t)?t:of,jO="de_locale",rse=3600*24*365,ise=i9,sse=t=>{try{return decodeURIComponent(t)}catch{return t}},ose=t=>{const e=t.split(";").map(r=>r.trim()).find(r=>r.startsWith(`${jO}=`));if(!e)return null;const n=sse(e.slice(jO.length+1));return n===J4(n)?n:null},pD=()=>typeof document>"u"?null:ose(document.cookie),gD=t=>{if(typeof document>"u"||typeof window>"u")return!1;const e=[`${jO}=${encodeURIComponent(t)}`,"Path=/",`Max-Age=${rse}`,"SameSite=Lax"],n=ise(window.location.hostname);return n&&e.push(`Domain=${n}`),window.location.protocol==="https:"&&e.push("Secure"),document.cookie=e.join("; "),!0},ase="locale",lse=t=>{const e=new URLSearchParams(t).get(ase);return Z4(e)?e:null},J9={supersededReason:"A reply has already been sent.",fromChannel:"from {{channel}}",alreadyAnswered:"Already answered.",alreadyConfirmedFrom:"Already confirmed from {{channel}}.",undoWindowClosed:"The undo window has closed â this is still saved.",noLongerAvailable:"This is no longer available.",dispatchFailed:"That action could not be completed. Please try again."},eB={groupLabel:"Reply choices",submit:"Send answer",submitting:"Submittingâ¦",chose:"You chose",answered:"Answered"},tB={confirmed:"Confirmed",justNow:"just now",minutesAgo:"{{minutes}}m ago",hoursAgo:"{{hours}}h ago"},nB={listLabel:"Results",overflow:"+{{total}} more"},rB={submitted:"Submitted",required:"{{label}} is required",number:"Enter a number",date:"Enter a valid date",choice:"Choose one of the options",selectPlaceholder:"Chooseâ¦"},iB={newTab:"(opens in a new tab)"},sB={saved:"Saved",undone:"Undone",undoWindow:"for a few minutes"},oB={label:"Thinking"},aB={dragLink:"Drag link to Library"},lB={block:J9,choice:eB,confirm:tB,cards:nB,form:rB,link:iB,receipt:sB,thinking:oB,message:aB},cse=Object.freeze(Object.defineProperty({__proto__:null,block:J9,cards:nB,choice:eB,confirm:tB,default:lB,form:rB,link:iB,message:aB,receipt:sB,thinking:oB},Symbol.toStringTag,{value:"Module"})),cB={title:"Find what you mean <br/> in everything you save"},uB={brandName:"dEssence",unifiedTitle:"Everything you save, in one place that answers.",unifiedCopy:"Sign in or create your account.",or:"or",emailContinue:"Email me a sign-in link",passwordSubmit:"Sign in",usePassword:"Use password instead",termsUnified:"By continuing you agree to the <terms>terms</terms> and <privacy>privacy notice</privacy>.",artAlt:"Tracy, the dEssence assistant, sitting on a cloud among saved cards",artHeadline:"Saved once, ready the day it matters.",artCaption:"Tracy has been holding it",extensionTitle:"Sign in to dEssence",extensionCopy:"You'll be redirected to dessence.ai to sign in.",extensionButton:"Sign in with dEssence",continueWith:"Continue with {{provider}}",backToDemo:"Back to the demo",forgotPassword:"Forgot password?",newHere:"New here? <toggle>Create an account</toggle>",haveAccount:"Already have an account? <toggle>Log in</toggle>",terms:"By signing up you agree to our <terms>Terms</terms> and <privacy>Privacy Policy</privacy>."},dB={sentBadge:"Sent",sentTitle:"Check your inbox â the link is in there.",sentCopy:"We sent a secure link to {{email}}. Open it on any device. It works once and expires in fifteen minutes.",sendAgain:"Send it again",wrongAddress:"Wrong address?",useAnother:"Use another one",useLinkInstead:"Email me a link instead",opening:"Signing in",openingTitle:"Opening dEssenceâ¦",openingCopy:"We're checking your secure link and getting your account ready.",expiredBadge:"Link expired",invali
31dTitle:"This sign-in link no longer works.",invalidCopy:"Email links work once and expire after fifteen minutes. Request a fresh one to continue.",requestAnother:"Request another link"},fB={emailLabel:"Email",emailExample:"[email protected]",emailRequired:"Enter the email for this account.",emailAccountRequired:"Enter your account email.",emailInvalid:"Enter a valid email address.",passwordLabel:"Password",passwordPlaceholder:"Your password",passwordRequired:"Enter your password.",passwordMin:"Use at least 8 characters.",passwordMinPlaceholder:"At least 8 characters",confirmRequired:"Repeat the password once.",confirmMismatch:"The passwords do not match.",newPasswordLabel:"New password",newPasswordRequired:"Enter a new password.",confirmNewPasswordLabel:"Confirm new password",confirmNewPasswordPlaceholder:"Re-enter your new password"},hB={backToSignIn:"Back to sign in"},pB={title:"Reset your password",copy:"Enter the email you signed up with and we'll send a reset link.",sent:"If a verified account exists for that email, a reset link is on its way. The link expires in a few minutes.",submit:"Send reset link"},gB={linkError:"Invalid or expired reset link.",invalidTitle:"Reset link is invalid or has expired",invalidCopy:"Reset links work once and expire after a few minutes. Request a new one to continue.",requestNew:"Request a new link",checking:"Checking your reset linkâ¦",title:"Choose a new password",copy:"Pick a strong password you haven't used before.",submit:"Update password"},mB={checking:"Verifying your emailâ¦",successTitle:"Email verified",successCopy:"Your email address is confirmed. You can continue using dEssence.",goToApp:"Go to app",errorTitle:"Verification failed",errorCopy:"The link may have expired. Sign in and request a fresh verification email from your profile page.",linkIncomplete:"The verification link is incomplete.",linkInvalid:"This verification link is invalid or has expired."},vB={linkInvalid:"This deletion link is invalid or has expired.",invalidTitle:"Deletion link is invalid or has expired",invalidCopy:"Deletion links work once and expire after a short time. Request a new one from your account settings to continue.",checking:"Checking your deletion linkâ¦",deleting:"Deleting your accountâ¦",doneTitle:"Account deleted",doneCopy:"Your account and all associated data have been permanently removed.",failedTitle:"Could not delete account",title:"Delete your account?",warning:"This action is permanent and cannot be undone. By confirming, you will lose:",lossProfile:"Your profile, memory, and traits",lossLibrary:"All Projects, Searches, library items, and uploaded files",lossChats:"Chats, messages, and saved recommendations",lossLinked:"Linked Telegram accounts and browser extensions",changeMind:"If you change your mind, just close this page â nothing is deleted yet.",confirm:"Yes, permanently delete my account"},yB={invalidTitle:"Invalid authorization request",invalidCopy:"Missing required parameters.",failed:"Authorization failed."},_B={tooltip:"API environment (dev only)",ariaLabel:"API environment settings",title:"API Environment",description:"Point the extension at the dEssence API environment you want to authenticate against.",placeholder:"Select environment or enter custom URL",invalidUrl:"Enter a valid URL (http:// or https://)",hint:"Pick an environment or type a custom base URL."},bB={signedIn:"You are in.",signInFailed:"Sign-in failed. Please try again.",emailLinkFailed:"Could not send the sign-in link. Please try again.",forgotFailed:"Could not start the password reset. Please try again.",passwordUpdated:"Password updated. Please sign in with your new password."},EB={title:"Add a sign-in method",copy:"Use the same account outside Telegram.",google:"Continue with Google",email:"Use email",notNow:"Not now",emailLabel:"Email",invalidEmail:"Enter a valid email address.",send:"Send verification link",sent:"Check your email to continue. You can open the link on another device.",external:"Continue in your browser, then return here.",confirmTitle:"Connect your accounts",confirmCopy:"Connect {{name}}âs Telegram account to {{email}}? Your saved content will be combined in the existing account.",confirm:"Connect accounts",cancel:"Cancel",done:"Your account is connected",doneCopy:"Your sign-in methods now open the same Dessence account.",open:"Open Dessence",error:"We couldnât complete this step. Try again, or reopen the connection from your account. If a task is running, wait for it to finish before connecting.",signIn:"Sign in to continue"},SB={continue:"Continue with Telegram",opening:"Opening your Dessence account",error:"Telegram sign-in could not be completed",retry:"Back to sign in"}
31,wB={story:cB,signIn:uB,emailLink:dB,field:fB,link:hB,forgotPassword:pB,resetPassword:gB,verifyEmail:mB,deleteAccount:vB,authorize:yB,apiUrl:_B,toast:bB,connection:EB,telegram:SB},use=Object.freeze(Object.defineProperty({__proto__:null,apiUrl:_B,authorize:yB,connection:EB,default:wB,deleteAccount:vB,emailLink:dB,field:fB,forgotPassword:pB,link:hB,resetPassword:gB,signIn:uB,story:cB,telegram:SB,toast:bB,verifyEmail:mB},Symbol.toStringTag,{value:"Module"})),CB={kicker:"Daily limit reached",guestHeadlineChats:"You've used today's demo chats",guestHeadlineSaves:"You've used today's demo saves",guestSubline:"Create your account to keep this work and continue in Dessence. This demo limit resets {{resetsIn}}.",createAccount:"Create my account",guestLater:"Not now â demo resets {{resetsIn}}",freeHeadlineChats_one:"You've used your one free chat for today",freeHeadlineChats_other:"You've used all {{count}} free chats for today",freeHeadlineSaves_one:"You've used your one free save for today",freeHeadlineSaves_other:"You've used all {{count}} free saves for today",freeSubline:"That's a full day on the free plan â it resets {{resetsIn}}. Or go Pro and pick up right where you left off.",resetsSoon:"shortly",resetsMidnightUtc:"at midnight UTC",compareFree:"Free",comparePro:"Pro",compareChats:"Chats per day",compareSaves:"Library saves per day",comparePriceWatches:"Price watches",priceWatchesFree:"{{limit}} daily",priceWatchesPro:"{{limit}} hourly",intervalGroupLabel:"Billing interval",monthly:"Monthly",yearly:"Yearly",pricePerMonth:"{{price}}<per>/month</per>",pricePerYear:"{{price}}<per>/year</per>",monthsFree_one:"{{count}} month free",monthsFree_other:"{{count}} months free",upgradeCtaMonthly:"Upgrade to Pro â {{price}}/mo",upgradeCtaYearly:"Upgrade to Pro â {{price}}/yr",upgradeToPro:"Upgrade to Pro",maybeLater:"Maybe later â free plan resets {{resetsIn}}",reassurance:"Cancel anytime · Secure checkout by Stripe",proHeadlineChats:"You've hit today's Pro limit for chats",proHeadlineSaves:"You've hit today's Pro limit for saves",proSublineWithCount:"That's {{used}} in one day â impressive. Your limit resets {{resetsIn}}.",gotIt:"Got it"},xB={fallback:"We couldn't open billing. Please try again.",BILLING_DISABLED:"Billing isn't available on this deployment.",BILLING_ACCOUNT_NOT_FOUND:"There's no billing account yet. Start a subscription first.",AUTHENTICATION_FAILED:"Your session expired. Sign in again to continue.",GUEST_ACCOUNT_REQUIRED:"This is a demo session. Create an account to manage a subscription.",VALIDATION_ERROR:"That billing request wasn't valid. Please try again.",SERVICE_UNAVAILABLE:"Billing is temporarily unavailable. Please try again in a moment.",EXTERNAL_SERVICE_ERROR:"Stripe didn't respond. Please try again in a moment.",DATABASE_ERROR:"We couldn't save your billing details. Please try again.",INTERNAL_ERROR:"Something went wrong on our side. Please try again."},TB={limit:CB,error:xB},dse=Object.freeze(Object.defineProperty({__proto__:null,default:TB,error:xB,limit:CB},Symbol.toStringTag,{value:"Module"})),RB={board:{fallbackTitle:"New board",title:"Boards",searchPlaceholder:"Search boards",searchAria:"Search boards",closeSearch:"Close search",count_one:"{{count}} board",count_other:"{{count}} boards",countFiltered_one:"{{visible}} of {{count}} board",countFiltered_other:"{{visible}} of {{count}} boards",archiveTitle:"Archive board?",archiveBody:'This removes "{{title}}" from your active boards.',showArchivedAria:"Show archived boards",showActiveAria:"Show active boards",loadingActive:"Reading your library",cta:"Ask your memory",archivedBody:"Boards you archive will rest here, ready to be restored whenever you need them again.",filterBody:"Try a different word, or clear the filter to see every board on the shelf."},chat:{fallbackTitle:"New chat",title:"Recent chats",searchPlaceholder:"Filter chats",searchAria:"Filter chats",closeSearch:"Close filter",count_one:"{{count}} chat",count_other:"{{count}} chats",countFiltered_one:"{{visible}} of {{count}} chat",countFiltered_other:"{{visible}} of {{count}} chats",archiveTitle:"Archive chat?",archiveBody:'This removes "{{title}}" from your recent chats.',showArchivedAria:"Show archived chats",showActiveAria:"Show active chats",loadingActive:"Reading your chats",cta:"New chat",archivedBody:"Chats you archive will rest here â out of the way, but never out of reach.",filterBody:"Try a different word, or clear the filter to see every chat you have started."},loadingArchived:"Opening the archive",loadingSorting:"Sorting by recency",loadingPreviews:"Composing previews",showArchived:"Show archived",showingArchived:"Showing archived · click for active",archivedEyebrow:"Archive",archivedHeadline:"Nothing put away yet.",filterEyebrow:"No matches",filterHeadline:'Nothing here for "{{query}}".',clearFilter:"Clear filter",newBoard:"New board",newEmptyBoard:"New empty board",archiveOk:"Archive",noItemsYet:"No items yet",itemCount_one:"{{count}} item",itemCount_other:"{{count}} items",messageCountShort_one:"{{count}} msg",messageCountShort_other:"{{count}} msgs",openCardAria:"Open {{title}}
31",openChatCardAria_one:"Open {{title}}, {{count}} message",openChatCardAria_other:"Open {{title}}, {{count}} messages",emptyTag:"Empty",restoreAria:"Restore {{title}}",archiveAria:"Archive {{title}}",chatCardHint:"Open to pick the conversation back up.",emptyBoardHint:"No items pinned yet. Open the chat to continue the conversation â anything you save will land here.",noPreview:"No preview available.",kind:{url:"Link",image:"Image",video:"Video",audio:"Audio",text:"Note",pdf:"PDF",document:"Doc",spreadsheet:"Sheet",file:"File"}},AB={title:"Memory",subtitle:"Everything the assistant remembers about you â from conversations, saved items, and your own edits.",statMemories:"Memories",statNeedsReview:"Needs review",statHidden:"Hidden from chat",coreTitle:"Core identity",coreIntro:"The essentials the assistant always uses. Setting a value here is authoritative â it overrides whatever was inferred from your conversations, including the language replies come back in.",notSetYet:"Not set yet",editFieldAria:"Edit {{field}}",saveFieldAria:"Save {{field}}",core:{preferredNameLabel:"Preferred name",preferredNamePlaceholder:"What should the assistant call you?",languageLabel:"Language",languagePlaceholder:"Language the assistant should reply in",timezoneLabel:"Timezone",timezonePlaceholder:"e.g. America/New_York",locationLabel:"Location",locationPlaceholder:"City or area you are based in",sourceUser:"Set by you",sourceChat:"Set from chat",sourceInferred:"Inferred"},centerTitle:"Memory Center",addMemory:"Add memory",addMemoryPlaceholder:"What should the assistant remember?",refreshMemories:"Refresh memories",viewToggleAria:"Memory list order",viewNewest:"Newest first",viewCategory:"By category",search:"Search memories",projectionFacts:"Facts considered: {{value}}",projectionApplied:"Applied: {{value}}",projectionSuggestions:"Suggestions: {{value}}",noMatches:"No memories match â{{query}}â",emptyAll:"Nothing remembered yet",emptySection:"Nothing remembered here yet",jumpToCategoryAria:"Jump to category",filteredCount:"{{visible}} of {{total}}",confidenceTag:"{{value}} confidence",usedInChat:"Used in chat",hiddenFromChat:"Hidden from chat",editTooltip:"Edit memory",editAria:"Edit memory text",saveTooltip:"Save memory",saveAria:"Save memory text",acceptTooltip:"Accept memory",acceptAria:"Accept memory",hideTooltip:"Hide from chat",hideAria:"Hide memory from chat",useTooltip:"Use in chat",useAria:"Use memory in chat",markWrongTooltip:"Mark memory wrong",markWrongAria:"Mark memory wrong",forgetTooltip:"Forget memory",forgetAria:"Forget memory",forgetTitle:"Forget this memory?",forgetBody:"The assistant will stop using it, and it won't be added again automatically.",forgetOk:"Forget",revisionsTitle:"Recent memory revisions",noRevisions:"No revisions yet",section:{aboutYou:"About you",preferences:"Preferences",thingsToAvoid:"Things to avoid",goals:"Goals",projectsAndContexts:"Projects and contexts",peoplePlacesProducts:"People, places, products",openLoops:"Open loops",recentMemories:"Recent memories",maybeMemories:"Maybe remembered"}},OB={loading:"loading constellationâ¦",emptyTitle:"your constellation is empty",emptyBody:"Keep chatting and saving â as dEssence learns about you, the people, places and ideas it remembers will appear here, connected to you.",expanding:"expandingâ¦",expandFailed:"couldnât expand â click again to retry"},IB={preferredName:"Preferred name",primaryLanguage:"Primary language",location:"Location",timezone:"Timezone",displayName:"Display name",pronouns:"Pronouns",ageRange:"Age range",selfDescription:"Self description"},PB={accountTimezone:"Account timezone",accountUsername:"Account username",bootstrap:"Bootstrap",canonicalDedupRefresh:"Profile cleanup",chatProfileInference:"Chat profile inference",firstRead:"First profile load",onboardingSeed:"Onboarding seed",pendingApproval:"Pending approval",profilePageEdit:"Profile page edit",systemDerived:"System cleanup",userEdit:"User edit"},LB={canonicalDedupRefresh:"Cleaned up duplicate profile entries",coreIdentityUserEdit:"Updated core identity",onboardingSeedBootstrap:"Added starter profile records",profilePageEdit:"Edited from the Profile page",rebuildReset:"Rebuilt memory from the graph",userEdit:"Edited by user",autoSaved:"Auto-saved profile update: {{subject}}
31",approvedPending:"Approved pending profile update",fallback:"Profile updated",subjectFallback:"profile update"},kB={fallbackProjection:"Added automatically from your memory graph; awaiting confirmation.",projected:"Added automatically from your memory graph.",confirmed:"Confirmed by evidence in your memory graph.",addedFromPage:"Added from the Memory page."},MB={justNow:"Added just now",minutes:"Added {{count}}m ago",hours:"Added {{count}}h ago",days_one:"Added {{count}}d ago",days_other:"Added {{count}}d ago",date:"Added {{date}}"},DB={boardArchived:"Board archived",boardArchiveFailed:"Failed to archive board",boardRestored:"Board restored",boardRestoreFailed:"Failed to restore board",chatArchived:"Chat archived",chatArchiveFailed:"Failed to archive chat",chatRestored:"Chat restored",chatRestoreFailed:"Failed to restore chat",boardCreated:"Board created",boardCreateFailed:"Failed to create board",memoryAdded:"Memory added",memoryAddFailed:"Failed to add memory",saveFailed:"Failed to save",memorySaved:"Memory saved",memorySaveFailed:"Failed to save memory",memoryUsedInChat:"Memory will be used in chat",memoryHiddenFromChat:"Memory hidden from chat",memoryUpdateFailed:"Failed to update memory",memoryAccepted:"Memory accepted",memoryMarkedWrong:"Memory marked wrong",memoryForgotten:"Memory forgotten",memoryForgetFailed:"Failed to forget memory",projectionQueued:"Memory projection queued",projectionFailed:"Failed to start projection"},NB={index:RB,memory:AB,graph:OB,field:IB,source:PB,revision:LB,memorySource:kB,recency:MB,toast:DB},fse=Object.freeze(Object.defineProperty({__proto__:null,default:NB,field:IB,graph:OB,index:RB,memory:AB,memorySource:kB,recency:MB,revision:LB,source:PB,toast:DB},Symbol.toStringTag,{value:"Module"})),$B={fallbackName:{pastedFile:"Pasted file",pdfDocument:"PDF document"},kind:{audio:"Audio",document:"Document",file:"File",image:"Image",link:"Link",pdf:"PDF",spreadsheet:"Spreadsheet",text:"Text note",video:"Video"},pinned:"Pinned",remove:"Remove attachment",viewContent:"View content"},FB={manageAll:"Manage all jobs",nextRun:"next {{time}}",openChat:"Open chat"},UB={actions:{addToChat:"Add to chat",copyLink:"Copy link",download:"Download",menuAria:"Cited item actions",pin:"Pin to this board",pinToBoard:"Pin to boardâ¦",unpin:"Unpin from this board"},aria:{attached_one:"You attached â {{count}} item",attached_other:"You attached â {{count}} items",cited_one:"Cited from your library â {{count}} item",cited_other:"Cited from your library â {{count}} items"},chip:{attachmentFallback:"Attachment",untitled:"Untitled"},count_one:"{{count}} item",count_other:"{{count}} items",eyebrow:{attached:"You attached",cited:"Cited from your library"},overflow:{boardAria_one:"View all {{count}} cited item in a board",boardAria_other:"View all {{count}} cited items in a board",board_one:"View all {{count}} in a board",board_other:"View all {{count}} in a board",seeAll:"See all",seeAllAria_one:"See all cited items â {{count}} more",seeAllAria_other:"See all cited items â {{count}} more"},relativeTime:{days_one:"{{count}}d ago",days_other:"{{count}}d ago",hours_one:"{{count}}h ago",hours_other:"{{count}}h ago",justNow:"just now",minutes_one:"{{count}}m ago",minutes_other:"{{count}}m ago",months_one:"{{count}}mo ago",months_other:"{{count}}mo ago",weeks_one:"{{count}}w ago",weeks_other:"{{count}}w ago",years_one:"{{count}}y ago",years_other:"{{count}}y ago"},scrollNext:"Show more cited items",scrollPrevious:"Show previous cited items"},BB={attachFiles:"Attach files",cancelReply:"Cancel reply",dropToAttach:"Drop to attach to message",editorAriaLabel:"Ask your memory",editorPlaceholder:"Write your promptâ¦",engagedObject:{eyebrowJob:"Job",eyebrowResult:"Result",eyebrowSuggestion:"Suggestion",fallbackLabel:"Referenced item",stopReferring:"Stop referring to {{label}}"},placeholder:"Ask your memoryâ¦",sendMessage:"Send message",stopResponse:"Stop response",uploadFiles:"Upload files"},jB={addToBoard:"Add to board",allFilteredOut:"Everything here was filtered out â adjust the filter or restore excluded items.",checkedPlaces_one:"Checked {{count}} place â nothing in {{places}}.",checkedPlaces_other:"Checked {{count}} places â nothing in {{places}}.",closeSheet:"Close sources",dropLabel:"Drop to add to this board",emptyReason:{answeredFromWeb:"Answered from the web â not your saved memory.",clientNoCitedItems:"This answer didnât draw on your saved memory.",default:"Nothing saved for this yet."},errorHint:"Send your message again to retry.",errorTitle:"Couldnât reach your memory.",heading:"Sources",inBoard:"In board",keepAsBoard:"Keep as a board",kind:{audio:"Audio",doc:"Doc",file:"File",image:"Image",link:"Link",note:"Note",pdf:"PDF",sheet:"Sheet",video:"Video"},listAriaLabel:"Evidence the answer used",loadingFallback:"finding the proofâ¦",nearDuplicatesCollapsed_one:"{{count}} near-duplicate collapsed.",nearDuplicatesCollapsed_other:"{{count}} near-duplicates collapsed.",openSheet:"Open sources",peekCount_one:"Sources · {{count}}",peekCount_other:"Sources · {{count}}",removeFromBoard:"Remove from board",searching:"Searching your memoryâ¦",sort:{date:"Date",relevance:"Relevance",title:"Title",type:"Type"},sortAriaLabel:"Sort sources",toggle:{ariaLabel:"Panel view",inThisBoard:"In this board",sourcesUnseen:"Sources, new items found"},untitledItem:"Untitled"},HB={createBoard:"Create board",finding:"Finding the best boardsâ¦",inBoardsCount_one:"In {{count}} board",inBoardsCount_other:"In {{count}} boards",listAriaLabel:"Your boards",menuHeader:"Save to a board",menuHeaderRanked:"Save to a board â most relevant first",nameLabel:"Board name",namePlaceholder:"e.g. Travel ideas",newBoard:"New board",noMatches:"No boards match â{{query}}â.",noneYet:"No boards yet. Create one to start filing items.",rowStateAdd:"Add",rowStateAdded:"Added",searchAriaLabel:"Search your boards",searchPlaceholder:"Search boardsâ¦",untitledBoard:"Untitled board"},zB={copy:{action:"Copy message",doneLabel:"Copied",doneTooltip:"
31Copied!"},createdAt:"Created {{timestamp}}",evidence:{imagesUploaded_one:"Image uploaded",imagesUploaded_other:"{{count}} images uploaded"},moreLabels_one:"+{{count}} more",moreLabels_other:"+{{count}} more",reply:{action:"Reply to message"},replyQuote:{label:"Replied-to message",open:"Open replied-to message",unavailable:"Original message unavailable"},sender:{you:"You"},status:{queued:"Queued",sending:"Sending...",stopped:"Stopped",lateReminder:"Late reminder · Scheduled for {{scheduled}}"},traitsRemembered_one:"⨠Remembered {{count}} thing",traitsRemembered_other:"⨠Remembered {{count}} things",typing:"Assistant is typing",viewJob:"View job"},VB={loadingOlder:"Loading older messagesâ¦",retryOlder:"Could not load older messages. Retry",loadOlder:"Load older messages",retry:{headline:"That answer didn't come through."},scrollToBottom:"Scroll to bottom",syncFailed:"Could not update this conversation.",retrySync:"Retry",latestMessages:"Latest messages"},qB={promise:"I'll share anything new here.",stage:{preparing:"Preparing your update",preparingOverdue:"Your update is still queued",checking:"Checking the details",checkingOverdue:"Still checking the details",reading:"Reading it over",readingOverdue:"Still reading it over",searching:"Checking more shops",searchingOverdue:"Still checking more shops",writing:"Writing up what I found",writingOverdue:"Still writing up what I found"}},WB={working:"Working"},GB={attachmentFallbackName:"Library item",backToLibrary:"Back to Library",boardComposerPlaceholder:"Ask inside {{board}}â¦",closeSavedItems:"Close saved items",newActivity:"New activity in the conversation",newChat:"New chat",unavailableTitle:"This conversation isn't available",untitledChat:"New chat"},KB={chat:{sendFailed:"Something went wrong while sending your message.",stopFailed:"The response could not be stopped. Try again."},cited:{addedToChat:"Added to chat",copied:"Copied to clipboard",copyFailed:"Copy failed",linkCopied:"Link copied",pinFailed:"Failed to pin item",pinNeedsBoard:"Open a board or search to pin this item.",pinned:"Pinned",unpinFailed:"Failed to unpin item",unpinned:"Unpinned"},composer:{addImageFailed:"Failed to add image.",addPdfFailed:"Failed to add PDF.",maxAttachments:"You can attach up to {{max}} files per message.",partialAdd_one:"Only {{count}} file was added. You can attach up to {{max}} per message.",partialAdd_other:"Only {{count}} files were added. You can attach up to {{max}} per message.",unsupportedFile:"Please select an image, video, audio file, PDF, document, or spreadsheet.",voice:{noMicrophone:"No microphone detected. Please connect a microphone and try again.",noSpeech:"No speech detected. Please try again.",notSupported:"Voice input is not supported in this browser.",permissionDenied:"Microphone access denied. Please allow microphone access in your browser settings.",transcribeFailed:"Failed to transcribe audio. Please check your connection and try again.",unknown:"Something went wrong with voice input. Please try again."}},evidence:{addedToBoard:"Added to board",addedToNamedBoard:"Added to {{board}}",createBoardFailed:"Could not create the board.",keepAsBoardFailed:"Could not keep these as a board.",noBoardOpen:"Open a board to start adding items.",removedFromBoard:"Removed from board",removedFromNamedBoard:"Removed from {{board}}",savedButNotAdded:"Saved to Library, but could not add to this board.",updateBoardFailed:"Could not update your board.",updateBoardsFailed:"Could not update your boards."}},YB={cancelRecording:"Cancel recording",confirmRecording:"Confirm recording",preparingRecording:"Preparing recording",startInput:"Start voice input",transcribing:"Transcribing"},XB={attachment:$B,boardJobs:FB,cited:UB,composer:BB,evidence:jB,evidenceBoards:HB,message:zB,messageList:VB,pendingWork:qB,processing:WB,shell:GB,toast:KB,voice:YB},hse=Object.freeze(Object.defineProperty({__proto__:null,attachment:$B,boardJobs:FB,cited:UB,composer:BB,default:XB,evidence:jB,evidenceBoards:HB,message:zB,messageList:VB,pendingWork:qB,processing:WB,shell:GB,toast:KB,voice:YB},Symbol.toStringTag,{value:"Module"})),QB={save:"Save",cancel:"Cancel",confirm:"Confirm",delete:"Delete",remove:"Remove",retry:"Try again",close:"Close",back:"Back",next:"Next",done:"Done",edit:"Edit",copy:"Copy",search:"Search",open:"Open",undo:"Undo",notNow:"Not now",backToLibrary:"Back to Library",chooseFile:"Choose file",rename:"Rename",archive:"Archive",send:"Send",create:"Create",reload:"Reload"}
31,ZB={loading:"Loadingâ¦",saving:"Savingâ¦",saved:"Saved"},JB={library:"Library",boards:"Boards",inbox:"Inbox",jobs:"Jobs",memory:"Memory",chat:"Chat",settings:"Settings",menu:"Menu",openMenu:"Open menu",primaryLabel:"Primary",unread_one:"{{count}} unread",unread_other:"{{count}} unread"},ej={title:"Nothing here yet",description:"Save something and it shows up here."},tj={title:"Something went wrong",description:"Try again in a moment.",offline:"You're offline. Check your connection and try again."},nj={label:"Language",hint:"Changes the app's language. Prices stay in USD."},rj={free:"Free",pro:"Pro"},ij={eyebrow:"Error · 500",title:"A page slipped <accent>from the spine.</accent>",message:"Something went sideways while rendering this view. The rest of the app is still with you â try again, or step into another page from the sidebar.",reload:"Reload the page",metaRoute:"route",metaAt:"at",detailsSummary:"Diagnostic detail",detailsError:"Error",detailsStack:"Stack trace",detailsComponentStack:"Component stack",appEyebrow:"Application · 500",appTitle:"The shelves came <accent>undone.</accent>",appMessage:"Something broke beyond a single page. Reload to put everything back in its place â your work is safe."},sj={updateTitle:"Update ready",updateMessage:"A new version of dEssence is available. Reload to continue with the latest app.",updateAction:"Reload",title:"Application error",message:"Something went wrong while opening this page. Reload and try again."},oj={unavailableTitle:"This notification is no longer available",unavailableMessage:"The conversation may have been removed or belongs to a profile you can no longer access."},aj={unavailableTitle:"This link isn't available",unavailableMessage:"It may have been removed, or it may belong to another account or profile."},lj={expand:"Expand sidebar",pin:"Pin sidebar",unpin:"Unpin sidebar",pinAria:"Pin sidebar open",shelvesLabel:"All boards and searches",recentChats:"Recent chats",viewAll:"View all",emptyHeadline:"Your shelf is empty.",startChat:"Start a new chat",links:"Links",usefulLinks:"Useful links",apps:"Apps",sendFeedback:"Send Feedback",exampleTag:"Example",exampleAria:"Example board",renameAria:"Rename",renameActions:"Rename actions",savingAria:"Saving",rowActions:"Row actions",archivingAria:"Archiving"},cj={untitled:"Untitled"},uj={now:"now",minutes:"{{value}}m",hours:"{{value}}h",days:"{{value}}d",weeks:"{{value}}w",months:"{{value}}mo",years:"{{value}}y"},dj={menuAria:"Account menu",fallbackName:"Account",connectYoutube:"Connect YouTube",signOut:"Sign Out"},fj={switch:"Switch profile",count:"Workspaces<chip>{{total}}</chip>",defaultName:"Default",listAria:"Workspace profiles",renameItem:"Rename {{name}}",deleteItem:"Delete {{name}}",activeAria:"Active profile",deleteTitle:"Delete profile",deleteConfirm:'Delete "{{name}}" and all its data? This cannot be undone.',create:"Create workspace",createTitle:"Create New Profile",createPlaceholder:"Enter profile name",renameTitle:"Rename Profile",renamePlaceholder:"Enter new profile name"},hj={title:"Plan usage",messages:"Messages",itemsSaved:"Items saved",priceWatches:"Price watches",checksHourly:"Checks hourly",checksDaily:"Checks daily",checksHourlyReset:"Checks hourly · Daily limits reset in {{duration}}",checksDailyReset:"Checks daily · Daily limits reset in {{duration}}",durationHoursMinutes:"{{hours}}h {{minutes}}m",durationMinutes:"{{minutes}}m",manageBilling:"Manage billing",upgrade:"Upgrade to Pro"},pj={telegram:"Connect Telegram",telegramDone:"Telegram connected",imessage:"Connect iMessage",imessageDone:"iMessage connected",extension:"Get browser extension",extensionDone:"Extension installed"},gj={label:"Ways to use dEssence",subtitle:"Real ways people put their saved world to work."},mj={title:"How dEssence works",play:"Play: how dEssence works"},vj={title:"Send feedback",type:"Type",typeBug:"Bug",typeFeature:"Feature",typeImprovement:"Improvement",typeQuestion:"Question",message:"What's going on?",messageRequired:"Please describe your feedback",messageTooShort:"Please add a bit more detail (10+ chars)",messagePlaceholder:"Describe the issue, request, or question",email:"Your email",emailInvalid:"Please enter a valid email",urgency:"Urgency",urgencyLow:"Low",urgencyNormal:"Normal",urgencyHigh:"High",screenshot:"Screenshot (optional)",uploadHint:"Tip: close this dialog before taking a screenshot so it doesn't appear in the capture."},yj={file:"Drop files here",image:"Drop images here",link:"Drop link here",text:"Drop text here"},_j={alt:"User avatar"},bj={openConversation:"Open conversation",profileCreated:"Profile created successfully",profileCreateFailed:"Failed to create profile",profileRenamed:"Profile renamed successfully",profileRenameFailed:"Failed to rename profile",profileDeleted:"Profile deleted successfully",profileDeleteFailed:"Failed to delete profile",chatArchived:"Archived",chatArchiveFailed:"Failed to archive",chatRenamed:"Renamed",chatRenameFailed:"Could not rename",feedbackSent:"Thanks! Your feedback was sent.",feedbackFailed:"Could not send feedback. Please try again.",screenshotTooLarge:"Max screenshot size: {{size}}MB",linkSavedToLibraryAndBoard:"Saved to Library and Board.",linkSavedToLibrary:"Saved to Library.",linkSaveFailed:"Could not save this link. Please try again."},Ej={chatMessages:"You've hit today's daily chat message limit ({{limit}}/day). Resets {{resetsIn}}.",chatMessagesSoon:"You've hit today's daily chat message limit ({{limit}}/day). Resets shortly.",libraryItems:"You've hit today's daily library item limit ({{limit}}/day). Resets {{resetsIn}}.",libraryItemsSoon:"You've hit today's daily library item limit ({{limit}}/day). Resets shortly.",fallback:"You've hit today's usage limit. Please try again later."},Sj={justNow:"just now",minutes:"{{count}}m ago",hours:"{{count}}h ago",yesterday:"Yesterday",days_one:"{{count}}d ago",days_other:"{{count}}d ago",weeks_one:"{{count}}w ago",weeks_other:"{{count}}w ago",months_one:"{{count}}mo ago",months_other:"{{count}}mo ago",years_one:"{{count}}y ago",years_other:"{{count}}y ago"},wj={message:"Access to some content was denied. Automatic updates for that content have stopped.",retry:"Check access again"},Cj={action:QB,status:ZB,nav:JB,empty:ej,error:tj,language:nj,plan:rj,errorBoundary:ij,routeError:sj,notification:oj,destination:aj,sidebar:lj,chat:cj,relative:uj,account:dj,workspace:fj,usage:hj,connect:pj,waysToUse:gj,walkthrough:mj,feedback:vj,drop:yj,avatar:_j,toast:bj,rateLimit:Ej,time:Sj,accessDenied:wj},pse=Object.freeze(Object.defineProperty({__proto__:null,accessDenied:wj,account:dj,action:QB,avatar:_j,chat:cj,connect:pj,default:Cj,destination:aj,drop:yj,empty:ej,error:tj,errorBoundary:ij,feedback:vj,language:nj,nav:JB,notification:oj,plan:rj,rateLimit:Ej,relative:uj,routeError:sj,sidebar:lj,status:ZB,time:Sj,toast:bj,usage:hj,walkthrough:mj,waysToUse:gj,workspace:fj},Symbol.toStringTag,{value:"Module"})),xj={title:"Inbox",subtitle:"Agent job results and heartbeat updates",moreActions:"More inbox actions",loadFailed:"Failed to load inbox items.",emptyTitle:"No results yet",emptyDescription:"Agent job results and heartbeat updates will appear here."},Tj={markAllRead:"Mark all as read"},Rj={all:"All",unread:"Unread",allJobs:"All jobs",date:"Date",dateRange:"{{from}} â {{to}}",dateAria:"Filter Inbox by date",from:"From",to:"To",rangeInvalid:"From must be before To.",reset:"Reset",apply:"Show results"}
31,Aj={unreadBadge:"Unread",loadMore:"Load more",group:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},expandAria:"{{time}}. Expand {{title}}",collapseAria:"{{time}}. Collapse {{title}}"},Oj={stoppedAt:"Stopped {{date}}",completedAt:"Completed {{date}}",trigger:"via {{trigger}}",triggerSchedule:"via schedule",triggerManual:"via manual",viewJob:"View job",openConversation:"Open conversation",askAboutThis:"Ask about this"},Ij={completed:"completed",partial:"partial",failed:"failed"},Pj={page:xj,actions:Tj,filter:Rj,list:Aj,detail:Oj,outcome:Ij},gse=Object.freeze(Object.defineProperty({__proto__:null,actions:Tj,default:Pj,detail:Oj,filter:Rj,list:Aj,outcome:Ij,page:xj},Symbol.toStringTag,{value:"Module"})),Lj={title:"Integrations",subtitle:"Connect external services to import content into your library."},kj={disconnect:"Disconnect"},Mj={tagline:"Continue your Library chat in Messages",connected:"Connected to your Library chat",connect:"Connect iMessage",disconnect:{title:"Disconnect iMessage?",body:"Messages from this number will no longer reach your dEssence Library chat. Anything you already saved through it stays in your Library."}},Dj={tagline:"Import your Liked videos and playlists",connected:"Connected",connectedAs:"Connected as {{email}}",syncStatus:{idle:"Idle",importing:"Importing",error:"Error"},connectBody:"Connect your Google account to import the last 10 Liked videos and selected playlists. All imported videos are fully ingested and searchable â same as a manual save.",connect:"Connect YouTube",syncErrorTitle:"Sync error",reconnect:"Reconnect",lastSynced:"Last synced: {{date}}",includeLiked:"Include last 10 Liked videos",selectPlaylists:"Select playlists to import:",playlistsErrorTitle:"Couldn't load playlists",playlistsErrorBody:"There was a problem fetching your YouTube playlists.",noPlaylists:"No public playlists found",playlistVideoCount_one:"{{count}} video",playlistVideoCount_other:"{{count}} videos",saveAndImport:"Save & Import",resyncNow:"Resync now",disconnect:{title:"Disconnect YouTube?",body:"Your previously imported videos will remain in your Library, but no new videos will be synced. You can reconnect at any time."}},Nj={title:"Notifications",subtitle:"Price drops, reminders, ideas, and heartbeat updates can reach your phone.",telegramCopy:"Get alerts in the dEssence bot, and save links by forwarding them.",connectTelegram:"Connect Telegram",browserChannel:"This browser",browserCopy:"A push notification the moment a watched price drops.",enablePush:"Enable notifications",disablePush:"Disable notifications",iosTitle:"Add dEssence to your Home Screen first",iosBody:"On iPhone and iPad, Safari can only send notifications from an installed app. Tap Share, then âAdd to Home Screenâ, and enable notifications from there."},$j={error:{denied:"Your browser is blocking notifications for dEssence. Allow them in site settings, then try again.",dismissed:"The permission prompt was dismissed. Try again when you are ready.",unsupported:"This browser cannot deliver push notifications.",generic:"Could not enable browser notifications."}},Fj={savingTitle:"Saving to dEssenceâ¦",savedTitle:"Good find!",savedSubtitle:"It's in your dEssence.",queuedTitle:"Saved offline",queuedSubtitle:"We'll upload it when you're back online.",errorTitle:"Couldn't save",errorSubtitle:"Open dEssence to try again.",errorDetails:"Details",unknownError:"Unknown error"},Uj={youtubeConnected:"YouTube connected! Select what to import below.",youtubeConnectFailed:"Couldn't connect YouTube.",youtubeConnectFailedDetail:"Couldn't connect YouTube: {{detail}}",youtubeOauthStartFailed:"Couldn't start Google sign-in. Check that the integration is configured.",syncPreferencesSaved:"Sync preferences saved. Importing new videosâ¦",syncPreferencesFailed:"Failed to update sync preferences.",resyncStarted:"Resync triggered. New videos will appear shortly.",resyncFailed:"Failed to trigger resync.",youtubeDisconnected:"YouTube disconnected.",youtubeDisconnectFailed:"Failed to disconnect.",imessageDisconnected:"iMessage disconnected.",imessageDisconnectFailed:"Failed to disconnect iMessage.",pushEnabled:"Browser notifications are on â check the test notification.",pushDisabled:"Browser notifications are off.",pushDisableFailed:"Could not disable browser notifications."},Bj={page:Lj,action:kj,imessage:Mj,youtube:Dj,notifications:Nj,push:$j,share:Fj,toast:Uj},mse=Object.freeze(Object.defineProperty({__proto__:null,action:kj,default:Bj,imessage:Mj,notifications:Nj,page:Lj,push:$j,share:Fj,toast:Uj,youtube:Dj},Symbol.toStringTag,{value:"Module"}
31)),jj={close:"Close job copilot",composerLabel:"Message Job copilot",errorFailed:"Could not complete that job request.",errorFailedRetry:"Could not complete that job request. Your message was not lost; try again.",errorUnconfirmed:"Could not confirm that job request. Your message is still here.",loading:"Loading conversationâ¦",locked:"Save or discard form edits before using the copilot.",placeholder:"e.g. Check this watch daily and alert me at 60% off",prompt:"What would you like this job to do?",send:"Send",sending:"Sendingâ¦",subtitle:"Ask to change, run, pause, or research this job.",title:"Job copilot",valueNo:"No",valueNone:"None",valueYes:"Yes",working:"Workingâ¦"},Hj={backToJobs:"Back to jobs",board:"Board",configSummary:"{{schedule}} · {{limits}}",configuration:"Configuration",createAgain:"Create again",deleteBody:"â{{title}}â will stop permanently.",deleteTitle:"Delete this job?",lastOutcome:"{{outcome}} · {{when}}",lastRun:"Last run",lastRunValue:"{{when}} · {{outcome}}",limits:"Limits",loadFailed:"Couldnât load this job.",loading:"Loading jobâ¦",noBoard:"Not tied to a board",noNextRun:"No next run",noResults:"No results yet",pause:"Pause",rename:"Rename job",resume:"Resume",runNow:"Run now",runs:"Runs",saveChanges:"Save changes",schedule:"Schedule",starting:"Startingâ¦",titleLabel:"Job title"},zj={expiresLabel:"Expires at",maxRunsLabel:"Maximum runs",maxRuns_one:"Max {{count}} run",maxRuns_other:"Max {{count}} runs",none:"No limits",until:"Until {{date}}"},Vj={toggleActive:"Active: {{title}}"},qj={boardLabel:"Board (optional)",copyOf:"Copy of {{title}}",create:"Create job",creating:"Creatingâ¦",title:"New job",titleLabel:"What should happen?",titlePlaceholder:"e.g. Weekly news digest"},Wj={declined:"Nothing worth sending",error:"Couldnât check",reported:"Found something",resolved:"Done",silent:"No notification"},Gj={manual:"manual",showLess:"Show less",showMore:"Show more"},Kj={everyDays_one:"Every {{count}} day",everyDays_other:"Every {{count}} days",everyHours_one:"Every {{count}} hour",everyHours_other:"Every {{count}} hours",everyLabel:"Every",everyMinutes_one:"Every {{count}} minute",everyMinutes_other:"Every {{count}} minutes",everyWeeks_one:"Every {{count}} week",everyWeeks_other:"Every {{count}} weeks",firstRun:"First run",localTimezone:"your local timezone",nextRun:"Next {{when}}",once:"One-time",recurring:"Recurring",runAt:"Run at",typeLabel:"Schedule type",tzNoteOnce:"Times are in {{zone}}.",tzNoteRecurring:"Times are in {{zone}} · minimum cadence is {{minutes}} minutes.",tzNoteReminder:"Times are in {{zone}} · reminder jobs run once.",unitDays:"days",unitHours:"hours",unitMinutes:"minutes",unitWeeks:"weeks"},Yj={add:"Add",addRetailer:"Add retailer",addSize:"Add size",advancedTitle:"Product identifiers and attributes",alertsMore:"{{shown}} +{{more}}",alwaysUpdates:"Always updates",anySize:"Any size",attributeCount_one:"{{count}} attribute",attributeCount_other:"{{count}} attributes",attributePlaceholder:"Attribute",brandCount_one:"{{count}} brand",brandCount_other:"{{count}} brands",brandsHint:"Separate multiple brands with commas",categoriesHint:"Separate multiple categories with commas",categoryCount_one:"{{count}} category",categoryCount_other:"{{count}} categories",changeType:"Change job type",changeTypeBody:"The current {{current}} settings are cleared and replaced with an empty {{next}}.",changeTypeOk:"Change type",changeTypeTitle:"Change this job to {{type}}?",conditionAny:"Any condition",conditionNew:"New",conditionUsed:"Used",currencyPlaceholder:"e.g. USD",domainPlaceholder:"Domain, e.g. yoox.com",eventBackInStock:"Back in stock",eventDiscountIncreased:"Discount increased",eventNewOffer:"New offer",eventPriceDrop:"Price drop",eventSaleStarted:"Sale started",excludeHint:"Brands, terms, or products to ignore",excludedRetailers:"Excluded retailers",exclusionCount_one:"{{count}} excluded",exclusionCount_other:"{{count}} excluded",fieldBrand:"Brand",fieldBrands:"Brands",fieldCategories:"Categories",fieldCategory:"Category",fieldCompletion:"When is this task complete?",fieldCondition:"Condition",fieldCurrency:"Currency",fieldExclude:"Exclude",fieldGender:"Gender",fieldGtin:"GTIN",fieldInstructions:"Instructions",fieldLink:"Related link",fieldMatch:"Match",fieldMessage:"Message",fieldMessageLanguage:"Message language",fieldMinDiscount:"Minimum discount",fieldMinDrop:"Minimum price drop",fieldModel:"Model",fieldMpn:"MPN",fieldNothingNew:"When there is nothing new",fieldPriceMax:"Maximum price",fieldPriceMin:"Minimum price",fieldProductName:"Product name",fieldProductPage:"Product page",fieldRetailers:"Retailers",fieldSearchTerms:"Search terms",fieldSizes:"Sizes",fieldStopPolicy:"After an alert",fieldSummary:"Summary",fieldTelegramLimit:"Products in Telegram",fieldUpdates:"Updates",filtersDescription:"Leave optional filters blank to keep the search broad.",genderAny:"Any",genderMen:"Men",genderUnisex:"Unisex",genderWomen:"Women",keepMonitoring:"Keep monitoring",languageAr:"Arabic",languageAuto:"Auto",languageDe:"German",languageEn:"English",languageEs:"Spanish",languageFr:"French",languageIt:"Italian",languageJa:"Japanese",languageKo:"Korean",languagePt:"Portuguese",languageRu:"Russian",languageZh:"Chinese",matchExact:"One exact product",matchFamily:"A product family",matchLabel:"Product match",matchQuery:"A search",messageLanguageHint:"Auto follows the language remembered in your profile",minDiscountChip:"{{pct}}%+ off",minDropChip:"{{pct}}%+ drop",noAlerts:"No alerts",noFilters:"No filters",noneAdded:"None added",nothingNewHint:"Choose whether a completed scan should still send a compact status update",notifyWhen:"Notify me when",onSaleChip:"On sale",optional:"Optional",priceBetween:"{{min}}â{{max}}",priceBetweenWithCurrency:"{{currency}} {{min}}â{{max}}",priceFrom:"⥠{{min}}",priceFromWithCurrency:"⥠{{currency}} {{min}}",priceUpTo:"⤠{{max}}",priceUpToWithCurrency:"⤠{{currency}} {{max}}
31",productAttributes:"Product attributes",productCodePlaceholder:"Product code",productNamePlaceholder:"e.g. YOOX 10440780NQ",quietWhenIdle:"Quiet when idle",removeRetailer:"Remove retailer",removeRow:"Remove {{label}} row",removeSize:"Remove size",reportingEveryRun:"After every run",reportingWhenUseful:"Only when useful",retailerCodeCount_one:"{{count}} retailer code",retailerCodeCount_other:"{{count}} retailer codes",retailerCodes:"Retailer product codes",retailerCount_one:"{{count}} retailer",retailerCount_other:"{{count}} retailers",retailerDomainPlaceholder:"Retailer domain",retailerNamePlaceholder:"Name (optional)",retailerScopeLabel:"Retailer scope",runsUntilStopped:"Runs until stopped",saleOnly:"On sale only",saleOnlyHint:"Ignore full-price matches",scanUpdatesLabel:"Scan updates",searchTermsPlaceholder:"What should dEssence find?",sectionAlerts:"Alerts",sectionCompletion:"Completion & updates",sectionFilters:"Filters",sectionReminder:"Reminder",sectionSources:"Where to look",sectionTask:"Task",sectionWatch:"What to watch",selectedRetailers:"Selected retailers",sendUpdate:"Send an update",sizeApparel:"Apparel",sizeCount_one:"{{count}} size",sizeCount_other:"{{count}} sizes",sizeEu:"EU",sizeOther:"Other",sizePlaceholder:"Size",sizeUk:"UK",sizeUsShoe:"US shoe",sourcesAnywhere:"Anywhere",sourcesAnywhereExcept:"Anywhere except",sourcesExcept:"Anywhere except {{except}}",sourcesNone:"None selected yet",sourcesOnlySelected:"Only selected",stayQuiet:"Stay quiet",stopJob:"Stop this job",stopsAfterFirst:"Stops after first",summaryMore:"{{shown}} · +{{more}}",telegramLimitHint:"The full report stays available in dEssence",typeGeneric:"Agent task",typeLabel:"Job type",typeReminder:"Reminder",typeShopping:"Shopping watch",updatesEveryRun:"Updates every run",updatesWhenUseful:"Updates when useful",urlPlaceholder:"https://â¦",valuePlaceholder:"Value"},Xj={active:"Active",cancelled:"Cancelled",completed:"Completed",expired:"Expired",failed:"Failed",paused:"Paused",running:"Running",succeeded:"Succeeded"},Qj={createFailed:"Could not create the job.",created:"Job created",deleted:"Job deleted",paused:"Job paused",resumed:"Job resumed",saveFailed:"Could not save. Reload if this job was edited elsewhere.",saved:"Job saved",statusChangeFailed:"Could not change the job status."},Zj={composerSeed:"Create a job that ",filterActive:"Active",filterAttention:"Needs attention",filterEnded:"Ended",filtersLabel:"Filter jobs by status",loading:"Loading jobsâ¦",newJob:"New job",noMatch:"No jobs match",openChat:"Open chat",searchLabel:"Search jobs",searchPlaceholder:"Search jobsâ¦",untitledBoard:"Untitled board"},Jj={copilot:jj,detail:Hj,limits:zj,list:Vj,newJob:qj,outcome:Wj,runs:Gj,schedule:Kj,spec:Yj,status:Xj,toast:Qj,view:Zj},vse=Object.freeze(Object.defineProperty({__proto__:null,copilot:jj,default:Jj,detail:Hj,limits:zj,list:Vj,newJob:qj,outcome:Wj,runs:Gj,schedule:Kj,spec:Yj,status:Xj,toast:Qj,view:Zj},Symbol.toStringTag,{value:"Module"})),eH={importBookmarks:"Import bookmarks",pasteFromClipboard:"Paste from clipboard",pasteImage:"Paste image",uploadFiles:"Upload files"},tH={cardHint:"Supports files, links, images, documents",importBookmarks:"Import bookmarks",linkPlaceholder:"Paste a linkâ¦",modalTitle:"New item",newItem:"Add new item",or:"or",pasteFromClipboard:"Paste from clipboard",submit:"Add",uploadFile:"Upload a file"},nH={aria:"Selection history",backToLatest:"Back to Latest",heading:"Selection History",itemCount_one:"{{count}} item",itemCount_other:"{{count}} items",time:{days_one:"{{count}}d ago",days_other:"{{count}}d ago",hours_one:"{{count}}h ago",hours_other:"{{count}}h ago",justNow:"just now",minutes_one:"{{count}}m ago",minutes_other:"{{count}}m ago"}},rH={action:{addToChat:"Add to chat",download:"Download",pin:"Pin to board",unpin:"Unpin"},aria:"Bulk actions",confirmDelete:{content:"This will permanently remove the selected items from your library. This action cannot be undone.",title_one:"Delete {{count}} item?",title_other:"Delete {{count}} items?"},deselectAll:"Deselect all",disabled:{noFiles:"No downloadable files selected",processing:"Some selected items are still processing"},exit:"Exit selection",selectAll:"Select all",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected"}
31,iH={all:"All",filterAria:"Filter by type",show:"Show",sortAria:"Sort",sortBy:"Sort by"},sH={audioPlayback:"Audio playback",back:"Go back",captures:{originalList:"Original list",kind:"Kind",openPage:"Open captured page",page:"Page",rawPayload:"Raw captured metadata",savedTarget:"Saved target",target:"Target",title:"Capture history"},contexts:{title:"Contexts",unsure:"Unsure"},copyLink:"Copy link",delete:{confirmBody:"This will permanently remove the item from your library. This action cannot be undone.",confirmDescription:"This will permanently remove the item from your library.",confirmTitle:"Delete this item?"},deleteItem:"Delete item",downloadFile:"Download file",error:{heading:"Error",loadFailed:"Failed to load Library item",missingIds:"Missing user, profile, or item ID",notFound:"Item not found"},labels:{add:"Add label",addButton:"Add",count_one:"{{used}}/{{count}} label",count_other:"{{used}}/{{count}} labels",deleteNamed:"Delete label {{label}}",edit:"Edit label",title:"Labels"},matchPercent:"{{percent}}% match",matchReason:{both:"Labels and content",content:"Content",labels:"Labels"},metadata:{alsoKnownAs:"Also known as {{aliases}}",containsList:"Contains list",containsRecommendations:"Contains recommendations",hint:"Topics and details we detected automatically â used to find this later.",moreCount_one:"{{count}} more",moreCount_other:"{{count}} more",section:{activities:"Activities",brands:"Brands",creators:"Creators",dates:"Dates",entities:"Entities",places:"Places",styles:"Styles",topics:"Topics",useCases:"Use Cases"},title:"How we read this"},offer:{sizesInStock:"{{sizes}} in stock",stale:"may be outdated",staleAria:"Verified a while ago â may be outdated",viewSource:"View source"},openFile:"Open file",openLink:"Open link",originalLink:"Original link",originalText:{aria:"Edit original text",empty:"No original text yet. Click to add it.",hint:"Click to edit. Saving regenerates title and summary.",label:"Original text",placeholder:"Write the exact text you want to keep with this item.",s
31ave:"Save original text"},processingNote:"Processing note",purchase:{availableSizes:"Available sizes: {{sizes}}",discountOff:"{{percent}}% off",mayBeOutdated:"May be outdated",openMatch:"Open {{title}}"},reminder:{due:"Due",link:"Link",removeLink:"Remove linked item",save:"Save reminder",savedItem:"Saved item",title:"Reminder",topic:"Topic",urlPlaceholder:"https://..."},restarting:"Restartingâ¦",similarOptions:"Similar options",status:{needsAttention:"Needs attention",processing:"Processing"},summary:{aria:"Edit item summary",empty:"No summary yet. Click to add one.",generatedLabel:"Generated summary",hint:"Click to edit. Press Cmd/Ctrl + Enter to save.",label:"Summary",placeholder:"Write the summary you want to keep with this item.",save:"Save summary"},time:{daysAgo_one:"{{count}}d ago",daysAgo_other:"{{count}}d ago",hoursAgo_one:"{{count}}h ago",hoursAgo_other:"{{count}}h ago",justNow:"just now",minutesAgo_one:"{{count}}m ago",minutesAgo_other:"{{count}}m ago"},todo:{applyDraft:"Apply my changes to the latest list",addItem:"Add item",delete:"Delete todo",itemPlaceholder:"Todo item",save:"Save list",title:"Todo list",titleField:"Title",titlePlaceholder:"Todo list",toggle:"Toggle todo"},whereToBuy:"Where to buy",whyMatched:"Why it matched"},oH={dropping:"Drop files, text, or links here to save.",idle:"Drag files, text, or links here to save.",success:"Successfully added!",uploading:"Adding to library..."},aH={bandAriaLabel:"Example items",count_one:"{{count}} example",count_other:"{{count}} examples",removeAction:"Remove examples",removeConfirm_one:"Remove {{count}} example?",removeConfirm_other:"Remove {{count}} examples?",removeCount_one:"Remove {{count}} example",removeCount_other:"Remove {{count}} examples",removing:"Removingâ¦"},lH={kind:{audio:"Audio",doc:"Doc",file:"File",image:"Image",link:"Link",note:"Note",pdf:"PDF",sheet:"Sheet",video:"Video",watched:"Watched"},refresh:"Refresh",sort:{oldest:"Oldest",recent:"Recent",title:"Title",type:"Type"}},cH={backToBoards:"Back to Boards",backToLibrary:"Back to Library",backToRecentChats:"Back to Recent chats",boardAria:"Board: {{title}}",boardFallback:"Board",boardSubtitle:"A slice of your Library.",breadcrumbAria:"Breadcrumb",itemsCount_one:"{{count}} item",itemsCount_other:"{{count}} items",newChatFallback:"New chat",recentChats:"Recent chats",rename:"Rename",renameAria:"Rename {{title}}",searchAria:"Chat: {{title}}",searchSubtitle:"Search on your whole Library.",subtitle:"Everything you save lives here, so you can find it later and ask questions across your links, files, notes, and messages.",title:"Your Library"},uH={collapseAriaLabel:"Collapse save options",connectTelegram:"Connect Telegram",dropCue:"or drag & drop",expandAriaLabel:"Expand save options",extensionInstalled:"Extension installed",extensionInstalledAriaLabel:"Browser extension installed â open settings",getExtension:"Get browser extension",installApp:"Install app",paste:"Paste",pasteFromClipboard:"Paste from clipboard",regionAriaLabel:"Save to your Library",saveFromAnywhere:"Save from anywhere",statusDrop:"Drop to save",statusUploading:"Uploadingâ¦",telegramConnected:"Telegram connected",telegramConnectedAriaLabel:"Telegram connected â open settings",upload:"Upload"},dH={age:{days_one:"{{count}}d ago",days_other:"{{count}}d ago",hours_one:"{{count}}h ago",hours_other:"{{count}}h ago",justNow:"just now",minutes_one:"{{count}}m ago",minutes_other:"{{count}}m ago",months_one:"{{count}}mo ago",months_other:"{{count}}mo ago",weeks_one:"{{count}}w ago",weeks_other:"{{count}}w ago",years_one:"{{count}}y ago",years_other:"{{count}}y ago"},aria:{actions:"Item actions",card:"Library item: {{kind}} {{text}}",select:"Select {{title}}"},delete:{body:"This will permanently remove the item from your library. This action cannot be undone.",title:"Delete this item?"},discountOff:"{{percent}} off",kind:{fallback:"Saved item",text:"Note"},linkedItem:"Linked item",menu:{addToChat:"Add to chat",copyLink:"Copy link",download:"Download",pin:"Pin to this board",select:"Select",unpin:"Unpin from this board"},moreCount_one:"+{{count}}",moreCount_other:"+{{count}}",offer:{proofAria:"View verified offer",sizesInStock:"{{sizes}} in stock",source:"Source",stale:"may be outdated",staleAria:"Verified a while ago â may be outdated"},optimistic:{fileProcessing:"Processing saved file",imageUploading:"Image upload in progress",savingLink:"Saving link",savingNote:"Saving note"},pdfDocument:"PDF document",pinned:"Pinned",priceWatched:"Price watched",purchase:{similarOptions:"Similar options",whereToBuy:"Where to buy"},restarting:"Restartingâ¦",retryAria:"Try processing this item again",savedReceipt:"saved {{age}}",savedVia:{extension:"via extension",telegram:"via Telegram"},selection:{},similarity:{both:"L+C",content:"C",labels:"L"},status:{needsAttention:"Needs attention",processing:"Processing"},todoMore_one:"+{{count}} more",todoMore_other:"+{{count}} more",uploading:"Uploading"},fH={aria:{grid:"Saved library items",selectMode:"Select items"},loadMore:"Load more",loadingMore:"Loading moreâ¦"},hH={availability:{inStock:"In stock",outOfStock:"Out of stock",preorder:"Preorder"},boardEmpty:{hint:"Drop files, paste links, or pin items from the Context tab to start assembling this board.",title:"This board is empty"},cited:{hide:"Hide cited in the response",itemsAria:"Cited items",show:"Show cited in the response",showAction:"Show",title:"Cited in the response"},closeDrawer:"Close library drawer",currentContextFallback:"Current Library",dropLabel:{addOrConfirm:"Add or confirm in current library",remove:"Remove from current library"},dropTargetAria:"{{title}} drop target",dropToBoard:"Drop to add to this board",filterCollectionAria:"Filter collection by type",filterLibraryAria:"Filter library by type",itemsCount_one:"{{count}} item",itemsCount_other:"{{count}} items",kind:{audio:"Audio",document:"Document",image:"Image",pdf:"PDF",reminder:"Reminder",spreadsheet:"Spreadsheet",text:"Text note",todoList:"Todo list",url:"Link",video:"Video"},match:{exact:"Exact match",exactShort:"Exact",similar:"Similar option",similarShort:"Similar"},merchantFallback:"Merchant",mightBelongHere:"Might belong here",newItem:"New item",noOtherSavedItems:"No other saved items",openItem:"Open {{title}}",resizeDrawer:"Resize library drawer",savedItemsCount_one:"{{count}} saved item",savedItemsCount_other:"{{count}} saved items",shelf:{more:"More from your library",morePhone:"More items"},sortCollectionAria:"Sort collection",sortLibraryAria:"Sort library",untitled:"Untitled",uploadArea:"Library upload area"},pH={added:"Added to <boards/>",addedTitled:'"{{title}}" · Added to <boards/>',mayBelong:"May belong to <boards/>",mayBelongTitled:'"{{title}}" · May belong to <boards/>
31',overflow_one:"+{{count}} more",overflow_other:"+{{count}} more"},gH={hintEmpty:"Touch & hold the box below, tap <b>Paste</b>, then tap <b>Save</b>.",hintReview:"Review the text, then tap <b>Save</b>.",placeholder:"Paste hereâ¦",title:"Paste from clipboard"},mH={dismiss:"Dismiss",duplicate:"Already saved. {{title}}",saved:"Saved: {{title}}"},vH={inBoard_one:"{{count}} in this board",inBoard_other:"{{count}} in this board",savedItems_one:"{{count}} saved item",savedItems_other:"{{count}} saved items",thisBoard:"This board"},yH={closeItem:"Close item",exampleBadge:"Example",merchantFallback:"Store",openLink:"Open Link",verifiedOffer:"Verified offer",verifiedSource:"Verified source",watchThis:"Watch this"},_H={addAction:"Add Text or Link",addAsLink:"Add as Link",addAsText:"Add as Text",adding:"Adding...",placeholder:"Type text or paste a URL... (Ctrl+Enter to add, Esc to cancel)",submit:"Add"},bH={actionsAriaLabel:"Title edit actions",cancelAriaLabel:"Cancel title edit",inputAriaLabel:"Title",saveAriaLabel:"Save title"},EH={detail:{copied:"Copied to clipboard",copyFailed:"Failed to copy",deleteFailed:"Failed to delete item",deleted:"Item deleted",feedbackFailed:"Could not update this preference. Please try again.",checklistConflict:"This checklist changed elsewhere. Your draft is kept; review the latest checklist before applying your changes.",itemUpdateFailed:"Failed to update item",itemUpdated:"Item updated",labelsUpdateFailed:"Failed to update labels",labelsUpdated:"Labels updated",linkCopied:"Link copied",linkSaveFailed:"Could not save this link. Please try again.",linkSaved:"Saved to Library.",originalTextEmpty:"Original text cannot be empty.",originalTextUpdateFailed:"Failed to update original text",originalTextUpdated:"Original text updated. Title and summary regenerated.",reminderIncomplete:"Reminder needs text and due time.",summaryEmpty:"Summary cannot be empty.",summaryUpdateFailed:"Failed to update summary",summaryUpdated:"Summary updated",todoEmpty:"Todo list needs at least one item."},examples:{removeFailed:"Could not remove the examples. Please try again."},import:{result:"Imported {{accepted}} · {{duplicates}} duplicates · {{failed}} failed"},input:{addLinkFailed:"Failed to add link. Please try again.",addTextFailed:"Failed to add text. Please try again.",boardAddFailed:"Could not add this item to the board.",dropImageAddFailed:"Failed to add image from chat message.",dropImageLoadFailed:"Failed to load image.",dropImageUnreadable:"Unable to read dropped image data.",dropImageUrlUnresolved:"Unable to resolve dropped image URL.",dropNotImage:"The dropped content is not a valid image.",invalidLink:"Invalid link URL.",sessionUnavailable:"User session not available. Please reload the page."},item:{copied:"Copied to clipboard",copyFailed:"Copy failed",deleteFailed:"Failed to delete item. Please try again.",deleted:"Item deleted.",linkCopied:"Link copied",originalTextUpdated:"Original text updated. Title and summary regenerated.",reprocessFailed:"Could not restart processing",reprocessStarted:"Processing restarted",updateFailed:"Failed to update item. Please try again.",updated:"Item updated successfully."},items:{deleteFailed:"Failed to delete items. Please try again.",deleteFailedCount_one:"Failed to delete {{count}} item.",deleteFailedCount_other:"Failed to delete {{count}} items.",deletePartial_one:"{{count}} deleted, {{failed}} failed. Please try the rest again.",deletePartial_other:"{{count}} deleted, {{failed}} failed. Please try the rest again.",deleted_one:"{{count}} item deleted.",deleted_other:"{{count}} items deleted."},list:{addedToChat_one:"{{count}} added to chat",addedToChat_other:"{{count}} added to chat",attachFailed:"Could not attach items",attached:"Attached",attachedToBoard:"Attached to board",clipboardDenied:"Browser blocked the clipboard read. Press Ctrl+V to paste instead.",clipboardEmpty:"Nothing to paste â copy something first.",clipboardUnsupported:"Your browser does not support paste from clipboard. Press Ctrl+V instead.",confirmed:"Confirmed",downloadingPartial:"Downloading {{files}} of {{total}} selected â the rest have no file to download.",downloading_one:"Downloading {{count}} file",downloading_other:"Downloading {{count}} files",removeFailed:"Could not remove items",removed:"Removed",removedFromBoard:"Removed from board",renameFailed:"Could not save",renamed:"Renamed",savedButNotAttached:"Saved to Library, but could not attach to the current context.",unsupportedFile:"Please select an image, video, audio file, PDF, document, or spreadsheet.",updateFailed:"Could not update"},upload:{failed:"Failed to upload files. Please try again.",pageFailed:"Failed to upload files",pageUploaded_one:"Item uploaded successfully!",pageUploaded_other:"Uploaded {{count}} items successfully!",pageUploading:"Uploading filesâ¦",partial_one:"Uploaded {{count}} file, {{failed}} failed.",partial_other:"Uploaded {{count}} files, {{failed}} failed."}
31,watch:{limitReached:"Every watch slot in your plan is already in use",started:"Price watch started",stopFailed:"Could not stop this price watch",stopped:"Price watch stopped",targetUpdated:"Price target updated",updateFailed:"Could not update this price watch"}},SH={clearAll:"Clear all",helperText:"Original files will be saved with generated title and summary.",itemsReady_one:"{{count}} item ready",itemsReady_other:"{{count}} items ready",kindAudio_one:"{{count}} audio file",kindAudio_other:"{{count}} audio files",kindDocument_one:"{{count}} document",kindDocument_other:"{{count}} documents",kindImage_one:"{{count}} image",kindImage_other:"{{count}} images",kindLink_one:"{{count}} link",kindLink_other:"{{count}} links",kindPdf_one:"{{count}} PDF",kindPdf_other:"{{count}} PDFs",kindReminder_one:"{{count}} reminder",kindReminder_other:"{{count}} reminders",kindSpreadsheet_one:"{{count}} spreadsheet",kindSpreadsheet_other:"{{count}} spreadsheets",kindText_one:"{{count}} text note",kindText_other:"{{count}} text notes",kindTodoList_one:"{{count}} todo list",kindTodoList_other:"{{count}} todo lists",kindVideo_one:"{{count}} video",kindVideo_other:"{{count}} videos",removeFileAriaLabel:"Remove {{fileName}}",saveCount_one:"Save {{count}} item",saveCount_other:"Save {{count}} items"},wH={aria:{currency:"Target currency",minDiscount:"Minimum discount percent",start:"Start price watch",stop:"Stop price watch"},field:{minDiscount:"Minimum discount",percentOff:"% off"},mode:{discount:"Discount",meaningfulDrop:"Real drop",targetPrice:"Target price"},quota_one:"{{used}} of {{count}} watch in use",quota_other:"{{used}} of {{count}} watches in use",status:{dailyChecks:"Daily checks",hourlyChecks:"Hourly checks",inactive:"Not watched",planLimited:"Paused by plan limit"},title:"Price watch",updateButton:"Update alert",upgradeHourly:"Upgrade for hourly checks"},CH={actionsBar:eH,add:tH,breadcrumbs:nH,bulk:rH,controls:iH,detail:sH,dropzone:oH,examples:aH,filters:lH,header:cH,import:{browsersHint:"Works with the standard Netscape bookmarks HTML export format used by major browsers.",dropzoneHint:"Up to {{megabytes}} MB · up to {{limit}} links",dropzoneTitle:"Drop your bookmarks HTML here, or click to choose",errorFailed:"Import failed. Please try again or check the file.",errorNoLinks:"We couldnât find any supported links in this file.",errorTooLarge:"File is larger than {{megabytes}} MB. Split the export into smaller files.",errorTooManyLinks:"Found {{found}} links. The limit is {{limit}} per import â please split the file.",errorUnreadable:"Couldnât read the file. Make sure itâs a valid bookmarks HTML export.",errorWrongType:"Please choose the HTML file your browser exported.",instructionsHeading:"How to export your bookmarks",previewFolders_one:"{{count}} folder detected",previewFolders_other:"{{count}} folders detected",previewLinks_one:"Found {{count}} link",previewLinks_other:"Found {{count}} links",step1:"Open your browser's bookmarks manager (Chrome, Firefox, Safari, Edge, Opera, Arc, or any Chromium-based browser).",step2:"In that manager's menu, choose the option to export your bookmarks (usually behind the menu button).",step3:"Save the exported HTML file to your computer, then drag and drop it here to import.",submit:"Import",title:"Import bookmarks",uploadingHint:"Sending links for processing. Cards will appear in your Library as theyâre ready."},island:uH,item:dH,items:fH,list:hH,membership:pH,paste:gH,savedToast:mH,sheet:vH,surface:yH,textInput:_H,titleEditor:bH,toast:EH,upload:SH,watch:wH},yse=Object.freeze(Object.defineProperty({__proto__:null,actionsBar:eH,add:tH,breadcrumbs:nH,bulk:rH,controls:iH,default:CH,detail:sH,dropzone:oH,examples:aH,filters:lH,header:cH,island:uH,item:dH,items:fH,list:hH,membership:pH,paste:gH,savedToast:mH,sheet:vH,surface:yH,textInput:_H,titleEditor:bH,toast:EH,upload:SH,watch:wH},Symbol.toStringTag,{value:"Module"})),xH={title:"Account",nameLabel:"Name",namePlaceholder:"Add your name",nameHint:"Shown on the account button in the bottom-left corner.",emailLabel:"Email",emailVerified:"Verified",verifyEmail:"Verify your email"},TH={title:"Preferences",similarityTitle:"Show Similarity Scores",similarityDescription:"Display similarity percentages on Library items when viewing active library context"},RH={title:"Linked Telegram Accounts",accountId:"ID: {{id}}",unlink:"Unlink"},AH={title:"Plan & billing",loading:"Loading your planâ¦",loadError:"We couldn't load your billing details. Please try again later.",proName:"dEssence Pro",freeName:"Free plan",renewsOn:"Renews on {{date}}.",cancelsOn:"Cancels on {{date}}.",cancelsAtPeriodEnd:"Cancels at the end of the current period.",pastDueUntil:"There's a payment issue â Pro stays active until {{date}}.",pastDue:"There's a payment issue with your subscription.",freeIncludes:"Free includes {{chats}} chats, {{saves}} saves, and {{watches}} daily price watches.",proIncludes:"Pro includes {{chats}} chats, {{saves}} saves, and {{watches}} hourly price watches.",manageBilling:"Manage billing",upgradeMonthly:"Upgrade â {{price}}/mo",yearlyPrice:"{{price}}/yr"},OH={title:"Sign out",description:"Sign out of dEssence on this device."},IH={title:"Delete account",description:"Request a confirmation email before permanently deleting your account and all data.",emailSent:"Email sent",confirmTitle:"Delete your account?",confirmIntro:"We'll email a confirmation link to <email>{{email}}</email>. Opening it brings you to a confirmation page; only after you confirm there will we permanently delete:",yourEmail:"your email",itemProfile:"Your profile, memory, and traits",itemProjects:"All Projects, Searches, library items, and uploaded files",itemChats:"Chats, messages, and saved recommendations",itemLinked:"Linked Telegram accounts and browser extensions",confirmOk:"Send confirmation email",confirmCancel:"Keep my account"},PH={regionLabel:"Timezone suggestion",title:"Set your timezone?",copy:"Reminders and times will use <zone>{{timezone}}</zone> â the timezone this device is on. You can change it later in settings.",use:"Use {{timezone}}"},LH={title:"Add dEssence to your Home Screen",subtitle:"Open dEssence like an app for faster saving, asking, and access to your library.",done:"Got it",iosRegion:"iPhone and iPad instructions",iosHeading:"iPhone & iPad â Safari",androidRegion:"Android instructions",androidHeading:"Android â Chrome",ios:{step1:"Open dEssence in Safari.",step2:"Tap the Share icon.",step3:"Choose Add to Home Screen.",step4:"Tap Add."},android:{step1:"Open dEssence in Chrome.",step2:"Tap the three-dot menu.",step3:"Choose Add to Home screen or Install app.",step4:"Confirm Add / Install."}},kH={regionLabel:"Notification permission",title:"Never miss an update",description:"Get price drops and reminders, even when dEssence is closed.",enable:"Turn on notifications",enabling:"Turning onâ¦",dismiss:"Dismiss",close:"Close notification request",errorBlocked:"Notifications are blocked. Allow them in your browser settings, then try again.",errorDism
31issed:"The permission request was dismissed. Tap the button when you are ready.",errorGeneric:"Could not turn on notifications. Check your connection and try again."},MH={regionLabel:"Tracking consent",eyebrow:"Privacy",title:"Help improve dEssence",copy:"Privacy-protected session analytics helps us keep dEssence reliable. Accept analytics cookies to let us recognize return visits. See our <privacy>Privacy Policy</privacy>.",accept:"Accept analytics cookies",reject:"Continue without analytics cookies"},DH={nameUpdated:"Name updated",nameUpdateFailed:"Failed to update name",verificationSent:"Verification email sent. Check your inbox.",verificationFailed:"Failed to send verification email. Try again later.",languageNotSynced:"Language changed on this device, but we could not save it to your account.",telegramUnlinked:"Telegram account unlinked",telegramUnlinkFailed:"Failed to unlink Telegram account",deletionEmailSent:"Confirmation email sent. Check your inbox to finish deleting your account.",deletionEmailFailed:"Failed to send the confirmation email. Try again later.",timezoneUpdateFailed:"Failed to update timezone. Please try again."},NH={account:xH,preferences:TH,telegram:RH,plan:AH,signOut:OH,deleteAccount:IH,timezone:PH,installPwa:LH,push:kH,consent:MH,toast:DH},_se=Object.freeze(Object.defineProperty({__proto__:null,account:xH,consent:MH,default:NH,deleteAccount:IH,installPwa:LH,plan:AH,preferences:TH,push:kH,signOut:OH,telegram:RH,timezone:PH,toast:DH},Symbol.toStringTag,{value:"Module"})),$H={kicker:"Shopping scan",freshMatches_one:"{{count}} fresh match",freshMatches_other:"{{count}} fresh matches",noMatches:"No new matches",countEvidenced_one:"{{count}} evidenced",countEvidenced_other:"{{count}} evidenced",countAlreadyReported_one:"{{count}} already reported",countAlreadyReported_other:"{{count}} already reported",countPartialSources_one:"{{count}} partial source",countPartialSources_other:"{{count}} partial sources",countUnavailableSources_one:"{{count}} unavailable source",countUnavailableSources_other:"{{count}} unavailable sources",countInspected_one:"{{count}} inspected",countInspected_other:"{{count}} inspected",countQualified_one:"{{count}} qualified",countQualified_other:"{{count}} qualified",countExcluded_one:"{{count}} excluded product",countExcluded_other:"{{count}} excluded products",filterSource:"Source",filterBrand:"Brand",filterCategory:"Category",filterAll:"All",sortLabel:"Sort",sortDiscount:"Discount",sortPriceAsc:"Price low",sortPriceDesc:"Price high",sortBrand:"Brand",showDisliked_one:"Show disliked ({{count}})",showDisliked_other:"Show disliked ({{count}})",emptyFiltered:"No visible matches for these filters.",paginationLabel:"Shopping result pages",pageRange:"Showing {{from}}â{{to}} of {{total}}",previousPage:"Previous page",nextPage:"Next page",pageIndicator:"Page {{current}} of {{total}}",rejectedHeading:"Listings checked",noQualifyingChange:"No qualifying change detected",statusCompleted:"Completed",statusPartial:"Partially completed",statusSkipped:"Skipped",openItem:"Open {{title}}",openItemImage:"Open {{title}} image",unbranded:"Unbranded",priceVerified:"Price verified",sizesList:"sizes {{sizes}}",availableSizes:"Available sizes {{sizes}}",sku:"SKU {{id}}",wasPrice:"was {{price}}",percentOff:"{{percent}} off",rejectionExcluded:"Excluded: {{retailer}}",rejectionAboveMaxPrice:"Above maximum price",rejectionBelowMinPrice:"Below minimum price",rejectionExcludedRetailer:"Excluded retailer",rejectionInsufficientDiscount:"Discount too small",rejectionMissingCurrencyEvidence:"Currency unconfirmed",rejectionMissingDiscountEvidence:"Discount unconfirmed",rejectionMissingEvidence:"Offer unverified",rejectionMissingPriceEvidence:"Price unconfirmed",rejectionMissingRequiredSize:"Requested size unavailable",rejectionMissingSizeEvidence:"Size availability unconfirmed",rejectionNotPurchasable:"Not purchasable",rejectionNotVisible:"Not visible",rejectionProductIdentityMismatch:"Different product",rejectionSaleRequired:"Not on sale",rejectionUsedConditionUnconfirmed:"Used condition unconfirmed",rejectionUsedOrPreowned:"Pre-owned",rejectionWrongCurrency:"Wrong currency",rejectionWrongGender:"Wrong department",verificationIncomplete:"Verification incomplete",countUnconfirmed:"{{count}} unconfirmed or excluded",rejectionMissingConditionEvidence:"Condition unconfirmed",rejectionMissingBrandEvidence:"Brand unconfirmed",rejectionMissingIdentityEvidence:"Product identity unconfirmed"},FH={like:"Like this result",removeLike:"Remove like",dislike:"Dislike this result",removeDislike:"Remove dislike",save:"Save to Library",saving:"Saving to Library",saved:"Saved to Library"},UH={report:$H,actions:FH},bse=Object.freeze(Object.defineProperty({__proto__:null,actions:FH,default:UH,report:$H},Symbol.toStringTag,{value:"Module"})),BH=["common","auth","chat","agent","library","jobs","inbox","boards","settings","billing","shopping","integrations"],Ese="common",Sse={common:Cj,auth:wB,chat:XB,agent:lB,library:CH,jobs:Jj,inbox:Pj,boards:NB,settings:NH,billing:TB,shopping:UH,integrations:Bj},D4e=xx.map(t=>({value:t.key,label:t.endonym})),Ot=t=>typeof t=="string",l_=()=>{let t,e;const n=new Promise((r,i)=>{t=r,e=i});return n.resolve=t,n.reject=e,n},mD=t=>t==null?"":String(t),wse=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},Cse=/###/g,vD=t=>t&&t.includes("###")?t.replace(Cse,"."):t,yD=t=>!t||Ot(t),t1=(t,e,n)=>{const r=Ot(e)?e.split("."):e;let i=0;for(;i<r.length-1;){if(yD(t))return{};const s=vD(r[i]);!t[s]&&n&&(t[s]=new n),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={},++i}return yD(t)?{}:{obj:t,k:vD(r[i])}},_D=(t,e,n)=>{const{obj:r,k:i}=t1(t,e,Object);if(r!==void 0||e.length===1){r[i]=n;return}let s=e[e.length-1],a=e.slice(0,e.length-1),c=t1(t,a,Object);for(;c.obj===void 0&&a.length;)s=`${a[a.length-1]}.${s}`,a=a.slice(0,a.length-1),c=t1(t,a,Object),c?.obj&&typeof c.obj[`${c.k}.${s}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${s}`]=n},xse=(t,e,n,r)=>{const{obj:i,k:s}=t1(t,e,Object);i[s]=i[s]||[],i[s].push(n)},CC=(t,e)=>{const{obj:n,k:r}=t1(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Tse=(t,e,n)=>{const r=CC(t,n);return r!==void 0?r:CC(e,n)},jH=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(Object.prototype.hasOwnProperty.call(t,r)?Ot(t[r])||t[r]instanceof String||Ot(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):jH(t[r],e[r],n):t[r]=e[r]);return t},lu=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Rse={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Ase=t=>Ot(t)?t.replace(/[&<>
31"'\/]/g,e=>Rse[e]):t;class Ose{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const 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}}const Ise=[" ",",","?","!",";"],Pse=new Ose(20),Lse=(t,e,n)=>{e=e||"",n=n||"";const r=Ise.filter(a=>!e.includes(a)&&!n.includes(a));if(r.length===0)return!0;const i=Pse.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let s=!i.test(t);if(!s){const a=t.indexOf(n);a>0&&!i.test(t.substring(0,a))&&(s=!0)}return s},HO=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let i=t;for(let s=0;s<r.length;){if(!i||typeof i!="object")return;let a,c="";for(let u=s;u<r.length;++u)if(u!==s&&(c+=n),c+=r[u],a=i[c],a!==void 0){if(["string","number","boolean"].includes(typeof a)&&u<r.length-1)continue;s+=u-s+1;break}i=a}return i},k1=t=>t?.replace(/_/g,"-"),kse={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};let Mse=class zO{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||kse,this.options=n,this.debug=n.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,n,r,i){return i&&!this.debug?null:(e=e.map(s=>Ot(s)?s.replace(/[\r\n\x00-\x1F\x7F]/g," "):s),Ot(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new zO(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new zO(this.logger,e)}};var vc=new Mse;class Tx{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}once(e,n){const r=(...i)=>{n(...i),this.off(e,r)};return this.on(e,r),this}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([i,s])=>{for(let a=0;a<s;a++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,s])=>{for(let a=0;a<s;a++)i(e,...n)})}}class bD extends Tx{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r,i={}){const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;e.includes(".")?c=e.split("."):(c=[e,n],r&&(Array.isArray(r)?c.push(...r):Ot(r)&&s?c.push(...r.split(s)):c.push(r)));const u=CC(this.data,c);return!u&&!n&&!r&&e.includes(".")&&(e=c[0],n=c[1],r=c.slice(2).join(".")),u||!a||!Ot(r)?u:HO(this.data?.[e]?.[n],r,s)}addResource(e,n,r,i,s={silent:!1}){const a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let c=[e,n];r&&(c=c.concat(a?r.split(a):r)),e.includes(".")&&(c=e.split("."),i=n,n=c[1]),this.addNamespaces(n),_D(this.data,c,i),s.silent||this.emit("added",e,n,r,i)}addResources(e,n,r,i={silent:!1}){for(const s in r)(Ot(r[s])||Array.isArray(r[s]))&&this.addResource(e,n,s,r[s],{silent:!0});i.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,i,s,a={silent:!1,skipCopy:!1}){let c=[e,n];e.includes(".")&&(c=e.split("."),i=r,r=n,n=c[1]),this.addNamespaces(n);let u=CC(this.data,c)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?jH(u,r,s):u={...u,...r}
31,_D(this.data,c,u),a.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var HH={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,i){return t.forEach(s=>{e=this.processors[s]?.process(e,n,r,i)??e}),e}};const zH=Symbol("i18next/PATH_KEY");function Dse(){const t=[],e=Object.create(null);let n;return e.get=(r,i)=>(n?.revoke?.(),i===zH?t:(t.push(i),n=Proxy.revocable(r,e),n.proxy)),Proxy.revocable(Object.create(null),e).proxy}function ip(t,e){const{[zH]:n}=t(Dse()),r=e?.keySeparator??".",i=e?.nsSeparator??":",s=e?.enableSelector==="strict";if(n.length>1&&i){const a=e?.ns,c=s?Array.isArray(a)?a:a?[a]:null:Array.isArray(a)?a:null;if(c&&(s?c:c.length>1?c.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}const fR=t=>!Ot(t)&&typeof t!="boolean"&&typeof t!="number";class xC extends Tx{constructor(e,n={}){super(),wse(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
31i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=vc.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const r={...n};if(e==null)return!1;const i=this.resolve(e,r);if(i?.res===void 0)return!1;const s=fR(i.res);return!(r.returnObjects===!1&&s)}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const a=r&&e.includes(r),c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Lse(e,r,i);if(a&&!c){const u=e.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:e,namespaces:Ot(s)?[s]:s};const h=e.split(r);(r!==i||r===i&&this.options.ns.includes(h[0]))&&(s=h.shift()),e=h.join(i)}return{key:e,namespaces:Ot(s)?[s]:s}}translate(e,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),e==null)return"";typeof e=="function"&&(e=ip(e,{...this.options,...i})),Array.isArray(e)||(e=[String(e)]),e=e.map(Z=>typeof Z=="function"?ip(Z,{...this.options,...i}):String(Z));const s=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:c,namespaces:u}=this.extractFromKey(e[e.length-1],i),h=u[u.length-1];let p=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;p===void 0&&(p=":");const v=i.lng||this.language,y=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v?.toLowerCase()==="cimode")return y?s?{res:`${h}${p}${c}`,usedKey:c,exactUsedKey:c,usedLng:v,usedNS:h,usedParams:this.getUsedParamsDetails(i)}:`${h}${p}${c}`:s?{res:c,usedKey:c,exactUsedKey:c,usedLng:v,usedNS:h,usedParams:this.getUsedParamsDetails(i)}:c;const E=this.resolve(e,i);let S=E?.res;const x=E?.usedKey||c,C=E?.exactUsedKey||c,R=["[object Number]","[object Function]","[object RegExp]"],A=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject,P=i.count!==void 0&&!Ot(i.count),L=xC.hasDefaultValue(i),D=P?this.pluralResolver.getSuffix(v,i.count,i):"",N=i.ordinal&&P?this.pluralResolver.getSuffix(v,i.count,{ordinal:!1}):"",k=P&&!i.ordinal&&i.count===0,U=k&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${D}`]||i[`defaultValue${N}`]||i.defaultValue;let F=S;O&&!S&&L&&(F=U);const V=fR(F),G=Object.prototype.toString.apply(F);if(O&&F&&V&&!R.includes(G)&&!(Ot(A)&&Array.isArray(F))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,F,{...i,ns:u}):`key '${c} (${this.language})' returned an object instead of string.`;return s?(E.res=Z,E.usedParams=this.getUsedParamsDetails(i),E):Z}if(a){const Z=Array.isArray(F),K=Z?[]:{},J=Z?C:x;for(const H in F)if(Object.prototype.hasOwnProperty.call(F,H)){const Y=`${J}${a}${H}`;L&&!S?K[H]=this.translate(Y,{...i,defaultValue:fR(U)?U[H]:void 0,joinArrays:!1,ns:u}):K[H]=this.translate(Y,{...i,joinArrays:!1,ns:u}),K[H]===Y&&(K[H]=F[H])}S=K}}else if(O&&Ot(A)&&Array.isArray(S))S=S.join(A),S&&(S=this.extendTranslation(S,e,i,r));else{let Z=!1,K=!1;!this.isValidLookup(S)&&L&&(Z=!0,S=U),this.isValidLookup(S)||(K=!0,S=c);const H=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&K?void 0:S,Y=L&&U!==S&&this.options.updateMissing;if(K||Z||Y){if(this.logger.log(Y?"updateKey":"missingKey",v,h,P&&!Y?`${c}${this.pluralResolver.getSuffix(v,i.count,i)}`:c,Y?U:S),a){const z=this.resolve(c,{...i,keySeparator:!1});z&&z.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 ee=[];const fe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&fe&&fe[0])for(let z=0;z<fe.length;z++)ee.push(fe[z]);else this.options.saveMissingTo==="all"?ee=this.languageUtils.toResolveHierarchy(i.lng||this.language):ee.push(i.lng||this.language);const ue=(z,Q,ae)=>{const de=L&&ae!==S?ae:H;this.options.missingKeyHandler?this.options.missingKeyHandler(z,h,Q,de,Y,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(z,h,Q,de,Y,i),this.emit
31("missingKey",z,h,Q,S)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?ee.forEach(z=>{const Q=this.pluralResolver.getSuffixes(z,i);k&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!Q.includes(`${this.options.pluralSeparator}zero`)&&Q.push(`${this.options.pluralSeparator}zero`),Q.forEach(ae=>{ue([z],c+ae,i[`defaultValue${ae}`]||U)})}):ue(ee,c,U))}S=this.extendTranslation(S,e,i,E,r),K&&S===c&&this.options.appendNamespaceToMissingKey&&(S=`${h}${p}${c}`),(K||Z)&&this.options.parseMissingKeyHandler&&(S=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}${p}${c}`:c,Z?S:void 0,i))}return s?(E.res=S,E.usedParams=this.getUsedParamsDetails(i),E):S}extendTranslation(e,n,r,i,s){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=Ot(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(u){const v=e.match(this.interpolator.nestingRegexp);h=v&&v.length}let p=r.replace&&!Ot(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,r.lng||this.language||i.usedLng,r),u){const v=e.match(this.interpolator.nestingRegexp),y=v&&v.length;h<y&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,(...v)=>s?.[0]===v[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):this.translate(...v,n),r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,c=Ot(a)?[a]:a;return e!=null&&c?.length&&r.applyPostProcessor!==!1&&(e=HH.handle(c,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,n={}){let r,i,s,a,c;return Ot(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(u=>typeof u=="function"?ip(u,{...this.options,...n}):u)),e.forEach(u=>{if(this.isValidLookup(r))return;const h=this.extractFromKey(u,n),p=h.key;i=p;let v=h.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const y=n.count!==void 0&&!Ot(n.count),E=y&&!n.ordinal&&n.count===0,S=n.context!==void 0&&(Ot(n.context)||typeof n.context=="number")&&n.context!=="",x=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);v.forEach(C=>{this.isValidLookup(r)||(c=C,!this.checkedLoadedFor[`${x[0]}-${C}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(this.checkedLoadedFor[`${x[0]}-${C}`]=!0,this.logger.warn(`key "${i}" for languages "${x.join(", ")}" won't get resolved as namespace "${c}" 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!!!")),x.forEach(R=>{if(this.isValidLookup(r))return;a=R;const A=[p];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(A,p,R,C,n);else{let P;y&&(P=this.pluralResolver.getSuffix(R,n.count,n));const L=`${this.options.pluralSeparator}zero`,D=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(y&&(n.ordinal&&P.startsWith(D)&&A.push(p+P.replace(D,this.options.pluralSeparator)),A.push(p+P),E&&A.push(p+L)),S){const N=`${p}${this.options.contextSeparator||"_"}${n.context}`;A.push(N),y&&(n.ordinal&&P.startsWith(D)&&A.push(N+P.replace(D,this.options.pluralSeparator)),A.push(N+P),E&&A.push(N+L))}}let O;for(;O=A.pop();)this.isValidLookup(r)||(s=O,r=this.getResource(R,C,O,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:a,usedNS:c}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,r,i):this.resourceStore.getResource(e,n,r,i)}
31getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!Ot(e.replace);let i=r?e.replace:e;if(r&&typeof e.count<"u"&&(i={...i,count:e.count}),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of n)delete i[s]}return i}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r.startsWith(n)&&e[r]!==void 0)return!0;return!1}}class ED{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=vc.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(e=k1(e),!e||!e.includes("-"))return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=k1(e),!e||!e.includes("-"))return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Ot(e)&&e.includes("-")){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(a=>a===s?!0:!a.includes("-")&&!s.includes("-")?!1:!!(a.includes("-")&&!s.includes("-")&&a.slice(0,a.indexOf("-"))===s||a.startsWith(s)&&s.length>1))}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),Ot(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.options.fallbackLng,i=Array.isArray(r)?r.join("|"):r;i!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=i);const s=n===void 0||n===!1||Ot(n),a=n===void 0&&typeof this.options.fallbackLng=="function",c=Ot(e)&&s&&!a;let u=null;if(c){let y;n===void 0?y="undefined":n===!1?y="boolean:false":y=`string:${n}`,u=`${e.length}:${e}|${y}`}if(u!==null){const y=this.resolveHierarchyCache[u];if(y!==void 0)return y.slice()}const h=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),p=[],v=y=>{y&&(this.isSupportedCode(y)?p.push(y):this.logger.warn(`rejecting language code not found in supportedLngs: ${y}`))};return Ot(e)&&(e.includes("-")||e.includes("_"))?(this.options.load!=="languageOnly"&&v(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&v(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&v(this.getLanguagePartFromCode(e))):Ot(e)&&v(this.formatLanguageCode(e)),h.forEach(y=>{p.includes(y)||v(this.formatLanguageCode(y))}),u!==null?(this.resolveHierarchyCache[u]=p,p.slice()):p}}const SD={zero:0,one:1,two:2,few:3,many:4,other:5},wD={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Nse{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=vc.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const r=k1(e==="dev"?"en":e),i=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let a;try{a=new Intl.PluralRules(r,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl pol
31yfill!"),wD;if(!e.match(/-|_/))return wD;const u=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(u,n)}return this.pluralRulesCache[s]=a,a}needsPlural(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n,r={}){return this.getSuffixes(e,r).map(i=>`${n}${i}`)}getSuffixes(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,s)=>SD[i]-SD[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(e,n,r={}){const i=this.getRule(e,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const CD=(t,e,n,r=".",i=!0)=>{let s=Tse(t,e,n);return!s&&i&&Ot(n)&&(s=HO(t,n,r),s===void 0&&(s=HO(e,n,r))),s},$se=t=>t.replace(/\$/g,"$$$$");class xD{constructor(e={}){this.logger=vc.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:a,suffix:c,suffixEscaped:u,formatSeparator:h,unescapeSuffix:p,unescapePrefix:v,nestingPrefix:y,nestingPrefixEscaped:E,nestingSuffix:S,nestingSuffixEscaped:x,nestingOptionsSeparator:C,maxReplaces:R,alwaysFormat:A}=e.interpolation;this.escape=n!==void 0?n:Ase,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?lu(s):a||"{{",this.suffix=c?lu(c):u||"}}",this.formatSeparator=h||",",this.unescapePrefix=p?"":v?lu(v):"-",this.unescapeSuffix=this.unescapePrefix?"":p?lu(p):"",this.nestingPrefix=y?lu(y):E||lu("$t("),this.nestingSuffix=S?lu(S):x||lu(")"),this.nestingOptionsSeparator=C||",",this.maxReplaces=R||1e3,this.alwaysFormat=A!==void 0?A:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"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,n,r,i){let s,a,c;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=E=>{if(!E.includes(this.formatSeparator)){const R=CD(n,u,E,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(R,void 0,r,{...i,...n,interpolationkey:E}):R}const S=E.split(this.formatSeparator),x=S.shift().trim(),C=S.join(this.formatSeparator).trim();return this.format(CD(n,u,x,this.options.keySeparator,this.options.ignoreJSONStructure),C,r,{...i,...n,interpolationkey:x})};this.resetRegExp(),!this.escapeValue&&typeof e=="string"&&/\$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.");const p=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,v=i?.interpolation?.skipOnVariables!==void 0?i.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(E=>{for(c=0;s=E.regex.exec(e);){const S=s[1].trim();if(a=h(S),a===void 0)if(typeof p=="function"){const C=p(e,s,i);a=Ot(C)?C:""}else if(i&&Object.prototype.hasOwnProperty.call(i,S))a="";else if(v){a=s[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${e}`),a="";else!Ot(a)&&!this.useRawValueToEscape&&(a=mD(a));const x=E.safeValue(a);if(e=e.replace(s[0],$se(x)),v?(E.regex.lastIndex+=x.length,E.regex.lastIndex-=s[0].length):E.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),e}nest(e,n,r={}){let i,s,a;const c=(u,h)=>{const p=this.nestingOptionsSeparator;if(!u.includes(p))return u;const v=u.split(new RegExp(`${lu(p)}[ ]*{`));let y=`{${v[1]}`;u=v[0],y=this.interpolate(y,a);const E=y.match(/'/g),S=y.match(/"/g);((E?.length??0)%2===0&&!S||(S?.length??0)%2!==0)&&(y=y.replace(/'/g,'"'));try{a=JSON.parse(y),h&&(a={...h,...a})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,x),`${u}${p}${y}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,u};for(;i=this.nestingRegexp.exec(e);){let u=[];a={...r},a=a.replace&&!Ot(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const h=/{.*}/s.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(h!==-1&&(u=i[1].slice(h).split(this.formatSeparator).map(p=>
vendor: 9,520 bytes, line 31
31p.trim()).filter(Boolean),i[1]=i[1].slice(0,h)),s=n(c.call(this,i[1].trim(),a),a),s&&i[0]===e&&!Ot(s))return s;Ot(s)||(s=mD(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),s=""),u.length&&(s=u.reduce((p,v)=>this.format(p,v,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),e=e.replace(i[0],s),this.regexp.lastIndex=0}return e}}const Fse=t=>{let e=t.toLowerCase().trim();const n={};if(t.includes("(")){const r=t.split("(");e=r[0].toLowerCase().trim();const i=r[1].slice(0,-1);e==="currency"&&!i.includes(":")?n.currency||(n.currency=i.trim()):e==="relativetime"&&!i.includes(":")?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(a){const[c,...u]=a.split(":"),h=u.join(":").trim().replace(/^'+|'+$/g,""),p=c.trim();n[p]||(n[p]=h),h==="false"&&(n[p]=!1),h==="true"&&(n[p]=!0),isNaN(h)||(n[p]=parseInt(h,10))}})}return{formatName:e,formatOptions:n}},TD=t=>{const e={};return(n,r,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});const a=r+JSON.stringify(s);let c=e[a];return c||(c=t(k1(r),i),e[a]=c),c(n)}},Use=t=>(e,n,r)=>t(k1(n),r)(e);class Bse{constructor(e={}){this.logger=vc.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?TD:Use;this.formats={number:r((i,s)=>{const a=new Intl.NumberFormat(i,{...s});return c=>a.format(c)}),currency:r((i,s)=>{const a=new Intl.NumberFormat(i,{...s,style:"currency"});return c=>a.format(c)}),datetime:r((i,s)=>{const a=new Intl.DateTimeFormat(i,{...s});return c=>a.format(c)}),relativetime:r((i,s)=>{const a=new Intl.RelativeTimeFormat(i,{...s});return c=>a.format(c,s.range||"day")}),list:r((i,s)=>{const a=new Intl.ListFormat(i,{...s});return c=>a.format(c)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=TD(n)}format(e,n,r,i={}){if(!n||e==null)return e;const s=n.split(this.formatSeparator),a=[];for(let u=0;u<s.length;u++){let h=s[u];for(;h.indexOf("(")>-1&&!h.includes(")")&&u+1<s.length;)h=`${h}${this.formatSeparator}${s[++u]}`;a.push(h)}return a.reduce((u,h)=>{const{formatName:p,formatOptions:v}=Fse(h);if(this.formats[p]){let y=u;try{const E=i?.formatParams?.[i.interpolationkey]||{},S=E.locale||E.lng||i.locale||i.lng||r;y=this.formats[p](u,S,{...v,...i,...E})}catch(E){this.logger.warn(E)}return y}else this.logger.warn(`there was no format function for ${p}`);return u},e)}}const jse=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class Hse extends Tx{constructor(e,n,r,i={}){super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=vc.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,n,r,i){const s={},a={},c={},u={};return e.forEach(h=>{let p=!0;n.forEach(v=>{const y=`${h}|${v}`;!r.reload&&this.store.hasResourceBundle(h,v)?this.state[y]=2:this.state[y]<0||(this.state[y]===1?a[y]===void 0&&(a[y]=!0):(this.state[y]=1,p=!1,a[y]===void 0&&(a[y]=!0),s[y]===void 0&&(s[y]=!0),u[v]===void 0&&(u[v]=!0)))}),p||(c[h]=!0)}),(Object.keys(s).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(a),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(u)}}loaded(e,n,r){const i=e.split("|"),s=i[0],a=i[1];n&&this.emit("failedLoading",s,a,n),!n&&r&&this.store.addResourceBundle(s,a,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const c={};this.queue.forEach(u=>{xse(u.loaded,[s],a),jse(u,e),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(h=>{c[h]||(c[h]={});const p=u.loaded[h];p.length&&p.forEach(v=>{c[h][v]===void 0&&(c[h][v]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(u=>!u.done)}read(e,n,r,i=0,s=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:i,wait:s,callback:a});return}this.readingCalls++;const c=(h,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(h&&p&&i<this.maxRetries){setTimeout(()=>{this.read(e,n,r,i+1,s*2,a)},s);return}a(h,p)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const h=u(e,n);h&&typeof h.then=="function"?h.then(p=>c(null,p)).catch(c):c(null,h)}catch(h){c(h)}return}return u(e,n,c)}prepareLoading(e,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Ot(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Ot(n)&&(n=[n]);const s=this.queueLoad(e,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(a=>{this.loadOne(a)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e,n=""){const r=e.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(a,c)=>{a&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,a),!a&&c&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,c),this.loaded(e,a,c)})}saveMissing(e,n,r,i,s,a={},c=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const u={...a,isUpdate:s},h=this.backend.create.bind(this.backend);if(h.length<6)try{let p;h.length===5?p=h(e,n,r,i,u):p=h(e,n,r,i),p&&typeof p.then=="function"?p.then(v=>c(null,v)).catch(c):c(null,p)}catch(p){c(p)}else h(e,n,r,i,c,u)}!e||!e[0]||this.store.addResource(e[0],n,r,i)}}}const hR=()=>({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:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Ot(t[1])&&(e.defaultValue=t[1]),Ot(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),RD=t=>(Ot(t.ns)&&(t.ns=[t.ns]),Ot(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Ot(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&!t.supportedLngs.includes("cimode")&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),uw=()=>{},zse=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class n1 extends Tx{constructor(e={},n){if(super(),this.options=RD(e),this.services={},this.logger=vc,this.modules={external:[]},zse(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(Ot(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const r=hR();this.options={...r,...this.options,...RD(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const i=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?vc.init(i(this.modules.logger),this.options):vc.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=Bse;const p=new ED(this.options);this.store=new bD(this.options.resources,this.options);const v=this.services;v.logger=vc,v.resourceStore=this.store,v.languageUtils=p,v.pluralResolver=new Nse(p,{prepend:this.options.pluralSeparator}),h&&(v.formatter=i(h),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new xD(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new Hse(i(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(y,...E)=>
31{this.emit(y,...E)}),this.modules.languageDetector&&(v.languageDetector=i(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=i(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new xC(this.services,this.options),this.translator.on("*",(y,...E)=>{this.emit(y,...E)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,n||(n=uw),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[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(h=>{this[h]=(...p)=>this.store[h](...p)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=(...p)=>(this.store[h](...p),this)});const c=l_(),u=()=>{const h=(p,v)=>{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),c.resolve(v),n(p,v)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),c}loadResources(e,n=uw){let r=n;const i=Ot(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],a=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(h=>{h!=="cimode"&&(s.includes(h)||s.push(h))})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>a(u)),this.options.preload?.forEach?.(c=>a(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(e,n,r){const i=l_();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=uw),this.services.backendConnector.reload(e,n,s=>{i.resolve(),r(s)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&HH.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!["cimode","dev"].includes(e)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!["cimode","dev"].includes(r)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const r=l_();this.emit("languageChanging",e);const i=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},s=(c,u)=>{u?this.isLanguageChangingTo===e&&(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve((...h)=>this.t(...h)),n&&n(c,(...h)=>this.t(...h))},a=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);const u=Ot(c)?c:c&&c[0],h=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(Ot(c)?[c]:c);h&&(this.language||i(h),this.translator.language||this.translator.changeLanguage(h),this.services.languageDetector?.cacheUserLanguage?.(h)),this.loadResources(h,p=>{s(p,h)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),r}getFixedT(e,n,r,i){const s=i?.scopeNs,a=(c,u,...h)=>{let p;typeof u!="object"?p=this.options.overloadTranslationOptionHandler([c,u].concat(h)):p={...u},p.lng=p.lng||a.lng,p.lngs=p.lngs||a.lngs;const v=p.ns!==void 0&&p.ns!==null;p.ns=p.ns||a.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||r||a.keyPrefix);const y={...this.options,...p};Array.isArray(s)&&!v&&(y.ns=s),typeof p.keyPrefix=="function"&&(p.keyPrefix=ip(p.keyPrefix,y));const E=this.options.keySeparator||".";let S;return p.keyPrefix&&Array.isArray(c)?S=c.map(x=>(typeof x=="function"&&(x=ip(x,y)),`${p.keyPrefix}${E}${x}`)):(typeof c=="function"&&(c=ip(c,y)),S=p.keyPrefix?`${p.keyPrefix}${E}${c}`:c),this.t(S,p)};return Ot(e)?a.lng=e:a.lngs=e,a.ns=n,a.keyPrefix=r,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
31if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(c,u)=>{const h=this.services.backendConnector.state[`${c}|${u}`];return h===-1||h===0||h===2};if(n.precheck){const c=n.precheck(this,a);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,e)&&(!i||a(s,e)))}loadNamespaces(e,n){const r=l_();return this.options.ns?(Ot(e)&&(e=[e]),e.forEach(i=>{this.options.ns.includes(i)||this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=l_();Ot(e)&&(e=[e]);const i=this.options.preload||[],s=e.filter(a=>!i.includes(a)&&this.services.languageUtils.isSupportedCode(a));return s.length?(this.options.preload=i.concat(s),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const i=new Intl.Locale(e);if(i&&i.getTextInfo){const s=i.getTextInfo();if(s&&s.direction)return s.direction}}catch{}const n=["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"],r=this.services?.languageUtils||new ED(hR());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.includes(r.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const r=new n1(e,n);return r.createInstance=n1.createInstance,r}cloneInstance(e={},n=uw){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},s=new n1(i);if((e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(c=>{s[c]=this[c]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const c=Object.keys(this.store.data).reduce((u,h)=>(u[h]={...this.store.data[h]},u[h]=Object.keys(u[h]).reduce((p,v)=>(p[v]={...u[h][v]},p),u[h]),u),{});s.store=new bD(c,i),s.services.resourceStore=s.store}if(e.interpolation){const u={...hR().interpolation,...this.options.interpolation,...e.interpolation},h={...i,interpolation:u};s.services.interpolator=new xD(h)}return s.translator=new xC(s.services,i),s.translator.on("*",(c,...u)=>{s.emit(c,...u)}),s.init(i,n),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}}}const zi=n1.createInstance();zi.createInstance;zi.dir;zi.init;zi.loadResources;zi.reloadResources;zi.use;zi.changeLanguage;zi.getFixedT;zi.t;zi.exists;zi.setDefaultNamespace;zi.hasLoadedNamespace;zi.loadNamespaces;zi.loadLanguages;const Vse={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},qse=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function AD(t){const e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=t.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(e.name=n[1],(Vse[n[1]]||t.charAt(t.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){const s=t.indexOf("-->");return{type:"comment",comment:s!==-1?t.slice(4,s):""}}const r=new RegExp(qse);let i=null;for(;i=r.exec(t),i!==null;)if(i[0].trim())if(i[1]){const s=i[1].trim();let a=[s,null];const c=s.indexOf("=");c>-1&&(a=[s.slice(0,c),s.slice(c+1)]),e.attrs[a[0]]=a[1],r.lastIndex--}else i[2]&&(e.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return e}const dw=/<!--[\s\S]*?-->|<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Wse=/<\/?([^\s]+?)[/\s>]/,Gse=/^\s*$/,Kse=/^(script|style)$/i,N_="\0",Yse=Object.create(null);function VH(t){t.forEach(function(e){if(e.type==="text"){e.content=e.content.split(N_).join("<");return}if(e.type==="comment"){e.comment=e.comment.split(N_).join("<");return}for(const n in e.attrs){const r=e.attrs[n];typeof r=="string"&&r.indexOf(N_)>-1&&(e.attrs[n]=r.split(N_).join("<"))}e.children.length&&VH(e.children)})}function Xse(t,e){const n=e&&e.components||Yse,r=e&&e.allowedTags;let i=!1;if(r){const S=typeof r=="function"?r:function(A){return r.indexOf(A)>-1};let x="",C=0;dw.lastIndex=0;let R;for(;R=dw.exec(t);){const A=R[0];x+=t.slice(C,R.index);const O=A.match(Wse);A.startsWith("<!--")||O&&S(O[1])?(x+=A,C=R.index+A.length):(i=!0,x+=N_,C=R.index+1,dw.lastIndex=C)}t=x+t.slice(C)}const s=[],a=[];let c,u=-1,h=!1,p=0,v;if(t.indexOf("<")!==0){const S=t.indexOf("<");s.push({type:"text",content:S===-1?t:t.substring(0,S)})}const y=[];let E;for(;E=dw.exec(t);)y.push(E);
31return y.forEach(function(S,x){const C=S[0];if(!C||C.startsWith("<!--"))return;let R=0,A=0,O=-1,P=null;for(let D=0;D<C.length;D++){const N=C.charAt(D);P?N===P&&(P=null):N==='"'||N==="'"?P=N:N==="<"?(R++,R===2&&(O=D)):N===">"&&A++}const L=O>-1&&/[a-zA-Z0-9\-!/]/.test(C.charAt(O+1));if(R>A&&L){const D=C.substring(0,O),N=C.substring(D.length);y[x][0]=N,y[x].index+=D.length}}),y.forEach(function(S,x){const C=S[0];if(!C)return;const R=S.index;if(R<p)return;if(h){if(C!=="</"+c.name+">")return;h=!1}const A=C.charAt(1)!=="/",O=C.startsWith("<!--"),P=R+C.length,L=t.charAt(P),D=y[x+1];let N;if(L==="<"&&D){const U=t.substring(P,D.index);N=U.split("<").length>U.split(">").length}let k;if(O){const U=AD(C);if(u<0)return s.push(U),s;k=a[u],k.children.push(U);const F=t.slice(P,D?D.index:void 0);return F.length>0&&k.children.push({type:"text",content:F}),s}if(A){u++,c=AD(C),c.type==="tag"&&n[c.name]&&(c.type="component",h=!0);let U=!1;if(!h&&!c.voidElement&&Kse.test(c.name)){U=!0,v||(v=t.toLowerCase());const F=v.indexOf("</"+c.name.toLowerCase()+">",P),V=F===-1?t.length:F,G=t.slice(P,V);G&&c.children.push({type:"text",content:G}),p=V}!c.voidElement&&!h&&!U&&L&&L!=="<"&&c.children.push({type:"text",content:t.slice(P,D?D.index:void 0)}),u===0&&s.push(c),k=a[u-1],k&&k.children.push(c),a[u]=c}if((!A||c.voidElement)&&(u>-1&&(c.voidElement||c.name===C.slice(2,-1))&&(u--,c=u===-1?s:a[u]),!h&&(L!=="<"||N)&&L)){k=u===-1?s:a[u].children;const U=D?D.index:-1;let F=t.slice(P,U===-1?void 0:U);Gse.test(F)&&(F=" "),(U>-1&&u+k.length>=0||F!==" ")&&k.push({type:"text",content:F})}}),i&&VH(s),s}function Qse(t){const e=[];for(const n in t)t[n]===null?e.push(n):e.push(n+'="'+String(t[n]).replace(/"/g,""")+'"');return e.length?" "+e.join(" "):""}function qH(t,e){switch(e.type){case"text":return t+e.content;case"tag":{const n=e.voidElement&&e.name.toLowerCase()!=="!doctype"?"/>":">";return t+="<"+e.name+(e.attrs?Qse(e.attrs):"")+n,e.voidElement?t:t+e.children.reduce(qH,"")+"</"+e.name+">"}case"comment":return t+="<!--"+e.comment+"-->",t}}function Zse(t){return t.reduce(function(e,n){return e+qH("",n)},"")}var Jse={parse:Xse,stringify:Zse};const Yw=(t,e,n,r)=>{const i=[n,{code:e,...r||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(i,"warn","react-i18next::",!0);So(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...i):console?.warn&&console.warn(...i)},OD={},$m=(t,e,n,r)=>{So(n)&&OD[n]||(So(n)&&(OD[n]=new Date),Yw(t,e,n,r))},WH=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},VO=(t,e,n)=>{t.loadNamespaces(e,WH(t,n))},ID=(t,e,n,r)=>{if(So(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return VO(t,n,r);n.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,WH(t,r))},eoe=(t,e,n={})=>!e.languages||!e.languages.length?($m(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,t))return!1}}),So=t=>typeof t=="string",Ru=t=>typeof t=="object"&&t!==null,toe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,noe={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},roe=t=>noe[t],GH=t=>t.replace(toe,roe);let qO={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:GH,transDefaultProps:void 0};const ioe=(t={})=>{qO={...qO,...t}},eP=()=>qO;let KH;const soe=t=>{KH=t},tP=()=>KH,Xw=(t,e)=>{if(!t)return!1;const n=t.props?.children??t.children;return e?n.length>0:!!n},$_=t=>{if(!t)return[];const e=t.props?.children??t.children;return t.props?.i18nIsDynamicList?Qd(e):e},ooe=t=>Array.isArray(t)&&t.every(_.isValidElement),Qd=t=>Array.isArray(t)?t:[t],aoe=(t,e)=>{const n={...e};return n.props={...e.props,...t.props},n},loe=t=>{const e={};if(!t)return e;const n=r=>{Qd(r).forEach(s=>{So(s)||(Xw(s)?n($_(s)):Ru(s)&&!_.isValidElement(s)&&Object.assign(e,s))})};return n(t),e},WO=(t,e,n,r)=>{if(!t)return"";let i="";const s=Qd(t),a=e?.transSupportBasicHtmlNodes?e.transKeepBasicHtmlNodesFor??[]:[];
31return s.forEach((c,u)=>{if(So(c)){i+=`${c}`;return}if(_.isValidElement(c)){const{props:h,type:p}=c,v=Object.keys(h).length,y=a.indexOf(p)>-1,E=h.children;if(!E&&y&&!v){i+=`<${p}/>`;return}if(!E&&(!y||v)||h.i18nIsDynamicList){i+=`<${u}></${u}>`;return}if(y&&v<=1){const x=So(E)?E:WO(E,e,n,r);i+=`<${p}>${x}</${p}>`;return}const S=WO(E,e,n,r);i+=`<${u}>${S}</${u}>`;return}if(c===null){Yw(n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:r});return}if(Ru(c)){const{format:h,...p}=c,v=Object.keys(p);if(v.length===1){const y=h?`${v[0]}, ${h}`:v[0];i+=`{{${y}}}`;return}Yw(n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:r,child:c});return}Yw(n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:r,child:c})}),i},coe=(t,e,n,r,i,s,a)=>{if(n==="")return[];const c=i.transKeepBasicHtmlNodesFor||[],u=n&&new RegExp(c.map(O=>`<${O}`).join("|")).test(n);if(!t&&!e&&!u&&!a)return[n];const h=e??{},p=O=>{Qd(O).forEach(L=>{So(L)||(Xw(L)?p($_(L)):Ru(L)&&!_.isValidElement(L)&&Object.assign(h,L))})};p(t);const v=Object.keys(h),y=O=>/^\d+$/.test(O)||c.indexOf(O)>-1||v.indexOf(O)>-1,E=Jse.parse(`<0>${n}</0>`,{allowedTags:y}),S={...h,...s},x=(O,P,L)=>{const D=$_(O),N=R(D,P.children,L);return ooe(D)&&N.length===0||O.props?.i18nIsDynamicList?D:N},C=(O,P,L,D,N)=>{O.dummy?(O.children=P,L.push(_.cloneElement(O,{key:D},N?void 0:P))):L.push(..._.Children.map([O],k=>{if(k.type===_.Fragment||k.props?.i18nIsDynamicList!==void 0){const F={key:D};return k&&k.props&&Object.keys(k.props).forEach(V=>{V==="children"||V==="i18nIsDynamicList"||(F[V]=k.props[V])}),_.createElement(k.type,F,N?null:P)}const U={key:D};return k&&k.props&&Object.keys(k.props).forEach(F=>{F==="ref"||F==="children"||(U[F]=k.props[F])}),_.cloneElement(k,U,N?null:P)}))},R=(O,P,L)=>{const D=Qd(O),N=Qd(P),k={};return N.reduce((U,F,V)=>{const G=F.children?.[0]?.content&&r.services.interpolator.interpolate(F.children[0].content,S,r.language);if(F.type==="tag"){let Z=D[parseInt(F.name,10)];!Z&&e&&(Z=e[F.name]),L.length===1&&!Z&&(Z=L[0][F.name]),Z||(Z={});const K={...F.attrs};a&&Object.keys(K).forEach(ue=>{const z=K[ue];So(z)&&(K[ue]=GH(z))});const J=Object.keys(K).length!==0?aoe({props:K},Z):Z,H=_.isValidElement(J),Y=H&&Xw(F,!0)&&!F.voidElement,ee=u&&Ru(J)&&J.dummy&&!H,fe=Ru(e)&&Object.hasOwnProperty.call(e,F.name);if(So(J)){const ue=r.services.interpolator.interpolate(J,S,r.language);U.push(ue)}else if(Xw(J)||Y){const ue=x(J,F,L);C(J,ue,U,V)}else if(ee){const ue=R(D,F.children,L);C(J,ue,U,V)}else if(Number.isNaN(parseFloat(F.name)))if(fe){const ue=x(J,F,L);C(J,ue,U,V,F.voidElement)}else if(i.transSupportBasicHtmlNodes&&c.indexOf(F.name)>-1)if(F.voidElement)U.push(_.createElement(F.name,{key:`${F.name}-${V}`}));else{const ue=k[F.name]||0;k[F.name]=ue+1;let z,Q=0;for(let be=0;be<D.length;be+=1){const Se=D[be];if(_.isValidElement(Se)&&Se.type===F.name){if(Q===ue){z=Se;break}Q+=1}}const ae=z?Qd($_(z)):D,de=R(ae,F.children,L);U.push(_.createElement(F.name,{key:`${F.name}-${V}`},de))}else if(F.voidElement)U.push(`<${F.name} />`);else{const ue=R(D,F.children,L);U.push(`<${F.name}>${ue}</${F.name}>`)}else if(Ru(J)&&!H){const ue=F.children[0]?G:null;ue&&U.push(ue)}else C(J,G,U,V,F.children.length!==1||!G)}else if(F.type==="text"){const Z=i.transWrapTextNodes,K=typeof i.unescape=="function"?i.unescape:eP().unescape,J=a?K(r.services.interpolator.interpolate(F.content,S,r.language)):r.services.interpolator.interpolate(F.content,S,r.language);Z?U.push(_.createElement(Z,{key:`${F.name}-${V}`},J)):U.push(J)}return U},[])},A=R([{dummy:!0,children:t||[]}],E,Qd(t||[]));return $_(A[0])},YH=(t,e,n)=>{const r=t.key||e,i=_.cloneElement(t,{key:r});if(!i.props||!i.props.children||n.indexOf(`${e}/>`)<0&&n.indexOf(`${e} />`)<0)return i;function s(){return _.createElement(_.Fragment,null,i)}return _.createElement(s,{key:r})},uoe=(t,e)=>t.map((n,r)=>YH(n,r,e)),doe=(t,e)=>{const n={};return Object.keys(t).forEach(r=>{Object.assign(n,{[r]:YH(t[r],r,e)})}),n},foe=(t,e,n,r)=>t?Array.isArray(t)?uoe(t,e):Ru(t)?doe(t,e):($m(n,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:r}),null):null,hoe=t=>!Ru(t)||Array.isArray(t)?!1:Object.keys(t).reduce((e,n)=>e&&Number.isNaN(Number.parseFloat(n)),!0);function poe({children:t,count:e,parent:n,i18nKey:r,context:i,tOptions:s={}
31,values:a,defaults:c,components:u,ns:h,i18n:p,t:v,shouldUnescape:y,...E}){const S=p||tP();if(!S)return $m(S,"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:r}),t;const x=v||S.t.bind(S)||(ue=>ue),C={...eP(),...S.options?.react};let R=h||x.ns||S.options?.defaultNS;R=So(R)?[R]:R||["translation"];const{transDefaultProps:A}=C,O=A?.tOptions?{...A.tOptions,...s}:s,P=y??A?.shouldUnescape,L=A?.values?{...A.values,...a}:a,D=A?.components?{...A.components,...u}:u,N=WO(t,C,S,r),k=c||O?.defaultValue||N||C.transEmptyNodeValue||(typeof r=="function"?ip(r):r),{hashTransKey:U}=C,F=r||(U?U(N||k):N||k);S.options?.interpolation?.defaultVariables?a=L&&Object.keys(L).length>0?{...L,...S.options.interpolation.defaultVariables}:{...S.options.interpolation.defaultVariables}:a=L;const V=loe(t);V&&typeof V.count=="number"&&e===void 0&&(e=V.count);const G=a||e!==void 0&&!S.options?.interpolation?.alwaysFormat||!t?O.interpolation:{interpolation:{...O.interpolation,prefix:"#$?",suffix:"?$#"}},Z={...O,context:i||O.context,count:e,...a,...G,defaultValue:k,ns:R};let K=F?x(F,Z):k;K===F&&k&&(K=k);const J=foe(D,K,S,r);let H=J||t,Y=null;hoe(J)&&(Y=J,H=t);const ee=coe(H,Y,K,S,C,Z,P),fe=n??C.defaultTransParent;return fe?_.createElement(fe,E,ee):ee}const goe={type:"3rdParty",init(t){ioe(t.options.react),soe(t)}},XH=_.createContext();class moe{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function Rx({children:t,count:e,parent:n,i18nKey:r,context:i,tOptions:s={},values:a,defaults:c,components:u,ns:h,i18n:p,t:v,shouldUnescape:y,...E}){const{i18n:S,defaultNS:x}=_.useContext(XH)||{},C=p||S||tP(),R=v||C?.t.bind(C);return poe({children:t,count:e,parent:n,i18nKey:r,context:i,tOptions:s,values:a,defaults:c,components:u,ns:h||R?.ns||x||C?.options?.defaultNS,i18n:C,t:v,shouldUnescape:y,...E})}var pR={exports:{}},gR={};var PD;function voe(){if(PD)return gR;PD=1;var t=Ev();function e(v,y){return v===y&&(v!==0||1/v===1/y)||v!==v&&y!==y}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,s=t.useLayoutEffect,a=t.useDebugValue;function c(v,y){var E=y(),S=r({inst:{value:E,getSnapshot:y}}),x=S[0].inst,C=S[1];return s(function(){x.value=E,x.getSnapshot=y,u(x)&&C({inst:x})},[v,E,y]),i(function(){return u(x)&&C({inst:x}),v(function(){u(x)&&C({inst:x})})},[v]),a(E),E}function u(v){var y=v.getSnapshot;v=v.value;try{var E=y();return!n(v,E)}catch{return!0}}function h(v,y){return y()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:c;return gR.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:p,gR}var LD;function yoe(){return LD||(LD=1,pR.exports=voe()),pR.exports}var _oe=yoe();const boe=(t,e)=>{if(So(e))return e;if(Ru(e)&&So(e.defaultValue))return e.defaultValue;if(typeof t=="function")return"";if(Array.isArray(t)){const n=t[t.length-1];return typeof n=="function"?"":n}return t},Eoe={t:boe,ready:!1},Soe=()=>()=>{},xp=(t,e={})=>{const{i18n:n}=e,{i18n:r,defaultNS:i}=_.useContext(XH)||{},s=n||r||tP();s&&!s.reportNamespaces&&(s.reportNamespaces=new moe),s||$m(s,"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.");const a=_.useMemo(()=>({...eP(),...s?.options?.react,...e}),[s,e]),{useSuspense:c,keyPrefix:u}=a,h=t||i||s?.options?.defaultNS,p=So(h)?[h]:h||["translation"],v=_.useMemo(()=>p,p);s?.reportNamespaces?.addUsedNamespaces?.(v);const y=_.useRef(0),E=_.useCallback(U=>{if(!s)return Soe;const{bindI18n:F,bindI18nStore:V}=a,G=()=>{y.current+=1,U()};return F&&s.on(F,G),V&&s.store.on(V,G),()=>{F&&F.split(" ").forEach(Z=>s.off(Z,G)),V&&V.split(" ").forEach(Z=>s.store.off(Z,G))}},[s,a]),S=_.useRef(),x=_.useCallback(()=>{if(!s)return Eoe;const U=!!(s.isInitialized||s.initializedStoreOnce)&&v.every(J=>eoe(J,s,a)),F=e.lng||s.language,V=y.current,G=S.current;if(G&&G.ready===U&&G.lng===F&&G.keyPrefix===u&&G.revision===V)return G;const K={t:s.getFixedT(F,a.nsMode==="fallback"?v:v[0],u,{scopeNs:v}),ready:U,lng:F,keyPrefix:u,revision:V};return S.current=K,K},[s,v,u,a,e.lng]),[C,R]=_.useState(0),{t:A,ready:O}=_oe.useSyncExternalStore(E,x,x);_.useEffect(()=>{if(s&&!O&&!c){const U=()=>R(F=>F+1);e.lng?ID(s,e.lng,v,U):VO(s,v,U)}},[s,e.lng,v,O,c,C]);const P=s||{},L=_.useRef(null),D=_.useRef(),N=U=>{const F=Object.getOwnPropertyDescriptors(U);F.__original&&delete F.__original;const V=Object.create(Object.getPrototypeOf(U),F);if(!Object.prototype.hasOwnProperty.call(V,"__original"))try{Object.defineProperty(V,"__original",{value:U,writable:!1,enumerable:!1,
31configurable:!1})}catch{}return V},k=_.useMemo(()=>{const U=P,F=U?.language;let V=U;U&&(L.current&&L.current.__original===U?D.current!==F?(V=N(U),L.current=V,D.current=F):V=L.current:(V=N(U),L.current=V,D.current=F));const G=!O&&!c?(...K)=>($m(s,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),A(...K)):A,Z=[G,V,O];return Z.t=G,Z.i18n=V,Z.ready=O,Z},[A,P,O,P.resolvedLanguage,P.language,P.languages]);if(s&&c&&!O){let U=!1;try{U=!1}catch{}throw U&&$m(s,"SUSPENDED_WHILE_LOADING","useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"),new Promise(F=>{const V=()=>F();e.lng?ID(s,e.lng,v,V):VO(s,v,V)})}return k};zi.use(goe).init({resources:{[of]:Sse},lng:of,fallbackLng:of,ns:BH,defaultNS:Ese,interpolation:{escapeValue:!1},returnNull:!1,react:{useSuspense:!1}});const M1=zi,ni=zi.t.bind(zi),woe=(t,e,n)=>{const r=t[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((i,s)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(s.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})};var Qw={exports:{}},Coe=Qw.exports,kD;function xoe(){return kD||(kD=1,(function(t,e){(function(n,r){t.exports=r()})(Coe,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",c="minute",u="hour",h="day",p="week",v="month",y="quarter",E="year",S="date",x="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var J=["th","st","nd","rd"],H=K%100;return"["+K+(J[(H-20)%10]||J[H]||J[0])+"]"}},O=function(K,J,H){var Y=String(K);return!Y||Y.length>=J?K:""+Array(J+1-Y.length).join(H)+K},P={s:O,z:function(K){var J=-K.utcOffset(),H=Math.abs(J),Y=Math.floor(H/60),ee=H%60;return(J<=0?"+":"-")+O(Y,2,"0")+":"+O(ee,2,"0")},m:function K(J,H){if(J.date()<H.date())return-K(H,J);
vendor: 6,082 bytes, line 31
31var Y=12*(H.year()-J.year())+(H.month()-J.month()),ee=J.clone().add(Y,v),fe=H-ee<0,ue=J.clone().add(Y+(fe?-1:1),v);return+(-(Y+(H-ee)/(fe?ee-ue:ue-ee))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:v,y:E,w:p,d:h,D:S,h:u,m:c,s:a,ms:s,Q:y}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},L="en",D={};D[L]=A;var N="$isDayjsObject",k=function(K){return K instanceof G||!(!K||!K[N])},U=function K(J,H,Y){var ee;if(!J)return L;if(typeof J=="string"){var fe=J.toLowerCase();D[fe]&&(ee=fe),H&&(D[fe]=H,ee=fe);var ue=J.split("-");if(!ee&&ue.length>1)return K(ue[0])}else{var z=J.name;D[z]=J,ee=z}return!Y&&ee&&(L=ee),ee||!Y&&L},F=function(K,J){if(k(K))return K.clone();var H=typeof J=="object"?J:{};return H.date=K,H.args=arguments,new G(H)},V=P;V.l=U,V.i=k,V.w=function(K,J){return F(K,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var G=(function(){function K(H){this.$L=U(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[N]=!0}var J=K.prototype;return J.parse=function(H){this.$d=(function(Y){var ee=Y.date,fe=Y.utc;if(ee===null)return new Date(NaN);if(V.u(ee))return new Date;if(ee instanceof Date)return new Date(ee);if(typeof ee=="string"&&!/Z$/i.test(ee)){var ue=ee.match(C);if(ue){var z=ue[2]-1||0,Q=(ue[7]||"0").substring(0,3);return fe?new Date(Date.UTC(ue[1],z,ue[3]||1,ue[4]||0,ue[5]||0,ue[6]||0,Q)):new Date(ue[1],z,ue[3]||1,ue[4]||0,ue[5]||0,ue[6]||0,Q)}}return new Date(ee)})(H),this.init()},J.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},J.$utils=function(){return V},J.isValid=function(){return this.$d.toString()!==x},J.isSame=function(H,Y){var ee=F(H);return this.startOf(Y)<=ee&&ee<=this.endOf(Y)},J.isAfter=function(H,Y){return F(H)<this.startOf(Y)},J.isBefore=function(H,Y){return this.endOf(Y)<F(H)},J.$g=function(H,Y,ee){return V.u(H)?this[Y]:this.set(ee,H)},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this.$d.getTime()},J.startOf=function(H,Y){var ee=this,fe=!!V.u(Y)||Y,ue=V.p(H),z=function(ze,tt){var Je=V.w(ee.$u?Date.UTC(ee.$y,tt,ze):new Date(ee.$y,tt,ze),ee);return fe?Je:Je.endOf(h)},Q=function(ze,tt){return V.w(ee.toDate()[ze].apply(ee.toDate("s"),(fe?[0,0,0,0]:[23,59,59,999]).slice(tt)),ee)},ae=this.$W,de=this.$M,be=this.$D,Se="set"+(this.$u?"UTC":"");switch(ue){case E:return fe?z(1,0):z(31,11);case v:return fe?z(1,de):z(0,de+1);case p:var je=this.$locale().weekStart||0,Ne=(ae<je?ae+7:ae)-je;return z(fe?be-Ne:be+(6-Ne),de);case h:case S:return Q(Se+"Hours",0);case u:return Q(Se+"Minutes",1);case c:return Q(Se+"Seconds",2);case a:return Q(Se+"Milliseconds",3);default:return this.clone()}},J.endOf=function(H){return this.startOf(H,!1)},J.$set=function(H,Y){var ee,fe=V.p(H),ue="set"+(this.$u?"UTC":""),z=(ee={},ee[h]=ue+"Date",ee[S]=ue+"Date",ee[v]=ue+"Month",ee[E]=ue+"FullYear",ee[u]=ue+"Hours",ee[c]=ue+"Minutes",ee[a]=ue+"Seconds",ee[s]=ue+"Milliseconds",ee)[fe],Q=fe===h?this.$D+(Y-this.$W):Y;if(fe===v||fe===E){var ae=this.clone().set(S,1);ae.$d[z](Q),ae.init(),this.$d=ae.set(S,Math.min(this.$D,ae.daysInMonth())).$d}else z&&this.$d[z](Q);return this.init(),this},J.set=function(H,Y){return this.clone().$set(H,Y)},J.get=function(H){return this[V.p(H)]()},J.add=function(H,Y){var ee,fe=this;H=Number(H);var ue=V.p(Y),z=function(de){var be=F(fe);return V.w(be.date(be.date()+Math.round(de*H)),fe)};if(ue===v)return this.set(v,this.$M+H);if(ue===E)return this.set(E,this.$y+H);if(ue===h)return z(1);if(ue===p)return z(7);var Q=(ee={},ee[c]=r,ee[u]=i,ee[a]=n,ee)[ue]||1,ae=this.$d.getTime()+H*Q;return V.w(ae,this)},J.subtract=function(H,Y){return this.add(-1*H,Y)},J.format=function(H){var Y=this,ee=this.$locale();if(!this.isValid())return ee.invalidDate||x;var fe=H||"YYYY-MM-DDTHH:mm:ssZ",ue=V.z(this),z=this.$H,Q=this.$m,ae=this.$M,de=ee.weekdays,be=ee.months,Se=ee.meridiem,je=function(tt,Je,We,Ve){return tt&&(tt[Je]||tt(Y,fe))||We[Je].slice(0,Ve)},Ne=function(tt){return V.s(z%12||12,tt,"0")},ze=Se||function(tt,Je,We){var Ve=tt<12?"AM":"PM";return We?Ve.toLowerCase():Ve};return fe.replace(R,(function(tt,Je){return Je||(function(We){switch(We){case"YY":return String(Y.$y).slice(-2);case"YYYY":return V.s(Y.$y,4,"0");case"M":return ae+1;case"MM":return V.s(ae+1,2,"0");case"MMM":return je(ee.monthsShort,ae,be,3);case"MMMM":return je(be,ae);case"D":return Y.$D;case"DD":return V.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return je(ee.weekdaysMin,Y.$W,de,2);case"ddd":return je(ee.weekdaysShort,Y.$W,de,3);case"dddd":return de[Y.$W];case"H":return String(z);case"HH":return V.s(z,2,"0");case"h":return Ne(1);case"hh":return Ne(2);case"a":return ze(z,Q,!0);case"A":return ze(z,Q,!1);case"m":return String(Q);case"mm":return V.s(Q,2,"0");case"s":return String(Y.$s);case"ss":return V.s(Y.$s,2,"0");case"SSS":return V.s(Y.$ms,3,"0");case"Z":return ue}return null})(tt)||ue.replace(":","")}))},J.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},J.diff=function(H,Y,ee){var fe,ue=this,z=V.p(Y),Q=F(H),ae=(Q.utcOffset()-this.utcOffset())*r,de=this-Q,be=function(){return V.m(ue,Q)};switch(z){case E:fe=be()/12;break;case v:fe=be();break;case y:fe=be()/3;break;case p:fe=(de-ae)/6048e5;break;case h:fe=(de-ae)/864e5;break;case u:fe=de/i;break;case c:fe=de/r;break;case a:fe=de/n;break;default:fe=de}return ee?fe:V.a(fe)},J.daysInMonth=function(){return this.endOf(v).$D},J.$locale=function(){return D[this.$L]},J.locale=function(H,Y){if(!H)return this.$L;var ee=this.clone(),fe=U(H,Y,!0);return fe&&(ee.$L=fe),ee},J.clone=function(){return V.w(this.$d,this)},J.toDate=function(){return new Date(this.valueOf())},J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toISOString=function(){return this.$d.toISOString()},J.toString=function(){return this.$d.toUTCString()},K})(),Z=G.prototype;return F.prototype=Z,[["$ms",s],["$s",a],["$m",c],["$H",u],["$W",h],["$M",v],["$y",E],["$D",S]].forEac
31h((function(K){Z[K[1]]=function(J){return this.$g(J,K[0],K[1])}})),F.extend=function(K,J){return K.$i||(K(J,G,F),K.$i=!0),F},F.locale=U,F.isDayjs=k,F.unix=function(K){return F(1e3*K)},F.en=D[L],F.Ls=D,F.p={},F}))})(Qw)),Qw.exports}var Toe=xoe();const ta=ju(Toe),MD={en:{antdModule:"en_US",antd:()=>ct(()=>Promise.resolve().then(()=>yIe),void 0),dayjsModule:"en",dayjs:()=>ct(()=>import("./en-BXnoWPpm.js").then(t=>t.e),[])},es:{antdModule:"es_ES",antd:()=>ct(()=>import("./es_ES-D8-EKrOq.js").then(t=>t.e),[]),dayjsModule:"es-mx",dayjs:()=>ct(()=>import("./es-mx-D7STdaAs.js").then(t=>t.e),[])},pt:{antdModule:"pt_BR",antd:()=>ct(()=>import("./pt_BR-C98AqEsk.js").then(t=>t.p),[]),dayjsModule:"pt-br",dayjs:()=>ct(()=>import("./pt-br--QMY1ba5.js").then(t=>t.p),[])}},Roe=async t=>{await Promise.all(BH.map(async e=>{const n=await woe(Object.assign({
31"../locales/en/agent.json":()=>ct(()=>Promise.resolve().then(()=>cse),void 0),
31"../locales/en/auth.json":()=>ct(()=>Promise.resolve().then(()=>use),void 0),
31"../locales/en/billing.json":()=>ct(()=>Promise.resolve().then(()=>dse),void 0),
31"../locales/en/boards.json":()=>ct(()=>Promise.resolve().then(()=>fse),void 0),
31"../locales/en/chat.json":()=>ct(()=>Promise.resolve().then(()=>hse),void 0),
31"../locales/en/common.json":()=>ct(()=>Promise.resolve().then(()=>pse),void 0),
31"../locales/en/inbox.json":()=>ct(()=>Promise.resolve().then(()=>gse),void 0),
31"../locales/en/integrations.json":()=>ct(()=>Promise.resolve().then(()=>mse),void 0),
31"../locales/en/jobs.json":()=>ct(()=>Promise.resolve().then(()=>vse),void 0),
31"../locales/en/library.json":()=>ct(()=>Promise.resolve().then(()=>yse),void 0),
31"../locales/en/settings.json":()=>ct(()=>Promise.resolve().then(()=>_se),void 0),
31"../locales/en/shopping.json":()=>ct(()=>Promise.resolve().then(()=>bse),void 0),
31"../locales/es/agent.json":()=>ct(()=>import("./agent-D_AI56vc.js"),[]),
31"../locales/es/auth.json":()=>ct(()=>import("./auth-D-u0eezJ.js"),[]),
31"../locales/es/billing.json":()=>ct(()=>import("./billing-DQs_Lflr.js"),[]),
31"../locales/es/boards.json":()=>ct(()=>import("./boards-ZO7-AURh.js"),[]),
31"../locales/es/chat.json":()=>ct(()=>import("./chat-CUH7aBkC.js"),[]),
31"../locales/es/common.json":()=>ct(()=>import("./common-K8hDCzYR.js"),[]),
31"../locales/es/inbox.json":()=>ct(()=>import("./inbox-BvvZIn0t.js"),[]),
31"../locales/es/integrations.json":()=>ct(()=>import("./integrations-Ci2LhLTZ.js"),[]),
31"../locales/es/jobs.json":()=>ct(()=>import("./jobs-Deg_lP3z.js"),[]),
31"../locales/es/library.json":()=>ct(()=>import("./library-sZsE2oUR.js"),[]),
31"../locales/es/settings.json":()=>ct(()=>import("./settings-BEO94dPa.js"),[]),
31"../locales/es/shopping.json":()=>ct(()=>import("./shopping-DaDzPuFn.js"),[]),
31"../locales/pt/agent.json":()=>ct(()=>import("./agent-ep7J7mhE.js"),[]),
31"../locales/pt/auth.json":()=>ct(()=>import("./auth-DKDB09k6.js"),[]),
31"../locales/pt/billing.json":()=>ct(()=>import("./billing-BoecnY4L.js"),[]),
31"../locales/pt/boards.json":()=>ct(()=>import("./boards-B31ATX3a.js"),[]),
31"../locales/pt/chat.json":()=>ct(()=>import("./chat-BjgDZXlp.js"),[]),
31"../locales/pt/common.json":()=>ct(()=>import("./common-BJxlz0O7.js"),[]),
31"../locales/pt/inbox.json":()=>ct(()=>import("./inbox-CfGviWkH.js"),[]),
31"../locales/pt/integrations.json":()=>ct(()=>import("./integrations-B6cXfxsa.js"),[]),
31"../locales/pt/jobs.json":()=>ct(()=>import("./jobs-CACE9_RD.js"),[]),
31"../locales/pt/library.json":()=>ct(()=>import("./library-D_DKYjkg.js"),[]),
31"../locales/pt/settings.json":()=>ct(()=>import("./settings-BD2jIQ-c.js"),[]),
31"../locales/pt/shopping.json":()=>ct(()=>import("./shopping-aRJ2WS2T.js"),[])
31}),`../locales/${t}/${e}.json`,4);M1.addResourceBundle(t,e,n.default,!0,!0)}))},DD=new Map,ND=async t=>{const e=DD.get(t);if(e)return ta.locale(MD[t].dayjsModule),await M1.changeLanguage(t),e;const n=MD[t],[r]=await Promise.all([n.antd(),n.dayjs(),t===of?Promise.resolve():Roe(t)]);ta.locale(n.dayjsModule),await M1.changeLanguage(t);const i={locale:t,antdLocale:r.default};return DD.set(t,i),i},Aoe=t=>Q4(t).htmlLang,$D=({explicit:t,serverLocale:e,handoffLocale:n,sharedLocale:r,anonymousLocale:i,browserLanguages:s})=>{const a=c=>c?Z9(c):null;return a(t)??a(e)??a(n)??a(r)??a(i)??nse(s??[])},Ooe="anon",QH=t=>{const e=t?.trim();return`${es.LOCALE_PREFIX}:${e||Ooe}`},mR=t=>{if(typeof localStorage>"u")return null;try{const e=localStorage.getItem(QH(t));return Z4(e)?e:null}catch{return null}},Ioe=(t,e)=>{if(!(typeof localStorage>"u"))try{localStorage.setItem(QH(t),J4(e))}catch{}},cb=()=>Q4(J4(M1.resolvedLanguage??M1.language)).intlTag,ZH=(t,e={})=>new Intl.NumberFormat(cb(),e).format(t),N4e=(t,e,n={})=>{const r=(e||"USD").toUpperCase();try{return new Intl.NumberFormat(cb(),{style:"currency",currency:r,...n}).format(t)}catch{return`${r} ${ZH(Math.round(t))}`}},$4e=(t,e={})=>new Intl.NumberFormat(cb(),{style:"percent",maximumFractionDigits:0,...e}).format(t),Poe=[["year",31536e6],["month",2592e6],["week",6048e5],["day",864e5],["hour",36e5],["minute",6e4]],Loe=(t,{fallback:e="â",numeric:n="auto"}={})=>{if(t==null||t==="")return e;const r=t instanceof Date?t.getTime():new Date(t).getTime();if(Number.isNaN(r))return e;const i=new Intl.RelativeTimeFormat(cb(),{numeric:n}),s=r-Date.now(),a=Math.abs(s);for(const[c,u]of Poe)if(a>=u)return i.format(Math.round(s/u),c);return i.format(Math.round(s/1e3),"second")},F4e=(t,e={})=>new Intl.ListFormat(cb(),{style:"long",type:"conjunction",...e}).format(t),JH="engagedObject",U4e=t=>({[JH]:t}),koe=t=>({kind:t.kind,id:t.id,label:t.label||void 0}),B4e=t=>{if(!t||typeof t!="object")return null;const e=t[JH];if(!e||typeof e!="object")return null;const{kind:n,id:r,label:i}=e;return typeof r!="string"||!r||n!=="proactive_proposal"&&n!=="agent_job"&&n!=="agent_job_run"?null:{kind:n,id:r,label:typeof i=="string"?i:""}},Moe=t=>{const e=t.engagedObjects?.map(koe)??[],n=e.find(a=>a.kind==="proactive_proposal"),r={...t.metadata??{},...n?{proactive_proposal_id:n.id}:{}},i=Object.keys(r).length>0,s=t.replyTo?{kind:t.replyTo.kind,assistant_message_id:t.replyTo.assistant_message_id,...t.replyTo.assistant_part_id?{assistant_part_id:t.replyTo.assistant_part_id}:{}}:null;return!t.currentTurnPayload&&!i&&e.length===0&&!s?null:{raw_text:t.message,...t.currentTurnPayload??{},...i?{message_metadata:r}:{},...e.length>0?{engaged_objects:e}:{},...s?{reply_to:s}:{}}},Doe=t=>{const e=!Nm.isEmpty(t.images)||!Nm.isEmpty(t.files),n=!Nm.isEmpty(t.libraryItemIds),r=Moe(t);if(e||n){const i=new FormData;return i.append("message",t.message),t.images?.forEach(s=>i.append("image",s,s.name)),t.files?.forEach(s=>i.append("file",s,s.name)),n&&i.append("library_item_ids",JSON.stringify(t.libraryItemIds)),r&&i.append("current_turn_payload",JSON.stringify(r)),{body:i,contentType:"multipart/form-data"}}return{body:{message:t.message,...r?{current_turn_payload:r}:{}},contentType:"application/json"}},GO={acknowledgeWebMessage:async(t,e,n)=>{const{data:r}=await xe.post(`/api/v2/profiles/${t}/conversations/${e}/messages/${n}/observed`,{},{baseURL:"",accessOperation:"observed"});return r},startChatTurn:async(t,e,n,r)=>{const{body:i,contentType:s}=Doe(r),a=await Xd(t,e,n),c=r.idempotencyKey??globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random()}`;let u;try{u=(await xe.post(`${a}/inputs`,i,{baseURL:"",headers:{Accept:"application/json","Content-Type":s,"Idempotency-Key":c}})).data}catch(h){const p=await Promise.resolve(xe.get(`${a}/inputs`,{baseURL:""})).then(v=>v.data.inputs.find(y=>y.external_key===c)).catch(()=>{});if(!p)throw h;u=p}return{turn_id:u.turn_id,input_id:u.id,source_input_order:u.input_order,chat_id:u.context_id,status:"queued",user_message_id:u.user_message_id}},listConversationInputs:async(t,e,n)=>{const r=await Xd(t,e,n);return(await xe.get(`${r}/inputs`,{baseURL:""})).data.inputs},listActiveTurns:async t=>(await xe.get(`/api/v2/profiles/${t}/chat-turns/active`,{baseURL:""})).data.turns,getChatTurn:async(t,e)=>(await xe.get(`/api/v2/profiles/${t}/chat-turns/${e}`,{baseURL:""})).data,cancelChatTurn:async(t,e)=>(await xe.delete(`/api/v2/profiles/${t}/chat-turns/${e}`,{baseURL:""})).data,claimDailyQuotaNotice:async t=>(await xe.post(`/api/v2/profiles/${t}/chat-turns/daily-quota-notices/claim`,{},{baseURL:""})).data.notice,acknowledgeDailyQuotaNotice:async(t,e,n)=>{await xe.post(`/api/v2/profiles/${t}/chat-turns/${e}/daily-quota-notices/ack`,{claim_token:n},{baseURL:""})}},fw=(t,e)=>`/api/v2/profiles/${t}/conversations/${e}`,hw={getChatMessages:async(t,e,n,r={})=>(await xe.get(`${fw(e,n)}/messages`,{baseURL:"",params:r})).data,changes:async(t,e,n)=>(await xe.get(`${fw(t,e)}/changes`,{baseURL:"",params:{after_revision:n}})).data,batch:async(t,e,n)=>(await xe.post(`${fw(t,e)}/messages/batch`,{message_ids:n},{baseURL:"",accessOperation:"message-batch"})).data,selectionHistory:async(t,e,n)=>(await xe.get(`${fw(t,e)}/selection-history`,{baseURL:"",params:{before:n}})).data},Ax={createProfile:async(t,e)=>{try{return(await xe.post("/profiles",e)).data}catch(n){throw console.error("Error creating profile:",n),n}},listProfiles:async(t,e=!0)=>{try{return(await xe.get("/profiles",{params:{active_only:e}})).data}catch(n){throw console.error("Error listing profiles:",n),n}},getProfile:async(t,e)=>{try{return(await xe.get(`/profiles/${e}`)).data}catch(n){throw console.error("Error getting profile:",n),n}},updateProfile:async(t,e,n)=>{try{return(await xe.patch(`/profiles/${e}`,n)).data}catch(r){throw console.error("Error updating profile:",r),r}},deleteProfile:async(t,e,n=!0)=>{try{return(await xe.delete(`/profiles/${e}`,{params:{hard_delete:n}}
31)).data}catch(r){throw console.error("Error deleting profile:",r),r}}},bl={getUser:async()=>(await xe.get("/users/me")).data,stampWebActivity:async()=>{await xe.post("/users/me/web-activity")},updateUser:async t=>(await xe.patch("/users/me",t)).data,deleteUser:async()=>(await xe.delete("/users/me")).data,getUsage:async()=>(await xe.get("/users/me/usage")).data,getTelegramAccounts:async()=>(await xe.get("/users/me/telegram")).data,unlinkTelegram:async t=>(await xe.delete("/users/me/telegram",{params:{telegram_id:t}})).data,createIMessageLinkToken:async t=>(await xe.post("/users/me/imessage/link-token",{profile_id:t})).data,unlinkIMessage:async t=>(await xe.delete("/users/me/imessage",{params:{account_id:t}})).data,getLinkedApps:async()=>(await xe.get("/users/me/apps")).data,linkChromeExtension:async t=>(await xe.post("/users/me/extension",t)).data,unlinkChromeExtension:async t=>(await xe.delete("/users/me/extension",{params:{installation_id:t}})).data,requestAccountDeletion:async()=>{await xe.post("/users/me/request-deletion")},validateAccountDeletion:async t=>{await xe.post("/users/deletion/validate",{token:t})},confirmAccountDeletion:async t=>{await xe.post("/users/deletion/confirm",{token:t})}},Noe="RATE_LIMIT_EXCEEDED",ez=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),$oe=t=>t==="chat_messages"||t==="library_items",Foe=t=>t==="guest"||t==="free"||t==="pro",tz=t=>{if(!ez(t))return null;const{kind:e,limit:n,used:r,resets_at:i,plan_tier:s}=t;return!$oe(e)||typeof n!="number"||!Number.isFinite(n)||n<0||typeof r!="number"||!Number.isFinite(r)||r<0||typeof i!="string"||!i||!Number.isFinite(Date.parse(i))||!Foe(s)?null:{kind:e,limit:n,used:r,resets_at:i,plan_tier:s}},Uoe=(t,e)=>e!==void 0&&e!==429||!ez(t)||t.code!==Noe?null:tz(t.details);class nz extends Error{constructor(e){super(`Daily ${e.kind} quota reached`),this.name="DailyQuotaError",this.outcome=e}}const j4e=t=>t instanceof nz,Boe=["chat_messages","library_items"],joe="dessence:rate-limit-exceeded",Hoe=t=>{const e=Uoe(t);return e?{kind:e.kind,limit:e.limit,used:e.used,resetsAt:e.resets_at,planTier:e.plan_tier}:null},zoe=t=>t.response?.status!==429?null:Hoe(t.response.data),H4e=t=>{const e=[];for(const n of Boe){const{used:r,limit:i}=t[n];i!==null&&r>=i&&e.push({kind:n,limit:i,used:r,resetsAt:t.resets_at,planTier:t.plan_tier})}return e},Voe=(t,e)=>{typeof window>"u"||window.dispatchEvent(new CustomEvent(joe,{detail:{...t,onPresented:e}}))};class KO extends nz{info;constructor(e){super({kind:e.kind,limit:e.limit,used:e.used,resets_at:e.resetsAt,plan_tier:e.planTier}),this.message=rz(e),this.name="RateLimitError",this.info=e}}const qoe=6e4,Woe=()=>ni("common:rateLimit.fallback"),rz=t=>{const e=ZH(t.limit),n=new Date(t.resetsAt).getTime()-Date.now();if(!Number.isFinite(n)||n<qoe)return t.kind==="chat_messages"?ni("common:rateLimit.chatMessagesSoon",{limit:e}):ni("common:rateLimit.libraryItemsSoon",{limit:e});const r=Loe(t.resetsAt);return t.kind==="chat_messages"?ni("common:rateLimit.chatMessages",{limit:e,resetsIn:r}):ni("common:rateLimit.libraryItems",{limit:e,resetsIn:r})},iz=["AUTHENTICATION_FAILED","TOKEN_EXPIRED","TOKEN_INVALID","VALIDATION_ERROR","INVALID_REQUEST","RATE_LIMIT_EXCEEDED","RESOURCE_NOT_FOUND","RESOURCE_ALREADY_EXISTS","INTERNAL_ERROR","DATABASE_ERROR","SERVICE_UNAVAILABLE","EXT
31ERNAL_SERVICE_ERROR","challenge_rejected","wrong_challenge_intent","auth_unavailable","missing_token","missing_code","missing_state","state_mismatch","exchange_failed","unavailable","auth/popup-blocked","auth/popup-closed-by-user","auth/cancelled-popup-request","auth/network-request-failed","auth/too-many-requests","auth/operation-not-allowed","auth/unauthorized-domain","auth/account-exists-with-different-credential","auth/invalid-credential","auth/user-disabled","auth/internal-error","auth/social-sign-in-in-progress","ERR_NETWORK","ECONNABORTED","ETIMEDOUT","ERR_CANCELED","unknown"],Goe=["challenge_request","challenge_consumption","credential_exchange","user_loading","provider_popup","provider_redirect"],Koe=["authentication","rate_limit","server","network","callback","unknown"],Yoe=t=>{if(typeof t!="object"||t===null)return!1;const e=t,n=e.diagnostics;return e.kind==="auth_failure"&&typeof e.message=="string"&&!!(n&&iz.includes(n.error_code)&&Koe.includes(n.error_category)&&Goe.includes(n.auth_stage)&&["1xx","2xx","3xx","4xx","5xx","unavailable"].includes(n.http_status_class))},vR=t=>typeof t=="string"&&iz.includes(t)?t:void 0,ub=(t,e,n)=>{if(Yoe(t))return t;const r=t,i=r?.response,s=t instanceof KO?429:i?.status,a=typeof s=="number"&&Number.isInteger(s)&&s>=100&&s<=599,c=t instanceof KO?"RATE_LIMIT_EXCEEDED":vR(i?.data?.details?.reason)??vR(i?.data?.code)??vR(r?.code)??"unknown";let u="unknown";return s===429||c==="auth/too-many-requests"?u="rate_limit":a&&s>=500?u="server":["ERR_NETWORK","ECONNABORTED","ETIMEDOUT","auth/network-request-failed"].includes(c)?u="network":["missing_token","missing_code","missing_state","state_mismatch"].includes(c)?u="callback":(s===401||s===403||c.startsWith("auth/")||c==="challenge_rejected")&&(u="authentication"),{kind:"auth_failure",message:n,diagnostics:{error_code:c,error_category:u,auth_stage:e,http_status_class:a?`${Math.floor(s/100)}xx`:"unavailable"}}},Xoe=t=>{if(typeof t!="object"||t===null||!("errors"in t))return;const{errors:e}=t;if(Array.isArray(e))for(const n of e){if(typeof n!="object"||n===null||!("msg"in n))continue;const{msg:r}=n;if(typeof r=="string"&&r.trim())return r}},Rs=(t,e)=>{if(typeof t=="object"&&t!==null){const r=t.response?.data,i=Xoe(r?.details);if(i)return i;const s=r?.message;if(typeof s=="string")return s;const a=r?.detail;if(typeof a=="string")return a}return e},Qoe={user:null,loading:!1,error:null,isInitialized:!1,profiles:[],selectedProfileId:null,profilesLoading:!1,profilesError:null,areProfilesInitialized:!1,accounts:[],accountsLoading:!1},cu=(t,e)=>{const n=t.user?.user_id??null;t.user=e,t.loading=!1,t.error=null,t.isInitialized=!0,t.profiles=[],t.profilesLoading=!1,t.profilesError=null,t.areProfilesInitialized=!1,n!==e.user_id&&(t.selectedProfileId=null,localStorage.removeItem(es.SELECTED_PROFILE_ID))},yR=t=>{t.user=null,t.loading=!1,t.isInitialized=!0,t.error=null,t.profiles=[],t.selectedProfileId=null,t.profilesLoading=!1,t.profilesError=null,t.areProfilesInitialized=!1,t.accounts=[],t.accountsLoading=!1,localStorage.removeItem(es.SELECTED_PROFILE_ID)},Ox=(t,e)=>({...t,is_new_user:e.is_new_user,auth_provider:e.auth_provider,landing_claim:e.landing_claim,destination:e.destination,auth_context:e.auth_context,auth_profile_id:e.profile_id}),Zw=Ts("user/loginUser",async(t,{rejectWithValue:e})=>{let n="credential_exchange";try{const r=await Xs.login(t);n="user_loading";const i=await bl.getUser();return Ox(i,r)}catch(r){return e(ub(r,n,Rs(r,"Failed to sign in")))}}),Jw=Ts("user/consumeEmailLinkUser",async(t,{rejectWithValue:e})=>{let n="challenge_consumption";try{const r=await Xs.consumeEmailLink({token:t});n="user_loading";const i=await bl.getUser();return Ox(i,r)}catch(r){return e(ub(r,n,Rs(r,"This sign-in link is invalid or has expired")))}}),e2=Ts("user/registerUser",async(t,{rejectWithValue:e})=>{let n="credential_exchange";try{const r=await Xs.register(t);n="user_loading";const i=await bl.getUser();return Ox(i,r)}catch(r){return e(ub(r,n,Rs(r,"Failed to create account")))}}),t2=Ts("user/loginWithFirebaseUser",async(t,{rejectWithValue:e})=>{let n="credential_exchange";try{const r=await Xs.loginWithFirebase(t);n="user_loading";const i=await bl.getUser();return Ox(i,r)}catch(r){return e(ub(r,n,Rs(r,"Failed to sign in with social provider")))}}),n2=Ts("user/validateSession",async(t,{rejectWithValue:e})=>{try{const n=await Xs.restoreSession();return!n.valid||!n.user_id?null:await bl.getUser()}catch(n){return e(Rs(n,"Failed to restore session"))}}),r2=Ts("user/fetchUser",async(t,{rejectWithValue:e})=>{const n="user_loading";try{return await bl.getUser()}catch(r){return e(ub(r,n,Rs(r,"Failed to fetch user")))}}),Fm=Ts("user/updateUser",async({updates:t},{rejectWithValue:e})=>{try{return await bl.updateUser(t)}catch(n){return e(Rs(n,"Failed to update user"))}}),i2=Ts("user/deleteUser",async(t,{rejectWithValue:e})=>{try{return await bl.deleteUser(),t}catch(n){return e(Rs(n,"Failed to delete user"))}}),s2=Ts("user/fetchProfiles",async(t,{rejectWithValue:e})=>{try{return await Ax.listProfiles(t,!0)}catch(n){return e(Rs(n,"Failed to fetch profiles"))}}),o2=Ts("user/createProfile",async({userId:t,name:e},{rejectWithValue:n})=>{try{const{profile:r}=await Ax.createProfile(t,{name:e});return r}catch(r){return n(Rs(r,"Failed to create profile"))}}),a2=Ts("user/updateProfile",async({userId:t,profileId:e,name:n},{rejectWithValue:r})=>{try{const{profile:i}=await Ax.updateProfile(t,e,{name:n});return i}catch(i){return r(Rs(i,"Failed to update profile"))}}),l2=Ts("user/deleteProfile",async({userId:t,profileId:e},{rejectWithValue:n,getState:r})=>{try{return r().user.profiles.length<=1?n("Cannot delete the last profile. You must have at least one profile."):(await Ax.deleteProfile(t,e,!0),e)}catch(i){return n(Rs(i,"Failed to delete profile"))}}),c2=Ts("user/fetchAccounts",async(t,{rejectWithValue:e})=>{try{return(await Xs.getAccounts()).accounts}catch(n){return e(Rs(n,"Failed to fetch accounts"))}}),u2=Ts("user/switchAccount",async(t,{rejectWithValue:e})=>{try{return await Xs.switchAccount(t),await bl.getUser()}catch(n){return e(Rs(n,"Failed to switch account"))}}),sz=Ts("user/logoutAccount",async(t,{rejectWithValue:e})=>{try{const n=await Xs.logoutAccount(t);let r=null;return n.switched_to&&(r=await bl.getUser()),{response:n,switchedToUser:r}}catch(n){return e(Rs(n,"Failed to logout account"))}}),oz=Ts("user/logoutAllAccounts",async(t,{rejectWithValue:e})=>{try{await Xs.logoutAll()}catch(n){return e(Rs(n,"Failed to logout all accounts"))}}),az=N4({name:"user",initialState:Qoe,reducers:{setUser:(t,e)=>{cu(t,e.payload)},clearUser:t=>{t.user=null,t.loading=!1,t.isInitialized=!0,t.error=null,t.profiles=[],t.selectedProfileId=null,t.areProfilesInitialized=!1,t.profilesLoading=!1,t.profilesError=null,t.accounts=[],t.accountsLoading=!1,localStorage.removeItem(es.SELECTED_PROFILE_ID)},setUserInitialized:t=>{t.isInitialized=!0},setSelectedProfile:(t,e)=>{t.selectedProfileId=e.payload,e.payload?localStorage.setItem(es.SELECTED_PROFILE_ID,e.payload):localStorage.removeItem(es.SELECTED_PROFILE_ID)},hydrateMockSession:(t,e)=>{t.user=e.payload.user,t.loading=!1,t.error=null,t.isInitialized=!0,t.profiles=e.payload.profiles,t.selectedProfileId=e.payload.selectedProfileId,t.profilesLoading=!1,t.profilesError=null,t.areProfilesInitialized=!0,e.payload.selectedProfileId?localStorage.setItem(es.SELECTED_PROFILE_ID,e.payload.selectedProfileId):localStorage.removeItem(es.SELECTED_PROFILE_ID)}},extraReducers:t=>{t.addCase(Zw.pending,e=>{e.loading=!0,e.error=null}).addCase(Zw.fulfilled,(e,n)=>{cu(e,n.payload)}).addCase(Zw.rejected,(e,n)=>{e.loading=!1,e.error=n.payload?.message??null,e.isInitialized=!0}),t.addCase(e2.pending,e=>{e.loading=!0,e.error=null}).addCase(Jw.pending,e=>{e.loading=!0,e.error=null}).addCase(Jw.fulfilled,(e,n)=>{cu(e,n.payload)}).addCase(Jw.rejected,(e,n)=>{e.loading=!1,e.error=n.payload?.message??null}).addCase(e2.fulfilled,(e,n)=>{cu(e,n.payload)}).addCase(e2.rejected,(e,n)=>{e.loading=!1,e.error=n.payload?.message??null,e.isInitialized=!0}),t.addCase(t2.pending,e=>{e.loading=!0,e.error=null}).addCase(t2.fulfilled,(e,n)=>{cu(e,n.payload)}).addCase(t2.rejected,(e,n)=>{e.loading=!1,e.error=n.payload?.message??null,e.isInitialized=!0}),t.addCase(n2.pending,e=>{e.loading=!0,e.error=null}).addCase(n2.fulfilled,(e,n)=>{if(n.payload){cu(e,n.payload);return}yR(e)}).addCase(n2.rejected,e=>{yR(e),e.error=null}),t.addCase(r2.pending,e=>{e.loading=!0,e.error=null}).addCase(r2.fulfilled,(e,n)=>{cu(e,n.payload)}).addCase(r2.rejected,(e,n)=>{e.loading=!1,e.error=n.payload?.message??null,e.isInitialized=!0}),t.addCase(Fm.pending,e=>{e.loading=!0,e.error=null}).addCase(Fm.fulfilled,(e,n)=>{e.loading=!1,e.user=n.payload,e.error=null}).addCase(Fm.rejected,(e,n)=>{e.loading=!1,e.error=n.payload}),t.addCase(i2.pending,e=>{e.loading=!0,e.error=null}).addCase(i2.fulfilled,e=>{e.loading=!1,e.user=null,e.isInitialized=!0,e.error=null,e.profiles=[],e.selectedProfileId=null,e.areProfilesInitialized=!1}).addCase(i2.rejected,(e,n)=>{e.loading=!1,e.error=n.payload}),t.addCase(s2.pending,e=>{e.profilesLoading=!0,e.profilesError=null}).addCase(s2.fulfilled,(e,n)=>{if(e.profilesLoading=!1,e.profiles=n.payload.profiles||[],e.areProfilesInitialized=!0,Nm.isEmpty(e.profiles)){e.selectedProfileId=null,localStorage.removeItem(es.SELECTED_PROFILE_ID);return}e.profiles.some(i=>i.profile_id===e.selectedProfileId)||(e.selectedProfileId=e.profiles[0].profile_id,localStorage.setItem(es.SELECTED_PROFILE_ID,e.selectedProfileId))}).addCase(s2.rejected,(e,n)=>{e.profilesLoading=!1,e.profilesError=n.payload,e.areProfilesInitialized=!0}),t.addCase(o2.pending,e=>{e.profilesLoading=!0,e.profilesError=null}).addCase(o2.fulfilled,(e,n)=>{e.profilesLoading=!1,e.profiles.push(n.payload),e.selectedProfileId=n.payload.profile_id,localStorage.setItem(es.SELECTED_PROFILE_ID,n.payload.profile_id)}).addCase(o2.rejected,(e,n)=>{e.profilesLoading=!1,e.profilesError=n.payload}),t.addCase(a2.pending,e=>{e.profilesLoading=!0,e.profilesError=null}).addCase(a2.fulfilled,(e,n)=>{e.profilesLoading=!1;const r=e.profiles.findIndex(i=>i.profile_id===n.payload.profile_id);r!==-1&&(e.profiles[r]=n.payload)}).addCase(a2.rejected,(e,n)=>{e.profilesLoading=!1,e.profilesError=n.payload}),t.addCase(l2.pending,e=>{e.profilesLoading=!0,e.profilesError=null}).addCase(l2.fulfilled,(e,n)=>{e.profilesLoading=!1;const r=n.payload;e.profiles=e.profiles.filter(i=>i.profile_id!==r),e.selectedProfileId===r&&(e.selectedProfileId=e.profiles[0]?.profile_id||null,e.selectedProfileId?localStorage.setItem(es.SELECTED_PROFILE_ID,e.selectedProfileId):localStorage.removeItem(es.SELECTED_PROFILE_ID))}).addCase(l2.rejected,(e,n)=>{e.profilesLoading=!1,e.profilesError=n.payload}),t.addCase(c2.pending,e=>{e.accountsLoading=!0}).addCase(c2.fulfilled,(e,n)=>{e.accountsLoading=!1;const r=new Set;e.accounts=n.payload.filter(i=>
31r.has(i.user_id)?!1:(r.add(i.user_id),!0))}).addCase(c2.rejected,e=>{e.accountsLoading=!1}),t.addCase(u2.pending,e=>{e.loading=!0,e.error=null}).addCase(u2.fulfilled,(e,n)=>{cu(e,n.payload)}).addCase(u2.rejected,(e,n)=>{e.loading=!1,e.error=n.payload}),t.addCase(sz.fulfilled,(e,n)=>{const{switchedToUser:r}=n.payload;r&&cu(e,r)}),t.addCase(oz.fulfilled,e=>{yR(e)})}}),{setUser:z4e,clearUser:Zoe,setUserInitialized:V4e,setSelectedProfile:Joe,hydrateMockSession:FD}=az.actions,eae=az.reducer,tae={key:"user",storage:Yie,whitelist:["user","selectedProfileId","profiles","accounts"],blacklist:["loading","error","profilesLoading","profilesError","isInitialized","areProfilesInitialized","accountsLoading"]},nae=d9({user:mre(tae,eae),chat:Pie,chatGeneration:Bie}),rae=()=>{const t=Nne({reducer:nae,middleware:n=>n({serializableCheck:{ignoredActions:[F4,wx,U4,B4,j4,H4]}}).prepend(Vie),devTools:!1}),e=Sre(t);return{store:t,persistor:e}},{store:lz,persistor:TC}=rae(),iae=ir.VITE_BASE_URL,cz=typeof window>"u"?void 0:window.location.hostname,D1=l4(iae,cz),q4e=l4(ir.VITE_STORAGE_BASE_URL,cz)||"/media";xe.defaults.baseURL=`${D1}${sZ}`;xe.defaults.withCredentials=!0;const nP="/auth/refresh",sae="/oauth/refresh",oae="/oauth/exchange",aae="/oauth/token",lae=["/auth/login","/auth/register","/auth/firebase","/auth/email-link/","/auth/telegram/mini-app-session","/auth/telegram/login/","/auth/account-connection","/auth/logout","/auth/switch","/auth/logout-all","/auth/forgot-password","/auth/reset-password","/auth/verify-email","/auth/resend-verification","/users/deletion/confirm",nP,sae,oae,aae],RC=new Set,YO=t=>{if(!t||!uae(t.url))return!1;const e=new URL(xe.getUri(t),window.location.origin),n=new URL(xe.defaults.baseURL??"",window.location.origin).origin;return[window.location.origin,n].includes(e.origin)&&/^\/api\/v[12]\//.test(e.pathname)},cae=t=>{const e=new URL(xe.getUri(t),window.location.origin);return e.searchParams.sort(),`${t.method??"get"}:${e.origin}${e.pathname}:${t.accessOperation??e.search}`};let Em=null,AC=null;gx("session-refresh",()=>{AC?.abort(),AC=null,Em=null,RC.clear()});const uae=t=>t?!lae.some(e=>t.includes(e)):!1,dae=async t=>{await xe.post(nP,void 0,{signal:t})},fae=async()=>{if(!Em){const t=new AbortController;AC=t;const e=dae(t.signal).then(()=>{}).finally(()=>{Em===e&&(Em=null,AC=null)});Em=e}return Em};let c_=null;const UD=()=>{if(c_)return c_;lz.dispatch({type:"user/clearUser"}),kr.closeSession();const t=kr.generation();return c_=(async()=>{await TC.purge(),t===kr.generation()&&window.location.pathname!==Zt.AUTHORIZE&&window.location.pathname!=="/"&&(window.location.href="/")})().finally(()=>{c_=null}),c_};xe.interceptors.request.use(async t=>{if(YO(t)){t._accessGeneration??=kr.generation(),t._accessKey=cae(t);const e=t._accessProbe!==void 0&&RC.delete(t._accessProbe);delete t._accessProbe,kr.admit(t._accessKey,t._accessGeneration,e)}return t},t=>{let e="Request failed";return t instanceof Error?e=t.message:typeof t=="string"&&(e=t),Promise.reject(new Error(e))});const hae=async t=>{const e=t.config;if(xe.isCancel(t)||kr.isKnownDenial(t))throw t;if(e?._accessGeneration!==void 0&&e._accessGeneration!==kr.generation())throw new rf("Account changed");if(t.response?.status===401&&e&&!e._retry&&YO(e)){e._retry=!0;try{await fae()}catch(n){throw e._accessGeneration!==void 0&&e._accessGeneration!==kr.generation()?new rf("Account changed"):(([401,403].includes(I4(n)??0)||n.code==="ERR_SESSION_EXPIRED")&&await UD(),n instanceof Error?n:new Error(String(n)))}if(e._accessGeneration!==void 0&&e._accessGeneration!==kr.generation())throw new rf("Account changed");return xe(e)}if(t.response?.status===401&&YO(e)&&await UD(),t.response?.status===403){if(e?._accessKey&&e._accessGeneration!==void 0&&(["get","head"].includes(e.method??"get")||e.accessOperation!==void 0)){const n=e;if(!kr.deny(n._accessKey,n._accessGeneration,t,async()=>{const i=crypto.randomUUID();RC.add(i);try{return await xe({...n,signal:void 0,_retry:!1,_accessProbe:i})}finally{RC.delete(i)}}))throw t}rp.error("axios","Access forbidden",t)}if(t.response?.status===404){const n=t.config?.url||"";/\/profiles\/[^/?#]+(?:[?#].*)?$/.test(n)&&rp.error("axios","Profile not found or access denied",t)}if(t.response?.status===429){const n=zoe(t);if(n)throw t.rateLimit=n,t.message=rz(n),Voe(n),new KO(n);t.message=Woe()}throw t.response?.status&&t.response?.status>=500&&rp.error("axios","Server error",t),e?.sessionBootstrap&&e.url===nP&&t.response?.status===401||(t.code==="ECONNABORTED"?SO(rv.ERROR_API_TIMEOUT,{endpoint:t.config?.url,duration_sec:void 0,status_code:t.response?.status}):SO(rv.ERROR_OCCURRED,{error_type:"api",status_code:t.response?.status,endpoint:t.config?.url,method:t.config?.method})),t};xe.interceptors.response.use(t=>{if(t.config._accessGeneration!==void 0&&t.config._accessGeneration!==kr.generation())throw new rf("Account changed");return t},hae);var _R={exports:{}},u_={},bR={exports:{}},ER={};var BD;function pae(){return BD||(BD=1,(function(t){function e(H,Y){var ee=H.length;H.push(Y);e:for(;0<ee;){var fe=ee-1>>>1,ue=H[fe];if(0<i(ue,Y))H[fe]=Y,H[ee]=ue,ee=fe;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var Y=H[0],ee=H.pop();if(ee!==Y){H[0]=ee;e:for(var fe=0,ue=H.length,z=ue>>>1;fe<z;){var Q=2*(fe+1)-1,ae=H[Q],de=Q+1,be=H[de];if(0>i(ae,ee))de<ue&&0>i(be,ae)?(H[fe]=be,H[de]=ee,fe=de):(H[fe]=ae,H[Q]=ee,fe=Q);else if(de<ue&&0>i(be,ee))H[fe]=be,H[de]=ee,fe=de;else break e}}return Y}function i(H,Y){var ee=H.sortIndex-Y.sortIndex;return ee!==0?ee:H.id-Y.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,c=a.now();t.unstable_now=function(){return a.now()-c}}var u=[],h=[],p=1,v=null,y=3,E=!1,S=!1,x=!1,C=!1,R=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function P(H){for(var Y=n(h);Y!==null;){if(Y.callback===null)r(h);else if(Y.startTime<=H)r(h),Y.sortIndex=Y.expirationTime,e(u,Y);else break;Y=n(h)}}function L(H){if(x=!1,P(H),!S)if(n(u)!==null)S=!0,D||(D=!0,G());else{var Y=n(h);Y!==null&&J(L,Y.startTime-H)}}var D=!1,N=-1,k=5,U=-1;function F(){return C?!0:!(t.unstable_now()-U<k)}function V(){if(C=!1,D){var H=t.unstable_now();U=H;var Y=!0;try{e:{S=!1,x&&(x=!1,A(N),N=-1),E=!0;var ee=y;try{t:{for(P(H),v=n(u);v!==null&&!(v.expirationTime>H&&F());){var fe=v.callback;if(typeof fe=="function"){v.callback=null,y=v.priorityLevel;var ue=fe(v.expirationTime<=H);if(H=t.unstable_now(),typeof ue=="function"){v.callback=ue,P(H),Y=!0;break t}v===n(u)&&r(u),P(H)}else r(u);v=n(u)}if(v!==null)Y=!0;else{var z=n(h);z!==null&&J(L,z.startTime-H),Y=!1}}break e}finally{v=null,y=ee,E=!1}Y=void 0}}finally{Y?G():D=!1}}}var G;if(typeof O=="function")G=function(){O(V)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,K=Z.port2;Z.port1.onmessage=V,G=function(){K.postMessage(null)}}else G=function(){R(V,0)};function J(H,Y){N=R(function(){H(t.unstable_now())},Y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return y},t.unstable_next=function(H){switch(y){case 1:case 2:case 3:var Y=3;break;default:Y=y}var ee=y;y=Y;try{return H()}finally{y=ee}},t.unstable_requestPaint=function(){C=!0},t.unstable_runWithPriority=function(H,Y){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var ee=y;y=H;try{return Y()}finally{y=ee}},t.unstable_scheduleCallback=function(H,Y,ee){var fe=t.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?fe+ee:fe):ee=fe,H){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=ee+ue,H={id:p++,callback:Y,priorityLevel:H,startTime:ee,expirationTime:ue,sortIndex:-1},ee>fe?(H.sortIndex=ee,e(h,H),n(u)===null&&H===n(h)&&(x?(A(N),N=-1):x=!0,J(L,ee-fe))):(H.sortIndex=ue,e(u,H),S||E||(S=!0,D||(D=!0,G()))),H},t.unstable_shouldYield=F,t.unstable_wrapCallback=function(H){var Y=y;return function(){var ee=y;y=Y;try{return H.apply(this,arguments)}finally{y=ee}}}})(ER)),ER}var jD;
vendor: 6,349 bytes, line 31
31function gae(){return jD||(jD=1,bR.exports=pae()),bR.exports}var SR={exports:{}},ys={};var HD;function mae(){if(HD)return ys;HD=1;var t=Ev();function e(u){var h="https://react.dev/errors/"+u;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+u+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(u,h,p){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:v==null?null:""+v,children:u,containerInfo:h,implementation:p}}var a=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(u,h){if(u==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return ys.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ys.createPortal=function(u,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(e(299));return s(u,h,null,p)},ys.flushSync=function(u){var h=a.T,p=r.p;try{if(a.T=null,r.p=2,u)return u()}finally{a.T=h,r.p=p,r.d.f()}},ys.preconnect=function(u,h){typeof u=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(u,h))},ys.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},ys.preinit=function(u,h){if(typeof u=="string"&&h&&typeof h.as=="string"){var p=h.as,v=c(p,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,E=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?r.d.S(u,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:y,fetchPriority:E}):p==="script"&&r.d.X(u,{crossOrigin:v,integrity:y,fetchPriority:E,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},ys.preinitModule=function(u,h){if(typeof u=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=c(h.as,h.crossOrigin);r.d.M(u,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(u)},ys.preload=function(u,h){if(typeof u=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,v=c(p,h.crossOrigin);r.d.L(u,p,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},ys.preloadModule=function(u,h){if(typeof u=="string")if(h){var p=c(h.as,h.crossOrigin);r.d.m(u,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(u)},ys.requestFormReset=function(u){r.d.r(u)},ys.unstable_batchedUpdates=function(u,h){return u(h)},ys.useFormState=function(u,h,p){return a.H.useFormState(u,h,p)},ys.useFormStatus=function(){return a.H.useHostTransitionStatus()},ys.version="19.2.6",ys}var zD;function uz(){if(zD)return SR.exports;zD=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),SR.exports=mae(),SR.exports}var VD;function vae(){if(VD)return u_;VD=1;var t=gae(),e=Ev(),n=uz();function r(o){var l="https://react.dev/errors/"+o;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)l+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var l=o,d=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(d=l.return),o=l.return;while(o)}return l.tag===3?d:null}function a(o){if(o.tag===13){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function c(o){if(o.tag===31){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function u(o){if(s(o)!==o)throw Error(r(188))}function h(o){var l=o.alternate;if(!l){if(l=s(o),l===null)throw Error(r(188));return l!==o?null:o}for(var d=o,g=l;;){var b=d.return;if(b===null)break;var T=b.alternate;if(T===null){if(g=b.return,g!==null){d=g;continue}break}if(b.child===T.child){for(T=b.child;T;){if(T===d)return u(b),o;if(T===g)return u(b),l;T=T.sibling}throw Error(r(188))}if(d.return!==g.return)d=b,g=T;else{for(var M=!1,B=b.child;B;){if(B===d){M=!0,d=b,g=T;break}if(B===g){M=!0,g=b,d=T;break}B=B.sibling}if(!M){for(B=T.child;B;){if(B===d){M=!0,d=T,g=b;break}if(B===g){M=!0,g=T,d=b;break}B=B.sibling}if(!M)throw Error(r(189))}}if(d.alternate!==g)throw Error(r(190))}if(d.tag!==3)throw Error(r(188));return d.stateNode.current===d?o:l}function p(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o;for(o=o.child;o!==null;){if(l=p(o),l!==null)return l;o=o.sibling}return null}var v=Object.assign,y=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),O=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function G(o){return o===null||typeof o!="object"?null:(o=V&&o[V]||o["@@iterator"],typeof o=="function"?o:null)}var Z=Symbol.for("react.client.reference");function K(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===Z?null:o.displayName||o.name||null;
vendor: 14,508 bytes, lines 31-38
31if(typeof o=="string")return o;switch(o){case x:return"Fragment";case R:return"Profiler";case C:return"StrictMode";case L:return"Suspense";case D:return"SuspenseList";case U:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case S:return"Portal";case O:return o.displayName||"Context";case A:return(o._context.displayName||"Context")+".Consumer";case P:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case N:return l=o.displayName||null,l!==null?l:K(o.type)||"Memo";case k:l=o._payload,o=o._init;try{return K(o(l))}catch{}}return null}var J=Array.isArray,H=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},fe=[],ue=-1;function z(o){return{current:o}}function Q(o){0>ue||(o.current=fe[ue],fe[ue]=null,ue--)}function ae(o,l){ue++,fe[ue]=o.current,o.current=l}var de=z(null),be=z(null),Se=z(null),je=z(null);function Ne(o,l){switch(ae(Se,l),ae(be,o),ae(de,null),l.nodeType){case 9:case 11:o=(o=l.documentElement)&&(o=o.namespaceURI)?L0(o):0;break;default:if(o=l.tagName,l=l.namespaceURI)l=L0(l),o=gh(l,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}Q(de),ae(de,o)}function ze(){Q(de),Q(be),Q(Se)}function tt(o){o.memoizedState!==null&&ae(je,o);var l=de.current,d=gh(l,o.type);l!==d&&(ae(be,o),ae(de,d))}function Je(o){be.current===o&&(Q(de),Q(be)),je.current===o&&(Q(je),Md._currentValue=ee)}var We,Ve;function Pt(o){if(We===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);We=l&&l[1]||"",Ve=-1<d.stack.indexOf(` 32 at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return` 33`+We+o+Ve}var dt=!1;function $e(o,l){if(!o||dt)return"";dt=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(l){var Ie=function(){throw Error()};if(Object.defineProperty(Ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ie,[])}catch(Ee){var ve=Ee}Reflect.construct(o,[],Ie)}else{try{Ie.call()}catch(Ee){ve=Ee}o.call(Ie.prototype)}}else{try{throw Error()}catch(Ee){ve=Ee}(Ie=o())&&typeof Ie.catch=="function"&&Ie.catch(function(){})}}catch(Ee){if(Ee&&ve&&typeof Ee.stack=="string")return[Ee.stack,ve.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var T=g.DetermineComponentFrameRoot(),M=T[0],B=T[1];if(M&&B){var ne=M.split(` 34`),me=B.split(` 35`);for(b=g=0;g<ne.length&&!ne[g].includes("DetermineComponentFrameRoot");)g++;for(;b<me.length&&!me[b].includes("DetermineComponentFrameRoot");)b++;if(g===ne.length||b===me.length)for(g=ne.length-1,b=me.length-1;1<=g&&0<=b&&ne[g]!==me[b];)b--;for(;1<=g&&0<=b;g--,b--)if(ne[g]!==me[b]){if(g!==1||b!==1)do if(g--,b--,0>b||ne[g]!==me[b]){var Ce=` 36`+ne[g].replace(" at new "," at ");return o.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",o.displayName)),Ce}while(1<=g&&0<=b);break}}}finally{dt=!1,Error.prepareStackTrace=d}return(d=o?o.displayName||o.name:"")?Pt(d):""}function vt(o,l){switch(o.tag){case 26:case 27:case 5:return Pt(o.type);case 16:return Pt("Lazy");case 13:return o.child!==l&&l!==null?Pt("Suspense Fallback"):Pt("Suspense");case 19:return Pt("SuspenseList");case 0:case 15:return $e(o.type,!1);case 11:return $e(o.type.render,!1);case 1:return $e(o.type,!0);case 31:return Pt("Activity");default:return""}}function ot(o){try{var l="",d=null;do l+=vt(o,d),d=o,o=o.return;while(o);return l}catch(g){return` 37Error generating stack: `+g.message+` 38`+g.stack}}var Bt=Object.prototype.hasOwnProperty,An=t.unstable_scheduleCallback,Ut=t.unstable_cancelCallback,qt=t.unstable_shouldYield,or=t.unstable_requestPaint,Hn=t.unstable_now,Yr=t.unstable_getCurrentPriorityLevel,xr=t.unstable_ImmediatePriority,pi=t.unstable_UserBlockingPriority,zn=t.unstable_NormalPriority,Zn=t.unstable_LowPriority,ar=t.unstable_IdlePriority,Vi=t.log,Vn=t.unstable_setDisableYieldValue,Wt=null,Nt=null;function Xt(o){if(typeof Vi=="function"&&Vn(o),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Wt,o)}catch{}}var nn=Math.clz32?Math.clz32:ki,Xr=Math.log,Li=Math.LN2;function ki(o){return o>>>=0,o===0?32:31-(Xr(o)/Li|0)|0}var gi=256,qn=262144,si=4194304;function Wn(o){var l=o&42;if(l!==0)return l;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Os(o,l,d){var g=o.pendingLanes;if(g===0)return 0;var b=0,T=o.suspendedLanes,M=o.pingedLanes;o=o.warmLanes;var B=g&134217727;return B!==0?(g=B&~T,g!==0?b=Wn(g):(M&=B,M!==0?b=Wn(M):d||(d=B&~o,d!==0&&(b=Wn(d))))):(B=g&~T,B!==0?b=Wn(B):M!==0?b=Wn(M):d||(d=g&~o,d!==0&&(b=Wn(d)))),b===0?0:l!==0&&l!==b&&(l&T)===0&&(T=b&-b,d=l&-l,T>=d||T===32&&(d&4194048)!==0)?l:b}function mi(o,l){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&l)===0}function Mn(o,l){switch(o){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ro(){var o=si;return si<<=1,(si&62914560)===0&&(si=4194304),o}function vi(o){for(var l=[],d=0;31>d;d++)l.push(o);return l}function yi(o,l){o.pendingLanes|=l,l!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function io(o,l,d,g,b,T){var M=o.pendingLanes;o.pendingLanes=d,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=d,o.entangledLanes&=d,o.errorRecoveryDisabledLanes&=d,o.shellSuspendCounter=0;var B=o.entanglements,ne=o.expirationTimes,me=o.hiddenUpdates;for(d=M&~d;0<d;){var Ce=31-nn(d),Ie=1<<Ce;B[Ce]=0,ne[Ce]=-1;var ve=me[Ce];if(ve!==null)for(me[Ce]=null,Ce=0;Ce<ve.length;Ce++){var Ee=ve[Ce];Ee!==null&&(Ee.lane&=-536870913)}d&=~Ie}g!==0&&Co(o,g,0),T!==0&&b===0&&o.tag!==0&&(o.suspendedLanes|=T&~(M&~l))}function Co(o,l,d){o.pendingLanes|=l,o.suspendedLanes&=~l;var g=31-nn(l);o.entangledLanes|=l,o.entanglements[g]=o.entanglements[g]|1073741824|d&261930}function xo(o,l){var d=o.entangledLanes|=l;for(o=o.entanglements;d;){var g=31-nn(d),b=1<<g;b&l|o[g]&l&&(o[g]|=l),d&=~b}}function te(o,l){var d=l&-l;return d=(d&42)!==0?1:se(d),(d&(o.suspendedLanes|l))!==0?0:d}function se(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function pe(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Oe(){var o=Y.p;return o!==0?o:(o=window.event,o===void 0?32:NS(o.type))}function Le(o,l){var d=Y.p;try{return Y.p=o,l()}finally{Y.p=d}}var Ke=Math.random().toString(36).slice(2),qe="__reactFiber$"+Ke,Ye="__reactProps$"+Ke,Ge="__reactContainer$"+Ke,it="__reactEvents$"+Ke,nt="__reactListeners$"+Ke,xt="__reactHandles$"+Ke,ht="__reactResources$"+Ke,lt="__reactMarker$"+Ke;function rn(o){delete o[qe],delete o[Ye],delete o[it],delete o[nt],delete o[xt]}function On(o){var l=o[qe];if(l)return l;for(var d=o.parentNode;d;){if(l=d[Ge]||d[qe]){if(d=l.alternate,l.child!==null||d!==null&&d.child!==null)for(o=wS(o);o!==null;){if(d=o[qe])return d;o=wS(o)}return l}o=d,d=o.parentNode}return null}function bt(o){if(o=o[qe]||o[Ge]){var l=o.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return o}return null}function Et(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o.stateNode;throw Error(r(33))}function xn(o){var l=o[ht];return l||(l=o[ht]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function kt(o){o[lt]=!0}var ss=new Set,Mi={};function Tr(o,l){mr(o,l),mr(o+"Capture",l)}function mr(o,l){for(Mi[o]=l,o=0;o<l.length;o++)ss.add(l[o])}var _i=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),yt={},dn={};function Qr(o){return Bt.call(dn,o)?!0:Bt.call(yt,o)?!1:_i.test(o)?dn[o]=!0:(yt[o]=!0,!1)}function so(o,l,d){if(Qr(l))if(d===null)o.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":o.removeAttribute(l);return;case"boolean":var g=l.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){o.removeAttribute(l);return}}o.setAttribute(l,""+d)}}function oo(o,l,d){if(d===null)o.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttribute(l,""+d)}}function Tt(o,l,d,g){if(g===null)o.removeAttribute(d);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(d);return}o.setAttributeNS(l,d,""+g)}}function Tn(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Di(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function qi(o,l,d){var g=Object.getOwnPropertyDescriptor(o.constructor.prototype,l);if(!o.hasOwnProperty(l)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var b=g.get,T=g.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return b.call(this)},set:function(M){d=""+M,T.call(this,M)}}),Object.defineProperty(o,l,{enumerable:g.enumerable}),{getValue:function(){return d},setValue:function(M){d=""+M},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function Cl(o){if(!o._valueTracker){var l=Di(o)?"checked":"value";o._valueTracker=qi(o,l,""+o[l])}}function Da(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var d=l.getValue(),g="";return o&&(g=Di(o)?o.checked?"true":"false":o.value),o=g,o!==d?(l.setValue(o),!0):!1}function yn(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var ia=/[\n"\\]/g;function Wi(o){return o.replace(ia,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Vu(o,l,d,g,b,T,M,B){o.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?o.type=M:o.removeAttribute("type"),l!=null?M==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+Tn(l)):o.value!==""+Tn(l)&&(o.value=""+Tn(l)):M!=="submit"&&M!=="reset"||o.removeAttribute("value"),l!=null?Cf(o,M,Tn(l)):d!=null?Cf(o,M,Tn(d)):g!=null&&o.removeAttribute("value"),b==null&&T!=null&&(o.defaultChecked=!!T),b!=null&&(o.checked=b&&typeof b!="function"&&typeof b!="symbol"),B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?o.name=""+Tn(B):o.removeAttribute("name")}function Dv(o,l,d,g,b,T,M,B){if(T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(o.type=T),l!=null||d!=null){if(!(T!=="submit"&&T!=="reset"||l!=null)){Cl(o);return}d=d!=null?""+Tn(d):"",l=l!=null?""+Tn(l):d,B||l===o.value||(o.value=l),o.defaultValue=l}g=g??b,g=typeof g!="function"&&typeof g!="symbol"&&!!g,o.checked=B?o.checked:!!g,o.defaultChecked=!!g,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(o.name=M),Cl(o)}function Cf(o,l,d){l==="number"&&yn(o.ownerDocument)===o||o.defaultValue===""+d||(o.defaultValue=""+d)}function qu(o,l,d,g){if(o=o.options,l){l={};for(var b=0;b<d.length;b++)l["$"+d[b]]=!0;for(d=0;d<o.length;d++)b=l.hasOwnProperty("$"+o[d].value),o[d].selected!==b&&(o[d].selected=b),b&&g&&(o[d].defaultSelected=!0)}else{for(d=""+Tn(d),l=null,b=0;b<o.length;b++){if(o[b].value===d){o[b].selected=!0,g&&(o[b].defaultSelected=!0);return}l!==null||o[b].disabled||(l=o[b])}l!==null&&(l.selected=!0)}}function Nv(o,l,d){if(l!=null&&(l=""+Tn(l),l!==o.value&&(o.value=l),d==null)){o.defaultValue!==l&&(o.defaultValue=l);return}o.defaultValue=d!=null?""+Tn(d):""}function Np(o,l,d,g){if(l==null){if(g!=null){if(d!=null)throw Error(r(92));if(J(g)){if(1<g.length)throw Error(r(93));g=g[0]}d=g}d==null&&(d=""),l=d}d=Tn(l),o.defaultValue=d,g=o.textContent,g===d&&g!==""&&g!==null&&(o.value=g),Cl(o)}function xl(o,l){if(l){var d=o.firstChild;if(d&&d===o.lastChild&&d.nodeType===3){d.nodeValue=l;return}}o.textContent=l}var Wu=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function $v(o,l,d){var g=l.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?g?o.setProperty(l,""):l==="float"?o.cssFloat="":o[l]="":g?o.setProperty(l,d):typeof d!="number"||d===0||Wu.has(l)?l==="float"?o.cssFloat=d:o[l]=(""+d).trim():o[l]=d+"px"}
vendor: 4,435 bytes, line 38
38function Fv(o,l,d){if(l!=null&&typeof l!="object")throw Error(r(62));if(o=o.style,d!=null){for(var g in d)!d.hasOwnProperty(g)||l!=null&&l.hasOwnProperty(g)||(g.indexOf("--")===0?o.setProperty(g,""):g==="float"?o.cssFloat="":o[g]="");for(var b in l)g=l[b],l.hasOwnProperty(b)&&d[b]!==g&&$v(o,b,g)}else for(var T in l)l.hasOwnProperty(T)&&$v(o,T,l[T])}function Uv(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Vb=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),qb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xf(o){return qb.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function sa(){}var Bv=null;function jv(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Gu=null,Rc=null;function Wb(o){var l=bt(o);if(l&&(o=l.stateNode)){var d=o[Ye]||null;e:switch(o=l.stateNode,l.type){case"input":if(Vu(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),l=d.name,d.type==="radio"&&l!=null){for(d=o;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+Wi(""+l)+'"][type="radio"]'),l=0;l<d.length;l++){var g=d[l];if(g!==o&&g.form===o.form){var b=g[Ye]||null;if(!b)throw Error(r(90));Vu(g,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(l=0;l<d.length;l++)g=d[l],g.form===o.form&&Da(g)}break e;case"textarea":Nv(o,d.value,d.defaultValue);break e;case"select":l=d.value,l!=null&&qu(o,!!d.multiple,l,!1)}}}var Hv=!1;
vendor: 9,119 bytes, line 38
38function Gb(o,l,d){if(Hv)return o(l,d);Hv=!0;try{var g=o(l);return g}finally{if(Hv=!1,(Gu!==null||Rc!==null)&&(oh(),Gu&&(l=Gu,o=Rc,Rc=Gu=null,Wb(l),o)))for(l=0;l<o.length;l++)Wb(o[l])}}function Tf(o,l){var d=o.stateNode;if(d===null)return null;var g=d[Ye]||null;if(g===null)return null;d=g[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(o=o.type,g=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!g;break e;default:o=!1}if(o)return null;if(d&&typeof d!="function")throw Error(r(231,l,typeof d));return d}var To=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zv=!1;if(To)try{var Rf={};Object.defineProperty(Rf,"passive",{get:function(){zv=!0}}),window.addEventListener("test",Rf,Rf),window.removeEventListener("test",Rf,Rf)}catch{zv=!1}var Tl=null,Vv=null,$p=null;function Jn(){if($p)return $p;var o,l=Vv,d=l.length,g,b="value"in Tl?Tl.value:Tl.textContent,T=b.length;for(o=0;o<d&&l[o]===b[o];o++);var M=d-o;for(g=1;g<=M&&l[d-g]===b[T-g];g++);return $p=b.slice(o,1<g?1-g:void 0)}function In(o){var l=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&l===13&&(o=13)):o=l,o===10&&(o=13),32<=o||o===13?o:0}function Fp(){return!0}function Kb(){return!1}function os(o){function l(d,g,b,T,M){this._reactName=d,this._targetInst=b,this.type=g,this.nativeEvent=T,this.target=M,this.currentTarget=null;for(var B in o)o.hasOwnProperty(B)&&(d=o[B],this[B]=d?d(T):T[B]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?Fp:Kb,this.isPropagationStopped=Kb,this}return v(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Fp)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Fp)},persist:function(){},isPersistent:Fp}),l}var Ac={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Up=os(Ac),Af=v({},Ac,{view:0,detail:0}),Yb=os(Af),qv,Zr,Oc,oa=v({},Af,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ku,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Oc&&(Oc&&o.type==="mousemove"?(qv=o.screenX-Oc.screenX,Zr=o.screenY-Oc.screenY):Zr=qv=0,Oc=o),qv)},movementY:function(o){return"movementY"in o?o.movementY:Zr}}),Wv=os(oa),Gv=v({},oa,{dataTransfer:0}),ao=os(Gv),Xb=v({},Af,{relatedTarget:0}),Bp=os(Xb),Qb=v({},Ac,{animationName:0,elapsedTime:0,pseudoElement:0}),Zb=os(Qb),Jb=v({},Ac,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),eE=os(Jb),Is=v({},Ac,{data:0}),tE=os(Is),Ps={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ET={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},nE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rl(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=nE[o])?!!l[o]:!1}function Ku(){return Rl}var Kv=v({},Af,{key:function(o){if(o.key){var l=Ps[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=In(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?ET[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ku,charCode:function(o){return o.type==="keypress"?In(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?In(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),hr=os(Kv),Al=v({},oa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jp=os(Al),ST=v({},Af,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ku}),Yv=os(ST),wT=v({},Ac,{propertyName:0,elapsedTime:0,pseudoElement:0}),CT=os(wT),xT=v({},oa,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),rE=os(xT),Hp=v({},Ac,{newState:0,oldState:0}),Yu=os(Hp),TT=[9,13,27,32],zp=To&&"CompositionEvent"in window,Xu=null;To&&"documentMode"in document&&(Xu=document.documentMode);var Xv=To&&"TextEvent"in window&&!Xu,Vp=To&&(!zp||Xu&&8<Xu&&11>=Xu),Qv=" ",iE=!1;function qp(o,l){switch(o){case"keyup":return TT.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wp(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Qu=!1;function sE(o,l){switch(o){case"compositionend":return Wp(l);case"keypress":return l.which!==32?null:(iE=!0,Qv);case"textInput":return o=l.data,o===Qv&&iE?null:o;default:return null}}function Ls(o,l){if(Qu)return o==="compositionend"||!zp&&qp(o,l)?(o=Jn(),$p=Vv=Tl=null,Qu=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Vp&&l.locale!=="ko"?null:l.data;default:return null}}var Zv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zu(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!Zv[o.type]:l==="textarea"}function Jv(o,l,d,g){Gu?Rc?Rc.push(g):Rc=[g]:Gu=g,l=mo(l,"onChange"),0<l.length&&(d=new Up("onChange","change",null,d,g),o.push({event:d,listeners:l}))}var Ju=null,Of=null;function RT(o){nl(o,0)}function Gp(o){var l=Et(o);if(Da(l))return o}function oE(o,l){if(o==="change")return l}var aE=!1;if(To){var Ol;if(To){var ey="oninput"in document;if(!ey){var lE=document.createElement("div");lE.setAttribute("oninput","return;"),ey=typeof lE.oninput=="function"}Ol=ey}else Ol=!1;aE=Ol&&(!document.documentMode||9<document.documentMode)}function Kp(){Ju&&(Ju.detachEvent("onpropertychange",ty),Of=Ju=null)}function ty(o){if(o.propertyName==="value"&&Gp(Of)){var l=[];Jv(l,Of,o,jv(o)),Gb(RT,l)}}function Il(o,l,d){o==="focusin"?(Kp(),Ju=l,Of=d,Ju.attachEvent("onpropertychange",ty)):o==="focusout"&&Kp()}function Yp(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Gp(Of)}function AT(o,l){if(o==="click")return Gp(l)}function OT(o,l){if(o==="input"||o==="change")return Gp(l)}function IT(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var oi=typeof Object.is=="function"?Object.is:IT;function Gi(o,l){if(oi(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var d=Object.keys(o),g=Object.keys(l);if(d.length!==g.length)return!1;for(g=0;g<d.length;g++){var b=d[g];if(!Bt.call(l,b)||!oi(o[b],l[b]))return!1}return!0}function ny(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function cE(o,l){var d=ny(o);o=0;for(var g;d;){if(d.nodeType===3){if(g=o+d.textContent.length,o<=l&&g>=l)return{node:d,offset:l-o};o=g}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=ny(d)}}function uE(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?uE(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function dE(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var l=yn(o.document);l instanceof o.HTMLIFrameElement;){try{var d=typeof l.contentWindow.location.href=="string"}catch{d=!1}if(d)o=l.contentWindow;else break;l=yn(o.document)}return l}function ry(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}var PT=To&&"documentMode"in document&&11>=document.documentMode,Ro=null,le=null,we=null,_e=!1;function et(o,l,d){var g=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;_e||Ro==null||Ro!==yn(g)||(g=Ro,"selectionStart"in g&&ry(g)?g={start:g.
vendor: 17,470 bytes, line 38
38selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),we&&Gi(we,g)||(we=g,g=mo(le,"onSelect"),0<g.length&&(l=new Up("onSelect","select",null,l,d),o.push({event:l,listeners:g}),l.target=Ro)))}function gt(o,l){var d={};return d[o.toLowerCase()]=l.toLowerCase(),d["Webkit"+o]="webkit"+l,d["Moz"+o]="moz"+l,d}var ln={animationend:gt("Animation","AnimationEnd"),animationiteration:gt("Animation","AnimationIteration"),animationstart:gt("Animation","AnimationStart"),transitionrun:gt("Transition","TransitionRun"),transitionstart:gt("Transition","TransitionStart"),transitioncancel:gt("Transition","TransitionCancel"),transitionend:gt("Transition","TransitionEnd")},Mr={},Dn={};To&&(Dn=document.createElement("div").style,"AnimationEvent"in window||(delete ln.animationend.animation,delete ln.animationiteration.animation,delete ln.animationstart.animation),"TransitionEvent"in window||delete ln.transitionend.transition);function Na(o){if(Mr[o])return Mr[o];if(!ln[o])return o;var l=ln[o],d;for(d in l)if(l.hasOwnProperty(d)&&d in Dn)return Mr[o]=l[d];return o}var fE=Na("animationend"),ks=Na("animationiteration"),If=Na("animationstart"),LT=Na("transitionrun"),ed=Na("transitionstart"),Xp=Na("transitioncancel"),Pf=Na("transitionend"),En=new Map,iy="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");iy.push("scrollEnd");function lo(o,l){En.set(o,l),Tr(l,[o])}var Ic=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},co=[],td=0,sy=0;function Pc(){for(var o=td,l=sy=td=0;l<o;){var d=co[l];co[l++]=null;var g=co[l];co[l++]=null;var b=co[l];co[l++]=null;var T=co[l];if(co[l++]=null,g!==null&&b!==null){var M=g.pending;M===null?b.next=b:(b.next=M.next,M.next=b),g.pending=b}T!==0&&Lf(d,b,T)}}function Ao(o,l,d,g){co[td++]=o,co[td++]=l,co[td++]=d,co[td++]=g,sy|=g,o.lanes|=g,o=o.alternate,o!==null&&(o.lanes|=g)}function nd(o,l,d,g){return Ao(o,l,d,g),kf(o)}function Pl(o,l){return Ao(o,null,null,l),kf(o)}function Lf(o,l,d){o.lanes|=d;var g=o.alternate;g!==null&&(g.lanes|=d);for(var b=!1,T=o.return;T!==null;)T.childLanes|=d,g=T.alternate,g!==null&&(g.childLanes|=d),T.tag===22&&(o=T.stateNode,o===null||o._visibility&1||(b=!0)),o=T,T=T.return;return o.tag===3?(T=o.stateNode,b&&l!==null&&(b=31-nn(d),o=T.hiddenUpdates,g=o[b],g===null?o[b]=[l]:g.push(l),l.lane=d|536870912),T):null}function kf(o){if(50<sh)throw sh=0,y0=null,Error(r(185));for(var l=o.return;l!==null;)o=l,l=o.return;return o.tag===3?o.stateNode:null}var Lc={};function Qp(o,l,d,g){this.tag=o,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function as(o,l,d,g){return new Qp(o,l,d,g)}function kc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Ki(o,l){var d=o.alternate;return d===null?(d=as(o.tag,l,o.key,o.mode),d.elementType=o.elementType,d.type=o.type,d.stateNode=o.stateNode,d.alternate=o,o.alternate=d):(d.pendingProps=l,d.type=o.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=o.flags&65011712,d.childLanes=o.childLanes,d.lanes=o.lanes,d.child=o.child,d.memoizedProps=o.memoizedProps,d.memoizedState=o.memoizedState,d.updateQueue=o.updateQueue,l=o.dependencies,d.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},d.sibling=o.sibling,d.index=o.index,d.ref=o.ref,d.refCleanup=o.refCleanup,d}function Mf(o,l){o.flags&=65011714;var d=o.alternate;return d===null?(o.childLanes=0,o.lanes=l,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=d.childLanes,o.lanes=d.lanes,o.child=d.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=d.memoizedProps,o.memoizedState=d.memoizedState,o.updateQueue=d.updateQueue,o.type=d.type,l=d.dependencies,o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),o}function Zp(o,l,d,g,b,T){var M=0;if(g=o,typeof o=="function")kc(o)&&(M=1);else if(typeof o=="string")M=f5(o,d,de.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case U:return o=as(31,d,l,b),o.elementType=U,o.lanes=T,o;case x:return Mc(d.children,b,T,l);case C:M=8,b|=24;break;case R:return o=as(12,d,l,b|2),o.elementType=R,o.lanes=T,o;case L:return o=as(13,d,l,b),o.elementType=L,o.lanes=T,o;case D:return o=as(19,d,l,b),o.elementType=D,o.lanes=T,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case O:M=10;break e;case A:M=9;break e;case P:M=11;break e;case N:M=14;break e;case k:M=16,g=null;break e}M=29,d=Error(r(130,o===null?"null":typeof o,"")),g=null}return l=as(M,d,l,b),l.elementType=o,l.type=g,l.lanes=T,l}function Mc(o,l,d,g){return o=as(7,o,g,l),o.lanes=d,o}function oy(o,l,d){return o=as(6,o,null,l),o.lanes=d,o}function Df(o){var l=as(18,null,null,0);return l.stateNode=o,l}function rd(o,l,d){return l=as(4,o.children!==null?o.children:[],o.key,l),l.lanes=d,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}var Jp=new WeakMap;function uo(o,l){if(typeof o=="object"&&o!==null){var d=Jp.get(o);return d!==void 0?d:(l={value:o,source:l,stack:ot(l)},Jp.set(o,l),l)}return{value:o,source:l,stack:ot(l)}}var Dc=[],id=0,eg=null,vr=0,Gn=[],fo=0,Ll=null,Oo=1,aa="";function Io(o,l){Dc[id++]=vr,Dc[id++]=eg,eg=o,vr=l}function sd(o,l,d){Gn[fo++]=Oo,Gn[fo++]=aa,Gn[fo++]=Ll,Ll=o;var g=Oo;o=aa;var b=32-nn(g)-1;g&=~(1<<b),d+=1;var T=32-nn(l)+b;if(30<T){var M=b-b%5;T=(g&(1<<M)-1).toString(32),g>>=M,b-=M,Oo=1<<32-nn(l)+b|d<<b|g,aa=T+o}else Oo=1<<T|d<<b|g,aa=o}function Nf(o){o.return!==null&&(Io(o,1),sd(o,1,0))}function kl(o){for(;o===eg;)eg=Dc[--id],Dc[id]=null,vr=Dc[--id],Dc[id]=null;for(;o===Ll;)Ll=Gn[--fo],Gn[fo]=null,aa=Gn[--fo],Gn[fo]=null,Oo=Gn[--fo],Gn[fo]=null}function od(o,l){Gn[fo++]=Oo,Gn[fo++]=aa,Gn[fo++]=Ll,Oo=l.id,aa=l.overflow,Ll=o}var Dr=null,Nn=null,Yt=!1,Ml=null,ho=!1,ay=Error(r(519));function Dl(o){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ca(uo(l,o)),ay}function hE(o){var l=o.stateNode,d=o.type,g=o.memoizedProps;switch(l[qe]=o,l[Ye]=g,d){case"dialog":on("cancel",l),on("close",l);break;case"iframe":case"object":case"embed":on("load",l);break;case"video":case"audio":for(d=0;d<ur.length;d++)on(ur[d],l);break;case"source":on("error",l);break;case"img":case"image":case"link":on("error",l),on("load",l);break;case"details":on("toggle",l);break;case"input":on("invalid",l),Dv(l,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0);break;case"select":on("invalid",l);break;case"textarea":on("invalid",l),Np(l,g.value,g.defaultValue,g.children)}d=g.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||l.textContent===""+d||g.suppressHydrationWarning===!0||pS(l.textContent,d)?(g.popover!=null&&(on("beforetoggle",l),on("toggle",l)),g.onScroll!=null&&on("scroll",l),g.onScrollEnd!=null&&on("scrollend",l),g.onClick!=null&&(l.onclick=sa),l=!0):l=!1,l||Dl(o,!0)}function $f(o){for(Dr=o.return;Dr;)switch(Dr.tag){case 5:case 31:case 13:ho=!1;return;case 27:case 3:ho=!0;return;default:Dr=Dr.return}}function la(o){if(o!==Dr)return!1;if(!Yt)return $f(o),Yt=!0,!1;var l=o.tag,d;if((d=l!==3&&l!==27)&&((d=l===5)&&(d=o.type,d=!(d!=="form"&&d!=="button")||Zi(o.type,o.memoizedProps)),d=!d),d&&Nn&&Dl(o),$f(o),l===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Nn=SS(o)}else if(l===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Nn=SS(o)}else l===27?(l=Nn,Fi(o.type)?(o=D0,D0=null,Nn=o):Nn=l):Nn=Dr?gs(o.stateNode.nextSibling):null;return!0}function Nl(){Nn=Dr=null,Yt=!1}function j(){var o=Ml;return o!==null&&(ds===null?ds=o:ds.push.apply(ds,o),Ml=null),o}function ca(o){Ml===null?Ml=[o]:Ml.push(o)}var ad=z(null),ai=null,$t=null;function $l(o,l,d){ae(ad,l._currentValue),l._currentValue=d}function $a(o){o._currentValue=ad.current,Q(ad)}function ly(o,l,d){for(;o!==null;){var g=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,g!==null&&(g.childLanes|=l)):g!==null&&(g.childLanes&l)!==l&&(g.childLanes|=l),o===d)break;o=o.return}}function Fa(o,l,d,g){var b=o.child;for(b!==null&&(b.return=o);b!==null;){var T=b.dependencies;if(T!==null){var M=b.child;T=T.firstContext;e:for(;T!==null;){var B=T;T=b;for(var ne=0;ne<l.length;ne++)if(B.context===l[ne]){T.lanes|=d,B=T.alternate,B!==null&&(B.lanes|=d),ly(T.return,d,o),g||(M=null);break e}T=B.next}}else if(b.tag===18){if(M=b.return,M===null)throw Error(r(341));M.lanes|=d,T=M.alternate,T!==null&&(T.lanes|=d),ly(M,d,o),M=null}else M=b.child;if(M!==null)M.return=b;else for(M=b;M!==null;){if(M===o){M=null;break}if(b=M.sibling,b!==null){b.return=M.return,M=b;break}M=M.return}b=M}}function ld(o,l,d,g){o=null;for(var b=l,T=!1;b!==null;){if(!T){if((b.flags&524288)!==0)T=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var M=b.alternate;if(M===null)throw Error(r(387));if(M=M.memoizedProps,M!==null){var B=b.type;oi(b.pendingProps.value,M.value)||(o!==null?o.push(B):o=[B])}}else if(b===je.current){if(M=b.alternate,M===null)throw Error(r(387));M.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(o!==null?o.push(Md):o=[Md])}b=b.return}o!==null&&Fa(l,o,d,g),l.flags|=262144}function tg(o){for(o=o.firstContext;o!==null;){if(!oi(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Nc(o){ai=o,$t=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function bi(o){return ua(ai,o)}function ng(o,l){return ai===null&&Nc(o),ua(o,l)}function ua(o,l){var d=l._currentValue;if(l={context:l,memoizedValue:d,next:null},$t===null){if(o===null)throw Error(r(308));$t=l,o.dependencies={lanes:0,firstContext:l},o.flags|=524288}else $t=$t.next=l;return d}var kT=typeof AbortController<"u"?AbortController:function(){var o=[],l=this.signal={aborted:!1,addEventListener:function(d,g){o.push(g)}};this.abort=function(){l.aborted=!0,o.forEach(function(d){return d()})}},MT=t.unstable_scheduleCallback,DT=t.unstable_NormalPriority,Ur={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cy(){return{controller:new kT,data:new Map,refCount:0}}function Ms(o){o.refCount--,o.refCount===0&&MT(DT,function(){o.controller.abort()})}var Ff=null,uy=0,cd=0,ud=null;function NT(o,l){if(Ff===null){var d=Ff=[];uy=0,cd=R0(),ud={status:"pending",value:void 0,then:function(g){d.push(g)}}}return uy++,l.then(Fl,Fl),l}function Fl(){if(--uy===0&&Ff!==null){ud!==null&&(ud.status="fulfilled");var o=Ff;Ff=null,cd=0,ud=null;for(var l=0;l<o.length;l++)(0,o[l])()}}function $T(o,l){var d=[],g={status:"pending",value:null,reason:null,then:function(b){d.push(b)}};return o.then(function(){g.status="fulfilled",g.value=l;for(var b=0;b<d.length;b++)(0,d[b])(l)},function(b){for(g.status="rejected",g.reason=b,b=0;b<d.length;b++)(0,d[b])(void 0)}),g}var pE=H.S;H.S=function(o,l){g0=Hn(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&NT(o,l),pE!==null&&pE(o,l)};var Ei=z(null);function dy(){var o=Ei.current;return o!==null?o:Kn.pooledCache}function rg(o,l){l===null?ae(Ei,Ei.current):ae(Ei,l.pool)}function gE(){var o=dy();return o===null?null:{parent:Ur._currentValue,pool:o}}var dd=Error(r(460)),fy=Error(r(474)),Uf=Error(r(542)),Bf={then:function(){}};function mE(o){return o=o.status,o==="fulfilled"||o==="rejected"}function vE(o,l,d){switch(d=o[d],d===void 0?o.push(l):d!==l&&(l.then(sa,sa),l=d),l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,yE(o),o;default:if(typeof l.status=="string")l.then(sa,sa);else{if(o=Kn,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=l,o.status="pending",o.then(function(g){if(l.status==="pending"){var b=l;b.status="fulfilled",b.value=g}},function(g){if(l.status==="pending"){var b=l;b.status="rejected",b.reason=g}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,yE(o),o}throw Po=l,dd}}function Ua(o){try{var l=o._init;return l(o._payload)}catch(d){throw d!==null&&typeof d=="object"&&typeof d.then=="function"?(Po=d,dd):d}}var Po=null;function jf(){if(Po===null)throw Error(r(459));var o=Po;return Po=null,o}function yE(o){if(o===dd||o===Uf)throw Error(r(483))}var $c=null,Hf=0;function Ds(o){var l=Hf;return Hf+=1,$c===null&&($c=[]),vE($c,o,l)}function Fc(o,l){l=l.props.ref,o.ref=l!==void 0?l:null}function da(o,l){throw l.$$typeof===y?Error(r(525)):(o=Object.prototype.toString.call(l),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o)))}function Ns(o){function l(ce,ie){if(o){var ge=ce.deletions;ge===null?(ce.deletions=[ie],ce.flags|=16):ge.push(ie)}}function d(ce,ie){if(!o)return null;for(;ie!==null;)l(ce,ie),ie=ie.sibling;return null}function g(ce){for(var ie=new Map;ce!==null;)ce.key!==null?ie.set(ce.key,ce):ie.set(ce.index,ce),ce=ce.sibling;return ie}function b(ce,ie){return ce=Ki(ce,ie),ce.index=0,ce.sibling=null,ce}function T(ce,ie,ge){return ce.index=ge,o?(ge=ce.alternate,ge!==null?(ge=ge.index,ge<ie?(ce.flags|=67108866,ie):ge):(ce.flags|=67108866,ie)):(ce.flags|=1048576,ie)}function M(ce){return o&&ce.alternate===null&&(ce.flags|=67108866),ce}function B(ce,ie,ge,Re){return ie===null||ie.tag!==6?(ie=oy(ge,ce.mode,Re),ie.return=ce,ie):(ie=b(ie,ge),ie.return=ce,ie)}function ne(ce,ie,ge,Re){var ft=ge.type;return ft===x?Ce(ce,ie,ge.props.children,Re,ge.key):ie!==null&&(ie.elementType===ft||typeof ft=="object"&&ft!==null&&ft.$$typeof===k&&Ua(ft)===ie.type)?(ie=b(ie,ge.props),Fc(ie,ge),ie.return=ce,ie):(ie=Zp(ge.type,ge.key,ge.props,null,ce.mode,Re),Fc(ie,ge),ie.return=ce,ie)}function me(ce,ie,ge,Re){return ie===null||ie.tag!==4||ie.stateNode.containerInfo!==ge.containerInfo||ie.stateNode.implementation!==ge.implementation?(ie=rd(ge,ce.mode,Re),ie.return=ce,ie):(ie=b(ie,ge.children||[]),ie.return=ce,ie)}function Ce(ce,ie,ge,Re,ft){return ie===null||ie.tag!==7?(ie=Mc(ge,ce.mode,Re,ft),ie.return=ce,ie):(ie=b(ie,ge),ie.return=ce,ie)}function Ie(ce,ie,ge){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return ie=oy(""+ie,ce.mode,ge),ie.return=ce,ie;if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case E:return ge=Zp(ie.type,ie.key,ie.props,null,ce.mode,ge),Fc(ge,ie),ge.return=ce,ge;case S:return ie=rd(ie,ce.mode,ge),ie.return=ce,ie;case k:return ie=Ua(ie),Ie(ce,ie,ge)}if(J(ie)||G(ie))return ie=Mc(ie,ce.mode,ge,null),ie.return=ce,ie;if(typeof ie.then=="function")return Ie(ce,Ds(ie),ge);if(ie.$$typeof===O)return Ie(ce,ng(ce,ie),ge);da(ce,ie)}return null}function ve(ce,ie,ge,Re){var ft=ie!==null?ie.key:null;if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return ft!==null?null:B(ce,ie,""+ge,Re);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case E:return ge.key===ft?ne(ce,ie,ge,Re):null;case S:return ge.key===ft?me(ce,ie,ge,Re):null;case k:return ge=Ua(ge),ve(ce,ie,ge,Re)}if(J(ge)||G(ge))return ft!==null?null:Ce(ce,ie,ge,Re,null);if(typeof ge.then=="function")return ve(ce,ie,Ds(ge),Re);if(ge.$$typeof===O)return ve(ce,ie,ng(ce,ge),Re);da(ce,ge)}return null}function Ee(ce,ie,ge,Re,ft){if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return ce=ce.get(ge)||null,B(ie,ce,""+Re,ft);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case E:return ce=ce.get(Re.key===null?ge:Re.key)||null,ne(ie,ce,Re,ft);case S:return ce=ce.get(Re.key===null?ge:Re.key)||null,me(ie,ce,Re,ft);case k:return Re=Ua(Re),Ee(ce,ie,ge,Re,ft)}if(J(Re)||G(Re))return ce=ce.get(ge)||null,Ce(ie,ce,Re,ft,null);if(typeof Re.then=="function")return Ee(ce,ie,ge,Ds(Re),ft);if(Re.$$typeof===O)return Ee(ce,ie,ge,ng(ie,Re),ft);da(ie,Re)}return null}function rt(ce,ie,ge,Re){for(var ft=null,_n=null,at=ie,Kt=ie=0,un=null;at!==null&&Kt<ge.length;Kt++){at.index>Kt?(un=at,at=null):un=at.sibling;var bn=ve(ce,at,ge[Kt],Re);if(bn===null){at===null&&(at=un);break}o&&at&&bn.alternate===null&&l(ce,at),ie=T(bn,ie,Kt),_n===null?ft=bn:_n.sibling=bn,_n=bn,at=un}if(Kt===ge.length)return d(ce,at),Yt&&Io(ce,Kt),ft;if(at===null){for(;Kt<ge.length;Kt++)at=Ie(ce,ge[Kt],Re),at!==null&&(ie=T(at,ie,Kt),_n===null?ft=at:_n.sibling=at,_n=at);return Yt&&Io(ce,Kt),ft}for(at=g(at);Kt<ge.length;Kt++)un=Ee(at,ce,Kt,ge[Kt],Re),un!==null&&(o&&un.alternate!==null&&at.delete(un.key===null?Kt:un.key),ie=T(un,ie,Kt),_n===null?ft
vendor: 4,908 bytes, line 38
38=un:_n.sibling=un,_n=un);return o&&at.forEach(function(sc){return l(ce,sc)}),Yt&&Io(ce,Kt),ft}function mt(ce,ie,ge,Re){if(ge==null)throw Error(r(151));for(var ft=null,_n=null,at=ie,Kt=ie=0,un=null,bn=ge.next();at!==null&&!bn.done;Kt++,bn=ge.next()){at.index>Kt?(un=at,at=null):un=at.sibling;var sc=ve(ce,at,bn.value,Re);if(sc===null){at===null&&(at=un);break}o&&at&&sc.alternate===null&&l(ce,at),ie=T(sc,ie,Kt),_n===null?ft=sc:_n.sibling=sc,_n=sc,at=un}if(bn.done)return d(ce,at),Yt&&Io(ce,Kt),ft;if(at===null){for(;!bn.done;Kt++,bn=ge.next())bn=Ie(ce,bn.value,Re),bn!==null&&(ie=T(bn,ie,Kt),_n===null?ft=bn:_n.sibling=bn,_n=bn);return Yt&&Io(ce,Kt),ft}for(at=g(at);!bn.done;Kt++,bn=ge.next())bn=Ee(at,ce,Kt,bn.value,Re),bn!==null&&(o&&bn.alternate!==null&&at.delete(bn.key===null?Kt:bn.key),ie=T(bn,ie,Kt),_n===null?ft=bn:_n.sibling=bn,_n=bn);return o&&at.forEach(function(E5){return l(ce,E5)}),Yt&&Io(ce,Kt),ft}function Un(ce,ie,ge,Re){if(typeof ge=="object"&&ge!==null&&ge.type===x&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case E:e:{for(var ft=ge.key;ie!==null;){if(ie.key===ft){if(ft=ge.type,ft===x){if(ie.tag===7){d(ce,ie.sibling),Re=b(ie,ge.props.children),Re.return=ce,ce=Re;break e}}else if(ie.elementType===ft||typeof ft=="object"&&ft!==null&&ft.$$typeof===k&&Ua(ft)===ie.type){d(ce,ie.sibling),Re=b(ie,ge.props),Fc(Re,ge),Re.return=ce,ce=Re;break e}d(ce,ie);break}else l(ce,ie);ie=ie.sibling}ge.type===x?(Re=Mc(ge.props.children,ce.mode,Re,ge.key),Re.return=ce,ce=Re):(Re=Zp(ge.type,ge.key,ge.props,null,ce.mode,Re),Fc(Re,ge),Re.return=ce,ce=Re)}return M(ce);case S:e:{for(ft=ge.key;ie!==null;){if(ie.key===ft)if(ie.tag===4&&ie.stateNode.containerInfo===ge.containerInfo&&ie.stateNode.implementation===ge.implementation){d(ce,ie.sibling),Re=b(ie,ge.children||[]),Re.return=ce,ce=Re;break e}else{d(ce,ie);break}else l(ce,ie);ie=ie.sibling}Re=rd(ge,ce.mode,Re),Re.return=ce,ce=Re}return M(ce);case k:return ge=Ua(ge),Un(ce,ie,ge,Re)}if(J(ge))return rt(ce,ie,ge,Re);if(G(ge)){if(ft=G(ge),typeof ft!="function")throw Error(r(150));return ge=ft.call(ge),mt(ce,ie,ge,Re)}if(typeof ge.then=="function")return Un(ce,ie,Ds(ge),Re);if(ge.$$typeof===O)return Un(ce,ie,ng(ce,ge),Re);da(ce,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint"?(ge=""+ge,ie!==null&&ie.tag===6?(d(ce,ie.sibling),Re=b(ie,ge),Re.return=ce,ce=Re):(d(ce,ie),Re=oy(ge,ce.mode,Re),Re.return=ce,ce=Re),M(ce)):d(ce,ie)}return function(ce,ie,ge,Re){try{Hf=0;var ft=Un(ce,ie,ge,Re);return $c=null,ft}catch(at){if(at===dd||at===Uf)throw at;var _n=as(29,at,null,ce.mode);return _n.lanes=Re,_n.return=ce,_n}}}var Uc=Ns(!0),hy=Ns(!1),Ba=!1;function Bc(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fa(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function ja(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Ul(o,l,d){var g=o.updateQueue;if(g===null)return null;if(g=g.shared,(Sn&2)!==0){var b=g.pending;return b===null?l.next=l:(l.next=b.next,b.next=l),g.pending=l,l=kf(o),Lf(o,null,d),l}return Ao(o,g,l,d),kf(o)}function Bl(o,l,d){if(l=l.updateQueue,l!==null&&(l=l.shared,(d&4194048)!==0)){var g=l.lanes;g&=o.pendingLanes,d|=g,l.lanes=d,xo(o,d)}}function py(o,l){var d=o.updateQueue,g=o.alternate;if(g!==null&&(g=g.updateQueue,d===g)){var b=null,T=null;if(d=d.firstBaseUpdate,d!==null){do{var M={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};T===null?b=T=M:T=T.next=M,d=d.next}while(d!==null);T===null?b=T=l:T=T.next=l}else b=T=l;d={baseState:g.baseState,firstBaseUpdate:b,lastBaseUpdate:T,shared:g.shared,callbacks:g.callbacks},o.updateQueue=d;return}o=d.lastBaseUpdate,o===null?d.firstBaseUpdate=l:o.next=l,d.lastBaseUpdate=l}var ig=!1;function Nr(){if(ig){var o=ud;if(o!==null)throw o}}function jc(o,l,d,g){ig=!1;var b=o.updateQueue;Ba=!1;var T=b.firstBaseUpdate,M=b.lastBaseUpdate,B=b.shared.pending;if(B!==null){b.shared.pending=null;var ne=B,me=ne.next;ne.next=null,M===null?T=me:M.next=me,M=ne;var Ce=o.alternate;Ce!==null&&(Ce=Ce.updateQueue,B=Ce.lastBaseUpdate,B!==M&&(B===null?Ce.firstBaseUpdate=me:B.next=me,Ce.lastBaseUpdate=ne))}if(T!==null){var Ie=b.baseState;M=0,Ce=me=ne=null,B=T;do{var ve=B.lane&-536870913,Ee=ve!==B.lane;if(Ee?(cn&ve)===ve:(g&ve)===ve){ve!==0&&ve===cd&&(ig=!0),Ce!==null&&(Ce=Ce.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});e:{var rt=o,mt=B;ve=l;var Un=d;switch(mt.tag){case 1:if(rt=mt.payload,typeof rt=="function"){Ie=rt.call(Un,Ie,ve);break e}Ie=rt;break e;case 3:rt.flags=rt.flags&-65537|128;case 0:if(rt=mt.payload,ve=typeof rt=="function"?rt.call(Un,Ie,ve):rt,ve==null)break e;Ie=v({},Ie,ve);break e;case 2:Ba=!0}}
vendor: 5,662 bytes, line 38
38ve=B.callback,ve!==null&&(o.flags|=64,Ee&&(o.flags|=8192),Ee=b.callbacks,Ee===null?b.callbacks=[ve]:Ee.push(ve))}else Ee={lane:ve,tag:B.tag,payload:B.payload,callback:B.callback,next:null},Ce===null?(me=Ce=Ee,ne=Ie):Ce=Ce.next=Ee,M|=ve;if(B=B.next,B===null){if(B=b.shared.pending,B===null)break;Ee=B,B=Ee.next,Ee.next=null,b.lastBaseUpdate=Ee,b.shared.pending=null}}while(!0);Ce===null&&(ne=Ie),b.baseState=ne,b.firstBaseUpdate=me,b.lastBaseUpdate=Ce,T===null&&(b.shared.lanes=0),Za|=M,o.lanes=M,o.memoizedState=Ie}}function gy(o,l){if(typeof o!="function")throw Error(r(191,o));o.call(l)}function Lo(o,l){var d=o.callbacks;if(d!==null)for(o.callbacks=null,o=0;o<d.length;o++)gy(d[o],l)}var jl=z(null),Hc=z(0);function Hl(o,l){o=Qa,ae(Hc,o),ae(jl,l),Qa=o|l.baseLanes}function sg(){ae(Hc,Qa),ae(jl,jl.current)}function Si(){Qa=Hc.current,Q(jl),Q(Hc)}var Yi=z(null),po=null;function zl(o){var l=o.alternate;ae(Rr,Rr.current&1),ae(Yi,o),po===null&&(l===null||jl.current!==null||l.memoizedState!==null)&&(po=o)}function my(o){ae(Rr,Rr.current),ae(Yi,o),po===null&&(po=o)}function og(o){o.tag===22?(ae(Rr,Rr.current),ae(Yi,o),po===null&&(po=o)):Vl()}function Vl(){ae(Rr,Rr.current),ae(Yi,Yi.current)}function wi(o){Q(Yi),po===o&&(po=null),Q(Rr)}var Rr=z(0);function ag(o){for(var l=o;l!==null;){if(l.tag===13){var d=l.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||M0(d)||Vg(d)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Ha=0,Lt=null,$n=null,Br=null,fd=!1,zc=!1,Vc=!1,lg=0,zf=0,qc=null,vy=0;function Ar(){throw Error(r(321))}function Vf(o,l){if(l===null)return!1;for(var d=0;d<l.length&&d<o.length;d++)if(!oi(o[d],l[d]))return!1;return!0}function cg(o,l,d,g,b,T){return Ha=T,Lt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,H.H=o===null||o.memoizedState===null?Qf:Uy,Vc=!1,T=d(g,b),Vc=!1,zc&&(T=_y(l,d,g,b)),yy(o),T}function yy(o){H.H=Yc;var l=$n!==null&&$n.next!==null;if(Ha=0,Br=$n=Lt=null,fd=!1,zf=0,qc=null,l)throw Error(r(300));o===null||Ir||(o=o.dependencies,o!==null&&tg(o)&&(Ir=!0))}function _y(o,l,d,g){Lt=o;var b=0;do{if(zc&&(qc=null),zf=0,zc=!1,25<=b)throw Error(r(301));if(b+=1,Br=$n=null,o.updateQueue!=null){var T=o.updateQueue;T.lastEffect=null,T.events=null,T.stores=null,T.memoCache!=null&&(T.memoCache.index=0)}H.H=By,T=l(d,g)}while(zc);return T}function ug(){var o=H.H,l=o.useState()[0];return l=typeof l.then=="function"?Wc(l):l,o=o.useState()[0],($n!==null?$n.memoizedState:null)!==o&&(Lt.flags|=1024),l}function by(){var o=lg!==0;return lg=0,o}function dg(o,l,d){l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~d}function fg(o){if(fd){for(o=o.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}fd=!1}Ha=0,Br=$n=Lt=null,zc=!1,zf=lg=0,qc=null}function Xi(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Br===null?Lt.memoizedState=Br=o:Br=Br.next=o,Br}function Or(){if($n===null){var o=Lt.alternate;o=o!==null?o.memoizedState:null}else o=$n.next;var l=Br===null?Lt.memoizedState:Br.next;if(l!==null)Br=l,$n=o;else{if(o===null)throw Lt.alternate===null?Error(r(467)):Error(r(310));$n=o,o={memoizedState:$n.memoizedState,baseState:$n.baseState,baseQueue:$n.baseQueue,queue:$n.queue,next:null},Br===null?Lt.memoizedState=Br=o:Br=Br.next=o}return Br}function hg(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Wc(o){var l=zf;return zf+=1,qc===null&&(qc=[]),o=vE(qc,o,l),l=Lt,(Br===null?l.memoizedState:Br.next)===null&&(l=l.alternate,H.H=l===null||l.memoizedState===null?Qf:Uy),o}function qf(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Wc(o);if(o.$$typeof===O)return bi(o)}throw Error(r(438,String(o)))}function Wf(o){var l=null,d=Lt.updateQueue;if(d!==null&&(l=d.memoCache),l==null){var g=Lt.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(l={data:g.data.map(function(b){return b.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),d===null&&(d=hg(),Lt.updateQueue=d),d.memoCache=l,d=l.data[l.index],d===void 0)for(d=l.data[l.index]=Array(o),g=0;g<o;g++)d[g]=F;return l.index++,d}function za(o,l){return typeof l=="function"?l(o):l}function hd(o){var l=Or();return Gt(l,$n,o)}function Gt(o,l,d){var g=o.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=d;var b=o.baseQueue,T=g.pending;if(T!==null){if(b!==null){var M=b.next;b.next=T.next,T.next=M}l.baseQueue=b=T,g.pending=null}if(T=o.baseState,b===null)o.memoizedState=T;else{l=b.next;var B=M=null,ne=null,me=l,Ce=!1;do{var Ie=me.lane&-536870913;if(Ie!==me.lane?(cn&Ie)===Ie:(Ha&Ie)===Ie){var ve=me.revertLane;if(ve===0)ne!==null&&(ne=ne.next={lane:0,revertLane:0,gesture:null,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null}),Ie===cd&&(Ce=!0);else if((Ha&ve)===ve){me=me.next,ve===cd&&(Ce=!0);continue}else Ie={lane:0,revertLane:me.revertLane,gesture:null,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null},ne===null?(B=ne=Ie,M=T):ne=ne.next=Ie,Lt.lanes|=ve,Za|=ve;Ie=me.action,Vc&&d(T,Ie),T=me.hasEagerState?me.eagerState:d(T,Ie)}else ve={lane:Ie,revertLane:me.revertLane,gesture:me.gesture,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null},ne===null?(B=ne=ve,M=T):ne=ne.next=ve,Lt.lanes|=Ie,Za|=Ie;me=me.next}
vendor: 3,428 bytes, line 38
38while(me!==null&&me!==l);if(ne===null?M=T:ne.next=B,!oi(T,o.memoizedState)&&(Ir=!0,Ce&&(d=ud,d!==null)))throw d;o.memoizedState=T,o.baseState=M,o.baseQueue=ne,g.lastRenderedState=T}return b===null&&(g.lanes=0),[o.memoizedState,g.dispatch]}function Ey(o){var l=Or(),d=l.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=o;var g=d.dispatch,b=d.pending,T=l.memoizedState;if(b!==null){d.pending=null;var M=b=b.next;do T=o(T,M.action),M=M.next;while(M!==b);oi(T,l.memoizedState)||(Ir=!0),l.memoizedState=T,l.baseQueue===null&&(l.baseState=T),d.lastRenderedState=T}return[T,g]}function _E(o,l,d){var g=Lt,b=Or(),T=Yt;if(T){if(d===void 0)throw Error(r(407));d=d()}else d=l();var M=!oi(($n||b).memoizedState,d);if(M&&(b.memoizedState=d,Ir=!0),b=b.queue,yg(bE.bind(null,g,b,o),[o]),b.getSnapshot!==l||M||Br!==null&&Br.memoizedState.tag&1){if(g.flags|=2048,ql(9,{destroy:void 0},Sy.bind(null,g,b,d,l),null),Kn===null)throw Error(r(349));T||(Ha&127)!==0||pd(g,l,d)}return d}function pd(o,l,d){o.flags|=16384,o={getSnapshot:l,value:d},l=Lt.updateQueue,l===null?(l=hg(),Lt.updateQueue=l,l.stores=[o]):(d=l.stores,d===null?l.stores=[o]:d.push(o))}function Sy(o,l,d,g){l.value=d,l.getSnapshot=g,EE(l)&&$s(o)}function bE(o,l,d){return d(function(){EE(l)&&$s(o)})}function EE(o){var l=o.getSnapshot;o=o.value;try{var d=l();return!oi(o,d)}catch{return!0}}function $s(o){var l=Pl(o,2);l!==null&&fs(l,o,2)}function wy(o){var l=Xi();if(typeof o=="function"){var d=o;if(o=d(),Vc){Xt(!0);try{d()}finally{Xt(!1)}}}return l.memoizedState=l.baseState=o,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:za,lastRenderedState:o},l}function Gf(o,l,d,g){return o.baseState=d,Gt(o,$n,typeof g=="function"?g:za)}function Cy(o,l,d,g,b){if(Kc(o))throw Error(r(485));if(o=l.action,o!==null){var T={payload:b,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){T.listeners.push(M)}};H.T!==null?d(!0):T.isTransition=!1,g(T),d=l.pending,d===null?(T.next=l.pending=T,xy(l,T)):(T.next=d.next,l.pending=d.next=T)}}function xy(o,l){var d=l.action,g=l.payload,b=o.state;if(l.isTransition){var T=H.T,M={};H.T=M;try{var B=d(b,g),ne=H.S;ne!==null&&ne(M,B),Ty(o,l,B)}catch(me){ha(o,l,me)}finally{T!==null&&M.types!==null&&(T.types=M.types),H.T=T}}else try{T=d(b,g),Ty(o,l,T)}catch(me){ha(o,l,me)}}function Ty(o,l,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(g){ls(o,l,g)},function(g){return ha(o,l,g)}):ls(o,l,d)}function ls(o,l,d){l.status="fulfilled",l.value=d,pg(l),o.state=d,l=o.pending,l!==null&&(d=l.next,d===l?o.pending=null:(d=d.next,l.next=d,xy(o,d)))}function ha(o,l,d){var g=o.pending;if(o.pending=null,g!==null){g=g.next;do l.status="rejected",l.reason=d,pg(l),l=l.next;while(l!==g)}o.action=null}function pg(o){o=o.listeners;for(var l=0;l<o.length;l++)(0,o[l])()}function Ry(o,l){return l}function Kf(o,l){if(Yt){var d=Kn.formState;if(d!==null){e:{var g=Lt;if(Yt){if(Nn){t:{for(var b=Nn,T=ho;b.nodeType!==8;){if(!T){b=null;break t}if(b=gs(b.nextSibling),b===null){b=null;break t}}T=b.data,b=T==="F!"||T==="F"?b:null}if(b){Nn=gs(b.nextSibling),g=b.data==="F!";break e}}Dl(g)}g=!1}g&&(l=d[0])}}return d=Xi(),d.memoizedState=d.baseState=l,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ry,lastRenderedState:l},d.queue=g,d=AE.bind(null,Lt,g),g.dispatch=d,g=wy(!1),T=bg.bind(null,Lt,!1,g.queue),g=Xi(),b={state:l,dispatch:null,action:o,pending:null}
vendor: 4,495 bytes, line 38
38,g.queue=b,d=Cy.bind(null,Lt,b,T,d),b.dispatch=d,g.memoizedState=o,[l,d,!1]}function Ay(o){var l=Or();return gg(l,$n,o)}function gg(o,l,d){if(l=Gt(o,l,Ry)[0],o=hd(za)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var g=Wc(l)}catch(M){throw M===dd?Uf:M}else g=l;l=Or();var b=l.queue,T=b.dispatch;return d!==l.memoizedState&&(Lt.flags|=2048,ql(9,{destroy:void 0},SE.bind(null,b,d),null)),[g,T,o]}function SE(o,l){o.action=l}function mg(o){var l=Or(),d=$n;if(d!==null)return gg(l,d,o);Or(),l=l.memoizedState,d=Or();var g=d.queue.dispatch;return d.memoizedState=o,[l,g,!1]}function ql(o,l,d,g){return o={tag:o,create:d,deps:g,inst:l,next:null},l=Lt.updateQueue,l===null&&(l=hg(),Lt.updateQueue=l),d=l.lastEffect,d===null?l.lastEffect=o.next=o:(g=d.next,d.next=o,o.next=g,l.lastEffect=o),o}function Va(){return Or().memoizedState}function vg(o,l,d,g){var b=Xi();Lt.flags|=o,b.memoizedState=ql(1|l,{destroy:void 0},d,g===void 0?null:g)}function ko(o,l,d,g){var b=Or();g=g===void 0?null:g;var T=b.memoizedState.inst;$n!==null&&g!==null&&Vf(g,$n.memoizedState.deps)?b.memoizedState=ql(l,T,d,g):(Lt.flags|=o,b.memoizedState=ql(1|l,T,d,g))}function Oy(o,l){vg(8390656,8,o,l)}function yg(o,l){ko(2048,8,o,l)}function Iy(o){Lt.flags|=4;var l=Lt.updateQueue;if(l===null)l=hg(),Lt.updateQueue=l,l.events=[o];else{var d=l.events;d===null?l.events=[o]:d.push(o)}}function wE(o){var l=Or().memoizedState;return Iy({ref:l,nextImpl:o}),function(){if((Sn&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function CE(o,l){return ko(4,2,o,l)}function xE(o,l){return ko(4,4,o,l)}function Py(o,l){if(typeof l=="function"){o=o();var d=l(o);return function(){typeof d=="function"?d():l(null)}}if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function Ly(o,l,d){d=d!=null?d.concat([o]):null,ko(4,4,Py.bind(null,l,o),d)}function ky(){}function My(o,l){var d=Or();l=l===void 0?null:l;var g=d.memoizedState;return l!==null&&Vf(l,g[1])?g[0]:(d.memoizedState=[o,l],o)}function Dy(o,l){var d=Or();l=l===void 0?null:l;var g=d.memoizedState;if(l!==null&&Vf(l,g[1]))return g[0];if(g=o(),Vc){Xt(!0);try{o()}finally{Xt(!1)}}return d.memoizedState=[g,l],g}function Ni(o,l,d){return d===void 0||(Ha&1073741824)!==0&&(cn&261930)===0?o.memoizedState=l:(o.memoizedState=d,o=XE(),Lt.lanes|=o,Za|=o,d)}function Mo(o,l,d,g){return oi(d,l)?d:jl.current!==null?(o=Ni(o,d,g),oi(o,l)||(Ir=!0),o):(Ha&42)===0||(Ha&1073741824)!==0&&(cn&261930)===0?(Ir=!0,o.memoizedState=d):(o=XE(),Lt.lanes|=o,Za|=o,l)}function TE(o,l,d,g,b){var T=Y.p;Y.p=T!==0&&8>T?T:8;var M=H.T,B={};H.T=B,bg(o,!1,l,d);try{var ne=b(),me=H.S;if(me!==null&&me(B,ne),ne!==null&&typeof ne=="object"&&typeof ne.then=="function"){var Ce=$T(ne,g);vd(o,l,Ce,Hs(o))}else vd(o,l,g,Hs(o))}catch(Ie){vd(o,l,{then:function(){},status:"rejected",reason:Ie},Hs())}finally{Y.p=T,M!==null&&B.types!==null&&(M.types=B.types),H.T=M}}function FT(){}function gd(o,l,d,g){if(o.tag!==5)throw Error(r(476));var b=Gc(o).queue;TE(o,b,l,ee,d===null?FT:function(){return Ny(o),d(g)})}function Gc(o){var l=o.memoizedState;if(l!==null)return l;l={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:za,lastRenderedState:ee},next:null};var d={};return l.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:za,lastRenderedState:d},next:null},o.memoizedState=l,o=o.alternate,o!==null&&(o.memoizedState=l),l}function Ny(o){var l=Gc(o);l.next===null&&(l=o.alternate.memoizedState),vd(o,l.next.queue,{},Hs())}function _g(){return bi(Md)}function RE(){return Or().memoizedState}function $y(){return Or().memoizedState}function md(o){for(var l=o.return;l!==null;){switch(l.tag){case 24:case 3:var d=Hs();o=ja(d);var g=Ul(l,o,d);g!==null&&(fs(g,l,d),Bl(g,l,d)),l={cache:cy()},o.payload=l;return}l=l.return}}function Yf(o,l,d){var g=Hs();d={lane:g,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Kc(o)?Fy(l,d):(d=nd(o,l,d,g),d!==null&&(fs(d,o,g),Xf(d,l,g)))}function AE(o,l,d){var g=Hs();vd(o,l,d,g)}function vd(o,l,d,g){var b={lane:g,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};if(Kc(o))Fy(l,b);else{var T=o.alternate;if(o.lanes===0&&(T===null||T.lanes===0)&&(T=l.lastRenderedReducer,T!==null))try{var M=l.lastRenderedState,B=T(M,d);if(b.hasEagerState=!0,b.eagerState=B,oi(B,M))return Ao(o,l,b,0),Kn===null&&Pc(),!1}catch{}if(d=nd(o,l,b,g),d!==null)return fs(d,o,g),Xf(d,l,g),!0}return!1}
vendor: 2,898 bytes, line 38
38function bg(o,l,d,g){if(g={lane:2,revertLane:R0(),gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},Kc(o)){if(l)throw Error(r(479))}else l=nd(o,d,g,2),l!==null&&fs(l,o,2)}function Kc(o){var l=o.alternate;return o===Lt||l!==null&&l===Lt}function Fy(o,l){zc=fd=!0;var d=o.pending;d===null?l.next=l:(l.next=d.next,d.next=l),o.pending=l}function Xf(o,l,d){if((d&4194048)!==0){var g=l.lanes;g&=o.pendingLanes,d|=g,l.lanes=d,xo(o,d)}}var Yc={readContext:bi,use:qf,useCallback:Ar,useContext:Ar,useEffect:Ar,useImperativeHandle:Ar,useLayoutEffect:Ar,useInsertionEffect:Ar,useMemo:Ar,useReducer:Ar,useRef:Ar,useState:Ar,useDebugValue:Ar,useDeferredValue:Ar,useTransition:Ar,useSyncExternalStore:Ar,useId:Ar,useHostTransitionStatus:Ar,useFormState:Ar,useActionState:Ar,useOptimistic:Ar,useMemoCache:Ar,useCacheRefresh:Ar};Yc.useEffectEvent=Ar;var Qf={readContext:bi,use:qf,useCallback:function(o,l){return Xi().memoizedState=[o,l===void 0?null:l],o},useContext:bi,useEffect:Oy,useImperativeHandle:function(o,l,d){d=d!=null?d.concat([o]):null,vg(4194308,4,Py.bind(null,l,o),d)},useLayoutEffect:function(o,l){return vg(4194308,4,o,l)},useInsertionEffect:function(o,l){vg(4,2,o,l)},useMemo:function(o,l){var d=Xi();l=l===void 0?null:l;var g=o();if(Vc){Xt(!0);try{o()}finally{Xt(!1)}}return d.memoizedState=[g,l],g},useReducer:function(o,l,d){var g=Xi();if(d!==void 0){var b=d(l);if(Vc){Xt(!0);try{d(l)}finally{Xt(!1)}}}else b=l;return g.memoizedState=g.baseState=b,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:b},g.queue=o,o=o.dispatch=Yf.bind(null,Lt,o),[g.memoizedState,o]},useRef:function(o){var l=Xi();return o={current:o},l.memoizedState=o},useState:function(o){o=wy(o);var l=o.queue,d=AE.bind(null,Lt,l);return l.dispatch=d,[o.memoizedState,d]},useDebugValue:ky,useDeferredValue:function(o,l){var d=Xi();return Ni(d,o,l)},useTransition:function(){var o=wy(!1);return o=TE.bind(null,Lt,o.queue,!0,!1),Xi().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,l,d){var g=Lt,b=Xi();if(Yt){if(d===void 0)throw Error(r(407));d=d()}else{if(d=l(),Kn===null)throw Error(r(349));(cn&127)!==0||pd(g,l,d)}b.memoizedState=d;var T={value:d,getSnapshot:l};return b.queue=T,Oy(bE.bind(null,g,T,o),[o]),g.flags|=2048,ql(9,{destroy:void 0},Sy.bind(null,g,T,d,l),null),d},useId:function(){var o=Xi(),l=Kn.identifierPrefix;if(Yt){var d=aa,g=Oo;d=(g&~(1<<32-nn(g)-1)).toString(32)+d,l="_"+l+"R_"+d,d=lg++,0<d&&(l+="H"+d.toString(32)),l+="_"}else d=vy++,l="_"+l+"r_"+d.toString(32)+"_";return o.memoizedState=l},useHostTransitionStatus:_g,useFormState:Kf,useActionState:Kf,useOptimistic:function(o){var l=Xi();l.memoizedState=l.baseState=o;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=d,l=bg.bind(null,Lt,!0,d),d.dispatch=l,[o,l]},useMemoCache:Wf,useCacheRefresh:function(){return Xi().memoizedState=md.bind(null,
vendor: 6,990 bytes, line 38
38Lt)},useEffectEvent:function(o){var l=Xi(),d={impl:o};return l.memoizedState=d,function(){if((Sn&2)!==0)throw Error(r(440));return d.impl.apply(void 0,arguments)}}},Uy={readContext:bi,use:qf,useCallback:My,useContext:bi,useEffect:yg,useImperativeHandle:Ly,useInsertionEffect:CE,useLayoutEffect:xE,useMemo:Dy,useReducer:hd,useRef:Va,useState:function(){return hd(za)},useDebugValue:ky,useDeferredValue:function(o,l){var d=Or();return Mo(d,$n.memoizedState,o,l)},useTransition:function(){var o=hd(za)[0],l=Or().memoizedState;return[typeof o=="boolean"?o:Wc(o),l]},useSyncExternalStore:_E,useId:RE,useHostTransitionStatus:_g,useFormState:Ay,useActionState:Ay,useOptimistic:function(o,l){var d=Or();return Gf(d,$n,o,l)},useMemoCache:Wf,useCacheRefresh:$y};Uy.useEffectEvent=wE;var By={readContext:bi,use:qf,useCallback:My,useContext:bi,useEffect:yg,useImperativeHandle:Ly,useInsertionEffect:CE,useLayoutEffect:xE,useMemo:Dy,useReducer:Ey,useRef:Va,useState:function(){return Ey(za)},useDebugValue:ky,useDeferredValue:function(o,l){var d=Or();return $n===null?Ni(d,o,l):Mo(d,$n.memoizedState,o,l)},useTransition:function(){var o=Ey(za)[0],l=Or().memoizedState;return[typeof o=="boolean"?o:Wc(o),l]},useSyncExternalStore:_E,useId:RE,useHostTransitionStatus:_g,useFormState:mg,useActionState:mg,useOptimistic:function(o,l){var d=Or();return $n!==null?Gf(d,$n,o,l):(d.baseState=o,[o,d.queue.dispatch])},useMemoCache:Wf,useCacheRefresh:$y};By.useEffectEvent=wE;function yd(o,l,d,g){l=o.memoizedState,d=d(g,l),d=d==null?l:v({},l,d),o.memoizedState=d,o.lanes===0&&(o.updateQueue.baseState=d)}var Eg={enqueueSetState:function(o,l,d){o=o._reactInternals;var g=Hs(),b=ja(g);b.payload=l,d!=null&&(b.callback=d),l=Ul(o,b,g),l!==null&&(fs(l,o,g),Bl(l,o,g))},enqueueReplaceState:function(o,l,d){o=o._reactInternals;var g=Hs(),b=ja(g);b.tag=1,b.payload=l,d!=null&&(b.callback=d),l=Ul(o,b,g),l!==null&&(fs(l,o,g),Bl(l,o,g))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var d=Hs(),g=ja(d);g.tag=2,l!=null&&(g.callback=l),l=Ul(o,g,d),l!==null&&(fs(l,o,d),Bl(l,o,d))}};function Sg(o,l,d,g,b,T,M){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(g,T,M):l.prototype&&l.prototype.isPureReactComponent?!Gi(d,g)||!Gi(b,T):!0}function OE(o,l,d,g){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(d,g),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(d,g),l.state!==o&&Eg.enqueueReplaceState(l,l.state,null)}function Wl(o,l){var d=l;if("ref"in l){d={};for(var g in l)g!=="ref"&&(d[g]=l[g])}if(o=o.defaultProps){d===l&&(d=v({},d));for(var b in o)d[b]===void 0&&(d[b]=o[b])}return d}function pa(o){Ic(o)}function jy(o){console.error(o)}function Hy(o){Ic(o)}function wg(o,l){try{var d=o.onUncaughtError;d(l.value,{componentStack:l.stack})}catch(g){setTimeout(function(){throw g})}}function zy(o,l,d){try{var g=o.onCaughtError;g(d.value,{componentStack:d.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function Vy(o,l,d){return d=ja(d),d.tag=3,d.payload={element:null},d.callback=function(){wg(o,l)},d}function IE(o){return o=ja(o),o.tag=3,o}function ga(o,l,d,g){var b=d.type.getDerivedStateFromError;if(typeof b=="function"){var T=g.value;o.payload=function(){return b(T)},o.callback=function(){zy(l,d,g)}}var M=d.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(o.callback=function(){zy(l,d,g),typeof b!="function"&&(Yl===null?Yl=new Set([this]):Yl.add(this));var B=g.stack;this.componentDidCatch(g.value,{componentStack:B!==null?B:""})})}function qy(o,l,d,g,b){if(d.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){if(l=d.alternate,l!==null&&ld(l,d,b,!0),d=Yi.current,d!==null){switch(d.tag){case 31:case 13:return po===null?Mg():d.alternate===null&&pr===0&&(pr=3),d.flags&=-257,d.flags|=65536,d.lanes=b,g===Bf?d.flags|=16384:(l=d.updateQueue,l===null?d.updateQueue=new Set([g]):l.add(g),x0(o,g,b)),!1;case 22:return d.flags|=65536,g===Bf?d.flags|=16384:(l=d.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([g])},d.updateQueue=l):(d=l.retryQueue,d===null?l.retryQueue=new Set([g]):d.add(g)),x0(o,g,b)),!1}throw Error(r(435,d.tag))}return x0(o,g,b),Mg(),!1}if(Yt)return l=Yi.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=b,g!==ay&&(o=Error(r(422),{cause:g}),ca(uo(o,d)))):(g!==ay&&(l=Error(r(423),{cause:g}),ca(uo(l,d))),o=o.current.alternate,o.flags|=65536,b&=-b,o.lanes|=b,g=uo(g,d),b=Vy(o.stateNode,g,b),py(o,b),pr!==4&&(pr=2)),!1;var T=Error(r(520),{cause:g});if(T=uo(T,d),ih===null?ih=[T]:ih.push(T),pr!==4&&(pr=2),l===null)return!0;g=uo(g,d),d=l;do{switch(d.tag){case 3:return d.flags|=65536,o=b&-b,d.lanes|=o,o=Vy(d.stateNode,g,o),py(d,o),!1;case 1:if(l=d.type,T=d.stateNode,(d.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(Yl===null||!Yl.has(T))))return d.flags|=65536,b&=-b,d.lanes|=b,b=IE(b),ga(b,o,d,g),py(d,b),!1}d=d.return}while(d!==null);return!1}var Zf=Error(r(461)),Ir=!1;function jr(o,l,d,g){l.child=o===null?hy(l,null,d,g):Uc(l,o.child,d,g)}function Xc(o,l,d,g,b){d=d.render;var T=l.ref;if("ref"in g){var M={};for(var B in g)B!=="ref"&&(M[B]=g[B])}else M=g;return Nc(l),g=cg(o,l,d,M,T,b),B=by(),o!==null&&!Ir?(dg(o,l,b),Fs(o,l,b)):(Yt&&B&&Nf(l),l.flags|=1,jr(o,l,g,b),l.child)}function pt(o,l,d,g,b){if(o===null){var T=d.type;return typeof T=="function"&&!kc(T)&&T.defaultProps===void 0&&d.compare===null?(l.tag=15,l.type=T,Jf(o,l,T,g,b)):(o=Zp(d.type,null,g,l,l.mode,b),o.ref=l.ref,o.return=l,l.child=o)}if(T=o.child,!Rg(o,b)){var M=T.memoizedProps;if(d=d.compare,d=d!==null?d:Gi,d(M,g)&&o.ref===l.ref)return Fs(o,l,b)}return l.flags|=1,o=Ki(T,g),o.ref=l.ref,o.return=l,l.child=o}function Jf(o,l,d,g,b){if(o!==null){var T=o.memoizedProps;if(Gi(T,g)&&o.ref===l.ref)if(Ir=!1,l.pendingProps=g=T,Rg(o,b))(o.flags&131072)!==0&&(Ir=!0);else return l.lanes=o.lanes,Fs(o,l,b)}return Gy(o,l,d,g,b)}function Cg(o,l,d,g){var b=g.children,T=o!==null?o.memoizedState:null;if(o===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),g.mode==="hidden"){if((l.flags&128)!==0){if(T=T!==null?T.baseLanes|d:d,o!==null){for(g=l.child=o.child,b=0;g!==null;)b=b|g.lanes|g.childLanes,g=g.sibling;g=b&~T}else g=0,l.child=null;return PE(o,l,T,d,g)}if((d&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},o!==null&&rg(l,T!==null?T.cachePool:null),T!==null?Hl(l,T):sg(),og(l);else return g=l.lanes=536870912,PE(o,l,T!==null?T.baseLanes|d:d,d,g)}else T!==null?(rg(l,T.cachePool),Hl(l,T),Vl(),l.memoizedState=null):(o!==null&&rg(l,null),sg(),Vl());return jr(o,l,b,d),l.child}function Do(o,l){return o!==null&&o.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function PE(o,l,d,g,b){var T=dy();return T=T===null?null:{parent:Ur._currentValue,pool:T}
vendor: 5,773 bytes, line 38
38,l.memoizedState={baseLanes:d,cachePool:T},o!==null&&rg(l,null),sg(),og(l),o!==null&&ld(o,l,g,!0),l.childLanes=b,null}function _d(o,l){return l=bd({mode:l.mode,children:l.children},o.mode),l.ref=o.ref,o.child=l,l.return=o,l}function Wy(o,l,d){return Uc(l,o.child,null,d),o=_d(l,l.pendingProps),o.flags|=2,wi(l),l.memoizedState=null,o}function $i(o,l,d){var g=l.pendingProps,b=(l.flags&128)!==0;if(l.flags&=-129,o===null){if(Yt){if(g.mode==="hidden")return o=_d(l,g),l.lanes=536870912,Do(null,o);if(my(l),(o=Nn)?(o=wn(o,ho),o=o!==null&&o.data==="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:Ll!==null?{id:Oo,overflow:aa}:null,retryLane:536870912,hydrationErrors:null},d=Df(o),d.return=l,l.child=d,Dr=l,Nn=null)):o=null,o===null)throw Dl(l);return l.lanes=536870912,null}return _d(l,g)}var T=o.memoizedState;if(T!==null){var M=T.dehydrated;if(my(l),b)if(l.flags&256)l.flags&=-257,l=Wy(o,l,d);else if(l.memoizedState!==null)l.child=o.child,l.flags|=128,l=null;else throw Error(r(558));else if(Ir||ld(o,l,d,!1),b=(d&o.childLanes)!==0,Ir||b){if(g=Kn,g!==null&&(M=te(g,d),M!==0&&M!==T.retryLane))throw T.retryLane=M,Pl(o,M),fs(g,o,M),Zf;Mg(),l=Wy(o,l,d)}else o=T.treeContext,Nn=gs(M.nextSibling),Dr=l,Yt=!0,Ml=null,ho=!1,o!==null&&od(l,o),l=_d(l,g),l.flags|=4096;return l}return o=Ki(o.child,{mode:g.mode,children:g.children}),o.ref=l.ref,l.child=o,o.return=l,o}function xg(o,l){var d=l.ref;if(d===null)o!==null&&o.ref!==null&&(l.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(r(284));(o===null||o.ref!==d)&&(l.flags|=4194816)}}function Gy(o,l,d,g,b){return Nc(l),d=cg(o,l,d,g,void 0,b),g=by(),o!==null&&!Ir?(dg(o,l,b),Fs(o,l,b)):(Yt&&g&&Nf(l),l.flags|=1,jr(o,l,d,b),l.child)}function Ky(o,l,d,g,b,T){return Nc(l),l.updateQueue=null,d=_y(l,g,d,b),yy(o),g=by(),o!==null&&!Ir?(dg(o,l,T),Fs(o,l,T)):(Yt&&g&&Nf(l),l.flags|=1,jr(o,l,d,T),l.child)}function LE(o,l,d,g,b){if(Nc(l),l.stateNode===null){var T=Lc,M=d.contextType;typeof M=="object"&&M!==null&&(T=bi(M)),T=new d(g,T),l.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,T.updater=Eg,l.stateNode=T,T._reactInternals=l,T=l.stateNode,T.props=g,T.state=l.memoizedState,T.refs={},Bc(l),M=d.contextType,T.context=typeof M=="object"&&M!==null?bi(M):Lc,T.state=l.memoizedState,M=d.getDerivedStateFromProps,typeof M=="function"&&(yd(l,d,M,g),T.state=l.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(M=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),M!==T.state&&Eg.enqueueReplaceState(T,T.state,null),jc(l,g,T,b),Nr(),T.state=l.memoizedState),typeof T.componentDidMount=="function"&&(l.flags|=4194308),g=!0}else if(o===null){T=l.stateNode;var B=l.memoizedProps,ne=Wl(d,B);T.props=ne;var me=T.context,Ce=d.contextType;M=Lc,typeof Ce=="object"&&Ce!==null&&(M=bi(Ce));var Ie=d.getDerivedStateFromProps;Ce=typeof Ie=="function"||typeof T.getSnapshotBeforeUpdate=="function",B=l.pendingProps!==B,Ce||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(B||me!==M)&&OE(l,T,g,M),Ba=!1;var ve=l.memoizedState;T.state=ve,jc(l,g,T,b),Nr(),me=l.memoizedState,B||ve!==me||Ba?(typeof Ie=="function"&&(yd(l,d,Ie,g),me=l.memoizedState),(ne=Ba||Sg(l,d,ne,g,ve,me,M))?(Ce||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(l.flags|=4194308)):(typeof T.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=g,l.memoizedState=me),T.props=g,T.state=me,T.context=M,g=ne):(typeof T.componentDidMount=="function"&&(l.flags|=4194308),g=!1)}else{T=l.stateNode,fa(o,l),M=l.memoizedProps,Ce=Wl(d,M),T.props=Ce,Ie=l.pendingProps,ve=T.context,me=d.contextType,ne=Lc,typeof me=="object"&&me!==null&&(ne=bi(me)),B=d.getDerivedStateFromProps,(me=typeof B=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(M!==Ie||ve!==ne)&&OE(l,T,g,ne),Ba=!1,ve=l.memoizedState,T.state=ve,jc(l,g,T,b),Nr();var Ee=l.memoizedState;M!==Ie||ve!==Ee||Ba||o!==null&&o.dependencies!==null&&tg(o.dependencies)?(typeof B=="function"&&(yd(l,d,B,g),Ee=l.memoizedState),(Ce=Ba||Sg(l,d,Ce,g,ve,Ee,ne)||o!==null&&o.dependencies!==null&&tg(o.dependencies))?(me||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(g,Ee,ne),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(g,Ee,ne)),typeof T.componentDidUpdate=="function"&&(l.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof T.componentDidUpdate!="function"||M===o.memoizedProps&&ve===o.memoizedState||(l.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||M===o.memoizedProps&&ve===o.memoizedState||(l.flags|=1024),l.memoizedProps=g,l.memoizedState=Ee),T.props=g,T.state=Ee,T.context=ne,g=Ce):(typeof T.componentDidUpdate!="function"||M===o.memoizedProps&&ve===o.memoizedState||(l.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||M===o.memoizedProps&&ve===o.memoizedState||(l.flags|=1024),g=!1)}return T=g,xg(o,l),g=(l.flags&128)!==0,T||g?(T=l.stateNode,d=g&&typeof d.getDerivedStateFromError!="function"?null:T.render(),l.flags|=1,o!==null&&g?(l.child=Uc(l,o.child,null,b),l.child=Uc(l,null,d,b)):jr(o,l,d,b),l.memoizedState=T.state,o=l.child):o=Fs(o,l,b),o}
vendor: 4,326 bytes, line 38
38function Yy(o,l,d,g){return Nl(),l.flags|=256,jr(o,l,d,g),l.child}var Xy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qy(o){return{baseLanes:o,cachePool:gE()}}function Zy(o,l,d){return o=o!==null?o.childLanes&~d:0,l&&(o|=js),o}function ma(o,l,d){var g=l.pendingProps,b=!1,T=(l.flags&128)!==0,M;if((M=T)||(M=o!==null&&o.memoizedState===null?!1:(Rr.current&2)!==0),M&&(b=!0,l.flags&=-129),M=(l.flags&32)!==0,l.flags&=-33,o===null){if(Yt){if(b?zl(l):Vl(),(o=Nn)?(o=wn(o,ho),o=o!==null&&o.data!=="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:Ll!==null?{id:Oo,overflow:aa}:null,retryLane:536870912,hydrationErrors:null},d=Df(o),d.return=l,l.child=d,Dr=l,Nn=null)):o=null,o===null)throw Dl(l);return Vg(o)?l.lanes=32:l.lanes=536870912,null}var B=g.children;return g=g.fallback,b?(Vl(),b=l.mode,B=bd({mode:"hidden",children:B},b),g=Mc(g,b,d,null),B.return=l,g.return=l,B.sibling=g,l.child=B,g=l.child,g.memoizedState=Qy(d),g.childLanes=Zy(o,M,d),l.memoizedState=Xy,Do(null,g)):(zl(l),Ci(l,B))}var ne=o.memoizedState;if(ne!==null&&(B=ne.dehydrated,B!==null)){if(T)l.flags&256?(zl(l),l.flags&=-257,l=Jy(o,l,d)):l.memoizedState!==null?(Vl(),l.child=o.child,l.flags|=128,l=null):(Vl(),B=g.fallback,b=l.mode,g=bd({mode:"visible",children:g.children},b),B=Mc(B,b,d,null),B.flags|=2,g.return=l,B.return=l,g.sibling=B,l.child=g,Uc(l,o.child,null,d),g=l.child,g.memoizedState=Qy(d),g.childLanes=Zy(o,M,d),l.memoizedState=Xy,l=Do(null,g));else if(zl(l),Vg(B)){if(M=B.nextSibling&&B.nextSibling.dataset,M)var me=M.dgst;M=me,g=Error(r(419)),g.stack="",g.digest=M,ca({value:g,source:null,stack:null}),l=Jy(o,l,d)}else if(Ir||ld(o,l,d,!1),M=(d&o.childLanes)!==0,Ir||M){if(M=Kn,M!==null&&(g=te(M,d),g!==0&&g!==ne.retryLane))throw ne.retryLane=g,Pl(o,g),fs(M,o,g),Zf;M0(B)||Mg(),l=Jy(o,l,d)}else M0(B)?(l.flags|=192,l.child=o.child,l=null):(o=ne.treeContext,Nn=gs(B.nextSibling),Dr=l,Yt=!0,Ml=null,ho=!1,o!==null&&od(l,o),l=Ci(l,g.children),l.flags|=4096);return l}return b?(Vl(),B=g.fallback,b=l.mode,ne=o.child,me=ne.sibling,g=Ki(ne,{mode:"hidden",children:g.children}),g.subtreeFlags=ne.subtreeFlags&65011712,me!==null?B=Ki(me,B):(B=Mc(B,b,d,null),B.flags|=2),B.return=l,g.return=l,g.sibling=B,l.child=g,Do(null,g),g=l.child,B=o.child.memoizedState,B===null?B=Qy(d):(b=B.cachePool,b!==null?(ne=Ur._currentValue,b=b.parent!==ne?{parent:ne,pool:ne}:b):b=gE(),B={baseLanes:B.baseLanes|d,cachePool:b}),g.memoizedState=B,g.childLanes=Zy(o,M,d),l.memoizedState=Xy,Do(o.child,g)):(zl(l),d=o.child,o=d.sibling,d=Ki(d,{mode:"visible",children:g.children}),d.return=l,d.sibling=null,o!==null&&(M=l.deletions,M===null?(l.deletions=[o],l.flags|=16):M.push(o)),l.child=d,l.memoizedState=null,d)}function Ci(o,l){return l=bd({mode:"visible",children:l},o.mode),l.return=o,o.child=l}function bd(o,l){return o=as(22,o,null,l),o.lanes=0,o}function Jy(o,l,d){return Uc(l,o.child,null,d),o=Ci(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function Tg(o,l,d){o.lanes|=l;var g=o.alternate;g!==null&&(g.lanes|=l),ly(o.return,l,d)}function e0(o,l,d,g,b,T){var M=o.memoizedState;M===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:g,tail:d,tailMode:b,treeForkCount:T}:(M.isBackwards=l,M.rendering=null,M.renderingStartTime=0,M.last=g,M.tail=d,M.tailMode=b,M.treeForkCount=T)}function kE(o,l,d){var g=l.pendingProps,b=g.revealOrder,T=g.tail;g=g.children;var M=Rr.current,B=(M&2)!==0;if(B?(M=M&1|2,l.flags|=128):M&=1,ae(Rr,M),jr(o,l,g,d),g=Yt?vr:0,!B&&o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Tg(o,d,l);else if(o.tag===19)Tg(o,d,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(b){case"forwards":for(d=l.child,b=null;d!==null;)o=d.alternate,o!==null&&ag(o)===null&&(b=d),d=d.sibling;d=b,d===null?(b=l.child,l.child=null):(b=d.sibling,d.sibling=null),e0(l,!1,b,d,T,g);break;case"backwards":case"unstable_legacy-backwards":for(d=null,b=l.child,l.child=null;b!==null;){if(o=b.alternate,o!==null&&ag(o)===null){l.child=b;break}o=b.sibling,b.sibling=d,d=b,b=o}e0(l,!0,d,null,T,g);break;case"together":e0(l,!1,null,null,void 0,g);break;default:l.memoizedState=null}return l.child}
vendor: 1,915 bytes, line 38
38function Fs(o,l,d){if(o!==null&&(l.dependencies=o.dependencies),Za|=l.lanes,(d&l.childLanes)===0)if(o!==null){if(ld(o,l,d,!1),(d&l.childLanes)===0)return null}else return null;if(o!==null&&l.child!==o.child)throw Error(r(153));if(l.child!==null){for(o=l.child,d=Ki(o,o.pendingProps),l.child=d,d.return=l;o.sibling!==null;)o=o.sibling,d=d.sibling=Ki(o,o.pendingProps),d.return=l;d.sibling=null}return l.child}function Rg(o,l){return(o.lanes&l)!==0?!0:(o=o.dependencies,!!(o!==null&&tg(o)))}function ME(o,l,d){switch(l.tag){case 3:Ne(l,l.stateNode.containerInfo),$l(l,Ur,o.memoizedState.cache),Nl();break;case 27:case 5:tt(l);break;case 4:Ne(l,l.stateNode.containerInfo);break;case 10:$l(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,my(l),null;break;case 13:var g=l.memoizedState;if(g!==null)return g.dehydrated!==null?(zl(l),l.flags|=128,null):(d&l.child.childLanes)!==0?ma(o,l,d):(zl(l),o=Fs(o,l,d),o!==null?o.sibling:null);zl(l);break;case 19:var b=(o.flags&128)!==0;if(g=(d&l.childLanes)!==0,g||(ld(o,l,d,!1),g=(d&l.childLanes)!==0),b){if(g)return kE(o,l,d);l.flags|=128}if(b=l.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),ae(Rr,Rr.current),g)break;return null;case 22:return l.lanes=0,Cg(o,l,d,l.pendingProps);case 24:$l(l,Ur,o.memoizedState.cache)}return Fs(o,l,d)}function DE(o,l,d){if(o!==null)if(o.memoizedProps!==l.pendingProps)Ir=!0;else{if(!Rg(o,d)&&(l.flags&128)===0)return Ir=!1,ME(o,l,d);Ir=(o.flags&131072)!==0}else Ir=!1,Yt&&(l.flags&1048576)!==0&&sd(l,vr,l.index);switch(l.lanes=0,l.tag){case 16:e:{var g=l.pendingProps;if(o=Ua(l.elementType),l.type=o,typeof o=="function")kc(o)?(g=Wl(o,g),l.tag=1,l=LE(null,l,o,g,d)):(l.tag=0,l=Gy(null,l,o,g,d));else{if(o!=null){var b=o.$$typeof;if(b===P){l.tag=11,l=Xc(null,l,o,g,d);break e}else if(b===N){l.tag=14,l=pt(null,l,o,g,d);break e}}throw l=K(o)||o,Error(r(306,l,""))}}return l;
vendor: 1,347 bytes, line 38
38case 0:return Gy(o,l,l.type,l.pendingProps,d);case 1:return g=l.type,b=Wl(g,l.pendingProps),LE(o,l,g,b,d);case 3:e:{if(Ne(l,l.stateNode.containerInfo),o===null)throw Error(r(387));g=l.pendingProps;var T=l.memoizedState;b=T.element,fa(o,l),jc(l,g,null,d);var M=l.memoizedState;if(g=M.cache,$l(l,Ur,g),g!==T.cache&&Fa(l,[Ur],d,!0),Nr(),g=M.element,T.isDehydrated)if(T={element:g,isDehydrated:!1,cache:M.cache},l.updateQueue.baseState=T,l.memoizedState=T,l.flags&256){l=Yy(o,l,g,d);break e}else if(g!==b){b=uo(Error(r(424)),l),ca(b),l=Yy(o,l,g,d);break e}else for(o=l.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,Nn=gs(o.firstChild),Dr=l,Yt=!0,Ml=null,ho=!0,d=hy(l,null,g,d),l.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(Nl(),g===b){l=Fs(o,l,d);break e}jr(o,l,g,d)}l=l.child}return l;case 26:return xg(o,l),o===null?(d=TS(l.type,null,l.pendingProps,null))?l.memoizedState=d:Yt||(d=l.type,o=l.pendingProps,g=zg(Se.current).createElement(d),g[qe]=l,g[Ye]=o,xi(g,d,o),kt(g),l.stateNode=g):l.memoizedState=TS(l.type,o.memoizedProps,l.pendingProps,o.memoizedState),null;case 27:return tt(l),o===null&&Yt&&(g=l.stateNode=CS(l.type,l.pendingProps,Se.current),Dr=l,ho=!0,b=Nn,Fi(l.type)?(D0=b,Nn=gs(g.firstChild)):Nn=b),jr(o,l,l.pendingProps.children,d),xg(o,l),o===null&&(l.flags|=4194304),l.child;
vendor: 1,042 bytes, line 38
38case 5:return o===null&&Yt&&((b=g=Nn)&&(g=bS(g,l.type,l.pendingProps,ho),g!==null?(l.stateNode=g,Dr=l,Nn=gs(g.firstChild),ho=!1,b=!0):b=!1),b||Dl(l)),tt(l),b=l.type,T=l.pendingProps,M=o!==null?o.memoizedProps:null,g=T.children,Zi(b,T)?g=null:M!==null&&Zi(b,M)&&(l.flags|=32),l.memoizedState!==null&&(b=cg(o,l,ug,null,null,d),Md._currentValue=b),xg(o,l),jr(o,l,g,d),l.child;case 6:return o===null&&Yt&&((o=d=Nn)&&(d=i5(d,l.pendingProps,ho),d!==null?(l.stateNode=d,Dr=l,Nn=null,o=!0):o=!1),o||Dl(l)),null;case 13:return ma(o,l,d);case 4:return Ne(l,l.stateNode.containerInfo),g=l.pendingProps,o===null?l.child=Uc(l,null,g,d):jr(o,l,g,d),l.child;case 11:return Xc(o,l,l.type,l.pendingProps,d);case 7:return jr(o,l,l.pendingProps,d),l.child;case 8:return jr(o,l,l.pendingProps.children,d),l.child;case 12:return jr(o,l,l.pendingProps.children,d),l.child;case 10:return g=l.pendingProps,$l(l,l.type,g.value),jr(o,l,g.children,d),l.child;case 9:return b=l.type._context,g=l.pendingProps.children,Nc(l),b=bi(b),g=g(b),l.flags|=1,jr(o,l,g,d),l.child;
vendor: 4,161 bytes, line 38
38case 14:return pt(o,l,l.type,l.pendingProps,d);case 15:return Jf(o,l,l.type,l.pendingProps,d);case 19:return kE(o,l,d);case 31:return $i(o,l,d);case 22:return Cg(o,l,d,l.pendingProps);case 24:return Nc(l),g=bi(Ur),o===null?(b=dy(),b===null&&(b=Kn,T=cy(),b.pooledCache=T,T.refCount++,T!==null&&(b.pooledCacheLanes|=d),b=T),l.memoizedState={parent:g,cache:b},Bc(l),$l(l,Ur,b)):((o.lanes&d)!==0&&(fa(o,l),jc(l,null,null,d),Nr()),b=o.memoizedState,T=l.memoizedState,b.parent!==g?(b={parent:g,cache:g},l.memoizedState=b,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=b),$l(l,Ur,g)):(g=T.cache,$l(l,Ur,g),g!==b.cache&&Fa(l,[Ur],d,!0))),jr(o,l,l.pendingProps.children,d),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function qa(o){o.flags|=4}function t0(o,l,d,g,b){if((l=(o.mode&32)!==0)&&(l=!1),l){if(o.flags|=16777216,(b&335544128)===b)if(o.stateNode.complete)o.flags|=8192;else if(eS())o.flags|=8192;else throw Po=Bf,fy}else o.flags&=-16777217}function NE(o,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!AS(l))if(eS())o.flags|=8192;else throw Po=Bf,fy}function eh(o,l){l!==null&&(o.flags|=4),o.flags&16384&&(l=o.tag!==22?ro():536870912,o.lanes|=l,Rd|=l)}function Ed(o,l){if(!Yt)switch(o.tailMode){case"hidden":l=o.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?o.tail=null:d.sibling=null;break;case"collapsed":d=o.tail;for(var g=null;d!==null;)d.alternate!==null&&(g=d),d=d.sibling;g===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:g.sibling=null}}function lr(o){var l=o.alternate!==null&&o.alternate.child===o.child,d=0,g=0;if(l)for(var b=o.child;b!==null;)d|=b.lanes|b.childLanes,g|=b.subtreeFlags&65011712,g|=b.flags&65011712,b.return=o,b=b.sibling;else for(b=o.child;b!==null;)d|=b.lanes|b.childLanes,g|=b.subtreeFlags,g|=b.flags,b.return=o,b=b.sibling;return o.subtreeFlags|=g,o.childLanes=d,l}function n0(o,l,d){var g=l.pendingProps;switch(kl(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lr(l),null;case 1:return lr(l),null;case 3:return d=l.stateNode,g=null,o!==null&&(g=o.memoizedState.cache),l.memoizedState.cache!==g&&(l.flags|=2048),$a(Ur),ze(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(o===null||o.child===null)&&(la(l)?qa(l):o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,j())),lr(l),null;case 26:var b=l.type,T=l.memoizedState;return o===null?(qa(l),T!==null?(lr(l),NE(l,T)):(lr(l),t0(l,b,null,g,d))):T?T!==o.memoizedState?(qa(l),lr(l),NE(l,T)):(lr(l),l.flags&=-16777217):(o=o.memoizedProps,o!==g&&qa(l),lr(l),t0(l,b,o,g,d)),null;case 27:if(Je(l),d=Se.current,b=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==g&&qa(l);else{if(!g){if(l.stateNode===null)throw Error(r(166));return lr(l),null}o=de.current,la(l)?hE(l):(o=CS(b,g,d),l.stateNode=o,qa(l))}return lr(l),null;case 5:if(Je(l),b=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==g&&qa(l);else{if(!g){if(l.stateNode===null)throw Error(r(166));return lr(l),null}if(T=de.current,la(l))hE(l);else{var M=zg(Se.current);switch(T){case 1:T=M.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:T=M.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":T=M.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":T=M.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":T=M.createElement("div"),T.innerHTML="<script><\/script>",T=T.removeChild(T.firstChild);break;case"select":T=typeof g.is=="string"?M.createElement("select",{is:g.is}):M.createElement("select"),g.multiple?T.multiple=!0:g.size&&(T.size=g.size);break;default:T=typeof g.is=="string"?M.createElement(b,{is:g.is}):M.createElement(b)}}T[qe]=l,T[Ye]=g;e:for(M=l.child;M!==null;){if(M.tag===5||M.tag===6)T.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===l)break e;for(;M.sibling===null;){if(M.return===null||M.return===l)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}l.stateNode=T;e:switch(xi(T,b,g),b){case"button":case"input":case"select":case"textarea":g=!!g.autoF
vendor: 24,157 bytes, line 38
38ocus;break e;case"img":g=!0;break e;default:g=!1}g&&qa(l)}}return lr(l),t0(l,l.type,o===null?null:o.memoizedProps,l.pendingProps,d),null;case 6:if(o&&l.stateNode!=null)o.memoizedProps!==g&&qa(l);else{if(typeof g!="string"&&l.stateNode===null)throw Error(r(166));if(o=Se.current,la(l)){if(o=l.stateNode,d=l.memoizedProps,g=null,b=Dr,b!==null)switch(b.tag){case 27:case 5:g=b.memoizedProps}o[qe]=l,o=!!(o.nodeValue===d||g!==null&&g.suppressHydrationWarning===!0||pS(o.nodeValue,d)),o||Dl(l,!0)}else o=zg(o).createTextNode(g),o[qe]=l,l.stateNode=o}return lr(l),null;case 31:if(d=l.memoizedState,o===null||o.memoizedState!==null){if(g=la(l),d!==null){if(o===null){if(!g)throw Error(r(318));if(o=l.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[qe]=l}else Nl(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;lr(l),o=!1}else d=j(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=d),o=!0;if(!o)return l.flags&256?(wi(l),l):(wi(l),null);if((l.flags&128)!==0)throw Error(r(558))}return lr(l),null;case 13:if(g=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(b=la(l),g!==null&&g.dehydrated!==null){if(o===null){if(!b)throw Error(r(318));if(b=l.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[qe]=l}else Nl(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;lr(l),b=!1}else b=j(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=b),b=!0;if(!b)return l.flags&256?(wi(l),l):(wi(l),null)}return wi(l),(l.flags&128)!==0?(l.lanes=d,l):(d=g!==null,o=o!==null&&o.memoizedState!==null,d&&(g=l.child,b=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(b=g.alternate.memoizedState.cachePool.pool),T=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(T=g.memoizedState.cachePool.pool),T!==b&&(g.flags|=2048)),d!==o&&d&&(l.child.flags|=8192),eh(l,l.updateQueue),lr(l),null);case 4:return ze(),o===null&&O0(l.stateNode.containerInfo),lr(l),null;case 10:return $a(l.type),lr(l),null;case 19:if(Q(Rr),g=l.memoizedState,g===null)return lr(l),null;if(b=(l.flags&128)!==0,T=g.rendering,T===null)if(b)Ed(g,!1);else{if(pr!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(T=ag(o),T!==null){for(l.flags|=128,Ed(g,!1),o=T.updateQueue,l.updateQueue=o,eh(l,o),l.subtreeFlags=0,o=d,d=l.child;d!==null;)Mf(d,o),d=d.sibling;return ae(Rr,Rr.current&1|2),Yt&&Io(l,g.treeForkCount),l.child}o=o.sibling}g.tail!==null&&Hn()>kg&&(l.flags|=128,b=!0,Ed(g,!1),l.lanes=4194304)}else{if(!b)if(o=ag(T),o!==null){if(l.flags|=128,b=!0,o=o.updateQueue,l.updateQueue=o,eh(l,o),Ed(g,!0),g.tail===null&&g.tailMode==="hidden"&&!T.alternate&&!Yt)return lr(l),null}else 2*Hn()-g.renderingStartTime>kg&&d!==536870912&&(l.flags|=128,b=!0,Ed(g,!1),l.lanes=4194304);g.isBackwards?(T.sibling=l.child,l.child=T):(o=g.last,o!==null?o.sibling=T:l.child=T,g.last=T)}return g.tail!==null?(o=g.tail,g.rendering=o,g.tail=o.sibling,g.renderingStartTime=Hn(),o.sibling=null,d=Rr.current,ae(Rr,b?d&1|2:d&1),Yt&&Io(l,g.treeForkCount),o):(lr(l),null);case 22:case 23:return wi(l),Si(),g=l.memoizedState!==null,o!==null?o.memoizedState!==null!==g&&(l.flags|=8192):g&&(l.flags|=8192),g?(d&536870912)!==0&&(l.flags&128)===0&&(lr(l),l.subtreeFlags&6&&(l.flags|=8192)):lr(l),d=l.updateQueue,d!==null&&eh(l,d.retryQueue),d=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),g=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(g=l.memoizedState.cachePool.pool),g!==d&&(l.flags|=2048),o!==null&&Q(Ei),null;case 24:return d=null,o!==null&&(d=o.memoizedState.cache),l.memoizedState.cache!==d&&(l.flags|=2048),$a(Ur),lr(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function $E(o,l){switch(kl(l),l.tag){case 1:return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return $a(Ur),ze(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 26:case 27:case 5:return Je(l),null;case 31:if(l.memoizedState!==null){if(wi(l),l.alternate===null)throw Error(r(340));Nl()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 13:if(wi(l),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Nl()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return Q(Rr),null;case 4:return ze(),null;case 10:return $a(l.type),null;case 22:case 23:return wi(l),Si(),o!==null&&Q(Ei),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 24:return $a(Ur),null;case 25:return null;default:return null}}function Sd(o,l){switch(kl(l),l.tag){case 3:$a(Ur),ze();break;case 26:case 27:case 5:Je(l);break;case 4:ze();break;case 31:l.memoizedState!==null&&wi(l);break;case 13:wi(l);break;case 19:Q(Rr);break;case 10:$a(l.type);break;case 22:case 23:wi(l),Si(),o!==null&&Q(Ei);break;case 24:$a(Ur)}}function Qc(o,l){try{var d=l.updateQueue,g=d!==null?d.lastEffect:null;if(g!==null){var b=g.next;d=b;do{if((d.tag&o)===o){g=void 0;var T=d.create,M=d.inst;g=T(),M.destroy=g}d=d.next}while(d!==b)}}catch(B){Rn(l,l.return,B)}}function Wa(o,l,d){try{var g=l.updateQueue,b=g!==null?g.lastEffect:null;if(b!==null){var T=b.next;g=T;do{if((g.tag&o)===o){var M=g.inst,B=M.destroy;if(B!==void 0){M.destroy=void 0,b=l;var ne=d,me=B;try{me()}catch(Ce){Rn(b,ne,Ce)}}}g=g.next}while(g!==T)}}catch(Ce){Rn(l,l.return,Ce)}}function r0(o){var l=o.updateQueue;if(l!==null){var d=o.stateNode;try{Lo(l,d)}catch(g){Rn(o,o.return,g)}}}function th(o,l,d){d.props=Wl(o.type,o.memoizedProps),d.state=o.memoizedState;try{d.componentWillUnmount()}catch(g){Rn(o,l,g)}}function wd(o,l){try{var d=o.ref;if(d!==null){switch(o.tag){case 26:case 27:case 5:var g=o.stateNode;break;case 30:g=o.stateNode;break;default:g=o.stateNode}typeof d=="function"?o.refCleanup=d(g):d.current=g}}catch(b){Rn(o,l,b)}}function Hr(o,l){var d=o.ref,g=o.refCleanup;if(d!==null)if(typeof g=="function")try{g()}catch(b){Rn(o,l,b)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(b){Rn(o,l,b)}else d.current=null}function Gl(o){var l=o.type,d=o.memoizedProps,g=o.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":d.autoFocus&&g.focus();break e;case"img":d.src?g.src=d.src:d.srcSet&&(g.srcset=d.srcSet)}}catch(b){Rn(o,o.return,b)}}function i0(o,l,d){try{var g=o.stateNode;e5(g,o.type,d,l),g[Ye]=l}catch(b){Rn(o,o.return,b)}}function s0(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Fi(o.type)||o.tag===4}function o0(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||s0(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Fi(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function a0(o,l,d){var g=o.tag;if(g===5||g===6)o=o.stateNode,l?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(o,l):(l=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,l.appendChild(o),d=d._reactRootContainer,d!=null||l.onclick!==null||(l.onclick=sa));else if(g!==4&&(g===27&&Fi(o.type)&&(d=o.stateNode,l=null),o=o.child,o!==null))for(a0(o,l,d),o=o.sibling;o!==null;)a0(o,l,d),o=o.sibling}function Ag(o,l,d){var g=o.tag;if(g===5||g===6)o=o.stateNode,l?d.insertBefore(o,l):d.appendChild(o);else if(g!==4&&(g===27&&Fi(o.type)&&(d=o.stateNode),o=o.child,o!==null))for(Ag(o,l,d),o=o.sibling;o!==null;)Ag(o,l,d),o=o.sibling}function FE(o){var l=o.stateNode,d=o.memoizedProps;try{for(var g=o.type,b=l.attributes;b.length;)l.removeAttributeNode(b[0]);xi(l,g,d),l[qe]=o,l[Ye]=d}catch(T){Rn(o,o.return,T)}}var Ga=!1,zr=!1,l0=!1,UE=typeof WeakSet=="function"?WeakSet:Set,li=null;function UT(o,l){if(o=o.containerInfo,nu=Qg,o=dE(o),ry(o)){if("selectionStart"in o)var d={start:o.selectionStart,end:o.selectionEnd};else e:{d=(d=o.ownerDocument)&&d.defaultView||window;var g=d.getSelection&&d.getSelection();if(g&&g.rangeCount!==0){d=g.anchorNode;var b=g.anchorOffset,T=g.focusNode;g=g.focusOffset;try{d.nodeType,T.nodeType}catch{d=null;break e}var M=0,B=-1,ne=-1,me=0,Ce=0,Ie=o,ve=null;t:for(;;){for(var Ee;Ie!==d||b!==0&&Ie.nodeType!==3||(B=M+b),Ie!==T||g!==0&&Ie.nodeType!==3||(ne=M+g),Ie.nodeType===3&&(M+=Ie.nodeValue.length),(Ee=Ie.firstChild)!==null;)ve=Ie,Ie=Ee;for(;;){if(Ie===o)break t;if(ve===d&&++me===b&&(B=M),ve===T&&++Ce===g&&(ne=M),(Ee=Ie.nextSibling)!==null)break;Ie=ve,ve=Ie.parentNode}Ie=Ee}d=B===-1||ne===-1?null:{start:B,end:ne}}else d=null}d=d||{start:0,end:0}}else d=null;for(ph={focusedElem:o,selectionRange:d},Qg=!1,li=l;li!==null;)if(l=li,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,li=o;else for(;li!==null;){switch(l=li,T=l.alternate,o=l.flags,l.tag){case 0:if((o&4)!==0&&(o=l.updateQueue,o=o!==null?o.events:null,o!==null))for(d=0;d<o.length;d++)b=o[d],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&T!==null){o=void 0,d=l,b=T.memoizedProps,T=T.memoizedState,g=d.stateNode;try{var rt=Wl(d.type,b);o=g.getSnapshotBeforeUpdate(rt,T),g.__reactInternalSnapshotBeforeUpdate=o}catch(mt){Rn(d,d.return,mt)}}break;case 3:if((o&1024)!==0){if(o=l.stateNode.containerInfo,d=o.nodeType,d===9)ps(o);else if(d===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":ps(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=l.sibling,o!==null){o.return=l.return,li=o;break}li=l.return}}function BE(o,l,d){var g=d.flags;switch(d.tag){case 0:case 11:case 15:Ya(o,d),g&4&&Qc(5,d);break;case 1:if(Ya(o,d),g&4)if(o=d.stateNode,l===null)try{o.componentDidMount()}catch(M){Rn(d,d.return,M)}else{var b=Wl(d.type,l.memoizedProps);l=l.memoizedState;try{o.componentDidUpdate(b,l,o.__reactInternalSnapshotBeforeUpdate)}catch(M){Rn(d,d.return,M)}}g&64&&r0(d),g&512&&wd(d,d.return);break;case 3:if(Ya(o,d),g&64&&(o=d.updateQueue,o!==null)){if(l=null,d.child!==null)switch(d.child.tag){case 27:case 5:l=d.child.stateNode;break;case 1:l=d.child.stateNode}try{Lo(o,l)}catch(M){Rn(d,d.return,M)}}break;case 27:l===null&&g&4&&FE(d);case 26:case 5:Ya(o,d),l===null&&g&4&&Gl(d),g&512&&wd(d,d.return);break;case 12:Ya(o,d);break;case 31:Ya(o,d),g&4&&HE(o,d);break;case 13:Ya(o,d),g&4&&u0(o,d),g&64&&(o=d.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(d=$g.bind(null,d),ES(o,d))));break;case 22:if(g=d.memoizedState!==null||Ga,!g){l=l!==null&&l.memoizedState!==null||zr,b=Ga;var T=zr;Ga=g,(zr=l)&&!T?Xa(o,d,(d.subtreeFlags&8772)!==0):Ya(o,d),Ga=b,zr=T}break;case 30:break;default:Ya(o,d)}}function c0(o){var l=o.alternate;l!==null&&(o.alternate=null,c0(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&rn(l)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var cr=null,Qi=!1;function Ka(o,l,d){for(d=d.child;d!==null;)jE(o,l,d),d=d.sibling}function jE(o,l,d){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Wt,d)}catch{}switch(d.tag){case 26:zr||Hr(d,l),Ka(o,l,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:zr||Hr(d,l);var g=cr,b=Qi;Fi(d.type)&&(cr=d.stateNode,Qi=!1),Ka(o,l,d),mh(d.stateNode),cr=g,Qi=b;break;case 5:zr||Hr(d,l);case 6:if(g=cr,b=Qi,cr=null,Ka(o,l,d),cr=g,Qi=b,cr!==null)if(Qi)try{(cr.nodeType===9?cr.body:cr.nodeName==="HTML"?cr.ownerDocument.body:cr).removeChild(d.stateNode)}catch(T){Rn(d,l,T)}else try{cr.removeChild(d.stateNode)}catch(T){Rn(d,l,T)}break;case 18:cr!==null&&(Qi?(o=cr,jt(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,d.stateNode),Nd(o)):jt(cr,d.stateNode));break;case 4:g=cr,b=Qi,cr=d.stateNode.containerInfo,Qi=!0,Ka(o,l,d),cr=g,Qi=b;break;case 0:case 11:case 14:case 15:Wa(2,d,l),zr||Wa(4,d,l),Ka(o,l,d);break;case 1:zr||(Hr(d,l),g=d.stateNode,typeof g.componentWillUnmount=="function"&&th(d,l,g)),Ka(o,l,d);break;case 21:Ka(o,l,d);break;case 22:zr=(g=zr)||d.memoizedState!==null,Ka(o,l,d),zr=g;break;default:Ka(o,l,d)}}function HE(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Nd(o)}catch(d){Rn(l,l.return,d)}}}function u0(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Nd(o)}catch(d){Rn(l,l.return,d)}}function BT(o){switch(o.tag){case 31:case 13:case 19:var l=o.stateNode;return l===null&&(l=o.stateNode=new UE),l;case 22:return o=o.stateNode,l=o._retryCache,l===null&&(l=o._retryCache=new UE),l;default:throw Error(r(435,o.tag))}}function Og(o,l){var d=BT(o);l.forEach(function(g){if(!d.has(g)){d.add(g);var b=Fg.bind(null,o,g);g.then(b,b)}})}function cs(o,l){var d=l.deletions;if(d!==null)for(var g=0;g<d.length;g++){var b=d[g],T=o,M=l,B=M;e:for(;B!==null;){switch(B.tag){case 27:if(Fi(B.type)){cr=B.stateNode,Qi=!1;break e}break;case 5:cr=B.stateNode,Qi=!1;break e;case 3:case 4:cr=B.stateNode.containerInfo,Qi=!0;break e}B=B.return}if(cr===null)throw Error(r(160));jE(T,M,b),cr=null,Qi=!1,T=b.alternate,T!==null&&(T.return=null),b.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)zE(l,o),l=l.sibling}var No=null;function zE(o,l){var d=o.alternate,g=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:cs(l,o),us(o),g&4&&(Wa(3,o,o.return),Qc(3,o),Wa(5,o,o.return));break;case 1:cs(l,o),us(o),g&512&&(zr||d===null||Hr(d,d.return)),g&64&&Ga&&(o=o.updateQueue,o!==null&&(g=o.callbacks,g!==null&&(d=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=d===null?g:d.concat(g))));break;case 26:var b=No;if(cs(l,o),us(o),g&512&&(zr||d===null||Hr(d,d.return)),g&4){var T=d!==null?d.memoizedState:null;if(g=o.memoizedState,d===null)if(g===null)if(o.stateNode===null){e:{g=o.type,d=o.memoizedProps,b=b.ownerDocument||b;t:switch(g){case"title":T=b.getElementsByTagName("title")[0],(!T||T[lt]||T[qe]||T.namespaceURI==="http://www.w3.org/2000/svg"||T.hasAttribute("itemprop"))&&(T=b.createElement(g),b.head.insertBefore(T,b.querySelector("head > title"))),xi(T,g,d),T[qe]=o,kt(T),g=T;break e;case"link":var M=j0("link","href",b).get(g+(d.href||""));if(M){for(var B=0;B<M.length;B++)if(T=M[B],T.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&T.getAttribute("rel")===(d.rel==null?null:d.rel)&&T.getAttribute("title")===(d.title==null?null:d.title)&&T.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){M.splice(B,1);break t}}T=b.createElement(g),xi(T,g,d),b.head.appendChild(T);break;case"meta":if(M=j0("meta","content",b).get(g+(d.content||""))){for(B=0;B<M.length;B++)if(T=M[B],T.getAttribute("content")===(d.content==null?null:""+d.content)&&T.getAttribute("name")===(d.name==null?null:d.name)&&T.getAttribute("property")===(d.property==null?null:d.property)&&T.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&T.getAttribute("charset")===(d.charSet==null?null:d.charSet)){M.splice(B,1);break t}}T=b.createElement(g),xi(T,g,d),b.head.appendChild(T);break;default:throw Error(r(468,g))}T[qe]=o,kt(T),g=T}o.stateNode=g}else RS(b,o.type,o.stateNode);else o.stateNode=F0(b,g,o.memoizedProps);else T!==g?(T===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):T.count--,g===null?RS(b,o.type,o.stateNode):F0(b,g,o.memoizedProps)):g===null&&o.stateNode!==null&&i0(o,o.memoizedProps,d.memoizedProps)}break;case 27:cs(l,o),us(o),g&512&&(zr||d===null||Hr(d,d.return)),d!==null&&g&4&&i0(o,o.memoizedProps,d.memoizedProps);break;case 5:if(cs(l,o),us(o),g&512&&(zr||d===null||Hr(d,d.return)),o.flags&32){b=o.stateNode;try{xl(b,"")}catch(rt){Rn(o,o.return,rt)}}g&4&&o.stateNode!=null&&(b=o.memoizedProps,i0(o,b,d!==null?d.memoizedProps:b)),g&1024&&(l0=!0);break;case 6:if(cs(l,o),us(o),g&4){if(o.stateNode===null)throw Error(r(162));g=o.memoizedProps,d=o.stateNode;try{d.nodeValue=g}catch(rt){Rn(o,o.return,rt)}}break;case 3:if(_h=null,b=No,No=qg(l.containerInfo),cs(l,o),No=b,us(o),g&4&&d!==null&&d.memoizedState.isDehydrated)try{Nd(l.containerInfo)}catch(rt){Rn(o,o.return,rt)}l0&&(l0=!1,Us(o));break;case 4:g=No,No=qg(o.stateNode.containerInfo),cs(l,o),us(o),No=g;break;case 12:cs(l,o),us(o);break;case 31:cs(l,o),us(o),g&4&&(g=o.updateQueue,g!==null&&(o.updateQueue=null,Og(o,g)));break;case 13:cs(l,o),us(o),o.child.flags&8192&&o.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(Lg=Hn()),g&4&&(g=o.updateQueue,g!==null&&(o.updateQueue=null,Og(o,g)));break;case 22:b=o.memoizedState!==null;var ne=d!==null&&d.memoizedState!==null,me=Ga,Ce=zr;if(Ga=me||b,zr=Ce||ne,cs(l,o),zr=Ce,Ga=me,us(o),g&8192)e:for(l=o.stateNode,l._visibility=b?l._visibility&-2:l._visibility|1,b&&(d===null||ne||Ga||zr||Zc(o)),d=null,l=o;;){if(l.tag===5||l.tag===26){if(d===null){ne=d=l;try{if(T=ne.stateNode,b)M=T.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none";else{B=ne.stateNode;var Ie=ne.memoizedProps.style,ve=Ie!=null&&Ie.hasOwnProperty("display")?Ie.display:null;B.style.display=ve==null||typeof ve=="boolean"?"":(""+ve).trim()}}catch(rt){Rn(ne,ne.return,rt)}}}else if(l.tag===6){if(d===null){ne=l;try{ne.stateNode.nodeValue=b?"":ne.memoizedProps}catch(rt){Rn(ne,ne.return,rt)}}}else if(l.tag===18){if(d===null){ne=l;try{var Ee=ne.stateNode;b?k0(Ee,!0):k0(ne.stateNode,!1)}catch(rt){Rn(ne,ne.return,rt)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===o)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break e;for(;l.sibling===null;){if(l.return===null||l.return===o)break e;d===l&&(d=null),l=l.return}d===l&&(d=null),l.sibling.return=l.return,l=l.sibling}g&4&&(g=o.updateQueue,g!==null&&(d=g.retryQueue,d!==null&&(g.retryQueue=null,Og(o,d))));break;case 19:cs(l,o),us(o),g&4&&(g=o.updateQueue,g!==null&&(o.updateQueue=null,Og(o,g)));break;case 30:break;case 21:break;default:cs(l,o),us(o)}}function us(o){var l=o.flags;if(l&2){try{for(var d,g=o.return;g!==null;){if(s0(g)){d=g;break}g=g.return}if(d==null)throw Error(r(160));switch(d.tag){case 27:var b=d.stateNode,T=o0(o);Ag(o,T,b);break;case 5:var M=d.stateNode;d.flags&32&&(xl(M,""),d.flags&=-33);var B=o0(o);Ag(o,B,M);break;case 3:case 4:var ne=d.stateNode.containerInfo,me=o0(o);a0(o,me,ne);break;default:throw Error(r(161))}}catch(Ce){Rn(o,o.return,Ce)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function Us(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var l=o;Us(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),o=o.sibling}}function Ya(o,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)BE(o,l.alternate,l),l=l.sibling}function Zc(o){for(o=o.child;o!==null;){var l=o;switch(l.tag){case 0:case 11:case 14:case 15:Wa(4,l,l.return),Zc(l);break;case 1:Hr(l,l.return);var d=l.stateNode;typeof d.componentWillUnmount=="function"&&th(l,l.return,d),Zc(l);break;case 27:mh(l.stateNode);case 26:case 5:Hr(l,l.return),Zc(l);break;case 22:l.memoizedState===null&&Zc(l);break;case 30:Zc(l);break;default:Zc(l)}o=o.sibling}}function Xa(o,l,d){for(d=d&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var g=l.alternate,b=o,T=l,M=T.flags;switch(T.tag){case 0:case 11:case 15:Xa(b,T,d),Qc(4,T);break;case 1:if(Xa(b,T,d),g=T,b=g.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(me){Rn(g,g.return,me)}if(g=T,b=g.updateQueue,b!==null){var B=g.stateNode;try{var ne=b.shared.hiddenCallbacks;if(ne!==null)for(b.shared.hiddenCallbacks=null,b=0;b<ne.length;b++)gy(ne[b],B)}catch(me){Rn(g,g.return,me)}}d&&M&64&&r0(T),wd(T,T.return);break;case 27:FE(T);case 26:case 5:Xa(b,T,d),d&&g===null&&M&4&&Gl(T),wd(T,T.return);break;case 12:Xa(b,T,d);break;case 31:Xa(b,T,d),d&&M&4&&HE(b,T);break;case 13:Xa(b,T,d),d&&M&4&&u0(b,T);break;case 22:T.memoizedState===null&&Xa(b,T,d),wd(T,T.return);break;case 30:break;default:Xa(b,T,d)}l=l.sibling}}function Ig(o,l){var d=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==d&&(o!=null&&o.refCount++,d!=null&&Ms(d))}function d0(o,l){o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&Ms(o))}function $o(o,l,d,g){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)VE(o,l,d,g),l=l.sibling}function VE(o,l,d,g){var b=l.flags;switch(l.tag){case 0:case 11:case 15:$o(o,l,d,g),b&2048&&Qc(9,l);break;case 1:$o(o,l,d,g);break;case 3:$o(o,l,d,g),b&2048&&(o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&Ms(o)));break;case 12:if(b&2048){$o(o,l,d,g),o=l.stateNode;try{var T=l.memoizedProps,M=T.id,B=T.onPostCommit;typeof B=="function"&&B(M,l.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(ne){Rn(l,l.return,ne)}}else $o(o,l,d,g);break;case 31:$o(o,l,d,g);break;case 13:$o(o,l,d,g);break;case 23:break;case 22:T=l.stateNode,M=l.alternate,l.memoizedState!==null?T._visibility&2?$o(o,l,d,g):Jc(o,l):T._visibility&2?$o(o,l,d,g):(T._visibility|=2,Cd(o,l,d,g,(l.subtreeFlags&10256)!==0||!1)),b&2048&&Ig(M,l);break;case 24:$o(o,l,d,g),b&2048&&d0(l.alternate,l);break;default:$o(o,l,d,g)}}function Cd(o,l,d,g,b){for(b=b&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var T=o,M=l,B=d,ne=g,me=M.flags;switch(M.tag){case 0:case 11:case 15:Cd(T,M,B,ne,b),Qc(8,M);break;case 23:break;case 22:var Ce=M.stateNode;M.memoizedState!==null?Ce._visibility&2?Cd(T,M,B,ne,b):Jc(T,M):(Ce._visibility|=2,Cd(T,M,B,ne,b)),b&&me&2048&&Ig(M.alternate,M);break;case 24:Cd(T,M,B,ne,b),b&&me&2048&&d0(M.alternate,M);break;default:Cd(T,M,B,ne,b)}l=l.sibling}}function Jc(o,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var d=o,g=l,b=g.flags;switch(g.tag){case 22:Jc(d,g),b&2048&&Ig(g.alternate,g);break;case 24:Jc(d,g),b&2048&&d0(g.alternate,g);break;default:Jc(d,g)}l=l.sibling}}var nh=8192;function xd(o,l,d){if(o.subtreeFlags&nh)for(o=o.child;o!==null;)qE(o,l,d),o=o.sibling}function qE(o,l,d){switch(o.tag){case 26:xd(o,l,d),o.flags&nh&&o.memoizedState!==null&&h5(d,No,o.memoizedState,o.memoizedProps);break;case 5:xd(o,l,d);break;case 3:case 4:var g=No;No=qg(o.stateNode.containerInfo),xd(o,l,d),No=g;break;case 22:o.memoizedState===null&&(g=o.alternate,g!==null&&g.memoizedState!==null?(g=nh,nh=16777216,xd(o,l,d),nh=g):xd(o,l,d));break;default:xd(o,l,d)}}function WE(o){var l=o.alternate;if(l!==null&&(o=l.child,o!==null)){l.child=null;do l=o.sibling,o.sibling=null,o=l;while(o!==null)}}function rh(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var g=l[d];li=g,KE(g,o)}WE(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)GE(o),o=o.sibling}function GE(o){switch(o.tag){case 0:case 11:case 15:rh(o),o.flags&2048&&Wa(9,o,o.return);break;case 3:rh(o);break;case 12:rh(o);break;case 22:var l=o.stateNode;o.memoizedState!==null&&l._visibility&2&&(o.return===null||o.return.tag!==13)?(l._visibility&=-3,Pg(o)):rh(o);break;default:rh(o)}}function Pg(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var g=l[d];li=g,KE(g,o)}WE(o)}for(o=o.child;o!==null;){switch(l=o,l.tag){case 0:case 11:case 15:Wa(8,l,l.return),Pg(l);break;case 22:d=l.stateNode,d._visibility&2&&(d._visibility&=-3,Pg(l));break;default:Pg(l)}o=o.sibling}}function KE(o,l){for(;li!==null;){var d=li;switch(d.tag){case 0:case 11:case 15:Wa(8,d,l);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var g=d.memoizedState.cachePool.pool;g!=null&&g.refCount++}break;case 24:Ms(d.memoizedState.cache)}if(g=d.child,g!==null)g.return=d,li=g;else e:for(d=o;li!==null;){g=li;var b=g.sibling,T=g.return;if(c0(g),g===d){li=null;break e}if(b!==null){b.return=T,li=b;break e}li=T}}}var jT={getCacheForType:function(o){var l=bi(Ur),d=l.data.get(o);return d===void 0&&(d=o(),l.data.set(o,d)),d},cacheSignal:function(){return bi(Ur).controller.signal}},HT=typeof WeakMap=="function"?WeakMap:Map,Sn=0,Kn=null,sn=null,cn=0,Pn=0,Bs=null,Kl=!1,Td=!1,f0=!1,Qa=0,pr=0,Za=0,eu=0,h0=0,js=0,Rd=0,ih=null,ds=null,p0=!1,Lg=0,g0=0,kg=1/0,tu=null,Yl=null,Jr=0,Xl=null,Ad=null,Ja=0,m0=0,v0=null,YE=null,sh=0,y0=null;function Hs(){return(Sn&2)!==0&&cn!==0?cn&-cn:H.T!==null?R0():Oe(
vendor: 16,855 bytes, line 38
38)}function XE(){if(js===0)if((cn&536870912)===0||Yt){var o=qn;qn<<=1,(qn&3932160)===0&&(qn=262144),js=o}else js=536870912;return o=Yi.current,o!==null&&(o.flags|=32),js}function fs(o,l,d){(o===Kn&&(Pn===2||Pn===9)||o.cancelPendingCommit!==null)&&(Od(o,0),el(o,cn,js,!1)),yi(o,d),((Sn&2)===0||o!==Kn)&&(o===Kn&&((Sn&2)===0&&(eu|=d),pr===4&&el(o,cn,js,!1)),va(o))}function QE(o,l,d){if((Sn&6)!==0)throw Error(r(327));var g=!d&&(l&127)===0&&(l&o.expiredLanes)===0||mi(o,l),b=g?qT(o,l):b0(o,l,!0),T=g;do{if(b===0){Td&&!g&&el(o,l,0,!1);break}else{if(d=o.current.alternate,T&&!zT(d)){b=b0(o,l,!1),T=!1;continue}if(b===2){if(T=l,o.errorRecoveryDisabledLanes&T)var M=0;else M=o.pendingLanes&-536870913,M=M!==0?M:M&536870912?536870912:0;if(M!==0){l=M;e:{var B=o;b=ih;var ne=B.current.memoizedState.isDehydrated;if(ne&&(Od(B,M).flags|=256),M=b0(B,M,!1),M!==2){if(f0&&!ne){B.errorRecoveryDisabledLanes|=T,eu|=T,b=4;break e}T=ds,ds=b,T!==null&&(ds===null?ds=T:ds.push.apply(ds,T))}b=M}if(T=!1,b!==2)continue}}if(b===1){Od(o,0),el(o,l,0,!0);break}e:{switch(g=o,T=b,T){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:el(g,l,js,!Kl);break e;case 2:ds=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(b=Lg+300-Hn(),10<b)){if(el(g,l,js,!Kl),Os(g,0,!0)!==0)break e;Ja=l,g.timeoutHandle=vS(ZE.bind(null,g,d,ds,tu,p0,l,js,eu,Rd,Kl,T,"Throttled",-0,0),b);break e}ZE(g,d,ds,tu,p0,l,js,eu,Rd,Kl,T,null,-0,0)}}break}while(!0);va(o)}function ZE(o,l,d,g,b,T,M,B,ne,me,Ce,Ie,ve,Ee){if(o.timeoutHandle=-1,Ie=l.subtreeFlags,Ie&8192||(Ie&16785408)===16785408){Ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sa},qE(l,T,Ie);var rt=(T&62914560)===T?Lg-Hn():(T&4194048)===T?g0-Hn():0;if(rt=p5(Ie,rt),rt!==null){Ja=T,o.cancelPendingCommit=rt(lh.bind(null,o,l,T,d,g,b,M,B,ne,Ce,Ie,null,ve,Ee)),el(o,T,M,!me);return}}lh(o,l,T,d,g,b,M,B,ne)}function zT(o){for(var l=o;;){var d=l.tag;if((d===0||d===11||d===15)&&l.flags&16384&&(d=l.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var g=0;g<d.length;g++){var b=d[g],T=b.getSnapshot;b=b.value;try{if(!oi(T(),b))return!1}catch{return!1}}if(d=l.child,l.subtreeFlags&16384&&d!==null)d.return=l,l=d;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function el(o,l,d,g){l&=~h0,l&=~eu,o.suspendedLanes|=l,o.pingedLanes&=~l,g&&(o.warmLanes|=l),g=o.expirationTimes;for(var b=l;0<b;){var T=31-nn(b),M=1<<T;g[T]=-1,b&=~M}d!==0&&Co(o,d,l)}function oh(){return(Sn&6)===0?(uh(0),!1):!0}function _0(){if(sn!==null){if(Pn===0)var o=sn.return;else o=sn,$t=ai=null,fg(o),$c=null,Hf=0,o=sn;for(;o!==null;)Sd(o.alternate,o),o=o.return;sn=null}}function Od(o,l){var d=o.timeoutHandle;d!==-1&&(o.timeoutHandle=-1,n5(d)),d=o.cancelPendingCommit,d!==null&&(o.cancelPendingCommit=null,d()),Ja=0,_0(),Kn=o,sn=d=Ki(o.current,null),cn=l,Pn=0,Bs=null,Kl=!1,Td=mi(o,l),f0=!1,Rd=js=h0=eu=Za=pr=0,ds=ih=null,p0=!1,(l&8)!==0&&(l|=l&32);var g=o.entangledLanes;if(g!==0)for(o=o.entanglements,g&=l;0<g;){var b=31-nn(g),T=1<<b;l|=o[b],g&=~T}return Qa=l,Pc(),d}function JE(o,l){Lt=null,H.H=Yc,l===dd||l===Uf?(l=jf(),Pn=3):l===fy?(l=jf(),Pn=4):Pn=l===Zf?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Bs=l,sn===null&&(pr=1,wg(o,uo(l,o.current)))}function eS(){var o=Yi.current;return o===null?!0:(cn&4194048)===cn?po===null:(cn&62914560)===cn||(cn&536870912)!==0?o===po:!1}function ah(){var o=H.H;return H.H=Yc,o===null?Yc:o}function tS(){var o=H.A;return H.A=jT,o}function Mg(){pr=4,Kl||(cn&4194048)!==cn&&Yi.current!==null||(Td=!0),(Za&134217727)===0&&(eu&134217727)===0||Kn===null||el(Kn,cn,js,!1)}function b0(o,l,d){var g=Sn;Sn|=2;var b=ah(),T=tS();(Kn!==o||cn!==l)&&(tu=null,Od(o,l)),l=!1;var M=pr;e:do try{if(Pn!==0&&sn!==null){var B=sn,ne=Bs;switch(Pn){case 8:_0(),M=6;break e;case 3:case 2:case 9:case 6:Yi.current===null&&(l=!0);var me=Pn;if(Pn=0,Bs=null,Id(o,B,ne,me),d&&Td){M=0;break e}break;default:me=Pn,Pn=0,Bs=null,Id(o,B,ne,me)}}VT(),M=pr;break}catch(Ce){JE(o,Ce)}while(!0);return l&&o.shellSuspendCounter++,$t=ai=null,Sn=g,H.H=b,H.A=T,sn===null&&(Kn=null,cn=0,Pc()),M}function VT(){for(;sn!==null;)nS(sn)}function qT(o,l){var d=Sn;Sn|=2;var g=ah(),b=tS();Kn!==o||cn!==l?(tu=null,kg=Hn()+500,Od(o,l)):Td=mi(o,l);e:do try{if(Pn!==0&&sn!==null){l=sn;var T=Bs;t:switch(Pn){case 1:Pn=0,Bs=null,Id(o,l,T,1);break;case 2:case 9:if(mE(T)){Pn=0,Bs=null,rS(l);break}l=function(){Pn!==2&&Pn!==9||Kn!==o||(Pn=7),va(o)},T.then(l,l);break e;case 3:Pn=7;break e;case 4:Pn=5;break e;case 7:mE(T)?(Pn=0,Bs=null,rS(l)):(Pn=0,Bs=null,Id(o,l,T,7));break;case 5:var M=null;switch(sn.tag){case 26:M=sn.memoizedState;case 5:case 27:var B=sn;if(M?AS(M):B.stateNode.complete){Pn=0,Bs=null;var ne=B.sibling;if(ne!==null)sn=ne;else{var me=B.return;me!==null?(sn=me,Dg(me)):sn=null}break t}}Pn=0,Bs=null,Id(o,l,T,5);break;case 6:Pn=0,Bs=null,Id(o,l,T,6);break;case 8:_0(),pr=6;break e;default:throw Error(r(462))}}WT();break}catch(Ce){JE(o,Ce)}while(!0);return $t=ai=null,H.H=g,H.A=b,Sn=d,sn!==null?0:(Kn=null,cn=0,Pc(),pr)}function WT(){for(;sn!==null&&!qt();)nS(sn)}function nS(o){var l=DE(o.alternate,o,Qa);o.memoizedProps=o.pendingProps,l===null?Dg(o):sn=l}function rS(o){var l=o,d=l.alternate;switch(l.tag){case 15:case 0:l=Ky(d,l,l.pendingProps,l.type,void 0,cn);break;case 11:l=Ky(d,l,l.pendingProps,l.type.render,l.ref,cn);break;case 5:fg(l);default:Sd(d,l),l=sn=Mf(l,Qa),l=DE(d,l,Qa)}o.memoizedProps=o.pendingProps,l===null?Dg(o):sn=l}function Id(o,l,d,g){$t=ai=null,fg(l),$c=null,Hf=0;var b=l.return;try{if(qy(o,b,l,d,cn)){pr=1,wg(o,uo(d,o.current)),sn=null;return}}catch(T){if(b!==null)throw sn=b,T;pr=1,wg(o,uo(d,o.current)),sn=null;return}l.flags&32768?(Yt||g===1?o=!0:Td||(cn&536870912)!==0?o=!1:(Kl=o=!0,(g===2||g===9||g===3||g===6)&&(g=Yi.current,g!==null&&g.tag===13&&(g.flags|=16384))),iS(l,o)):Dg(l)}function Dg(o){var l=o;do{if((l.flags&32768)!==0){iS(l,Kl);return}o=l.return;var d=n0(l.alternate,l,Qa);if(d!==null){sn=d;return}if(l=l.sibling,l!==null){sn=l;return}sn=l=o}while(l!==null);pr===0&&(pr=5)}function iS(o,l){do{var d=$E(o.alternate,o);if(d!==null){d.flags&=32767,sn=d;return}if(d=o.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!l&&(o=o.sibling,o!==null)){sn=o;return}sn=o=d}while(o!==null);pr=6,sn=null}function lh(o,l,d,g,b,T,M,B,ne){o.cancelPendingCommit=null;do ch();while(Jr!==0);if((Sn&6)!==0)throw Error(r(327));if(l!==null){if(l===o.current)throw Error(r(177));if(T=l.lanes|l.childLanes,T|=sy,io(o,d,T,M,B,ne),o===Kn&&(sn=Kn=null,cn=0),Ad=l,Xl=o,Ja=d,m0=T,v0=b,YE=g,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,KT(zn,function(){return w0(),null})):(o.callbackNode=null,o.callbackPriority=0),g=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||g){g=H.T,H.T=null,b=Y.p,Y.p=2,M=Sn,Sn|=4;try{UT(o,l,d)}finally{Sn=M,Y.p=b,H.T=g}}Jr=1,sS(),E0(),S0()}}function sS(){if(Jr===1){Jr=0;var o=Xl,l=Ad,d=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||d){d=H.T,H.T=null;var g=Y.p;Y.p=2;var b=Sn;Sn|=4;try{zE(l,o);var T=ph,M=dE(o.containerInfo),B=T.focusedElem,ne=T.selectionRange;if(M!==B&&B&&B.ownerDocument&&uE(B.ownerDocument.documentElement,B)){if(ne!==null&&ry(B)){var me=ne.start,Ce=ne.end;if(Ce===void 0&&(Ce=me),"selectionStart"in B)B.selectionStart=me,B.selectionEnd=Math.min(Ce,B.value.length);else{var Ie=B.ownerDocument||document,ve=Ie&&Ie.defaultView||window;if(ve.getSelection){var Ee=ve.getSelection(),rt=B.textContent.length,mt=Math.min(ne.start,rt),Un=ne.end===void 0?mt:Math.min(ne.end,rt);!Ee.extend&&mt>Un&&(M=Un,Un=mt,mt=M);var ce=cE(B,mt),ie=cE(B,Un);if(ce&&ie&&(Ee.rangeCount!==1||Ee.anchorNode!==ce.node||Ee.anchorOffset!==ce.offset||Ee.focusNode!==ie.node||Ee.focusOffset!==ie.offset)){var ge=Ie.createRange();ge.setStart(ce.node,ce.offset),Ee.removeAllRanges(),mt>Un?(Ee.addRange(ge),Ee.extend(ie.node,ie.offset)):(ge.setEnd(ie.node,ie.offset),Ee.addRange(ge))}}}}for(Ie=[],Ee=B;Ee=Ee.parentNode;)Ee.nodeType===1&&Ie.push({element:Ee,left:Ee.scrollLeft,top:Ee.scrollTop});for(typeof B.focus=="function"&&B.focus(),B=0;B<Ie.length;B++){var Re=Ie[B];Re.element.scrollLeft=Re.left,Re.element.scrollTop=Re.top}}Qg=!!nu,ph=nu=null}finally{Sn=b,Y.p=g,H.T=d}}o.current=l,Jr=2}}function E0(){if(Jr===2){Jr=0;var o=Xl,l=Ad,d=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||d){d=H.T,H.T=null;var g=Y.p;Y.p=2;var b=Sn;Sn|=4;try{BE(o,l.alternate,l)}finally{Sn=b,Y.p=g,H.T=d}}Jr=3}}function S0(){if(Jr===4||Jr===3){Jr=0,or();var o=Xl,l=Ad,d=Ja,g=YE;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Jr=5:(Jr=0,Ad=Xl=null,Ng(o,o.pendingLanes));var b=o.pendingLanes;if(b===0&&(Yl=null),pe(d),l=l.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Wt,l,void 0,(l.current.flags&128)===128)}catch{}if(g!==null){l=H.T,b=Y.p,Y.p=2,H.T=null;try{for(var T=o.onRecoverableError,M=0;M<g.length;M++){var B=g[M];T(B.value,{componentStack:B.stack})}}finally{H.T=l,Y.p=b}}(Ja&3)!==0&&ch(),va(o),b=o.pendingLanes,(d&261930)!==0&&(b&42)!==0?o===y0?sh++:(sh=0,y0=o):sh=0,uh(0)}}function Ng(o,l){(o.pooledCacheLanes&=l)===0&&(l=o.pooledCache,l!=null&&(o.pooledCache=null,Ms(l)))}function ch(){return sS(),E0(),S0(),w0()}function w0(){if(Jr!==5)return!1;var o=Xl,l=m0;m0=0;var d=pe(Ja),g=H.T,b=Y.p;try{Y.p=32>d?32:d,H.T=null,d=v0,v0=null;var T=Xl,M=Ja;if(Jr=0,Ad=Xl=null,Ja=0,(Sn&6)!==0)throw Error(r(331));var B=Sn;if(Sn|=4,GE(T.current),VE(T,T.current,M,d),Sn=B,uh(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Wt,T)}catch{}return!0}finally{Y.p=b,H.T=g,Ng(o,l)}}function C0(o,l,d){l=uo(d,l),l=Vy(o.stateNode,l,2),o=Ul(o,l,2),o!==null&&(yi(o,2),va(o))}function Rn(o,l,d){if(o.tag===3)C0(o,o,d);else for(;l!==null;){if(l.tag===3){C0(l,o,d);break}else if(l.tag===1){var g=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(Yl===null||!Yl.has(g))){o=uo(d,o),d=IE(2),g=Ul(l,d,2),g!==null&&(ga(d,g,l,o),yi(g,2),va(g));break}}l=l.return}}function x0(o,l,d){var g=o.pingCache;if(g===null){g=o.pingCache=new HT;var b=new Set;g.set(l,b)}else b=g.get(l),b===void 0&&(b=new Set,g.set(l,b));b.has(d)||(f0=!0,b.add(d),o=GT.bind(null,o,l,d),l.then(o,o))}function GT(o,l,d){var g=o.pingCache;g!==null&&g.delete(l),o.pingedLanes|=o.suspendedLanes&d,o.warmLanes&=~d,Kn===o&&(cn&d)===d&&(pr===4||pr===3&&(cn&62914560)===cn&&300>Hn()-Lg?(Sn&2)===0&&Od(o,0):h0|=d,Rd===cn&&(Rd=0)),va(o)}function oS(o,l){l===0&&(l=ro()),o=Pl(o,l),o!==null&&(yi(o,l),va(o))}function $g(o){var l=o.memoizedState,d=0;l!==null&&(d=l.retryLane),oS(o,d)}function Fg(o,l){var d=0;switch(o.tag){case 31:case 13:var g=o.stateNode,b=o.memoizedState;b!==null&&(d=b.retryLane);break;case 19:g=o.stateNode;break;case 22:g=o.stateNode._retryCache;break;default:throw Error(r(314))}g!==null&&g.delete(l),oS(o,d)}function KT(o,l){return An(o,l)}var Ug=null,Ql=null,Bg=!1,jg=!1,T0=!1,Zl=0;function va(o){o!==Ql&&o.next===null&&(Ql===null?Ug=Ql=o:Ql=Ql.next=o),jg=!0,Bg||(Bg=!0,XT())}function uh(o,l){if(!T0&&jg){T0=!0;do for(var d=!1,g=Ug;g!==null;){if(o!==0){var b=g.pendingLanes;if(b===0)var T=0;else{var M=g.suspendedLanes,B=g.pingedLanes;T=(1<<31-nn(42|o)+1)-1,T&=b&~(M&~B),T=T&201326741?T&201326741|1:T?T|2:0}T!==0&&(d=!0,uS(g,T))}else T=cn,T=Os(g,g===Kn?T:0,g.cancelPendingCommit!==null||g.timeoutHandle!==-1),(T&3)===0||mi(g,T)||(d=!0,uS(g,T));g=g.next}while(d);T0=!1}}function YT(){aS()}function aS(){jg=Bg=!1;var o=0;Zl!==0&&t5()&&(o=Zl);for(var l=Hn(),d=null,g=Ug;g!==null;){var b=g.next,T=lS(g,l);T===0?(g.next=null,d===null?Ug=b:d.next=b,b===null&&(Ql=d)):(d=g,(o!==0||(T&3)!==0)&&(jg=!0)),g=b}Jr!==0&&Jr!==5||uh(o),Zl!==0&&(Zl=0)}function lS(o,l){for(var d=o.suspendedLanes,g=o.pingedLanes,b=o.expirationTimes,T=o.pendingLanes&-62914561;0<T;){var M=31-nn(T),B=1<<M,ne=b[M];ne===-1?((B&d)===0||(B&g)!==0)&&(b[M]=Mn(B,l)):ne<=l&&(o.expiredLanes|=B),T&=~B}if(l=Kn,d=cn,d=Os(o,o===l?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),g=o.callbackNode,d===0||o===l&&(Pn===2||Pn===9)||o.cancelPendingCommit!==null)return g!==null&&g!==null&&Ut(g),o.callbackNode=null,o.callbackPriority=0;if((d&3)===0||mi(o,d)){if(l=d&-d,l===o.callbackPriority)return l;switch(g!==null&&Ut(g),pe(d)){case 2:case 8:d=pi;break;case 32:d=zn;break;case 268435456:d=ar;break;default:d=zn}return g=cS.bind(null,o),d=An(d,g),o.callbackPriority=l,o.callbackNode=d,l}return g!==null&&g!==null&&Ut(g),o.callbackPriority=2,o.callbackNode=null,2}function cS(o,l){if(Jr!==0&&Jr!==5)return o.callbackNode=null,o.callbackPriority=0,null;var d=o.callbackNode;if(ch()&&o.callbackNode!==d)return null;var g=cn;return g=Os(o,o===Kn?g:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),g===0?null:(QE(o,g,l),lS(o,Hn()),o.callbackNode!=null&&o.callbackNode===d?cS.bind(null,o):null)}function uS(o,l){if(ch())return null;QE(o,l,!0)}function XT(){r5(function(){(Sn&6)!==0?An(xr,YT):aS()})}function R0(){if(Zl===0){var o=cd;o===0&&(o=gi,gi<<=1,(gi&261888)===0&&(gi=256)),Zl=o}return Zl}function go(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:xf(""+o)}function dS(o,l){var d=l.ownerDocument.createElement("input");return d.name=l.name,d.value=l.value,o.id&&d.setAttribute("form",o.id),l.parentNode.insertBefore(d,l),o=new FormData(o),d.parentNode.removeChild(d),o}function QT(o,l,d,g,b){if(l==="submit"&&d&&d.stateNode===b){var T=go((b[Ye]||null).action),M=g.submitter;M&&(l=(l=M[Ye]||null)?go(l.formAction):M.getAttribute("formAction"),l!==null&&(T=l,M=null));var B=new Up("action","action",null,g,b);o.push({event:B,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(Zl!==0){var ne=M?dS(b,M):new FormData(b);gd(d,{pending:!0,data:ne,method:b.method,action:T},null,ne)}}else typeof T=="function"&&(B.preventDefault(),ne=M?dS(b,M):new FormData(b),gd(d,{pending:!0,data:ne,method:b.method,action:T},T,ne))},currentTarget:b}]})}}for(var tl=0;tl<iy.length;tl++){var Mt=iy[tl],ZT=Mt.toLowerCase(),hs=Mt[0].toUpperCase()+Mt.slice(1);lo(ZT,"on"+hs)}lo(fE,"onAnimationEnd"),lo(ks,"onAnimationIteration"),lo(If,"onAnimationStart"),lo("dblclick","onDoubleClick"),lo("focusin","onFocus"),lo("focusout","onBlur"),lo(LT,"onTransitionRun"),lo(ed,"onTransitionStart"),lo(Xp,"onTransitionCancel"),lo(Pf,"onTransitionEnd"),mr("onMouseEnter",["mouseout","mouseover"]),mr("onMouseLeave",["mouseout","mouseover"]),mr("onPointerEnter",["pointerout","pointerover"]),mr("onPointerLeave",["pointerout","pointerover"]),Tr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Tr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Tr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Tr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Tr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Tr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ur="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),JT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ur));function nl(o,l){l=(l&4)!==0;for(var d=0;d<o.length;d++){var g=o[d],b=g.event;g=g.listeners;e:{var T=void 0;if(l)for(var M=g.length-1;0<=M;M--){var B=g[M],ne=B.instance,me=B.currentTarget;if(B=B.listener,ne!==T&&b.isPropagationStopped())break e;T=B,b.currentTarget=me;try{T(b)}catch(Ce){Ic(Ce)}b.currentTarget=null,T=ne}else for(M=0;M<g.length;M++){if(B=g[M],ne=B.instance,me=B.currentTarget,B=B.listener,ne!==T&&b.isPropagationStopped())break e;T=B,b.currentTarget=me;try{T(b)}catch(Ce){Ic(Ce)}b.currentTarget=null,T=ne}}}}function on(o,l){var d=l[it];d===void 0&&(d=l[it]=new Set);var g=o+"__bubble";d.has(g)||(fS(l,o,2,!1),d.add(g))}function A0(o,l,d){var g=0;l&&(g|=4),fS(d,o,g,l)}var Hg="_reactListening"+Math.random().toString(36).slice(2);function O0(o){if(!o[Hg]){o[Hg]=!0,ss.forEach(function(d){d!=="selectionchange"&&(JT.has(d)||A0(d,!1,o),A0(d,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[Hg]||(l[Hg]=!0,A0("selectionchange",!1,l))}}function fS(o,l,d,g){switch(NS(l)){case 2:var b=m5;break;case 8:b=v5;break;default:b=z0}d=b.bind(null,l,d,o),b=void 0,!zv||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(b=!0),g?b!==void 0?o.addEventListener(l,d,{capture:!0,passive:b}):o.addEventListener(l,d,!0):b!==void 0?o.addEventListener(l,d,{passive:b}):o.addEventListener(l,d,!1)}function dh(o,l,d,g,b){var T=g;if((l&1)===0&&(l&2)===0&&g!==null)e:for(;;){if(g===null)return;var M=g.tag;if(M===3||M===4){var B=g.stateNode.containerInfo;
vendor: 2,798 bytes, line 38
38if(B===b)break;if(M===4)for(M=g.return;M!==null;){var ne=M.tag;if((ne===3||ne===4)&&M.stateNode.containerInfo===b)return;M=M.return}for(;B!==null;){if(M=On(B),M===null)return;if(ne=M.tag,ne===5||ne===6||ne===26||ne===27){g=T=M;continue e}B=B.parentNode}}g=g.return}Gb(function(){var me=T,Ce=jv(d),Ie=[];e:{var ve=En.get(o);if(ve!==void 0){var Ee=Up,rt=o;switch(o){case"keypress":if(In(d)===0)break e;case"keydown":case"keyup":Ee=hr;break;case"focusin":rt="focus",Ee=Bp;break;case"focusout":rt="blur",Ee=Bp;break;case"beforeblur":case"afterblur":Ee=Bp;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ee=Wv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ee=ao;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ee=Yv;break;case fE:case ks:case If:Ee=Zb;break;case Pf:Ee=CT;break;case"scroll":case"scrollend":Ee=Yb;break;case"wheel":Ee=rE;break;case"copy":case"cut":case"paste":Ee=eE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ee=jp;break;case"toggle":case"beforetoggle":Ee=Yu}var mt=(l&4)!==0,Un=!mt&&(o==="scroll"||o==="scrollend"),ce=mt?ve!==null?ve+"Capture":null:ve;mt=[];for(var ie=me,ge;ie!==null;){var Re=ie;if(ge=Re.stateNode,Re=Re.tag,Re!==5&&Re!==26&&Re!==27||ge===null||ce===null||(Re=Tf(ie,ce),Re!=null&&mt.push(fh(ie,Re,ge))),Un)break;ie=ie.return}0<mt.length&&(ve=new Ee(ve,rt,null,d,Ce),Ie.push({event:ve,listeners:mt}))}}if((l&7)===0){e:{if(ve=o==="mouseover"||o==="pointerover",Ee=o==="mouseout"||o==="pointerout",ve&&d!==Bv&&(rt=d.relatedTarget||d.fromElement)&&(On(rt)||rt[Ge]))break e;if((Ee||ve)&&(ve=Ce.window===Ce?Ce:(ve=Ce.ownerDocument)?ve.defaultView||ve.parentWindow:window,Ee?(rt=d.relatedTarget||d.toElement,Ee=me,rt=rt?On(rt):null,rt!==null&&(Un=s(rt),mt=rt.tag,rt!==Un||mt!==5&&mt!==27&&mt!==6)&&(rt=null)):(Ee=null,rt=me),Ee!==rt)){if(mt=Wv,Re="onMouseLeave",ce="onMouseEnter",ie="mouse",(o==="pointerout"||o==="pointerover")&&(mt=jp,Re="onPointerLeave",ce="onPointerEnter",ie="pointer"),Un=Ee==null?ve:Et(Ee),ge=rt==null?ve:Et(rt),ve=new mt(Re,ie+"leave",Ee,d,Ce),ve.target=Un,ve.relatedTarget=ge,Re=null,On(Ce)===me&&(mt=new mt(ce,ie+"enter",rt,d,Ce),mt.target=ge,mt.relatedTarget=Un,Re=mt),Un=Re,Ee&&rt)t:{for(mt=hS,ce=Ee,ie=rt,ge=0,Re=ce;Re;Re=mt(Re))ge++;Re=0;for(var ft=ie;ft;ft=mt(ft))Re++;for(;0<ge-Re;)ce=mt(ce),ge--;for(;0<Re-ge;)ie=mt(ie),Re--;for(;ge--;){if(ce===ie||ie!==null&&ce===ie.alternate){mt=ce;break t}ce=mt(ce),ie=mt(ie)}mt=null}else mt=null;Ee!==null&&hh(Ie,ve,Ee,mt,!1),rt!==null&&Un!==null&&hh(Ie,Un,rt,mt,!0)}}
vendor: 5,250 bytes, lines 38-39
38e:{if(ve=me?Et(me):window,Ee=ve.nodeName&&ve.nodeName.toLowerCase(),Ee==="select"||Ee==="input"&&ve.type==="file")var _n=oE;else if(Zu(ve))if(aE)_n=OT;else{_n=Yp;var at=Il}else Ee=ve.nodeName,!Ee||Ee.toLowerCase()!=="input"||ve.type!=="checkbox"&&ve.type!=="radio"?me&&Uv(me.elementType)&&(_n=oE):_n=AT;if(_n&&(_n=_n(o,me))){Jv(Ie,_n,d,Ce);break e}at&&at(o,ve,me),o==="focusout"&&me&&ve.type==="number"&&me.memoizedProps.value!=null&&Cf(ve,"number",ve.value)}switch(at=me?Et(me):window,o){case"focusin":(Zu(at)||at.contentEditable==="true")&&(Ro=at,le=me,we=null);break;case"focusout":we=le=Ro=null;break;case"mousedown":_e=!0;break;case"contextmenu":case"mouseup":case"dragend":_e=!1,et(Ie,d,Ce);break;case"selectionchange":if(PT)break;case"keydown":case"keyup":et(Ie,d,Ce)}var Kt;if(zp)e:{switch(o){case"compositionstart":var un="onCompositionStart";break e;case"compositionend":un="onCompositionEnd";break e;case"compositionupdate":un="onCompositionUpdate";break e}un=void 0}else Qu?qp(o,d)&&(un="onCompositionEnd"):o==="keydown"&&d.keyCode===229&&(un="onCompositionStart");un&&(Vp&&d.locale!=="ko"&&(Qu||un!=="onCompositionStart"?un==="onCompositionEnd"&&Qu&&(Kt=Jn()):(Tl=Ce,Vv="value"in Tl?Tl.value:Tl.textContent,Qu=!0)),at=mo(me,un),0<at.length&&(un=new tE(un,o,null,d,Ce),Ie.push({event:un,listeners:at}),Kt?un.data=Kt:(Kt=Wp(d),Kt!==null&&(un.data=Kt)))),(Kt=Xv?sE(o,d):Ls(o,d))&&(un=mo(me,"onBeforeInput"),0<un.length&&(at=new tE("onBeforeInput","beforeinput",null,d,Ce),Ie.push({event:at,listeners:un}),at.data=Kt)),QT(Ie,o,me,d,Ce)}nl(Ie,l)})}function fh(o,l,d){return{instance:o,listener:l,currentTarget:d}}function mo(o,l){for(var d=l+"Capture",g=[];o!==null;){var b=o,T=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||T===null||(b=Tf(o,d),b!=null&&g.unshift(fh(o,b,T)),b=Tf(o,l),b!=null&&g.push(fh(o,b,T))),o.tag===3)return g;o=o.return}return[]}function hS(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function hh(o,l,d,g,b){for(var T=l._reactName,M=[];d!==null&&d!==g;){var B=d,ne=B.alternate,me=B.stateNode;if(B=B.tag,ne!==null&&ne===g)break;B!==5&&B!==26&&B!==27||me===null||(ne=me,b?(me=Tf(d,T),me!=null&&M.unshift(fh(d,me,ne))):b||(me=Tf(d,T),me!=null&&M.push(fh(d,me,ne)))),d=d.return}M.length!==0&&o.push({event:l,listeners:M})}var yr=/\r\n?/g,Pr=/\u0000|\uFFFD/g;function I0(o){return(typeof o=="string"?o:""+o).replace(yr,` 39`).replace(Pr,"")}function pS(o,l){return l=I0(l),I0(o)===l}function Fn(o,l,d,g,b,T){switch(d){case"children":typeof g=="string"?l==="body"||l==="textarea"&&g===""||xl(o,g):(typeof g=="number"||typeof g=="bigint")&&l!=="body"&&xl(o,""+g);break;case"className":oo(o,"class",g);break;case"tabIndex":oo(o,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":oo(o,d,g);break;case"style":Fv(o,g,T);break;case"data":if(l!=="object"){oo(o,"data",g);break}case"src":case"href":if(g===""&&(l!=="a"||d!=="href")){o.removeAttribute(d);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){o.removeAttribute(d);break}g=xf(""+g),o.setAttribute(d,g);break;case"action":case"formAction":if(typeof g=="function"){o.setAttribute(d,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof T=="function"&&(d==="formAction"?(l!=="input"&&Fn(o,l,"name",b.name,b,null),Fn(o,l,"formEncType",b.formEncType,b,null),Fn(o,l,"formMethod",b.formMethod,b,null),Fn(o,l,"formTarget",b.formTarget,b,null)):(Fn(o,l,"encType",b.encType,b,null),Fn(o,l,"method",b.method,b,null),Fn(o,l,"target",b.target,b,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){o.removeAttribute(d);break}g=xf(""+g),o.setAttribute(d,g);break;case"onClick":g!=null&&(o.onclick=sa);break;case"onScroll":g!=null&&on("scroll",o);break;case"onScrollEnd":g!=null&&on("scrollend",o);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(r(61));if(d=g.__html,d!=null){if(b.children!=null)throw Error(r(60));o.innerHTML=d}}break;case"multiple":o.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":o.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){o.removeAttribute("xlink:href");break}d=xf(""+g),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":g!=null&&typeof g!="function"&&typeof g!="symbol"?o.setAttribute(d,""+g):o.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
39ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":g&&typeof g!="function"&&typeof g!="symbol"?o.setAttribute(d,""):o.removeAttribute(d);break;case"capture":case"download":g===!0?o.setAttribute(d,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?o.setAttribute(d,g):o.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?o.setAttribute(d,g):o.removeAttribute(d);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?o.removeAttribute(d):o.setAttribute(d,g);break;case"popover":on("beforetoggle",o),on("toggle",o),so(o,"popover",g);break;case"xlinkActuate":Tt(o,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":Tt(o,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":Tt(o,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":Tt(o,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":Tt(o,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":Tt(o,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":Tt(o,"http://www.w3.org/XML/1998/namespace","xml:base",g);break;case"xmlLang":Tt(o,"http://www.w3.org/XML/1998/namespace","xml:lang",g);break;case"xmlSpace":Tt(o,"http://www.w3.org/XML/1998/namespace","xml:space",g);break;case"is":so(o,"is",g);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=Vb.get(d)||d,so(o,d,g))}}function P0(o,l,d,g,b,T){switch(d){case"style":Fv(o,g,T);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(r(61));if(d=g.__html,d!=null){if(b.children!=null)throw Error(r(60));o.innerHTML=d}}break;case"children":typeof g=="string"?xl(o,g):(typeof g=="number"||typeof g=="bigint")&&xl(o,""+g);break;case"onScroll":g!=null&&on("scroll",o);break;case"onScrollEnd":g!=null&&on("scrollend",o);break;case"onClick":g!=null&&(o.onclick=sa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mi.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(b=d.endsWith("Capture"),l=d.slice(2,b?d.length-7:void 0),T=o[Ye]||null,T=T!=null?T[d]:null,typeof T=="function"&&o.removeEventListener(l,T,b),typeof g=="function")){typeof T!="function"&&T!==null&&(d in o?o[d]=null:o.hasAttribute(d)&&o.removeAttribute(d)),o.addEventListener(l,g,b);break e}d in o?o[d]=g:g===!0?o.setAttribute(d,""):so(o,d,g)}}}function xi(o,l,d){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":on("error",o),on("load",o);var g=!1,b=!1,T;for(T in d)if(d.hasOwnProperty(T)){var M=d[T];if(M!=null)switch(T){case"src":g=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Fn(o,l,T,M,d,null)}}b&&Fn(o,l,"srcSet",d.srcSet,d,null),g&&Fn(o,l,"src",d.src,d,null);return;case"input":on("invalid",o);var B=T=M=b=null,ne=null,me=null;for(g in d)if(d.hasOwnProperty(g)){var Ce=d[g];if(Ce!=null)switch(g){case"name":b=Ce;break;case"type":M=Ce;break;case"checked":ne=Ce;break;case"defaultChecked":me=Ce;break;case"value":T=Ce;break;case"defaultValue":B=Ce;break;case"children":case"dangerouslySetInnerHTML":if(Ce!=null)throw Error(r(137,l));break;default:Fn(o,l,g,Ce,d,null)}}Dv(o,T,B,ne,me,M,b,!1);return;case"select":on("invalid",o),g=M=T=null;for(b in d)if(d.hasOwnProperty(b)&&(B=d[b],B!=null))switch(b){case"value":T=B;break;case"defaultValue":M=B;break;case"multiple":g=B;default:Fn(o,l,b,B,d,null)}l=T,d=M,o.multiple=!!g,l!=null?qu(o,!!g,l,!1):d!=null&&qu(o,!!g,d,!0);return;case"textarea":on("invalid",o),T=b=g=null;for(M in d)if(d.hasOwnProperty(M)&&(B=d[M],B!=null))switch(M){case"value":g=B;break;case"defaultValue":b=B;break;case"children":T=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(91));break;default:Fn(o,l,M,B,d,null)}Np(o,g,b,T);return;case"option":for(ne in d)d.hasOwnProperty(ne)&&(g=d[ne],g!=null)&&(ne==="selected"?o.selected=g&&typeof g!="function"&&typeof g!="symbol":Fn(o,l,ne,g,d,null));return;case"dialog":on("beforetoggle",o),on("toggle",o),on("cancel",o),on("close",o);break;case"iframe":case"object":on("load",o);break;case"video":case"audio":for(g=0;g<ur.length;g++)on(ur[g],o);break;case"image":on("error",o),on("load",o);break;case"details":on("toggle",o);break;case"embed":case"source":case"link":on("error",o),on("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(me in d)if(d.hasOwnProperty(me)&&(g=d[me],g!=null))switch(me){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Fn(o,l,me,g,d,null)}return;default:if(Uv(l)){for(Ce in d)d.hasOwnProperty(Ce)&&(g=d[Ce],g!==void 0&&P0(o,l,Ce,g,d,void 0));return}}for(B in d)d.hasOwnProperty(B)&&(g=d[B],g!=null&&Fn(o,l,B,g,d,null))}function e5(o,l,d,g){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,T=null,M=null,B=null,ne=null,me=null,Ce=null;for(Ee in d){var Ie=d[Ee];if(d.hasOwnProperty(Ee)&&Ie!=null)switch(Ee){case"checked":break;case"value":break;case"defaultValue":ne=Ie;default:g.hasOwnProperty(Ee)||Fn(o,l,Ee,null,g,Ie)}}for(var ve in g){var Ee=g[ve];if(Ie=d[ve],g.hasOwnProperty(ve)&&(Ee!=null||Ie!=null))switch(ve){case"type":T=Ee;break;case"name":b=Ee;break;case"checked":me=Ee;break;case"defaultChecked":Ce=Ee;break;case"value":M=Ee;break;case"defaultValue":B=Ee;break;case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(r(137,l));break;default:Ee!==Ie&&Fn(o,l,ve,Ee,g,Ie)}}Vu(o,M,B,ne,me,Ce,T,b);return;case"select":Ee=M=B=ve=null;for(T in d)if(ne=d[T],d.hasOwnProperty(T)&&ne!=null)switch(T){case"value":break;case"multiple":Ee=ne;default:g.hasOwnProperty(T)||Fn(o,l,T,null,g,ne)}for(b in g)if(T=g[b],ne=d[b],g.hasOwnProperty(b)&&(T!=null||ne!=null))switch(b){case"value":ve=T;break;case"defaultValue":B=T;break;case"multiple":M=T;default:T!==ne&&Fn(o,l,b,T,g,ne)}l=B,d=M,g=Ee,ve!=null?qu(o,!!d,ve,!1):!!g!=!!d&&(l!=null?qu(o,!!d,l,!0):qu(o,!!d,d?[]:"",!1));return;case"textarea":Ee=ve=null;for(B in d)if(b=d[B],d.hasOwnProperty(B)&&b!=null&&!g.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:Fn(o,l,B,null,g,b)}for(M in g)if(b=g[M],T=d[M],g.hasOwnProperty(M)&&(b!=null||T!=null))switch(M){case"value":ve=b;break;case"defaultValue":Ee=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:b!==T&&Fn(o,l,M,b,g,T)}Nv(o,ve,Ee);return;case"option":for(var rt in d)ve=d[rt],d.hasOwnProperty(rt)&&ve!=null&&!g.hasOwnProperty(rt)&&(rt==="selected"?o.selected=!1:Fn(o,l,rt,null,g,ve));for(ne in g)ve=g[ne],Ee=d[ne],g.hasOwnProperty(ne)&&ve!==Ee&&(ve!=null||Ee!=null)&&(ne==="selected"?o.selected=ve&&typeof ve!="function"&&typeof ve!="symbol":Fn(o,l,ne,ve,g,Ee));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var mt in d)ve=d[mt],d.hasOwnProperty(mt)&&ve!=null&&!g.hasOwnProperty(mt)&&Fn(o,l,mt,null,g,ve);for(me in g)if(ve=g[me],Ee=d[me],g.hasOwnProperty(me)&&ve!==Ee&&(ve!=null||Ee!=null))switch(me){case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(r(137,l));break;default:Fn(o,l,me,ve,g,Ee)}return;default:if(Uv(l)){for(var Un in d)ve=d[Un],d.hasOwnProperty(Un)&&ve!==void 0&&!g.hasOwnProperty(Un)&&P0(o,l,Un,void 0,g,ve);for(Ce in g)ve=g[Ce],Ee=d[Ce],!g.hasOwnProperty(Ce)||ve===Ee||ve===void 0&&Ee===void 0||P0(o,l,Ce,ve,g,Ee);return}}for(var ce in d)ve=d[ce],d.hasOwnProperty(ce)&&ve!=null&&!g.hasOwnProperty(ce)&&Fn(o,l,ce,null,g,ve);for(Ie in g)ve=g[Ie],Ee=d[Ie],!g.hasOwnProperty(Ie)||ve===Ee||ve==null&&Ee==null||Fn(o,l,Ie,ve,g,Ee)}function gS(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function mS(){if(typeof performance.getEntriesByType=="function"){for(var o=0,l=0,d=performance.getEntriesByType("resource"),g=0;g<d.length;g++){var b=d[g],T=b.transferSize,M=b.initiatorType,B=b.duration;if(T&&B&&gS(M)){for(M=0,B=b.responseEnd,g+=1;g<d.length;g++){var ne=d[g],me=ne.startTime;if(me>B)break;var Ce=ne.transferSize,Ie=ne.initiatorType;Ce&&gS(Ie)&&(ne=ne.responseEnd,M+=Ce*(ne<B?1:(B-me)/(ne-me)))}if(--g,l+=8*(T+M)/(b.duration/1e3),o++,10<o)break}}if(0<o)return l/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var nu=null,ph=null;function zg(o){return o.nodeType===9?o:o.ownerDocument}function L0(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gh(o,l){if(o===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&l==="foreignObject"?0:o}function Zi(o,l){return o==="textarea"||o==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Jl=null;function t5(){var o=window.event;return o&&o.type==="popstate"?o===Jl?!1:(Jl=o,!0):(Jl=null,!1)}var vS=typeof setTimeout=="function"?setTimeout:void 0,n5=typeof clearTimeout=="function"?clearTimeout:void 0,yS=typeof Promise=="function"?Promise:void 0,r5=typeof queueMicrotask=="function"?queueMicrotask:typeof yS<"u"?function(o){return yS.resolve(null).then(o).catch(_S
vendor: 11,069 bytes, line 39
39)}:vS;function _S(o){setTimeout(function(){throw o})}function Fi(o){return o==="head"}function jt(o,l){var d=l,g=0;do{var b=d.nextSibling;if(o.removeChild(d),b&&b.nodeType===8)if(d=b.data,d==="/$"||d==="/&"){if(g===0){o.removeChild(b),Nd(l);return}g--}else if(d==="$"||d==="$?"||d==="$~"||d==="$!"||d==="&")g++;else if(d==="html")mh(o.ownerDocument.documentElement);else if(d==="head"){d=o.ownerDocument.head,mh(d);for(var T=d.firstChild;T;){var M=T.nextSibling,B=T.nodeName;T[lt]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&T.rel.toLowerCase()==="stylesheet"||d.removeChild(T),T=M}}else d==="body"&&mh(o.ownerDocument.body);d=b}while(d);Nd(l)}function k0(o,l){var d=o;o=0;do{var g=d.nextSibling;if(d.nodeType===1?l?(d._stashedDisplay=d.style.display,d.style.display="none"):(d.style.display=d._stashedDisplay||"",d.getAttribute("style")===""&&d.removeAttribute("style")):d.nodeType===3&&(l?(d._stashedText=d.nodeValue,d.nodeValue=""):d.nodeValue=d._stashedText||""),g&&g.nodeType===8)if(d=g.data,d==="/$"){if(o===0)break;o--}else d!=="$"&&d!=="$?"&&d!=="$~"&&d!=="$!"||o++;d=g}while(d)}function ps(o){var l=o.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var d=l;switch(l=l.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":ps(d),rn(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}o.removeChild(d)}}function bS(o,l,d,g){for(;o.nodeType===1;){var b=d;if(o.nodeName.toLowerCase()!==l.toLowerCase()){if(!g&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(g){if(!o[lt])switch(l){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(T=o.getAttribute("rel"),T==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(T!==b.rel||o.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||o.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||o.getAttribute("title")!==(b.title==null?null:b.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(T=o.getAttribute("src"),(T!==(b.src==null?null:b.src)||o.getAttribute("type")!==(b.type==null?null:b.type)||o.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&T&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(l==="input"&&o.type==="hidden"){var T=b.name==null?null:""+b.name;if(b.type==="hidden"&&o.getAttribute("name")===T)return o}else return o;if(o=gs(o.nextSibling),o===null)break}return null}function i5(o,l,d){if(l==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!d||(o=gs(o.nextSibling),o===null))return null;return o}function wn(o,l){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=gs(o.nextSibling),o===null))return null;return o}function M0(o){return o.data==="$?"||o.data==="$~"}function Vg(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function ES(o,l){var d=o.ownerDocument;if(o.data==="$~")o._reactRetry=l;else if(o.data!=="$?"||d.readyState!=="loading")l();else{var g=function(){l(),d.removeEventListener("DOMContentLoaded",g)};d.addEventListener("DOMContentLoaded",g),o._reactRetry=g}}function gs(o){for(;o!=null;o=o.nextSibling){var l=o.nodeType;if(l===1||l===3)break;if(l===8){if(l=o.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return o}var D0=null;function SS(o){o=o.nextSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="/$"||d==="/&"){if(l===0)return gs(o.nextSibling);l--}else d!=="$"&&d!=="$!"&&d!=="$?"&&d!=="$~"&&d!=="&"||l++}o=o.nextSibling}return null}function wS(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="$"||d==="$!"||d==="$?"||d==="$~"||d==="&"){if(l===0)return o;l--}else d!=="/$"&&d!=="/&"||l++}o=o.previousSibling}return null}function CS(o,l,d){switch(l=zg(d),o){case"html":if(o=l.documentElement,!o)throw Error(r(452));return o;case"head":if(o=l.head,!o)throw Error(r(453));return o;case"body":if(o=l.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function mh(o){for(var l=o.attributes;l.length;)o.removeAttributeNode(l[0]);rn(o)}var vo=new Map,xS=new Set;function qg(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var rl=Y.d;Y.d={f:s5,r:o5,D:a5,C:N0,L:l5,m:c5,X:ci,S:u5,M:ms};function s5(){var o=rl.f(),l=oh();return o||l}function o5(o){var l=bt(o);l!==null&&l.tag===5&&l.type==="form"?Ny(l):rl.r(o)}var Pd=typeof document>"u"?null:document;function Wg(o,l,d){var g=Pd;if(g&&typeof l=="string"&&l){var b=Wi(l);b='link[rel="'+o+'"][href="'+b+'"]',typeof d=="string"&&(b+='[crossorigin="'+d+'"]'),xS.has(b)||(xS.add(b),o={rel:o,crossOrigin:d,href:l},g.querySelector(b)===null&&(l=g.createElement("link"),xi(l,"link",o),kt(l),g.head.appendChild(l)))}}function a5(o){rl.D(o),Wg("dns-prefetch",o,null)}function N0(o,l){rl.C(o,l),Wg("preconnect",o,l)}function l5(o,l,d){rl.L(o,l,d);var g=Pd;if(g&&o&&l){var b='link[rel="preload"][as="'+Wi(l)+'"]';l==="image"&&d&&d.imageSrcSet?(b+='[imagesrcset="'+Wi(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(b+='[imagesizes="'+Wi(d.imageSizes)+'"]')):b+='[href="'+Wi(o)+'"]';var T=b;switch(l){case"style":T=Ld(o);break;case"script":T=kd(o)}vo.has(T)||(o=v({rel:"preload",href:l==="image"&&d&&d.imageSrcSet?void 0:o,as:l},d),vo.set(T,o),g.querySelector(b)!==null||l==="style"&&g.querySelector(vh(T))||l==="script"&&g.querySelector(yh(T))||(l=g.createElement("link"),xi(l,"link",o),kt(l),g.head.appendChild(l)))}}function c5(o,l){rl.m(o,l);var d=Pd;if(d&&o){var g=l&&typeof l.as=="string"?l.as:"script",b='link[rel="modulepreload"][as="'+Wi(g)+'"][href="'+Wi(o)+'"]',T=b;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":T=kd(o)}if(!vo.has(T)&&(o=v({rel:"modulepreload",href:o},l),vo.set(T,o),d.querySelector(b)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(yh(T)))return}g=d.createElement("link"),xi(g,"link",o),kt(g),d.head.appendChild(g)}}}function u5(o,l,d){rl.S(o,l,d);var g=Pd;if(g&&o){var b=xn(g).hoistableStyles,T=Ld(o);l=l||"default";var M=b.get(T);if(!M){var B={loading:0,preload:null};if(M=g.querySelector(vh(T)))B.loading=5;else{o=v({rel:"stylesheet",href:o,"data-precedence":l},d),(d=vo.get(T))&&U0(o,d);var ne=M=g.createElement("link");kt(ne),xi(ne,"link",o),ne._p=new Promise(function(me,Ce){ne.onload=me,ne.onerror=Ce}),ne.addEventListener("load",function(){B.loading|=1}),ne.addEventListener("error",function(){B.loading|=2}),B.loading|=4,Gg(M,l,g)}M={type:"stylesheet",instance:M,count:1,state:B},b.set(T,M)}}}function ci(o,l){rl.X(o,l);var d=Pd;if(d&&o){var g=xn(d).hoistableScripts,b=kd(o),T=g.get(b);T||(T=d.querySelector(yh(b)),T||(o=v({src:o,async:!0},l),(l=vo.get(b))&&B0(o,l),T=d.createElement("script"),kt(T),xi(T,"link",o),d.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},g.set(b,T))}}function ms(o,l){rl.M(o,l);var d=Pd;if(d&&o){var g=xn(d).hoistableScripts,b=kd(o),T=g.get(b);T||(T=d.querySelector(yh(b)),T||(o=v({src:o,async:!0,type:"module"},l),(l=vo.get(b))&&B0(o,l),T=d.createElement("script"),kt(T),xi(T,"link",o),d.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},g.set(b,T))}}function TS(o,l,d,g){var b=(b=Se.current)?qg(b):null;if(!b)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(l=Ld(d.href),d=xn(b).hoistableStyles,g=d.get(l),g||(g={type:"style",instance:null,count:0,state:null},d.set(l,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){o=Ld(d.href);var T=xn(b).hoistableStyles,M=T.get(o);if(M||(b=b.ownerDocument||b,M={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},T.set(o,M),(T=b.querySelector(vh(o)))&&!T._p&&(M.instance=T,M.state.loading=5),vo.has(o)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},vo.set(o,d),T||d5(b,o,d,M.state))),l&&g===null)throw Error(r(528,""));return M}if(l&&g!==null)throw Error(r(529,""));return null;case"script":return l=d.async,d=d.src,typeof d=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=kd(d),d=xn(b).hoistableScripts,g=d.get(l),g||(g={type:"script",instance:null,count:0,state:null},d.set(l,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Ld(o){return'href="'+Wi(o)+'"'}function vh(o){return'link[rel="stylesheet"]['+o+"]"}function $0(o){return v({},o,{"data-precedence":o.precedence,precedence:null})}function d5(o,l,d,g){o.querySelector('link[rel="preload"][as="style"]['+l+"]")?g.loading=1:(l=o.createElement("link"),g.preload=l,l.addEventListener("load",function(){return g.loading|=1}),l.addEventListener("error",function(){return g.loading|=2}),xi(l,"link",d),kt(l),o.head.appendChild(l))}function kd(o){return'[src="'+Wi(o)+'"]'}function yh(o){return"script[async]"+o}function F0(o,l,d){if(l.count++,l.instance===null)switch(l.type){case"style":var g=o.querySelector('style[data-href~="'+Wi(d.href)+'"]');if(g)return l.instance=g,kt(g),g;var b=v({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return g=(o.ownerDocument||o).createElement("style"),kt(g),xi(g,"style",b),Gg(g,d.precedence,o),l.instance=g;case"stylesheet":b=Ld(d.href);var T=o.querySelector(vh(b));if(T)return l.state.loading|=4,l.instance=T,kt(T),T;g=$0(d),(b=vo.get(b))&&U0(g,b),T=(o.ownerDocument||o).createElement("link"),kt(T);var M=T;return M._p=new Promise(function(B,ne){M.onload=B,M.onerror=ne}),xi(T,"link",g),l.state.loading|=4,Gg(T,d.precedence,o),l.instance=T;case"script":return T=kd(d.src),(b=o.querySelector(yh(T)))?(l.instance=b,kt(b),b):(g=d,(b=vo.get(T))&&(g=v({},d),B0(g,b)),o=o.ownerDocument||o,b=o.createElement("script"),kt(b),xi(b,"link",g),o.head.appendChild(b),l.instance=b);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(g=l.instance,l.state.loading|=4,Gg(g,d.precedence,o));return l.instance}function Gg(o,l,d){for(var g=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=g.length?g[g.length-1]:null,T=b,M=0;M<g.length;M++){var B=g[M];if(B.dataset.precedence===l)T=B;else if(T!==b)break}T?T.parentNode.insertBefore(o,T.nextSibling):(l=d.nodeType===9?d.head:d,l.insertBefore(o,l.firstChild))}function U0(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.title==null&&(o.title=l.title)}function B0(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.integrity==null&&(o.integrity=l.integrity)}var _h=null;function j0(o,l,d){if(_h===null){var g=new Map,b=_h=new Map;b.set(d,g)}
vendor: 6,261 bytes, line 39
39else b=_h,g=b.get(d),g||(g=new Map,b.set(d,g));if(g.has(o))return g;for(g.set(o,null),d=d.getElementsByTagName(o),b=0;b<d.length;b++){var T=d[b];if(!(T[lt]||T[qe]||o==="link"&&T.getAttribute("rel")==="stylesheet")&&T.namespaceURI!=="http://www.w3.org/2000/svg"){var M=T.getAttribute(l)||"";M=o+M;var B=g.get(M);B?B.push(T):g.set(M,[T])}}return g}function RS(o,l,d){o=o.ownerDocument||o,o.head.insertBefore(d,l==="title"?o.querySelector("head > title"):null)}function f5(o,l,d){if(d===1||l.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;return l.rel==="stylesheet"?(o=l.disabled,typeof l.precedence=="string"&&o==null):!0;case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function AS(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function h5(o,l,d,g){if(d.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var b=Ld(g.href),T=l.querySelector(vh(b));if(T){l=T._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(o.count++,o=Kg.bind(o),l.then(o,o)),d.state.loading|=4,d.instance=T,kt(T);return}T=l.ownerDocument||l,g=$0(g),(b=vo.get(b))&&U0(g,b),T=T.createElement("link"),kt(T);var M=T;M._p=new Promise(function(B,ne){M.onload=B,M.onerror=ne}),xi(T,"link",g),d.instance=T}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(d,l),(l=d.state.preload)&&(d.state.loading&3)===0&&(o.count++,d=Kg.bind(o),l.addEventListener("load",d),l.addEventListener("error",d))}}var ec=0;function p5(o,l){return o.stylesheets&&o.count===0&&Xg(o,o.stylesheets),0<o.count||0<o.imgCount?function(d){var g=setTimeout(function(){if(o.stylesheets&&Xg(o,o.stylesheets),o.unsuspend){var T=o.unsuspend;o.unsuspend=null,T()}},6e4+l);0<o.imgBytes&&ec===0&&(ec=62500*mS());var b=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Xg(o,o.stylesheets),o.unsuspend)){var T=o.unsuspend;o.unsuspend=null,T()}},(o.imgBytes>ec?50:800)+l);return o.unsuspend=d,function(){o.unsuspend=null,clearTimeout(g),clearTimeout(b)}}:null}function Kg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xg(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Yg=null;function Xg(o,l){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Yg=new Map,l.forEach(g5,o),Yg=null,Kg.call(o))}function g5(o,l){if(!(l.state.loading&4)){var d=Yg.get(o);if(d)var g=d.get(null);else{d=new Map,Yg.set(o,d);for(var b=o.querySelectorAll("link[data-precedence],style[data-precedence]"),T=0;T<b.length;T++){var M=b[T];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(d.set(M.dataset.precedence,M),g=M)}g&&d.set(null,g)}b=l.instance,M=b.getAttribute("data-precedence"),T=d.get(M)||g,T===g&&d.set(null,b),d.set(M,b),this.count++,g=Kg.bind(this),b.addEventListener("load",g),b.addEventListener("error",g),T?T.parentNode.insertBefore(b,T.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(b,o.firstChild)),l.state.loading|=4}}var Md={$$typeof:O,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function OS(o,l,d,g,b,T,M,B,ne){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=vi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vi(0),this.hiddenUpdates=vi(null),this.identifierPrefix=g,this.onUncaughtError=b,this.onCaughtError=T,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ne,this.incompleteTransitions=new Map}function IS(o,l,d,g,b,T,M,B,ne,me,Ce,Ie){return o=new OS(o,l,d,M,ne,me,Ce,Ie,B),l=1,T===!0&&(l|=24),T=as(3,null,null,l),o.current=T,T.stateNode=o,l=cy(),l.refCount++,o.pooledCache=l,l.refCount++,T.memoizedState={element:g,isDehydrated:d,cache:l},Bc(T),o}function PS(o){return o?(o=Lc,o):Lc}function LS(o,l,d,g,b,T){b=PS(b),g.context===null?g.context=b:g.pendingContext=b,g=ja(l),g.payload={element:d},T=T===void 0?null:T,T!==null&&(g.callback=T),d=Ul(o,g,l),d!==null&&(fs(d,o,l),Bl(d,o,l))}function kS(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var d=o.retryLane;o.retryLane=d!==0&&d<l?d:l}}function H0(o,l){kS(o,l),(o=o.alternate)&&kS(o,l)}function MS(o){if(o.tag===13||o.tag===31){var l=Pl(o,67108864);l!==null&&fs(l,o,67108864),H0(o,67108864)}}function DS(o){if(o.tag===13||o.tag===31){var l=Hs();l=se(l);var d=Pl(o,l);d!==null&&fs(d,o,l),H0(o,l)}}var Qg=!0;function m5(o,l,d,g){var b=H.T;H.T=null;var T=Y.p;try{Y.p=2,z0(o,l,d,g)}finally{Y.p=T,H.T=b}}function v5(o,l,d,g){var b=H.T;H.T=null;var T=Y.p;try{Y.p=8,z0(o,l,d,g)}finally{Y.p=T,H.T=b}}function z0(o,l,d,g){if(Qg){var b=V0(g);if(b===null)dh(o,l,g,Zg,d),$S(o,g);else if(G0(b,o,l,d,g))g.stopPropagation();else if($S(o,g),l&4&&-1<y5.indexOf(o)){for(;b!==null;){var T=bt(b);if(T!==null)switch(T.tag){case 3:if(T=T.stateNode,T.current.memoizedState.isDehydrated){var M=Wn(T.pendingLanes);if(M!==0){var B=T;for(B.pendingLanes|=2,B.entangledLanes|=2;M;){var ne=1<<31-nn(M);B.entanglements[1]|=ne,M&=~ne}va(T),(Sn&6)===0&&(kg=Hn()+500,uh(0))}}break;case 31:case 13:B=Pl(T,2),B!==null&&fs(B,T,2),oh(),H0(T,2)}if(T=V0(g),T===null&&dh(o,l,g,Zg,d),T===b)break;b=T}b!==null&&g.stopPropagation()}else dh(o,l,g,null,d)}}function V0(o){return o=jv(o),q0(o)}var Zg=null;function q0(o){if(Zg=null,o=On(o),o!==null){var l=s(o);if(l===null)o=null;else{var d=l.tag;if(d===13){if(o=a(l),o!==null)return o;o=null}else if(d===31){if(o=c(l),o!==null)return o;o=null}else if(d===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null)}}return Zg=o,null}function NS(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 3,304 bytes, line 39
39:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Yr()){case xr:return 2;case pi:return 8;case zn:case Zn:return 32;case ar:return 268435456;default:return 32}default:return 32}}var W0=!1,tc=null,nc=null,rc=null,bh=new Map,Eh=new Map,ic=[],y5="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function $S(o,l){switch(o){case"focusin":case"focusout":tc=null;break;case"dragenter":case"dragleave":nc=null;break;case"mouseover":case"mouseout":rc=null;break;case"pointerover":case"pointerout":bh.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Eh.delete(l.pointerId)}}function Sh(o,l,d,g,b,T){return o===null||o.nativeEvent!==T?(o={blockedOn:l,domEventName:d,eventSystemFlags:g,nativeEvent:T,targetContainers:[b]},l!==null&&(l=bt(l),l!==null&&MS(l)),o):(o.eventSystemFlags|=g,l=o.targetContainers,b!==null&&l.indexOf(b)===-1&&l.push(b),o)}function G0(o,l,d,g,b){switch(l){case"focusin":return tc=Sh(tc,o,l,d,g,b),!0;case"dragenter":return nc=Sh(nc,o,l,d,g,b),!0;case"mouseover":return rc=Sh(rc,o,l,d,g,b),!0;case"pointerover":var T=b.pointerId;return bh.set(T,Sh(bh.get(T)||null,o,l,d,g,b)),!0;case"gotpointercapture":return T=b.pointerId,Eh.set(T,Sh(Eh.get(T)||null,o,l,d,g,b)),!0}return!1}function K0(o){var l=On(o.target);if(l!==null){var d=s(l);if(d!==null){if(l=d.tag,l===13){if(l=a(d),l!==null){o.blockedOn=l,Le(o.priority,function(){DS(d)});return}}else if(l===31){if(l=c(d),l!==null){o.blockedOn=l,Le(o.priority,function(){DS(d)});return}}else if(l===3&&d.stateNode.current.memoizedState.isDehydrated){o.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}o.blockedOn=null}function wh(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var d=V0(o.nativeEvent);if(d===null){d=o.nativeEvent;var g=new d.constructor(d.type,d);Bv=g,d.target.dispatchEvent(g),Bv=null}else return l=bt(d),l!==null&&MS(l),o.blockedOn=d,!1;l.shift()}return!0}function FS(o,l,d){wh(o)&&d.delete(l)}function _5(){W0=!1,tc!==null&&wh(tc)&&(tc=null),nc!==null&&wh(nc)&&(nc=null),rc!==null&&wh(rc)&&(rc=null),bh.forEach(FS),Eh.forEac
vendor: 4,952 bytes, line 39
39h(FS)}function Jg(o,l){o.blockedOn===l&&(o.blockedOn=null,W0||(W0=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,_5)))}var Dd=null;function US(o){Dd!==o&&(Dd=o,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Dd===o&&(Dd=null);for(var l=0;l<o.length;l+=3){var d=o[l],g=o[l+1],b=o[l+2];if(typeof g!="function"){if(q0(g||d)===null)continue;break}var T=bt(d);T!==null&&(o.splice(l,3),l-=3,gd(T,{pending:!0,data:b,method:d.method,action:g},g,b))}}))}function Nd(o){function l(ne){return Jg(ne,o)}tc!==null&&Jg(tc,o),nc!==null&&Jg(nc,o),rc!==null&&Jg(rc,o),bh.forEach(l),Eh.forEach(l);for(var d=0;d<ic.length;d++){var g=ic[d];g.blockedOn===o&&(g.blockedOn=null)}for(;0<ic.length&&(d=ic[0],d.blockedOn===null);)K0(d),d.blockedOn===null&&ic.shift();if(d=(o.ownerDocument||o).$$reactFormReplay,d!=null)for(g=0;g<d.length;g+=3){var b=d[g],T=d[g+1],M=b[Ye]||null;if(typeof T=="function")M||US(d);else if(M){var B=null;if(T&&T.hasAttribute("formAction")){if(b=T,M=T[Ye]||null)B=M.formAction;else if(q0(b)!==null)continue}else B=M.action;typeof B=="function"?d[g+1]=B:(d.splice(g,3),g-=3),US(d)}}}function BS(){function o(T){T.canIntercept&&T.info==="react-transition"&&T.intercept({handler:function(){return new Promise(function(M){return b=M})},focusReset:"manual",scroll:"manual"})}function l(){b!==null&&(b(),b=null),g||setTimeout(d,20)}function d(){if(!g&&!navigation.transition){var T=navigation.currentEntry;T&&T.url!=null&&navigation.navigate(T.url,{state:T.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var g=!1,b=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(d,100),function(){g=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),b!==null&&(b(),b=null)}}}function Ui(o){this._internalRoot=o}$d.prototype.render=Ui.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(r(409));var d=l.current,g=Hs();LS(d,g,o,l,null,null)},$d.prototype.unmount=Ui.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;LS(o.current,2,null,o,null,null),oh(),l[Ge]=null}};function $d(o){this._internalRoot=o}$d.prototype.unstable_scheduleHydration=function(o){if(o){var l=Oe();o={blockedOn:null,target:o,priority:l};for(var d=0;d<ic.length&&l!==0&&l<ic[d].priority;d++);ic.splice(d,0,o),d===0&&K0(o)}};var jS=e.version;if(jS!=="19.2.6")throw Error(r(527,jS,"19.2.6"));Y.findDOMNode=function(o){var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=h(l),o=o!==null?p(o):null,o=o===null?null:o.stateNode,o};var b5={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var em=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!em.isDisabled&&em.supportsFiber)try{Wt=em.inject(b5),Nt=em}catch{}}return u_.createRoot=function(o,l){if(!i(o))throw Error(r(299));var d=!1,g="",b=pa,T=jy,M=Hy;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onUncaughtError!==void 0&&(b=l.onUncaughtError),l.onCaughtError!==void 0&&(T=l.onCaughtError),l.onRecoverableError!==void 0&&(M=l.onRecoverableError)),l=IS(o,1,!1,null,null,d,g,null,b,T,M,BS),o[Ge]=l.current,O0(o),new Ui(l)},u_.hydrateRoot=function(o,l,d){if(!i(o))throw Error(r(299));var g=!1,b="",T=pa,M=jy,B=Hy,ne=null;return d!=null&&(d.unstable_strictMode===!0&&(g=!0),d.identifierPrefix!==void 0&&(b=d.identifierPrefix),d.onUncaughtError!==void 0&&(T=d.onUncaughtError),d.onCaughtError!==void 0&&(M=d.onCaughtError),d.onRecoverableError!==void 0&&(B=d.onRecoverableError),d.formState!==void 0&&(ne=d.formState)),l=IS(o,1,!0,l,d??null,g,b,ne,T,M,B,BS),l.context=PS(null),d=l.current,g=Hs(),g=se(g),b=ja(g),b.callback=null,Ul(d,b,g),d=g,l.current.lanes=d,yi(l,d),va(l),o[Ge]=l.current,O0(o),new $d(l)},u_.version="19.2.6",u_}var qD;function yae(){if(qD)return _R.exports;qD=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),_R.exports=vae(),_R.exports}var dz=yae(),wR={exports:{}},CR={};var WD;function _ae(){if(WD)return CR;WD=1;var t=Ev();function e(u,h){return u===h&&(u!==0||1/u===1/h)||u!==u&&h!==h}var n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,c=t.useDebugValue;return CR.useSyncExternalStoreWithSelector=function(u,h,p,v,y){var E=i(null);if(E.current===null){var S={hasValue:!1,value:null};E.current=S}else S=E.current;E=a(function(){function C(L){if(!R){if(R=!0,A=L,L=v(L),y!==void 0&&S.hasValue){var D=S.value;
39if(y(D,L))return O=D}return O=L}if(D=O,n(A,L))return D;var N=v(L);return y!==void 0&&y(D,N)?(A=L,D):(A=L,O=N)}var R=!1,A,O,P=p===void 0?null:p;return[function(){return C(h())},P===null?void 0:function(){return C(P())}]},[h,p,v,y]);var x=r(u,E[0],E[1]);return s(function(){S.hasValue=!0,S.value=x},[x]),c(x),x},CR}var GD;function bae(){return GD||(GD=1,wR.exports=_ae()),wR.exports}var Eae=bae();function Sae(t){t()}function wae(){let t=null,e=null;return{clear(){t=null,e=null},notify(){Sae(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=t;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=e={callback:n,next:null,prev:e};return i.prev?i.prev.next=i:t=i,function(){!r||t===null||(r=!1,i.next?i.next.prev=i.prev:e=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var KD={notify(){},get:()=>[]};function Cae(t,e){let n,r=KD,i=0,s=!1;function a(x){p();const C=r.subscribe(x);let R=!1;return()=>{R||(R=!0,C(),v())}}function c(){r.notify()}function u(){S.onStateChange&&S.onStateChange()}function h(){return s}function p(){i++,n||(n=t.subscribe(u),r=wae())}function v(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=KD)}function y(){s||(s=!0,p())}function E(){s&&(s=!1,v())}const S={addNestedSub:a,notifyNestedSubs:c,handleChangeWrapper:u,isSubscribed:h,trySubscribe:y,tryUnsubscribe:E,getListeners:()=>r};return S}var xae=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Tae=xae(),Rae=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Aae=Rae(),Oae=()=>Tae||Aae?_.useLayoutEffect:_.useEffect,Iae=Oae(),Pae=Symbol.for("react-redux-context"),Lae=typeof globalThis<"u"?globalThis:{};function kae(){if(!_.createContext)return{};const t=Lae[Pae]??=new Map;let e=t.get(_.createContext);return e||(e=_.createContext(null),t.set(_.createContext,e)),e}var pf=kae();function Mae(t){const{children:e,context:n,serverState:r,store:i}=t,s=_.useMemo(()=>{const u=Cae(i);return{store:i,subscription:u,getServerState:r?()=>r:void 0}},[i,r]),a=_.useMemo(()=>i.getState(),[i]);Iae(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==i.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const c=n||pf;return _.createElement(c.Provider,{value:s},e)}var Dae=Mae;function rP(t=pf){return function(){return _.useContext(t)}}var fz=rP();function hz(t=pf){const e=t===pf?fz:rP(t),n=()=>{const{store:r}=e();return r};return Object.assign(n,{withTypes:()=>n}),n}var Nae=hz();function $ae(t=pf){const e=t===pf?Nae:hz(t),n=()=>e().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Ix=$ae(),Fae=(t,e)=>t===e;function Uae(t=pf){const e=t===pf?fz:rP(t),n=(r,i={})=>{const{equalityFn:s=Fae}=typeof i=="function"?{equalityFn:i}:i,a=e(),{store:c,subscription:u,getServerState:h}=a;_.useRef(!0);const p=_.useCallback({[r.name](y){return r(y)}}[r.name],[r]),v=Eae.useSyncExternalStoreWithSelector(u.addNestedSub,c.getState,h||c.getState,p,s);return _.useDebugValue(v),v};return Object.assign(n,{withTypes:()=>n}),n}var zt=Uae();var pz=t=>{throw TypeError(t)},gz=(t,e,n)=>e.has(t)||pz("Cannot "+n),wa=(t,e,n)=>(gz(t,e,"read from private field"),n?n.call(t):e.get(t)),F_=(t,e,n)=>e.has(t)?pz("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),ac=(t,e,n,r)=>(gz(t,e,"write to private field"),e.set(t,n),n),Px=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,iP=/^[\\/]{2}/;function mz(t,e){return e+t.replace(/\\/g,"/")}var YD="popstate";function XD(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function Bae(t={}){function e(r,i){let s=i.state?.masked,{pathname:a,search:c,hash:u}=s||r.location;return N1("",{pathname:a,search:c,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default",s?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,i){return typeof i=="string"?i:Ec(i)}return Hae(e,n,null,t)}function Jt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Kr(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function jae(){return Math.random().toString(36).substring(2,10)}function QD(t,e){return{usr:t.state,key:t.key,idx:e,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function N1(t,e,n=null,r,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?xc(e):e,state:n,key:e&&e.key||r||jae(),mask:i}}function Ec({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function xc(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function Hae(t,e,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,c="POP",u=null,h=p();h==null&&(h=0,a.replaceState({...a.state,idx:h},""));function p(){return(a.state||{idx:null}).idx}function v(){c="POP";let C=p(),R=C==null?null:C-h;h=C,u&&u({action:c,location:x.location,delta:R})}function y(C,R){c="PUSH";let A=XD(C)?C:N1(x.location,C,R);h=p()+1;let O=QD(A,h),P=x.createHref(A.mask||A);try{a.pushState(O,"",P)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;i.location.assign(P)}s&&u&&u({action:c,location:x.location,delta:1})}function E(C,R){c="REPLACE";let A=XD(C)?C:N1(x.location,C,R);h=p();let O=QD(A,h),P=x.createHref(A.mask||A);a.replaceState(O,"",P),s&&u&&u({action:c,location:x.location,delta:0})}function S(C){return vz(i,C)}let x={get action(){return c},get location(){return t(i,a)},listen(C){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(YD,v),u=C,()=>{i.removeEventListener(YD,v),u=null}},createHref(C){return e(i,C)},createURL:S,encodeLocation(C){let R=S(C);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:y,replace:E,go(C){return a.go(C)}};return x}function vz(t,e,n=!1){let r="http://localhost";t&&(r=t.location.origin!=="null"?t.location.origin:t.location.href),Jt(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Ec(e);return i=i.replace(/ $/,"%20"),!n&&iP.test(i)&&(i=r+i),new URL(i,r)}var U_,ZD=class{constructor(t){if(F_(this,U_,new Map),t)for(let[e,n]of t)this.set(e,n)}get(t){if(wa(this,U_).has(t))return wa(this,U_).get(t);if(t.defaultValue!==void 0)return t.defaultValue;throw new Error("No value found for context")}set(t,e){wa(this,U_).set(t,e)}};U_=new WeakMap;
39var zae=new Set(["lazy","caseSensitive","path","id","index","children"]);function Vae(t){return zae.has(t)}var qae=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function Wae(t){return qae.has(t)}function Gae(t){return t.index===!0}function $1(t,e,n=[],r={},i=!1){return t.map((s,a)=>{let c=[...n,String(a)],u=typeof s.id=="string"?s.id:c.join("-");if(Jt(s.index!==!0||!s.children,"Cannot specify children on an index route"),Jt(i||!r[u],`Found a route id collision on id "${u}". Route id's must be globally unique within Data Router usages`),Gae(s)){let h={...s,id:u};return r[u]=JD(h,e(h)),h}else{let h={...s,id:u,children:void 0};return r[u]=JD(h,e(h)),s.children&&(h.children=$1(s.children,e,c,r,i)),h}})}function JD(t,e){return Object.assign(t,{...e,...typeof e.lazy=="object"&&e.lazy!=null?{lazy:{...t.lazy,...e.lazy}}:{}})}function yz(t,e,n="/"){return ol(t,e,n,!1)}function ol(t,e,n,r,i){let s=typeof e=="string"?xc(e):e,a=Ia(s.pathname||"/",n);if(a==null)return null;let c=i??d2(t),u=null,h=wz(a);for(let p=0;u==null&&p<c.length;++p)u=ile(c[p],h,r);return u}function Kae(t,e){let{route:n,pathname:r,params:i}=t;return{id:n.id,pathname:r,params:i,data:e[n.id],loaderData:e[n.id],handle:n.handle}}function d2(t){let e=_z(t);return Yae(e),e}function _z(t,e=[],n=[],r="",i=!1){let s=(a,c,u=i,h)=>{let p={relativePath:h===void 0?a.path||"":h,caseSensitive:a.caseSensitive===!0,childrenIndex:c,route:a};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(r)&&u)return;Jt(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length)}let v=Aa([r,p.relativePath]),y=n.concat(p);a.children&&a.children.length>0&&(Jt(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),_z(a.children,e,y,v,u)),!(a.path==null&&!a.index)&&e.push({path:v,score:nle(v,a.index),routesMeta:y.map((E,S)=>{let[x,C]=Sz(E.relativePath,E.caseSensitive,S===y.length-1);return{...E,matcher:x,compiledParams:C}})})};return t.forEach((a,c)=>{if(a.path===""||!a.path?.includes("?"))s(a,c);else for(let u of bz(a.path))s(a,c,!0,u)}),e}function bz(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let a=bz(r.join("/")),c=[];return c.push(...a.map(u=>u===""?s:[s,u].join("/"))),i&&c.push(...a),c.map(u=>t.startsWith("/")&&u===""?"/":u)}function Yae(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:rle(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Xae=/^:[\w-]+$/,Qae=3,Zae=2,Jae=1,ele=10,tle=-2,eN=t=>t==="*";function nle(t,e){let n=t.split("/"),r=n.length;return n.some(eN)&&(r+=tle),e&&(r+=Zae),n.filter(i=>!eN(i)).reduce((i,s)=>i+(Xae.test(s)?Qae:s===""?Jae:ele),r)}function rle(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function ile(t,e,n=!1){let{routesMeta:r}=t,i={},s="/",a=[];for(let c=0;c<r.length;++c){let u=r[c],h=c===r.length-1,p=s==="/"?e:e.slice(s.length)||"/",v={path:u.relativePath,caseSensitive:u.caseSensitive,end:h},y=u.matcher&&u.compiledParams?Ez(v,p,u.matcher,u.compiledParams):F1(v,p),E=u.route;if(!y&&h&&n&&!r[r.length-1].route.index&&(y=F1({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},p)),!y)return null;
39Object.assign(i,y.params),a.push({params:i,pathname:Aa([s,y.pathname]),pathnameBase:ale(Aa([s,y.pathnameBase])),route:E}),y.pathnameBase!=="/"&&(s=Aa([s,y.pathnameBase]))}return a}function F1(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=Sz(t.path,t.caseSensitive,t.end);return Ez(t,e,n,r)}function Ez(t,e,n,r){let i=e.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce((h,{paramName:p,isOptional:v},y)=>{if(p==="*"){let S=c[y]||"";a=s.slice(0,s.length-S.length).replace(/(.)\/+$/,"$1")}const E=c[y];return v&&!E?h[p]=void 0:h[p]=(E||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:a,pattern:t}}function Sz(t,e=!1,n=!0){Kr(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,c,u,h,p)=>{if(r.push({paramName:c,isOptional:u!=null}),u){let v=p.charAt(h+a.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function wz(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Kr(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function Ia(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function sle({basename:t,pathname:e}){return e==="/"?t:Aa([t,e])}var sP=t=>Px.test(t);function ole(t,e="/"){let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?xc(t):t,s;return n?(n=oP(n),n.startsWith("/")?s=tN(n.substring(1),"/"):s=tN(n,e)):s=e,{pathname:s,search:lle(r),hash:cle(i)}}function tN(t,e){let n=OC(e).split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function xR(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Cz(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Lx(t){let e=Cz(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function db(t,e,n,r=!1){let i;typeof t=="string"?i=xc(t):(i={...t},Jt(!i.pathname||!i.pathname.includes("?"),xR("?","pathname","search",i)),Jt(!i.pathname||!i.pathname.includes("#"),xR("#","pathname","hash",i)),Jt(!i.search||!i.search.includes("#"),xR("#","search","hash",i)));let s=t===""||i.pathname==="",a=s?"/":i.pathname,c;if(a==null)c=n;else{let v=e.length-1;if(!r&&a.startsWith("..")){let y=a.split("/");for(;y[0]==="..";)y.shift(),v-=1;i.pathname=y.join("/")}c=v>=0?e[v]:"/"}let u=ole(i,c),h=a&&a!=="/"&&a.endsWith("/"),p=(s||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(h||p)&&(u.pathname+="/"),u}var oP=t=>t.replace(/[\\/]{2,}/g,"/"),Aa=t=>oP(t.join("/")),OC=t=>t.replace(/\/+$/,""),ale=t=>OC(t).replace(/^\/*/,"/"),lle=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,cle=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,ule=["EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],fb=class{constructor(t,e,n,r=!1){this.status=t,this.statusText=e||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function U1(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function hb(t){let e=t.map(n=>
39n.route.path).filter(Boolean);return Aa(e)||"/"}var xz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Tz(t,e){let n=t;if(typeof n!="string"||!Px.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(xz)try{let s=new URL(window.location.href),a=iP.test(n)?new URL(mz(n,s.protocol)):new URL(n),c=Ia(a.pathname,e);a.origin===s.origin&&c!=null?n=c+a.search+a.hash:i=!0}catch{Kr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var ef=Symbol("Uninstrumented");function dle(t,e){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};t.forEach(i=>i({id:e.id,index:e.index,path:e.path,instrument(s){let a=Object.keys(n);for(let c of a)s[c]&&n[c].push(s[c])}}));let r={};if(typeof e.lazy=="function"&&n.lazy.length>0){let i=Om(n.lazy,e.lazy,()=>{});i&&(r.lazy=i)}if(typeof e.lazy=="object"){let i=e.lazy;["middleware","loader","action"].forEach(s=>{let a=i[s],c=n[`lazy.${s}`];if(typeof a=="function"&&c.length>0){let u=Om(c,a,()=>{});u&&(r.lazy=Object.assign(r.lazy||{},{[s]:u}))}})}return["loader","action"].forEach(i=>{let s=e[i];if(typeof s=="function"&&n[i].length>0){let a=s[ef]??s,c=Om(n[i],a,(...u)=>nN(u[0]));c&&(i==="loader"&&a.hydrate===!0&&(c.hydrate=!0),c[ef]=a,r[i]=c)}}),e.middleware&&e.middleware.length>0&&n.middleware.length>0&&(r.middleware=e.middleware.map(i=>{let s=i[ef]??i,a=Om(n.middleware,s,(...c)=>nN(c[0]));return a?(a[ef]=s,a):i})),r}function fle(t,e){let n={navigate:[],fetch:[]};if(e.forEach(r=>r({instrument(i){let s=Object.keys(i);for(let a of s)i[a]&&n[a].push(i[a])}})),n.navigate.length>0){let r=t.navigate[ef]??t.navigate,i=Om(n.navigate,r,(...s)=>{let[a,c]=s;return{to:typeof a=="number"||typeof a=="string"?a:a?Ec(a):".",...rN(t,c??{})}});i&&(i[ef]=r,t.navigate=i)}if(n.fetch.length>0){let r=t.fetch[ef]??t.fetch,i=Om(n.fetch,r,(...s)=>{let[a,,c,u]=s;return{href:c??".",fetcherKey:a,...rN(t,u??{})}});i&&(i[ef]=r,t.fetch=i)}return t}function Om(t,e,n){return t.length===0?null:async(...r)=>{let i=await Rz(t,n(...r),()=>e(...r),t.length-1);if(i.type==="error")throw i.value;return i.value}}async function Rz(t,e,n,r){let i=t[r],s;if(i){let a,c=async()=>(a?console.error("You cannot call instrumented handlers more than once"):a=Rz(t,e,n,r-1),s=await a,Jt(s,"Expected a result"),s.type==="error"&&s.value instanceof Error?{status:"error",error:s.value}:{status:"success",error:void 0});try{await i(c,e)}catch(u){console.error("An instrumentation function threw an error:",u)}a||await c(),await a}else try{s={type:"success",value:await n()}}catch(a){s={type:"error",value:a}}return s||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function nN(t){let{request:e,context:n,params:r,pattern:i}=t;return{request:hle(e),params:{...r},pattern:i,context:ple(n)}}function rN(t,e){return{currentUrl:Ec(t.state.location),..."formMethod"in e?{formMethod:e.formMethod}:{},..."formEncType"in e?{formEncType:e.formEncType}:{},..."formData"in e?{formData:e.formData}:{},..."body"in e?{body:e.body}:{}}}function hle(t){return{method:t.method,url:t.url,headers:{get:(...e)=>t.headers.get(...e)}}}function ple(t){if(mle(t)){let e={...t};return Object.freeze(e),e}else return{get:e=>t.get(e)}}var gle=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function mle(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||e===null||Object.getOwnPropertyNames(e).sort().join("\0")===gle}var Az=["POST","PUT","PATCH","DELETE"],vle=new Set(Az),yle=["GET",...Az],_le=new Set(yle),Oz=new Set([301,302,303,307,308]),ble=new Set([307,308]),TR={state:"idle",location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ele={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},d_={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Sle=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),Iz="remix-router-transitions",Pz=Symbol("ResetLoaderData"),Dh,Sm,Vd,wm,wle=class{constructor(t){F_(this,Dh),F_(this,Sm),F_(this,Vd),F_(this,wm),ac(this,Dh,t),ac(this,Sm,d2(t))}get stableRoutes(){return wa(this,Dh)}get activeRoutes(){return wa(this,Vd)??wa(this,Dh)}get branches(){return wa(this,wm)??wa(this,Sm)}get hasHMRRoutes(){return wa(this,Vd)!=null}setRoutes(t){ac(this,Dh,t),ac(this,Sm,d2(t))}setHmrRoutes(t){ac(this,Vd,t),ac(this,wm,d2(t))}commitHmrRoutes(){wa(this,Vd)&&(ac(this,Dh,wa(this,Vd)),ac(this,Sm,wa(this,wm)),ac(this,Vd,void 0),ac(this,wm,void 0))}};Dh=new WeakMap;Sm=new WeakMap;Vd=new WeakMap;wm=new WeakMap;function Cle(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u";Jt(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=t.hydrationRouteProperties||[],i=t.mapRouteProperties||Sle,s=i;if(t.instrumentations){let te=t.instrumentations;s=se=>({...i(se),...dle(te.map(pe=>
39pe.route).filter(Boolean),se)})}let a={},c=new wle($1(t.routes,s,void 0,a)),u=t.basename||"/";u.startsWith("/")||(u=`/${u}`);let h=t.dataStrategy||Ole,p={...t.future},v=null,y=new Set,E=null,S=null,x=null,C=null,R=t.hydrationData!=null,A=ol(c.activeRoutes,t.history.location,u,!1,c.branches),O=!1,P=null,L,D;if(A==null&&!t.patchRoutesOnNavigation){let te=Ca(404,{pathname:t.history.location.pathname}),{matches:se,route:pe}=pw(c.activeRoutes);L=!0,D=!L,A=se,P={[pe.id]:te}}else if(A&&!t.hydrationData&&vi(A,c.activeRoutes,t.history.location.pathname).active&&(A=null),A)if(A.some(te=>te.route.lazy))L=!1,D=!L;else if(!A.some(te=>aP(te.route)))L=!0,D=!L;else{let te=t.hydrationData?t.hydrationData.loaderData:null,se=t.hydrationData?t.hydrationData.errors:null,pe=A;if(se){let Oe=A.findIndex(Le=>se[Le.route.id]!==void 0);pe=pe.slice(0,Oe+1)}D=!1,L=!0,pe.forEach(Oe=>{let Le=Lz(Oe.route,te,se);D=D||Le.renderFallback,L=L&&!Le.shouldLoad})}else{L=!1,D=!L,A=[];let te=vi(null,c.activeRoutes,t.history.location.pathname);te.active&&te.matches&&(O=!0,A=te.matches)}let N,k={historyAction:t.history.action,location:t.history.location,matches:A,initialized:L,renderFallback:D,navigation:TR,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||P,fetchers:new Map,blockers:new Map},U="POP",F=null,V=!1,G,Z=!1,K=new Map,J=null,H=!1,Y=!1,ee=new Set,fe=new Map,ue=0,z=-1,Q=new Map,ae=new Set,de=new Map,be=new Map,Se=new Set,je=new Map,Ne,ze=null;function tt(){if(v=t.history.listen(({action:te,location:se,delta:pe})=>{if(Ne){Ne(),Ne=void 0;return}Kr(je.size===0||pe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Oe=si({currentLocation:k.location,nextLocation:se,historyAction:te});if(Oe&&pe!=null){let Le=new Promise(Ke=>{Ne=Ke});t.history.go(pe*-1),qn(Oe,{state:"blocked",location:se,proceed(){qn(Oe,{state:"proceeding",proceed:void 0,reset:void 0,location:se}),Le.then(()=>t.history.go(pe))},reset(){let Ke=new Map(k.blockers);Ke.set(Oe,d_),Ve({blockers:Ke})}}),F?.resolve(),F=null;return}return vt(te,se)}),n){Kle(e,K);let te=()=>Yle(e,K);e.addEventListener("pagehide",te),J=()=>e.removeEventListener("pagehide",te)}return k.initialized||vt("POP",k.location,{initialHydration:!0}),N}function Je(){v&&v(),J&&J(),y.clear(),G&&G.abort(),k.fetchers.forEach((te,se)=>Wt(k.fetchers,se)),k.blockers.forEach((te,se)=>gi(se))}function We(te){if(y.add(te),E){let{newErrors:se}=E;E=null,te(k,{deletedFetchers:[],newErrors:se,viewTransitionOpts:void 0,flushSync:!1})}return()=>y.delete(te)}function Ve(te,se={}){te.matches&&(te.matches=te.matches.map(Le=>{let Ke=a[Le.route.id],qe=Le.route;return qe.element!==Ke.element||qe.errorElement!==Ke.errorElement||qe.hydrateFallbackElement!==Ke.hydrateFallbackElement?{...Le,route:Ke}:Le})),k={...k,...te};let pe=[],Oe=[];k.fetchers.forEach((Le,Ke)=>{Le.state==="idle"&&(Se.has(Ke)?pe.push(Ke):Oe.push(Ke))}),Se.forEach(Le=>{!k.fetchers.has(Le)&&!fe.has(Le)&&pe.push(Le)}),y.size===0&&(E={newErrors:te.errors??null}),[...y].forEach(Le=>Le(k,{deletedFetchers:pe,newErrors:te.errors??null,viewTransitionOpts:se.viewTransitionOpts,flushSync:se.flushSync===!0})),pe.forEach(Le=>Wt(k.fetchers,Le)),Oe.forEach(Le=>k.fetchers.delete(Le))}function Pt(te,se,{flushSync:pe}={}){let Oe=k.actionData!=null&&k.navigation.formMethod!=null&&Ss(k.navigation.formMethod)&&k.navigation.state==="loading"&&te.state?._isRedirect!==!0,Le;se.actionData?Object.keys(se.actionData).length>0?Le=se.actionData:Le=null:Oe?Le=k.actionData:Le=null;let Ke=se.loaderData?hN(k.loaderData,se.loaderData,se.matches||[],se.errors):k.loaderData,qe=k.blockers;qe.size>0&&(qe=new Map(qe),qe.forEach((nt,xt)=>qe.set(xt,d_)));let Ye=H?!1:ro(te,se.matches||k.matches),Ge=V===!0||k.navigation.formMethod!=null&&Ss(k.navigation.formMethod)&&te.state?._isRedirect!==!0;c.commitHmrRoutes(),H||U==="POP"||(U==="PUSH"?t.history.push(te,te.state):U==="REPLACE"&&t.history.replace(te,te.state));let it;if(U==="POP"){let nt=K.get(k.location.pathname);nt&&nt.has(te.pathname)?it={currentLocation:k.location,nextLocation:te}:K.has(te.pathname)&&(it={currentLocation:te,nextLocation:k.location})}else if(Z){let nt=K.get(k.location.pathname);nt?nt.add(te.pathname):(nt=new Set([te.pathname]),K.set(k.location.pathname,nt)),it={currentLocation:k.location,nextLocation:te}}Ve({...se,actionData:Le,loaderData:Ke,historyAction:U,location:te,initialized:!0,renderFallback:!1,navigation:TR,revalidation:"idle",restoreScrollPosition:Ye,preventScrollReset:Ge,blockers:qe},{viewTransitionOpts:it,flushSync:pe===!0}),U="POP",V=!1,Z=!1,H=!1,Y=!1,F?.resolve(),F=null,ze?.resolve(),ze=null}async function dt(te,se){if(F?.resolve(),F=null,typeof te=="number"){F||(F=vN());
39let rn=F.promise;return t.history.go(te),rn}let pe=XO(k.location,k.matches,u,te,se?.fromRouteId,se?.relative),{path:Oe,submission:Le,error:Ke}=iN(!1,pe,se),qe;se?.mask&&(qe={pathname:"",search:"",hash:"",...typeof se.mask=="string"?xc(se.mask):{...k.location.mask,...se.mask}});let Ye=k.location,Ge=N1(Ye,Oe,se&&se.state,void 0,qe);Ge={...Ge,...t.history.encodeLocation(Ge)};let it=se&&se.replace!=null?se.replace:void 0,nt="PUSH";it===!0?nt="REPLACE":it===!1||Le!=null&&Ss(Le.formMethod)&&Le.formAction===k.location.pathname+k.location.search&&(nt="REPLACE");let xt=se&&"preventScrollReset"in se?se.preventScrollReset===!0:void 0,ht=(se&&se.flushSync)===!0,lt=si({currentLocation:Ye,nextLocation:Ge,historyAction:nt});if(lt){qn(lt,{state:"blocked",location:Ge,proceed(){qn(lt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ge}),dt(te,se)},reset(){let rn=new Map(k.blockers);rn.set(lt,d_),Ve({blockers:rn})}});return}await vt(nt,Ge,{submission:Le,pendingError:Ke,preventScrollReset:xt,replace:se&&se.replace,enableViewTransition:se&&se.viewTransition,flushSync:ht,callSiteDefaultShouldRevalidate:se&&se.defaultShouldRevalidate})}function $e(){ze||(ze=vN()),zn(),Ve({revalidation:"loading"});let te=ze.promise;return k.navigation.state==="submitting"?te:k.navigation.state==="idle"?(vt(k.historyAction,k.location,{startUninterruptedRevalidation:!0}),te):(vt(U||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:Z===!0}),te)}async function vt(te,se,pe){G&&G.abort(),G=null,U=te,H=(pe&&pe.startUninterruptedRevalidation)===!0,Mn(k.location,k.matches),V=(pe&&pe.preventScrollReset)===!0,Z=(pe&&pe.enableViewTransition)===!0;let Oe=c.activeRoutes,Le=pe?.initialHydration&&k.matches&&k.matches.length>0&&!O?k.matches:ol(Oe,se,u,!1,c.branches),Ke=(pe&&pe.flushSync)===!0;if(Le&&k.initialized&&!Y&&Fle(k.location,se)&&!(pe&&pe.submission&&Ss(pe.submission.formMethod))){Pt(se,{matches:Le},{flushSync:Ke});return}let qe=vi(Le,Oe,se.pathname);if(qe.active&&qe.matches&&(Le=qe.matches),!Le){let{error:bt,notFoundMatches:Et,route:xn}=Wn(se.pathname);Pt(se,{matches:Et,loaderData:{},errors:{[xn.id]:bt}},{flushSync:Ke});return}let Ye=pe&&pe.overrideNavigation?{...pe.overrideNavigation,matches:Le,historyAction:te}:void 0;G=new AbortController;let Ge=Cm(t.history,se,G.signal,pe&&pe.submission),it=t.getContext?await t.getContext():new ZD,nt;if(pe&&pe.pendingError)nt=[Zd(Le).route.id,{type:"error",error:pe.pendingError}];else if(pe&&pe.submission&&Ss(pe.submission.formMethod)){let bt=await ot(Ge,se,pe.submission,Le,te,it,qe.active,pe&&pe.initialHydration===!0,{replace:pe.replace,flushSync:Ke});if(bt.shortCircuited)return;if(bt.pendingActionResult){let[Et,xn]=bt.pendingActionResult;if(Ko(xn)&&U1(xn.error)&&xn.error.status===404){G=null,Pt(se,{matches:bt.matches,loaderData:{},errors:{[Et]:xn.error}});return}}Le=bt.matches||Le,nt=bt.pendingActionResult,Ye=RR(se,Le,te,pe.submission),Ke=!1,qe.active=!1,Ge=Cm(t.history,Ge.url,Ge.signal)}let{shortCircuited:xt,matches:ht,loaderData:lt,errors:rn,workingFetchers:On}=await Bt(Ge,se,Le,te,it,qe.active,Ye,pe&&pe.submission,pe&&pe.fetcherSubmission,pe&&pe.replace,pe&&pe.initialHydration===!0,Ke,nt,pe&&pe.callSiteDefaultShouldRevalidate);xt||(G=null,Pt(se,{matches:ht||Le,...pN(nt),loaderData:lt,errors:rn,...On?{fetchers:On}:{}}))}async function ot(te,se,pe,Oe,Le,Ke,qe,Ye,Ge={}){zn();let it=Wle(se,Oe,Le,pe);if(Ve({navigation:it},{flushSync:Ge.flushSync===!0}),qe){let ht=await yi(Oe,se.pathname,te.signal);if(ht.type==="aborted")return{shortCircuited:!0};if(ht.type==="error"){if(ht.partialMatches.length===0){let{matches:rn,route:On}=pw(c.activeRoutes);return{matches:rn,pendingActionResult:[On.id,{type:"error",error:ht.error}]}}let lt=Zd(ht.partialMatches).route.id;return{matches:ht.partialMatches,pendingActionResult:[lt,{type:"error",error:ht.error}]}}else if(ht.matches)Oe=ht.matches;else{let{notFoundMatches:lt,error:rn,route:On}=Wn(se.pathname);return{matches:lt,pendingActionResult:[On.id,{type:"error",error:rn}]}}}let nt,xt=f2(Oe,se);if(!xt.route.action&&!xt.route.lazy)nt={type:"error",error:Ca(405,{method:te.method,pathname:se.pathname,routeId:xt.route.id})};else{let ht=Um(s,a,te,se,Oe,xt,Ye?[]:r,Ke),lt=await xr(te,se,ht,Ke,null);if(nt=lt[xt.route.id],!nt){for(let rn of Oe)if(lt[rn.route.id]){nt=lt[rn.route.id];break}}if(te.signal.aborted)return{shortCircuited:!0}}if(Xh(nt)){let ht;return Ge&&Ge.replace!=null?ht=Ge.replace:ht=uN(nt.response.headers.get("Location"),new URL(te.url),u,t.history)===k.location.pathname+k.location.search,await Yr(te,nt,!0,{submission:pe,replace:ht}),{shortCircuited:!0}}if(Ko(nt)){let ht=Zd(Oe,xt.route.id);return(Ge&&Ge.replace)!==!0&&(U="PUSH"),{matches:Oe,pendingActionResult:[ht.route.id,nt,xt.route.id]}}return{matches:Oe,pendingActionResult:[xt.route.id,nt]}}async function Bt(te,se,pe,Oe,Le,Ke,qe,Ye,Ge,it,nt,xt,ht,lt){let rn=qe||RR(se,pe,Oe,Ye),On=Ye||Ge||mN(rn),bt=!H&&!nt;if(Ke){if(bt){let Tn=An(ht);Ve({navigation:rn,...Tn!==void 0?{actionData:Tn}:{}},{flushSync:xt})}let Tt=await yi(pe,se.pathname,te.signal);if(Tt.type==="aborted")return{shortCircuited:!0};if(Tt.type==="error"){if(Tt.partialMatches.length===0){let{matches:Di,route:qi}=pw(c.activeRoutes);return{matches:Di,loaderData:{},errors:{[qi.id]:Tt.error}}}let Tn=Zd(Tt.partialMatches).route.id;return{matches:Tt.partialMatches,loaderData:{},errors:{[Tn]:Tt.error}}}else if(Tt.matches)pe=Tt.matches;else{let{error:Tn,notFoundMatches:Di,route:qi}=Wn(se.pathname);return{matches:Di,loaderData:{},errors:{[qi.id]:Tn}}}}let Et=c.activeRoutes,{dsMatches:xn,revalidatingFetchers:kt}=sN(te,Le,s,a,t.history,k,pe,On,se,nt?[]:r,nt===!0,Y,ee,Se,de,ae,Et,u,t.patchRoutesOnNavigation!=null,c.branches,ht,lt);if(z=++ue,!t.dataStrategy&&!xn.some(Tt=>Tt.shouldLoad)&&!xn.some(Tt=>Tt.route.middleware&&Tt.route.middleware.length>0)&&kt.length===0){let Tt=new Map(k.fetchers),Tn=Xr(Tt);return Pt(se,{matches:pe,loaderData:{},errors:ht&&Ko(ht[1])?{[ht[0]]:ht[1].error}:null,...pN(ht),...Tn?{fetchers:Tt}:{}},{flushSync:xt}),{shortCircuited:!0}}if(bt){let Tt={};if(!Ke){Tt.navigation=rn;let Tn=An(ht);Tn!==void 0&&(Tt.actionData=Tn)}kt.length>0&&(Tt.fetchers=Ut(kt)),Ve(Tt,{flushSync:xt})}kt.forEach(Tt=>{Xt(Tt.key),Tt.controller&&fe.set(Tt.key,Tt.controller)});let ss=()=>kt.forEach(Tt=>
39Xt(Tt.key));G&&G.signal.addEventListener("abort",ss);let{loaderResults:Mi,fetcherResults:Tr}=await pi(xn,kt,te,se,Le);if(te.signal.aborted)return{shortCircuited:!0};G&&G.signal.removeEventListener("abort",ss),kt.forEach(Tt=>fe.delete(Tt.key));let mr=gw(Mi);if(mr)return await Yr(te,mr.result,!0,{replace:it}),{shortCircuited:!0};if(mr=gw(Tr),mr)return ae.add(mr.key),await Yr(te,mr.result,!0,{replace:it}),{shortCircuited:!0};let _i=new Map(k.fetchers),{loaderData:yt,errors:dn}=fN(k,pe,Mi,ht,kt,Tr,_i);nt&&k.errors&&(dn={...k.errors,...dn});let Qr=Xr(_i),so=Li(z,_i),oo=Qr||so||kt.length>0;return{matches:pe,loaderData:yt,errors:dn,...oo?{workingFetchers:_i}:{}}}function An(te){if(te&&!Ko(te[1]))return{[te[0]]:te[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function Ut(te){let se=new Map(k.fetchers);return te.forEach(pe=>{let Oe=se.get(pe.key),Le=f_(void 0,Oe?Oe.data:void 0);se.set(pe.key,Le)}),se}async function qt(te,se,pe,Oe){Xt(te);let Le=(Oe&&Oe.flushSync)===!0,Ke=c.activeRoutes,qe=XO(k.location,k.matches,u,pe,se,Oe?.relative),Ye=ol(Ke,qe,u,!1,c.branches),Ge=vi(Ye,Ke,qe);if(Ge.active&&Ge.matches&&(Ye=Ge.matches),!Ye){ar(te,se,Ca(404,{pathname:qe}),{flushSync:Le});return}let{path:it,submission:nt,error:xt}=iN(!0,qe,Oe);if(xt){ar(te,se,xt,{flushSync:Le});return}let ht=t.getContext?await t.getContext():new ZD,lt=(Oe&&Oe.preventScrollReset)===!0;if(nt&&Ss(nt.formMethod)){await or(te,se,it,Ye,ht,Ge.active,Le,lt,nt,Oe&&Oe.defaultShouldRevalidate);return}de.set(te,{routeId:se,path:it}),await Hn(te,se,it,Ye,ht,Ge.active,Le,lt,nt)}async function or(te,se,pe,Oe,Le,Ke,qe,Ye,Ge,it){zn(),de.delete(te);let nt=k.fetchers.get(te);Zn(te,Gle(Ge,nt),{flushSync:qe});let xt=new AbortController,ht=Cm(t.history,pe,xt.signal,Ge);if(Ke){let yn=await yi(Oe,new URL(ht.url).pathname,ht.signal,te);if(yn.type==="aborted")return;if(yn.type==="error"){ar(te,se,yn.error,{flushSync:qe});return}else if(yn.matches)Oe=yn.matches;else{ar(te,se,Ca(404,{pathname:pe}),{flushSync:qe});return}}let lt=f2(Oe,pe);if(!lt.route.action&&!lt.route.lazy){let yn=Ca(405,{method:Ge.formMethod,pathname:pe,routeId:se});ar(te,se,yn,{flushSync:qe});return}fe.set(te,xt);let rn=ue,On=Um(s,a,ht,pe,Oe,lt,r,Le),bt=await xr(ht,pe,On,Le,te),Et=bt[lt.route.id];if(!Et){for(let yn of On)if(bt[yn.route.id]){Et=bt[yn.route.id];break}}if(ht.signal.aborted){fe.get(te)===xt&&fe.delete(te);return}if(Se.has(te)){if(Xh(Et)||Ko(Et)){Zn(te,uc(void 0));return}}else{if(Xh(Et))if(fe.delete(te),z>rn){Zn(te,uc(void 0));return}else return ae.add(te),Zn(te,f_(Ge)),Yr(ht,Et,!1,{fetcherSubmission:Ge,preventScrollReset:Ye});if(Ko(Et)){ar(te,se,Et.error);return}}let xn=k.navigation.location||k.location,kt=Cm(t.history,xn,xt.signal),ss=c.activeRoutes,Mi=k.navigation.state!=="idle"?ol(ss,k.navigation.location,u,!1,c.branches):k.matches;Jt(Mi,"Didn't find any matches after fetcher action");let Tr=++ue;Q.set(te,Tr);let{dsMatches:mr,revalidatingFetchers:_i}=sN(kt,Le,s,a,t.history,k,Mi,Ge,xn,r,!1,Y,ee,Se,de,ae,ss,u,t.patchRoutesOnNavigation!=null,c.branches,[lt.route.id,Et],it),yt=f_(Ge,Et.data),dn=new Map(k.fetchers);dn.set(te,yt),_i.filter(yn=>yn.key!==te).forEach(yn=>{let ia=yn.key,Wi=dn.get(ia),Vu=f_(void 0,Wi?Wi.data:void 0);dn.set(ia,Vu),Xt(ia),yn.controller&&fe.set(ia,yn.controller)}),Ve({fetchers:dn});let Qr=()=>_i.forEach(yn=>Xt(yn.key));xt.signal.addEventListener("abort",Qr);let{loaderResults:so,fetcherResults:oo}=await pi(mr,_i,kt,xn,Le);if(xt.signal.aborted)return;xt.signal.removeEventListener("abort",Qr),Q.delete(te),fe.delete(te),_i.forEach(yn=>fe.delete(yn.key));let Tt=k.fetchers.has(te),Tn=yn=>{if(!Tt)return yn;let ia=new Map(yn.fetchers);return ia.set(te,uc(Et.data)),{...yn,fetchers:ia}},Di=gw(so);if(Di)return k=Tn(k),Yr(kt,Di.result,!1,{preventScrollReset:Ye});if(Di=gw(oo),Di)return ae.add(Di.key),k=Tn(k),Yr(kt,Di.result,!1,{preventScrollReset:Ye});let qi=new Map(k.fetchers);Tt&&qi.set(te,uc(Et.data));let{loaderData:Cl,errors:Da}=fN(k,Mi,so,void 0,_i,oo,qi);Li(Tr,qi),k.navigation.state==="loading"&&Tr>z?(Jt(U,"Expected pending action"),G&&G.abort(),Pt(k.navigation.location,{matches:Mi,loaderData:Cl,errors:Da,fetchers:qi})):(Ve({errors:Da,loaderData:hN(k.loaderData,Cl,Mi,Da),fetchers:qi}),Y=!1)}async function Hn(te,se,pe,Oe,Le,Ke,qe,Ye,Ge){let it=k.fetchers.get(te);Zn(te,f_(Ge,it?it.data:void 0),{flushSync:qe});
39let nt=new AbortController,xt=Cm(t.history,pe,nt.signal);if(Ke){let Et=await yi(Oe,new URL(xt.url).pathname,xt.signal,te);if(Et.type==="aborted")return;if(Et.type==="error"){ar(te,se,Et.error,{flushSync:qe});return}else if(Et.matches)Oe=Et.matches;else{ar(te,se,Ca(404,{pathname:pe}),{flushSync:qe});return}}let ht=f2(Oe,pe);fe.set(te,nt);let lt=ue,rn=Um(s,a,xt,pe,Oe,ht,r,Le),On=await xr(xt,pe,rn,Le,te),bt=On[ht.route.id];if(!bt){for(let Et of Oe)if(On[Et.route.id]){bt=On[Et.route.id];break}}if(fe.get(te)===nt&&fe.delete(te),!xt.signal.aborted){if(Se.has(te)){Zn(te,uc(void 0));return}if(Xh(bt))if(z>lt){Zn(te,uc(void 0));return}else{ae.add(te),await Yr(xt,bt,!1,{preventScrollReset:Ye});return}if(Ko(bt)){ar(te,se,bt.error);return}Zn(te,uc(bt.data))}}async function Yr(te,se,pe,{submission:Oe,fetcherSubmission:Le,preventScrollReset:Ke,replace:qe}={}){pe||(F?.resolve(),F=null),se.response.headers.has("X-Remix-Revalidate")&&(Y=!0);let Ye=se.response.headers.get("Location");Jt(Ye,"Expected a Location header on the redirect Response"),Ye=uN(Ye,new URL(te.url),u,t.history);let Ge=N1(k.location,Ye,{_isRedirect:!0});if(n){let rn=!1;if(se.response.headers.has("X-Remix-Reload-Document"))rn=!0;else if(sP(Ye)){const On=vz(e,Ye,!0);rn=On.origin!==e.location.origin||Ia(On.pathname,u)==null}if(rn){qe?e.location.replace(Ye):e.location.assign(Ye);return}}G=null;let it=qe===!0||se.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:nt,formAction:xt,formEncType:ht}=k.navigation;!Oe&&!Le&&nt&&xt&&ht&&(Oe=mN(k.navigation));let lt=Oe||Le;if(ble.has(se.response.status)&<&&Ss(lt.formMethod))await vt(it,Ge,{submission:{...lt,formAction:Ye},preventScrollReset:Ke||V,enableViewTransition:pe?Z:void 0});else{let rn=RR(Ge,[],it,Oe);await vt(it,Ge,{overrideNavigation:rn,fetcherSubmission:Le,preventScrollReset:Ke||V,enableViewTransition:pe?Z:void 0})}}async function xr(te,se,pe,Oe,Le){let Ke,qe={};try{Ke=await Ple(h,te,se,pe,Le,Oe,!1)}catch(Ye){return pe.filter(Ge=>Ge.shouldLoad).forEach(Ge=>{qe[Ge.route.id]={type:"error",error:Ye}}),qe}if(te.signal.aborted)return qe;if(!Ss(te.method))for(let Ye of pe){if(Ke[Ye.route.id]?.type==="error")break;!Ke.hasOwnProperty(Ye.route.id)&&!k.loaderData.hasOwnProperty(Ye.route.id)&&(!k.errors||!k.errors.hasOwnProperty(Ye.route.id))&&Ye.shouldCallHandler()&&(Ke[Ye.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Ye.route.id}`)})}for(let[Ye,Ge]of Object.entries(Ke))if(Hle(Ge)){let it=Ge.result;qe[Ye]={type:"redirect",response:Dle(it,te,Ye,pe,u)}}else qe[Ye]=await Mle(Ge);return qe}async function pi(te,se,pe,Oe,Le){let Ke=xr(pe,Oe,te,Le,null),qe=Promise.all(se.map(async it=>{if(it.matches&&it.match&&it.request&&it.controller){let xt=(await xr(it.request,it.path,it.matches,Le,it.key))[it.match.route.id];return{[it.key]:xt}}else return Promise.resolve({[it.key]:{type:"error",error:Ca(404,{pathname:it.path})}})})),Ye=await Ke,Ge=(await qe).reduce((it,nt)=>Object.assign(it,nt),{});return{loaderResults:Ye,fetcherResults:Ge}}function zn(){Y=!0,de.forEach((te,se)=>{fe.has(se)&&ee.add(se),Xt(se)})}function Zn(te,se,pe={}){let Oe=new Map(k.fetchers);Oe.set(te,se),Ve({fetchers:Oe},{flushSync:(pe&&pe.flushSync)===!0})}function ar(te,se,pe,Oe={}){let Le=Zd(k.matches,se),Ke=new Map(k.fetchers);Wt(Ke,te),Ve({errors:{[Le.route.id]:pe},fetchers:Ke},{flushSync:(Oe&&Oe.flushSync)===!0})}function Vi(te){return be.set(te,(be.get(te)||0)+1),Se.has(te)&&Se.delete(te),k.fetchers.get(te)||Ele}function Vn(te,se){Xt(te,se?.reason),Zn(te,uc(null))}function Wt(te,se){let pe=k.fetchers.get(se);fe.has(se)&&!(pe&&pe.state==="loading"&&Q.has(se))&&Xt(se),de.delete(se),Q.delete(se),ae.delete(se),Se.delete(se),ee.delete(se),te.delete(se)}function Nt(te){let se=(be.get(te)||0)-1;se<=0?(be.delete(te),Se.add(te)):be.set(te,se),Ve({fetchers:new Map(k.fetchers)})}function Xt(te,se){let pe=fe.get(te);pe&&(pe.abort(se),fe.delete(te))}function nn(te,se){for(let pe of te){let Oe=se.get(pe);Jt(Oe,`Expected fetcher: ${pe}`);let Le=uc(Oe.data);se.set(pe,Le)}}function Xr(te){let se=[],pe=!1;for(let Oe of ae){let Le=te.get(Oe);Jt(Le,`Expected fetcher: ${Oe}`),Le.state==="loading"&&(ae.delete(Oe),se.push(Oe),pe=!0)}return nn(se,te),pe}function Li(te,se){let pe=[];for(let[Oe,Le]of Q)if(Le<te){let Ke=se.get(Oe);Jt(Ke,`Expected fetcher: ${Oe}`),Ke.state==="loading"&&(Xt(Oe),Q.delete(Oe),pe.push(Oe))}return nn(pe,se),pe.length>0}function ki(te,se){let pe=k.blockers.get(te)||d_;return je.get(te)!==se&&je.set(te,se),pe}function gi(te){k.blockers.delete(te),je.delete(te)}function qn(te,se){let pe=k.blockers.get(te)||d_;Jt(pe.state==="unblocked"&&se.state==="blocked"||pe.state==="blocked"&&se.state==="blocked"||pe.state==="blocked"&&se.state==="proceeding"||pe.state==="blocked"&&se.state==="unblocked"||pe.state==="proceeding"&&se.state==="unblocked",`Invalid blocker state transition: ${pe.state} -> ${se.state}`);
39let Oe=new Map(k.blockers);Oe.set(te,se),Ve({blockers:Oe})}function si({currentLocation:te,nextLocation:se,historyAction:pe}){if(je.size===0)return;je.size>1&&Kr(!1,"A router only supports one blocker at a time");let Oe=Array.from(je.entries()),[Le,Ke]=Oe[Oe.length-1],qe=k.blockers.get(Le);if(!(qe&&qe.state==="proceeding")&&Ke({currentLocation:te,nextLocation:se,historyAction:pe}))return Le}function Wn(te){let se=Ca(404,{pathname:te}),pe=c.activeRoutes,{matches:Oe,route:Le}=pw(pe);return{notFoundMatches:Oe,route:Le,error:se}}function Os(te,se,pe){if(S=te,C=se,x=pe||null,!R&&k.navigation===TR){R=!0;let Oe=ro(k.location,k.matches);Oe!=null&&Ve({restoreScrollPosition:Oe})}return()=>{S=null,C=null,x=null}}function mi(te,se){return x&&x(te,se.map(Oe=>Kae(Oe,k.loaderData)))||te.key}function Mn(te,se){if(S&&C){let pe=mi(te,se);S[pe]=C()}}function ro(te,se){if(S){let pe=mi(te,se),Oe=S[pe];if(typeof Oe=="number")return Oe}return null}function vi(te,se,pe){if(t.patchRoutesOnNavigation){let Oe=c.branches;if(te){if(Object.keys(te[0].params).length>0)return{active:!0,matches:ol(se,pe,u,!0,Oe)}}else return{active:!0,matches:ol(se,pe,u,!0,Oe)||[]}}return{active:!1,matches:null}}async function yi(te,se,pe,Oe){if(!t.patchRoutesOnNavigation)return{type:"success",matches:te};let Le=te;for(;;){let Ke=a;try{await t.patchRoutesOnNavigation({signal:pe,path:se,matches:Le,fetcherKey:Oe,patch:(it,nt)=>{pe.aborted||oN(it,nt,c,Ke,s,!1)}})}catch(it){return{type:"error",error:it,partialMatches:Le}}if(pe.aborted)return{type:"aborted"};let qe=c.branches,Ye=ol(c.activeRoutes,se,u,!1,qe),Ge=null;if(Ye){if(Object.keys(Ye[0].params).length===0)return{type:"success",matches:Ye};if(Ge=ol(c.activeRoutes,se,u,!0,qe),!(Ge&&Le.length<Ge.length&&io(Le,Ge.slice(0,Le.length))))return{type:"success",matches:Ye}}if(Ge||(Ge=ol(c.activeRoutes,se,u,!0,qe)),!Ge||io(Le,Ge))return{type:"success",matches:null};Le=Ge}}function io(te,se){return te.length===se.length&&te.every((pe,Oe)=>pe.route.id===se[Oe].route.id)}function Co(te){a={},c.setHmrRoutes($1(te,s,void 0,a))}function xo(te,se,pe=!1){oN(te,se,c,a,s,pe),c.hasHMRRoutes||Ve({})}return N={get basename(){return u},get future(){return p},get state(){return k},get routes(){return c.stableRoutes},get branches(){return c.branches},get manifest(){return a},get window(){return e},initialize:tt,subscribe:We,enableScrollRestoration:Os,navigate:dt,fetch:qt,revalidate:$e,createHref:te=>t.history.createHref(te),encodeLocation:te=>t.history.encodeLocation(te),getFetcher:Vi,resetFetcher:Vn,deleteFetcher:Nt,dispose:Je,getBlocker:ki,deleteBlocker:gi,patchRoutes:xo,_internalFetchControllers:fe,_internalSetRoutes:Co,_internalSetStateDoNotUseOrYouWillBreakYourApp(te){Ve(te)}},t.instrumentations&&(N=fle(N,t.instrumentations.map(te=>te.router).filter(Boolean))),N}function xle(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function XO(t,e,n,r,i,s){let a,c;if(i){a=[];for(let h of e)if(a.push(h),h.route.id===i){c=h;break}}else a=e,c=e[e.length-1];let u=db(r||".",Lx(a),Ia(t.pathname,n)||t.pathname,s==="path");if(r==null&&(u.search=t.search,u.hash=t.hash),(r==null||r===""||r===".")&&c){let h=cP(u.search);if(c.route.index&&!h)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&h){let p=new URLSearchParams(u.search),v=p.getAll("index");p.delete("index"),v.filter(E=>E).forEach(E=>p.append("index",E));let y=p.toString();u.search=y?`?${y}`:""}}return n!=="/"&&(u.pathname=sle({basename:n,pathname:u.pathname})),Ec(u)}function iN(t,e,n){if(!n||!xle(n))return{path:e};if(n.formMethod&&!qle(n.formMethod))return{path:e,error:Ca(405,{method:n.formMethod})};let r=()=>({path:e,error:Ca(400,{type:"invalid-body"})}),s=(n.formMethod||"get").toUpperCase(),a=Uz(e);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ss(s))return r();let v=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,[E,S])=>`${y}${E}=${S} 40`,""):String(n.body);return{path:e,submission:{formMethod:s,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:v}}}else if(n.formEncType==="application/json"){if(!Ss(s))return r();
40try{let v=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:e,submission:{formMethod:s,formAction:a,formEncType:n.formEncType,formData:void 0,json:v,text:void 0}}}catch{return r()}}}Jt(typeof FormData=="function","FormData is not available in this environment");let c,u;if(n.formData)c=JO(n.formData),u=n.formData;else if(n.body instanceof FormData)c=JO(n.body),u=n.body;else if(n.body instanceof URLSearchParams)c=n.body,u=dN(c);else if(n.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(n.body),u=dN(c)}catch{return r()}let h={formMethod:s,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ss(h.formMethod))return{path:e,submission:h};let p=xc(e);return t&&p.search&&cP(p.search)&&c.append("index",""),p.search=`?${c}`,{path:Ec(p),submission:h}}function sN(t,e,n,r,i,s,a,c,u,h,p,v,y,E,S,x,C,R,A,O,P,L){let D=P?Ko(P[1])?P[1].error:P[1].data:void 0,N=i.createURL(s.location),k=i.createURL(u),U;if(p&&s.errors){let H=Object.keys(s.errors)[0];U=a.findIndex(Y=>Y.route.id===H)}else if(P&&Ko(P[1])){let H=P[0];U=a.findIndex(Y=>Y.route.id===H)-1}let F=P?P[1].statusCode:void 0,V=F&&F>=400,G={currentUrl:N,currentParams:s.matches[0]?.params||{},nextUrl:k,nextParams:a[0].params,...c,actionResult:D,actionStatus:F},Z=hb(a),K=a.map((H,Y)=>{let{route:ee}=H,fe=null;if(U!=null&&Y>U)fe=!1;else if(ee.lazy)fe=!0;else if(!aP(ee))fe=!1;else if(p){let{shouldLoad:ae}=Lz(ee,s.loaderData,s.errors);fe=ae}else Tle(s.loaderData,s.matches[Y],H)&&(fe=!0);if(fe!==null)return QO(n,r,t,u,Z,H,h,e,fe);let ue=!1;typeof L=="boolean"?ue=L:V?ue=!1:(v||N.pathname+N.search===k.pathname+k.search||N.search!==k.search||Rle(s.matches[Y],H))&&(ue=!0);let z={...G,defaultShouldRevalidate:ue},Q=r1(H,z);return QO(n,r,t,u,Z,H,h,e,Q,z,L)}),J=[];return S.forEach((H,Y)=>{if(p||!a.some(be=>be.route.id===H.routeId)||E.has(Y))return;let ee=s.fetchers.get(Y),fe=ee&&ee.state!=="idle"&&ee.data===void 0,ue=ol(C,H.path,R??"/",!1,O);if(!ue){if(A&&fe)return;J.push({key:Y,routeId:H.routeId,path:H.path,matches:null,match:null,request:null,controller:null});return}if(x.has(Y))return;let z=f2(ue,H.path),Q=new AbortController,ae=Cm(i,H.path,Q.signal),de=null;if(y.has(Y))y.delete(Y),de=Um(n,r,ae,H.path,ue,z,h,e);else if(fe)v&&(de=Um(n,r,ae,H.path,ue,z,h,e));else{let be;typeof L=="boolean"?be=L:V?be=!1:be=v;let Se={...G,defaultShouldRevalidate:be};r1(z,Se)&&(de=Um(n,r,ae,H.path,ue,z,h,e,Se))}de&&J.push({key:Y,routeId:H.routeId,path:H.path,matches:de,match:z,request:ae,controller:Q})}),{dsMatches:K,revalidatingFetchers:J}}function aP(t){return t.loader!=null||t.middleware!=null&&t.middleware.length>0}function Lz(t,e,n){if(t.lazy)return{shouldLoad:!0,renderFallback:!0};if(!aP(t))return{shouldLoad:!1,renderFallback:!1};let r=e!=null&&t.id in e,i=n!=null&&n[t.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof t.loader=="function"&&t.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let s=!r&&!i;return{shouldLoad:s,renderFallback:s}}function Tle(t,e,n){let r=!e||n.route.id!==e.route.id,i=!t.hasOwnProperty(n.route.id);return r||i}function Rle(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function r1(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}function oN(t,e,n,r,i,s){let a;if(t){let h=r[t];Jt(h,`No route found to patch children into: routeId = ${t}`),h.children||(h.children=[]),a=h.children}else a=n.activeRoutes;let c=[],u=[];if(e.forEach(h=>{let p=a.find(v=>kz(h,v));p?u.push({existingRoute:p,newRoute:h}):c.push(h)}),c.length>0){let h=$1(c,i,[t||"_","patch",String(a?.length||"0")],r);a.push(...h)}if(s&&u.length>0)for(let h=0;h<u.length;h++){let{existingRoute:p,newRoute:v}=u[h],y=p,[E]=$1([v],i,[],{},!0);Object.assign(y,{element:E.element?E.element:y.element,errorElement:E.errorElement?E.errorElement:y.errorElement,hydrateFallbackElement:E.hydrateFallbackElement?E.hydrateFallbackElement:y.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function kz(t,e){return"id"in t&&"id"in e&&t.id===e.id?!0:t.index===e.index&&t.path===e.path&&t.caseSensitive===e.caseSensitive?(!t.children||t.children.length===0)&&(!e.children||e.children.length===0)?!0:t.children?.every((n,r)=>e.children?.some(i=>kz(n,i)))??!1:!1}var aN=new WeakMap,Mz=({key:t,route:e,manifest:n,mapRouteProperties:r})=>{let i=n[e.id];if(Jt(i,"No route found in manifest"),!i.lazy||typeof i.lazy!="object")return;let s=i.lazy[t];if(!s)return;let a=aN.get(i);a||(a={},aN.set(i,a));let c=a[t];if(c)return c;let u=(async()=>{let h=Vae(t),v=i[t]!==void 0&&t!=="hasErrorBoundary";if(h)Kr(!h,"Route property "+t+" is not a supported lazy route property. This property will be ignored."),a[t]=Promise.resolve();else if(v)Kr(!1,`Route "${i.id}" has a static property "${t}" defined. The lazy property will be ignored.`);else{let y=await s();y!=null&&(Object.assign(i,{[t]:y}),Object.assign(i,r(i)))}typeof i.lazy=="object"&&(i.lazy[t]=void 0,Object.values(i.lazy).every(y=>y===void 0)&&(i.lazy=void 0))})();return a[t]=u,u},lN=new WeakMap;function Ale(t,e,n,r,i){let s=n[t.id];if(Jt(s,"No route found in manifest"),!t.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof t.lazy=="function"){let p=lN.get(s);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let v=(async()=>{Jt(typeof t.lazy=="function","No lazy route function found");let y=await t.lazy(),E={};for(let S in y){let x=y[S];if(x===void 0)continue;let C=Wae(S),A=s[S]!==void 0&&S!=="hasErrorBoundary";C?Kr(!C,"Route property "+S+" is not a supported property to be returned from a lazy route function. This property will be ignored."):A?Kr(!A,`Route "${s.id}" has a static property "${S}" defined but its lazy function is also returning a value for this property. The lazy route property "${S}" will be ignored.`):E[S]=x}Object.assign(s,E),Object.assign(s,{...r(s),lazy:void 0})})();return lN.set(s,v),v.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:v}}let a=Object.keys(t.lazy),c=[],u;
40for(let p of a){if(i&&i.includes(p))continue;let v=Mz({key:p,route:t,manifest:n,mapRouteProperties:r});v&&(c.push(v),p===e&&(u=v))}let h=c.length>0?Promise.all(c).then(()=>{}):void 0;return h?.catch(()=>{}),u?.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:u}}async function cN(t){let e=t.matches.filter(i=>i.shouldLoad),n={};return(await Promise.all(e.map(i=>i.resolve()))).forEach((i,s)=>{n[e[s].route.id]=i}),n}async function Ole(t){return t.matches.some(e=>e.route.middleware)?Dz(t,()=>cN(t)):cN(t)}function Dz(t,e){return Ile(t,e,r=>{if(Vle(r))throw r;return r},Ble,n);function n(r,i,s){if(s)return Promise.resolve(Object.assign(s.value,{[i]:{type:"error",result:r}}));{let{matches:a}=t,c=Math.min(Math.max(a.findIndex(h=>h.route.id===i),0),Math.max(a.findIndex(h=>h.shouldCallHandler()),0)),u=Zd(a,a[c].route.id).route.id;return Promise.resolve({[u]:{type:"error",result:r}})}}}async function Ile(t,e,n,r,i){let{matches:s,...a}=t,c=s.flatMap(h=>h.route.middleware?h.route.middleware.map(p=>[h.route.id,p]):[]);return await Nz(a,c,e,n,r,i)}async function Nz(t,e,n,r,i,s,a=0){let{request:c}=t;if(c.signal.aborted)throw c.signal.reason??new Error(`Request aborted: ${c.method} ${c.url}`);let u=e[a];if(!u)return await n();let[h,p]=u,v,y=async()=>{if(v)throw new Error("You may only call `next()` once per middleware");try{return v={value:await Nz(t,e,n,r,i,s,a+1)},v.value}catch(E){return v={value:await s(E,h,v)},v.value}};try{let E=await p(t,y),S=E!=null?r(E):void 0;return i(S)?S:v?S??v.value:(v={value:await y()},v.value)}catch(E){return await s(E,h,v)}}function $z(t,e,n,r,i){let s=Mz({key:"middleware",route:r.route,manifest:e,mapRouteProperties:t}),a=Ale(r.route,Ss(n.method)?"action":"loader",e,t,i);return{middleware:s,route:a.lazyRoutePromise,handler:a.lazyHandlerPromise}}function QO(t,e,n,r,i,s,a,c,u,h=null,p){let v=!1,y=$z(t,e,n,s,a);return{...s,_lazyPromises:y,shouldLoad:u,shouldRevalidateArgs:h,shouldCallHandler(E){return v=!0,h?typeof p=="boolean"?r1(s,{...h,defaultShouldRevalidate:p}):typeof E=="boolean"?r1(s,{...h,defaultShouldRevalidate:E}):r1(s,h):u},resolve(E){let{lazy:S,loader:x,middleware:C}=s.route,R=v||u||E&&!Ss(n.method)&&(S||x),A=C&&C.length>0&&!x&&!S;return R&&(Ss(n.method)||!A)?Lle({request:n,path:r,pattern:i,match:s,lazyHandlerPromise:y?.handler,lazyRoutePromise:y?.route,handlerOverride:E,scopedContext:c}):Promise.resolve({type:"data",result:void 0})}}}function Um(t,e,n,r,i,s,a,c,u=null){return i.map(h=>h.route.id!==s.route.id?{...h,shouldLoad:!1,shouldRevalidateArgs:u,shouldCallHandler:()=>!1,_lazyPromises:$z(t,e,n,h,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:QO(t,e,n,r,hb(i),h,a,c,!0,u))}async function Ple(t,e,n,r,i,s,a){r.some(p=>p._lazyPromises?.middleware)&&await Promise.all(r.map(p=>p._lazyPromises?.middleware));let c={request:e,url:Fz(e,n),pattern:hb(r),params:r[0].params,context:s,matches:r},h=await t({...c,fetcherKey:i,runClientMiddleware:p=>{let v=c;return Dz(v,()=>p({...v,fetcherKey:i,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(r.flatMap(p=>[p._lazyPromises?.handler,p._lazyPromises?.route]))}catch{}return h}async function Lle({request:t,path:e,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:s,handlerOverride:a,scopedContext:c}){let u,h,p=Ss(t.method),v=p?"action":"loader",y=E=>{let S,x=new Promise((A,O)=>S=O);h=()=>S(),t.signal.addEventListener("abort",h);let C=A=>typeof E!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${v}" [routeId: ${r.route.id}]`)):E({request:t,url:Fz(t,e),pattern:n,params:r.params,context:c},...A!==void 0?[A]:[]),R=(async()=>{try{return{type:"data",result:await(a?a(O=>C(O)):C())}}catch(A){return{type:"error",result:A}}})();return Promise.race([R,x])};try{let E=p?r.route.action:r.route.loader;if(i||s)if(E){let S,[x]=await Promise.all([y(E).catch(C=>{S=C}),i,s]);if(S!==void 0)throw S;u=x}else{await i;let S=p?r.route.action:r.route.loader;if(S)[u]=await Promise.all([y(S),s]);else if(v==="action"){let x=new URL(t.url),C=x.pathname+x.search;throw Ca(405,{method:t.method,pathname:C,routeId:r.route.id})}else return{type:"data",result:void 0}}else if(E)u=await y(E);else{let S=new URL(t.url),x=S.pathname+S.search;throw Ca(404,{pathname:x})}}catch(E){return{type:"error",result:E}}finally{h&&t.signal.removeEventListener("abort",h)}return u}async function kle(t){let e=t.headers.get("Content-Type");return e&&/\bapplication\/json\b/.test(e)?t.body==null?null:t.json():t.text()}async function Mle(t){let{result:e,type:n}=t;if(lP(e)){let r;try{r=await kle(e)}catch(i){return{type:"error",error:i}}return n==="error"?{type:"error",error:new fb(e.status,e.statusText,r),statusCode:e.status,headers:e.headers}:{type:"data",data:r,statusCode:e.status,headers:e.headers}}return n==="error"?gN(e)?e.data instanceof Error?{type:"error",error:e.data,statusCode:e.init?.status,headers:e.init?.headers?new Headers(e.init.headers):void 0}:{type:"error",error:Ule(e),statusCode:U1(e)?e.status:void 0,headers:e.init?.headers?new Headers(e.init.headers):void 0}:{type:"error",error:e,statusCode:U1(e)?e.status:void 0}:gN(e)?{type:"data",data:e.data,statusCode:e.init?.status,headers:e.init?.headers?new Headers(e.init.headers):void 0}:{type:"data",data:e}}function Dle(t,e,n,r,i){let s=t.headers.get("Location");if(Jt(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!sP(s)){let a=r.slice(0,r.findIndex(c=>c.route.id===n)+1);s=XO(new URL(e.url),a,i,s),t.headers.set("Location",s)}return t}var Nle=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function ZO(t){try{return Nle.includes(new URL(t).protocol)}catch{return!1}}function uN(t,e,n,r){if(sP(t)){let i=t,s=iP.test(i)?new URL(mz(i,e.protocol)):new URL(i);if(ZO(s.toString()))throw new Error("Invalid redirect location");let a=Ia(s.pathname,n)!=null;if(s.origin===e.origin&&a)return oP(s.pathname)+s.search+s.hash}try{let i=r.createURL(t);
40if(ZO(i.toString()))throw new Error("Invalid redirect location")}catch{}return t}function Cm(t,e,n,r){let i=t.createURL(Uz(e)).toString(),s={signal:n};if(r&&Ss(r.formMethod)){let{formMethod:a,formEncType:c}=r;s.method=a.toUpperCase(),c==="application/json"?(s.headers=new Headers({"Content-Type":c}),s.body=JSON.stringify(r.json)):c==="text/plain"?s.body=r.text:c==="application/x-www-form-urlencoded"&&r.formData?s.body=JO(r.formData):s.body=r.formData}return new Request(i,s)}function Fz(t,e){let n=new URL(t.url),r=typeof e=="string"?xc(e):e;if(n.pathname=r.pathname||"/",r.search){let i=new URLSearchParams(r.search),s=i.getAll("index");i.delete("index");for(let a of s.filter(Boolean))i.append("index",a);n.search=i.size?`?${i.toString()}`:""}else n.search="";return n.hash=r.hash||"",n}function JO(t){let e=new URLSearchParams;for(let[n,r]of t.entries())e.append(n,typeof r=="string"?r:r.name);return e}function dN(t){let e=new FormData;for(let[n,r]of t.entries())e.append(n,r);return e}function $le(t,e,n,r=!1,i=!1){let s={},a=null,c,u=!1,h={},p=n&&Ko(n[1])?n[1].error:void 0;return t.forEach(v=>{if(!(v.route.id in e))return;let y=v.route.id,E=e[y];if(Jt(!Xh(E),"Cannot handle redirect results in processLoaderData"),Ko(E)){let S=E.error;if(p!==void 0&&(S=p,p=void 0),a=a||{},i)a[y]=S;else{let x=Zd(t,y);a[x.route.id]==null&&(a[x.route.id]=S)}r||(s[y]=Pz),u||(u=!0,c=U1(E.error)?E.error.status:500),E.headers&&(h[y]=E.headers)}else s[y]=E.data,E.statusCode&&E.statusCode!==200&&!u&&(c=E.statusCode),E.headers&&(h[y]=E.headers)}),p!==void 0&&n&&(a={[n[0]]:p},n[2]&&(s[n[2]]=void 0)),{loaderData:s,errors:a,statusCode:c||200,loaderHeaders:h}}function fN(t,e,n,r,i,s,a){let{loaderData:c,errors:u}=$le(e,n,r);return i.filter(h=>!h.matches||h.matches.some(p=>p.shouldLoad)).forEach(h=>{let{key:p,match:v,controller:y}=h;if(y&&y.signal.aborted)return;let E=s[p];if(Jt(E,"Did not find corresponding fetcher result"),Ko(E)){let S=Zd(t.matches,v?.route.id);u&&u[S.route.id]||(u={...u,[S.route.id]:E.error}),a.delete(p)}else if(Xh(E))Jt(!1,"Unhandled fetcher revalidation redirect");else{let S=uc(E.data);a.set(p,S)}}),{loaderData:c,errors:u}}function hN(t,e,n,r){let i=Object.entries(e).filter(([,s])=>s!==Pz).reduce((s,[a,c])=>(s[a]=c,s),{});for(let s of n){let a=s.route.id;if(!e.hasOwnProperty(a)&&t.hasOwnProperty(a)&&s.route.loader&&(i[a]=t[a]),r&&r.hasOwnProperty(a))break}return i}function pN(t){return t?Ko(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function Zd(t,e){return(e?t.slice(0,t.findIndex(r=>r.route.id===e)+1):[...t]).reverse().find(r=>r.route.hasErrorBoundary===!0)||t[0]}function pw(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Ca(t,{pathname:e,routeId:n,method:r,type:i,message:s}={}){let a="Unknown Server Error",c="Unknown @remix-run/router error";return t===400?(a="Bad Request",r&&e&&n?c=`You made a ${r} request to "${e}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i==="invalid-body"&&(c="Unable to encode submission body")):t===403?(a="Forbidden",c=`Route "${n}" does not match URL "${e}"`):t===404?(a="Not Found",c=`No route matches URL "${e}"`):t===405&&(a="Method Not Allowed",r&&e&&n?c=`You made a ${r.toUpperCase()} request to "${e}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(c=`Invalid request method "${r.toUpperCase()}"`)),new fb(t||500,a,new Error(c),!0)}function gw(t){let e=Object.entries(t);for(let n=e.length-1;n>=0;n--){let[r,i]=e[n];if(Xh(i))return{key:r,result:i}}}function Uz(t){let e=typeof t=="string"?xc(t):t;return Ec({...e,hash:""})}function Fle(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function Ule(t){return new fb(t.init?.status??500,t.init?.statusText??"Internal Server Error",t.data)}function Ble(t){return t!=null&&typeof t=="object"&&Object.entries(t).every(([e,n])=>typeof e=="string"&&jle(n))}function jle(t){return t!=null&&typeof t=="object"&&"type"in t&&"result"in t&&(t.type==="data"||t.type==="error")}function Hle(t){return lP(t.result)&&Oz.has(t.result.status)}function Ko(t){return t.type==="error"}function Xh(t){return(t&&t.type)==="redirect"}function gN(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function lP(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function zle(t){return Oz.has(t)}function Vle(t){return lP(t)&&zle(t.status)&&t.headers.has("Location")}function qle(t){return _le.has(t.toUpperCase())}function Ss(t){return vle.has(t.toUpperCase())}function cP(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function f2(t,e){let n=typeof e=="string"?xc(e).search:e.search;if(t[t.length-1].route.index&&cP(n||""))return t[t.length-1];let r=Cz(t);return r[r.length-1]}function mN(t){let{formMethod:e,formAction:n,formEncType:r,text:i,formData:s,json:a}=t;if(!(!e||!n||!r)){if(i!=null)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:e,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(a!==void 0)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function RR(t,e,n,r){return r?{state:"loading",location:t,matches:e,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:"loading",location:t,matches:e,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Wle(t,e,n,r){return{state:"submitting",location:t,matches:e,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function f_(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Gle(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function uc(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Kle(t,e){try{let n=t.sessionStorage.getItem(Iz);if(n){let r=JSON.parse(n);for(let[i,s]of Object.entries(r||{}))s&&Array.isArray(s)&&e.set(i,new Set(s||[]))}}catch{}}function Yle(t,e){if(e.size>0){let n={};for(let[r,i]of e)n[r]=[...i];try{t.sessionStorage.setItem(Iz,JSON.stringify(n))}catch(r){Kr(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function vN(){let t,e,n=new Promise((r,i)=>{t=async s=>{r(s);try{await n}catch{}},e=async s=>{i(s);try{await n}catch{}}});return{promise:n,resolve:t,reject:e}}var Tp=_.createContext(null);Tp.displayName="DataRouter";var pb=_.createContext(null);pb.displayName="DataRouterState";var Bz=_.createContext(!1);function jz(){return _.useContext(Bz)}var uP=_.createContext({isTransitioning:!1});uP.displayName="ViewTransition";var Hz=_.createContext(new Map);Hz.displayName="Fetchers";var Xle=_.createContext(null);Xle.displayName="Await";var ra=_.createContext(null);ra.displayName="Navigation";var kx=_.createContext(null);kx.displayName="Location";var ka=_.createContext({outlet:null,matches:[],isDataRoute:!1});ka.displayName="Route";var dP=_.createContext(null);dP.displayName="RouteError";var zz="REACT_ROUTER_ERROR",Qle="REDIRECT",Zle="ROUTE_ERROR_RESPONSE";function Jle(t){if(t.startsWith(`${zz}:${Qle}:{`))try{let e=JSON.parse(t.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="str
40ing"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function ece(t){if(t.startsWith(`${zz}:${Zle}:{`))try{let e=JSON.parse(t.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new fb(e.status,e.statusText,e.data)}catch{}}function tce(t,{relative:e}={}){Jt(Rp(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=_.useContext(ra),{hash:i,pathname:s,search:a}=mb(t,{relative:e}),c=s;return n!=="/"&&(c=s==="/"?n:Aa([n,s])),r.createHref({pathname:c,search:a,hash:i})}function Rp(){return _.useContext(kx)!=null}function Pi(){return Jt(Rp(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(kx).location}function W4e(t){Jt(Rp(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:e}=Pi();return _.useMemo(()=>F1(t,wz(e)),[e,t])}var Vz="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function qz(t){_.useContext(ra).static||_.useLayoutEffect(t)}function gb(){let{isDataRoute:t}=_.useContext(ka);return t?mce():nce()}function nce(){Jt(Rp(),"useNavigate() may be used only in the context of a <Router> component.");let t=_.useContext(Tp),{basename:e,navigator:n}=_.useContext(ra),{matches:r}=_.useContext(ka),{pathname:i}=Pi(),s=JSON.stringify(Lx(r)),a=_.useRef(!1);return qz(()=>{a.current=!0}),_.useCallback((u,h={})=>{if(Kr(a.current,Vz),!a.current)return;if(typeof u=="number"){n.go(u);return}let p=db(u,JSON.parse(s),i,h.relative==="path");t==null&&e!=="/"&&(p.pathname=p.pathname==="/"?e:Aa([e,p.pathname])),(h.replace?n.replace:n.push)(p,h.state,h)},[e,n,s,i,t])}var rce=_.createContext(null);function ice(t){let e=_.useContext(ka).outlet;return _.useMemo(()=>e&&_.createElement(rce.Provider,{value:t},e),[e,t])}function sce(){let{matches:t}=_.useContext(ka);return t[t.length-1]?.params??{}}function mb(t,{relative:e}={}){let{matches:n}=_.useContext(ka),{pathname:r}=Pi(),i=JSON.stringify(Lx(n));return _.useMemo(()=>db(t,JSON.parse(i),r,e==="path"),[t,i,r,e])}function oce(t,e,n){Jt(Rp(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=_.useContext(ra),{matches:i}=_.useContext(ka),s=i[i.length-1],a=s?s.params:{},c=s?s.pathname:"/",u=s?s.pathnameBase:"/",h=s&&s.route;{let C=h&&h.path||"";Kz(c,!h||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${C}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 41 42Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let p=Pi(),v;v=p;let y=v.pathname||"/",E=y;if(u!=="/"){let C=u.replace(/^\//,"").split("/");E="/"+y.replace(/^\//,"").split("/").slice(C.length).join("/")}let S=n&&n.state.matches.length?n.state.matches.map(C=>Object.assign(C,{route:n.manifest[C.route.id]||C.route})):yz(t,{pathname:E});return Kr(h||S!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Kr(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),dce(S&&S.map(C=>Object.assign({},C,{params:Object.assign({},a,C.params),pathname:Aa([u,r.encodeLocation?r.encodeLocation(C.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Aa([u,r.encodeLocation?r.encodeLocation(C.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),i,n)}function ace(){let t=Gz(),e=U1(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",t),a=_.createElement(_.Fragment,null,_.createElement("p",null,"ð¿ Hey developer ð"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:s},"ErrorBoundary")," or"," ",_.createElement("code",{style:s},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application
42Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},e),n?_.createElement("pre",{style:i},n):null,a)}var lce=_.createElement(ace,null),Wz=class extends _.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const n=ece(t.digest);n&&(t=n)}let e=t!==void 0?_.createElement(ka.Provider,{value:this.props.routeContext},_.createElement(dP.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?_.createElement(cce,{error:t},e):e}};Wz.contextType=Bz;var AR=new WeakMap;function cce({children:t,error:e}){let{basename:n}=_.useContext(ra);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=Jle(e.digest);if(r){let i=AR.get(e);if(i)throw i;let s=Tz(r.location,n),a=s.absoluteURL||s.to;if(ZO(a))throw new Error("Invalid redirect location");if(xz&&!AR.get(e))if(s.isExternal||r.reloadDocument)window.location.href=a;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw AR.set(e,c),c}return _.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a}`})}}return t}function uce({routeContext:t,match:e,children:n}){let r=_.useContext(Tp);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),_.createElement(ka.Provider,{value:t},n)}function dce(t,e=[],n){let r=n?.state;if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let i=t,s=r?.errors;if(s!=null){let p=i.findIndex(v=>v.route.id&&s?.[v.route.id]!==void 0);Jt(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,p+1))}let a=!1,c=-1;if(n&&r){a=r.renderFallback;for(let p=0;p<i.length;p++){let v=i[p];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(c=p),v.route.id){let{loaderData:y,errors:E}=r,S=v.route.loader&&!y.hasOwnProperty(v.route.id)&&(!E||E[v.route.id]===void 0);if(v.route.lazy||S){n.isStatic&&(a=!0),c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}}let u=n?.onError,h=r&&u?(p,v)=>{u(p,{location:r.location,params:r.matches?.[0]?.params??{},pattern:hb(r.matches),errorInfo:v})}:void 0;return i.reduceRight((p,v,y)=>{let E,S=!1,x=null,C=null;r&&(E=s&&v.route.id?s[v.route.id]:void 0,x=v.route.errorElement||lce,a&&(c<0&&y===0?(Kz("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,C=null):c===y&&(S=!0,C=v.route.hydrateFallbackElement||null)));let R=e.concat(i.slice(0,y+1)),A=()=>{let O;return E?O=x:S?O=C:v.route.Component?O=_.createElement(v.route.Component,null):v.route.element?O=v.route.element:O=p,_.createElement(uce,{match:v,routeContext:{outlet:p,matches:R,isDataRoute:r!=null},children:O})};return r&&(v.route.ErrorBoundary||v.route.errorElement||y===0)?_.createElement(Wz,{location:r.location,revalidation:r.revalidation,component:x,error:E,children:A(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:h}):A()},null)}function fP(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fce(t){let e=_.useContext(Tp);return Jt(e,fP(t)),e}function hce(t){let e=_.useContext(pb);return Jt(e,fP(t)),e}function pce(t){let e=_.useContext(ka);return Jt(e,fP(t)),e}function hP(t){let e=pce(t),n=e.matches[e.matches.length-1];return Jt(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function gce(){return hP("useRouteId")}function Gz(){let t=_.useContext(dP),e=hce("useRouteError"),n=hP("useRouteError");return t!==void 0?t:e.errors?.[n]}function mce(){let{router:t}=fce("useNavigate"),e=hP("useNavigate"),n=_.useRef(!1);return qz(()=>{n.current=!0}),_.useCallback(async(i,s={})=>{Kr(n.current,Vz),n.current&&(typeof i=="number"?await t.navigate(i):await t.navigate(i,{fromRouteId:e,...s}))},[t,e])}var yN={};function Kz(t,e,n){!e&&!yN[t]&&(yN[t]=!0,Kr(!1,n))}var _N={};function bN(t,e){!t&&!_N[e]&&(_N[e]=!0,console.warn(e))}var vce="useOptimistic",EN=N9[vce],yce=()=>{};function _ce(t){return EN?EN(t):[t,yce]}function bce(t){let e={hasErrorBoundary:t.hasErrorBoundary||t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&(t.element&&Kr(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(e,{element:_.createElement(t.Component),Component:void 0})),t.HydrateFallback&&(t.hydrateFallbackElement&&Kr(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(e,{hydrateFallbackElement:_.createElement(t.HydrateFallback),HydrateFallback:void 0})),t.ErrorBoundary&&(t.errorElement&&Kr(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(e,{errorElement:_.createElement(t.ErrorBoundary),ErrorBoundary:void 0})),e}var Ece=["HydrateFallback","hydrateFallbackElement"],Sce=class{constructor(){this.status="pending",this.promise=new Promise((e,n
42)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}};function wce({router:t,flushSync:e,onError:n,useTransitions:r}){r=jz()||r;let[s,a]=_.useState(t.state),[c,u]=_ce(s),[h,p]=_.useState(),[v,y]=_.useState({isTransitioning:!1}),[E,S]=_.useState(),[x,C]=_.useState(),[R,A]=_.useState(),O=_.useRef(new Map),P=_.useCallback((k,{deletedFetchers:U,newErrors:F,flushSync:V,viewTransitionOpts:G})=>{F&&n&&Object.values(F).forEach(K=>n(K,{location:k.location,params:k.matches[0]?.params??{},pattern:hb(k.matches)})),k.fetchers.forEach((K,J)=>{K.data!==void 0&&O.current.set(J,K.data)}),U.forEach(K=>O.current.delete(K)),bN(V===!1||e!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let Z=t.window!=null&&t.window.document!=null&&typeof t.window.document.startViewTransition=="function";if(bN(G==null||Z,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!G||!Z){e&&V?e(()=>a(k)):r===!1?a(k):_.startTransition(()=>{r===!0&&u(K=>SN(K,k)),a(k)});return}if(e&&V){e(()=>{x&&(E?.resolve(),x.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:G.currentLocation,nextLocation:G.nextLocation})});let K=t.window.document.startViewTransition(()=>{e(()=>a(k))});K.finished.finally(()=>{e(()=>{S(void 0),C(void 0),p(void 0),y({isTransitioning:!1})})}),e(()=>C(K));return}x?(E?.resolve(),x.skipTransition(),A({state:k,currentLocation:G.currentLocation,nextLocation:G.nextLocation})):(p(k),y({isTransitioning:!0,flushSync:!1,currentLocation:G.currentLocation,nextLocation:G.nextLocation}))},[t.window,e,x,E,r,u,n]);_.useLayoutEffect(()=>t.subscribe(P),[t,P]),_.useEffect(()=>{v.isTransitioning&&!v.flushSync&&S(new Sce)},[v]),_.useEffect(()=>{if(E&&h&&t.window){let k=h,U=E.promise,F=t.window.document.startViewTransition(async()=>{r===!1?a(k):_.startTransition(()=>{r===!0&&u(V=>SN(V,k)),a(k)}),await U});F.finished.finally(()=>{S(void 0),C(void 0),p(void 0),y({isTransitioning:!1})}),C(F)}},[h,E,t.window,r,u]),_.useEffect(()=>{E&&h&&c.location.key===h.location.key&&E.resolve()},[E,x,c.location,h]),_.useEffect(()=>{!v.isTransitioning&&R&&(p(R.state),y({isTransitioning:!0,flushSync:!1,currentLocation:R.currentLocation,nextLocation:R.nextLocation}),A(void 0))},[v.isTransitioning,R]);let L=_.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:k=>t.navigate(k),push:(k,U,F)=>t.navigate(k,{state:U,preventScrollReset:F?.preventScrollReset}),replace:(k,U,F)=>t.navigate(k,{replace:!0,state:U,preventScrollReset:F?.preventScrollReset})}),[t]),D=t.basename||"/",N=_.useMemo(()=>({router:t,navigator:L,static:!1,basename:D,onError:n}),[t,L,D,n]);return _.createElement(_.Fragment,null,_.createElement(Tp.Provider,{value:N},_.createElement(pb.Provider,{value:c},_.createElement(Hz.Provider,{value:O.current},_.createElement(uP.Provider,{value:v},_.createElement(Tce,{basename:D,location:c.location,navigationType:c.historyAction,navigator:L,useTransitions:r},_.createElement(Cce,{routes:t.routes,manifest:t.manifest,future:t.future,state:c,isStatic:!1,onError:n})))))),null)}function SN(t,e){return{...t,navigation:e.navigation.state!=="idle"?e.navigation:t.navigation,revalidation:e.revalidation!=="idle"?e.revalidation:t.revalidation,actionData:e.navigation.state!=="submitting"?e.actionData:t.actionData,fetchers:e.fetchers}}var Cce=_.memo(xce);function xce({routes:t,manifest:e,future:n,state:r,isStatic:i,onError:s}){return oce(t,void 0,{manifest:e,state:r,isStatic:i,onError:s})}function pl({to:t,replace:e,state:n,relative:r}){Jt(Rp(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=_.useContext(ra);Kr(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=_.useContext(ka),{pathname:a}=Pi(),c=gb(),u=db(t,Lx(s),a,r==="path"),h=JSON.stringify(u);return _.useEffect(()=>{c(JSON.parse(h),{replace:e,state:n,relative:r})},[c,h,r,e,n]),null}function pP(t){return ice(t.context)}function Tce({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:i,static:s=!1,useTransitions:a}){Jt(!Rp(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=t.replace(/^\/*/,"/"),u=_.useMemo(()=>({basename:c,navigator:i,static:s,useTransitions:a,future:{}}),[c,i,s,a]);typeof n=="string"&&(n=xc(n));let{pathname:h="/",search:p="",hash:v="",state:y=null,key:E="default",mask:S}=n,x=_.useMemo(()=>{let C=Ia(h,c);return C==null?null:{location:{pathname:C,search:p,hash:v,state:y,key:E,mask:S},navigationType:r}},[c,h,p,v,y,E,r,S]);
42return Kr(x!=null,`<Router basename="${c}"> is not able to match the URL "${h}${p}${v}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:_.createElement(ra.Provider,{value:u},_.createElement(kx.Provider,{children:e,value:x}))}var h2="get",p2="application/x-www-form-urlencoded";function Mx(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function Rce(t){return Mx(t)&&t.tagName.toLowerCase()==="button"}function Ace(t){return Mx(t)&&t.tagName.toLowerCase()==="form"}function Oce(t){return Mx(t)&&t.tagName.toLowerCase()==="input"}function Ice(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Pce(t,e){return t.button===0&&(!e||e==="_self")&&!Ice(t)}function eI(t=""){return new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Lce(t,e){let n=eI(t);return e&&e.forEach((r,i)=>{n.has(i)||e.getAll(i).forEach(s=>{n.append(i,s)})}),n}var mw=null;function kce(){if(mw===null)try{new FormData(document.createElement("form"),0),mw=!1}catch{mw=!0}return mw}var Mce=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function OR(t){return t!=null&&!Mce.has(t)?(Kr(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${p2}"`),null):t}function Dce(t,e){let n,r,i,s,a;if(Ace(t)){let c=t.getAttribute("action");r=c?Ia(c,e):null,n=t.getAttribute("method")||h2,i=OR(t.getAttribute("enctype"))||p2,s=new FormData(t)}else if(Rce(t)||Oce(t)&&(t.type==="submit"||t.type==="image")){let c=t.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=t.getAttribute("formaction")||c.getAttribute("action");if(r=u?Ia(u,e):null,n=t.getAttribute("formmethod")||c.getAttribute("method")||h2,i=OR(t.getAttribute("formenctype"))||OR(c.getAttribute("enctype"))||p2,s=new FormData(c,t),!kce()){let{name:h,type:p,value:v}=t;if(p==="image"){let y=h?`${h}.`:"";s.append(`${y}x`,"0"),s.append(`${y}y`,"0")}else h&&s.append(h,v)}}else{if(Mx(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=h2,r=null,i=p2,a=t}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function gP(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Yz(t,e,n,r){let i=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname==="/"?i.pathname=`_root.${r}`:e&&Ia(i.pathname,e)==="/"?i.pathname=`${OC(e)}/_root.${r}`:i.pathname=`${OC(i.pathname)}.${r}`,i}async function Nce(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function $ce(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Fce(t,e,n){let r=await Promise.all(t.map(async i=>{let s=e.routes[i.route.id];if(s){let a=await Nce(s,n);return a.links?a.links():[]}return[]}));return Hce(r.flat(1).filter($ce).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function wN(t,e,n,r,i,s){let a=(u,h)=>n[h]?u.route.id!==n[h].route.id:!0,c=(u,h)=>n[h].pathname!==u.pathname||n[h].route.path?.endsWith("*")&&n[h].params["*"]!==u.params["*"];return s==="assets"?e.filter((u,h)=>a(u,h)||c(u,h)):s==="data"?e.filter((u,h)=>{let p=r.routes[u.route.id];if(!p||!p.hasLoader)return!1;if(a(u,h)||c(u,h))return!0;if(u.route.shouldRevalidate){let v=u.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParam
42s:n[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function Uce(t,e,{includeHydrateFallback:n}={}){return Bce(t.map(r=>{let i=e.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function Bce(t){return[...new Set(t)]}function jce(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function Hce(t,e){let n=new Set;return new Set(e),t.reduce((r,i)=>{let s=JSON.stringify(jce(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}function mP(){let t=_.useContext(Tp);return gP(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function zce(){let t=_.useContext(pb);return gP(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var vP=_.createContext(void 0);vP.displayName="FrameworkContext";function Dx(){let t=_.useContext(vP);return gP(t,"You must render this element inside a <HydratedRouter> element"),t}function Vce(t,e){let n=_.useContext(vP),[r,i]=_.useState(!1),[s,a]=_.useState(!1),{onFocus:c,onBlur:u,onMouseEnter:h,onMouseLeave:p,onTouchStart:v}=e,y=_.useRef(null);_.useEffect(()=>{if(t==="render"&&a(!0),t==="viewport"){let x=R=>{R.forEach(A=>{a(A.isIntersecting)})},C=new IntersectionObserver(x,{threshold:.5});return y.current&&C.observe(y.current),()=>{C.disconnect()}}},[t]),_.useEffect(()=>{if(r){let x=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(x)}}},[r]);let E=()=>{i(!0)},S=()=>{i(!1),a(!1)};return n?t!=="intent"?[s,y,{}]:[s,y,{onFocus:h_(c,E),onBlur:h_(u,S),onMouseEnter:h_(h,E),onMouseLeave:h_(p,S),onTouchStart:h_(v,E)}]:[!1,y,{}]}function h_(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function qce({page:t,...e}){let n=jz(),{nonce:r}=Dx(),{router:i}=mP(),s=_.useMemo(()=>yz(i.routes,t,i.basename),[i.routes,t,i.basename]);return s?(e.nonce==null&&r&&(e={...e,nonce:r}),n?_.createElement(Gce,{page:t,matches:s,...e}):_.createElement(Kce,{page:t,matches:s,...e})):null}function Wce(t){let{manifest:e,routeModules:n}=Dx(),[r,i]=_.useState([]);return _.useEffect(()=>{let s=!1;return Fce(t,e,n).then(a=>{s||i(a)}),()=>{s=!0}},[t,e,n]),r}function Gce({page:t,matches:e,...n}){let r=Pi(),{future:i}=Dx(),{basename:s}=mP(),a=_.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let c=Yz(t,s,i.v8_trailingSlashAwareDataRequests,"rsc"),u=!1,h=[];for(let p of e)typeof p.route.shouldRevalidate=="function"?u=!0:h.push(p.route.id);return u&&h.length>0&&c.searchParams.set("_routes",h.join(",")),[c.pathname+c.search]},[s,i.v8_trailingSlashAwareDataRequests,t,r,e]);return _.createElement(_.Fragment,null,a.map(c=>_.createElement("link",{key:c,rel:"prefetch",as:"fetch",href:c,...n})))}function Kce({page:t,matches:e,...n}){let r=Pi(),{future:i,manifest:s,routeModules:a}=Dx(),{basename:c}=mP(),{loaderData:u,matches:h}=zce(),p=_.useMemo(()=>wN(t,e,h,s,r,"data"),[t,e,h,s,r]),v=_.useMemo(()=>wN(t,e,h,s,r,"assets"),[t,e,h,s,r]),y=_.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let x=new Set,C=!1;if(e.forEach(A=>{let O=s.routes[A.route.id];!O||!O.hasLoader||(!p.some(P=>P.route.id===A.route.id)&&A.route.id in u&&a[A.route.id]?.shouldRevalidate||O.hasClientLoader?C=!0:x.add(A.route.id))}),x.size===0)return[];let R=Yz(t,c,i.v8_trailingSlashAwareDataRequests,"data");return C&&x.size>0&&R.searchParams.set("_routes",e.filter(A=>x.has(A.route.id)).map(A=>A.route.id).join(",")),[R.pathname+R.search]},[c,i.v8_trailingSlashAwareDataRequests,u,r,s,p,e,t,a]),E=_.useMemo(()=>Uce(v,s),[v,s]),S=Wce(v);return _.createElement(_.Fragment,null,y.map(x=>_.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),E.map(x=>_.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),S.map(({key:x,link:C})=>_.createElement("link",{key:x,nonce:n.nonce,...C,crossOrigin:C.crossOrigin??n.crossOrigin})))}function Yce(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var Xce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Xce&&(window.__reactRouterVersion="7.18.2")}catch{}function Qce(t,e){return Cle({basename:e?.basename,getContext:e?.getContext,future:e?.future,history:Bae({window:e?.window}),hydrationData:e?.hydrationData||Zce(),routes:t,mapRouteProperties:bce,hydrationRouteProperties:Ece,dataStrategy:e?.dataStrategy,patchRoutesOnNavigation:e?.patchRoutesOnNavigation,window:e?.window,instrumentations:e?.instrumentations}).initialize()}function Zce(){let t=window?.__staticRouterHydrationData;return t&&t.errors&&(t={...t,errors:Jce(t.errors)}),t}
42function Jce(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,i]of e)if(i&&i.__type==="RouteErrorResponse")n[r]=new fb(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(typeof i.__subType=="string"&&ule.includes(i.__subType)){let s=window[i.__subType];if(typeof s=="function")try{let a=new s(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let s=new Error(i.message);s.stack="",n[r]=s}}else n[r]=i;return n}var Xz=_.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:a,mask:c,state:u,target:h,to:p,preventScrollReset:v,viewTransition:y,defaultShouldRevalidate:E,...S},x){let{basename:C,navigator:R,useTransitions:A}=_.useContext(ra),O=typeof p=="string"&&Px.test(p),P=Tz(p,C);p=P.to;let L=tce(p,{relative:i}),D=Pi(),N=null;if(c){let J=db(c,[],D.mask?D.mask.pathname:"/",!0);C!=="/"&&(J.pathname=J.pathname==="/"?C:Aa([C,J.pathname])),N=R.createHref(J)}let[k,U,F]=Vce(r,S),V=rue(p,{replace:a,mask:c,state:u,target:h,preventScrollReset:v,relative:i,viewTransition:y,defaultShouldRevalidate:E,useTransitions:A});function G(J){e&&e(J),J.defaultPrevented||V(J)}let Z=!(P.isExternal||s),K=_.createElement("a",{...S,...F,href:(Z?N:void 0)||P.absoluteURL||L,onClick:Z?G:e,ref:Yce(x,U),target:h,"data-discover":!O&&n==="render"?"true":void 0});return k&&!O?_.createElement(_.Fragment,null,K,_.createElement(qce,{page:L})):K});Xz.displayName="Link";var eue=_.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:a,viewTransition:c,children:u,...h},p){let v=mb(a,{relative:h.relative}),y=Pi(),E=_.useContext(pb),{navigator:S,basename:x}=_.useContext(ra),C=E!=null&&lue(v)&&c===!0,R=S.encodeLocation?S.encodeLocation(v).pathname:v.pathname,A=y.pathname,O=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;n||(A=A.toLowerCase(),O=O?O.toLowerCase():null,R=R.toLowerCase()),O&&x&&(O=Ia(O,x)||O);const P=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let L=A===R||!i&&A.startsWith(R)&&A.charAt(P)==="/",D=O!=null&&(O===R||!i&&O.startsWith(R)&&O.charAt(R.length)==="/"),N={isActive:L,isPending:D,isTransitioning:C},k=L?e:void 0,U;typeof r=="function"?U=r(N):U=[r,L?"active":null,D?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(N):s;return _.createElement(Xz,{...h,"aria-current":k,className:U,ref:p,style:F,to:a,viewTransition:c},typeof u=="function"?u(N):u)});eue.displayName="NavLink";var tue=_.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:i,state:s,method:a=h2,action:c,onSubmit:u,relative:h,preventScrollReset:p,viewTransition:v,defaultShouldRevalidate:y,...E},S)=>{let{useTransitions:x}=_.useContext(ra),C=oue(),R=aue(c,{relative:h}),A=a.toLowerCase()==="get"?"get":"post",O=typeof c=="string"&&Px.test(c),P=L=>{if(u&&u(L),L.defaultPrevented)return;L.preventDefault();let D=L.nativeEvent.submitter,N=D?.getAttribute("formmethod")||a,k=()=>C(D||L.currentTarget,{fetcherKey:e,method:N,navigate:n,replace:i,state:s,relative:h,preventScrollReset:p,viewTransition:v,defaultShouldRevalidate:y});x&&n!==!1?_.startTransition(()=>k()):k()};return _.createElement("form",{ref:S,method:A,action:R,onSubmit:r?u:P,...E,"data-discover":!O&&t==="render"?"true":void 0})});tue.displayName="Form";function nue(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Qz(t){let e=_.useContext(Tp);return Jt(e,nue(t)),e}function rue(t,{target:e,replace:n,mask:r,state:i,preventScrollReset:s,relative:a,viewTransition:c,defaultShouldRevalidate:u,useTransitions:h}={}){let p=gb(),v=Pi(),y=mb(t,{relative:a});return _.useCallback(E=>{if(Pce(E,e)){E.preventDefault();let S=n!==void 0?n:Ec(v)===Ec(y),x=()=>p(t,{replace:S,mask:r,state:i,preventScrollReset:s,relative:a,viewTransition:c,defaultShouldRevalidate:u});h?_.startTransition(()=>x()):x()}},[v,p,y,n,r,i,e,t,s,a,c,u,h])}function K4e(t){Kr(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let e=_.useRef(eI(t)),n=_.useRef(!1),r=Pi(),i=_.useMemo(()=>Lce(r.search,n.current?null:e.current),[r.search]),s=gb(),a=_.useCallback((c,u)=>{const h=eI(typeof c=="function"?c(new URLSearchParams(i)):c);n.current=!0,s("?"+h,u)},[s,i]);return[i,a]}var iue=0,sue=()=>`__${String(++iue)}__`;function oue(){let{router:t}=Qz("useSubmit"),{basename:e}=_.useContext(ra),n=gce(),r=t.fetch,i=t.navigate;return _.useCallback(async(s,a={})=>{let{action:c,method:u,encType:h,formData:p,body:v}=Dce(s,e);if(a.navigate===!1){let y=a.fetcherKey||sue();await r(y,n,a.action||c,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:p,body:v,formMethod:a.method||u,formEncType:a.encType||h,flushSync:a.flushSync})}else await i(a.action||c,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:p,body:v,formMethod:a.method||u,formEncType:a.encType||h,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,e,n])}function aue(t,{relative:e}={}){let{basename:n}=_.useContext(ra),r=_.useContext(ka);Jt(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...mb(t||".",{relative:e})},a=Pi();if(t==null){s.search=a.search;let c=new URLSearchParams(s.search),u=c.getAll("index");if(u.some(p=>p==="")){c.delete("index"),u.filter(v=>v).forEach(v=>c.append("index",v));let p=c.toString();s.search=p?`?${p}`:""}}return(!t||t===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:Aa([n,s.pathname])),Ec(s)}function lue(t,{relative:e}={}){let n=_.useContext(uP);Jt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Qz("useViewTransitionState"),i=mb(t,{relative:e});if(!n.isTransitioning)return!1;let s=Ia(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Ia(n.nextLocation.pathname,r)||n.nextLocation.pathname;return F1(i.pathname,a)!=null||F1(i.pathname,s)!=null}function g2(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g2=function(n){return typeof n}:g2=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},g2(t)}function cue(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uue(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function due(t,e,n){return e&&uue(t.prototype,e),t}function fue(t,e){return e&&(g2(e)==="object"||typeof e=="function")?e:m2(t)}
42function tI(t){return tI=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},tI(t)}function m2(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hue(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nI(t,e)}function nI(t,e){return nI=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},nI(t,e)}function v2(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zz=(function(t){hue(e,t);function e(){var n,r;cue(this,e);for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return r=fue(this,(n=tI(e)).call.apply(n,[this].concat(s))),v2(m2(r),"state",{bootstrapped:!1}),v2(m2(r),"_unsubscribe",void 0),v2(m2(r),"handlePersistorState",function(){var c=r.props.persistor,u=c.getState(),h=u.bootstrapped;h&&(r.props.onBeforeLift?Promise.resolve(r.props.onBeforeLift()).finally(function(){return r.setState({bootstrapped:!0})}):r.setState({bootstrapped:!0}),r._unsubscribe&&r._unsubscribe())}),r}return due(e,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),e})(_.PureComponent);v2(Zz,"defaultProps",{children:null,loading:null});var Jz;function pue(t){Jz=t}function rI(){return Jz}var yP=_.createContext({get client(){return rI()},bootstrap:void 0});function eV(t,e,n){if(n===void 0&&(n=new WeakMap),t===e)return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;if(n.has(t)&&n.get(t)===e)return!0;n.set(t,e);var r=Object.keys(t),i=Object.keys(e);if(r.length!==i.length)return!1;for(var s=0,a=r;s<a.length;s++){var c=a[s];if(!i.includes(c)||!eV(t[c],e[c],n))return!1}return!0}function gue(t){var e,n,r=t.children,i=t.client,s=t.apiKey,a=t.options,c=_.useRef(null),u=_.useMemo(function(){if(i)return s&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),a&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),i;var h=rI();return s||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),h},[i,s,JSON.stringify(a)]);return _.useEffect(function(){if(!(i||!s)){var h=rI(),p=c.current;p?(s!==p.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),a&&!eV(a,p.options)&&h.set_config(a),c.current={apiKey:s,options:a??{}}):(h.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),h.init(s,a),c.current={apiKey:s,options:a??{}})}},[i,s,JSON.stringify(a)]),Te.createElement(yP.Provider,{value:{client:u,bootstrap:(e=a?.bootstrap)!==null&&e!==void 0?e:(n=i?.config)===null||n===void 0?void 0:n.bootstrap}},r)}var IR=function(t){return typeof t=="function"},mue=function(t){return t===void 0},tV=function(){var t=_.useContext(yP).client;return t},iI=function(t,e){return iI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},iI(t,e)};function vue(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");iI(t,e);function n(){this.constructor=t}
42t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var y2=function(t){var e=Object.prototype.toString.call(t);return t instanceof Error||e==="[object Error]"||e==="[object Exception]"||e==="[object DOMException]"||e==="[object DOMError]"},yue=function(t,e){for(var n=new WeakSet,r=t;!n.has(r);){if(n.add(r),!y2(r.cause)){mue(r.cause)||(e.cause=r.cause),r.cause=e;return}r=r.cause}},_ue=function(t,e){if(!e)return t;var n=new Error(y2(t)?t.message:"Primitive value captured as exception: ".concat(String(t)));return n.name="React ErrorBoundary ".concat(y2(t)?t.name:"Error"),n.stack=e,y2(t)?(yue(t,n),t):n},bue={componentStack:null,exceptionEvent:null,error:null},Eue={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};(function(t){vue(e,t);function e(n){var r=t.call(this,n)||this;return r.state=bue,r}return e.prototype.componentDidCatch=function(n,r){var i=this.props.additionalProperties,s;IR(i)?s=i(n,r):typeof i=="object"&&(s=i);var a=this.context.client,c=r.componentStack,u=a.captureException(_ue(n,c),s);this.setState({error:n,componentStack:c??null,exceptionEvent:u})},e.prototype.render=function(){var n=this.props,r=n.children,i=n.fallback,s=this.state;if(s.componentStack==null)return IR(r)?r():r;var a=IR(i)?Te.createElement(i,{error:s.error,componentStack:s.componentStack,exceptionEvent:s.exceptionEvent}):i;return Te.isValidElement(a)?a:(console.warn(Eue.INVALID_FALLBACK),Te.createElement(Te.Fragment,null))},e.contextType=yP,e})(Te.Component);pue(gp);var PR={exports:{}},LR={};var CN;function Sue(){if(CN)return LR;CN=1;var t=Ev().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return LR.c=function(e){return t.H.useMemoCache(e)},LR}var xN;function wue(){return xN||(xN=1,PR.exports=Sue()),PR.exports}var Cr=wue();const Cue=_.createContext({dragDropManager:void 0});function di(t){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},di(t)}function xue(t,e){if(di(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(di(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function nV(t){var e=xue(t,"string");return di(e)=="symbol"?e:e+""}function ji(t,e,n){return(e=nV(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function TN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Gr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?TN(Object(n),!0).forEach(function(r){ji(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):TN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function _a(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var RN=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),AN=function(){return Math.random().toString(36).substring(7).split("").join(".")},ON={INIT:"@@redux/INIT"+AN(),REPLACE:"@@redux/REPLACE"+AN()};function Tue(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function rV(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(_a(0));if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(_a(1));return n(rV)(t,e)}if(typeof t!="function")throw new Error(_a(2));var i=t,s=e,a=[],c=a,u=!1;function h(){c===a&&(c=a.slice())}function p(){if(u)throw new Error(_a(3));return s}function v(x){if(typeof x!="function")throw new Error(_a(4));if(u)throw new Error(_a(5));var C=!0;return h(),c.push(x),function(){if(C){if(u)throw new Error(_a(6));C=!1,h();var A=c.indexOf(x);c.splice(A,1),a=null}}}function y(x){if(!Tue(x))throw new Error(_a(7));if(typeof x.type>"u")throw new Error(_a(8));if(u)throw new Error(_a(9));try{u=!0,s=i(s,x)}finally{u=!1}for(var C=a=c,R=0;R<C.length;R++){var A=C[R];A()}return x}function E(x){if(typeof x!="function")throw new Error(_a(10));i=x,y({type:ON.REPLACE})}function S(){var x,C=v;return x={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(_a(11));function O(){A.next&&A.next(p())}O();var P=C(O);return{unsubscribe:P}}},x[RN]=function(){return this},x}return y({type:ON.INIT}),r={dispatch:y,subscribe:v,getState:p,replaceReducer:E},r[RN]=S,r}function mn(t,e,...n){if(Rue()&&e===void 0)throw new Error("invariant requires an error message argument");
42if(!t){let r;if(e===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(e.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function Rue(){return typeof process<"u"&&!0}function Aue(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function Oue(t,e){return t.filter(n=>n!==e)}function iV(t){return typeof t=="object"}function Iue(t,e){const n=new Map,r=s=>{n.set(s,n.has(s)?n.get(s)+1:1)};t.forEach(r),e.forEach(r);const i=[];return n.forEach((s,a)=>{s===1&&i.push(a)}),i}function Pue(t,e){return t.filter(n=>e.indexOf(n)>-1)}const _P="dnd-core/INIT_COORDS",Nx="dnd-core/BEGIN_DRAG",bP="dnd-core/PUBLISH_DRAG_SOURCE",$x="dnd-core/HOVER",Fx="dnd-core/DROP",Ux="dnd-core/END_DRAG";function IN(t,e){return{type:_P,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const Lue={type:_P,payload:{clientOffset:null,sourceClientOffset:null}};function kue(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:s,getSourceClientOffset:a}=r,c=t.getMonitor(),u=t.getRegistry();t.dispatch(IN(s)),Mue(n,c,u);const h=$ue(n,c);if(h==null){t.dispatch(Lue);return}let p=null;if(s){if(!a)throw new Error("getSourceClientOffset must be defined");Due(a),p=a(h)}t.dispatch(IN(s,p));const y=u.getSource(h).beginDrag(c,h);if(y==null)return;Nue(y),u.pinSource(h);const E=u.getSourceType(h);return{type:Nx,payload:{itemType:E,item:y,sourceId:h,clientOffset:s||null,sourceClientOffset:p||null,isSourcePublic:!!i}}}}function Mue(t,e,n){mn(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){mn(n.getSource(r),"Expected sourceIds to be registered.")})}function Due(t){mn(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Nue(t){mn(iV(t),"Item must be an object.")}function $ue(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function Fue(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Uue(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Fue(t,i,n[i])})}return t}function Bue(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();jue(r),Vue(r).forEach((a,c)=>{const u=Hue(a,c,i,r),h={type:Fx,payload:{dropResult:Uue({},n,u)}};t.dispatch(h)})}}function jue(t){mn(t.isDragging(),"Cannot call drop while not dragging."),mn(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Hue(t,e,n,r){const i=n.getTarget(t);let s=i?i.drop(r,t):void 0;return zue(s),typeof s>"u"&&(s=e===0?{}:r.getDropResult()),s}function zue(t){mn(typeof t>"u"||iV(t),"Drop result must either be an object or undefined.")}function Vue(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function que(t){return function(){const n=t.getMonitor(),r=t.getRegistry();Wue(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Ux}}}function Wue(t){mn(t.isDragging(),"Cannot call endDrag while not dragging.")}function sI(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function Gue(t){return function(n,{clientOffset:r}={}){Kue(n);const i=n.slice(0),s=t.getMonitor(),a=t.getRegistry(),c=s.getItemType();return Xue(i,a,c),Yue(i,s,a),Que(i,s,a),{type:$x,payload:{targetIds:i,clientOffset:r||null}}}}function Kue(t){mn(Array.isArray(t),"Expected targetIds to be an array.")}function Yue(t,e,n){mn(e.isDragging(),"Cannot call hover while not dragging."),mn(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<t.length;r++){const i=t[r];mn(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const s=n.getTarget(i);mn(s,"Expected targetIds to be registered.")}}function Xue(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],s=e.getTargetType(i);sI(s,n)||t.splice(r,1)}}function Que(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function Zue(t){return function(){if(t.getMonitor().isDragging())return{type:bP}}}function Jue(t){return{beginDrag:kue(t),publishDragSource:Zue(t),hover:Gue(t),drop:Bue(t),endDrag:que(t)}}class ede{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:n}=this.store;function r(s){return(...a)=>{const c=s.apply(e,a);typeof c<"u"&&n(c)}}const i=Jue(this);return Object.keys(i).reduce((s,a)=>{const c=i[a];return s[a]=r(c),s},{})}dispatch(e){this.store.dispatch(e)}constructor(e,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}}function tde(t,e){return{x:t.x+e.x,y:t.y+e.y}}function sV(t,e){return{x:t.x-e.x,y:t.y-e.y}}
vendor: 11,546 bytes, line 42
42function nde(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:sV(tde(e,r),n)}function rde(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:sV(e,n)}const i1=[],EP=[];i1.__IS_NONE__=!0;EP.__IS_ALL__=!0;function ide(t,e){return t===i1?!1:t===EP||typeof e>"u"?!0:Pue(e,t).length>0}class sde{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;mn(typeof e=="function","listener must be a function."),mn(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const s=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!ide(a.dirtyHandlerIds,r)||e()}finally{i=c}};return this.store.subscribe(s)}subscribeToOffsetChange(e){mn(typeof e=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const n=this.registry.getSource(e);return mn(n,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:n.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const n=this.registry.getTarget(e);if(mn(n,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();return sI(r,i)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if(mn(n,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),i=this.getItemType();return r!==i?!1:n.isDragging(this,e)}isOverTarget(e,n={shallow:!1}){if(!e)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),s=this.getItemType();if(s&&!sI(i,s))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return r?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return nde(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return rde(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const PN=typeof global<"u"?global:self,oV=PN.MutationObserver||PN.WebKitMutationObserver;function aV(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function ode(t){let e=1;const n=new oV(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const ade=typeof oV=="function"?ode:aV;class lde{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=ade(this.flush),this.requestErrorThrow=aV(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class cde{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class ude{create(e){const n=this.freeTasks,r=n.length?n.pop():new cde(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const lV=new lde,dde=new ude(lV.registerPendingError);function fde(t){lV.enqueueTask(dde.create(t))}const SP="dnd-core/ADD_SOURCE",wP="dnd-core/ADD_TARGET",CP="dnd-core/REMOVE_SOURCE",Bx="dnd-core/REMOVE_TARGET";function hde(t){return{type:SP,payload:{sourceId:t}}}function pde(t){return{type:wP,payload:{targetId:t}}}function gde(t){return{type:CP,payload:{sourceId:t}}}function mde(t){return{type:Bx,payload:{targetId:t}}}function vde(t){mn(typeof t.canDrag=="function","Expected canDrag to be a function."),mn(typeof t.beginDrag=="function","Expected beginDrag to be a function."),mn(typeof t.endDrag=="function","Expected endDrag to be a function.")}function yde(t){mn(typeof t.canDrop=="function","Expected canDrop to be a function."),mn(typeof t.hover=="function","Expected hover to be a function."),mn(typeof t.drop=="function","Expected beginDrag to be a function.")}function oI(t,e){if(e&&Array.isArray(t)){t.forEach(n=>oI(n,!1));return}mn(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var xa;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(xa||(xa={}));let _de=0;function bde(){return _de++}function Ede(t){const e=bde().toString();switch(t){case xa.SOURCE:return`S${e}`;case xa.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function LN(t){switch(t[0]){case"S":return xa.SOURCE;case"T":return xa.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function kN(t,e){const n=t.entries();let r=!1;do{const{done:i,value:[,s]}=n.next();if(s===e)return!0;r=!!i}while(!r);return!1}class Sde{addSource(e,n){oI(e),vde(n);const r=this.addHandler(xa.SOURCE,e,n);return this.store.dispatch(hde(r)),r}addTarget(e,n){oI(e,!0),yde(n);const r=this.addHandler(xa.TARGET,e,n);return this.store.dispatch(pde(r)),r}containsHandler(e){return kN(this.dragSources,e)||kN(this.dropTargets,e)}getSource(e,n=!1){return mn(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return mn(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return mn(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return mn(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return LN(e)===xa.SOURCE}isTargetId(e){return LN(e)===xa.TARGET}removeSource(e){mn(this.getSource(e),"Expected an existing source."),this.store.dispatch(gde(e)),fde(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){mn(this.getTarget(e),"Expected an existing target."),this.store.dispatch(mde(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);mn(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){mn(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const i=Ede(e);return this.types.set(i,n),e===xa.SOURCE?this.dragSources.set(i,r):e===xa.TARGET&&this.dropTargets.set(i,r),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const wde=(t,e)=>t===e;function Cde(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function xde(t,e,n=wde){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function Tde(t=i1,e){switch(e.type){case $x:break;case SP:case wP:case Bx:case CP:return i1;case Nx:case bP:case Ux:case Fx:default:return EP}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=Iue(n,r);if(!(i.length>0||!xde(n,r)))return i1;const a=r[r.length-1],c=n[n.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function Rde(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ade(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Rde(t,i,n[i])})}return t}const MN={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ode(t=MN,e){const{payload:n}=e;switch(e.type){case _P:case Nx:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case $x:return Cde(t.clientOffset,n.clientOffset)?t:Ade({},t,{clientOffset:n.clientOffset});case Ux:case Fx:return MN;default:return t}}function Ide(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Ide(t,i,n[i])})}return t}const Pde={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Lde(t=Pde,e){const{payload:n}=e;switch(e.type){case Nx:return lm({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case bP:return lm({},t,{isSourcePublic:!0});case $x:return lm({},t,{targetIds:n.targetIds});case Bx:return t.targetIds.indexOf(n.targetId)===-1?t:lm({},t,{targetIds:Oue(t.targetIds,n.targetId)});case Fx:return lm({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Ux:return lm({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function kde(t=0,e){switch(e.type){case SP:case wP:return t+1;case CP:case Bx:return t-1;default:return t}}function Mde(t=0){return t+1}function Dde(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Nde(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Dde(t,i,n[i])})}return t}function $de(t={},e){return{dirtyHandlerIds:Tde(t.dirtyHandlerIds,{type:e.type,payload:Nde({},e.payload,{prevTargetIds:Aue(t,"dragOperation.targetIds",[])})}),dragOffset:Ode(t.dragOffset,e),refCount:kde(t.refCount,e),dragOperation:Lde(t.dragOperation,e),stateId:Mde(t.stateId)}}function Fde(t,e=void 0,n={},r=!1){const i=Ude(r),s=new sde(i,new Sde(i)),a=new ede(i,s),c=t(a,e,n);return a.receiveBackend(c),a}function Ude(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return rV($de,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function Bde(t,e){if(t==null)return{};var n=jde(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}
42function jde(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}let DN=0;const _2=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Hde=_.memo(function(e){var{children:n}=e,r=Bde(e,["children"]);const[i,s]=zde(r);return _.useEffect(()=>{if(s){const a=cV();return++DN,()=>{--DN===0&&(a[_2]=null)}}},[]),W.jsx(Cue.Provider,{value:i,children:n})});function zde(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=Vde(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function Vde(t,e=cV(),n,r){const i=e;return i[_2]||(i[_2]={dragDropManager:Fde(t,e,n,r)}),i[_2]}function cV(){return typeof global<"u"?global:window}function uV(t){let e=null;return()=>(e==null&&(e=t()),e)}function qde(t,e){return t.filter(n=>n!==e)}function Wde(t,e){const n=new Set,r=s=>n.add(s);t.forEach(r),e.forEach(r);const i=[];return n.forEach(s=>i.push(s)),i}class Gde{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=Wde(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=qde(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Kde{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,n){return n===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const dV="__NATIVE_FILE__",fV="__NATIVE_URL__",hV="__NATIVE_TEXT__",pV="__NATIVE_HTML__",NN=Object.freeze(Object.defineProperty({__proto__:null,FILE:dV,HTML:pV,TEXT:hV,URL:fV},Symbol.toStringTag,{value:"Module"}));function kR(t,e,n){const r=e.reduce((i,s)=>i||t.getData(s),"");return r??n}const aI={[dV]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[pV]:{exposeProperties:{html:(t,e)=>kR(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[fV]:{exposeProperties:{urls:(t,e)=>kR(t,e,"").split(` 43`),dataTransfer:t=>t}
vendor: 8,847 bytes, line 43
43,matchesTypes:["Url","text/uri-list"]},[hV]:{exposeProperties:{text:(t,e)=>kR(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function Yde(t,e){const n=aI[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new Kde(n);return r.loadDataTransfer(e),r}function MR(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(aI).filter(n=>{const r=aI[n];return r?.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const Xde=uV(()=>/firefox/i.test(navigator.userAgent)),gV=uV(()=>!!window.safari);class $N{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:s,c3s:a}=this;let c=n.length-1;if(e===n[c])return r[c];let u=0,h=a.length-1,p;for(;u<=h;){p=Math.floor(.5*(u+h));const E=n[p];if(E<e)u=p+1;else if(E>e)h=p-1;else return r[p]}c=Math.max(0,h);const v=e-n[c],y=v*v;return r[c]+i[c]*v+s[c]*y+a[c]*v*y}constructor(e,n){const{length:r}=e,i=[];for(let E=0;E<r;E++)i.push(E);i.sort((E,S)=>e[E]<e[S]?-1:1);const s=[],a=[];let c,u;for(let E=0;E<r-1;E++)c=e[E+1]-e[E],u=n[E+1]-n[E],s.push(c),a.push(u/c);const h=[a[0]];for(let E=0;E<s.length-1;E++){const S=a[E],x=a[E+1];if(S*x<=0)h.push(0);else{c=s[E];const C=s[E+1],R=c+C;h.push(3*R/((R+C)/S+(R+c)/x))}}h.push(a[a.length-1]);const p=[],v=[];let y;for(let E=0;E<h.length-1;E++){y=a[E];const S=h[E],x=1/s[E],C=S+h[E+1]-y-y;p.push((y-S-C)*x),v.push(C*x*x)}this.xs=e,this.ys=n,this.c1s=h,this.c2s=p,this.c3s=v}}const Qde=1;function mV(t){const e=t.nodeType===Qde?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function vw(t){return{x:t.clientX,y:t.clientY}}function Zde(t){var e;return t.nodeName==="IMG"&&(Xde()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function Jde(t,e,n,r){let i=t?e.width:n,s=t?e.height:r;return gV()&&t&&(s/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:s}}function efe(t,e,n,r,i){const s=Zde(e),c=mV(s?t:e),u={x:n.x-c.x,y:n.y-c.y},{offsetWidth:h,offsetHeight:p}=t,{anchorX:v,anchorY:y}=r,{dragPreviewWidth:E,dragPreviewHeight:S}=Jde(s,e,h,p),x=()=>{let D=new $N([0,.5,1],[u.y,u.y/p*S,u.y+S-p]).interpolate(y);return gV()&&s&&(D+=(window.devicePixelRatio-1)*S),D},C=()=>new $N([0,.5,1],[u.x,u.x/h*E,u.x+E-h]).interpolate(v),{offsetX:R,offsetY:A}=i,O=R===0||R,P=A===0||A;return{x:O?R:C(),y:P?A:x()}}let tfe=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}};function nfe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function FN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){nfe(t,i,n[i])})}return t}class rfe{profile(){var e,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,r){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,r);const i=a=>this.handleDragStart(a,e),s=a=>this.handleSelectStart(a);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",s),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",s),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const r=a=>this.handleDragEnter(a,e),i=a=>this.handleDragOver(a,e),s=a=>this.handleDrop(a,e);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",s),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",s)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return FN({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return FN({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(NN).some(n=>NN[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=Yde(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.get
43SourceClientOffset=i=>{const s=this.sourceNodes.get(i);return s&&mV(s)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:s}=this;this.dragStartSourceIds=null;const a=vw(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(s||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:c}=i,u=MR(c);if(this.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){const p=this.monitor.getSourceId(),v=this.sourceNodes.get(p),y=this.sourcePreviewNodes.get(p)||v;if(y){const{anchorX:E,anchorY:S,offsetX:x,offsetY:C}=this.getCurrentSourcePreviewNodeOptions(),O=efe(v,y,a,{anchorX:E,anchorY:S},{offsetX:x,offsetY:C});c.setDragImage(y,O.x,O.y)}}try{c?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:h}=this.getCurrentSourcePreviewNodeOptions();h?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(u)this.beginDragNativeItem(u);else{if(c&&!c.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:c}=i,u=MR(c);u&&this.beginDragNativeItem(u,c)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:s}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,s.length>0&&this.actions.hover(s,{clientOffset:vw(i)}),s.some(c=>this.monitor.canDropOnTarget(c))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:s}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=vw(i),this.scheduleHover(s),(s||[]).some(c=>this.monitor.canDropOnTarget(c))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var s;i.preventDefault(),(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(i.dataTransfer)}else MR(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:s}=this;this.dropTargetIds=[],this.actions.hover(s,{clientOffset:vw(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(
vendor: 4,514 bytes, lines 43-47
43),this.cancelHover()},this.handleSelectStart=i=>{const s=i.target;typeof s.dragDrop=="function"&&(s.tagName==="INPUT"||s.tagName==="SELECT"||s.tagName==="TEXTAREA"||s.isContentEditable||(i.preventDefault(),s.dragDrop()))},this.options=new tfe(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Gde(this.isNodeInDocument)}}const ife=function(e,n,r){return new rfe(e,n,r)};var vV=t=>{throw TypeError(t)},yV=(t,e,n)=>e.has(t)||vV("Cannot "+n),Ft=(t,e,n)=>(yV(t,e,"read from private field"),n?n.call(t):e.get(t)),Sa=(t,e,n)=>e.has(t)?vV("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Nh=(t,e,n,r)=>(yV(t,e,"write to private field"),e.set(t,n),n),qd,sfe=class{constructor(){Sa(this,qd),this.register=t=>{Ft(this,qd).push(t)},this.unregister=t=>{for(;Ft(this,qd).indexOf(t)!==-1;)Ft(this,qd).splice(Ft(this,qd).indexOf(t),1)},this.backendChanged=t=>{for(let e of Ft(this,qd))e.backendChanged(t)},Nh(this,qd,[])}};qd=new WeakMap;var Ho,B_,zo,pu,$h,lI,cI,uI,b2,E2,j_,_V=class S2{constructor(e,n,r){if(Sa(this,Ho),Sa(this,B_),Sa(this,zo),Sa(this,pu),Sa(this,$h),Sa(this,lI,(i,s,a)=>{if(!a.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(a)}`);let c=a.backend(i,s,a.options),u=a.id,h=!a.id&&c&&c.constructor;if(h&&(u=c.constructor.name),!u)throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(a)} 44 see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(h&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'. 45 This might be unsupported in the future, please specify 'id' explicitely for every backend.`),Ft(this,zo)[u])throw new Error(`You must specify a unique 'id' property in your Backend entry: 46 ${JSON.stringify(a)} (conflicts with: ${JSON.stringify(Ft(this,zo)[u])})`);return{id:u,instance:c,preview:a.preview??!1,transition:a.transition,skipDispatchOnTransition:a.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(S2.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");S2.isSetUp=!0,Ft(this,cI).call(this,window),Ft(this,zo)[Ft(this,Ho)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(S2.isSetUp=!1,Ft(this,uI).call(this,window),Ft(this,zo)[Ft(this,Ho)].instance.teardown())},this.connectDragSource=(i,s,a)=>Ft(this,j_).call(this,"connectDragSource",i,s,a),this.connectDragPreview=(i,s,a)=>Ft(this,j_).call(this,"connectDragPreview",i,s,a),this.connectDropTarget=(i,s,a)=>Ft(this,j_).call(this,"connectDropTarget",i,s,a),this.profile=()=>Ft(this,zo)[Ft(this,Ho)].instance.profile(),this.previewEnabled=()=>Ft(this,zo)[Ft(this,Ho)].preview,this.previewsList=()=>Ft(this,B_),this.backendsList=()=>Ft(this,pu),Sa(this,cI,i=>{for(let s of Ft(this,pu))s.transition&&i.addEventListener(s.transition.event,Ft(this,b2))}),Sa(this,uI,i=>{for(let s of Ft(this,pu))s.transition&&i.removeEventListener(s.transition.event,Ft(this,b2))}),Sa(this,b2,i=>{let s=Ft(this,Ho);if(Ft(this,pu).some(a=>a.id!==Ft(this,Ho)&&a.transition&&a.transition.check(i)?(Nh(this,Ho,a.id),!0):!1),Ft(this,Ho)!==s){Ft(this,zo)[s].instance.teardown();for(let[h,p]of Object.entries(Ft(this,$h)))p.unsubscribe(),p.unsubscribe=Ft(this,E2).call(this,p.func,...p.args);Ft(this,B_).backendChanged(this);let a=Ft(this,zo)[Ft(this,Ho)];if(a.instance.setup(),a.skipDispatchOnTransition)return;let c=i.constructor,u=new c(i.type,i);i.target?.dispatchEvent(u)}}),Sa(this,E2,(i,s,a,c)=>Ft(this,zo)[Ft(this,Ho)].instance[i](s,a,c)),Sa(this,j_,(i,s,a,c)=>{let u=`${i}_${s}`,h=Ft(this,E2).call(this,i,s,a,c);return Ft(this,$h)[u]={func:i,args:[s,a,c],unsubscribe:h},()=>{Ft(this,$h)[u].unsubscribe(),delete Ft(this,$h)[u]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error) 47 see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);Nh(this,B_,new sfe),Nh(this,zo,{}),Nh(this,pu,[]);for(let i of r.backends){let s=Ft(this,lI).call(this,e,n,i);Ft(this,zo)[s.id]=s,Ft(this,pu).push(s)}Nh(this,Ho,Ft(this,pu)[0].id),Nh(this,$h,{})}};Ho=new WeakMap,B_=new WeakMap,zo=new WeakMap,pu=new WeakMap,$h=new WeakMap,lI=new WeakMap,cI=new WeakMap,uI=new WeakMap,b2=new WeakMap,E2=ne
47w WeakMap,j_=new WeakMap,_V.isSetUp=!1;var ofe=_V,afe=(t,e,n)=>new ofe(t,e,n),bV=(t,e)=>({event:t,check:e}),lfe=bV("touchstart",t=>{let e=t;return e.touches!==null&&e.touches!==void 0}),cfe=bV("mousedown",t=>t.type.indexOf("touch")===-1&&t.type.indexOf("mouse")!==-1),xP=uz();const X4e=ju(xP);var af;(function(t){t.mouse="mouse",t.touch="touch",t.keyboard="keyboard"})(af||(af={}));class ufe{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get delayMouseStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,n){this.args=e,this.context=n}}function dfe(t,e,n,r){return Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(r-e),2))}function ffe(t,e,n,r,i){if(!i)return!1;const s=Math.atan2(r-e,n-t)*180/Math.PI+180;for(let a=0;a<i.length;++a){const c=i[a];if(c&&(c.start==null||s>=c.start)&&(c.end==null||s<=c.end))return!0}return!1}const hfe={Left:1},pfe={Left:0};function DR(t){return t.button===void 0||t.button===pfe.Left}function gfe(t){return t.buttons===void 0||(t.buttons&hfe.Left)===0}function EV(t){return!!t.targetTouches}const mfe=1;function vfe(t){const e=t.nodeType===mfe?t:t.parentElement;if(!e)return;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function yfe(t,e){if(t.targetTouches.length===1)return IC(t.targetTouches[0]);if(e&&t.touches.length===1&&t.touches[0].target===e.target)return IC(t.touches[0])}function IC(t,e){return EV(t)?yfe(t,e):{x:t.clientX,y:t.clientY}}const UN=(()=>{let t=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return t=!0,!0}}))}catch{}return t})(),p_={[af.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[af.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[af.keyboard]:{keydown:"keydown"}};class s1{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(mn(!s1.isSetUp,"Cannot have two Touch backends at the same time."),s1.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(s1.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}
vendor: 3,479 bytes, line 47
47addEventListener(e,n,r,i=!1){const s=UN?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=p_[a][n];c&&e.addEventListener(c,r,s)})}removeEventListener(e,n,r,i=!1){const s=UN?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=p_[a][n];c&&e.removeEventListener(c,r,s)})}connectDragSource(e,n){const r=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(e),this.removeEventListener(n,"start",r)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=s=>{if(!this.document||!r||!this.monitor.isDragging())return;let a;switch(s.type){case p_.mouse.move:a={x:s.clientX,y:s.clientY};break;case p_.touch.move:var c,u;a={x:((c=s.touches[0])===null||c===void 0?void 0:c.clientX)||0,y:((u=s.touches[0])===null||u===void 0?void 0:u.clientY)||0};break}const h=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,p=h&&n.contains(h);if(h===n||p)return this.handleMove(s,e)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(e,n),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,n,r){this.getSourceClientOffset=i=>{const s=this.sourceNodes.get(i);return s&&vfe(s)},this.handleTopMoveStartCapture=i=>{DR(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!DR(i))return;const s=IC(i);s&&(EV(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=s),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!DR(i))return;const s=i.type===p_.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,i),s),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(i,s)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(s)},this.handleTopMove=i=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:s,dragOverTargetIds:a}=this,c=this.options.enableHoverOutsideTarget,u=IC(i,this.lastTargetTouchFallback);if(!u)return;if(this._isScrolling||!this.monitor.isDragging()&&ffe(this._mouseClientOffset.x||
470,this._mouseClientOffset.y||0,u.x,u.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&s&&dfe(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,u.x,u.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(s,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const h=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(h),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const p=(a||[]).map(S=>this.targetNodes.get(S)).filter(S=>!!S),v=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(u.x,u.y,p):this.document.elementsFromPoint(u.x,u.y),y=[];for(const S in v){if(!v.hasOwnProperty(S))continue;let x=v[S];for(x!=null&&y.push(x);x;)x=x.parentElement,x&&y.indexOf(x)===-1&&y.push(x)}const E=y.filter(S=>p.indexOf(S)>-1).map(S=>this._getDropTargetId(S)).filter(S=>!!S).filter((S,x,C)=>C.indexOf(S)===x);if(c)for(const S in this.targetNodes){const x=this.targetNodes.get(S);if(h&&x&&x.contains(h)&&E.indexOf(S)===-1){E.unshift(S);break}}E.reverse(),this.actions.hover(E,{clientOffset:u})},this._getDropTargetId=i=>{const s=this.targetNodes.keys();let a=s.next();for(;a.done===!1;){const c=a.value;if(i===this.targetNodes.get(c))return c;a=s.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!gfe(i)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}i.cancelable&&i.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=i=>{i.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new ufe(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(af.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(af.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(af.keyboard)}}const _fe=function(e,n={},r={}){return new s1(e,n,r)},ii=t=>{const e=_.useRef(t);return e.current=t,_.useCallback((...r)=>e.current?.(...r),[])};function na(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const BN=na()?_.useLayoutEffect:_.useEffect,gf=(t,e)=>{const n=_.useRef(!0);BN(()=>t(n.current),e),BN(()=>(n.current=!1,()=>{n.current=!0}),[])},Q4e=(t,e)=>{gf(n=>{if(!n)return t()},e)},SV=t=>{const e=_.useRef(!1),[n,r]=_.useState(t);_.useEffect(()=>(e.current=!1,()=>{e.current=!0}),[]);function i(s,a){a&&e.current||r(s)}return[n,i]};function bfe(){return{...N9}.useId}let jN=0;const HN=bfe(),TP=HN?(function(e){const n=HN();return e||n}):(function(e){const[n,r]=_.useState("ssr-id");return _.useEffect(()=>{const i=jN;jN+=1,r(`rc_unique_${i}`)},[]),e||n});function RP(t,e,n){const r=_.useRef({});return(!("value"in r.current)||n(r.current.condition,e))&&(r.current.value=t(),r.current.condition=e),r.current.value}function Efe(t){const[,e]=_.useReducer(s=>s+1,0),n=_.useRef(t),r=ii(()=>n.current),i=ii(s=>{n.current=typeof s=="function"?s(n.current):s,e()});return[r,i]}var NR={exports:{}},Bn={};var zN;function Sfe(){if(zN)return Bn;zN=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function x(C){if(typeof C=="object"&&C!==null){var R=C.$$typeof;switch(R){case t:switch(C=C.type,C){case n:case i:case r:case h:case p:return C;default:switch(C=C&&C.$$typeof,C){case c:case a:case u:case y:case v:case s:return C;default:return R}}case e:return R}}}return Bn.ContextConsumer=a,Bn.ContextProvider=s,Bn.Element=t,Bn.ForwardRef=u,Bn.Fragment=n,Bn.Lazy=y,Bn.Memo=v,Bn.Portal=e,Bn.Profiler=i,Bn.StrictMode=r,Bn.Suspense=h,Bn.SuspenseList=p,Bn.isAsyncMode=function(){return!1},Bn.isConcurrentMode=function(){return!1},Bn.isContextConsumer=function(C){return x(C)===a},Bn.isContextProvider=function(C){return x(C)===s},Bn.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Bn.isForwardRef=function(C){return x(C)===u},Bn.isFragment=function(C){return x(C)===n},Bn.isLazy=function(C){return x(C)===y},Bn.isMemo=function(C){return x(C)===v},Bn.isPortal=function(C){return x(C)===e},Bn.isProfiler=function(C){return x(C)===i},Bn.isStrictMode=function(C){return x(C)===r},Bn.isSuspense=function(C){return x(C)===h},Bn.isSuspenseList=function(C){return x(C)===p},Bn.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===i||C===r||C===h||C===p||C===E||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===v||C.$$typeof===s||C.$$typeof===a||C.$$typeof===u||C.$$typeof===S||C.getModuleId!==void 0)},Bn.typeOf=x,Bn}var VN;function wfe(){return VN||(VN=1,NR.exports=Sfe()),NR.exports}var $R=wfe();const Cfe=Symbol.for("react.element"),xfe=Symbol.for("react.transitional.element"),Tfe=Symbol.for("react.fragment");function wV(t){return t&&typeof t=="object"&&(t.$$typeof===Cfe||t.$$typeof===xfe)&&t.type===Tfe}const Rfe=Number(_.version.split(".")[0]),Afe=(t,e)=>{typeof t=="function"?t(e):typeof t=="object"&&t&&"current"in t&&(t.current=e)},Ap=(...t)=>{const e=t.filter(Boolean);return e.length<=1?e[0]:n=>{t.forEach(r=>{Afe(r,n)})}},vb=(...t)=>RP(()=>Ap(...t),t,(e,n)=>e.length!==n.length||e.every((r,i)=>r!==n[i])),jx=t=>{if(!t)return!1;if(AP(t)&&Rfe>=19)return!0;const e=$R.isMemo(t)?t.type.type:t.type;return!(typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==$R.ForwardRef||typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==$R.ForwardRef)};function AP(t){return _.isValidElement(t)&&!wV(t)}const Ofe=t=>AP(t)&&jx(t),Hx=t=>{if(t&&AP(t)){const e=t;return e.props.propertyIsEnumerable("ref")?e.props.ref:e.ref}return null};function dI(t,e){if(!t)return!1;if(t.contains)return t.contains(e);let n=e;for(;n;){if(n===t)return!0;n=n.parentNode}return!1}const qN="data-rc-order",WN="data-rc-priority",Ife="rc-util-key",fI=new Map;function CV({mark:t}={}){return t?t.startsWith("data-")?t:`data-${t}`:Ife}function zx(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function Pfe(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function OP(t){return Array.from((fI.get(t)||t).children).filter(e=>e.tagName==="STYLE")}function xV(t,e={}){if(!na())return null;const{csp:n,prepend:r,priority:i=0}=e,s=Pfe(r),a=s==="prependQueue",c=document.createElement("style");c.setAttribute(qN,s),a&&i&&c.setAttribute(WN,`${i}`),n?.nonce&&(c.nonce=n?.nonce),c.innerHTML=t;const u=zx(e),{firstChild:h}=u;if(r){if(a){const p=(e.styles||OP(u)).filter(v=>
47{if(!["prepend","prependQueue"].includes(v.getAttribute(qN)))return!1;const y=Number(v.getAttribute(WN)||0);return i>=y});if(p.length)return u.insertBefore(c,p[p.length-1].nextSibling),c}u.insertBefore(c,h)}else u.appendChild(c);return c}function TV(t,e={}){let{styles:n}=e;return n||=OP(zx(e)),n.find(r=>r.getAttribute(CV(e))===t)}function B1(t,e={}){const n=TV(t,e);n&&zx(e).removeChild(n)}function Lfe(t,e){const n=fI.get(t);if(!n||!dI(document,n)){const r=xV("",e),{parentNode:i}=r;fI.set(t,i),t.removeChild(r)}}function lf(t,e,n={}){const r=zx(n),i=OP(r),s={...n,styles:i};Lfe(r,s);const a=TV(e,s);if(a)return s.csp?.nonce&&a.nonce!==s.csp?.nonce&&(a.nonce=s.csp?.nonce),a.innerHTML!==t&&(a.innerHTML=t),a;const c=xV(t,s);return c.setAttribute(CV(s),e),c}function PC(t){return t instanceof HTMLElement||t instanceof SVGElement}function RV(t){return t&&typeof t=="object"&&PC(t.nativeElement)?t.nativeElement:PC(t)?t:null}const IP=(t=>{if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){const{width:e,height:n}=t.getBBox();if(e||n)return!0}if(t.getBoundingClientRect){const{width:e,height:n}=t.getBoundingClientRect();if(e||n)return!0}}return!1});function GN(t,e=!1){if(IP(t)){const n=t.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||t.isContentEditable||n==="a"&&!!t.getAttribute("href"),i=t.getAttribute("tabindex"),s=Number(i);let a=null;return i&&!Number.isNaN(s)?a=s:r&&a===null&&(a=0),r&&t.disabled&&(a=null),a!==null&&(a>=0||e&&a<0)}return!1}function AV(t,e=!1){const n=[...t.querySelectorAll("*")].filter(r=>GN(r,e));return GN(t,e)&&n.unshift(t),n}function Z4e(t,e){if(!t)return;t.focus(e);const{cursor:n}=e||{};if(n&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)){const r=t.value.length;switch(n){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(r,r);break;default:t.setSelectionRange(0,r)}}}let Bm=null,Yd=[];const hI=new Map,PP=new Map;function LP(){return Yd[Yd.length-1]}function kfe(t){const e=LP();if(t&&e){let n;for(const[i,s]of hI.entries())if(s===e){n=i;break}const r=PP.get(n);return!!r&&(r===t||r.contains(t))}return!1}function Mfe(t){const{activeElement:e}=document;return t===e||t.contains(e)}function FR(){const t=LP(),{activeElement:e}=document;if(!kfe(e))if(t&&!Mfe(t)){const n=AV(t);(n.includes(Bm)?Bm:n[0])?.focus({preventScroll:!0})}else Bm=e}function KN(t){if(t.key==="Tab"){const{activeElement:e}=document,n=LP(),r=AV(n),i=r[r.length-1];t.shiftKey&&e===r[0]?Bm=i:!t.shiftKey&&e===i&&(Bm=r[0])}}function Dfe(t,e){return t&&(hI.set(e,t),Yd=Yd.filter(n=>n!==t),Yd.push(t),window.addEventListener("focusin",FR),window.addEventListener("keydown",KN,!0),FR()),()=>{Bm=null,Yd=Yd.filter(n=>n!==t),hI.delete(e),PP.delete(e),Yd.length===0&&(window.removeEventListener("focusin",FR),window.removeEventListener("keydown",KN,!0))}}function Nfe(t,e){const n=_.useRef(0),[r,i]=_.useState(0);_.useEffect(()=>{n.current=0},e),_.useEffect(()=>{const[s,a]=t(n.current);return a||(n.current+=1,i(c=>c+1)),s},[...e,r])}function $fe(t,e){const n=TP(),r=_.useRef(e);return r.current=e,Nfe(a=>{if(!t)return[void 0,!0];const c=r.current();return c?[Dfe(c,n),!0]:[void 0,a>=1]},[n,t]),[a=>{a&&PP.set(n,a)}]}function OV(t){return t?.getRootNode?.()}function Ffe(t){return OV(t)instanceof ShadowRoot}function Ufe(t){return Ffe(t)?OV(t):null}function Bfe(t){const e=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=e;const r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";let i,s;if(t){const u=getComputedStyle(t);r.scrollbarColor=u.scrollbarColor,r.scrollbarWidth=u.scrollbarWidth;const h=getComputedStyle(t,"::-webkit-scrollbar"),p=parseInt(h.width,10),v=parseInt(h.height,10);try{const y=p?`width: ${h.width};`:"",E=v?`height: ${h.height};`:"";lf(` 48#${e}::-webkit-scrollbar {
49${y} 50${E} 51}`,e)}catch(y){console.error(y),i=p,s=v}}document.body.appendChild(n);const a=t&&i&&!Number.isNaN(i)?i:n.offsetWidth-n.clientWidth,c=t&&s&&!Number.isNaN(s)?s:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),B1(e),{width:a,height:c}}function jfe(t){return typeof document>"u"||!t||!(t instanceof Element)?{width:0,height:0}:Bfe(t)}let pI={};const Hfe=t=>{};function zfe(t,e){}function Vfe(t,e){}function qfe(){pI={}}function IV(t,e,n){!e&&!pI[n]&&(t(!1,n),pI[n]=!0)}function ea(t,e){IV(zfe,t,e)}function Wfe(t,e){IV(Vfe,t,e)}ea.preMessage=Hfe;ea.resetWarned=qfe;ea.noteOnce=Wfe;function gI(t,e,n=!1){const r=new Set;function i(s,a,c=1){const u=r.has(s);if(ea(!u,"Warning: There may be circular references"),u)return!1;if(s===a)return!0;if(n&&c>1)return!1;r.add(s);const h=c+1;if(Array.isArray(s)){if(!Array.isArray(a)||s.length!==a.length)return!1;for(let p=0;p<s.length;p++)if(!i(s[p],a[p],h))return!1;return!0}if(s&&a&&typeof s=="object"&&typeof a=="object"){const p=Object.keys(s);return p.length!==Object.keys(a).length?!1:p.every(v=>i(s[v],a[v],h))}return!1}return i(t,e)}var g_={exports:{}},YN;function Gfe(){if(YN)return g_.exports;YN=1,g_.exports=r,g_.exports.isMobile=r,g_.exports.default=r;const t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,e=/CrOS/,n=/android|ipad|playbook|silk/i;function r(i){i||(i={});let s=i.ua;if(!s&&typeof navigator<"u"&&(s=navigator.userAgent),s&&s.headers&&typeof s.headers["user-agent"]=="string"&&(s=s.headers["user-agent"]),typeof s!="string")return!1;let a=t.test(s)&&!e.test(s)||!!i.tablet&&n.test(s);return!a&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&s.indexOf("Macintosh")!==-1&&s.indexOf("Safari")!==-1&&(a=!0),a}return g_.exports}var Kfe=Gfe();const J4e=ju(Kfe);function PV(t,e){const n=Object.assign({},t);return Array.isArray(e)&&e.forEach(r=>{delete n[r]}),n}const Yfe=`accept acceptCharset accessKey action allowFullScreen allowTransparency 52 alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge 53 charSet checked classID className colSpan cols content contentEditable contextMenu 54 controls coords crossOrigin data dateTime default defer dir disabled download draggable 55 encType form formAction formEncType formMethod formNoValidate formTarget frameBorder 56 headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity 57 is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media 58 mediaGroup method min minLength multiple muted name noValidate nonce open 59 optimum pattern placeholder poster preload radioGroup readOnly rel required 60 reversed role rowSpan rows sandbox scope scoped scrolling seamless selected 61 shape size sizes span spellCheck src srcDoc srcLang srcSet start step style 62 summary tabIndex target title type useMap value width wmode wrap`,Xfe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown 63 onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick 64 onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown 65 onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel 66 onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough 67 onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata 68 onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Qfe=`${Yfe} ${Xfe}`.split(/[\s\n]+/),Zfe="aria-",Jfe="data-";function XN(t,e){return t.indexOf(e)===0}function yp(t,e=!1){let n;e===!1?n={aria:!0,data:!0,attr:!0}:e===!0?n={aria:!0}:n={...e};const r={};return Object.keys(t).forEach(i=>
68{(n.aria&&(i==="role"||XN(i,Zfe))||n.data&&XN(i,Jfe)||n.attr&&Qfe.includes(i))&&(r[i]=t[i])}),r}let LV=t=>+setTimeout(t,16),kV=t=>clearTimeout(t);typeof window<"u"&&"requestAnimationFrame"in window&&(LV=t=>window.requestAnimationFrame(t),kV=t=>window.cancelAnimationFrame(t));let QN=0;const kP=new Map;function MV(t){kP.delete(t)}const gl=(t,e=1)=>{QN+=1;const n=QN;function r(i){if(i===0)MV(n),t();else{const s=LV(()=>{r(i-1)});kP.set(n,s)}}return r(e),n};gl.cancel=t=>{const e=kP.get(t);return MV(t),kV(e)};function sv(t,e={}){let n=[];return Te.Children.forEach(t,r=>{r==null&&!e.keepEmpty||(Array.isArray(r)?n=n.concat(sv(r)):wV(r)&&r.props?n=n.concat(sv(r.props.children,e)):n.push(r))}),n}function ZN(...t){const e={};for(const n of t)if(n)for(const r of Object.keys(n))n[r]!==void 0&&(e[r]=n[r]);return e}function Ta(t,e){let n=t;for(let r=0;r<e.length;r+=1){if(n==null)return;n=n[e[r]]}return n}function DV(t,e,n,r){if(!e.length)return n;const[i,...s]=e;let a;return!t&&typeof i=="number"?a=[]:Array.isArray(t)?a=[...t]:a={...t},r&&n===void 0&&s.length===1?delete a[i][s[0]]:a[i]=DV(a[i],s,n,r),a}function Vo(t,e,n,r=!1){return e.length&&r&&n===void 0&&!Ta(t,e.slice(0,-1))?t:DV(t,e,n,r)}function ehe(t){return typeof t=="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function JN(t){return Array.isArray(t)?[]:{}}const the=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function nhe(t,e={}){const{prepareArray:n}=e,r=n||(()=>[]);let i=JN(t[0]);return t.forEach(s=>{function a(c,u){const h=new Set(u),p=Ta(s,c),v=Array.isArray(p);if(v||ehe(p)){if(!h.has(p)){h.add(p);const y=Ta(i,c);v?i=Vo(i,c,r(y,p)):(!y||typeof y!="object")&&(i=Vo(i,c,JN(p))),the(p).forEach(E=>{Object.getOwnPropertyDescriptor(p,E).enumerable&&a([...c,E],h)})}}else i=Vo(i,c,p)}a([])}),i}function Im(...t){return nhe(t)}const LC="__rc_react_root__";function NV(t,e){const n=e[LC]||dz.createRoot(e);n.render(t),e[LC]=n}async function $V(t){return Promise.resolve().then(()=>{t[LC]?.unmount(),delete t[LC]})}const rhe=_.createContext({}),mI=_.createContext(null);function ihe({children:t,onBatchResize:e}){const n=_.useRef(0),r=_.useRef([]),i=_.useContext(mI),s=_.useCallback((a,c,u)=>{n.current+=1;const h=n.current;r.current.push({size:a,element:c,data:u}),Promise.resolve().then(()=>{h===n.current&&(e?.(r.current),r.current=[])}),i?.(a,c,u)},[e,i]);return _.createElement(mI.Provider,{value:s},t)}const tf=new Map;function she(t){t.forEach(e=>{const{target:n}=e;tf.get(n)?.forEach(r=>r(n))})}let UR;function FV(){return UR||(UR=new ResizeObserver(she)),UR}function ohe(t,e){tf.has(t)||(tf.set(t,new Set),FV().observe(t)),tf.get(t).add(e)}function ahe(t,e){tf.has(t)&&(tf.get(t).delete(e),tf.get(t).size||(FV().unobserve(t),tf.delete(t)))}function lhe(t,e,n,r){const i=_.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),s=ii(u=>{const{width:h,height:p}=u.getBoundingClientRect(),{offsetWidth:v,offsetHeight:y}=u,E=Math.floor(h),S=Math.floor(p);if(i.current.width!==E||i.current.height!==S||i.current.offsetWidth!==v||i.current.offsetHeight!==y){const x={width:E,height:S,offsetWidth:v,offsetHeight:y};i.current=x;const C=v===Math.round(h)?h:v,R=y===Math.round(p)?p:y,A={...x,offsetWidth:C,offsetHeight:R};r?.(A,u),Promise.resolve().then(()=>{n?.(A,u)})}}),a=typeof e=="function",c=_.useRef(0);_.useEffect(()=>{const u=a?e():e;return u&&t?ohe(u,s):t&&a&&(c.current+=1),()=>{u&&ahe(u,s)}},[t,a?c.current:e])}function che(t,e){const{children:n,disabled:r,onResize:i,data:s}=t,a=_.useRef(null),c=_.useContext(mI),u=typeof n=="function",h=u?n(a):n,p=!u&&_.isValidElement(h)&&jx(h),v=p?Hx(h):null,y=vb(v,a),E=()=>RV(a.current);return _.useImperativeHandle(e,()=>E()),lhe(!r,E,i,(S,x)=>{c?.(S,x,s)}),p?_.cloneElement(h,{ref:y}):h}const uhe=_.forwardRef(che);function vI(){return vI=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},vI.apply(this,arguments)}const dhe="rc-observer-key";function fhe(t,e){const{children:n}=t;return(typeof n=="function"?[n]:sv(n)).map((i,s)=>
68{const a=i?.key||`${dhe}-${s}`;return _.createElement(uhe,vI({},t,{key:a,ref:s===0?e:void 0}),i)})}const UV=_.forwardRef(fhe);UV.Collection=ihe;function BV(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=BV(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Be(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=BV(t))&&(r&&(r+=" "),r+=e);return r}function yI(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function hhe(t){if(Array.isArray(t))return yI(t)}function phe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function jV(t,e){if(t){if(typeof t=="string")return yI(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yI(t,e):void 0}}function ghe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 69In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cs(t){return hhe(t)||phe(t)||jV(t)||ghe()}const j1="ant",Vx="anticon",ePe=["outlined","borderless","filled","underlined"],mhe=(t,e)=>e||(t?`${j1}-${t}`:j1),wr=_.createContext({getPrefixCls:mhe,iconPrefixCls:Vx}),{Consumer:tPe}=wr,e6={};function El(t){const e=_.useContext(wr),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:s}=e,a=e[t];return{classNames:e6,styles:e6,...a,getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:s}}function H1(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}const vhe="%";function _I(t){return t.join(vhe)}let t6=0;class yhe{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(_I(e))}opGet(e){return this.cache.get(e)||null}update(e,n){return this.opUpdate(_I(e),n)}opUpdate(e,n){const r=this.cache.get(e),i=n(r);i===null?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,i),this.updateTimes.set(e,t6),t6+=1)}}const MP="data-token-hash",ku="data-css-hash",sp="__cssinjs_instance__";function _he(){const t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const e=document.body.querySelectorAll(`style[${ku}]`)||[],{firstChild:n}=document.head;Array.from(e).forEach(i=>{i[sp]||=t,i[sp]===t&&document.head.insertBefore(i,n)});const r={};Array.from(document.querySelectorAll(`style[${ku}
69]`)).forEach(i=>{const s=i.getAttribute(ku);r[s]?i[sp]===t&&i.parentNode?.removeChild(i):r[s]=!0})}return new yhe(t)}const yb=_.createContext({hashPriority:"low",cache:_he(),defaultCache:!0,autoPrefix:!1});function bhe(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}class kC{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,n=!1){let r={map:this.cache};return e.forEach(i=>{r?r=r?.map?.get(i):r=void 0}),r?.value&&n&&(r.value[1]=this.cacheCallTimes++),r?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(e,n){if(!this.has(e)){if(this.size()+1>kC.MAX_CACHE_SIZE+kC.MAX_CACHE_OFFSET){const[i]=this.keys.reduce((s,a)=>{const[,c]=s;return this.internalGet(a)[1]<c?[a,this.internalGet(a)[1]]:s},[this.keys[0],this.cacheCallTimes]);this.delete(i)}this.keys.push(e)}let r=this.cache;e.forEach((i,s)=>{if(s===e.length-1)r.set(i,{value:[n,this.cacheCallTimes++]});else{const a=r.get(i);a?a.map||(a.map=new Map):r.set(i,{map:new Map}),r=r.get(i).map}})}deleteByPath(e,n){const r=e.get(n[0]);if(n.length===1)return r.map?e.set(n[0],{map:r.map}):e.delete(n[0]),r.value?.[0];const i=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&e.delete(n[0]),i}delete(e){if(this.has(e))return this.keys=this.keys.filter(n=>!bhe(n,e)),this.deleteByPath(this.cache,e)}}let n6=0;class HV{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=n6,e.length===0&&(e.length>0,void 0),n6+=1}getDerivativeToken(e){return this.derivatives.reduce((n,r)=>r(e,n),void 0)}}const BR=new kC;function bI(t){const e=Array.isArray(t)?t:[t];return BR.has(e)||BR.set(e,new HV(e)),BR.get(e)}const Ehe=new WeakMap,jR={};function She(t,e){let n=Ehe;for(let r=0;r<e.length;r+=1){const i=e[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(jR)||n.set(jR,t()),n.get(jR)}const r6=new WeakMap;function o1(t){let e=r6.get(t)||"";return e||(Object.keys(t).forEach(n=>{const r=t[n];e+=n,r instanceof HV?e+=r.id:r&&typeof r=="object"?e+=o1(r):e+=r}),e=H1(e),r6.set(t,e)),e}function whe(t,e){return H1(`${e}_${o1(t)}`)}const EI=na();function At(t){return typeof t=="number"?`${t}px`:t}function zV(t){const{hashCls:e,hashPriority:n="low"}=t||{};if(!e)return"";const r=`.${e}`;return n==="low"?`:where(${r})`:r}const Che=t=>t!=null;function DP(t,e){const n=typeof e=="function"?e():e;return n?{...t,csp:{...t.csp,nonce:n}}:t}const w2=(t,e="")=>`--${e?`${e}-`:""}${t}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),xhe=(t,e,n)=>{const{hashCls:r,hashPriority:i="low",scope:s}=n||{};if(!Object.keys(t).length)return"";const a=`${zV({hashCls:r,hashPriority:i})}.${e}`,c=[s].flat().filter(Boolean);return`${c.length?c.map(h=>`${a}.${h}`).join(", "):a}{${Object.entries(t).map(([h,p])=>`${h}:${p};`).join("")}}`},VV=(t,e,n)=>{const{hashCls:r,hashPriority:i="low",prefix:s,unitless:a,ignore:c,preserve:u}=n||{},h={},p={};return Object.entries(t).forEach(([v,y])=>{if(u?.[v])p[v]=y;else if((typeof y=="string"||typeof y=="number")&&!c?.[v]){const E=w2(v,s);h[E]=typeof y=="number"&&!a?.[v]?`${y}px`:String(y),p[v]=`var(${E})`}}),[p,xhe(h,e,{scope:n?.scope,hashCls:r,hashPriority:i})]},yw=new Map;function NP(t,e,n,r,i){const{cache:s}=_.useContext(yb),a=[t,...e],c=_I(a),u=v=>{s.opUpdate(c,y=>{const[E=0,S]=y||[void 0,void 0],C=S||n(),R=[E,C];return v?v(R):R})};_.useMemo(()=>{u()},[c]);const p=s.opGet(c)[1];return _.useInsertionEffect(()=>(u(([v,y])=>[v+1,y]),yw.has(c)||(i?.(p),yw.set(c,!0),Promise.resolve().then(()=>{yw.delete(c)})),()=>{s.opUpdate(c,v=>{const[y=0,E]=v||[];return y-1===0?(r?.(E,!1),yw.delete(c),null):[y-1,E]})}),[c]),p}const The={},Rhe="css",Bh=new Map;
69function Ahe(t){Bh.set(t,(Bh.get(t)||0)+1)}function Ohe(t,e){typeof document<"u"&&document.querySelectorAll(`style[${MP}="${t}"]`).forEach(r=>{r[sp]===e&&r.parentNode?.removeChild(r)})}const Ihe=-1;function Phe(t,e){Bh.set(t,(Bh.get(t)||0)-1);const n=new Set;Bh.forEach((r,i)=>{r<=0&&n.add(i)}),Bh.size-n.size>Ihe&&n.forEach(r=>{Ohe(r,e),Bh.delete(r)})}const Lhe=(t,e,n,r)=>{let s={...n.getDerivativeToken(t),...e};return r&&(s=r(s)),s},khe="token";function Mhe(t,e,n){const{cache:{instanceId:r},container:i,hashPriority:s}=_.useContext(yb),{salt:a="",override:c=The,formatToken:u,getComputedToken:h,cssVar:p,nonce:v}=n,y=She(()=>Object.assign({},...e),e),E=o1(y),S=o1(c),x=o1(p);return NP(khe,[a,t.id,E,S,x],()=>{const R=h?h(y,c,t):Lhe(y,c,t,u),A={...R},O=`${a}_${p.prefix}`,P=H1(O),L=`${Rhe}-${P}`;A._tokenKey=whe(A,O);const[D,N]=VV(R,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve,hashPriority:s,hashCls:p.hashed?L:void 0});return D._hashId=P,Ahe(p.key),[D,L,A,N,p.key]},([,,,,R])=>{Phe(R,r)},([,,,R,A])=>{if(!R)return;let O={mark:ku,prepend:"queue",attachTo:i,priority:-999};O=DP(O,v);const P=lf(R,H1(`css-var-${A}`),O);P[sp]=r,P.setAttribute(MP,A)})}var Dhe={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_r="-ms-",a1="-moz-",Ln="-webkit-",qV="comm",$P="rule",FP="decl",Nhe="@import",$he="@namespace",WV="@keyframes",Fhe="@layer",Uhe=Math.abs,l1=String.fromCharCode,SI=Object.assign;function Bhe(t,e){return Ri(t,0)^45?(((e<<2^Ri(t,0))<<2^Ri(t,1))<<2^Ri(t,2))<<2^Ri(t,3):0}function GV(t){return t.trim()}function mu(t,e){return(t=e.exec(t))?t[0]:t}function an(t,e,n){return t.replace(e,n)}function HR(t,e){return t.indexOf(e)}function Ri(t,e){return t.charCodeAt(e)|0}function _p(t,e,n){return t.slice(e,n)}function ll(t){return t.length}function KV(t){return t.length}function H_(t,e){return e.push(t),t}function jhe(t,e){return t.map(e).join("")}function i6(t,e){return t.filter(function(n){return!mu(n,e)})}var qx=1,ov=1,YV=0,Pa=0,ui=0,Sv="";function Wx(t,e,n,r,i,s,a,c){return{value:t,root:e,parent:n,type:r,props:i,children:s,line:qx,column:ov,length:a,return:"",siblings:c}}function Wd(t,e){return SI(Wx("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function cm(t){for(;t.root;)t=Wd(t.root,{children:[t]});H_(t,t.siblings)}function Hhe(){return ui}function zhe(){return ui=Pa>0?Ri(Sv,--Pa):0,ov--,ui===10&&(ov=1,qx--),ui}function ml(){return ui=Pa<YV?Ri(Sv,Pa++):0,ov++,ui===10&&(ov=1,qx++),ui}function nf(){return Ri(Sv,Pa)}function C2(){return Pa}function Gx(t,e){return _p(Sv,t,e)}function z1(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Vhe(t){return qx=ov=1,YV=ll(Sv=t),Pa=0,[]}function qhe(t){return Sv="",t}function zR(t){return GV(Gx(Pa-1,wI(t===91?t+2:t===40?t+1:t)))}function Whe(t){for(;(ui=nf())&&ui<33;)ml();return z1(t)>2||z1(ui)>3?"":" "}function Ghe(t,e){for(;--e&&ml()&&!(ui<48||ui>102||ui>57&&ui<65||ui>70&&ui<97););return Gx(t,C2()+(e<6&&nf()==32&&ml()==32))}function wI(t){for(;ml();)switch(ui){case t:return Pa;case 34:case 39:t!==34&&t!==39&&wI(ui);break;case 40:t===41&&wI(t);break;case 92:ml();break}return Pa}function Khe(t,e){for(;ml()&&t+ui!==57;)if(t+ui===84&&nf()===47)break;return"/*"+Gx(e,Pa-1)+"*"+l1(t===47?t:ml())}function Yhe(t){for(;!z1(nf());)ml();return Gx(t,Pa)}function s6(t){return qhe(x2("",null,null,null,[""],t=Vhe(t),0,[0],t))}function x2(t,e,n,r,i,s,a,c,u){for(var h=0,p=0,v=a,y=0,E=0,S=0,x=1,C=1,R=1,A=0,O=0,P="",L=i,D=s,N=r,k=P;C;)switch(S=O,O=ml()){case 40:S!=108&&Ri(k,v-1)==58?(A++,k+="("):k+=zR(O);break;case 41:A--,k+=")";break;case 34:case 39:case 91:k+=zR(O);break;case 9:case 10:case 13:case 32:if(A>0){k+=l1(O);break}k+=Whe(S);break;case 92:k+=Ghe(C2()-1,7);continue;case 47:switch(nf()){case 42:case 47:H_(Xhe(Khe(ml(),C2()),e,n,u),u),(z1(S||1)==5||z1(nf()||1)==5)&&ll(k)&&_p(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;
vendor: 1,922 bytes, line 69
69case 123*x:c[h++]=ll(k)*R;case 125*x:case 59:case 0:if(A>0&&O){k+=l1(O);break}switch(O){case 0:case 125:C=0;case 59+p:R==-1&&(k=an(k,/\f/g,"")),E>0&&(ll(k)-v||x===0)&&H_(E>32?a6(k+";",r,n,v-1,u):a6(an(k," ","")+";",r,n,v-2,u),u);break;case 59:k+=";";default:if(H_(N=o6(k,e,n,h,p,i,c,P,L=[],D=[],v,s),s),O===123)if(p===0)x2(k,e,N,N,L,s,v,c,D);else{switch(y){case 99:if(Ri(k,3)===110)break;case 108:if(Ri(k,2)===97)break;default:p=0;case 100:case 109:case 115:}p?x2(t,N,N,r&&H_(o6(t,N,N,0,0,i,c,P,i,L=[],v,D),D),i,D,v,c,r?L:D):x2(k,N,N,N,[""],D,0,c,D)}}h=p=E=0,x=R=1,P=k="",v=a;break;case 58:v=1+ll(k),E=S;default:if(x<1){if(O==123)--x;else if(O==125&&x++==0&&zhe()==125)continue}switch(k+=l1(O),O*x){case 38:R=p>0?1:(k+="\f",-1);break;case 44:if(A>0)break;c[h++]=(ll(k)-1)*R,R=1;break;case 64:nf()===45&&(k+=zR(ml())),y=nf(),p=v=ll(P=k+=Yhe(C2())),O++;break;case 45:S===45&&ll(k)==2&&(x=0)}}return s}function o6(t,e,n,r,i,s,a,c,u,h,p,v){for(var y=i-1,E=i===0?s:[""],S=KV(E),x=0,C=0,R=0;x<r;++x)for(var A=0,O=_p(t,y+1,y=Uhe(C=a[x])),P=t;A<S;++A)(P=GV(C>0?E[A]+" "+O:an(O,/&\f/g,E[A])))&&(u[R++]=P);return Wx(t,e,n,i===0?$P:c,u,h,p,v)}function Xhe(t,e,n,r){return Wx(t,e,n,qV,l1(Hhe()),_p(t,2,-2),0,r)}function a6(t,e,n,r,i){return Wx(t,e,n,FP,_p(t,0,r),_p(t,r+1,-1),r,i)}function XV(t,e,n){switch(Bhe(t,e)){case 5103:return Ln+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Ln+t+t;case 4855:return Ln+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return a1+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Ln+t+a1+t+_r+t+t;case 5936:switch(Ri(t,e+11)){case 114:return Ln+t+_r+an(t,/[svh]\w+-[tblr]{2}/,"tb")+t;
69case 108:return Ln+t+_r+an(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ln+t+_r+an(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return Ln+t+_r+t+t;case 6165:return Ln+t+_r+"flex-"+t+t;case 5187:return Ln+t+an(t,/(\w+).+(:[^]+)/,Ln+"box-$1$2"+_r+"flex-$1$2")+t;case 5443:return Ln+t+_r+"flex-item-"+an(t,/flex-|-self/g,"")+(mu(t,/flex-|baseline/)?"":_r+"grid-row-"+an(t,/flex-|-self/g,""))+t;case 4675:return Ln+t+_r+"flex-line-pack"+an(t,/align-content|flex-|-self/g,"")+t;case 5548:return Ln+t+_r+an(t,"shrink","negative")+t;case 5292:return Ln+t+_r+an(t,"basis","preferred-size")+t;case 6060:return Ln+"box-"+an(t,"-grow","")+Ln+t+_r+an(t,"grow","positive")+t;case 4554:return Ln+an(t,/([^-])(transform)/g,"$1"+Ln+"$2")+t;case 6187:return an(an(an(t,/(zoom-|grab)/,Ln+"$1"),/(image-set)/,Ln+"$1"),t,"")+t;case 5495:case 3959:return an(t,/(image-set\([^]*)/,Ln+"$1$`$1");case 4968:return an(an(t,/(.+:)(flex-)?(.*)/,Ln+"box-pack:$3"+_r+"flex-pack:$3"),/space-between/,"justify")+Ln+t+t;case 4200:if(!mu(t,/flex-|baseline/))return _r+"grid-column-align"+_p(t,e)+t;break;case 2592:case 3360:return _r+an(t,"template-","")+t;case 4384:case 3616:return n&&n.some(function(r,i){return e=i,mu(r.props,/grid-\w+-end/)})?~HR(t+(n=n[e].value),"span")?t:_r+an(t,"-start","")+t+_r+"grid-row-span:"+(~HR(n,"span")?mu(n,/\d+/):+mu(n,/\d+/)-+mu(t,/\d+/))+";":_r+an(t,"-start","")+t;case 4896:case 4128:return n&&n.some(function(r){return mu(r.props,/grid-\w+-start/)})?t:_r+an(an(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return an(t,/(.+)-inline(.+)/,Ln+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ll(t)-1-e>6)switch(Ri(t,e+1)){case 109:if(Ri(t,e+4)!==45)break;case 102:return an(t,/(.+:)(.+)-([^]+)/,"$1"+Ln+"$2-$3$1"+a1+(Ri(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~HR(t,"stretch")?XV(an(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return an(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,s,a,c,u,h){return _r+i+":"+s+h+(a?_r+i+"-span:"+(c?u:+u-+s)+h:"")+t});case 4949:if(Ri(t,e+6)===121)return an(t,":",":"+Ln)+t;break;case 6444:switch(Ri(t,Ri(t,14)===45?18:11)){case 120:return an(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ln+(Ri(t,14)===45?"inline-":"")+"box$3$1"+Ln+"$2$3$1"+_r+"$2box$3")+t;case 100:return an(t,":",":"+_r)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return an(t,"scroll-","scroll-snap-")+t}return t}function V1(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function l6(t,e,n,r){switch(t.type){case Fhe:if(t.children.length)break;case Nhe:case $he:case FP:return t.return=t.return||t.value;case qV:return"";case WV:return t.return=t.value+"{"+V1(t.children,r)+"}";case $P:if(!ll(t.value=t.props.join(",")))return""}return ll(n=V1(t.children,r))?t.return=t.value+"{"+n+"}":""}function Qhe(t){var e=KV(t);return function(n,r,i,s){for(var a="",c=0;c<e;c++)a+=t[c](n,r,i,s)||"";return a}}function Zhe(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case FP:t.return=XV(t.value,t.length,n);return;case WV:return V1([Wd(t,{value:an(t.value,"@","@"+Ln)})],r);case $P:if(t.length)return jhe(n=t.props,function(i){switch(mu(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":cm(Wd(t,{props:[an(i,/:(read-\w+)/,":"+a1+"$1")]})),cm(Wd(t,{props:[i]})),SI(t,{props:i6(n,r)});break;case"::placeholder":cm(Wd(t,{props:[an(i,/:(plac\w+)/,":"+Ln+"input-$1")]})),cm(Wd(t,{props:[an(i,/:(plac\w+)/,":"+a1+"$1")]})),cm(Wd(t,{props:[an(i,/:(plac\w+)/,_r+"input-$1")]})),cm(Wd(t,{props:[i]})),SI(t,{props:i6(n,r)});break}return""})}}const c6="data-ant-cssinjs-cache-path",QV="_FILE_STYLE__";let op,ZV=!0;function Jhe(){if(!op&&(op={},na())){const t=document.createElement("div");t.className=c6,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let e=getComputedStyle(t).content||"";e=e.replace(/^"/,"").replace(/"$/,""),e.split(";").forEach(r=>{const[i,s]=r.split(":");op[i]=s});const n=document.querySelector(`style[${c6}]`);n&&(ZV=!1,n.parentNode?.removeChild(n)),document.body.removeChild(t)}}function epe(t){return Jhe(),!!op[t]}function tpe(t){const e=op[t];let n=null;if(e&&na())if(ZV)n=QV;else{const r=document.querySelector(`style[${ku}="${op[t]}"]`);r?n=r.innerHTML:delete op[t]}return[n,e]}const npe="_skip_check_",JV="_multi_value_";function VR(t,e){return(e?V1(s6(t),Qhe([Zhe,l6])):V1(s6(t),l6)).replace(/\{%%%\:[^;];}/g,";")}function rpe(t){return typeof t=="object"&&t&&(npe in t||JV in t)}function u6(t,e,n="high"){if(!e)return t;const r=zV({hashCls:e,hashPriority:n});return t.split(",").map(s=>{const a=s.trim().split(/\s+/);let c=a[0]||"";const u=c.match(/^\w+/)?.[0]||"";return c=`${u}${r}${c.slice(u.length)}`,[c,...a.slice(1)].join(" ")}).join(",")}const CI=(t,e={},{root:n,injectHash:r,parentSelectors:i}={root:!0,parentSelectors:[]})=>{const{hashId:s,layer:a,path:c,hashPriority:u,transformers:h=[],linters:p=[]}=e;let v="",y={};function E(C){const R=C.getName(s);if(!y[R]){const[A]=CI(C.style,e,{root:!1,parentSelectors:i});y[R]=`@keyframes ${C.getName(s)}${A}`}}
69function S(C,R=[]){return C.forEach(A=>{Array.isArray(A)?S(A,R):A&&R.push(A)}),R}return S(Array.isArray(t)?t:[t]).forEach(C=>{const R=typeof C=="string"&&!n?{}:C;if(typeof R=="string")v+=`${R} 70`;else if(R._keyframe)E(R);else{const A=h.reduce((O,P)=>P?.visit?.(O)||O,R);Object.keys(A).forEach(O=>{const P=A[O];if(typeof P=="object"&&P&&(O!=="animationName"||!P._keyframe)&&!rpe(P)){let L=!1,D=O.trim(),N=!1;(n||r)&&s?D.startsWith("@")?L=!0:D==="&"?D=u6("",s,u):D=u6(O,s,u):n&&!s&&(D==="&"||D==="")&&(D="",N=!0);const[k,U]=CI(P,e,{root:N,injectHash:L,parentSelectors:[...i,D]});y={...y,...U},v+=`${D}${k}`}else{let L=function(N,k){const U=N.replace(/[A-Z]/g,V=>`-${V.toLowerCase()}`);let F=k;!Dhe[N]&&typeof F=="number"&&F!==0&&(F=`${F}px`),N==="animationName"&&k?._keyframe&&(E(k),F=k.getName(s)),v+=`${U}:${F};`};const D=P?.value??P;typeof P=="object"&&P?.[JV]&&Array.isArray(D)?D.forEach(N=>{L(O,N)}):Che(D)&&L(O,D)}})}}),n?a&&(v&&(v=`@layer ${a.name} {${v}}`),a.dependencies&&(y[`@layer ${a.name}`]=a.dependencies.map(C=>`@layer ${C}, ${a.name};`).join(` 71`))):v=`{${v}}`,[v,y]};function eq(t,e){return H1(`${t.join("%")}${e}`)}const ipe="style";function xI(t,e){const{path:n,hashId:r,layer:i,nonce:s,clientOnly:a,order:c=0}=t,{mock:u,hashPriority:h,container:p,transformers:v,linters:y,cache:E,layer:S,autoPrefix:x}=_.useContext(yb),C=[r||""];S&&C.push("layer"),C.push(...n);let R=EI;NP(ipe,C,()=>{const A=C.join("|");if(epe(A)){const[k,U]=tpe(A);if(k)return[k,U,{},a,c]}const O=e(),[P,L]=CI(O,{hashId:r,hashPriority:h,layer:S?i:void 0,path:n.join("-"),transformers:v,linters:y}),D=VR(P,x||!1),N=eq(C,D);return[D,N,L,a,c]},(A,O)=>{const[,P]=A;O&&EI&&B1(P,{mark:ku,attachTo:p})},A=>{const[O,P,L,,D]=A;if(R&&O!==QV){let N={mark:ku,prepend:S?!1:"queue",attachTo:p,priority:D};N=DP(N,s);const k=[],U=[];Object.keys(L).forEach(V=>{V.startsWith("@layer")?k.push(V):U.push(V)}),k.forEach(V=>{lf(VR(L[V],x||!1),`_layer-${V}`,{...N,prepend:!0})});const F=lf(O,P,N);F[sp]=E.instanceId,U.forEach(V=>{lf(VR(L[V],x||!1),`_effect-${V}`,N)})}})}const spe="cssVar",ope=(t,e)=>{const{key:n,prefix:r,unitless:i,ignore:s,token:a,hashId:c,scope:u,nonce:h}=t,{cache:{instanceId:p},container:v,hashPriority:y}=_.useContext(yb),{_tokenKey:E}=a,S=Array.isArray(u)?u.join("@@"):u,x=[...t.path,n,S,E];return NP(spe,x,()=>{const R=e(),[A,O]=VV(R,n,{prefix:r,unitless:i,ignore:s,scope:u,hashPriority:y,hashCls:c}),P=eq(x,O);return[A,O,P,n]},([,,R])=>{EI&&B1(R,{mark:ku,attachTo:v})},([,R,A])=>{if(!R)return;let O={mark:ku,prepend:"queue",attachTo:v,priority:-999};O=DP(O,h);const P=lf(R,A,O);P[sp]=p,P.setAttribute(MP,n)})};class eo{name;style;constructor(e,n){this.name=e,this.style=n}getName(e=""){return e?`${e}-${this.name}`:this.name}_keyframe=!0}function um(t){return t.notSplit=!0,t}um(["borderTop","borderBottom"]),um(["borderTop"]),um(["borderBottom"]),um(["borderLeft","borderRight"]),um(["borderLeft"]),um(["borderRight"]);function ape(t){if(Array.isArray(t))return t}function lpe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,c=[],u=!0,h=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=s.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(p){h=!0,i=p}finally{try{if(!u&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(h)throw i}}return c}}function cpe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 72In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tq(t,e){return ape(t)||lpe(t,e)||jV(t,e)||cpe()}function Op(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function upe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,nV(r.key),r)}}function Ip(t,e,n){return e&&upe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function jm(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
72function q1(t,e){return q1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},q1(t,e)}function UP(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&q1(t,e)}function bp(t){return bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bp(t)}function Kx(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kx=function(){return!!t})()}function nq(t,e){if(e&&(di(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jm(t)}function rq(t){var e=Kx();return function(){var n,r=bp(t);if(e){var i=bp(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nq(this,n)}}var dpe=Ip(function t(){Op(this,t)}),iq="CALC_UNIT",fpe=new RegExp(iq,"g");function qR(t){return typeof t=="number"?"".concat(t).concat(iq):t}var hpe=(function(t){UP(n,t);var e=rq(n);function n(r,i){var s;Op(this,n),s=e.call(this),ji(jm(s),"result",""),ji(jm(s),"unitlessCssVar",void 0),ji(jm(s),"lowPriority",void 0);var a=di(r);return s.unitlessCssVar=i,r instanceof n?s.result="(".concat(r.result,")"):a==="number"?s.result=qR(r):a==="string"&&(s.result=r),s}return Ip(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(qR(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(qR(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var s=this,a=i||{},c=a.unit,u=!0;return typeof c=="boolean"?u=c:Array.from(this.unitlessCssVar).some(function(h){return s.result.includes(h)})&&(u=!1),this.result=this.result.replace(fpe,u?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(dpe),ppe=function(e,n){var r=hpe;return function(i){return new r(i,n)}},d6=function(e,n){return"".concat([n,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function f6(t,e,n,r){var i=Gr({},e[t]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(c){var u=tq(c,2),h=u[0],p=u[1];if(i!=null&&i[h]||i!=null&&i[p]){var v;(v=i[p])!==null&&v!==void 0||(i[p]=i?.[h])}})}var a=Gr(Gr({},n),i);return Object.keys(a).forEach(function(c){a[c]===e[c]&&delete a[c]}),a}var sq=typeof CSSINJS_STATISTIC<"u",TI=!0;function Ma(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!sq)return Object.assign.apply(Object,[{}].concat(e));TI=!1;var r={};return e.forEach(function(i){if(di(i)==="object"){var s=Object.keys(i);s.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return i[a]}})})}}),TI=!0,r}var h6={};function gpe(){}var mpe=function(e){var n,r=e,i=gpe;return sq&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(e,{get:function(a,c){if(TI){var u;(u=n)===null||u===void 0||u.add(c)}return a[c]}}),i=function(a,c){var u;h6[a]={global:Array.from(n),component:Gr(Gr({},(u=h6[a])===null||u===void 0?void 0:u.component),c)}}),{token:r,keys:n,flush:i}};function p6(t,e,n){if(typeof n=="function"){var r;return n(Ma(e,(r=e[t])!==null&&r!==void 0?r:{}))}return n??{}}function vpe(t){return{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(s){return At(s)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(s){return At(s)}).join(","),")")}}}var ype=1e3*60*10,_pe=(function(){function t(){Op(this,t),ji(this,"map",new Map),ji(this,"objectIDMap",new WeakMap),ji(this,"nextID",0),ji(this,"lastAccessBeat",new Map),ji(this,"accessBeat",0)}
72return Ip(t,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(s){return s&&di(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(di(s),"_").concat(s)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,s){r-i>ype&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),t})(),g6=new _pe;function bpe(t,e){return Te.useMemo(function(){var n=g6.get(e);if(n)return n;var r=t();return g6.set(e,r),r},e)}var Epe=function(){return{}};function Spe(t){var e=t.useCSP,n=e===void 0?Epe:e,r=t.useToken,i=t.usePrefix,s=t.getResetStyles,a=t.getCommonStyle,c=t.getCompUnitless;function u(y,E,S,x){var C=Array.isArray(y)?y[0]:y;function R(k){return"".concat(String(C)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var A=x?.unitless||{},O=typeof c=="function"?c(y):{},P=Gr(Gr({},O),{},ji({},R("zIndexPopup"),!0));Object.keys(A).forEach(function(k){P[R(k)]=A[k]});var L=Gr(Gr({},x),{},{unitless:P,prefixToken:R}),D=p(y,E,S,L),N=h(C,S,L);return function(k){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,F=D(k,U),V=x?.extraCssVarPrefixCls,G=typeof V=="function"?V({prefixCls:k,rootCls:U}):V,Z=N(G!=null&&G.length?[U].concat(Cs(G)):U);return[F,Z]}}function h(y,E,S){var x=S.unitless,C=S.prefixToken,R=S.ignore;return function(A){var O=r(),P=O.cssVar,L=O.realToken,D=n();return ope({path:[y],prefix:P.prefix,key:P.key,unitless:x,ignore:R,token:L,scope:A,nonce:function(){return D.nonce}},function(){var N=p6(y,L,E),k=f6(y,L,N,{deprecatedTokens:S?.deprecatedTokens});return N&&Object.keys(N).forEach(function(U){k[C(U)]=k[U],delete k[U]}),k}),P?.key}}function p(y,E,S){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=Array.isArray(y)?y:[y,y],R=tq(C,1),A=R[0],O=C.join("-"),P=t.layer||{name:"antd"};return function(L){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L,N=r(),k=N.theme,U=N.realToken,F=N.hashId,V=N.token,G=N.cssVar,Z=N.zeroRuntime,K=_.useMemo(function(){return Z},[]);if(K)return F;var J=i(),H=J.rootPrefixCls,Y=J.iconPrefixCls,ee=n(),fe="css",ue=bpe(function(){var be=new Set;return Object.keys(x.unitless||{}).forEach(function(Se){be.add(w2(Se,G.prefix)),be.add(w2(Se,d6(A,G.prefix)))}),ppe(fe,be)},[fe,A,G?.prefix]),z=vpe(),Q=z.max,ae=z.min,de={theme:k,token:V,hashId:F,nonce:function(){return ee.nonce},clientOnly:x.clientOnly,layer:P,order:x.order||-999};return typeof s=="function"&&xI(Gr(Gr({},de),{},{clientOnly:!1,path:["Shared",H]}),function(){return s(V,{prefix:{rootPrefixCls:H,iconPrefixCls:Y},csp:ee})}),xI(Gr(Gr({},de),{},{path:[O,L,Y]}),function(){if(x.injectStyle===!1)return[];var be=mpe(V),Se=be.token,je=be.flush,Ne=p6(A,U,S),ze=".".concat(L),tt=f6(A,U,Ne,{deprecatedTokens:x.deprecatedTokens});Ne&&di(Ne)==="object"&&Object.keys(Ne).forEach(function(Pt){Ne[Pt]="var(".concat(w2(Pt,d6(A,G.prefix)),")")});var Je=Ma(Se,{componentCls:ze,prefixCls:L,iconCls:".".concat(Y),antCls:".".concat(H),calc:ue,max:Q,min:ae},Ne),We=E(Je,{hashId:F,prefixCls:L,rootPrefixCls:H,iconPrefixCls:Y});je(A,tt);var Ve=typeof a=="function"?a(Je,L,D,x.resetFont):null;return[x.resetStyle===!1?null:Ve,We]}),F}}function v(y,E,S){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=p(y,E,S,Gr({resetStyle:!1,order:-998},x)),R=function(O){var P=O.prefixCls,L=O.rootCls,D=L===void 0?P:L;return C(P,D),null};return R}return{genStyleHooks:u,genSubStyleComponent:v,genComponentStyleHook:p}}const _b=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function T2(t){return(t+8)/t}function wpe(t){const e=Array.from({length:10}).map((n,r)=>{const i=r-1,s=t*Math.E**(i/5),a=r>1?Math.floor(s):Math.ceil(s);return Math.floor(a/2)*2});return e[1]=t,e.map(n=>({size:n,lineHeight:T2(n)}))}const Cpe="6.4.3",BP={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},W1={...BP,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 73'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 74'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cub
74ic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},xpe={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},Bi=Math.round;function WR(t,e){const n=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=e(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const m6=(t,e,n)=>n===0?t:t/100;function m_(t,e){const n=e||255;return t>n?n:t<0?0:t}class fi{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(e){function n(r){return r[0]in e&&r[1]in e&&r[2]in e}if(e)if(typeof e=="string"){let i=function(s){return r.startsWith(s)};const r=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(i("rgb"))this.fromRgbString(r);else if(i("hsl"))this.fromHslString(r);else if(i("hsv")||i("hsb"))this.fromHsvString(r);else{const s=xpe[r.toLowerCase()];s&&this.fromHexString(parseInt(s,36).toString(16).padStart(6,"0"))}}else if(e instanceof fi)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._hsl_s=e._hsl_s,this._hsv_s=e._hsv_s,this._l=e._l,this._v=e._v;else if(n("rgb"))this.r=m_(e.r),this.g=m_(e.g),this.b=m_(e.b),this.a=typeof e.a=="number"?m_(e.a,1):1;else if(n("hsl"))this.fromHsl(e);else if(n("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const n=this.toHsv();return n.h=e,this._c(n)}getLuminance(){function e(s){const a=s/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=e(this.r),r=e(this.g),i=e(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=Bi(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(typeof this._hsv_s>"u"){const e=this.getMax()-this.getMin();e===0?this._hsv_s=0:this._hsv_s=e/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const e=this.getMax()-this.getMin();if(e===0)this._hsl_s=0;else{const n=this.getLightness();this._hsl_s=e/255/(1-Math.abs(2*n-1))}}return this._hsl_s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-e/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(e=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+e/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(e,n=50){const r=this._c(e),i=n/100,s=c=>(r[c]-this[c])*i+this[c],a={r:Bi(s("r")),g:Bi(s("g")),b:Bi(s("b")),a:Bi(s("a")*100)/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}
74onBackground(e){const n=this._c(e),r=this.a+n.a*(1-this.a),i=s=>Bi((this[s]*this.a+n[s]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const n=(this.r||0).toString(16);e+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);e+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(e+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const s=Bi(this.a*255).toString(16);e+=s.length===2?s:"0"+s}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),n=Bi(this.getHSLSaturation()*100),r=Bi(this.getLightness()*100);return this.a!==1?`hsla(${e},${n}%,${r}%,${this.a})`:`hsl(${e},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,n,r){const i=this.clone();return i[e]=m_(n,r),i}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const n=e.replace("#","");function r(i,s){return parseInt(n[i]+n[s||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:e,s:n,l:r,a:i}){const s=(e%360+360)%360;if(this._h=s,this._hsl_s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const E=Bi(r*255);this.r=E,this.g=E,this.b=E;return}let a=0,c=0,u=0;const h=s/60,p=(1-Math.abs(2*r-1))*n,v=p*(1-Math.abs(h%2-1));h>=0&&h<1?(a=p,c=v):h>=1&&h<2?(a=v,c=p):h>=2&&h<3?(c=p,u=v):h>=3&&h<4?(c=v,u=p):h>=4&&h<5?(a=v,u=p):h>=5&&h<6&&(a=p,u=v);const y=r-p/2;this.r=Bi((a+y)*255),this.g=Bi((c+y)*255),this.b=Bi((u+y)*255)}fromHsv({h:e,s:n,v:r,a:i}){const s=(e%360+360)%360;this._h=s,this._hsv_s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=Bi(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const c=s/60,u=Math.floor(c),h=c-u,p=Bi(r*(1-n)*255),v=Bi(r*(1-n*h)*255),y=Bi(r*(1-n*(1-h))*255);switch(u){case 0:this.g=y,this.b=p;break;case 1:this.r=v,this.b=p;break;case 2:this.r=p,this.b=y;break;case 3:this.r=p,this.g=v;break;case 4:this.r=y,this.g=p;break;default:this.g=p,this.b=v;break}}fromHsvString(e){const n=WR(e,m6);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(e){const n=WR(e,m6);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(e){const n=WR(e,(r,i)=>i.includes("%")?Bi(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const _w=2,v6=.16,Tpe=.05,Rpe=.05,Ape=.15,oq=5,aq=4,Ope=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function y6(t,e,n){let r;return Math.round(t.h)>=60&&Math.round(t.h)<=240?r=n?Math.round(t.h)-_w*e:Math.round(t.h)+_w*e:r=n?Math.round(t.h)+_w*e:Math.round(t.h)-_w*e,r<0?r+=360:r>=360&&(r-=360),r}function _6(t,e,n){if(t.h===0&&t.s===0)return t.s;let r;return n?r=t.s-v6*e:e===aq?r=t.s+v6:r=t.s+Tpe*e,r>1&&(r=1),n&&e===oq&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function b6(t,e,n){let r;return n?r=t.v+Rpe*e:r=t.v-Ape*e,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function bb(t,e={}){const n=[],r=new fi(t),i=r.toHsv();for(let s=oq;s>0;s-=1){const a=new fi({h:y6(i,s,!0),s:_6(i,s,!0),v:b6(i,s,!0)});n.push(a)}n.push(r);for(let s=1;s<=aq;s+=1){const a=new fi({h:y6(i,s),s:_6(i,s),v:b6(i,s)});n.push(a)}return e.theme==="dark"?Ope.map(({index:s,amount:a})=>new fi(e.backgroundColor||"#141414").mix(n[s],a).toHexString()):n.map(s=>s.toHexString())}const GR={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},RI=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];RI.primary=RI[5];const AI=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];AI.primary=AI[5];const OI=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];OI.primary=OI[5];const II=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];II.primary=II[5];
74const PI=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];PI.primary=PI[5];const LI=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];LI.primary=LI[5];const kI=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];kI.primary=kI[5];const MI=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];MI.primary=MI[5];const MC=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];MC.primary=MC[5];const DI=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];DI.primary=DI[5];const NI=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];NI.primary=NI[5];const $I=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];$I.primary=$I[5];const FI=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];FI.primary=FI[5];const KR={red:RI,volcano:AI,orange:OI,gold:II,yellow:PI,lime:LI,green:kI,cyan:MI,blue:MC,geekblue:DI,purple:NI,magenta:$I,grey:FI};function lq(t,{generateColorPalettes:e,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:s,colorInfo:a,colorPrimary:c,colorBgBase:u,colorTextBase:h}=t,p=e(c),v=e(r),y=e(i),E=e(s),S=e(a),x=n(u,h),C=t.colorLink||t.colorInfo,R=e(C),A=new fi(E[1]).mix(new fi(E[3]),50).toHexString(),O={};return _b.forEach(P=>{const L=t[P];if(L){const D=e(L);O[`${P}Hover`]=D[5],O[`${P}Active`]=D[7]}}),{...x,colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:E[1],colorErrorBgHover:E[2],colorErrorBgFilledHover:A,colorErrorBgActive:E[3],colorErrorBorder:E[3],colorErrorBorderHover:E[4],colorErrorHover:E[5],colorError:E[6],colorErrorActive:E[7],colorErrorTextHover:E[8],colorErrorText:E[9],colorErrorTextActive:E[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:S[1],colorInfoBgHover:S[2],colorInfoBorder:S[3],colorInfoBorderHover:S[4],colorInfoHover:S[4],colorInfo:S[6],colorInfoActive:S[7],colorInfoTextHover:S[8],colorInfoText:S[9],colorInfoTextActive:S[10],colorLinkHover:R[4],colorLink:R[6],colorLinkActive:R[7],...O,colorBgMask:new fi("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const Ipe=t=>{let e=t,n=t,r=t,i=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?n=4:t<8&&t>=7?n=5:t<14&&t>=8?n=6:t<16&&t>=14?n=7:t>=16&&(n=8),t<6&&t>=2?r=1:t>=6&&(r=2),t>4&&t<8?i=4:t>=8&&(i=6),{borderRadius:t,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:e,borderRadiusOuter:i}};function Ppe(t){const{motionUnit:e,motionBase:n,borderRadius:r,lineWidth:i}=t;return{motionDurationFast:`${(n+e).toFixed(1)}s`,motionDurationMid:`${(n+e*2).toFixed(1)}s`,motionDurationSlow:`${(n+e*3).toFixed(1)}s`,lineWidthBold:i+1,...Ipe(r)}}const Lpe=t=>{const{controlHeight:e}=t;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}},kpe=t=>{const e=wpe(t),n=e.map(p=>p.size),r=e.map(p=>p.lineHeight),i=n[1],s=n[0],a=n[2],c=r[1],u=r[0],h=r[2];return{fontSizeSM:s,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:h,lineHeightSM:u,fontHeight:Math.round(c*i),fontHeightLG:Math.round(h*a),fontHeightSM:Math.round(u*s),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Mpe(t){const{sizeUnit:e,sizeStep:n}=t;return{sizeXXL:e*(n+8),sizeXL:e*(n+4),sizeLG:e*(n+2),sizeMD:e*(n+1),sizeMS:e*n,size:e*n,sizeSM:e*(n-1),sizeXS:e*(n-2),sizeXXS:e*(n-3)}}const ba=(t,e)=>new fi(t).setA(e).toRgbString(),dm=(t,e)=>new fi(t).darken(e).toHexString(),Dpe=t=>{const e=bb(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},Npe=(t,e,n)=>{const r=t||"#fff",i=e||"#000";return{colorBgBase:r,colorTextBase:i,colorShadow:n||"#000",colorText:ba(i,.88),colorTextSecondary:ba(i,.65),colorTextTertiary:ba(i,.45),colorTextQuaternary:ba(i,.25),colorFill:ba(i,.15),colorFillSecondary:ba(i,.06),colorFillTertiary:ba(i,.04),colorFillQuaternary:ba(i,.02),colorBgSolid:ba(i,1),colorBgSolidHover:ba(i,.75),colorBgSolidActive:ba(i,.95),colorBgLayout:dm(r,4),colorBgContainer:dm(r,0),colorBgElevated:dm(r,0),colorBgSpotlight:ba(i,.85),colorBgBlur:"transparent",colorBorder:dm(r,15),colorBorderDisabled:dm(r,15),colorBorderSecondary:dm(r,6)}};function jP(t){GR.pink=GR.magenta,KR.pink=KR.magenta;const e=Object.keys(BP).map(n=>{const r=t[n]===GR[n]?KR[n]:bb(t[n]);return Array.from({length:10},()=>1).reduce((i,s,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],i),{})}).reduce((n,r)=>(n={...n,...r},n),{});return{...t,...e,...lq(t,{generateColorPalettes:Dpe,generateNeutralColorPalettes:Npe}),...kpe(t.fontSize),...Mpe(t),...Lpe(t),...Ppe(t)}}const cq=bI(jP),DC={token:W1,override:{override:W1},hashed:!0},uq=Te.createContext(DC);function YR(t){return t>=0&&t<=255}function z_(t,e){const{r:n,g:r,b:i,a:s}=new fi(t).toRgb();if(s<1)return t;const{r:a,g:c,b:u}=new fi(e).toRgb();for(let h=.01;h<=1;h+=.01){const p=Math.round((n-a*(1-h))/h),v=Math.round((r-c*(1-h))/h),y=Math.round((i-u*(1-
74h))/h);if(YR(p)&&YR(v)&&YR(y))return new fi({r:p,g:v,b:y,a:Math.round(h*100)/100}).toRgbString()}return new fi({r:n,g:r,b:i,a:1}).toRgbString()}function $pe(t){const{override:e,...n}=t,r={...e};Object.keys(W1).forEach(C=>{delete r[C]});const i={...n,...r},s=new fi(i.colorShadow),a=s.a,c=C=>s.clone().setA(a*C).toRgbString(),u=480,h=576,p=768,v=992,y=1200,E=1600,S=1920;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:z_(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:z_(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:z_(i.colorWarningBg,i.colorBgContainer),colorErrorAffix:i.colorError,colorWarningAffix:i.colorWarning,fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:z_(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` 75 0 6px 16px 0 ${c(.08)}, 76 0 3px 6px -4px ${c(.12)}, 77 0 9px 28px 8px ${c(.05)} 78 `,boxShadowSecondary:` 79 0 6px 16px 0 ${c(.08)}, 80 0 3px 6px -4px ${c(.12)}, 81 0 9px 28px 8px ${c(.05)} 82 `,boxShadowTertiary:` 83 0 1px 2px 0 ${c(.03)}, 84 0 1px 6px -1px ${c(.02)}, 85 0 2px 4px 0 ${c(.02)} 86 `,screenXS:u,screenXSMin:u,screenXSMax:h-1,screenSM:h,screenSMMin:h,screenSMMax:p-1,screenMD:p,screenMDMin:p,screenMDMax:v-1,screenLG:v,screenLGMin:v,screenLGMax:y-1,screenXL:y,screenXLMin:y,screenXLMax:E-1,screenXXL:E,screenXXLMin:E,screenXXLMax:S-1,screenXXXL:S,screenXXXLMin:S,boxShadowPopoverArrow:`2px 2px 5px ${c(.05)}`,boxShadowCard:` 87 0 1px 2px -2px ${c(.16)}, 88 0 3px 6px 0 ${c(.12)}, 89 0 5px 12px 4px ${c(.09)} 90 `,boxShadowDrawerRight:` 91 -6px 0 16px 0 ${c(.08)}, 92 -3px 0 6px -4px ${c(.12)}, 93 -9px 0 28px 8px ${c(.05)} 94 `,boxShadowDrawerLeft:` 95 6px 0 16px 0 ${c(.08)}, 96 3px 0 6px -4px ${c(.12)}, 97 9px 0 28px 8px ${c(.05)} 98 `,boxShadowDrawerUp:` 99 0 6px 16px 0 ${c(.08)}, 100 0 3px 6px -4px ${c(.12)}, 101 0 9px 28px 8px ${c(.05)} 102 `,boxShadowDrawerDown:` 103 0 -6px 16px 0 ${c(.08)}, 104 0 -3px 6px -4px ${c(.12)}, 105 0 -9px 28px 8px ${c(.05)} 106 `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${c(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${c(.08)}
106`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${c(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${c(.08)}`,...r}}const dq={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Fpe={motionBase:!0,motionUnit:!0},Upe={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},fq=(t,e,n)=>{const r=n.getDerivativeToken(t),{override:i,...s}=e;let a={...r,override:i};return a=$pe(a),s&&Object.entries(s).forEach(([c,u])=>{const{theme:h,...p}=u;let v=p;h&&(v=fq({...a,...p},{override:p},h)),a[c]=v}),a};function Pp(){const{token:t,hashed:e,theme:n,override:r,cssVar:i,zeroRuntime:s}=Te.useContext(uq),{csp:a,getPrefixCls:c}=Te.useContext(wr),u={prefix:i?.prefix??c(),key:i?.key??"css-var-root"},h=`${Cpe}-${e||""}`,p=n||cq,[v,y,E]=Mhe(p,[W1,t],{salt:h,override:r,getComputedToken:fq,cssVar:{...u,unitless:dq,ignore:Fpe,preserve:Upe},nonce:a?.nonce});return[p,E,e?y:"",v,u,!!s]}const nPe={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},HP=(t,e=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:e?"inherit":t.fontFamily}),hq=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Bpe=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),pq=(t,e)=>({outline:`${At(t.lineWidthFocus)} solid ${t.colorPrimaryBorder}`,outlineOffset:e??1,transition:["outline-offset","outline"].map(n=>`${n} 0s`).join(", ")}),wv=(t,e)=>({"&:focus-visible":pq(t,e)}),jpe=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active, &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},...wv(t),"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),Hpe=(t,e,n,r)=>{const i=`[class^="${e}"], [class*=" ${e}"]`,s=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let c={};return r!==!1&&(c={fontFamily:t.fontFamily,fontSize:t.fontSize}),{[s]:{...c,...a,[i]:a}}},gq=t=>({[`.${t}`]:{...hq(),[`.${t} .${t}-icon`]:{display:"block"}}}),rPe=t=>({color:t.colorLink,textDecoration:t.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${t.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...wv(t),"&:hover":{color:t.colorLinkHover,textDecoration:t.linkHoverDecoration},"&:focus":{color:t.colorLinkHover,textDecoration:t.linkFocusDecoration},"&:active":{color:t.colorLinkActive,textDecoration:t.linkHoverDecoration}}),{genStyleHooks:Sl,genComponentStyleHook:zpe,genSubStyleComponent:Yx}=Spe({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:e}=_.useContext(wr);return{rootPrefixCls:t(),iconPrefixCls:e}},useToken:()=>{const[t,e,n,r,i,s]=Pp();return{theme:t,realToken:e,hashId:n,token:r,cssVar:i,zeroRuntime:s}},useCSP:()=>{const{csp:t}=_.useContext(wr);return t??{}},getResetStyles:(t,e)=>{const n=jpe(t);return[n,{"&":n},gq(e?.prefix.iconPrefixCls??Vx)]},getCommonStyle:Hpe,getCompUnitless:()=>dq}),Ep=(t,e)=>{const n=`--${t.replace(/\./g,"")}-${e}-`;return[s=>`${n}${s}`,(s,a)=>a?`var(${n}${s}, ${a})`:`var(${n}${s})`]},Vpe=(t,e)=>(Pp(),xI({hashId:"",path:["ant-design-icons",t],nonce:()=>e?.nonce,layer:{name:"antd"}},()=>gq(t)));var qpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const zP=_.createContext({});function Wpe(t){return t.replace(/-(.)/g,(e,n)=>n.toUpperCase())}function Gpe(t,e){ea(t,`[@ant-design/icons] ${e}`)}function E6(t){return typeof t=="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(typeof t.icon=="object"||typeof t.icon=="function")}function S6(t={}){return Object.keys(t).reduce((e,n)=>{const r=t[n];return n==="class"?(e.className=r,delete e.class):(delete e[n],e[Wpe(n)]=r),e},{})}function UI(t,e,n){return n?Te.createElement(t.tag,{key:e,...S6(t.attrs),...n},(t.children||[]).map((r,i)=>UI(r,`${e}-${t.tag}-${i}`))):Te.createElement(t.tag,{key:e,...S6(t.attrs)},(t.children||[]).map((r,i)=>UI(r,`${e}-${t.tag}-${i}`)))}function mq(t){return bb(t)[0]}function vq(t){return t?Array.isArray(t)?t:[t]:[]}const Kpe=` 107.anticon { 108 display: inline-flex; 109 align-items: center; 110 color: inherit; 111 font-style: normal; 112 line-height: 0; 113 text-align: center; 114 text-transform: none; 115 vertical-align: -0.125em; 116 text-rendering: optimizeLegibility; 117 -webkit-font-smoothing: antialiased; 118 -moz-osx-font-smoothing: grayscale; 119} 120 121.anticon > * { 122 line-height: 1; 123} 124 125.anticon svg { 126 display: inline-block; 127 vertical-align: inherit; 128} 129 130.anticon::before { 131 display: none; 132} 133 134.anticon .anticon-icon { 135 display: block; 136} 137 138.anticon[tabindex] { 139 cursor: pointer; 140} 141 142.anticon-spin { 143 -webkit-animation: loadingCircle 1s infinite linear; 144 animation: loadingCircle 1s infinite linear; 145} 146 147@-webkit-keyframes loadingCircle { 148 100% { 149 -webkit-transform: rotate(360deg); 150 transform: rotate(360deg); 151 } 152} 153 154@keyframes loadingCircle { 155 100% { 156 -webkit-transform: rotate(360deg); 157 transform: rotate(360deg); 158 } 159} 160`,Ype=t=>{const{csp:e,prefixCls:n,layer:r}=_.useContext(zP);let i=Kpe;n&&(i=i.replace(/anticon/g,n)),r&&(i=`@layer ${r} { 161${i} 162}`),_.useEffect(()=>{const s=t.current,a=Ufe(s);lf(i,"@ant-design-icons",{prepend:!r,csp:e,attachTo:a})},[])},c1={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Xpe({primaryColor:t,secondaryColor:e}){c1.primaryColor=t,c1.secondaryColor=e||mq(t),c1.calculated=!!e}function Qpe(){return{...c1}}const Cv=t=>{const{icon:e,className:n,onClick:r,style:i,primaryColor:s,secondaryColor:a,...c}=t,u=_.useRef(null);let h=c1;if(s&&(h={primaryColor:s,secondaryColor:a||mq(s)}),Ype(u),Gpe(E6(e),`icon should be icon definiton, but got ${e}
162`),!E6(e))return null;let p=e;return p&&typeof p.icon=="function"&&(p={...p,icon:p.icon(h.primaryColor,h.secondaryColor)}),UI(p.icon,`svg-${p.name}`,{className:n,onClick:r,style:i,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...c,ref:u})};Cv.displayName="IconReact";Cv.getTwoToneColors=Qpe;Cv.setTwoToneColors=Xpe;function yq(t){const[e,n]=vq(t);return Cv.setTwoToneColors({primaryColor:e,secondaryColor:n})}function Zpe(){const t=Cv.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}function BI(){return BI=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},BI.apply(this,arguments)}yq(MC.primary);const wl=_.forwardRef((t,e)=>{const{className:n,icon:r,spin:i,rotate:s,tabIndex:a,onClick:c,twoToneColor:u,...h}=t,{prefixCls:p="anticon",rootClassName:v}=_.useContext(zP),y=Be(v,p,{[`${p}-${r.name}`]:!!r.name,[`${p}-spin`]:!!i||r.name==="loading"},n);let E=a;E===void 0&&c&&(E=-1);const S=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0,[x,C]=vq(u);return _.createElement("span",BI({role:"img","aria-label":r.name},h,{ref:e,tabIndex:E,onClick:c,className:y}),_.createElement(Cv,{icon:r,primaryColor:x,secondaryColor:C,style:S}))});wl.getTwoToneColor=Zpe;wl.setTwoToneColor=yq;function jI(){return jI=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},jI.apply(this,arguments)}const Jpe=(t,e)=>_.createElement(wl,jI({},t,{ref:e,icon:qpe})),Eb=_.forwardRef(Jpe);var ege={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function HI(){return HI=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},HI.apply(this,arguments)}const tge=(t,e)=>_.createElement(wl,HI({},t,{ref:e,icon:ege})),Sb=_.forwardRef(tge);var nge={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"}
162,children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function zI(){return zI=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},zI.apply(this,arguments)}const rge=(t,e)=>_.createElement(wl,zI({},t,{ref:e,icon:nge})),Lp=_.forwardRef(rge);var ige={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};function VI(){return VI=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},VI.apply(this,arguments)}const sge=(t,e)=>_.createElement(wl,VI({},t,{ref:e,icon:ige})),wb=_.forwardRef(sge);var oge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};function qI(){return qI=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qI.apply(this,arguments)}const age=(t,e)=>_.createElement(wl,qI({},t,{ref:e,icon:oge})),Xx=_.forwardRef(age),_q=_.createContext({}),lge=t=>{const{children:e,...n}=t,r=_.useMemo(()=>({motion:n.motion}),[n.motion]);return _.createElement(_q.Provider,{value:r},e)},fc="none",bw="appear",Ew="enter",Sw="leave",w6="none",cl="prepare",jh="start",Hh="active",VP="end",bq="prepared";function C6(t,e){const n={};return n[t.toLowerCase()]=e.toLowerCase(),n[`Webkit${t}`]=`webkit${e}`,n[`Moz${t}`]=`moz${e}`,n[`ms${t}`]=`MS${e}`,n[`O${t}`]=`o${e.toLowerCase()}`,n}function cge(t,e){const n={animationend:C6("Animation","AnimationEnd"),transitionend:C6("Transition","TransitionEnd")};return t&&("AnimationEvent"in e||delete n.animationend.animation,"TransitionEvent"in e||delete n.transitionend.transition),n}const uge=cge(na(),typeof window<"u"?window:{});let Eq={};na()&&({style:Eq}=document.createElement("div"));const ww={};function Sq(t){if(ww[t])return ww[t];const e=uge[t];if(e){const n=Object.keys(e),r=n.length;for(let i=0;i<r;i+=1){const s=n[i];if(Object.prototype.hasOwnProperty.call(e,s)&&s in Eq)return ww[t]=e[s],ww[t]}}return""}const wq=Sq("animationend"),Cq=Sq("transitionend"),dge=!!(wq&&Cq),x6=wq||"animationend",T6=Cq||"transitionend";function R6(t,e){if(!t)return null;if(typeof t=="object"){const n=e.replace(/-\w/g,r=>r[1].toUpperCase());return t[n]}return`${t}-${e}`}const fge=(t=>{const e=_.useRef();function n(i){i&&(i.removeEventListener(T6,t),i.removeEventListener(x6,t))}function r(i){e.current&&e.current!==i&&n(e.current),i&&i!==e.current&&(i.addEventListener(T6,t),i.addEventListener(x6,t),e.current=i)}return _.useEffect(()=>()=>{n(e.current),e.current=null},[]),[r,n]}),xq=na()?_.useLayoutEffect:_.useEffect,hge=(()=>{const t=_.useRef(null);function e(){gl.cancel(t.current)}function n(r,i=2){e();const s=gl(()=>{i<=1?r({isCanceled:()=>s!==t.current}):n(r,i-1)});t.current=s}return _.useEffect(()=>()=>{e()},[]),[n,e]}),pge=[cl,jh,Hh,VP],gge=[cl,bq],Tq=!1,mge=!0;function Rq(t){return t===Hh||t===VP}const vge=((t,e,n)=>{const[r,i]=SV(w6),[s,a]=hge();function c(){i(cl,!0)}const u=e?gge:pge;return xq(()=>{if(r!==w6&&r!==VP){const h=u.indexOf(r),p=u[h+1],v=n(r);v===Tq?i(p,!0):p&&s(y=>{function E(){y.isCanceled()||i(p,!0)}v===!0?E():Promise.resolve(v).then(E)})}},[t,r]),_.useEffect(()=>()=>{a()},[]),[c,r]});function yge(t,e,n,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:s=!0,motionDeadline:a,motionLeaveImmediately:c,onAppearPrepare:u,onEnterPrepare:h,onLeavePrepare:p,onAppearStart:v,onEnterStart:y,onLeaveStart:E,onAppearActive:S,onEnterActive:x,onLeaveActive:C,onAppearEnd:R,onEnterEnd:A,onLeaveEnd:O,onVisibleChanged:P}
162){const[L,D]=_.useState(),[N,k]=Efe(fc),[U,F]=_.useState([null,null]),V=N(),G=_.useRef(!1),Z=_.useRef(null);function K(){return n()}const J=_.useRef(!1);function H(){k(fc),F([null,null])}const Y=ii(Ne=>{const ze=N();if(ze===fc)return;const tt=K();if(Ne&&!Ne.deadline&&Ne.target!==tt)return;const Je=J.current;let We;ze===bw&&Je?We=R?.(tt,Ne):ze===Ew&&Je?We=A?.(tt,Ne):ze===Sw&&Je&&(We=O?.(tt,Ne)),Je&&We!==!1&&H()}),[ee]=fge(Y),fe=Ne=>{switch(Ne){case bw:return{[cl]:u,[jh]:v,[Hh]:S};case Ew:return{[cl]:h,[jh]:y,[Hh]:x};case Sw:return{[cl]:p,[jh]:E,[Hh]:C};default:return{}}},ue=_.useMemo(()=>fe(V),[V]),[z,Q]=vge(V,!t,Ne=>{if(Ne===cl){const ze=ue[cl];return ze?ze(K()):Tq}return Ne in ue&&F([ue[Ne]?.(K(),null)||null,Ne]),Ne===Hh&&V!==fc&&(ee(K()),a>0&&(clearTimeout(Z.current),Z.current=setTimeout(()=>{Y({deadline:!0})},a))),Ne===bq&&H(),mge}),ae=Rq(Q);J.current=ae;const de=_.useRef(null);xq(()=>{if(G.current&&de.current===e)return;D(e);const Ne=G.current;G.current=!0;let ze;!Ne&&e&&i&&(ze=bw),Ne&&e&&r&&(ze=Ew),(Ne&&!e&&s||!Ne&&c&&!e&&s)&&(ze=Sw);const tt=fe(ze);ze&&(t||tt[cl])?(k(ze),z()):k(fc),de.current=e},[e]),_.useEffect(()=>{(V===bw&&!i||V===Ew&&!r||V===Sw&&!s)&&k(fc)},[i,r,s]),_.useEffect(()=>()=>{G.current=!1,clearTimeout(Z.current)},[]);const be=_.useRef(!1);_.useEffect(()=>{L&&(be.current=!0),L!==void 0&&V===fc&&((be.current||L)&&P?.(L),be.current=!0)},[L,V]);let Se=U[0];ue[cl]&&Q===jh&&(Se={transition:"none",...Se});const je=U[1];return[N,Q,Se,L??e,!G.current&&V===fc&&t&&i?"NONE":Q===jh||Q===Hh?je===Q:!0]}function Aq(t){return t?.length<2}function _ge(t){let e=t;typeof t=="object"&&({transitionSupport:e}=t);function n(i,s){return!!(i.motionName&&e&&s!==!1)}const r=_.forwardRef((i,s)=>{const{visible:a=!0,removeOnLeave:c=!0,forceRender:u,children:h,motionName:p,leavedClassName:v,eventProps:y}=i,{motion:E}=_.useContext(_q),S=n(i,E),x=_.useRef();function C(){return RV(x.current)}const[R,A,O,P,L]=yge(S,a,C,i),D=R(),N=_.useRef(P);P&&(N.current=!0);const k=_.useMemo(()=>{const V={};return Object.defineProperties(V,{nativeElement:{enumerable:!0,get:C},inMotion:{enumerable:!0,get:()=>()=>R()!==fc},enableMotion:{enumerable:!0,get:()=>()=>S}}),V},[]);_.useImperativeHandle(s,()=>k,[]);const U=_.useRef(0);L&&(U.current+=1);const F=_.useMemo(()=>{if(L==="NONE")return null;let V;const G={...y,visible:a};if(!h)V=null;else if(D===fc)P?V=h({...G},x):!c&&N.current&&v?V=h({...G,className:v},x):u||!c&&!v?V=h({...G,style:{display:"none"}},x):V=null;else{let Z;A===cl?Z="prepare":Rq(A)?Z="active":A===jh&&(Z="start");const K=R6(p,`${D}-${Z}`);V=h({...G,className:Be(R6(p,D),{[K]:K&&Z,[p]:typeof p=="string"}),style:O},x)}return V},[U.current]);if(Aq(h)&&Ofe(F)){const V=Hx(F);if(V!==x)return _.cloneElement(F,{ref:Ap(V,x)})}return F});return r.displayName="CSSMotion",r}const Tc=_ge(dge),WI="add",GI="keep",KI="remove",XR="removed";function bge(t){let e;return t&&typeof t=="object"&&"key"in t?e=t:e={key:t},{...e,key:String(e.key)}}function YI(t=[]){return t.map(bge)}function Ege(t=[],e=[]){let n=[],r=0;const i=e.length,s=YI(t),a=YI(e);s.forEach(h=>{let p=!1;for(let v=r;v<i;v+=1){const y=a[v];if(y.key===h.key){r<v&&(n=n.concat(a.slice(r,v).map(E=>({...E,status:WI}))),r=v),n.push({...y,status:GI}),r+=1,p=!0;break}}p||n.push({...h,status:KI})}),r<i&&(n=n.concat(a.slice(r).map(h=>({...h,status:WI}))));const c={};return n.forEach(({key:h})=>{c[h]=(c[h]||0)+1}),Object.keys(c).filter(h=>c[h]>
1621).forEach(h=>{n=n.filter(({key:p,status:v})=>p!==h||v!==KI),n.forEach(p=>{p.key===h&&(p.status=GI)})}),n}function XI(){return XI=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},XI.apply(this,arguments)}const Sge=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function wge(t,e=Tc){class n extends _.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:i},{keyEntities:s}){const a=YI(i);return{keyEntities:Ege(s,a).filter(u=>{const h=s.find(({key:p})=>u.key===p);return!(h&&h.status===XR&&u.status===KI)})}}removeKey=i=>{this.setState(s=>({keyEntities:s.keyEntities.map(c=>c.key!==i?c:{...c,status:XR})}),()=>{const{keyEntities:s}=this.state;s.filter(({status:c})=>c!==XR).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){const{keyEntities:i}=this.state,{component:s,children:a,onVisibleChanged:c,onAllRemoved:u,...h}=this.props,p=s||_.Fragment,v={};return Sge.forEach(y=>{v[y]=h[y],delete h[y]}),delete h.keys,_.createElement(p,h,i.map(({status:y,...E},S)=>{const x=y===WI||y===GI;return _.createElement(e,XI({},v,{key:E.key,visible:x,eventProps:E,onVisibleChanged:C=>{c?.(C,{key:E.key}),C||this.removeKey(E.key)}}),Aq(a)?C=>a({...C,index:S}):(C,R)=>a({...C,index:S},R))}))}}return n}const Cge=wge(),hi=t=>t!=null,kp=t=>typeof t=="number"&&!Number.isNaN(t),ap=t=>typeof t=="string",Oi=t=>t!==null&&typeof t=="object",is=t=>typeof t=="function",QR=t=>hi(t)&&is(t.then),iPe=t=>typeof t!="object"&&!is(t)||t===null,Oq=t=>Oi(t)&&"propertyName"in t&&ap(t.propertyName),QI=(t,e)=>{const n={...t};return Object.keys(e).forEach(r=>{e[r]._default?n[r]||(n[r]={}):n[r]=QI(n[r],e[r])}),n},Iq=(t={},...e)=>e.filter(n=>!!n).reduce((n,r)=>(Object.keys(r).forEach(i=>{const s=t[i],a=r[i];if(s)if(Oi(a))n[i]=Iq(s,n[i],a);else{const{_default:c}=s;c&&(n[i]=n[i]||{},n[i][c]=Be(n[i][c],a))}else n[i]=Be(n[i],a)}),n),{}),xge=(t,...e)=>_.useMemo(()=>Iq.apply(void 0,[t].concat(e)),[t].concat(e)),Tge=(...t)=>t.filter(e=>!!e).reduce((e,n={})=>(Object.keys(n).forEach(r=>{e[r]={...e[r],...n[r]}}),e),{}),Rge=(...t)=>_.useMemo(()=>Tge.apply(void 0,t),[].concat(t)),av=(t,e)=>is(t)?t(e):t,_f=(t,e,n,r)=>{const i=t.map(u=>u?av(u,n):void 0),s=e.map(u=>u?av(u,n):void 0),a=xge.apply(void 0,[r].concat(Cs(i))),c=Rge.apply(void 0,Cs(s));return _.useMemo(()=>r?[QI(a,r),QI(c,r)]:[a,c],[a,c,r])},Cw=(t,e,n)=>({background:t,[`${n}-icon`]:{color:e}}),Age=t=>{const{componentCls:e,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:s,fontSizeLG:a,lineHeight:c,borderRadiusLG:u,motionEaseInOutCirc:h,withDescriptionIconSize:p,colorText:v,colorTextHeading:y,withDescriptionPadding:E,defaultPadding:S,lineWidth:x,lineType:C,colorSuccessBorder:R,colorWarningBorder:A,colorErrorBorder:O,colorInfoBorder:P}=t;return{[e]:{...HP(t),position:"relative",display:"flex",alignItems:"center",padding:S,wordWrap:"break-word",borderRadius:u,borderWidth:At(x),borderStyle:C,[`&${e}-success`]:{borderColor:R},[`&${e}-info`]:{borderColor:P},[`&${e}-warning`]:{borderColor:A},[`&${e}-error`]:{borderColor:O},[`&${e}-filled`]:{borderColor:"transparent"},[`&${e}-rtl`]:{direction:"rtl"},[`${e}-section`]:{flex:1,minWidth:0},[`${e}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:s,lineHeight:c},"&-title":{color:y},[`&${e}-motion-leave`]:{overflow:"hidden",opacity:1,transition:["max-height","opacity","padding-top","padding-bottom","margin-bottom"].map(L=>`${L} ${n} ${h}`).join(", ")},[`&${e}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}},[`${e}-with-description`]:{alignItems:"flex-start",padding:E,[`${e}-icon`]:{marginInlineEnd:i,fontSize:p,lineHeight:0},[`${e}-title`]:{display:"block",marginBottom:r,color:y,fontSize:a},[`${e}-description`]:{display:"block",color:v}},[`${e}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Oge=t=>{const{componentCls:e,colorSuccess:n,colorSuccessBg:r,colorWarning:i,colorWarningBg:s,colorError:a,colorErrorBg:c,colorInfo:u,colorInfoBg:h}=t;return{[e]:{"&-success":Cw(r,n,e),"&-info":Cw(h,u,e),"&-warning":Cw(s,i,e),"&-error":{...Cw(c,a,e),[`${e}-description > pre`]:{margin:0,padding:0}}}}},Ige=t=>{const{componentCls:e,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:s,colorIcon:a,colorIconHover:c}=t;return{[e]:{"&-actions":{marginInlineStart:i},[`${e}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:s,lineHeight:At(s),backgroundColor:"transparent",border:"none",cursor:"pointer",...wv(t),[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:c}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:c}}}}},Pge=t=>({withDescriptionIconSize:t.fontSizeHeading3,defaultPadding:`${t.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${t.paddingMD}px ${t.paddingContentHorizontalLG}px`}),Lge=Sl("Alert",t=>[Age(t),Oge(t),Ige(t)],Pge),kge=t=>{const{icon:e,type:n,className:r,style:i,successIcon:s,infoIcon:a,warningIcon:c,errorIcon:u}=t,h={success:s??_.createElement(Eb,null),info:a??_.createElement(Xx,null),error:u??_.createElement(Sb,
162null),warning:c??_.createElement(wb,null)};return _.createElement("span",{className:r,style:i},e??h[n])},Mge=t=>{const{isClosable:e,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:s,className:a,style:c}=t,u=r===!0||r===void 0?_.createElement(Lp,null):r;return e?_.createElement("button",{type:"button",onClick:i,className:Be(`${n}-close-icon`,a),tabIndex:0,style:c,...s},u):null},Pq=_.forwardRef((t,e)=>{const{description:n,prefixCls:r,message:i,title:s,banner:a,className:c,rootClassName:u,style:h,onMouseEnter:p,onMouseLeave:v,onClick:y,afterClose:E,showIcon:S,closable:x,closeText:C,closeIcon:R,action:A,id:O,styles:P,classNames:L,...D}=t,N=s??i,[k,U]=_.useState(!1),F=_.useRef(null);_.useImperativeHandle(e,()=>({nativeElement:F.current}));const{getPrefixCls:V,direction:G,variant:Z,closable:K,closeIcon:J,className:H,style:Y,classNames:ee,styles:fe,successIcon:ue,infoIcon:z,warningIcon:Q,errorIcon:ae}=El("alert"),de=V("alert",r),[be,Se]=Lge(de),{onClose:je,afterClose:Ne}=Oi(x)?x:{},ze=Ut=>{U(!0),(je??t.onClose)?.(Ut)},tt=_.useMemo(()=>t.type!==void 0?t.type:a?"warning":"info",[t.type,a]),Je=t.variant??Z??"outlined",We=_.useMemo(()=>Oi(x)&&x.closeIcon||C?!0:typeof x=="boolean"?x:R!==!1&&hi(R)?!0:!!K,[C,R,x,K]),Ve=a&&S===void 0?!0:S,Pt={...t,prefixCls:de,variant:Je,type:tt,showIcon:Ve,closable:We},[dt,$e]=_f([ee,L],[fe,P],{props:Pt}),vt=Be(de,`${de}-${tt}`,`${de}-${Je}`,{[`${de}-with-description`]:!!n,[`${de}-no-icon`]:!Ve,[`${de}-banner`]:!!a,[`${de}-rtl`]:G==="rtl"},H,c,u,dt.root,Se,be),ot=yp(D,{aria:!0,data:!0}),Bt=_.useMemo(()=>Oi(x)&&x.closeIcon?x.closeIcon:C||(R!==void 0?R:Oi(K)&&K.closeIcon?K.closeIcon:J),[R,x,K,C,J]),An=_.useMemo(()=>{const Ut=x??K;return Oi(Ut)?yp(Ut,{data:!0,aria:!0}):{}},[x,K]);return _.createElement(Tc,{visible:!k,motionName:`${de}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Ut=>({maxHeight:Ut.offsetHeight}),onLeaveEnd:Ne??E},({className:Ut,style:qt},or)=>_.createElement("div",{id:O,ref:Ap(F,or),"data-show":!k,className:Be(vt,Ut),style:{...$e.root,...Y,...h,...qt},onMouseEnter:p,onMouseLeave:v,onClick:y,role:"alert",...ot},Ve?_.createElement(kge,{className:Be(`${de}-icon`,dt.icon),style:$e.icon,description:n,icon:t.icon,prefixCls:de,type:tt,successIcon:ue,infoIcon:z,warningIcon:Q,errorIcon:ae}):null,_.createElement("div",{className:Be(`${de}-section`,dt.section),style:$e.section},N?_.createElement("div",{className:Be(`${de}-title`,dt.title),style:$e.title},N):null,n?_.createElement("div",{className:Be(`${de}-description`,dt.description),style:$e.description},n):null),A?_.createElement("div",{className:Be(`${de}-actions`,dt.actions),style:$e.actions},A):null,_.createElement(Mge,{className:dt.close,style:$e.close,isClosable:We,prefixCls:de,closeIcon:Bt,handleClose:ze,ariaProps:An})))});function Dge(t,e,n){return e=bp(e),nq(t,Kx()?Reflect.construct(e,n||[],bp(t).constructor):e.apply(t,n))}let Nge=(function(t){function e(){var n;return Op(this,e),n=Dge(this,e,arguments),n.state={error:void 0,info:{}},n}return UP(e,t),Ip(e,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,title:i,description:s,id:a,children:c}=this.props,{error:u,info:h}=this.state,p=i??r,v=h?.componentStack||null,y=hi(p)?p:u?.toString(),E=hi(s)?s:v;return u?_.createElement(Pq,{id:a,type:"error",title:y,description:_.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},E)}):c}}])})(_.PureComponent);const Lq=Pq;Lq.ErrorBoundary=Nge;const Qx=t=>`${t}-css-var`,$ge=_.createContext(void 0),Fge={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var Uge={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function G1(t){"@babel/helpers - typeof";return G1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G1(t)}function A6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function O6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
162e%2?A6(Object(n),!0).forEach(function(r){Bge(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A6(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Bge(t,e,n){return e=jge(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jge(t){var e=Hge(t,"string");return G1(e)=="symbol"?e:String(e)}function Hge(t,e){if(G1(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(G1(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var zge=O6(O6({},Uge),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const kq={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},I6={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...zge},timePickerLocale:{...kq}},Bo="${label} is not a valid ${type}",mf={locale:"en",Pagination:Fge,DatePicker:I6,TimePicker:kq,Calendar:I6,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Bo,method:Bo,array:Bo,object:Bo,number:Bo,date:Bo,boolean:Bo,integer:Bo,float:Bo,regexp:Bo,email:Bo,url:Bo,hex:Bo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}
162,ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let R2={...mf.Modal},A2=[];const P6=()=>A2.reduce((t,e)=>({...t,...e}),mf.Modal);function Vge(t){if(t){const e={...t};return A2.push(e),R2=P6(),()=>{A2=A2.filter(n=>n!==e),R2=P6()}}R2={...mf.Modal}}function Mq(){return R2}const qP=_.createContext(void 0),Zx=(t,e)=>{const n=_.useContext(qP),r=_.useMemo(()=>{const s=e||mf[t],a=n?.[t]??{};return{...is(s)?s():s,...a||{}}},[t,e,n]),i=_.useMemo(()=>{const s=n?.locale;return n?.exist&&!s?mf.locale:s},[n]);return[r,i]},qge="internalMark",Wge=t=>{const{locale:e={},children:n,_ANT_MARK__:r}=t;_.useEffect(()=>Vge(e?.Modal),[e]);const i=_.useMemo(()=>({...e,exist:!0}),[e]);return _.createElement(qP.Provider,{value:i},n)},Dq=_.createContext(null);let Gge=!1;function Kge(t){return Gge}const L6=[];function Yge(t,e){const[n]=_.useState(()=>na()?document.createElement("div"):null),r=_.useRef(!1),i=_.useContext(Dq),[s,a]=_.useState(L6),c=i||(r.current?void 0:p=>{a(v=>[p,...v])});function u(){n.parentElement||document.body.appendChild(n),r.current=!0}function h(){n.parentElement?.removeChild(n),r.current=!1}return gf(()=>(t?i?i(u):u():h(),h),[t]),gf(()=>{s.length&&(s.forEach(p=>p()),a(L6))},[s]),[n,c]}function Xge(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const Qge=`rc-util-locker-${Date.now()}`;let k6=0;function Zge(t){const e=!!t,[n]=_.useState(()=>(k6+=1,`${Qge}_${k6}`));gf(()=>{if(e){const r=jfe(document.body).width,i=Xge();lf(` 163html body { 164 overflow-y: hidden; 165 ${i?`width: calc(100% - ${r}px);`:""} 166}`,n)}else B1(n);return()=>{B1(n)}},[e,n])}let Qh=[];const Jge=200;let Nq=0;const $q=t=>{if(t.key==="Escape"&&!t.isComposing){if(Date.now()-Nq<Jge)return;const n=Qh.length;for(let r=n-1;r>=0;r-=1)Qh[r].onEsc({top:r===n-1,event:t})}},Fq=()=>{Nq=Date.now()};function eme(){window.addEventListener("keydown",$q),window.addEventListener("compositionend",Fq)}function tme(){Qh.length===0&&(window.removeEventListener("keydown",$q),window.removeEventListener("compositionend",Fq))}function nme(t,e){const n=TP(),r=ii(e),i=()=>{Qh.find(a=>a.id===n)||Qh.push({id:n,onEsc:r})},s=()=>{Qh=Qh.filter(a=>a.id!==n)};_.useMemo(()=>{t?i():t||s()},[t]),_.useEffect(()=>{if(t)return i(),eme(),()=>{s(),tme()}},[t])}const M6=t=>t===!1?!1:!na()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t,Uq=_.forwardRef((t,e)=>{const{open:n,autoLock:r,getContainer:i,debug:s,autoDestroy:a=!0,children:c,onEsc:u}=t,[h,p]=_.useState(n),v=h||n;_.useEffect(()=>{(a||n)&&p(n)},[n,a]);const[y,E]=_.useState(()=>M6(i));_.useEffect(()=>{const L=M6(i);E(()=>L??null)});const[S,x]=Yge(v&&!y),C=y??S;Zge(r&&n&&na()&&(C===S||C===document.body)),nme(n,u);let R=null;c&&jx(c)&&e&&(R=Hx(c));const A=vb(R,e);if(!v||!na()||y===void 0)return null;const O=C===!1||Kge();let P=c;return e&&(P=_.cloneElement(c,{ref:A})),_.createElement(Dq.Provider,{value:x},O?P:xP.createPortal(P,C))});function rme(t){const{prefixCls:e,align:n,arrow:r,arrowPos:i}=t,{className:s,content:a,style:c}=r||{},{x:u=0,y:h=0}=i,p=_.useRef(null);if(!n||!n.points)return null;const v={position:"absolute"};if(n.autoArrow!==!1){const y=n.points[0],E=n.points[1],S=y[0],x=y[1],C=E[0],R=E[1];S===C||!["t","b"].includes(S)?v.top=h:S==="t"?v.top=0:v.bottom=0,x===R||!["l","r"].includes(x)?v.left=u:x==="l"?v.left=0:v.right=0}return _.createElement("div",{ref:p,className:Be(`${e}-arrow`,s),style:{...v,...c}},a)}function ZI(){return ZI=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ZI.apply(this,arguments)}function ime(t){const{prefixCls:e,open:n,zIndex:r,mask:i,motion:s,mobile:a}=t;return i?_.createElement(Tc,ZI({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:c})=>_.createElement("div",{style:{zIndex:r},className:Be(`${e}-mask`,a&&`${e}-mobile-mask`,c)})):null}const sme=_.memo(({children:t})=>t,(t,e)=>e.cache);function Bq(t,e,n,r,i,s,a,c){const u="auto",h=t?{}:{left:"-1000vw",top:"-1000vh",right:u,bottom:u};if(!t&&(e||!n)){const{points:p}=r,v=r.dynamicInset||r._experimental?.dynamicInset,y=v&&p[0][1]==="r",E=v&&p[0][0]==="b";y?(h.right=i,h.left=u):(h.left=a,h.right=u),E?(h.bottom=s,h.top=u):(h.top=c,h.bottom=u)}return h}function JI(){return JI=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},JI.apply(this,arguments)}const ome=_.forwardRef((t,e)=>{const{onEsc:n,popup:r,className:i,prefixCls:s,style:a,target:c,onVisibleChanged:u,open:h,keepDom:p,fresh:v,onClick:y,mask:E,arrow:S,arrowPos:x,align:C,motion:R,maskMotion:A,mobile:O,forceRender:P,getPopupContainer:L,autoDestroy:D,portal:N,children:k,zIndex:U,onMouseEnter:F,onMouseLeave:V,onPointerEnter:G,onPointerDownCapture:Z,ready:K,offsetX:J,offsetY:H,offsetR:Y,offsetB:ee,onAlign:fe,onPrepare:ue,onResize:z,stretch:Q,targetWidth:ae,targetHeight:de}=t,be=typeof r=="function"?r():r,Se=h||p,je=!!O,[Ne,ze,tt]=_.useMemo(()=>O?[O.mask,O.maskMotion,O.motion]:[E,A,R],[O,E,A,R]),Je=L?.length>0,[We,Ve]=_.useState(!L||!Je);gf(()=>{!We&&Je&&c&&Ve(!0)},[We,Je,c]);const Pt=ii((vt,ot)=>{z?.(vt,ot),fe()}),dt=Bq(je,K,h,C,Y,ee,J,H);if(!We)return null;const $e={};return Q&&(Q.includes("height")&&de?$e.height=de:Q.includes("minHeight")&&de&&($e.minHeight=de),Q.includes("width")&&ae?$e.width=ae:Q.includes("minWidth")&&ae&&($e.minWidth=ae)),h||($e.pointerEvents="none"),_.createElement(N,{open:P||Se,getContainer:L&&(()=>L(c)),autoDestroy:D,onEsc:n},_.createElement(ime,{prefixCls:s,open:h,zIndex:U,mask:Ne,motion:ze,mobile:je}),_.createElement(UV,{onResize:Pt,disabled:!h},vt=>_.createElement(Tc,JI({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:P,leavedClassName:`${s}-hidden`},tt,{onAppearPrepare:ue,onEnterPrepare:ue,visible:h,onVisibleChanged:ot=>{R?.onVisibleChanged?.(ot),u(ot)}}),({className:ot,style:Bt},An)=>{const Ut=Be(s,ot,i,{[`${s}-mobile`]:je});return _.createElement("div",{ref:Ap(vt,e,An),className:Ut,style:{"--arrow-x":`${x.x||0}px`,"--arrow-y":`${x.y||0}px`,...dt,...$e,...Bt,boxSizing:"border-box",zIndex:U,...a},onMouseEnter:F,onMouseLeave:V,onPointerEnter:G,onClick:y,onPointerDownCapture:Z},S&&_.createElement(rme,{prefixCls:s,arrow:S,arrowPos:x,align:C}),_.createElement(sme,{cache:!h&&!v},be))})),k)}),D6=_.createContext(null),ame=_.createContext(null);function lme(t=[],e=[],n){const r=(i,s)=>i[s]||"";return n?r(t,0)===r(e,0):r(t,0)===r(e,0)&&r(t,1)===r(e,1)}function cme(t,e,n,r){const{points:i}=n,s=Object.keys(t);for(let a=0;a<s.length;a+=1){const c=s[a];if(lme(t[c]?.points,i,r))return`${e}-placement-${c}`}return""}function WP(t){return t.ownerDocument.defaultView}function ume(t){const e=[];let n=t?.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:i,overflowY:s,overflow:a}=WP(n).getComputedStyle(n);[i,s,a].some(c=>r.includes(c))&&e.push(n),n=n.parentElement}return e}function K1(t,e=1){return Number.isNaN(t)?e:t}function v_(t){return K1(parseFloat(t),0)}function N6(t,e){const n={...t};
166return(e||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:i,overflowClipMargin:s,borderTopWidth:a,borderBottomWidth:c,borderLeftWidth:u,borderRightWidth:h}=WP(r).getComputedStyle(r),p=r.getBoundingClientRect(),{offsetHeight:v,clientHeight:y,offsetWidth:E,clientWidth:S}=r,x=v_(a),C=v_(c),R=v_(u),A=v_(h),O=K1(Math.round(p.width/E*1e3)/1e3),P=K1(Math.round(p.height/v*1e3)/1e3),L=(E-S-R-A)*O,D=(v-y-x-C)*P,N=x*P,k=C*P,U=R*O,F=A*O;let V=0,G=0;if(i==="clip"){const Y=v_(s);V=Y*O,G=Y*P}const Z=p.x+U-V,K=p.y+N-G,J=Z+p.width+2*V-U-F-L,H=K+p.height+2*G-N-k-D;n.left=Math.max(n.left,Z),n.top=Math.max(n.top,K),n.right=Math.min(n.right,J),n.bottom=Math.min(n.bottom,H)}),n}function $6(t,e=0){const n=`${e}`,r=n.match(/^(.*)\%$/);return r?t*(parseFloat(r[1])/100):parseFloat(n)}function F6(t,e){const[n,r]=e||[];return[$6(t.width,n),$6(t.height,r)]}function U6(t=""){return[t[0],t[1]]}function fm(t,e){const n=e[0],r=e[1];let i,s;return n==="t"?s=t.y:n==="b"?s=t.y+t.height:s=t.y+t.height/2,r==="l"?i=t.x:r==="r"?i=t.x+t.width:i=t.x+t.width/2,{x:i,y:s}}function jd(t,e){const n={t:"b",b:"t",l:"r",r:"l"},r=[...t];return r[e]=n[t[e]]||"c",r}function B6(t){return t.join("")}function dme(t,e,n,r,i,s,a,c){const[u,h]=_.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),p=_.useRef(0),v=_.useMemo(()=>!e||c?[]:ume(e),[e]),y=_.useRef({});t||(y.current={});const S=ii(()=>
166{if(e&&n&&t&&!c){let Xt=function(yt,dn,Qr=Pt){const so=Z.x+yt,oo=Z.y+dn,Tt=so+ae,Tn=oo+Q,Di=Math.max(so,Qr.left),qi=Math.max(oo,Qr.top),Cl=Math.min(Tt,Qr.right),Da=Math.min(Tn,Qr.bottom);return Math.max(0,(Cl-Di)*(Da-qi))},xo=function(){vi=Z.y+Nt,yi=vi+Q,io=Z.x+Wt,Co=io+ae};const R=e,A=R.ownerDocument,O=WP(R),{position:P}=O.getComputedStyle(R),L=R.style.left,D=R.style.top,N=R.style.right,k=R.style.bottom,U=R.style.overflow,F={...i[r],...s},V=A.createElement("div");R.parentElement?.appendChild(V),V.style.left=`${R.offsetLeft}px`,V.style.top=`${R.offsetTop}px`,V.style.position=P,V.style.height=`${R.offsetHeight}px`,V.style.width=`${R.offsetWidth}px`,R.style.left="0",R.style.top="0",R.style.right="auto",R.style.bottom="auto",R.style.overflow="hidden";let G;if(Array.isArray(n))G={x:n[0],y:n[1],width:0,height:0};else{const yt=n.getBoundingClientRect();yt.x=yt.x??yt.left,yt.y=yt.y??yt.top,G={x:yt.x,y:yt.y,width:yt.width,height:yt.height}}const Z=R.getBoundingClientRect(),{height:K,width:J}=O.getComputedStyle(R);Z.x=Z.x??Z.left,Z.y=Z.y??Z.top;const{clientWidth:H,clientHeight:Y,scrollWidth:ee,scrollHeight:fe,scrollTop:ue,scrollLeft:z}=A.documentElement,Q=Z.height,ae=Z.width,de=G.height,be=G.width,Se={left:0,top:0,right:H,bottom:Y},je={left:-z,top:-ue,right:ee-z,bottom:fe-ue};let{htmlRegion:Ne}=F;const ze="visible",tt="visibleFirst";Ne!=="scroll"&&Ne!==tt&&(Ne=ze);const Je=Ne===tt,We=N6(je,v),Ve=N6(Se,v),Pt=Ne===ze?Ve:We,dt=Je?Ve:Pt;R.style.left="auto",R.style.top="auto",R.style.right="0",R.style.bottom="0";const $e=R.getBoundingClientRect();R.style.left=L,R.style.top=D,R.style.right=N,R.style.bottom=k,R.style.overflow=U,R.parentElement?.removeChild(V);const vt=K1(Math.round(ae/parseFloat(J)*1e3)/1e3),ot=K1(Math.round(Q/parseFloat(K)*1e3)/1e3);if(vt===0||ot===0||PC(n)&&!IP(n))return;const{offset:Bt,targetOffset:An}=F;let[Ut,qt]=F6(Z,Bt);const[or,Hn]=F6(G,An);G.x-=or,G.y-=Hn;const[Yr,xr]=F.points||[],pi=U6(xr),zn=U6(Yr),Zn=fm(G,pi),ar=fm(Z,zn),Vi={...F};let Vn=[zn,pi],Wt=Zn.x-ar.x+Ut,Nt=Zn.y-ar.y+qt;const nn=Xt(Wt,Nt),Xr=Xt(Wt,Nt,Ve),Li=fm(G,["t","l"]),ki=fm(Z,["t","l"]),gi=fm(G,["b","r"]),qn=fm(Z,["b","r"]),si=F.overflow||{},{adjustX:Wn,adjustY:Os,shiftX:mi,shiftY:Mn}=si,ro=yt=>typeof yt=="boolean"?yt:yt>=0;let vi,yi,io,Co;xo();const te=ro(Os),se=zn[0]===pi[0];if(te&&zn[0]==="t"&&(yi>dt.bottom||y.current.bt)){let yt=Nt;se?yt-=Q-de:yt=Li.y-qn.y-qt;const dn=Xt(Wt,yt),Qr=Xt(Wt,yt,Ve);dn>nn||dn===nn&&(!Je||Qr>=Xr)?(y.current.bt=!0,Nt=yt,qt=-qt,Vn=[jd(Vn[0],0),jd(Vn[1],0)]):y.current.bt=!1}if(te&&zn[0]==="b"&&(vi<dt.top||y.current.tb)){let yt=Nt;se?yt+=Q-de:yt=gi.y-ki.y-qt;const dn=Xt(Wt,yt),Qr=Xt(Wt,yt,Ve);dn>nn||dn===nn&&(!Je||Qr>=Xr)?(y.current.tb=!0,Nt=yt,qt=-qt,Vn=[jd(Vn[0],0),jd(Vn[1],0)]):y.current.tb=!1}const pe=ro(Wn),Oe=zn[1]===pi[1];if(pe&&zn[1]==="l"&&(Co>dt.right||y.current.rl)){let yt=Wt;Oe?yt-=ae-be:yt=Li.x-qn.x-Ut;const dn=Xt(yt,Nt),Qr=Xt(yt,Nt,Ve);dn>nn||dn===nn&&(!Je||Qr>=Xr)?(y.current.rl=!0,Wt=yt,Ut=-Ut,Vn=[jd(Vn[0],1),jd(Vn[1],1)]):y.current.rl=!1}if(pe&&zn[1]==="r"&&(io<dt.left||y.current.lr)){let yt=Wt;Oe?yt+=ae-be:yt=gi.x-ki.x-Ut;const dn=Xt(yt,Nt),Qr=Xt(yt,Nt,Ve);dn>nn||dn===nn&&(!Je||Qr>=Xr)?(y.current.lr=!0,Wt=yt,Ut=-Ut,Vn=[jd(Vn[0],1),jd(Vn[1],1)]):y.current.lr=!1}Vi.points=[B6(Vn[0]),B6(Vn[1])],xo();const Le=mi===!0?0:mi;typeof Le=="number"&&(io<Ve.left&&(Wt-=io-Ve.left-Ut,G.x+be<Ve.left+Le&&(Wt+=G.x-Ve.left+be-Le)),Co>Ve.right&&(Wt-=Co-Ve.right-Ut,G.x>Ve.right-Le&&(Wt+=G.x-Ve.right+Le)));const Ke=Mn===!0?0:Mn;typeof Ke=="number"&&(vi<Ve.top&&(Nt-=vi-Ve.top-qt,G.y+de<Ve.top+Ke&&(Nt+=G.y-Ve.top+de-Ke)),yi>Ve.bottom&&(Nt-=yi-Ve.bottom-qt,G.y>Ve.bottom-Ke&&(Nt+=G.y-Ve.bottom+Ke)));const qe=Z.x+Wt,Ye=qe+ae,Ge=Z.y+Nt,it=Ge+Q,nt=G.x,xt=nt+be,ht=G.y,lt=ht+de,rn=Math.max(qe,nt),On=Math.min(Ye,xt),Et=(rn+On)/2-qe,xn=Math.max(Ge,ht),kt=Math.min(it,lt),Mi=(xn+kt)/2-Ge;a?.(e,Vi);let Tr=$e.right-Z.x-(Wt+Z.width),mr=$e.bottom-Z.y-(Nt+Z.height);vt===1&&(Wt=Math.floor(Wt),Tr=Math.floor(Tr)),ot===1&&(Nt=Math.floor(Nt),mr=Math.floor(mr));const _i={ready:!0,offsetX:Wt/vt,offsetY:Nt/ot,offsetR:Tr/vt,offsetB:mr/ot,arrowX:Et/vt,arrowY:Mi/ot,scaleX:vt,scaleY:ot,align:Vi};h(_i)}}),x=()=>{p.current+=1;const R=p.current;Promise.resolve().then(()=>{p.current===R&&S()})},C=()=>{h(R=>({...R,ready:!1}))};return gf(C,[r]),gf(()=>{t||C()},[t]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,x]}function fme(){const t=_.useRef(null),e=()=>{t.current&&(clearTimeout(t.current),t.current=null)},n=(r,i)=>{e(),i===0?r():t.current=setTimeout(()=>{r()},i*1e3)};return _.useEffect(()=>()=>{e()},[]),n}function hme(){const[t,e]=Te.useState(null),[n,r]=Te.useState(!1),[i,s]=Te.useState(!1),a=Te.useRef(null),c=ii(h=>
166{h===!1?(a.current=null,r(!1)):i&&n?a.current=h:(r(!0),e(h),a.current=null,n||s(!0))}),u=ii(h=>{h?(s(!1),a.current&&(e(a.current),a.current=null)):(s(!1),a.current=null)});return[c,n,t,u]}function e3(){return e3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},e3.apply(this,arguments)}const pme=t=>{const{prefixCls:e,isMobile:n,ready:r,open:i,align:s,offsetR:a,offsetB:c,offsetX:u,offsetY:h,arrowPos:p,popupSize:v,motion:y,uniqueContainerClassName:E,uniqueContainerStyle:S}=t,x=`${e}-unique-container`,[C,R]=Te.useState(!1),A=Bq(n,r,i,s,a,c,u,h),O=Te.useRef(A);r&&(O.current=A);const P={};return v&&(P.width=v.width,P.height=v.height),Te.createElement(Tc,e3({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${x}-hidden`},y,{visible:i,onVisibleChanged:L=>{R(L)}}),({className:L,style:D})=>{const N=Be(x,L,E,{[`${x}-visible`]:C});return Te.createElement("div",{className:N,style:{"--arrow-x":`${p?.x||0}px`,"--arrow-y":`${p?.y||0}px`,...O.current,...P,...D,...S}})})},gme=({children:t,postTriggerProps:e})=>{const[n,r,i,s]=hme(),a=_.useMemo(()=>!i||!e?i:e(i),[i,e]),[c,u]=_.useState(null),[h,p]=_.useState(null),v=_.useRef(null),y=ii(ee=>{v.current=ee,PC(ee)&&c!==ee&&u(ee)}),E=_.useRef(null),S=fme(),x=ii((ee,fe)=>{E.current=fe,S(()=>{n(ee)},ee.delay)}),C=ee=>{S(()=>{E.current?.()||n(!1)},ee)},R=ii(ee=>{s(ee)}),[A,O,P,L,D,N,k,,,U,F]=dme(r,c,a?.target,a?.popupPlacement,a?.builtinPlacements||{},a?.popupAlign,void 0,!1),V=_.useMemo(()=>{if(!a)return"";const ee=cme(a.builtinPlacements||{},a.prefixCls||"",U,!1);return Be(ee,a.getPopupClassNameFromAlign?.(U))},[U,a?.getPopupClassNameFromAlign,a?.builtinPlacements,a?.prefixCls]),G=_.useMemo(()=>({show:x,hide:C}),[]);_.useEffect(()=>{F()},[a?.target]);const Z=ii(()=>(F(),Promise.resolve())),K=_.useRef({}),J=_.useContext(D6),H=_.useMemo(()=>({registerSubPopup:(ee,fe)=>{K.current[ee]=fe,J?.registerSubPopup(ee,fe)}}),[J]),Y=a?.prefixCls;return _.createElement(ame.Provider,{value:G},t,a&&_.createElement(D6.Provider,{value:H},_.createElement(ome,{ref:y,portal:Uq,onEsc:a.onEsc,prefixCls:Y,popup:a.popup,className:Be(a.popupClassName,V,`${Y}-unique-controlled`),style:a.popupStyle,target:a.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:R,ready:A,offsetX:O,offsetY:P,offsetR:L,offsetB:D,onAlign:F,onPrepare:Z,onResize:ee=>p({width:ee.offsetWidth,height:ee.offsetHeight}),arrowPos:{x:N,y:k},align:U,zIndex:a.zIndex,mask:a.mask,arrow:a.arrow,motion:a.popupMotion,maskMotion:a.maskMotion,getPopupContainer:a.getPopupContainer},_.createElement(pme,{prefixCls:Y,isMobile:!1,ready:A,open:r,align:U,offsetR:L,offsetB:D,offsetX:O,offsetY:P,arrowPos:{x:N,y:k},popupSize:h,motion:a.popupMotion,uniqueContainerClassName:Be(a.uniqueContainerClassName,V),uniqueContainerStyle:a.uniqueContainerStyle}))))};function mme(t){return t&&Te.isValidElement(t)&&t.type===Te.Fragment}const vme=(t,e,n)=>Te.isValidElement(t)?Te.cloneElement(t,is(n)?n(t.props||{}):n):e;function NC(t,e){return vme(t,t,e)}const yme=({children:t})=>{const{getPrefixCls:e}=Te.useContext(wr),n=e();return Te.isValidElement(t)?Te.createElement(Tc,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:i})=>NC(t,s=>({className:Be(s.className,i),style:{...s.style,...r}}))):t},xw=[null,null];function _me(t){if(xw[0]!==t){const e={};Object.keys(t).forEach(n=>{e[n]={...t[n],dynamicInset:!1}}),xw[0]=t,xw[1]=e}return xw[1]}const bme=({children:t})=>{const e=n=>{const{id:r,builtinPlacements:i,popup:s}=n,a=is(s)?s():s,c=_me(i);return{...n,getPopupContainer:null,arrow:!1,popup:Te.createElement(yme,{key:r},a),builtinPlacements:c}};return Te.createElement(gme,{postTriggerProps:e},t)},$C=_.createContext(!1),jq=({children:t,disabled:e})=>{const n=_.useContext($C);return _.createElement($C.Provider,{value:e??n},t)},lv=_.createContext(void 0),Eme=({children:t,size:e})=>{const n=_.useContext(lv);return _.createElement(lv.Provider,{value:e||n},t)};function Sme(){const t=_.useContext($C),e=_.useContext(lv);return{componentDisabled:t,componentSize:e}}function wme(t,e,n){const r=t||{},i=r.inherit===!1||!e?{...DC,hashed:e?.hashed??DC.hashed,cssVar:e?.cssVar}:e,s=_.useId();return RP(()=>{if(!t)return e;const a={...i.components};Object.keys(t.components||{}
166).forEach(h=>{a[h]={...a[h],...t.components[h]}});const c=`css-var-${s.replace(/:/g,"")}`,u={prefix:n?.prefixCls,...i.cssVar,...r.cssVar,key:r.cssVar?.key||c};return{...i,...r,token:{...i.token,...r.token},components:a,cssVar:u}},[r,i],(a,c)=>a.some((u,h)=>{const p=c[h];return!gI(u,p,!0)}))}const j6=_.createContext(!0);function Cme(t){const e=_.useContext(j6),{children:n}=t,[,r]=Pp(),{motion:i}=r,s=_.useRef(!1);return s.current||(s.current=e!==i),s.current?_.createElement(j6.Provider,{value:i},_.createElement(lge,{motion:i},n)):n}const xme=()=>null,Tme=({iconPrefixCls:t,csp:e})=>(Vpe(t,e),null),Rme=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let FC,Hq,zq,Vq;function ZR(){return FC||j1}function Ame(){return Hq||Vx}const Ome=t=>{const{prefixCls:e,iconPrefixCls:n,theme:r,holderRender:i}=t;e!==void 0&&(FC=e),n!==void 0&&(Hq=n),"holderRender"in t&&(Vq=i),r&&(zq=r)},Ime=()=>({getPrefixCls:(t,e)=>e||(t?`${ZR()}-${t}`:ZR()),getIconPrefixCls:Ame,getRootPrefixCls:()=>FC||ZR(),getTheme:()=>zq,holderRender:Vq}),Pme=t=>{const{children:e,csp:n,autoInsertSpaceInButton:r,alert:i,affix:s,anchor:a,app:c,form:u,locale:h,componentSize:p,direction:v,space:y,splitter:E,virtual:S,dropdownMatchSelectWidth:x,popupMatchSelectWidth:C,popupOverflow:R,legacyLocale:A,parentContext:O,iconPrefixCls:P,theme:L,componentDisabled:D,segmented:N,statistic:k,spin:U,calendar:F,carousel:V,cascader:G,collapse:Z,typography:K,checkbox:J,descriptions:H,divider:Y,drawer:ee,skeleton:fe,steps:ue,image:z,layout:Q,list:ae,mentions:de,modal:be,progress:Se,result:je,slider:Ne,breadcrumb:ze,masonry:tt,menu:Je,pagination:We,input:Ve,inputPassword:Pt,inputSearch:dt,textArea:$e,otp:vt,empty:ot,badge:Bt,borderBeam:An,radio:Ut,rate:qt,ribbon:or,switch:Hn,transfer:Yr,avatar:xr,message:pi,tag:zn,table:Zn,card:ar,cardMeta:Vi,tabs:Vn,timeline:Wt,timePicker:Nt,upload:Xt,notification:nn,tree:Xr,colorPicker:Li,datePicker:ki,rangePicker:gi,flex:qn,wave:si,dropdown:Wn,warning:Os,tour:mi,tooltip:Mn,popover:ro,popconfirm:vi,qrcode:yi,floatButton:io,floatButtonGroup:Co,variant:xo,inputNumber:te,treeSelect:se,watermark:pe}=t,Oe=_.useMemo(()=>Oi(h)&&Object.prototype.hasOwnProperty.call(h,"default")&&h.default?.locale?h.default:h,[h]),Le=_.useCallback((bt,Et)=>{const{prefixCls:xn}=t;if(Et)return Et;
166const kt=xn||O.getPrefixCls("");return bt?`${kt}-${bt}`:kt},[O.getPrefixCls,t.prefixCls]),Ke=P||O.iconPrefixCls||Vx,qe=n||O.csp,Ye=wme(L,O.theme,{prefixCls:Le("")}),Ge={csp:qe,autoInsertSpaceInButton:r,alert:i,affix:s,anchor:a,app:c,locale:Oe||A,direction:v,space:y,splitter:E,virtual:S,popupMatchSelectWidth:C??x,popupOverflow:R,getPrefixCls:Le,iconPrefixCls:Ke,theme:Ye,segmented:N,statistic:k,spin:U,calendar:F,carousel:V,cascader:G,collapse:Z,typography:K,checkbox:J,descriptions:H,divider:Y,drawer:ee,skeleton:fe,steps:ue,image:z,input:Ve,inputPassword:Pt,inputSearch:dt,textArea:$e,otp:vt,layout:Q,list:ae,mentions:de,modal:be,progress:Se,result:je,slider:Ne,breadcrumb:ze,masonry:tt,menu:Je,pagination:We,empty:ot,badge:Bt,borderBeam:An,radio:Ut,rate:qt,ribbon:or,switch:Hn,transfer:Yr,avatar:xr,message:pi,tag:zn,table:Zn,card:ar,cardMeta:Vi,tabs:Vn,timeline:Wt,timePicker:Nt,upload:Xt,notification:nn,tree:Xr,colorPicker:Li,datePicker:ki,rangePicker:gi,flex:qn,wave:si,dropdown:Wn,warning:Os,tour:mi,tooltip:Mn,popover:ro,popconfirm:vi,qrcode:yi,floatButton:io,floatButtonGroup:Co,variant:xo,inputNumber:te,treeSelect:se,watermark:pe},it={...O};Object.keys(Ge).forEach(bt=>{Ge[bt]!==void 0&&(it[bt]=Ge[bt])}),Rme.forEach(bt=>{const Et=t[bt];Et&&(it[bt]=Et)}),typeof r<"u"&&(it.button={autoInsertSpace:r,...it.button});const nt=RP(()=>it,it,(bt,Et)=>{const xn=Object.keys(bt),kt=Object.keys(Et);return xn.length!==kt.length||xn.some(ss=>bt[ss]!==Et[ss])}),{layer:xt}=_.useContext(yb),ht=_.useMemo(()=>({prefixCls:Ke,csp:qe,layer:xt?"antd":void 0}),[Ke,qe,xt]);let lt=_.createElement(_.Fragment,null,_.createElement(Tme,{iconPrefixCls:Ke,csp:qe}),_.createElement(xme,{dropdownMatchSelectWidth:x}),e);const rn=_.useMemo(()=>Im(mf.Form?.defaultValidateMessages||{},nt.locale?.Form?.defaultValidateMessages||{},nt.form?.validateMessages||{},u?.validateMessages||{}),[nt,u?.validateMessages]);Object.keys(rn).length>0&&(lt=_.createElement($ge.Provider,{value:rn},lt)),Oe&&(lt=_.createElement(Wge,{locale:Oe,_ANT_MARK__:qge},lt)),lt=_.createElement(zP.Provider,{value:ht},lt),p&&(lt=_.createElement(Eme,{size:p},lt)),lt=_.createElement(Cme,null,lt),Mn?.unique&&(lt=_.createElement(bme,null,lt));const On=_.useMemo(()=>{const{algorithm:bt,token:Et,components:xn,cssVar:kt,...ss}=Ye||{},Mi=bt&&(!Array.isArray(bt)||bt.length>0)?bI(bt):cq,Tr={};Object.entries(xn||{}).forEach(([_i,yt])=>{const dn={...yt};"algorithm"in dn&&(dn.algorithm===!0?dn.theme=Mi:(Array.isArray(dn.algorithm)||is(dn.algorithm))&&(dn.theme=bI(dn.algorithm)),delete dn.algorithm),Tr[_i]=dn});const mr={...W1,...Et};return{...ss,theme:Mi,token:mr,components:Tr,override:{override:mr,...Tr},cssVar:kt}},[Ye]);return L&&(lt=_.createElement(uq.Provider,{value:On},lt)),nt.warning&&(lt=_.createElement(rhe.Provider,{value:nt.warning},lt)),D!==void 0&&(lt=_.createElement(jq,{disabled:D},lt)),_.createElement(wr.Provider,{value:nt},lt)},bf=t=>{const e=_.useContext(wr),n=_.useContext(qP);return _.createElement(Pme,{parentContext:e,legacyLocale:n,...t})};bf.ConfigContext=wr;bf.SizeContext=lv;bf.config=Ome;bf.useConfig=Sme;Object.defineProperty(bf,"SizeContext",{get:()=>lv});function Lme(){const[t,e]=_.useState({}),n=_.useCallback((r,i)=>{if(!i){e(a=>{if(!(r in a))return a;const c={...a};return delete c[r],c});return}const s={width:i.offsetWidth,height:i.offsetHeight};e(a=>{const c=a[r];return c&&c.width===s.width&&c.height===s.height?a:{...a,[r]:s}})},[]);return[t,n]}function kme(t,e,n=0){const[r,i]=Lme(),[s,a,c,u]=_.useMemo(()=>{let h=0,p=0;const v=e?.threshold??0,y=new Map;let E,S;return t.slice().reverse().forEach((x,C)=>{const R=String(x.key),A=r[R]?.height??0,O=e&&C>0?h+(e.offset??0)-A:h;y.set(R,O),C===0&&(E=A,S=r[R]?.width??0),(!e||C<v)&&(p=Math.max(p,O+A)),e?h=O+A:h+=A+n}),[y,p,E,S]},[t,n,r,e]);return[s,i,a,c,u]}const H6=8,z6=3,Mme=t=>{const e={offset:H6,threshold:z6};return t&&typeof t=="object"&&(e.offset=t.offset??H6,e.threshold=t.threshold??z6),[!!t,e]};function Dme(t,e,n){const i=Math.max(typeof t=="number"?t:0,0)*1e3,s=ii(e),a=ii(n),[c,u]=_.useState(i>0),h=_.useRef(0),p=_.useRef(null);function v(){const S=Date.now(),x=p.current;x!==null&&(h.current+=S-x),p.current=S}const y=_.useCallback(()=>{v(),u(!1)},[]),E=_.useCallback(()=>{i>0?(p.current=Date.now(),u(!0)):a(0)},[i]);return _.useEffect(()=>{h.current=0,u(i>0)},[i]),_.useEffect(()=>{if(!c)return;let S=null;function x(){v(),h.current>=i?(a(1),s()):(a(Math.min(h.current/i,1)),S=gl(x))}return x(),()=>{gl.cancel(S)}},[i,c]),[E,y]}function Nme(t){const e=_.useMemo(()=>t===!1?{closeIcon:null,disabled:!0}:typeof t=="object"&&t!==null?t:{},[t]),n=_.useMemo(()=>({...e,closeIcon:"closeIcon"in e?e.closeIcon:"Ã",disabled:e.disabled??!1}),[e]),r=_.useMemo(()=>yp(n,!0),[n]);return[!!t,n,r]}const $me=({className:t,style:e,percent:n})=>_.createElement("progress",{className:t,max:"100",value:n,style:e});function UC(){return UC=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},UC.apply(this,arguments)}const qq=_.forwardRef((t,e)=>{const{prefixCls:n,className:r,style:i,classNames:s,styles:a,components:c,title:u,description:h,icon:p,actions:v,role:y,closable:E,offset:S,notificationIndex:x,stackInThreshold:C,props:R,duration:A=4.5,showProgress:O,hovering:P,pauseOnHover:L=!0,onClick:D,onMouseEnter:N,onMouseLeave:k,onClose:U}=t,[F,V]=_.useState(0),G=`${n}-notice`,[Z,K,J]=Nme(E),H=ii(()=>{K.onClose?.(),U?.()}),[Y,ee]=_.useState(!1),[fe,ue]=Dme(A,H,V),z=100-Math.min(Math.max(F*100,0),100),Q=c?.progress||$me;_.useEffect(()=>{L&&(P?ue():Y||fe())},[P,Y,ue,fe,L]);function ae(ot){ee(!0),L&&ue(),N?.(ot)}function de(ot){ee(!1),L&&!P&&fe(),k?.(ot)}
166function be(ot){ot.preventDefault(),ot.stopPropagation(),H()}const Se=_.useRef(S);S!==void 0&&(Se.current=S);const je=_.useRef(x);x!==void 0&&(je.current=x);const Ne=S??Se.current,ze=x??je.current??0,tt=u!=null?_.createElement("div",{className:Be(`${G}-title`,s?.title),style:a?.title},u):null,Je=h!=null?_.createElement("div",{className:Be(`${G}-description`,s?.description),style:a?.description},h):null,We=tt!==null,Ve=Je!==null;let Pt=null;We&&Ve?Pt=_.createElement("div",{className:Be(`${G}-section`,s?.section),style:a?.section},tt,Je):Pt=tt||Je,p!=null&&(Pt=_.createElement("div",{className:Be(`${G}-wrapper`,s?.wrapper),style:a?.wrapper},_.createElement("div",{className:Be(`${G}-icon`,s?.icon),style:a?.icon},p),Pt));const dt=v?_.createElement("div",{className:Be(`${G}-actions`,s?.actions),style:a?.actions},v):null,$e={"--notification-index":ze,...a?.root,...i};Ne!==void 0&&($e["--notification-y"]=`${Ne}px`);const vt=y??R?.role??"alert";return _.createElement("div",UC({},R,{ref:e,role:vt,"data-notification-index":ze,className:Be(G,r,s?.root,{[`${G}-closable`]:Z,[`${G}-stack-in-threshold`]:C}),style:$e,onClick:D,onMouseEnter:ae,onMouseLeave:de}),Pt,dt,Z&&_.createElement("button",UC({className:Be(`${G}-close`,s?.close),"aria-label":"Close"},J,{style:a?.close,onClick:be}),K.closeIcon),O&&typeof A=="number"&&A>0&&_.createElement(Q,{className:Be(`${G}-progress`,s?.progress),percent:z,style:a?.progress}))}),Wq=_.createContext({}),Gq=({children:t,classNames:e})=>{const n=_.useMemo(()=>({classNames:e}),[e]);return _.createElement(Wq.Provider,{value:n},t)};function t3(){return t3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},t3.apply(this,arguments)}const Fme=_.forwardRef((t,e)=>{const{listPrefixCls:n,height:r,topNoticeHeight:i=0,topNoticeWidth:s=0,className:a,style:c,...u}=t,h=`${n}-content`,p=_.useRef(r),v=p.current,y=r<v?"decrease":"increase";p.current=r;const E={...c,height:r,"--top-notificiation-height":`${i}px`,"--top-notificiation-width":`${s}px`};return _.createElement("div",t3({},u,{className:Be(h,`${h}-${y}`,a),style:E,ref:e}))});function BC(){return BC=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},BC.apply(this,arguments)}const Kq=["wrapper","root","icon","section","title","description","actions","close","progress"];function Ume(t){return Kq.reduce((e,n)=>(e[n]=Be(...t.map(r=>r?.[n])),e),{})}function Bme(t){return Kq.reduce((e,n)=>(e[n]=Object.assign({},...t.map(r=>r?.[n])),e),{})}function jme(t,e){const n=String(e),r=t.findIndex(i=>i.key===n);if(r!==-1)return t.length-r-1}const Hme=t=>{const{config:e,components:n,contextClassNames:r,classNames:i,styles:s,className:a,style:c,nodeRef:u,listHovering:h,stackEnabled:p,pauseOnHover:v,setNodeSize:y,onNoticeClose:E,...S}=t,{key:x,placement:C,...R}=e,A=String(x),O=_.useCallback(L=>{y(A,L)},[y,A]),P=vb(u,O);return _.createElement(qq,BC({},R,S,{ref:P,className:Be(r?.notice,e.className,a),style:{...c,...e.style},classNames:Ume([i,e.classNames]),styles:Bme([s,e.styles]),components:{...n,...e.components},hovering:p&&h,pauseOnHover:e.pauseOnHover??v,onClose:()=>{e.onClose?.(),E?.(x)}}))},zme=t=>{const{configList:e=[],prefixCls:n="rc-notification",pauseOnHover:r,classNames:i,styles:s,components:a,stack:c,motion:u,placement:h,className:p,style:v,onNoticeClose:y,onAllRemoved:E}=t,{classNames:S}=_.useContext(Wq),x=_.useMemo(()=>e.map(ee=>({config:ee,key:String(ee.key)})),[e]),C=typeof u=="function"?u(h):u,[R,{offset:A,threshold:O}]=Mme(c),[P,L]=_.useState(!1),D=R&&(P||x.length<=O),N=_.useMemo(()=>{if(!(!R||D))return{offset:A,threshold:O}},[D,A,R,O]),[k,U]=_.useState(0),F=_.useRef(null),[V,G,Z,K,J]=kme(e,N,k),H=!!e.length;_.useEffect(()=>{const ee=F.current;if(!ee)return;const{gap:fe,rowGap:ue}=window.getComputedStyle(ee),z=parseFloat(ue||fe)||0;U(Q=>Q===z?Q:z)},[H]);const Y=`${n}-list`;return _.createElement("div",{className:Be(n,Y,`${n}-${h}`,S?.list,p,i?.list,{[`${n}-stack`]:R,[`${n}-stack-expanded`]:D,[`${Y}-hovered`]:P}),onMouseEnter:()=>{L(!0)},onMouseLeave:()=>{L(!1)},style:{...s?.list,...v}},_.createElement(Fme,{listPrefixCls:Y,height:Z,topNoticeHeight:K,topNoticeWidth:J,className:i?.listContent,style:s?.listContent,ref:F},_.createElement(Cge,BC({component:!1,keys:x,motionAppear:!0},C,{onAllRemoved:()=>{h&&E?.(h)}}),({config:ee,className:fe,style:ue},z)=>{const{key:Q}=ee,ae=String(Q),de=jme(x,Q),be=R&&de!==void 0&&de<O;return _.createElement(Hme,{key:Q,config:ee,components:a,contextClassNames:S,classNames:i,styles:s,className:fe,style:ue,nodeRef:z,prefixCls:n,offset:V.get(ae),notificationIndex:de,stackInThreshold:be,listHovering:P,stackEnabled:R,pauseOnHover:r,setNodeSize:G,onNoticeClose:y})})))},Vme=_.forwardRef((t,e)=>{const{prefixCls:n="rc-notification",container:r,motion:i,maxCount:s,pauseOnHover:a,classNames:c,styles:u,components:h,className:p,style:v,onAllRemoved:y,stack:E,renderNotifications:S}=t,[x,C]=_.useState([]),[R,A]=_.useState({}),O=_.useRef(!1);_.useImperativeHandle(e,()=>({open:D=>{C(N=>{let k=[...N];const U=k.findIndex(V=>V.key===D.key),F={...D};return U>=0?(F.times=(N[U]?.times??0)+1,k[U]=F):(F.times=0,k.push(F)),s&&s>0&&k.length>s&&(k=k.slice(-s)),k})},close:D=>{C(N=>N.filter(k=>k.key!==D))},destroy:()=>{C([])}})),_.useEffect(()=>{const D={};x.forEach(N=>{const k=N.placement??"topRight";D[k]=D[k]||[],D[k].push(N)}
166),Object.keys(R).forEach(N=>{D[N]=D[N]||[]}),A(D)},[x]);const P=ii(D=>{A(N=>{const k={...N};return(k[D]||[]).length||delete k[D],k})});if(_.useEffect(()=>{Object.keys(R).length>0?O.current=!0:O.current&&(y?.(),O.current=!1)},[R,y]),!r)return null;const L=Object.keys(R);return xP.createPortal(_.createElement(_.Fragment,null,L.map(D=>{const N=_.createElement(zme,{key:D,configList:R[D],placement:D,prefixCls:n,pauseOnHover:a,classNames:c,styles:u,components:h,className:p?.(D),style:v?.(D),motion:i,stack:E,onNoticeClose:k=>{C(U=>U.filter(F=>F.key!==k))},onAllRemoved:P});return S?_.cloneElement(S(N,{prefixCls:n,key:D}),{key:D}):N})),r)}),qme=()=>document.body;let V6=0;function Wme(...t){const e={};return t.forEach(n=>{n&&Object.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(e[r]=i)})}),e}function Yq(t={}){const{getContainer:e=qme,motion:n,prefixCls:r,placement:i,closable:s,duration:a,showProgress:c,pauseOnHover:u,classNames:h,styles:p,components:v,maxCount:y,className:E,style:S,onAllRemoved:x,stack:C,renderNotifications:R}=t,A={placement:i,closable:s,duration:a,showProgress:c},[O,P]=_.useState(),L=_.useRef(null),[D,N]=_.useState([]),k=_.createElement(Vme,{container:O,ref:L,prefixCls:r,motion:n,maxCount:y,pauseOnHover:u,classNames:h,styles:p,components:v,className:E,style:S,onAllRemoved:x,stack:C,renderNotifications:R}),U=ii(V=>{const G=Wme(A,V);(G.key===null||G.key===void 0)&&(G.key=`rc-notification-${V6}`,V6+=1),N(Z=>[...Z,{type:"open",config:G}])}),F=_.useMemo(()=>({open:U,close:V=>{N(G=>[...G,{type:"close",key:V}])},destroy:()=>{N(V=>[...V,{type:"destroy"}])}}),[]);return _.useEffect(()=>{P(e())}),_.useEffect(()=>{L.current&&D.length&&(D.forEach(V=>{switch(V.type){case"open":L.current?.open(V.config);break;case"close":L.current?.close(V.key);break;case"destroy":L.current?.destroy();break}}),N(V=>{const G=V.filter(Z=>!D.includes(Z));return G.length===V.length?V:G}))},[D]),[F,k]}const Xq=(t,e)=>_.useMemo(()=>{const n=t??e;return n?{...Oi(e)?e:{},...Oi(n)?n:{}}:!1},[t,e]);function Qq(t,e){return{...hi(t)&&{"--notification-top":At(t)},...hi(e)&&{"--notification-bottom":At(e)}}}function Gme(t){return{motionName:`${t}-fade`}}function Kme(t,e,n){return typeof t<"u"?t:typeof e?.closeIcon<"u"?e.closeIcon:n?.closeIcon}var Yme={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function n3(){return n3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n3.apply(this,arguments)}const Xme=(t,e)=>_.createElement(wl,n3({},t,{ref:e,icon:Yme})),GP=_.forwardRef(Xme);function Tw(...t){return t.find(e=>e!==void 0)}const jC=t=>{if(!t)return;const{closable:e,closeIcon:n}=t;return{closable:e,closeIcon:n}},Zq={},q6=(t,e)=>{if(!t&&(t===!1||e===!1||e===null))return!1;if(!hi(t)&&!hi(e))return null;let n={closeIcon:typeof e!="boolean"&&hi(e)?e:void 0};return Oi(t)&&(n={...n,...t}),n},Qme=(t,e,n)=>t===!1?!1:t?ZN(n,e,t):e===!1?!1:e?ZN(n,e):n.closable?n:!1,Zme=(t,e,n)=>{const{closeIconRender:r}=e,{closeIcon:i,...s}=t;let a=i;const c=yp(s,!0);return hi(a)&&(r&&(a=r(a)),a=Te.isValidElement(a)?Te.cloneElement(a,{"aria-label":n,...a.props,...c}):Te.createElement("span",{"aria-label":n,...c},a)),[a,c]},Jq=(t,e,n=Zq,r="Close")=>{const i=q6(t?.closable,t?.closeIcon),s=q6(e?.closable,e?.closeIcon),a={closeIcon:Te.createElement(Lp,null),...n},c=Qme(i,s,a),u=typeof c!="boolean"?!!c?.disabled:!1;if(c===!1)return[!1,null,u,{}];const[h,p]=Zme(c,a,r);return[!0,h,u,p]},Jme=(t,e,n=Zq)=>{const[r]=Zx("global",mf.global);return Te.useMemo(()=>Jq(t,e,{closeIcon:Te.createElement(Lp,null),...n},r.close),[t,e,n,r.close])},r3=(t,e)=>{let n={};return Oi(t)&&(n=t),typeof t=="boolean"&&(n={enabled:t}),n.closable===void 0&&e!==void 0&&(n.closable=e),n},eve=(t,e,n,r)=>_.useMemo(()=>{const i=r3(t,r),s=r3(e),a={blur:!1,...s,...i,closable:i.closable??r??s.closable??!0},c=a.blur?`${n}-mask-blur`:void 0;return[a.enabled!==!1,{mask:c},!!a.closable]},[t,e,n,r]),W6=t=>t==="horizontal"||t==="vertical",tve=(t,e,n)=>_.useMemo(()=>{const r=W6(t);let i;return r?i=t:typeof e=="boolean"?i=e?"vertical":"horizontal":i=W6(n)?n:"horizontal",[i,i==="vertical"]},[n,t,e]),nve=()=>{const[t,e]=_.useState([]),n=_.useCallback(r=>(e(i=>[].concat(Cs(i),[r])),()=>{e(i=>i.filter(s=>s!==r))}),[]);return[t,n]},eW=Te.createContext(void 0),Gd=100,rve=10,KP=Gd*rve,tW={Modal:Gd,Drawer:Gd,Popover:Gd,Popconfirm:Gd,Tooltip:Gd,Tour:Gd,FloatButton:Gd},ive={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},sve=t=>t in tW,ove=(t,e)=>{const[,n]=Pp(),r=Te.useContext(eW),i=sve(t);let s;if(e!==void 0)s=[e,e];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+tW[t]:a+=ive[t],s=[r===void 0?e:a,a]}return s},ave=t=>{const{motionDurationMid:e,motionEaseInOut:n}=t,r=`${e} ${n}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(i=>`${i} ${r}`).join(", ")}},nW=(t,e)=>{const{componentCls:n,antCls:r,colorSuccess:i,colorInfo:s,colorWarning:a,c
166olorError:c,colorTextHeading:u,colorText:h,boxShadow:p,borderRadiusLG:v,fontSize:y,lineHeight:E,notificationBg:S,notificationPadding:x,notificationMarginEdge:C,margin:R,calc:A}=t,O=`${n}-notice`,[P,L]=Ep(r,"notification");return{[O]:{position:"absolute",width:e.width,maxWidth:`calc(100vw - ${At(A(C).mul(2).equal())})`,padding:x,pointerEvents:"auto",[P("icon-font-size")]:e.iconFontSize,[P("title-font-size")]:e.titleFontSize,[P("title-line-height")]:e.titleLineHeight,boxSizing:"border-box",color:h,background:S,borderRadius:v,boxShadow:p,fontSize:y,lineHeight:E,wordWrap:"break-word",overflow:"visible",...ave(t),...e.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:A(R).mul(-1).equal(),height:R,content:'""'},...e.typeStyle&&{"&-success":{background:L("color-success-bg",S)},"&-error":{background:L("color-error-bg",S)},"&-info":{background:L("color-info-bg",S)},"&-warning":{background:L("color-warning-bg",S)}}},[`${O}-wrapper`]:{display:"flex",...e.contentStyle},[`${O}-title`]:{color:u,fontSize:L("title-font-size"),lineHeight:L("title-line-height")},[`${O}-icon`]:{flex:"none",fontSize:L("icon-font-size"),lineHeight:1,[`&${O}-icon-success`]:{color:i},[`&${O}-icon-info, &${O}-icon-loading`]:{color:s},[`&${O}-icon-warning`]:{color:a},[`&${O}-icon-error`]:{color:c}}}},rW=t=>{const{componentCls:e,progressBg:n,notificationProgressHeight:r,fontSize:i,borderRadiusLG:s,width:a,notificationIconSize:c,colorText:u,motionDurationMid:h,fontSizeLG:p,lineHeightLG:v,marginSM:y,marginXS:E,paddingLG:S,notificationPaddingVertical:x,notificationPaddingHorizontal:C,notificationCloseButtonSize:R,colorIcon:A,borderRadiusSM:O,colorIconHover:P,colorBgTextHover:L,colorBgTextActive:D}=t,N=`${e}-notice`;return{...nW(t,{width:a,iconFontSize:c,titleFontSize:p,titleLineHeight:v,contentStyle:{alignItems:"flex-start",gap:y},typeStyle:!0}),[`${N}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:E,minWidth:0},[`${N}-description`]:{color:u,fontSize:i},[`${N}-closable ${N}-title`]:{paddingInlineEnd:S},[`${N}-close`]:{position:"absolute",top:x,insetInlineEnd:C,display:"flex",alignItems:"center",justifyContent:"center",width:R,height:R,color:A,background:"none",border:"none",borderRadius:O,outline:"none",transition:["color","background-color"].map(k=>`${k} ${h}`).join(", "),"&:hover":{color:P,backgroundColor:L},"&:active":{backgroundColor:D},...wv(t)},[`${N}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${At(s)} * 2)`,blockSize:r,border:0,left:{_skip_check_:!0,value:s},right:{_skip_check_:!0,value:s},"&, &::-webkit-progress-bar":{borderRadius:s,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:n},"&::-webkit-progress-value":{borderRadius:s,background:n}},[`${N}-actions`]:{float:"right",marginTop:y}}},lve=t=>{const{componentCls:e,width:n}=t,r=`${e}-notice`,i=`${r}-actions`,s=rW(t);return{[`${r}-pure-panel`]:{width:n,maxWidth:"100%",...s,[r]:{...s[r],position:"relative",width:"100%",maxWidth:"100%"},[i]:{...s[i],float:"none",textAlign:"end"}}}},cve=t=>{const{componentCls:e}=t;return{[e]:rW(t)}},uve=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],dve="--notification-margin-edge",fve=(t,e)=>({blockEnd:t==="top"?"bottom":"top",inlineEnd:e==="left"?"right":"left"}),G6=t=>{const e=t?.x??"0",n=t?.y??"0";return`translate3d(${e}, ${n}, 0) scale(var(--notification-scale, 1))`},hve=(t,e)=>{const n=t.startsWith("bottom")?"bottom":"top",r=t.endsWith("Right")?"right":"left",{blockEnd:i,inlineEnd:s}=fve(n,r),a=t==="top"||t==="bottom",c=t==="top"||t.endsWith("Left")?`-${e}`:e;return{placement:t,vertical:n,blockEnd:i,horizontal:r,inlineEnd:s,motionOffset:a?{x:"-50%",y:c}:{x:c},baseMotionOffset:a?{x:"-50%"}:void 0,isCenterPlacement:a}},pve=t=>t==="bottom"?"column-reverse":"column",gve=t=>{const e=`var(${dve}, 0px)`;return`calc(var(--notification-${t}, ${e}) - ${e})`},mve=t=>t==="bottom"?"center top":"center bottom",iW=t=>At(t.calc(t.marginXXL).mul(-1).equal()),vve=t=>{const e=iW(t);return`inset(${e} ${e} ${e} ${e})`},yve=(t,e)=>{const n=iW(t);return e==="bottom"?`inset(${n} ${n} 50% ${n})`:`inset(50% ${n} ${n} ${n})`},_ve=(t,e)=>{const{componentCls:n}=t,{placement:r,vertical:i,blockEnd:s,horizontal:a,inlineEnd:c,isCenterPlacement:u}=e,h=`${n}-notice`,p=`${h}${n}-fade`,v=G6(e.motionOffset),y=G6(e.baseMotionOffset),E=mve(i);return{[`&${n}-${r}`]:{[i]:gve(i),[s]:"auto",display:"flex",flexDirection:pve(i),...u?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[a]:0,[c]:"auto"},[h]:{[i]:"var(--notification-y, 0)",...u?{left:"50%",transform:y}:{[a]:"var(--notification-x, 0)"},transformOrigin:E},[`${p}-appear-prepare, ${p}-enter-prepare`]:{opacity:0,transform:v,transition:"none"},[`${p}-appear-start, ${p}-enter-start`]:{opacity:0,transform:v},[`${p}-appear-active, ${p}-enter-active`]:{opacity:1,transform:y},[`${p}-leave-start`]:{opacity:1,transform:y},[`${p}-leave-active`]:{opacity:0,transform:v},[`&${n}-stack:not(${n}-stack-expanded)`]:{[h]:{clipPath:yve(t,i)},[`${h}[data-notification-index='0']`]:{clipPath:vve(t)}}}}},bve=(t,e=uve)=>{const{notificationMotionOffset:n}=t,r=At(n);return{...e.reduce((i,s)=>({...i,..._ve(t,hve(s,r))}),{})}},Eve=t=>{const{componentCls:e}=t;return{[e]:bve(t)}},Sve=3,sW=t=>({zIndexPopup:t.zIndexPopupBase+KP+50,width:384,progressBg:`linear-gradient(90deg, ${t.colorPrimaryBorderHover}, ${t.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),YP=t=>{const e=t.paddingMD,n=t.paddingLG;return Ma(t,{notificationBg:t.colorBgElevated,notificationPaddingVertical:e,notificationPaddingHorizontal:n,notificationIconSize:t.calc(t.fontSizeLG).mul(t.lineHeightLG).equal(),notificationCloseButtonSize:t.calc(t.controlHeightLG).mul(.55).equal(),notificationMarginBottom:t.margin,notificationPadding:`${At(t.paddingMD)} ${At(t.paddingContentHorizontalLG)}`,notificationMarginEdge:t.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},wve=t=>`inset(${t} ${t} ${t} ${t})`,Cve=t=>{const{componentCls:e,motionDurationMid:n,motionDurationSlow:r,motionEaseInOut:i}=t,a=`${`${e}-list`}-content`;return{[a]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:t.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${a}-decrease`]:{transition:`height calc(${r} * 2) ${i} ${n}`}},[`${e}
166-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},xve=(t,e)=>{const{componentCls:n,notificationMarginEdge:r}=t,i="--notification-margin-edge",s=`${n}-notice`,a=`${n}-list`,c=e.listWidthKey?t.calc(t[e.listWidthKey]).add(t.calc(r).mul(2)).equal():"100%",u=e.stackVisibleCount??Sve,h=`${s}:nth-last-child(n + ${u+1})`,p=At(t.calc(t.marginXXL).mul(-1).equal()),v=wve(p);return{[n]:{...HP(t),[i]:At(r),position:"fixed",zIndex:t.zIndexPopup,width:c,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${n}-hook-holder`]:{position:"relative"},[`&${a}`]:{maxHeight:"100vh",padding:`var(${i})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...Cve(t),[`&${n}-stack`]:{[s]:{clipPath:v},[`&:not(${n}-stack-expanded)`]:{[s]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${s}:not(${s}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[h]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${s}-actions`]:{float:"left"}}}}};Yx(["Notification","PurePanel"],t=>lve(YP(t)),sW);const oW=(t,e)=>{const n=e.itemStyle??cve;return[xve(t,e),n(t),Eve(t)]},Tve=Sl("Notification",t=>{const e=YP(t);return oW(e,{listWidthKey:"width"})},sW),aW=t=>{const e=t.calc(t.controlHeightLG).sub(t.calc(t.fontSize).mul(t.lineHeight)).div(2).equal(),n=t.paddingSM;return Ma(YP(t),{notificationBg:t.contentBg,notificationPadding:t.contentPadding,notificationPaddingVertical:e,notificationPaddingHorizontal:n})},lW=t=>({zIndexPopup:t.zIndexPopupBase+KP+10,contentBg:t.colorBgElevated,contentPadding:`${(t.controlHeightLG-t.fontSize*t.lineHeight)/2}px ${t.paddingSM}px`}),XP=t=>{const{fontSize:e,fontSizeLG:n,lineHeight:r}=t;return nW(t,{width:"max-content",iconFontSize:n,titleFontSize:e,titleLineHeight:r,contentStyle:{alignItems:"center",gap:t.marginXS},noticeStyle:{zIndex:1}})},Rve=t=>{const{componentCls:e}=t,n=`${e}-notice`,r=`${e}-list-content`,i=XP(t),{"&::after":s,...a}=i[n],c={...a,position:"absolute",zIndex:-1,left:"50%",height:t.calc(t.marginXS).mul(2).equal(),padding:0,boxShadow:t.boxShadowTertiary,opacity:0,pointerEvents:"none",transform:"translateX(-50%) translateY(100%)",transition:[`opacity ${t.motionDurationFast} ${t.motionEaseInOut}`,`transform ${t.motionDurationFast} ${t.motionEaseInOut}`,`width ${t.motionDurationSlow} ${t.motionEaseInOut}`].join(", "),content:'""'};return{[e]:{[`&${e}-stack`]:{[r]:{isolation:"isolate","&::before":{...c,top:`calc(var(--top-notificiation-height) - ${At(t.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${At(t.margin)})`},"&::after":{...c,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${At(t.calc(t.margin).mul(2).equal())})`}},[`&:not(${e}-stack-expanded)`]:{[r]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}},Ave=t=>{const{componentCls:e}=t,n=`${e}-notice`,r=XP(t);return{[`${n}-pure-panel`]:{width:"max-content",maxWidth:"100%",...r,[n]:{...r[n],position:"relative",width:"max-content",maxWidth:"100%"}}}},Ove=Yx(["Message","PurePanel"],t=>Ave(aW(t)),lW),Ive=t=>({[t.componentCls]:XP(t)}),cW=Sl("Message",t=>{const e=aW(t);return[oW(e,{stackVisibleCount:1,itemStyle:Ive}),Rve(e)]},lW),Pve={info:_.createElement(Xx,null),success:_.createElement(Eb,null),error:_.createElement(Sb,
166null),warning:_.createElement(wb,null),loading:_.createElement(GP,null)},uW=(t,e)=>e||t&&Pve[t]||null,sPe=t=>{const{prefixCls:e,className:n,style:r,type:i,icon:s,content:a,classNames:c,styles:u,...h}=t,{getPrefixCls:p,className:v,style:y,classNames:E,styles:S}=El("message"),x=e||p("message"),C=`${x}-notice`,R=Qx(x),[A,O]=cW(x,R),[P,L]=_f([E,c],[S,u],{props:t}),D=uW(i,s),N=i?`${C}-icon-${i}`:void 0,k={wrapper:Be(i&&`${x}-${i}`,P.wrapper),icon:Be(N,P.icon),title:P.title},U={wrapper:L.wrapper,icon:L.icon,title:L.title};return _.createElement("div",{className:Be(`${C}-pure-panel`,A,n,O,R,P.root),style:L.root},_.createElement(Ove,{prefixCls:x}),_.createElement(qq,{...h,prefixCls:x,className:v,style:{...y,...r},duration:null,icon:D,title:a,classNames:k,styles:U}))};function Lve(t,e){return{motionName:e??`${t}-fade`}}function kve(t){let e;const n=new Promise(i=>{e=t(()=>{i(!0)})}),r=()=>{e?.()};return r.then=(i,s)=>n.then(i,s),r.promise=n,r}const Mve=8,Dve=3,Nve=!1,$ve=({children:t,prefixCls:e})=>{const n=Qx(e),[r,i]=cW(e,n);return _.createElement(Gq,{classNames:{list:Be(r,i,n)}},t)},Fve=(t,{prefixCls:e,key:n})=>_.createElement($ve,{prefixCls:e,key:n},t),Uve=_.forwardRef((t,e)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:s,duration:a=Dve,rtl:c,classNames:u,styles:h,transitionName:p,pauseOnHover:v=!0,stack:y,onAllRemoved:E}=t,{getPrefixCls:S,direction:x,getPopupContainer:C}=El("message"),{message:R}=_.useContext(wr),A=r||S("message"),[O,P]=_f([R?.classNames,u],[R?.styles,h],{props:t}),L=()=>Qq(n??Mve),D=()=>Be({[`${A}-rtl`]:c??x==="rtl"}),N=()=>Lve(A,p),k=Xq(y,Nve),[U,F]=Yq({prefixCls:A,style:L,className:D,motion:N,closable:!1,duration:a,getContainer:()=>i?.()||C?.()||document.body,maxCount:s,onAllRemoved:E,classNames:O,styles:P,renderNotifications:Fve,pauseOnHover:v,stack:k});return _.useImperativeHandle(e,()=>({...U,prefixCls:A,message:R})),F});let K6=0;function Bve(t){const e=_.useRef(null);return[_.useMemo(()=>{const r=u=>{e.current?.close(u)},i=u=>{if(!e.current){const J=()=>{};return J.then=()=>{},J}const{open:h,prefixCls:p,message:v}=e.current,y=v?.className||{},E=v?.style||{},S=`${p}-notice`,{content:x,icon:C,type:R,key:A,className:O,style:P,onClose:L,classNames:D={},styles:N={},...k}=u;let U=A;hi(U)||(K6+=1,U=`antd-message-${K6}`);const F={...t,...u},V=av(D,{props:F}),G=av(N,{props:F}),Z=uW(R,C),K=R?`${S}-icon-${R}`:void 0;return kve(J=>(h({...k,key:U,icon:Z,title:x,classNames:{...V,wrapper:Be(R&&`${p}-${R}`,V.wrapper),icon:Be(K,V.icon)},styles:G,placement:"top",className:Be({[`${S}-${R}`]:R},O,y),style:{...E,...P},onClose:()=>{L?.(),J()}}),()=>{r(U)}))},a={open:i,destroy:u=>{u!==void 0?r(u):e.current?.destroy()}};return["info","success","warning","error","loading"].forEach(u=>{const h=(p,v,y)=>{let E;Oi(p)&&"content"in p?E=p:E={content:p};let S,x;is(v)?x=v:(S=v,x=y);const C={onClose:x,duration:S,...E,type:u};return i(C)};a[u]=h}),a},[]),_.createElement(Uve,{key:"message-holder",...t,ref:e})]}function jve(t){return Bve(t)}const JR=()=>({height:0,opacity:0}),Y6=t=>
166({height:t?.scrollHeight??0,opacity:t?1:0}),Hve=t=>({height:t?.offsetHeight??0}),eA=(t,e)=>e?.deadline===!0||Oq(e)&&e.propertyName==="height",oPe=(t=j1)=>({motionName:`${t}-motion-collapse`,onAppearStart:JR,onEnterStart:JR,onAppearActive:Y6,onEnterActive:Y6,onLeaveStart:Hve,onLeaveActive:JR,onAppearEnd:eA,onEnterEnd:eA,onLeaveEnd:eA,motionDeadline:500}),HC=(t,e,n)=>n!==void 0?n:`${t}-${e}`,zve=t=>{const{componentCls:e,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:i,motionEaseOutCirc:s,antCls:a}=t,[,c]=Ep(a,"wave");return{[e]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:c("color",n),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(u=>`${u} ${s}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(u=>`${u} ${r} ${i}`).join(",")}}}}},Vve=zpe("Wave",zve),dW=`${j1}-wave-target`,X6=t=>t?ap(t)&&t!=="#fff"&&t!=="#ffffff"&&t!=="rgb(255, 255, 255)"&&t!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/i.test(t)&&!/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i.test(t)&&t!=="transparent"&&t!=="canvastext":!1;function qve(t,e=null){const n=getComputedStyle(t),{borderTopColor:r,borderColor:i,backgroundColor:s}=n;return e&&X6(n[e])?n[e]:[r,i,s].find(X6)??null}function tA(t){return Number.isNaN(t)?0:t}const Wve=t=>{const{className:e,target:n,component:r,colorSource:i}=t,s=_.useRef(null),{getPrefixCls:a}=_.useContext(wr),c=a(),[u]=Ep(c,"wave"),[h,p]=_.useState(null),[v,y]=_.useState([]),[E,S]=_.useState(0),[x,C]=_.useState(0),[R,A]=_.useState(0),[O,P]=_.useState(0),[L,D]=_.useState(!1),N={left:E,top:x,width:R,height:O,borderRadius:v.map(F=>`${F}px`).join(" ")};h&&(N[u("color")]=h);function k(){const F=getComputedStyle(n);p(qve(n,i));const V=F.position==="static",{borderLeftWidth:G,borderTopWidth:Z}=F;S(V?n.offsetLeft:tA(-Number.parseFloat(G))),C(V?n.offsetTop:tA(-Number.parseFloat(Z))),A(n.offsetWidth),P(n.offsetHeight);const{borderTopLeftRadius:K,borderTopRightRadius:J,borderBottomLeftRadius:H,borderBottomRightRadius:Y}=F;y([K,J,Y,H].map(ee=>tA(Number.parseFloat(ee))))}if(_.useEffect(()=>{if(n){const F=gl(()=>{k(),D(!0)});let V;return typeof ResizeObserver<"u"&&(V=new ResizeObserver(k),V.observe(n)),()=>{gl.cancel(F),V?.disconnect()}}},[n]),!L)return null;const U=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(dW);return _.createElement(Tc,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(F,V)=>{if(V.deadline||Oq(V)&&V.propertyName==="opacity"){const G=s.current?.parentElement;$V(G).then(()=>{G?.remove()})}return!1}},({className:F},V)=>_.createElement("div",{ref:Ap(s,V),className:Be(e,F,{"wave-quick":U}),style:N}))},Gve=(t,e)=>{const{component:n}=e;if(n==="Checkbox"&&!t.querySelector("input")?.checked)return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",t?.insertBefore(r,t?.firstChild),NV(_.createElement(Wve,{...e,target:t}),r)},Kve=(t,e,n,r)=>{const{wave:i}=_.useContext(wr),[,s,a]=Pp(),c=ii(p=>{const v=t.current;if(i?.disabled||!v)return;const y=v.querySelector(`.${dW}`)||v,{showEffect:E}=i||{};(E||Gve)(y,{className:e,token:s,component:n,event:p,hashId:a,colorSource:r})}),u=_.useRef(null);return _.useEffect(()=>()=>{gl.cancel(u.current)},[]),p=>{gl.cancel(u.current),u.current=gl(()=>{c(p)})}},Q6={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},Yve=t=>{const{children:e,disabled:n,component:r,colorSource:i}=t,{getPrefixCls:s,wave:a}=_.useContext(wr),c=_.useRef(null),u=s("wave"),h=Vve(u),p=Kve(c,Be(u,h),r,i);if(Te.useEffect(()=>{const y=c.current;if(!y||y.nodeType!==window.Node.ELEMENT_NODE||n)return;const E=C=>{!IP(C.target)||!y.getAttribute||y.getAttribute("disabled")||y.disabled||y.className.includes("disabled")&&!y.className.includes("disabled:")||y.getAttribute("aria-disabled")==="true"||y.className.includes("-leave")||p(C)},S=a?.triggerType,x=S&&S in Q6?Q6[S]:"click";return y.addEventListener(x,E,!0),()=>{y.removeEventListener(x,E,!0)}},[n,a?.triggerType]),!Te.isValidElement(e))return e??null;const v=jx(e)?Ap(Hx(e),c):c;return NC(e,{ref:v})},Cb=t=>{const e=Te.useContext(lv);return Te.useMemo(()=>t?ap(t)?t??e:is(t)?t(e):e:e,[t,e])},Xve=t=>{const{componentCls:e}=t;return{[e]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},Qve=Sl(["Space","Compact"],Xve,()=>({}),{resetStyle:!1}),Jx=_.createContext(null),Zve=(t,e)=>{const n=_.useContext(Jx),r=_.useMemo(()=>
166{if(!n)return"";const{compactDirection:i,isFirstItem:s,isLastItem:a}=n,c=i==="vertical"?"-vertical-":"-";return Be(`${t}-compact${c}item`,{[`${t}-compact${c}first-item`]:s,[`${t}-compact${c}last-item`]:a,[`${t}-compact${c}item-rtl`]:e==="rtl"})},[t,e,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},Jve=t=>{const{children:e}=t;return _.createElement(Jx.Provider,{value:null},e)},eye=t=>{const{children:e,...n}=t;return _.createElement(Jx.Provider,{value:_.useMemo(()=>n,[n])},e)},aPe=t=>{const{getPrefixCls:e,direction:n}=_.useContext(wr),{size:r,direction:i,orientation:s,block:a,prefixCls:c,className:u,rootClassName:h,children:p,vertical:v,...y}=t,[E,S]=tve(s,v,i),x=Cb(D=>r??D),C=e("space-compact",c),[R]=Qve(C),A=Be(C,R,{[`${C}-rtl`]:n==="rtl",[`${C}-block`]:a,[`${C}-vertical`]:S},u,h),O=_.useContext(Jx),P=sv(p),L=_.useMemo(()=>P.map((D,N)=>{const k=D?.key||`${C}-item-${N}`;return _.createElement(eye,{key:k,compactSize:x,compactDirection:E,isFirstItem:N===0&&(!O||O?.isFirstItem),isLastItem:N===P.length-1&&(!O||O?.isLastItem)},D)}),[P,O,E,x,C]);return P.length===0?null:_.createElement("div",{className:A,...y},L)},fW=_.createContext(void 0),tye=t=>{const{getPrefixCls:e,direction:n}=_.useContext(wr),{prefixCls:r,size:i,className:s,...a}=t,c=e("btn-group",r),[,,u]=Pp(),h=_.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),p=Be(c,{[`${c}-${h}`]:h,[`${c}-rtl`]:n==="rtl"},s,u);return _.createElement(fW.Provider,{value:i},_.createElement("div",{...a,className:p}))},Z6=/^[\u4E00-\u9FA5]{2}$/,i3=Z6.test.bind(Z6);function hW(t){return t==="danger"?{danger:!0}:{type:t}}function nA(t){return t==="text"||t==="link"}function nye(t,e,n,r){if(!hi(t)||t==="")return;const i=e?" ":"";return!ap(t)&&!kp(t)&&ap(t.type)&&i3(t.props.children)?NC(t,s=>{const a=Be(s.className,r)||void 0,c={...n,...s.style};return{...s,children:s.children.split("").join(i),className:a,style:c}}):ap(t)?Te.createElement("span",{className:r,style:n},i3(t)?t.split("").join(i):t):mme(t)?Te.createElement("span",{className:r,style:n},t):NC(t,s=>({...s,className:Be(s.className,r)||void 0,style:{...s.style,...n}}))}function rye(t,e,n,r){let i=!1;const s=[];return Te.Children.forEach(t,a=>{const c=ap(a)||kp(a);if(i&&c){const u=s.length-1,h=s[u];s[u]=`${h}${a}`}else s.push(a);i=c}),Te.Children.map(s,a=>nye(a,e,n,r))}["default","primary","danger"].concat(Cs(_b));const pW=_.forwardRef((t,e)=>{const{className:n,style:r,children:i,prefixCls:s}=t,a=Be(`${s}-icon`,n);return Te.createElement("span",{ref:e,className:a,style:r},i)}),J6=_.forwardRef((t,e)=>{const{prefixCls:n,className:r,style:i,iconClassName:s}=t,a=Be(`${n}-loading-icon`,r);return Te.createElement(pW,{prefixCls:n,className:a,style:i,ref:e},Te.createElement(GP,{className:s}))}),rA=()=>({width:0,opacity:0,transform:"scale(0)"}),iA=t=>({width:t.scrollWidth,opacity:1,transform:"scale(1)"}),iye=t=>{const{prefixCls:e,loading:n,existIcon:r,className:i,style:s,mount:a}=t,c=!!n;return r?Te.createElement(J6,{prefixCls:e,className:i,style:s}):Te.createElement(Tc,{visible:c,motionName:`${e}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:rA,onAppearActive:iA,onEnterStart:rA,onEnterActive:iA,onLeaveStart:iA,onLeaveActive:rA},({className:u,style:h},p)=>{const v={...s,...h};return Te.createElement(J6,{prefixCls:e,className:Be(i,u),style:v,ref:p})})},e7=t=>({animationDuration:t,animationFillMode:"both"}),gW=(t,e,n,r,i=!1)=>{const s=i?"&":"";return{[` 167 ${s}${t}-enter, 168 ${s}${t}-appear 169 `]:{...e7(r),animationPlayState:"paused"},[`${s}${t}-leave`]:{...e7(r),animationPlayState:"paused"},[` 170 ${s}${t}-enter${t}-enter-active, 171 ${s}${t}-appear${t}-appear-active 172 `]:{animationName:e,animationPlayState:"running"},[`${s}${t}-leave${t}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},sye=new eo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),oye=new eo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),aye=(t,e=!1)=>{const{antCls:n}=t,r=`${n}-fade`,i=e?"&":"";return[gW(r,sye,oye,t.motionDurationMid,e),{[` 173 ${i}${r}-enter, 174 ${i}${r}-appear 175 `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},lye=()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),cye=new eo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0}
175,"100%":{transform:"scale(1)",opacity:1}}),uye=new eo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),t7=new eo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),n7=new eo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),dye=new eo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),fye=new eo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),hye=new eo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),pye=new eo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),gye=new eo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}
175,"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),mye=new eo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),vye=new eo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),yye=new eo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),_ye={zoom:{inKeyframes:cye,outKeyframes:uye},"zoom-big":{inKeyframes:t7,outKeyframes:n7},"zoom-big-fast":{inKeyframes:t7,outKeyframes:n7},"zoom-left":{inKeyframes:hye,outKeyframes:pye},"zoom-right":{inKeyframes:gye,outKeyframes:mye},"zoom-up":{inKeyframes:dye,outKeyframes:fye},"zoom-down":{inKeyframes:vye,outKeyframes:yye}},bye=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:s}=_ye[e];return[gW(r,i,s,e==="zoom-big-fast"?t.motionDurationFast:t.motionDurationMid),{[` 176 ${r}-enter, 177 ${r}-appear 178 `]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},r7=(t,e)=>({[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineEndColor:e}}},"&:not(:first-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineStartColor:e}}}}}),Eye=t=>{const{componentCls:e,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:s}=t;return{[`${e}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:t.calc(r).mul(-1).equal(),[`&, & > ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[e]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${e}-icon-only`]:{fontSize:n}},r7(`${e}-primary`,i),r7(`${e}-danger`,s)]}},sA=t=>Math.round(Number(t||0)),Sye=t=>{if(t instanceof fi)return t;if(t&&typeof t=="object"&&"h"in t&&"b"in t){const{b:e,...n}=t;return{...n,v:e}}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t};class Y1 extends fi{constructor(e){super(Sye(e))}toHsbString(){const e=this.toHsb(),n=sA(e.s*100),r=sA(e.b*100),i=sA(e.h),s=e.a,a=`hsb(${i}, ${n}%, ${r}%)`,c=`hsba(${i}, ${n}%, ${r}%, ${s.toFixed(s===0?0:2)})`;return s===1?a:c}toHsb(){const{v:e,...n}=this.toHsv();return{...n,b:e,a:this.a}}}const wye=t=>t instanceof Y1?t:new Y1(t);wye("#1677ff");const Cye=(t,e)=>t?.replace(/[^0-9a-f]/gi,"").slice(0,e?8:6)||"",xye=(t,e)=>t?Cye(t,e):"";let Tye=(function(){function t(e){if(Op(this,t),this.cleared=!1,e instanceof t){this.metaColor=e.metaColor.clone(),this.colors=e.colors?.map(r=>({color:new t(r.color),percent:r.percent})),this.cleared=e.cleared;return}const n=Array.isArray(e);n&&e.length?(this.colors=e.map(({color:r,percent:i})=>({color:new t(r),percent:i})),this.metaColor=new Y1(this.colors[0].color.metaColor)):this.metaColor=new Y1(n?"":e),(!e||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Ip(t,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return xye(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const s=n.colors[i];return r.percent===s.percent&&r.color.equals(s.color)}):this.toHexString()===n.toHexString()}}])})();
178const Rye=(t,e)=>{const{r:n,g:r,b:i,a:s}=t.toRgb(),a=new Y1(t.toRgbString()).onBackground(e).toHsv();return s<=.5?a.v>.5:n*.299+r*.587+i*.114>192},mW=t=>{const{paddingInline:e,onlyIconSize:n,borderColorDisabled:r}=t;return Ma(t,{buttonPaddingHorizontal:e,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},vW=t=>{const e=t.contentFontSize??t.fontSize,n=t.contentFontSizeSM??t.fontSize,r=t.contentFontSizeLG??t.fontSizeLG,i=t.contentLineHeight??T2(e),s=t.contentLineHeightSM??T2(n),a=t.contentLineHeightLG??T2(r),c=Rye(new Tye(t.colorBgSolid),"#fff")?"#000":"#fff",u=_b.reduce((v,y)=>({...v,[`${y}ShadowColor`]:`0 ${At(t.controlOutlineWidth)} 0 ${z_(t[`${y}1`],t.colorBgContainer)}`}),{}),h=t.colorBgContainerDisabled,p=t.colorBgContainerDisabled;return{...u,fontWeight:400,iconGap:t.marginXS,defaultShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlTmpOutline}`,primaryShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlOutline}`,dangerShadow:`0 ${t.controlOutlineWidth}px 0 ${t.colorErrorOutline}`,primaryColor:t.colorTextLightSolid,dangerColor:t.colorTextLightSolid,borderColorDisabled:t.colorBorderDisabled,defaultGhostColor:t.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:t.colorBgContainer,paddingInline:t.paddingContentHorizontal-t.lineWidth,paddingInlineLG:t.paddingContentHorizontal-t.lineWidth,paddingInlineSM:8-t.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:t.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:t.colorText,textTextHoverColor:t.colorText,textTextActiveColor:t.colorText,textHoverBg:t.colorFillTertiary,defaultColor:t.colorText,defaultBg:t.colorBg
vendor: 9,876 bytes, line 178
178Container,defaultBorderColor:t.colorBorder,defaultBorderColorDisabled:t.colorBorder,defaultHoverBg:t.colorBgContainer,defaultHoverColor:t.colorPrimaryHover,defaultHoverBorderColor:t.colorPrimaryHover,defaultActiveBg:t.colorBgContainer,defaultActiveColor:t.colorPrimaryActive,defaultActiveBorderColor:t.colorPrimaryActive,solidTextColor:c,contentFontSize:e,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:s,contentLineHeightLG:a,paddingBlock:Math.max((t.controlHeight-e*i)/2-t.lineWidth,0),paddingBlockSM:Math.max((t.controlHeightSM-n*s)/2-t.lineWidth,0),paddingBlockLG:Math.max((t.controlHeightLG-r*a)/2-t.lineWidth,0),defaultBgDisabled:h,dashedBgDisabled:p}},Aye=t=>{const{componentCls:e,antCls:n,lineWidth:r}=t,[i,s]=Ep(n,"btn");return{[e]:[{[i("border-width")]:r,[i("border-color")]:"#000",[i("border-color-hover")]:s("border-color"),[i("border-color-active")]:s("border-color"),[i("border-color-disabled")]:s("border-color"),[i("border-style")]:"solid",[i("text-color")]:"#000",[i("text-color-hover")]:s("text-color"),[i("text-color-active")]:s("text-color"),[i("text-color-disabled")]:s("text-color"),[i("bg-color")]:"#ddd",[i("bg-color-hover")]:s("bg-color"),[i("bg-color-active")]:s("bg-color"),[i("bg-color-disabled")]:t.colorBgContainerDisabled,[i("bg-color-container")]:t.colorBgContainer,[i("shadow")]:"none"},{border:[s("border-width"),s("border-style"),s("border-color")].join(" "),color:s("text-color"),backgroundColor:s("bg-color"),[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":{border:[s("border-width"),s("border-style"),s("border-color-hover")].join(" "),color:s("text-color-hover"),backgroundColor:s("bg-color-hover")},"&:active":{border:[s("border-width"),s("border-style"),s("border-color-active")].join(" "),color:s("text-color-active"),backgroundColor:s("bg-color-active")}}},{[`&${e}-variant-solid`]:{[i("solid-bg-color")]:s("color-base"),[i("solid-bg-color-hover")]:s("color-hover"),[i("solid-bg-color-active")]:s("color-active"),[i("border-color")]:"transparent",[i("text-color")]:t.colorTextLightSolid,[i("bg-color")]:s("solid-bg-color"),[i("bg-color-hover")]:s("solid-bg-color-hover"),[i("bg-color-active")]:s("solid-bg-color-active"),boxShadow:s("shadow")},[`&${e}-variant-outlined, &${e}-variant-dashed`]:{[i("border-color")]:s("color-base"),[i("border-color-hover")]:s("color-hover"),[i("border-color-active")]:s("color-active"),[i("bg-color")]:s("bg-color-container"),[i("text-color")]:s("color-base"),[i("text-color-hover")]:s("color-hover"),[i("text-color-active")]:s("color-active"),boxShadow:s("shadow")},[`&${e}-variant-dashed`]:{[i("border-style")]:"dashed",[i("bg-color-disabled")]:t.dashedBgDisabled},[`&${e}-variant-filled`]:{[i("border-color")]:"transparent",[i("text-color")]:s("color-base"),[i("bg-color")]:s("color-light"),[i("bg-color-hover")]:s("color-light-hover"),[i("bg-color-active")]:s("color-light-active")},[`&${e}-variant-text, &${e}-variant-link`]:{[i("border-color")]:"transparent",[i("text-color")]:s("color-base"),[i("text-color-hover")]:s("color-hover"),[i("text-color-active")]:s("color-active"),[i("bg-color")]:"transparent",[i("bg-color-hover")]:"transparent",[i("bg-color-active")]:"transparent",[`&:disabled, &${t.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${e}-variant-text`]:{[i("bg-color-hover")]:s("color-light"),[i("bg-color-active")]:s("color-light-active")}},{[`&${e}-variant-link`]:{[i("color-base")]:t.colorLink,[i("color-hover")]:t.colorLinkHover,[i("color-active")]:t.colorLinkActive,[i("bg-color-hover")]:t.linkHoverBg},[`&${e}-color-primary`]:{[i("color-base")]:t.colorPrimary,[i("color-hover")]:t.colorPrimaryHover,[i("color-active")]:t.colorPrimaryActive,[i("color-light")]:t.colorPrimaryBg,[i("color-light-hover")]:t.colorPrimaryBgHover,[i("color-light-active")]:t.colorPrimaryBorder,[i("shadow")]:t.primaryShadow,[`&${e}-variant-solid`]:{[i("text-color")]:t.primaryColor,[i("text-color-hover")]:s("text-color"),[i("text-color-active")]:s("text-color")}},[`&${e}-color-dangerous`]:{[i("color-base")]:t.colorError,[i("color-hover")]:t.colorErrorHover,[i("color-active")]:t.colorErrorActive,[i("color-light")]:t.colorErrorBg,[i("color-light-hover")]:t.colorErrorBgFilledHover,[i("color-light-active")]:t.colorErrorBgActive,[i("shadow")]:t.dangerShadow,[`&${e}-variant-solid`]:{[i("text-color")]:t.dangerColor,[i("text-color-hover")]:s("text-color"),[i("text-color-active")]:s("text-color")}},[`&${e}-color-default`]:{[i("solid-bg-color")]:t.colorBgSolid,[i("solid-bg-color-hover")]:t.colorBgSolidHover,[i("solid-bg-color-active")]:t.colorBgSolidActive,[i("color-base")]:t.defaultBorderColor,[i("color-hover")]:t.defaultHoverBorderColor,[i("color-active")]:t.defaultActiveBorderColor,[i("color-light")]:t.colorFillTertiary,[i("color-light-hover")]:t.colorFillSecondary,[i("color-light-active")]:t.colorFill,[i("text-color")]:t.defaultColor,[i("text-color-hover")]:t.defaultHoverColor,[i("text-color-active")]:t.defaultActiveColor,[i("shadow")]:t.defaultShadow,[`&${e}-variant-outlined`]:{[i("bg-color-disabled")]:t.defaultBgDisabled},[`&${e}-variant-solid`]:{[i("text-color")]:t.solidTextColor,[i("text-color-hover")]:s("text-color"),[i("text-color-active")]:s("text-color")},[`&${e}-variant-filled, &${e}-variant-text`]:{[i("text-color-hover")]:s("text-color"),[i("text-color-active")]:s("text-color")},[`&${e}-variant-outlined, &${e}-variant-dashed`]:{[i("text-color")]:t.defaultColor,[i("text-color-hover")]:t.defaultHoverColor,[i("text-color-active")]:t.defaultActiveColor,[i("bg-color-container")]:t.defaultBg,[i("bg-color-hover")]:t.defaultHoverBg,[i("bg-color-active")]:t.defaultActiveBg},[`&${e}-variant-text`]:{[i("text-color")]:t.textTextColor,[i("text-color-hover")]:t.textTextHoverColor,[i("text-color-active")]:t.textTextActiveColor,[i("bg-color-hover")]:t.textHoverBg},[`&${e}-background-ghost`]:{[`&${e}-variant-outlined, &${e}-variant-dashed`]:{[i("text-color")]:t.defaultGhostColor,[i("border-color")]:t.defaultGhostBorderColor}}}},_b.map(a=>{const c=t[`${a}6`],u=t[`${a}1`],h=t[`${a}Hover`],p=t[`${a}2`],v=t[`${a}3`],y=t[`${a}Active`],E=t[`${a}ShadowColor`];return{[`&${e}-color-${a}`]:{[i("color-base")]:c,[i("color-hover")]:h,[i("color-active")]:y,[i("color-light")]:u,[i("color-light-hover")]:p,[i("color-light-active")]:v,[i("shadow")]:E}}}),{[`&:disabled, &${t.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:t.colorBorderDisabled,background:s("bg-color-disabled"),color:t.colorTextDisabled,boxShadow:"none"}},{[`&${e}-background-ghost`]:{[i("bg-color")]:t.ghostBg,[i("bg-color-hover")]:t.ghostBg,[i("bg-color-active")]:t.ghostBg,[i("shadow")]:"none",[`&${e}-variant-outlined, &${e}-variant-dashed`]:{[i("bg-color-hover")]:t.ghostBg,[i("bg-color-active")]:t.ghostBg}}}]}},Oye=t=>{const{componentCls:e,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:s,motionEaseInOut:a,iconGap:c,calc:u}=t;return{[e]:{outline:"none",position:"relative",display:"inline-flex",gap:c,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...lye(),"&:disabled > *":{pointerEvents:"none"},[`${e}-icon > svg`]:hq(),[`${e}-icon`]:{display:"inline-flex",alignItems:"center",justifyContent:"center"},"> a":{color:"currentColor"},"&:not(:disabled)":wv(t),[`&${e}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${e}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${e}-icon-only`]:{paddingInline:0,[`&${e}-compact-item`]:{flex:"none"}},[`&${e}-loading`]:{opacity:i,cursor:"default"},[`${e}-loading-icon`]:{transition:["width","opacity","margin"].map(h=>`${h} ${s} ${a}`).join(",")},[`&:not(${e}-icon-end)`]:{[`${e}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:u(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:u(c).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${e}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:u(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:u(c).mul(-1).equal()}}}}}},Iye=t=>({minWidth:t.controlHeight,paddingInline:0,borderRadius:"50%"}),QP=(t,e="")=>{const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:s,buttonPaddingHorizontal:a,iconCls:c,buttonPaddingVertical:u,buttonIconOnlyFontSize:h}=t;return[{[e]:{fontSize:i,height:r,padding:`${At(u)} ${At(a)}`,borderRadius:s,[`&${n}-icon-only`]:{width:r,[c]:{fontSize:h}}}},{[`${n}${n}-circle${e}`]:Iye(t)},{[`${n}${n}-round${e}`]:{borderRadius:t.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:t.buttonPaddingHorizontal}}}]},Pye=t=>{const e=Ma(t,{fontSize:t.contentFontSize});return QP(e,t.componentCls)},Lye=t=>{const e=Ma(t,{controlHeight:t.controlHeightSM,fontSize:t.contentFontSizeSM,padding:t.paddingXS,buttonPaddingHorizontal:t.paddingInlineSM,buttonPaddingVertical:0,borderRadius:t.borderRadiusSM,buttonIconOnlyFontSize:t.onlyIconSizeSM});return QP(e,`${t.componentCls}-sm`)},kye=t=>{const e=Ma(t,{controlHeight:t.controlHeightLG,fontSize:t.contentFontSizeLG,buttonPaddingHorizontal:t.paddingInlineLG,buttonPaddingVertical:0,borderRadius:t.borderRadiusLG,buttonIconOnlyFontSize:t.onlyIconSizeLG});return QP(e,`${t.componentCls}-lg`)},Mye=t=>{const{componentCls:e}=t;return{[e]:{[`&${e}-block`]:{width:"100%"}}}},Dye=Sl("Button",t=>{const e=mW(t);return[Oye(e),Pye(e),Lye(e),kye(e),Mye(e),Aye(e),Eye(e)]},vW,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Nye(t,e,n,r){const{focusElCls:i,focus:s,borderElCls:a}=n,c=a?"> *":"",u=c?` ${c}`:"",h=y=>
178y.filter(Boolean).map(E=>`&:${E}${u}`).join(","),p=h(["hover",i?`hover${i}`:null]),v=h([s?"focus":null,"active"]);return{[`&-item:not(${e}-last-item)`]:{marginInlineEnd:t.calc(t.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[v]:{zIndex:3},[p]:{zIndex:4},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${c}`]:{zIndex:0}}}}function $ye(t,e,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${e}-first-item):not(${e}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${e}-last-item)${e}-first-item`]:{[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${e}-first-item)${e}-last-item`]:{[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Fye(t,e={focus:!0}){const{componentCls:n}=t,{componentCls:r}=e,i=r||n,s=`${i}-compact`;return{[s]:{...Nye(t,s,e,i),...$ye(i,s,e)}}}function Uye(t,e,n){return{[`&-item:not(${e}-last-item)`]:{marginBottom:t.calc(t.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}function Bye(t,e){return{[`&-item:not(${e}-first-item):not(${e}-last-item)`]:{borderRadius:0},[`&-item${e}-first-item:not(${e}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${e}-last-item:not(${e}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function jye(t){const e=`${t.componentCls}-compact-vertical`;return{[e]:{...Uye(t,e,t.componentCls),...Bye(t.componentCls,e)}}}const Hye=t=>{const{antCls:e,componentCls:n,lineWidth:r,calc:i,colorBgContainer:s}=t,a=`${n}-variant-solid:not([disabled])`,c=i(r).mul(-1).equal(),[u,h]=Ep(e,"btn"),p=v=>({[`${n}-compact${v?"-vertical":""}-item`]:{[u("compact-connect-border-color")]:h("bg-color-hover"),[`&${a}`]:{transition:"none",[`& + ${a}:before`]:[{position:"absolute",backgroundColor:h("compact-connect-border-color"),content:'""'},v?{top:c,insetInline:c,height:r}:{insetBlock:c,insetInlineStart:c,width:r}],"&:hover:before":{display:"none"}}}});return[p(),p(!0),{[`${a}${n}-color-default`]:{[u("compact-connect-border-color")]:`color-mix(in srgb, ${h("bg-color-hover")} 75%, ${s})`}}]},zye=Yx(["Button","compact"],t=>{const e=mW(t);return[Fye(e),jye(e),Hye(e)]},vW);function Vye(t){if(Oi(t)){let e=t?.delay;return e=kp(e)?e:0,{loading:e<=0,delay:e}}return{loading:!!t,delay:0}}const qye={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Wye=Te.forwardRef((t,e)=>{const{_skipSemantic:n,loading:r=!1,prefixCls:i,color:s,variant:a,type:c,danger:u=!1,shape:h,size:p,disabled:v,className:y,rootClassName:E,children:S,icon:x,iconPosition:C,iconPlacement:R,ghost:A=!1,block:O=!1,htmlType:P="button",classNames:L,styles:D,style:N,autoInsertSpace:k,autoFocus:U,...F}=t,V=sv(S),G=c||"default",{getPrefixCls:Z,direction:K,autoInsertSpace:J,className:H,style:Y,classNames:ee,styles:fe,loadingIcon:ue,shape:z,color:Q,variant:ae}=El("button"),de=h||z||"default",[be,Se]=_.useMemo(()=>{if(s&&a)return[s,a];if(c||u){const Mn=qye[G]||[];return u?["danger",Mn[1]]:Mn}return a==="solid"?["primary",a]:Q&&ae?[Q,ae]:ae==="solid"?["primary",ae]:["default","outlined"]},[s,a,c,u,Q,ae,G]),[je,Ne]=_.useMemo(()=>A&&Se==="solid"?[be,"outlined"]:[be,Se],[be,Se,A]),ze=je==="danger",tt=ze?"dangerous":je,Je=k??J??!0,We=Z("btn",i),[Ve,Pt]=Dye(We),dt=_.useContext($C),$e=v??dt,vt=_.useContext(fW),ot=_.useMemo(()=>Vye(r),[r]),[Bt,An]=_.useState(ot.loading),[Ut,qt]=_.useState(!1),or=_.useRef(null),Hn=vb(e,or),Yr=V.length===1&&!x&&!nA(Ne),xr=_.useRef(!0);Te.useEffect(()=>(xr.current=!1,()=>{xr.current=!0}),[]),gf(()=>{let Mn=null;ot.delay>0?Mn=setTimeout(()=>{Mn=null,An(!0)},ot.delay):An(ot.loading);function ro(){Mn&&(clearTimeout(Mn),Mn=null)}return ro},[ot.delay,ot.loading]),_.useEffect(()=>{if(!or.current||!Je)return;const Mn=or.current.textContent||"";Yr&&i3(Mn)?Ut||qt(!0):Ut&&qt(!1)}),_.useEffect(()=>{U&&or.current&&or.current.focus()},[]);const pi=Te.useCallback(Mn=>{if(Bt||$e){Mn.preventDefault();return}t.onClick?.(("href"in t,Mn))},[t.onClick,Bt,$e]),{compactSize:zn,compactItemClassnames:Zn}=Zve(We,K),ar=Cb(Mn=>p??zn??vt??Mn),Vi=Bt?"loading":x,Vn=R??C??"start",Wt=PV(F,["navigate"]),Nt={...t,type:G,color:je,variant:Ne,danger:ze,
178shape:de,size:ar,disabled:$e,loading:Bt,iconPlacement:Vn},[Xt,nn]=_f([n?void 0:ee,L],[n?void 0:fe,D],{props:Nt}),Xr=Be(We,Ve,Pt,{[`${We}-${de}`]:de!=="default"&&de!=="square"&&de,[`${We}-${G}`]:G,[`${We}-dangerous`]:u,[`${We}-color-${tt}`]:tt,[`${We}-variant-${Ne}`]:Ne,[`${We}-lg`]:ar==="large",[`${We}-sm`]:ar==="small",[`${We}-icon-only`]:!S&&S!==0&&!!Vi,[`${We}-background-ghost`]:A&&!nA(Ne),[`${We}-loading`]:Bt,[`${We}-two-chinese-chars`]:Ut&&Je&&!Bt,[`${We}-block`]:O,[`${We}-rtl`]:K==="rtl",[`${We}-icon-end`]:Vn==="end"},Zn,y,E,H,Xt.root),Li={...nn.root,...Y,...N},ki={className:Xt.icon,style:nn.icon},gi=Mn=>Te.createElement(pW,{prefixCls:We,...ki},Mn),qn=Te.createElement(iye,{existIcon:!!x,prefixCls:We,loading:Bt,mount:xr.current,...ki}),si=Oi(r)&&r.icon||ue;let Wn;x&&!Bt?Wn=gi(x):r&&si?Wn=gi(si):Wn=qn;const Os=hi(S)?rye(S,Yr&&Je,nn.content,Xt.content):null;if(Wt.href!==void 0)return Te.createElement("a",{...Wt,className:Be(Xr,{[`${We}-disabled`]:$e}),href:$e?void 0:Wt.href,style:Li,onClick:pi,ref:Hn,tabIndex:$e?-1:0,"aria-disabled":$e},Wn,Os);let mi=Te.createElement("button",{...F,type:P,className:Xr,style:Li,onClick:pi,disabled:$e,ref:Hn},Wn,Os,Zn&&Te.createElement(zye,{prefixCls:We}));return nA(Ne)||(mi=Te.createElement(Yve,{component:"Button",disabled:Bt},mi)),mi}),Sc=Wye;Sc.Group=tye;Sc.__ANT_BUTTON=!0;const yW=t=>{const{type:e,children:n,prefixCls:r,buttonProps:i,close:s,autoFocus:a,emitEvent:c,isSilent:u,quitOnNullishReturnValue:h,actionFn:p}=t,v=_.useRef(!1),y=_.useRef(null),[E,S]=SV(!1),x=(...A)=>{s?.(...A)};_.useEffect(()=>{let A=null;return a&&(A=setTimeout(()=>{y.current?.focus({preventScroll:!0})}
178)),()=>{A&&clearTimeout(A)}},[a]);const C=A=>{QR(A)&&(S(!0),A.then((...O)=>{S(!1,!0),x.apply(void 0,O),v.current=!1},O=>{if(S(!1,!0),v.current=!1,!u?.())return Promise.reject(O)}))},R=A=>{if(v.current)return;if(v.current=!0,!p){x();return}let O;if(c){if(O=p(A),h&&!QR(O)){v.current=!1,x(A);return}}else if(p.length)O=p(s),v.current=!1;else if(O=p(),!QR(O)){x();return}C(O)};return _.createElement(Sc,{...hW(e),onClick:R,loading:E,prefixCls:r,...i,ref:y},n)},xb=Te.createContext({}),{Provider:_W}=xb,i7=()=>{const{autoFocusButton:t,cancelButtonProps:e,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:s,close:a,onCancel:c,onConfirm:u,onClose:h}=_.useContext(xb);return i?Te.createElement(yW,{isSilent:r,actionFn:c,close:(...p)=>{a?.(...p),u?.(!1),h?.()},autoFocus:t==="cancel",buttonProps:e,prefixCls:`${s}-btn`},n):null},s7=()=>{const{autoFocusButton:t,close:e,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:s,okType:a,onConfirm:c,onOk:u,onClose:h}=_.useContext(xb);return Te.createElement(yW,{isSilent:n,type:a||"primary",actionFn:u,close:(...p)=>{e?.(...p),c?.(!0),h?.()},autoFocus:t==="ok",buttonProps:r,prefixCls:`${i}-btn`},s)},bW=_.createContext({});function o7(t,e,n){let r=e;return!r&&n&&(r=`${t}-${n}`),r}function a7(t,e){let n=t[`page${e?"Y":"X"}Offset`];const r=`scroll${e?"Top":"Left"}`;if(typeof n!="number"){const i=t.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function Gye(t){const e=t.getBoundingClientRect(),n={left:e.left,top:e.top},r=t.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=a7(i),n.top+=a7(i,!0),n}const Kye=_.memo(({children:t})=>t,(t,{shouldUpdate:e})=>!e);function zC(){return zC=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},zC.apply(this,arguments)}const Yye=Te.forwardRef((t,e)=>{const{prefixCls:n,className:r,style:i,title:s,ariaId:a,footer:c,closable:u,closeIcon:h,onClose:p,children:v,bodyStyle:y,bodyProps:E,modalRender:S,onMouseDown:x,onMouseUp:C,holderRef:R,visible:A,forceRender:O,width:P,height:L,classNames:D,styles:N,isFixedPos:k,focusTrap:U}=t,{panel:F}=Te.useContext(bW),V=_.useRef(null),G=vb(R,F,V),[Z]=$fe(A&&k&&U!==!1,()=>V.current);Te.useImperativeHandle(e,()=>({focus:()=>{V.current?.focus({preventScroll:!0})}}));const K={};P!==void 0&&(K.width=P),L!==void 0&&(K.height=L);const J=c?Te.createElement("div",{className:Be(`${n}-footer`,D?.footer),style:{...N?.footer}},c):null,H=s?Te.createElement("div",{className:Be(`${n}-header`,D?.header),style:{...N?.header}},Te.createElement("div",{className:Be(`${n}-title`,D?.title),id:a,style:{...N?.title}},s)):null,Y=_.useMemo(()=>typeof u=="object"&&u!==null?u:u?{closeIcon:h??Te.createElement("span",{className:`${n}-close-x`})}:{},[u,h,n]),ee=yp(Y,!0),fe=typeof u=="object"&&u.disabled,ue=u?Te.createElement("button",zC({type:"button",onClick:p,"aria-label":"Close"},ee,{className:Be(`${n}-close`,D?.close),disabled:fe,style:N?.close}),Y.closeIcon):null,z=Te.createElement("div",{className:Be(`${n}-container`,D?.container),style:N?.container},ue,H,Te.createElement("div",zC({className:Be(`${n}-body`,D?.body),style:{...y,...N?.body}},E),v),J);return Te.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?a:null,"aria-modal":"true",ref:G,style:{...i,...K},className:Be(n,r),onMouseDown:x,onMouseUp:C,tabIndex:-1,onFocus:Q=>{Z(Q.target)}},Te.createElement(Kye,{shouldUpdate:A||O},S?S(z):z))});function s3(){return s3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s3.apply(this,arguments)}const Xye=_.forwardRef((t,e)=>{const{prefixCls:n,title:r,style:i,className:s,visible:a,forceRender:c,destroyOnHidden:u,motionName:h,ariaId:p,onVisibleChanged:v,mousePosition:y}=t,E=_.useRef(null),S=_.useRef(null);_.useImperativeHandle(e,()=>({...S.current,inMotion:E.current.inMotion,enableMotion:E.current.enableMotion}));const[x,C]=_.useState(),R={};x&&(R.transformOrigin=x);function A(){if(!E.current?.nativeElement)return;const O=Gye(E.current.nativeElement);C(y&&(y.x||y.y)?`${y.x-O.left}px ${y.y-O.top}px`:"")}return _.createElement(Tc,{visible:a,onVisibleChanged:v,onAppearPrepare:A,onEnterPrepare:A,forceRender:c,motionName:h,removeOnLeave:u,ref:E},({className:O,style:P},L)=>_.createElement(Yye,s3({},t,{ref:S,title:r,ariaId:p,prefixCls:n,holderRef:L,style:{...P,...i,...R},className:Be(s,O)})))});function o3(){return o3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o3.apply(this,arguments)}const Qye=t=>{const{prefixCls:e,style:n,visible:r,maskProps:i,motionName:s,className:a}=t;return _.createElement(Tc,{key:"mask",visible:r,motionName:s,leavedClassName:`${e}-mask-hidden`},({className:c,style:u},h)=>_.createElement("div",o3({ref:h,style:{...u,...n},className:Be(`${e}-mask`,c,a)},i)))};function u1(){return u1=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u1.apply(this,arguments)}const Zye=t=>{const{prefixCls:e="rc-dialog",zIndex:n,visible:r=!1,focusTriggerAfterClose:i=!0,wrapStyle:s,wrapClassName:a,wrapProps:c,onClose:u,afterOpenChange:h,afterClose:p,transitionName:v,animation:y,closable:E=!0,mask:S=!0,maskTransitionName:x,maskAnimation:C,maskClosable:R=!0,maskStyle:A,maskProps:O,rootClassName:P,rootStyle:L,classNames:D,styles:N}=t,k=_.useRef(null),U=_.useRef(null),F=_.useRef(null),[V,G]=_.useState(r),[Z,K]=_.useState(!1),J=TP();
178function H(){dI(U.current,document.activeElement)||(k.current=document.activeElement)}function Y(){dI(U.current,document.activeElement)||F.current?.focus()}function ee(){if(G(!1),S&&k.current&&i){try{k.current.focus({preventScroll:!0})}catch{}k.current=null}V&&p?.()}function fe(be){be?Y():ee(),h?.(be)}function ue(be){u?.(be)}const z=_.useRef(!1);let Q=null;R&&(Q=be=>{U.current===be.target&&z.current&&ue(be)});function ae(be){z.current=be.target===U.current}_.useEffect(()=>{if(r){if(z.current=!1,G(!0),H(),U.current){const be=getComputedStyle(U.current);K(be.position==="fixed")}}else V&&F.current.enableMotion()&&!F.current.inMotion()&&ee()},[r]);const de={zIndex:n,...s,...N?.wrapper,display:V?null:"none"};return _.createElement("div",u1({className:Be(`${e}-root`,P),style:L},yp(t,{data:!0})),_.createElement(Qye,{prefixCls:e,visible:S&&r,motionName:o7(e,x,C),style:{zIndex:n,...A,...N?.mask},maskProps:O,className:D?.mask}),_.createElement("div",u1({className:Be(`${e}-wrap`,a,D?.wrapper),ref:U,onClick:Q,onMouseDown:ae,style:de},c),_.createElement(Xye,u1({},t,{isFixedPos:Z,ref:F,closable:E,ariaId:J,prefixCls:e,visible:r&&V,onClose:ue,onVisibleChanged:fe,motionName:o7(e,v,y)}))))};function a3(){return a3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a3.apply(this,arguments)}const Jye=t=>{const{visible:e,getContainer:n,forceRender:r,destroyOnHidden:i=!1,afterClose:s,closable:a,panelRef:c,keyboard:u=!0,onClose:h}=t,[p,v]=_.useState(e),y=_.useMemo(()=>({panel:c}),[c]),E=({top:S,event:x})=>{if(S&&u){x.stopPropagation(),h?.(x);return}};return _.useEffect(()=>{e&&v(!0)},[e]),!r&&i&&!p?null:_.createElement(bW.Provider,{value:y},_.createElement(Uq,{open:e||r||p,onEsc:E,autoDestroy:!1,getContainer:n,autoLock:e||p},_.createElement(Zye,a3({},t,{destroyOnHidden:i,afterClose:()=>{const S=a&&typeof a=="object"?a:{},{afterClose:x}=S||{};x?.(),s?.(),v(!1)}}))))},Zh="RC_FORM_INTERNAL_HOOKS",er=()=>{ea(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},cv=_.createContext({getFieldValue:er,getFieldsValue:er,getFieldError:er,getFieldWarning:er,getFieldsError:er,isFieldsTouched:er,isFieldTouched:er,isFieldValidating:er,isFieldsValidating:er,resetFields:er,setFields:er,setFieldValue:er,setFieldsValue:er,validateFields:er,submit:er,getInternalHooks:()=>(er(),{dispatch:er,initEntityValue:er,registerField:er,useSubscribe:er,setInitialValues:er,destroyForm:er,setCallbacks:er,registerWatch:er,getFields:er,setValidateMessages:er,setPreserve:er,getInitialValue:er})}),VC=_.createContext(null);function l3(t){return t==null?[]:Array.isArray(t)?t:[t]}function e0e(t){return t&&!!t._init}function c3(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var u3=c3();function t0e(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function n0e(t,e,n){if(Kx())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&q1(i,n.prototype),i}function d3(t){var e=typeof Map=="function"?new Map:void 0;return d3=function(r){if(r===null||!t0e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return n0e(r,arguments,bp(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),q1(i,r)},d3(t)}var r0e=/%[sdj%]/g,i0e=function(){};function f3(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function Qo(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=0,s=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var a=t.replace(r0e,function(c){if(c==="%%")return"%";if(i>=s)return c;switch(c){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return c}});return a}return t}function s0e(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"||t==="tel"}function Ii(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||s0e(e)&&typeof t=="string"&&!t)}function o0e(t,e,n){var r=[],i=0,s=t.length;function a(c){r.push.apply(r,Cs(c||[])),i++,i===s&&n(r)}t.forEach(function(c){e(c,a)})}function l7(t,e,n){var r=0,i=t.length;function s(a){if(a&&a.length){n(a);return}var c=r;
178r=r+1,c<i?e(t[c],s):n([])}s([])}function a0e(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,Cs(t[n]||[]))}),e}var c7=(function(t){UP(n,t);var e=rq(n);function n(r,i){var s;return Op(this,n),s=e.call(this,"Async Validation Error"),ji(jm(s),"errors",void 0),ji(jm(s),"fields",void 0),s.errors=r,s.fields=i,s}return Ip(n)})(d3(Error));function l0e(t,e,n,r,i){if(e.first){var s=new Promise(function(y,E){var S=function(R){return r(R),R.length?E(new c7(R,f3(R))):y(i)},x=a0e(t);l7(x,n,S)});return s.catch(function(y){return y}),s}var a=e.firstFields===!0?Object.keys(t):e.firstFields||[],c=Object.keys(t),u=c.length,h=0,p=[],v=new Promise(function(y,E){var S=function(C){if(p.push.apply(p,C),h++,h===u)return r(p),p.length?E(new c7(p,f3(p))):y(i)};c.length||(r(p),y(i)),c.forEach(function(x){var C=t[x];a.indexOf(x)!==-1?l7(C,n,S):o0e(C,n,S)})});return v.catch(function(y){return y}),v}function c0e(t){return!!(t&&t.message!==void 0)}function u0e(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]]}return n}function u7(t,e){return function(n){var r;return t.fullFields?r=u0e(e,t.fullFields):r=e[n.field||t.fullField],c0e(n)?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||t.fullField}}}function d7(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];di(r)==="object"&&di(t[n])==="object"?t[n]=Gr(Gr({},t[n]),r):t[n]=r}}return t}var hm="enum",d0e=function(e,n,r,i,s){e[hm]=Array.isArray(e[hm])?e[hm]:[],e[hm].indexOf(n)===-1&&i.push(Qo(s.messages[hm],e.fullField,e[hm].join(", ")))},f0e=function(e,n,r,i,s){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||i.push(Qo(s.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(n)||i.push(Qo(s.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},h0e=function(e,n,r,i,s){var a=typeof e.len=="number",c=typeof e.min=="number",u=typeof e.max=="number",h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=n,v=null,y=typeof n=="number",E=typeof n=="string",S=Array.isArray(n);if(y?v="number":E?v="string":S&&(v="array"),!v)return!1;S&&(p=n.length),E&&(p=n.replace(h,"_").length),a?p!==e.len&&i.push(Qo(s.messages[v].len,e.fullField,e.len)):c&&!u&&p<e.min?i.push(Qo(s.messages[v].min,e.fullField,e.min)):u&&!c&&p>e.max?i.push(Qo(s.messages[v].max,e.fullField,e.max)):c&&u&&(p<e.min||p>e.max)&&i.push(Qo(s.messages[v].range,e.fullField,e.min,e.max))},EW=function(e,n,r,i,s,a){e.required&&(!r.hasOwnProperty(e.field)||Ii(n,a||e.type))&&i.push(Qo(s.messages.required,e.fullField))},Rw;const p0e=(function(){if(Rw)return Rw;var t="[a-fA-F\\d:]",e=function(D){return D&&D.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(t,")|(?<=").concat(t,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],s="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(i.join("|"),")").concat(s),c=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),u=new RegExp("^".concat(n,"$")),h=new RegExp("^".concat(a,"$")),p=function(D){return D&&D.exact?c:new RegExp("(?:".concat(e(D)).concat(n).concat(e(D),")|(?:").concat(e(D)).concat(a).concat(e(D),")"),"g")};p.v4=function(L){return L&&L.exact?u:new RegExp("".concat(e(L)).concat(n).concat(e(L)),"g")},p.v6=function(L){return L&&L.exact?h:new RegExp("".concat(e(L)).concat(a).concat(e(L)),"g")};var v="(?:(?:[a-z]+:)?//)",y="(?:\\S+(?::\\S*)?@)?",E=p.v4().source,S=p.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",C="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",R="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",A="(?::\\d{2,5})?",O='(?:[/?#][^\\s"]*)?',P="(?:".concat(v,"|www\\.)").concat(y,"(?:localhost|").concat(E,"|").concat(S,"|").concat(x).concat(C).concat(R,")").concat(A).
178concat(O);return Rw=new RegExp("(?:^".concat(P,"$)"),"i"),Rw});var oA={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},V_={integer:function(e){return V_.number(e)&&parseInt(e,10)===e},float:function(e){return V_.number(e)&&!V_.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return di(e)==="object"&&!V_.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(oA.email)},tel:function(e){return typeof e=="string"&&e.length<=32&&!!e.match(oA.tel)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(p0e())},hex:function(e){return typeof e=="string"&&!!e.match(oA.hex)}},g0e=function(e,n,r,i,s){if(e.required&&n===void 0){EW(e,n,r,i,s);return}var a=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],c=e.type;a.indexOf(c)>-1?V_[c](n)||i.push(Qo(s.messages.types[c],e.fullField,e.type)):c&&di(n)!==e.type&&i.push(Qo(s.messages.types[c],e.fullField,e.type))},m0e=function(e,n,r,i,s){(/^\s+$/.test(n)||n==="")&&i.push(Qo(s.messages.whitespace,e.fullField))};const pn={required:EW,whitespace:m0e,type:g0e,range:h0e,enum:d0e,pattern:f0e};var v0e=function(e,n,r,i,s){var a=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(Ii(n)&&!e.required)return r();pn.required(e,n,i,a,s)}r(a)},y0e=function(e,n,r,i,s){var a=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(n==null&&!e.required)return r();pn.required(e,n,i,a,s,"array"),n!=null&&(pn.type(e,n,i,a,s),pn.range(e,n,i,a,s))}r(a)},_0e=function(e,n,r,i,s){var a=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(Ii(n)&&!e.required)return r();pn.required(e,n,i,a,s),n!==void 0&&pn.type(e,n,i,a,s)}r(a)},b0e=function(e,n,r,i,s){var a=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(Ii(n,"date")&&!e.required)return r();if(pn.required(e,n,i,a,s),!Ii(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),pn.type(e,u,i,a,s),u&&pn.range(e,u.getTime(),i,a,s)}}r(a)},E0e="enum",S0e=function(e,n,r,i,s){var a=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(Ii(n)&&!e.required)return r();pn.required(e,n,i,a,s),n!==void 0&&pn[E0e](e,n,i,a,s)}r(a)},w0e=function(e,n,r,i,s){var a=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(Ii(n)&&!e.required)return r();pn.required(e,n,i,a,s),n!==void 0&&(pn.type(e,n,i,a,s),pn.range(e,n,i,a,s))}r(a)},C0e=function(e,n,r,i,s){var a=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(Ii(n)&&!e.required)return r();pn.required(e,n,i,a,s),n!==void 0&&(pn.type(e,n,i,a,s),pn.range(e,n,i,a,s))}r(a)},x0e=function(e,n,r,i,s){var a=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(Ii(n)&&!e.required)return r();pn.required(e,n,i,a,s),n!==void 0&&pn.type(e,n,i,a,s)}r(a)},T0e=function(e,n,r,i,s){var a=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(n===""&&(n=void 0),Ii(n)&&!e.required)return r();pn.required(e,n,i,a,s),n!==void 0&&(pn.type(e,n,i,a,s),pn.range(e,n,i,a,s))}r(a)},R0e=function(e,n,r,i,s){var a=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(Ii(n)&&!e.required)return r();pn.required(e,n,i,a,s),n!==void 0&&pn.type(e,n,i,a,s)}r(a)},A0e=function(e,n,r,i,s){var a=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(Ii(n,"string")&&!e.required)return r();pn.required(e,n,i,a,s),Ii(n,"string")||pn.pattern(e,n,i,a,s)}r(a)},O0e=function(e,n,r,i,s){var a=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(Ii(n)&&!e.required)return r();pn.required(e,n,i,a,s),Ii(n)||pn.type(e,n,i,a,s)}r(a)},I0e=function(e,n,r,i,s){var a=[],c=Array.isArray(n)?"array":di(n);
178pn.required(e,n,i,a,s,c),r(a)},P0e=function(e,n,r,i,s){var a=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(Ii(n,"string")&&!e.required)return r();pn.required(e,n,i,a,s,"string"),Ii(n,"string")||(pn.type(e,n,i,a,s),pn.range(e,n,i,a,s),pn.pattern(e,n,i,a,s),e.whitespace===!0&&pn.whitespace(e,n,i,a,s))}r(a)},Aw=function(e,n,r,i,s){var a=e.type,c=[],u=e.required||!e.required&&i.hasOwnProperty(e.field);if(u){if(Ii(n,a)&&!e.required)return r();pn.required(e,n,i,c,s,a),Ii(n,a)||pn.type(e,n,i,c,s)}r(c)};const d1={string:P0e,method:x0e,number:T0e,boolean:_0e,regexp:O0e,integer:C0e,float:w0e,array:y0e,object:R0e,enum:S0e,pattern:A0e,date:b0e,url:Aw,hex:Aw,email:Aw,tel:Aw,required:I0e,any:v0e};var Tb=(function(){function t(e){Op(this,t),ji(this,"rules",null),ji(this,"_messages",u3),this.define(e)}return Ip(t,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(di(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var s=n[i];r.rules[i]=Array.isArray(s)?s:[s]})}},{key:"messages",value:function(n){return n&&(this._messages=d7(c3(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,c=i,u=s;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,a),Promise.resolve(a);function h(S){var x=[],C={};function R(O){if(Array.isArray(O)){var P;x=(P=x).concat.apply(P,Cs(O))}else x.push(O)}for(var A=0;A<S.length;A++)R(S[A]);x.length?(C=f3(x),u(x,C)):u(null,a)}if(c.messages){var p=this.messages();p===u3&&(p=c3()),d7(p,c.messages),c.messages=p}else c.messages=this.messages();var v={},y=c.keys||Object.keys(this.rules);y.forEach(function(S){var x=r.rules[S],C=a[S];x.forEach(function(R){var A=R;typeof A.transform=="function"&&(a===n&&(a=Gr({},a)),C=a[S]=A.transform(C),C!=null&&(A.type=A.type||(Array.isArray(C)?"array":di(C)))),typeof A=="function"?A={validator:A}:A=Gr({},A),A.validator=r.getValidationMethod(A),A.validator&&(A.field=S,A.fullField=A.fullField||S,A.type=r.getType(A),v[S]=v[S]||[],v[S].push({rule:A,value:C,source:a,field:S}))})});var E={};return l0e(v,c,function(S,x){var C=S.rule,R=(C.type==="object"||C.type==="array")&&(di(C.fields)==="object"||di(C.defaultField)==="object");R=R&&(C.required||!C.required&&S.value),C.field=S.field;function A(N,k){return Gr(Gr({},k),{},{fullField:"".concat(C.fullField,".").concat(N),fullFields:C.fullFields?[].concat(Cs(C.fullFields),[N]):[N]})}function O(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],k=Array.isArray(N)?N:[N];!c.suppressWarning&&k.length&&t.warning("async-validator:",k),k.length&&C.message!==void 0&&C.message!==null&&(k=[].concat(C.message));var U=k.map(u7(C,a));if(c.first&&U.length)return E[C.field]=1,x(U);if(!R)x(U);else{if(C.required&&!S.value)return C.message!==void 0?U=[].concat(C.message).map(u7(C,a)):c.error&&(U=[c.error(C,Qo(c.messages.required,C.field))]),x(U);var F={};C.defaultField&&Object.keys(S.value).map(function(Z){F[Z]=C.defaultField}),F=Gr(Gr({},F),S.rule.fields);var V={};Object.keys(F).forEach(function(Z){var K=F[Z],J=Array.isArray(K)?K:[K];V[Z]=J.map(A.bind(null,Z))});var G=new t(V);G.messages(c.messages),S.rule.options&&(S.rule.options.messages=c.messages,S.rule.options.error=c.error),G.validate(S.value,S.rule.options||c,function(Z){var K=[];U&&U.length&&K.push.apply(K,Cs(U)),Z&&Z.length&&K.push.apply(K,Cs(Z)),x(K.length?K:null)})}}var P;if(C.asyncValidator)P=C.asyncValidator(C,S.value,O,S.source,c);else if(C.validator){try{P=C.validator(C,S.value,O,S.source,c)}catch(N){var L,D;(L=(D=console).error)===null||L===void 0||L.call(D,N),c.suppressValidatorError||setTimeout(function(){throw N},0),O(N.message)}P===!0?O():P===!1?O(typeof C.message=="function"?C.message(C.fullField||C.field):C.message||"".concat(C.fullField||C.field," fails")):P instanceof Array?O(P):P instanceof Error&&O(P.message)}P&&P.then&&P.then(function(){return O()},function(N){return O(N)})},function(S){h(S)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!d1.hasOwnProperty(n.type))throw new Error(Qo("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?d1.required:d1[this.getType(n)]||void 0}}]),t})();ji(Tb,"register",function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");d1[e]=n});ji(Tb,"warning",i0e);ji(Tb,"messages",u3);ji(Tb,"validators",d1);const yo="'${name}' is not a valid ${type}",SW={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}
178' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:yo,method:yo,array:yo,object:yo,number:yo,date:yo,boolean:yo,integer:yo,float:yo,regexp:yo,email:yo,tel:yo,url:yo,hex:yo},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},f7=Tb;function L0e(t,e){return t.replace(/\\?\$\{\w+\}/g,n=>{if(n.startsWith("\\"))return n.slice(1);const r=n.slice(2,-1);return e[r]})}const h7="CODE_LOGIC_ERROR";async function h3(t,e,n,r,i){const s={...n};if(delete s.ruleIndex,f7.warning=()=>{},s.validator){const y=s.validator;s.validator=(...E)=>{try{return y(...E)}catch(S){return console.error(S),Promise.reject(h7)}}}let a=null;s&&s.type==="array"&&s.defaultField&&(a=s.defaultField,delete s.defaultField);const c=new f7({[t]:[s]}),u=Im(SW,r.validateMessages);c.messages(u);let h=[];try{await Promise.resolve(c.validate({[t]:e},{...r}))}catch(y){y.errors&&(h=y.errors.map(({message:E},S)=>{const x=E===h7?u.default:E;return _.isValidElement(x)?_.cloneElement(x,{key:`error_${S}`}):x}))}if(!h.length&&a&&Array.isArray(e)&&e.length>0)return(await Promise.all(e.map((E,S)=>h3(`${t}.${S}`,E,a,r,i)))).reduce((E,S)=>[...E,...S],[]);const p={...n,name:t,enum:(n.enum||[]).join(", "),...i};return h.map(y=>typeof y=="string"?L0e(y,p):y)}function k0e(t,e,n,r,i,s){const a=t.join("."),c=n.map((h,p)=>{const v=h.validator,y={...h,ruleIndex:p};return v&&(y.validator=(E,S,x)=>{let C=!1;const A=v(E,S,(...O)=>{Promise.resolve().then(()=>{ea(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||x(...O)})});C=A&&typeof A.then=="function"&&typeof A.catch=="function",ea(C,"`callback` is deprecated. Please return a promise instead."),C&&A.then(()=>{x()}).catch(O=>{x(O||" ")})}),y}).sort(({warningOnly:h,ruleIndex:p},{warningOnly:v,ruleIndex:y})=>!!h==!!v?p-y:h?1:-1);let u;if(i===!0)u=new Promise(async(h,p)=>{for(let v=0;v<c.length;v+=1){const y=c[v],E=await h3(a,e,y,r,s);if(E.length){p([{errors:E,rule:y}]);return}}h([])});else{const h=c.map(p=>h3(a,e,p,r,s).then(v=>({errors:v,rule:p})));u=(i?D0e(h):M0e(h)).then(p=>Promise.reject(p))}return u.catch(h=>h),u}async function M0e(t){return Promise.all(t).then(e=>[].concat(...e))}async function D0e(t){let e=0;return new Promise(n=>{t.forEach(r=>{r.then(i=>{i.errors.length&&n([i]),e+=1,e===t.length&&n([])})})})}function qr(t){return l3(t)}function p7(t,e){let n={};return e.forEach(r=>{const i=Ta(t,r);n=Vo(n,r,i)}),n}function Hm(t,e,n=!1){return t&&t.some(r=>qC(e,r,n))}function qC(t,e,n=!1){return!t||!e||!n&&t.length!==e.length?!1:e.every((r,i)=>t[i]===r)}function N0e(t,e){if(t===e)return!0;if(!t&&e||t&&!e||!t||!e||typeof t!="object"||typeof e!="object")return!1;const n=Object.keys(t),r=Object.keys(e);return[...new Set([...n,...r])].every(s=>{const a=t[s],c=e[s];return typeof a=="function"&&typeof c=="function"?!0:a===c})}function $0e(t,...e){const n=e[0];return n&&n.target&&typeof n.target=="object"&&t in n.target?n.target[t]:n}function g7(t,e,n){const{length:r}=t;if(e<0||e>=r||n<0||n>=r)return t;const i=t[e],s=e-n;return s>0?[...t.slice(0,n),i,...t.slice(n,e),...t.slice(e+1,r)]:s<0?[...t.slice(0,e),...t.slice(e+1,n+1),i,...t.slice(n+1,r)]:t}const wW=t=>{const e=new MessageChannel;e.port1.onmessage=t,e.port2.postMessage(null)};class F0e{namePathList=[];taskId=0;watcherList=new Set;form;constructor(e){this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(n=>{this.namePathList.every(r=>!qC(r,n))&&this.namePathList.push(n)}),this.doBatch()}doBatch(){this.taskId+=1;const e=this.taskId;wW(()=>{if(e===this.taskId&&this.watcherList.size){const n=this.form.getForm(),r=n.getFieldsValue(),i=n.getFieldsValue(!0);this.watcherList.forEach(s=>{s(r,i,this.namePathList)}),this.namePathList=[]}})}}async function U0e(){return new Promise(t=>{wW(()=>{gl(()=>{t()})})})}function p3(){return p3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p3.apply(this,arguments)}const Ah=[],y_=[];function aA(t,e,n,r,i,s){return typeof t=="function"?t(e,n,"source"in s?{source:s.source}:{}):r!==i}class B0e extends _.Component{static contextType=cv;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=Ah;warnings=y_;constructor(e){if(super(e),e.fieldContext){const{getInternalHooks:n}=e.fieldContext,{initEntityValue:r}=n(Zh);r(this)}}componentDidMount(){const{shouldUpdate:e,fieldContext:n}=this.props;if(this.mounted=!0,n){const{getInternalHooks:r}=n,{registerField:i}=r(Zh);this.cancelRegisterFunc=i(this)}e===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{const{preserve:e,isListField:n,name:r}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(n,e,qr(r)),this.cancelRegisterFunc=null};getNamePath=()=>{const{name:e,fieldContext:n}=this.props,{prefixName:r=[]}=n;return e!==void 0?[...r,...e]:[]};getRules=()=>{const{rules:e=[],fieldContext:n}=this.props;return e.map(r=>typeof r=="function"?r(n):r)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))};metaCache=null;triggerMetaEvent=e=>{const{onMetaChange:n}=this.props;if(n){const r={...this.getMeta(),destroy:e};gI(this.metaCache,r)||n(r),this.metaCache=r}else this.metaCache=null};onStoreChange=(e,n,r)=>{const{shouldUpdate:i,dependencies:s=[],onReset:a}=this.props,{store:c}=r,u=this.getNamePath(),h=this.getValue(e),p=this.getValue(c),v=n&&Hm(n,u);switch(r.type==="valueUpdate"&&r.source==="external"&&!gI(h,p)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Ah,this.warnings=y_,this.triggerMetaEvent()),r.type){case"reset":if(!n||v){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Ah,this.warnings=y_,this.triggerMetaEvent(),a?.(),this.refresh();return}break;case"remove":{if(i&&aA(i,e,c,h,p,r)){this.reRender();return}break}case"setField":{const{data:y}=r;if(v){"touched"in y&&(this.touched=y.touched),"validating"in y&&!("originRCField"in y)&&(this.validatePromise=y.validating?Promise.resolve([]):null),"errors"in y&&(this.errors=y.errors||Ah),"warnings"in y&&(this.warnings=y.warnings||y_),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in y&&Hm(n,u,!0)){this.reRender();return}if(i&&!u.length&&aA(i,e,c,h,p,r)){this.reRender();return}break}
178case"dependenciesUpdate":{if(s.map(qr).some(E=>Hm(r.relatedFields,E))){this.reRender();return}break}default:if(v||(!s.length||u.length||i)&&aA(i,e,c,h,p,r)){this.reRender();return}break}i===!0&&this.reRender()};validateRules=e=>{const n=this.getNamePath(),r=this.getValue(),{triggerName:i,validateOnly:s=!1,delayFrame:a}=e||{},c=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:u=!1,messageVariables:h,validateDebounce:p}=this.props;a&&await U0e();let v=this.getRules();if(i&&(v=v.filter(E=>E).filter(E=>{const{validateTrigger:S}=E;return S?l3(S).includes(i):!0})),p&&i&&(await new Promise(E=>{setTimeout(E,p)}),this.validatePromise!==c))return[];const y=k0e(n,r,v,e,u,h);return y.catch(E=>E).then((E=Ah)=>{if(this.validatePromise===c){this.validatePromise=null;const S=[],x=[];E.forEach?.(({rule:{warningOnly:C},errors:R=Ah})=>{C?x.push(...R):S.push(...R)}),this.errors=S,this.warnings=x,this.triggerMetaEvent(),this.reRender()}}),y});return s||(this.validatePromise=c,this.dirty=!0,this.errors=Ah,this.warnings=y_,this.triggerMetaEvent(),this.reRender()),c};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:e}=this.props,{getInitialValue:n}=e.getInternalHooks(Zh);return n(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=e=>{if(typeof e=="function"){const r=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),r,this.props.fieldContext)),isFunction:!0}}const n=sv(e);return n.length!==1||!_.isValidElement(n[0])?{child:n,isFunction:!1}:{child:n[0],isFunction:!1}};getValue=e=>{const{getFieldsValue:n}=this.props.fieldContext,r=this.getNamePath();return Ta(e||n(!0),r)};getControlled=(e={})=>{const{name:n,trigger:r="onChange",validateTrigger:i,getValueFromEvent:s,normalize:a,valuePropName:c="value",getValueProps:u,fieldContext:h}=this.props,p=i!==void 0?i:h.validateTrigger,v=this.getNamePath(),{getInternalHooks:y,getFieldsValue:E}=h,{dispatch:S}=y(Zh),x=this.getValue(),C=u||(L=>({[c]:L})),R=e[r],A=n!==void 0?C(x):{},O={...e,...A};return O[r]=(...L)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let D;s?D=s(...L):D=$0e(c,...L),a&&(D=a(D,x,E(!0))),D!==x&&S({type:"updateValue",namePath:v,value:D}),R&&R(...L)},l3(p||[]).forEach(L=>{const D=O[L];O[L]=(...N)=>{D&&D(...N);const{rules:k}=this.props;k&&k.length&&S({type:"validateField",namePath:v,triggerName:L})}}),O};render(){const{resetCount:e}=this.state,{children:n}=this.props,{child:r,isFunction:i}=this.getOnlyChild(n);let s;return i?s=r:_.isValidElement(r)?s=_.cloneElement(r,this.getControlled(r.props)):(ea(!r,"`children` of Field is not validate ReactElement."),s=r),_.createElement(_.Fragment,{key:e},s)}}function CW({name:t,...e}){const n=_.useContext(cv),r=_.useContext(VC),i=t!==void 0?qr(t):void 0,s=e.isListField??!!r;let a="keep";return s||(a=`_${(i||[]).join("_")}`),_.createElement(B0e,p3({key:a,name:i,isListField:s},e,{fieldContext:n}))}function j0e({name:t,initialValue:e,children:n,rules:r,validateTrigger:i,isListField:s}){const a=_.useContext(cv),c=_.useContext(VC),h=_.useRef({keys:[],id:0}).current,p=_.useMemo(()=>[...qr(a.prefixName)||[],...qr(t)],[a.prefixName,t]),v=_.useMemo(()=>({...a,prefixName:p}),[a,p]),y=_.useMemo(()=>({getKey:S=>{const x=p.length,C=S[x];return[h.keys[C],S.slice(x+1)]}}),[h,p]);if(typeof n!="function")return ea(!1,"Form.List only accepts function as children."),null;const E=(S,x,{source:C})=>C==="internal"?!1:S!==x;return _.createElement(VC.Provider,{value:y},_.createElement(cv.Provider,{value:v},_.createElement(CW,{name:[],shouldUpdate:E,rules:r,validateTrigger:i,initialValue:e,isList:!0,isListField:s??!!c},({value:S=[],onChange:x},C)=>{const{getFieldValue:R}=a,A=()=>R(p||[])||[],O={add:(L,D)=>{const N=A();D>=0&&D<=N.length?(h.keys=[...h.keys.slice(0,D),h.id,...h.keys.slice(D)],x([...N.slice(0,D),L,...N.slice(D)])):(h.keys=[...h.keys,h.id],x([...N,L])),h.id+=1},remove:L=>{const D=A(),N=new Set(Array.isArray(L)?L:[L]);N.size<=0||(h.keys=h.keys.filter((k,U)=>!N.has(U)),x(D.filter((k,U)=>!N.has(U))))},move(L,D){if(L===D)return;const N=A();L<0||L>=N.length||D<0||D>=N.length||(h.keys=g7(h.keys,L,D),x(g7(N,L,D)))}};let P=S||[];return Array.isArray(P)||(P=[]),n(P.map((L,D)=>{let N=h.keys[D];return N===void 0&&(h.keys[D]=h.id,N=h.keys[D],h.id+=1),{name:D,key:N,isListField:!0}}),O,C)})))}function H0e(t){let e=!1,n=t.length;const r=[];return t.length?new Promise((i,s)=>{t.forEach((a,c)=>{a.catch(u=>(e=!0,u)).then(u=>{n-=1,r[c]=u,!(n>0)&&(e&&s(r),i(r))})})}):Promise.resolve([])}const g3="__@field_split__";function Ow(t){return t.map(e=>`${typeof e}:${e}`).join(g3)}class pm{kvs=new Map;set(e,n){this.kvs.set(Ow(e),n)}get(e){return this.kvs.get(Ow(e))}getAsPrefix(e){const n=Ow(e),r=n+g3,i=[],s=this.kvs.get(n);
178return s!==void 0&&i.push(s),this.kvs.forEach((a,c)=>{c.startsWith(r)&&i.push(a)}),i}update(e,n){const r=this.get(e),i=n(r);i?this.set(e,i):this.delete(e)}delete(e){this.kvs.delete(Ow(e))}map(e){return[...this.kvs.entries()].map(([n,r])=>{const i=n.split(g3);return e({key:i.map(s=>{const[,a,c]=s.match(/^([^:]*):(.*)$/);return a==="number"?Number(c):c}),value:r})})}toJSON(){const e={};return this.map(({key:n,value:r})=>(e[n.join(".")]=r,null)),e}}class z0e{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new F0e(this);constructor(e){this.forceRootUpdate=e}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=e=>e===Zh?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(ea(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(e,n)=>{if(this.initialValues=e||{},n){let r=Im(e,this.store);this.prevWithoutPreserves?.map(({key:i})=>{r=Vo(r,i,Ta(e,i))}),this.prevWithoutPreserves=null,this.updateStore(r)}};destroyForm=e=>{if(e)this.updateStore({});else{const n=new pm;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=n}};getInitialValue=e=>{const n=Ta(this.initialValues,e);return e.length?Im(n):n};setCallbacks=e=>{this.callbacks=e};setValidateMessages=e=>{this.validateMessages=e};setPreserve=e=>{this.preserve=e};registerWatch=e=>this.watcherCenter.register(e);notifyWatch=(e=[])=>{this.watcherCenter.notify(e)};timeoutId=null;warningUnhooked=()=>{};updateStore=e=>{this.store=e};getFieldEntities=(e=!1)=>e?this.fieldEntities.filter(n=>n.getNamePath().length):this.fieldEntities;getFieldsMap=(e=!1)=>{const n=new pm;return this.getFieldEntities(e).forEach(r=>{const i=r.getNamePath();n.set(i,r)}),n};getFieldEntitiesForNamePathList=(e,n=!1)=>
178{if(!e)return this.getFieldEntities(!0);const r=this.getFieldsMap(!0);return n?e.flatMap(i=>{const s=qr(i),a=r.getAsPrefix(s);return a.length?a:[{INVALIDATE_NAME_PATH:s}]}):e.map(i=>{const s=qr(i);return r.get(s)||{INVALIDATE_NAME_PATH:qr(i)}})};getFieldsValue=(e,n)=>{this.warningUnhooked();let r,i;if(e===!0||Array.isArray(e)?(r=e,i=n):e&&typeof e=="object"&&(i=e.filter),r===!0&&!i)return this.store;const s=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,!0),a=[],c=[];s.forEach(h=>{const p=h.INVALIDATE_NAME_PATH||h.getNamePath();if(h.isList?.()){c.push(p);return}if(!i)a.push(p);else{const v="getMeta"in h?h.getMeta():null;i(v)&&a.push(p)}});let u=p7(this.store,a.map(qr));return c.forEach(h=>{Ta(u,h)||(u=Vo(u,h,[]))}),u};getFieldValue=e=>{this.warningUnhooked();const n=qr(e);return Ta(this.store,n)};getFieldsError=e=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(e).map((r,i)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:qr(e[i]),errors:[],warnings:[]}));getFieldError=e=>{this.warningUnhooked();const n=qr(e);return this.getFieldsError([n])[0].errors};getFieldWarning=e=>{this.warningUnhooked();const n=qr(e);return this.getFieldsError([n])[0].warnings};isFieldsTouched=(...e)=>{this.warningUnhooked();const[n,r]=e;let i,s=!1;e.length===0?i=null:e.length===1?Array.isArray(n)?(i=n.map(qr),s=!1):(i=null,s=n):(i=n.map(qr),s=r);const a=this.getFieldEntities(!0),c=v=>v.isFieldTouched();if(!i)return s?a.every(v=>c(v)||v.isList()):a.some(c);const u=new pm;i.forEach(v=>{u.set(v,[])}),a.forEach(v=>{const y=v.getNamePath();i.forEach(E=>{E.every((S,x)=>y[x]===S)&&u.update(E,S=>[...S,v])})});const h=v=>v.some(c),p=u.map(({value:v})=>v);return s?p.every(h):p.some(h)};isFieldTouched=e=>(this.warningUnhooked(),this.isFieldsTouched([e]));isFieldsValidating=e=>{this.warningUnhooked();const n=this.getFieldEntities();if(!e)return n.some(i=>i.isFieldValidating());const r=e.map(qr);return n.some(i=>{const s=i.getNamePath();return Hm(r,s)&&i.isFieldValidating()})};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{const n=new pm,r=this.getFieldEntities(!0);r.forEach(a=>{const{initialValue:c}=a.props,u=a.getNamePath();if(c!==void 0){const h=n.get(u)||new Set;h.add({entity:a,value:c}),n.set(u,h)}});const i=a=>{a.forEach(c=>{const{initialValue:u}=c.props;if(u!==void 0){const h=c.getNamePath();if(this.getInitialValue(h)!==void 0)ea(!1,`Form already set 'initialValues' with path '${h.join(".")}'. Field can not overwrite it.`);else{const v=n.get(h);if(v&&v.size>1)ea(!1,`Multiple Field with path '${h.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(v){const y=this.getFieldValue(h);!c.isListField()&&(!e.skipExist||y===void 0)&&this.updateStore(Vo(this.store,h,[...v][0].value))}}}})};let s;e.entities?s=e.entities:e.namePathList?(s=[],e.namePathList.forEach(a=>{const c=n.get(a);c&&s.push(...[...c].map(u=>u.entity))})):s=r,i(s)};resetFields=e=>{this.warningUnhooked();const n=this.store;if(!e){this.updateStore(Im(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const r=e.map(qr);r.forEach(i=>{const s=this.getInitialValue(i);this.updateStore(Vo(this.store,i,s))}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(n,r,{type:"reset"}),this.notifyWatch(r)};setFields=e=>{this.warningUnhooked();const n=this.store,r=[];e.forEach(i=>{const{name:s,...a}=i,c=qr(s);r.push(c),"value"in a&&this.updateStore(Vo(this.store,c,a.value)),this.notifyObservers(n,[c],{type:"setField",data:i})}),this.notifyWatch(r)};getFields=()=>this.getFieldEntities(!0).map(r=>{const i=r.getNamePath(),a={...r.getMeta(),name:i,value:this.getFieldValue(i)};return Object.defineProperty(a,"originRCField",{value:!0}),a});initEntityValue=e=>{const{initialValue:n}=e.props;if(n!==void 0){const r=e.getNamePath();Ta(this.store,r)===void 0&&this.updateStore(Vo(this.store,r,n))}};isMergedPreserve=e=>(e!==void 0?e:this.preserve)??!0;registerField=e=>{this.fieldEntities.push(e);const n=e.getNamePath();if(this.notifyWatch([n]),e.props.initialValue!==void 0){const r=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return(r,i,s=[])=>{if(this.fieldEntities=this.fieldEntities.filter(a=>a!==e),!this.isMergedPreserve(i)&&(!r||s.length>1)){const a=r?void 0:this.getInitialValue(n);if(n.length&&this.getFieldValue(n)!==a&&this.fieldEntities.every(c=>!qC(c.getNamePath(),n))){const c=this.store;this.updateStore(Vo(c,n,a,!0)),this.notifyObservers(c,[n],{type:"remove"}
178),this.triggerDependenciesUpdate(c,n)}}this.notifyWatch([n])}};dispatch=e=>{switch(e.type){case"updateValue":{const{namePath:n,value:r}=e;this.updateValue(n,r);break}case"validateField":{const{namePath:n,triggerName:r}=e;this.validateFields([n],{triggerName:r});break}}};notifyObservers=(e,n,r)=>{if(this.subscribable){const i={...r,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:s})=>{s(e,n,i)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,n)=>{const r=this.getDependencyChildrenFields(n);return r.length&&this.validateFields(r,{delayFrame:!0}),this.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[n,...r]}),r};updateValue=(e,n)=>{const r=qr(e),i=this.store;this.updateStore(Vo(this.store,r,n)),this.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const s=this.triggerDependenciesUpdate(i,r),{onValuesChange:a}=this.callbacks;if(a){const c=p7(this.store,[r]),u=this.getFieldsValue(),h=Vo(u,r,Ta(c,r));a(c,h)}this.triggerOnFieldsChange([r,...s])};setFieldsValue=e=>{this.warningUnhooked();const n=this.store;if(e){const r=Im(this.store,e);this.updateStore(r)}this.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(e,n)=>{this.setFields([{name:e,value:n,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=e=>{const n=new Set,r=[],i=new pm;this.getFieldEntities().forEach(a=>{const{dependencies:c}=a.props;(c||[]).forEach(u=>{const h=qr(u);i.update(h,(p=new Set)=>(p.add(a),p))})});const s=a=>{(i.get(a)||new Set).forEach(u=>{if(!n.has(u)){n.add(u);const h=u.getNamePath();u.isFieldDirty()&&h.length&&(r.push(h),s(h))}})};return s(e),r};triggerOnFieldsChange=(e,n)=>{const{onFieldsChange:r}=this.callbacks;if(r){const i=this.getFields();if(n){const a=new pm;n.forEach(({name:c,errors:u})=>{a.set(c,u)}),i.forEach(c=>{c.errors=a.get(c.name)||c.errors})}const s=i.filter(({name:a})=>Hm(e,a));s.length&&r(s,i)}};validateFields=(e,n)=>{this.warningUnhooked();let r,i;Array.isArray(e)||typeof e=="string"||typeof n=="string"?(r=e,i=n):i=e;const s=!!r,a=s?r.map(qr):[],c=[...a],u=[],h=String(Date.now()),p=new Set,{recursive:v,dirty:y}=i||{};this.getFieldEntities(!0).forEach(C=>{const R=C.getNamePath();if(s||((!C.isList()||!a.some(A=>qC(A,R,!0)))&&c.push(R),a.push(R)),!(!C.props.rules||!C.props.rules.length)&&!(y&&!C.isFieldDirty())&&(p.add(R.join(h)),!s||Hm(a,R,v))){const A=C.validateRules({validateMessages:{...SW,...this.validateMessages},...i});u.push(A.then(()=>({name:R,errors:[],warnings:[]})).catch(O=>{const P=[],L=[];return O.forEach?.(({rule:{warningOnly:D},errors:N})=>{D?L.push(...N):P.push(...N)}),P.length?Promise.reject({name:R,errors:P,warnings:L}):{name:R,errors:P,warnings:L}}))}});const E=H0e(u);this.lastValidatePromise=E,E.catch(C=>C).then(C=>{const R=C.map(({name:A})=>A);this.notifyObservers(this.store,R,{type:"validateFinish"}),this.triggerOnFieldsChange(R,C)});const S=E.then(()=>this.lastValidatePromise===E?Promise.resolve(this.getFieldsValue(c)):Promise.reject([])).catch(C=>{const R=C.filter(O=>O&&O.errors.length),A=R[0]?.errors?.[0];return Promise.reject({message:A,values:this.getFieldsValue(a),errorFields:R,outOfDate:this.lastValidatePromise!==E})});S.catch(C=>C);const x=a.filter(C=>p.has(C.join(h)));return this.triggerOnFieldsChange(x),S};submit=()=>{this.warningUnhooked(),this.validateFields().then(e=>{const{onFinish:n}=this.callbacks;if(n)try{n(e)}catch(r){console.error(r)}}).catch(e=>{const{onFinishFailed:n}=this.callbacks;n&&n(e)})}}function xW(t){const e=_.useRef(null),[,n]=_.useState({});if(!e.current)if(t)e.current=t;else{const r=()=>{n({})},i=new z0e(r);e.current=i.getForm()}return[e.current]}const m3=_.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),TW=({validateMessages:t,onFormChange:e,onFormFinish:n,children:r})=>{const i=_.useContext(m3),s=_.useRef({});return _.createElement(m3.Provider,{value:{...i,validateMessages:{...i.validateMessages,...t},triggerFormChange:(a,c)=>{e&&e(a,{changedFields:c,forms:s.current}),i.triggerFormChange(a,c)},triggerFormFinish:(a,c)=>{n&&n(a,{values:c,forms:s.current}),i.triggerFormFinish(a,c)},registerForm:(a,c)=>{a&&(s.current={...s.current,[a]:c}),i.registerForm(a,c)},unregisterForm:a=>{const c={...s.current};delete c[a],s.current=c,i.unregisterForm(a)}}},r)};function v3(){return v3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},v3.apply(this,arguments)}const V0e=({name:t,initialValues:e,fields:n,form:r,preserve:i,children:s,component:a="form",validateMessages:c,validateTrigger:u="onChange",onValuesChange:h,onFieldsChange:p,onFinish:v,onFinishFailed:y,clearOnDestroy:E,...S},x)=>{const C=_.useRef(null),R=_.useContext(m3),[A]=xW(r),{useSubscribe:O,setInitialValues:P,setCallbacks:L,setValidateMessages:D,setPreserve:N,destroyForm:k}=A.getInternalHooks(Zh);_.useImperativeHandle(x,()=>({...A,nativeElement:C.current})),_.useEffect(()=>(R.registerForm(t,A),()=>{R.unregisterForm(t)}),[R,A,t]),D({...R.validateMessages,...c}),L({onValuesChange:h,onFieldsChange:(J,...H)=>{R.triggerFormChange(t,J),p&&p(J,...H)},onFinish:J=>{R.triggerFormFinish(t,J),v&&v(J)},onFinishFailed:y}
178),N(i);const U=_.useRef(null);P(e,!U.current),U.current||(U.current=!0),_.useEffect(()=>()=>k(E),[]);let F;const V=typeof s=="function";if(V){const J=A.getFieldsValue(!0);F=s(J,A)}else F=s;O(!V);const G=_.useRef(null);_.useEffect(()=>{N0e(G.current||[],n||[])||A.setFields(n||[]),G.current=n},[n,A]);const Z=_.useMemo(()=>({...A,validateTrigger:u}),[A,u]),K=_.createElement(VC.Provider,{value:null},_.createElement(cv.Provider,{value:Z},F));return a===!1?K:_.createElement(a,v3({},S,{ref:C,onSubmit:J=>{J.preventDefault(),J.stopPropagation(),A.submit()},onReset:J=>{J.preventDefault(),A.resetFields(),S.onReset?.(J)}}),K)};function lA(t){try{return JSON.stringify(t)}catch{return Math.random()}}function q0e(...t){const[e,n={}]=t,r=e0e(n)?{form:n}:n,i=r.form,[s,a]=_.useState(()=>typeof e=="function"?e({}):void 0),c=_.useMemo(()=>lA(s),[s]),u=_.useRef(c);u.current=c;const h=_.useContext(cv),p=i||h,v=p&&p._init,{getFieldsValue:y,getInternalHooks:E}=p,{registerWatch:S}=E(Zh),x=ii((R,A)=>{const O=r.preserve?A??y(!0):R??y(),P=typeof e=="function"?e(O):Ta(O,qr(e));lA(s)!==lA(P)&&a(P)}),C=typeof e=="function"?e:JSON.stringify(e);return _.useEffect(()=>{v&&x()},[v,C]),_.useEffect(()=>v?S((A,O)=>{x(A,O)}):void 0,[v]),s}const W0e=_.forwardRef(V0e),Rb=W0e;Rb.FormProvider=TW;Rb.Field=CW;Rb.List=j0e;Rb.useForm=xW;Rb.useWatch=q0e;const lPe=_.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),cPe=_.createContext(null),uPe=t=>{const e=PV(t,["prefixCls"]);return _.createElement(TW,{...e})},dPe=_.createContext({prefixCls:""}),m7=_.createContext({}),G0e=({children:t,status:e,override:n})=>{const r=_.useContext(m7),i=_.useMemo(()=>{const s={...r};return n&&delete s.isFormItemInput,e&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[e,n,r]);return _.createElement(m7.Provider,{value:i},t)},fPe=_.createContext(void 0),K0e=t=>{const{space:e,form:n,children:r}=t;if(!hi(r))return null;let i=r;return n&&(i=Te.createElement(G0e,{override:!0,status:!0},i)),e&&(i=Te.createElement(Jve,null,i)),i},Y0e=()=>na()&&window.document.documentElement;function X0e(t,e,n){return _.useMemo(()=>({...{trap:e??!0,focusTriggerAfterClose:n??!0},...t}),[t,e,n])}const eT=t=>{const{prefixCls:e,className:n,style:r,size:i,shape:s}=t,a=Be({[`${e}-lg`]:i==="large",[`${e}-sm`]:i==="small"}),c=Be({[`${e}-circle`]:s==="circle",[`${e}-square`]:s==="square",[`${e}-round`]:s==="round"}),u=_.useMemo(()=>kp(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return _.createElement("span",{className:Be(e,a,c,n),style:{...u,...r}})},Q0e=new eo("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ZP=t=>({height:t,lineHeight:At(t)}),cf=t=>({width:t,...ZP(t)}),Z0e=t=>({background:t.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Q0e,animationDuration:t.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),cA=(t,e)=>({width:e(t).mul(5).equal(),minWidth:e(t).mul(5).equal(),...ZP(t)}),J0e=t=>{const{skeletonAvatarCls:e,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:s}=t;return{[e]:{display:"inline-block",verticalAlign:"top",background:n,...cf(r)},[`${e}${e}-circle`]:{borderRadius:"50%"},[`${e}${e}-lg`]:{...cf(i)},[`${e}${e}-sm`]:{...cf(s)}}},e_e=t=>{const{controlHeight:e,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:s,gradientFromColor:a,calc:c}=t;return{[r]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:n,...cA(e,c)},[`${r}-lg`]:{...cA(i,c)},[`${r}-sm`]:{...cA(s,c)}}},RW=t=>{const{gradientFromColor:e,borderRadiusSM:n,imageSizeBase:r,calc:i}=t;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:e,borderRadius:n,...cf(i(r).mul(2).equal())}},t_e=t=>({[t.skeletonNodeCls]:{...RW(t)}}),n_e=t=>{const{skeletonImageCls:e,imageSizeBase:n,calc:r}=t;return{[e]:{...RW(t),[`${e}-path`]:{fill:"#bfbfbf"},[`${e}-svg`]:{...cf(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${e}-svg${e}-svg-circle`]:{borderRadius:"50%"}},[`${e}${e}-circle`]:{borderRadius:"50%"}}},uA=(t,e,n)=>{const{skeletonButtonCls:r}=t;return{[`${n}${r}-circle`]:{width:e,minWidth:e,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:e}}},dA=(t,e)=>({width:e(t).mul(2).equal(),minWidth:e(t).mul(2).equal(),...ZP(t)}),r_e=t=>{const{borderRadiusSM:e,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:s,gradientFromColor:a,calc:c}=t;return{[n]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:e,width:c(r).mul(2).equal(),minWidth:c(r).mul(2).equal(),...dA(r,c)},...uA(t,r,n),[`${n}-lg`]:{...dA(i,c)},...uA(t,i,`${n}-lg`),[`${n}-sm`]:{...dA(s,c)},...uA(t,s,`${n}-sm`)}},i_e=t=>{const{componentCls:e,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:s,skeletonInputCls:a,skeletonNodeCls:c,skeletonImageCls:u,controlHeight:h,controlHeightLG:p,controlHeightSM:v,gradientFromColor:y,padding:E,marginSM:S,borderRadius:x,titleHeight:C,blockRadius:R,paragraphLiHeight:A,controlHeightXS:O,paragraphMarginTop:P}=t;return{[e]:{display:"table",width:"100%",[`${e}-header`]:{display:"table-cell",paddingInlineEnd:E,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:y,...cf(h)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...cf(p)},[`${n}-sm`]:{...cf(v)}},[`${e}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:C,background:y,borderRadius:R,[`+ ${i}`]:{marginBlockStart:v}},[i]:{padding:0,"> li":{width:"100%",height:A,listStyle:"none",background:y,borderRadius:R,"+ li":{marginBlockStart:O}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${e}-section`]:{[`${r}, ${i} > li`]:{borderRadius:x}}},[`${e}-with-avatar ${e}-section`]:{[r]:{marginBlockStart:S,[`+ ${i}`]:{marginBlockStart:P}}},[`${e}${e}-element`]:{display:"inline-block",width:"auto",...r_e(t),...J0e(t),...e_e(t),...t_e(t),...n_e(t)},[`${e}${e}-block`]:{width:"100%",[s]:{width:"100%"},[a]:{width:"100%"}},[`${e}${e}-active`]:{[` 179 ${r}, 180 ${i} > li, 181 ${n}, 182 ${s}, 183 ${a}, 184 ${c}, 185 ${u} 186 `]:{...Z0e(t)}}}},s_e=t=>{const{colorFillContent:e,colorFill:n}=t,r=e,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:t.controlHeight/2,blockRadius:t.borderRadiusSM,paragraphMarginTop:t.marginLG+t.marginXXS,paragraphLiHeight:t.controlHeight/2}},Ab=Sl("Skeleton",t=>{const{componentCls:e,calc:n}=t,r=Ma(t,{skeletonAvatarCls:`${e}-avatar`,skeletonTitleCls:`${e}-title`,skeletonParagraphCls:`${e}-paragraph`,skeletonButtonCls:`${e}-button`,skeletonInputCls:`${e}-input`,skeletonNodeCls:`${e}-node`,skeletonImageCls:`${e}-image`,imageSizeBase:n(t.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackgroun
186d:`linear-gradient(90deg, ${t.gradientFromColor} 25%, ${t.gradientToColor} 37%, ${t.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return i_e(r)},s_e,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),o_e=t=>{const{prefixCls:e,className:n,classNames:r,rootClassName:i,active:s,style:a,styles:c,shape:u="circle",size:h,...p}=t,{getPrefixCls:v}=_.useContext(wr),y=v("skeleton",e),[E,S]=Ab(y),x=Cb(R=>h??R),C=Be(y,`${y}-element`,{[`${y}-active`]:s},r?.root,n,i,E,S);return _.createElement("div",{className:C,style:c?.root},_.createElement(eT,{prefixCls:`${y}-avatar`,className:r?.content,style:{...c?.content,...a},shape:u,size:x,...p}))},a_e=t=>{const{prefixCls:e,className:n,rootClassName:r,classNames:i,active:s,style:a,styles:c,block:u=!1,size:h,...p}=t,{getPrefixCls:v}=_.useContext(wr),y=v("skeleton",e),[E,S]=Ab(y),x=Cb(R=>h??R),C=Be(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:u},i?.root,n,r,E,S);return _.createElement("div",{className:C,style:c?.root},_.createElement(eT,{prefixCls:`${y}-button`,className:i?.content,style:{...c?.content,...a},size:x,...p}))},AW=t=>{const{prefixCls:e,className:n,classNames:r,rootClassName:i,internalClassName:s,style:a,styles:c,active:u,children:h}=t,{getPrefixCls:p}=_.useContext(wr),v=p("skeleton",e),[y,E]=Ab(v),S=Be(v,`${v}-element`,{[`${v}-active`]:u},y,r?.root,n,i,E);return _.createElement("div",{className:S,style:c?.root},_.createElement("div",{className:Be(r?.content,s||`${v}-node`),style:{...c?.content,...a}},h))},l_e=t=>{const{getPrefixCls:e}=_.useContext(wr),n=e("skeleton",t.prefixCls);return _.createElement(AW,{...t,internalClassName:`${n}-image`},_.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${n}-image-svg`},_.createElement("title",null,"Image placeholder"),_.createElement("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${n}-image-path`})))},c_e=t=>{const{prefixCls:e,className:n,classNames:r,rootClassName:i,active:s,block:a,style:c,styles:u,size:h,...p}=t,{getPrefixCls:v}=_.useContext(wr),y=v("skeleton",e),[E,S]=Ab(y),x=Cb(R=>h??R),C=Be(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:a},r?.root,n,i,E,S);return _.createElement("div",{className:C,style:u?.root},_.createElement(eT,{prefixCls:`${y}-input`,className:r?.content,style:{...u?.content,...c},size:x,...p}))},u_e=(t,e)=>{const{width:n,rows:r=2}=e;if(Array.isArray(n))return n[t];if(r-1===t)return n},d_e=t=>{const{prefixCls:e,className:n,style:r,rows:i=0}=t,s=Array.from({length:i}).map((a,c)=>_.createElement("li",{key:c,style:{width:u_e(c,t)}}));return _.createElement("ul",{className:Be(e,n),style:r},s)},f_e=({prefixCls:t,className:e,width:n,style:r})=>_.createElement("h3",{className:Be(t,e),style:{width:n,...r}});function fA(t){return Oi(t)?t:{}}function h_e(t,e){return t&&!e?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function p_e(t,e){return!t&&e?{width:"38%"}:t&&e?{width:"50%"}:{}}function g_e(t,e){const n={};return(!t||!e)&&(n.width="61%"),!t&&e?n.rows=3:n.rows=2,n}const xv=t=>{const{prefixCls:e,loading:n,className:r,rootClassName:i,classNames:s,style:a,styles:c,children:u,avatar:h=!1,title:p=!0,paragraph:v=!0,active:y,round:E}=t,{getPrefixCls:S,direction:x,className:C,style:R,classNames:A,styles:O}=El("skeleton"),P=S("skeleton",e),[L,D]=Ab(P),N={...t,avatar:h,title:p,paragraph:v},[k,U]=_f([A,s],[O,c],{props:N});if(n||!("loading"in t)){const F=!!h,V=!!p,G=!!v;let Z;if(F){const H={className:k.avatar,prefixCls:`${P}-avatar`,...h_e(V,G),...fA(h),style:U.avatar};Z=_.createElement("div",{className:Be(k.header,`${P}-header`),style:U.header},_.createElement(eT,{...H}))}let K;if(V||G){let H;if(V){const ee={className:k.title,prefixCls:`${P}-title`,...p_e(F,G),...fA(p),style:U.title};H=_.createElement(f_e,{...ee})}let Y;if(G){const ee={className:k.paragraph,prefixCls:`${P}-paragraph`,...g_e(F,V),...fA(v),style:U.paragraph};Y=_.createElement(d_e,{...ee})}K=_.createElement("div",{className:Be(k.section,`${P}-section`),style:U.section},H,Y)}
186const J=Be(P,{[`${P}-with-avatar`]:F,[`${P}-active`]:y,[`${P}-rtl`]:x==="rtl",[`${P}-round`]:E},k.root,C,r,i,L,D);return _.createElement("div",{className:J,style:{...U.root,...R,...a}},Z,K)}return u??null};xv.Button=a_e;xv.Avatar=o_e;xv.Input=c_e;xv.Image=l_e;xv.Node=AW;function v7(){}const m_e=_.createContext({add:v7,remove:v7});function v_e(t){const e=_.useContext(m_e),n=_.useRef(null);return ii(i=>{if(i){const s=t?i.querySelector(t):i;s&&(e.add(s),n.current=s)}else e.remove(n.current)})}const y7=()=>{const{cancelButtonProps:t,cancelTextLocale:e,onCancel:n}=_.useContext(xb);return Te.createElement(Sc,{onClick:n,...t},e)},_7=()=>{const{confirmLoading:t,okButtonProps:e,okType:n,okTextLocale:r,onOk:i}=_.useContext(xb);return Te.createElement(Sc,{...hW(n),loading:t,onClick:i,...e},r)};function y_e(t,e){return Te.createElement("span",{className:`${t}-close-x`},e||Te.createElement(Lp,{className:`${t}-close-icon`}))}const __e=t=>{const{okText:e,okType:n="primary",cancelText:r,confirmLoading:i,onOk:s,onCancel:a,okButtonProps:c,cancelButtonProps:u,footer:h}=t,[p]=Zx("Modal",Mq()),v=e||p?.okText,y=r||p?.cancelText,E=Te.useMemo(()=>({confirmLoading:i,okButtonProps:c,cancelButtonProps:u,okTextLocale:v,cancelTextLocale:y,okType:n,onOk:s,onCancel:a}),[i,c,u,v,y,n,s,a]);let S;return is(h)||typeof h>"u"?(S=Te.createElement(Te.Fragment,null,Te.createElement(y7,null),Te.createElement(_7,null)),is(h)&&(S=h(S,{OkBtn:_7,CancelBtn:y7})),S=Te.createElement(_W,{value:E},S)):S=h,Te.createElement(jq,{disabled:!1},S)},b_e=t=>{const{componentCls:e}=t;return{[e]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},E_e=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}},S_e=(t,e)=>{const{componentCls:n,gridColumns:r,antCls:i}=t,[s,a]=Ep(i,"grid"),[,c]=Ep(i,"col"),u={};for(let h=r;h>=0;h--)h===0?(u[`${n}${e}-${h}`]={display:"none"},u[`${n}-push-${h}`]={insetInlineStart:"auto"},u[`${n}-pull-${h}`]={insetInlineEnd:"auto"},u[`${n}${e}-push-${h}`]={insetInlineStart:"auto"},u[`${n}${e}-pull-${h}`]={insetInlineEnd:"auto"},u[`${n}${e}-offset-${h}`]={marginInlineStart:0},u[`${n}${e}-order-${h}`]={order:0}):(u[`${n}${e}-${h}`]=[{[s("display")]:"block",display:"block"},{display:a("display"),flex:`0 0 ${h/r*100}%`,maxWidth:`${h/r*100}%`}],u[`${n}${e}-push-${h}`]={insetInlineStart:`${h/r*100}%`},u[`${n}${e}-pull-${h}`]={insetInlineEnd:`${h/r*100}%`},u[`${n}${e}-offset-${h}`]={marginInlineStart:`${h/r*100}%`},u[`${n}${e}-order-${h}`]={order:h});return u[`${n}${e}-flex`]={flex:c(`${e.replace(/-/,"")}-flex`)},u},y3=(t,e)=>S_e(t,e),w_e=(t,e,n)=>({[`@media (min-width: ${At(e)})`]:{...y3(t,n)}}),C_e=()=>({}),x_e=()=>({}),hPe=Sl("Grid",b_e,C_e),OW=t=>({xs:t.screenXSMin,sm:t.screenSMMin,md:t.screenMDMin,lg:t.screenLGMin,xl:t.screenXLMin,xxl:t.screenXXLMin,xxxl:t.screenXXXLMin}),pPe=Sl("Grid",t=>{const e=Ma(t,{gridColumns:24}),n=OW(e);return delete n.xs,[E_e(e),y3(e,""),y3(e,"-xs"),Object.keys(n).map(r=>w_e(e,n[r],`-${r}`)).reduce((r,i)=>({...r,...i}),{})]},x_e);function b7(t){return{position:t,inset:0}}const T_e=t=>{const{componentCls:e,antCls:n}=t;return[{[`${e}-root`]:{[`${e}${n}-zoom-enter, ${e}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:t.motionDurationSlow,userSelect:"none"},[`${e}${n}-zoom-leave ${e}-container`]:{pointerEvents:"none"},[`${e}-mask`]:{...b7("fixed"),zIndex:t.zIndexPopupBase,height:"100%",backgroundColor:t.colorBgMask,pointerEvents:"none",[`&${e}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${e}-hidden`]:{display:"none"}},[`${e}-wrap`]:{...b7("fixed"),zIndex:t.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${e}-root`]:aye(t)}]},R_e=t=>{const{componentCls:e,motionDurationMid:n}=t;return[{[`${e}-root`]:{[`${e}-wrap-rtl`]:{direction:"rtl"},[`${e}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[e]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${t.screenSMMax}px)`]:{[e]:{maxWidth:"calc(100vw - 16px)",margin:`${At(t.marginXS)} auto`},[`${e}-centered`]:{[e]:{flex:1}}}}},{[e]:{...HP(t),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${At(t.calc(t.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:t.borderRadiusLG,...pq(t)},[`${e}-title`]:{margin:0,color:t.titleColor,fontWeight:t.fontWeightStrong,fontSize:t.titleFontSize,lineHeight:t.titleLineHeight,wordWrap:"break-word"},[`${e}-container`]:{position:"relative",backgroundColor:t.contentBg,backgroundClip:"padding-box",border:0,borderRadius:t.borderRadiusLG,boxShadow:t.boxShadow,pointerEvents:"auto",padding:t.contentPadding},[`${e}-close`]:{position:"absolute",top:t.calc(t.modalHeaderHeight).sub(t.modalCloseBtnSize).div(2).equal(),insetInlineEnd:t.calc(t.modalHeaderHeight).sub(t.modalCloseBtnSize).div(2).equal(),zIndex:t.calc(t.zIndexPopupBase).add(10).equal(),padding:0,color:t.modalCloseIconColor,fontWeight:t.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:t.borderRadiusSM,width:t.modalCloseBtnSize,height:t.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(r=>`${r} ${n}`).join(", "),"&-x":{display:"flex",fontSize:t.fontSizeLG,fontStyle:"normal",lineHeight:At(t.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:t.modalCloseIconHoverColor,backgroundColor:t.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:t.colorBgTextActive},...wv(t)},[`${e}-header`]:{color:t.colorText,background:t.headerBg,borderRadius:`${At(t.borderRadiusLG)} ${At(t.borderRadiusLG)} 0 0`,marginBottom:t.headerMarginBottom,padding:t.headerPadding,borderBottom:t.headerBorderBottom},[`${e}-body`]:{fontSize:t.fontSize,lineHeight:t.lineHeight,wordWrap:"break-word",padding:t.bodyPadding,[`${e}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${At(t.margin)} auto`}},[`${e}-footer`]:{textAlign:"end",background:t.footerBg,marginTop:t.footerMarginTop,padding:t.footerPadding,borderTop:t.footerBorderTop,borderRadius:t.footerBorderRadius,[`> ${t.antCls}-btn + ${t.antCls}-btn`]:{marginInlineStart:t.marginXS}},[`${e}-open`]:{overflow:"hidden"}}},{[`${e}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${e}-container, 187 ${e}-body, 188 ${e}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${e}-confirm-body`]:{marginBottom:"auto"}}}]},A_e=t=>{const{componentCls:e}=t;return{[`${e}-root`]:{[`${e}-wrap-rtl`]:{direction:"rtl",[`${e}-confirm-body`]:{direction:"rtl"}}}}},O_e=t=>{const{componentCls:e}=t,n=OW(t),r={...n};delete r.xs;const i=`--${e.replace(".","")}-`,s=Object.keys(r).map(a=>({[`@media (min-width: ${At(r[a])})`]:{width:`var(${i}${a}-width)`}}));return{[`${e}-root`]:{[e]:[].concat(Cs(Object.keys(n).map((a,c)=>{const u=Object.keys(n)[c-1];return u?{[`${i}${a}-width`]:`var(${i}${u}-width)`}:null})),[{width:`var(${i}xs-width)`}],Cs(s))}}},IW=t=>{const e=t.padding,n=t.fontSizeHeading5,r=t.lineHeightHeading5;return Ma(t,{modalHeaderHeight:t.calc(t.calc(r).mul(n).equal()).add(t.calc(e).mul(2).equal()).equal(),modalFooterBorderColorSplit:t.colorSplit,modalFooterBorderStyle:t.lineType,modalFooterBorderWidth:t.lineWidth,modalCloseIconColor:t.colorIcon,modalCloseIconHoverColor:t.colorIconHover,modalCloseBtnSize:t.controlHeight,modalConfirmIconSize:t.fontHeight,modalTitleHeight:t.calc(t.titleFontSize).mul(t.titleLineHeight).equal()})},PW=t=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:t.lineHeightHeading5,titleFontSize:t.fontSizeHeading5,contentBg:t.colorBgElevated,titleColor:t.colorTextHeading,contentPadding:t.wireframe?0:`${At(t.paddingMD)} ${At(t.paddingContentHorizontalLG)}`,headerPadding:t.wireframe?`${At(t.padding)} ${At(t.paddingLG)}`:0,headerBorderBottom:t.wireframe?`${At(t.lineWidth)} ${t.lineType} ${t.colorSplit}`:"none",headerMarginBottom:t.wireframe?0:t.marginXS,bodyPadding:t.wireframe?t.paddingLG:0,footerPadding:t.wireframe?`${At(t.paddingXS)} ${At(t.padding)}`:0,footerBorderTop:t.wireframe?`${At(t.lineWidth)} ${t.lineType} ${t.colorSplit}`:"none",footerBorderRadius:t.wireframe?`0 0 ${At(t.borderRadiusLG)} ${At(t.borderRadiusLG)}`:0,footerMarginTop:t.wireframe?0:t.marginSM,confirmBodyPadding:t.wireframe?`${At(t.padding*2)} ${At(t.padding*2)} ${At(t.paddingLG)}`:0,confirmIconMarginInlineEnd:t.wireframe?t.margin:t.marginSM,confirmBtnsMarginTop:t.wireframe?t.marginLG:t.marginSM,mask:!0}),I_e=Sl("Modal",t=>{const e=IW(t);return[R_e(e),A_e(e),T_e(e),bye(e,"zoom"),O_e(e)]},PW,{unitless:{titleLineHeight:!0}});let _3;const P_e=t=>{_3={x:t.pageX,y:t.pageY},setTimeout(()=>{_3=null},100)};Y0e()&&document.documentElement.addEventListener("click",P_e,!0);const L_e=t=>{const{prefixCls:e,className:n,rootClassName:r,open:i,wrapClassName:s,centered:a,getContainer:c,style:u,width:h=520,footer:p,classNames:v,styles:y,children:E,loading:S,confirmLoading:x,zIndex:C,mousePosition:R,onOk:A,onCancel:O,okButtonProps:P,cancelButtonProps:L,destroyOnHidden:D,destroyOnClose:N,panelRef:k=null,closable:U,mask:F,modalRender:V,maskClosable:G,focusTriggerAfterClose:Z,focusable:K,...J}=t,{getPopupContainer:H,getPrefixCls:Y,direction:ee,className:fe,style:ue,classNames:z,styles:Q,centered:ae,cancelButtonProps:de,okButtonProps:be,mask:Se,focu
188sable:je}=El("modal"),{modal:Ne}=_.useContext(wr),[ze,tt]=_.useMemo(()=>typeof U=="boolean"?[void 0,void 0]:[U?.afterClose,U?.onClose],[U]),Je=Y("modal",e),We=Y(),[Ve,Pt,dt]=eve(F,Se,Je,G),$e=X0e({...je,...K},Ve,Z),vt=qn=>{x||(O?.(qn),tt?.())},ot=qn=>{A?.(qn),tt?.()},Bt=Qx(Je),[An,Ut]=I_e(Je,Bt),qt=Be(s,{[`${Je}-centered`]:a??ae,[`${Je}-wrap-rtl`]:ee==="rtl"}),or=p!==null&&!S?_.createElement(__e,{...t,okButtonProps:{...be,...P},onOk:ot,cancelButtonProps:{...de,...L},onCancel:vt}):null,[Hn,Yr,xr,pi]=Jme(jC(t),jC(Ne),{closable:!0,closeIcon:_.createElement(Lp,{className:`${Je}-close-icon`}),closeIconRender:qn=>y_e(Je,qn)}),zn=Hn?{disabled:xr,closeIcon:Yr,afterClose:ze,...pi}:!1,Zn=V?qn=>_.createElement("div",{className:`${Je}-render`},V(qn)):void 0,ar=`.${Je}-${V?"render":"container"}`,Vi=v_e(ar),Vn=Ap(k,Vi),[Wt,Nt]=ove("Modal",C),Xt={...t,width:h,panelRef:k,focusTriggerAfterClose:$e.focusTriggerAfterClose,focusable:$e,mask:Ve,maskClosable:dt,zIndex:Wt},[nn,Xr]=_f([z,v,Pt],[Q,y],{props:Xt}),[Li,ki]=_.useMemo(()=>Oi(h)?[void 0,h]:[h,void 0],[h]),gi=_.useMemo(()=>{const qn={};return ki&&Object.keys(ki).forEach(si=>{const Wn=ki[si];hi(Wn)&&(qn[`--${Je}-${si}-width`]=kp(Wn)?`${Wn}px`:Wn)}),qn},[Je,ki]);return _.createElement(K0e,{form:!0,space:!0},_.createElement(eW.Provider,{value:Nt},_.createElement(Jye,{width:Li,...J,zIndex:Wt,getContainer:c===void 0?H:c,prefixCls:Je,rootClassName:Be(An,r,Ut,Bt,nn.root),rootStyle:Xr.root,footer:or,visible:i,mousePosition:R??_3,onClose:vt,closable:zn,closeIcon:Yr,transitionName:HC(We,"zoom",t.transitionName),maskTransitionName:HC(We,"fade",t.maskTransitionName),mask:Ve,maskClosable:dt,className:Be(An,n,fe),style:{...ue,...u,...gi},classNames:{...nn,wrapper:Be(nn.wrapper,qt)},styles:Xr,panelRef:Vn,destroyOnHidden:D??N,modalRender:Zn,focusTriggerAfterClose:$e.focusTriggerAfterClose,focusTrap:$e.trap},S?_.createElement(xv,{active:!0,title:!1,paragraph:{rows:4},className:`${Je}-body-skeleton`}):E)))},k_e=t=>{const{componentCls:e,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:s,lineHeight:a,modalTitleHeight:c,fontHeight:u,confirmBodyPadding:h}=t,p=`${e}-confirm`;return{[p]:{"&-rtl":{direction:"rtl"},[`${t.antCls}-modal-header`]:{display:"none"},[`${p}-body-wrapper`]:{...Bpe()},[`&${e} ${e}-body`]:{padding:h},[`${p}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:t.confirmIconMarginInlineEnd,marginTop:t.calc(t.calc(u).sub(i).equal()).div(2).equal()},[`&-has-title > ${t.iconCls}`]:{marginTop:t.calc(t.calc(c).sub(i).equal()).div(2).equal()}},[`${p}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:t.marginXS,maxWidth:`calc(100% - ${At(t.marginSM)})`},[`${p}-body-no-icon ${p}-paragraph`]:{maxWidth:"100%"},[`${t.iconCls} + ${p}-paragraph`]:{maxWidth:`calc(100% - ${At(t.calc(t.modalConfirmIconSize).add(t.marginSM).equal())})`},[`${p}-title`]:{color:t.colorTextHeading,fontWeight:t.fontWeightStrong,fontSize:n,lineHeight:r},[`${p}-container`]:{color:t.colorText,fontSize:s,lineHeight:a},[`${p}-btns`]:{textAlign:"end",marginTop:t.confirmBtnsMarginTop,[`${t.antCls}-btn + ${t.antCls}-btn`]:{marginBottom:0,marginInlineStart:t.marginXS}}},[`${p}-error ${p}-body > ${t.iconCls}`]:{color:t.colorError},[`${p}-warning ${p}-body > ${t.iconCls}, 189 ${p}-confirm ${p}-body > ${t.iconCls}`]:{color:t.colorWarning},[`${p}-info ${p}-body > ${t.iconCls}`]:{color:t.colorInfo},[`${p}-success ${p}-body > ${t.iconCls}`]:{color:t.colorSuccess}}},M_e=Yx(["Modal","confirm"],t=>{const e=IW(t);return k_e(e)},PW,{order:-1e3}),D_e=t=>{const{prefixCls:e,icon:n,okText:r,cancelText:i,confirmPrefixCls:s,type:a,okCancel:c,footer:u,locale:h,autoFocusButton:p,focusable:v,...y}=t,{infoIcon:E,successIcon:S,errorIcon:x,warningIcon:C}=El("modal");let R=n;if(n===void 0)switch(a){case"info":R=Tw(E,_.createElement(Xx,null));break;case"success":R=Tw(S,_.createElement(Eb,null));break;
189case"error":R=Tw(x,_.createElement(Sb,null));break;default:R=Tw(C,_.createElement(wb,null))}const A=c??a==="confirm",O=_.useMemo(()=>{const J=v?.autoFocusButton||p;return J||J===null?J:"ok"},[p,v?.autoFocusButton]),[P]=Zx("Modal"),L=h||P,D=r||(A?L?.okText:L?.justOkText),N=i||L?.cancelText,{closable:k}=y,{onClose:U}=Oi(k)?k:{},F=_.useMemo(()=>({autoFocusButton:O,cancelTextLocale:N,okTextLocale:D,mergedOkCancel:A,onClose:U,...y}),[O,N,D,A,U,y]),V=_.createElement(_.Fragment,null,_.createElement(i7,null),_.createElement(s7,null)),G=hi(t.title)&&t.title!=="",Z=hi(R),K=`${s}-body`;return _.createElement("div",{className:`${s}-body-wrapper`},_.createElement("div",{className:Be(K,{[`${K}-has-title`]:G,[`${K}-no-icon`]:!Z})},R,_.createElement("div",{className:`${s}-paragraph`},G&&_.createElement("span",{className:`${s}-title`},t.title),_.createElement("div",{className:`${s}-content`},t.content))),u===void 0||is(u)?_.createElement(_W,{value:F},_.createElement("div",{className:`${s}-btns`},is(u)?u(V,{OkBtn:s7,CancelBtn:i7}):V)):u,_.createElement(M_e,{prefixCls:e}))},N_e=t=>{const{close:e,zIndex:n,maskStyle:r,direction:i,prefixCls:s,wrapClassName:a,rootPrefixCls:c,bodyStyle:u,closable:h=!1,onConfirm:p,styles:v,title:y,mask:E,maskClosable:S,okButtonProps:x,cancelButtonProps:C}=t,{cancelButtonProps:R,okButtonProps:A}=El("modal"),O=`${s}-confirm`,P=t.width||416,L=t.style||{},D=Be(O,`${O}-${t.type}`,{[`${O}-rtl`]:i==="rtl"},t.className),N=_.useMemo(()=>{const F=r3(E,S);return F.closable??(F.closable=!1),F},[E,S]),[,k]=Pp(),U=_.useMemo(()=>n!==void 0?n:k.zIndexPopupBase+KP,[n,k]);return _.createElement(L_e,{...t,className:D,wrapClassName:Be({[`${O}-centered`]:!!t.centered},a),onCancel:()=>{e?.({triggerCancel:!0}),p?.(!1)},title:y,footer:null,transitionName:HC(c||"","zoom",t.transitionName),maskTransitionName:HC(c||"","fade",t.maskTransitionName),mask:N,style:L,styles:{body:u,mask:r,...v},width:P,zIndex:U,closable:h},_.createElement(D_e,{...t,confirmPrefixCls:O,okButtonProps:{...A,...x},cancelButtonProps:{...R,...C}}))},LW=t=>{const{rootPrefixCls:e,iconPrefixCls:n,direction:r,theme:i}=t;return _.createElement(bf,{prefixCls:e,iconPrefixCls:n,direction:r,theme:i},_.createElement(N_e,{...t}))},q_=[];let kW="";function MW(){return kW}const $_e=t=>{const{prefixCls:e,getContainer:n,direction:r}=t,i=Mq(),s=_.useContext(wr),a=MW()||s.getPrefixCls(),c=e||`${a}-modal`;let u=n;return u===!1&&(u=void 0),Te.createElement(LW,{...t,rootPrefixCls:a,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:r??s.direction,locale:s.locale?.Modal??i,getContainer:u})};function gPe(t){const e=Ime(),n=document.createDocumentFragment();let r={...t,close:c,open:!0},i;function s(...h){h.some(v=>v?.triggerCancel)&&t.onCancel?.(()=>{},...h.slice(1));for(let v=0;v<q_.length;v++)if(q_[v]===c){q_.splice(v,1);break}$V(n).then(()=>{})}const a=h=>{clearTimeout(i),i=setTimeout(()=>{const p=e.getPrefixCls(void 0,MW()),v=e.getIconPrefixCls(),y=e.getTheme(),E=Te.createElement($_e,{...h});NV(Te.createElement(bf,{prefixCls:p,iconPrefixCls:v,theme:y},is(e.holderRender)?e.holderRender(E):E),n)})};function c(...h){r={...r,open:!1,afterClose:()=>{is(t.afterClose)&&t.afterClose(),s.apply(this,h)}},a(r)}function u(h){is(h)?r=h(r):r={...r,...h},a(r)}return a(r),q_.push(c),{destroy:c,update:u}}function F_e(t){return{...t,type:"warning"}}function U_e(t){return{...t,type:"info"}}function B_e(t){return{...t,type:"success"}}function j_e(t){return{...t,type:"error"}}function H_e(t){return{...t,type:"confirm"}}function mPe({rootPrefixCls:t}){kW=t}const z_e=_.forwardRef((t,e)=>{const{afterClose:n,config:r,...i}=t,[s,a]=_.useState(!0),[c,u]=_.useState(r),{direction:h,getPrefixCls:p}=_.useContext(wr),v=p("modal"),y=p(),E=()=>{n(),c.afterClose?.()},S=(...R)=>{a(!1),R.some(O=>O?.triggerCancel)&&c.onCancel?.(()=>{},...R.slice(1))};_.useImperativeHandle(e,()=>({destroy:S,update:R=>{u(A=>{const O=is(R)?R(A):R;return{...A,...O}})}}));const x=c.okCancel??c.type==="confirm",[C]=Zx("Modal",mf.Modal);return _.createElement(LW,{prefixCls:v,rootPrefixCls:y,...c,close:S,open:s,afterClose:E,okText:c.okText||(x?C?.okText:C?.justOkText),direction:c.direction||h,cancelText:c.cancelText||C?.cancelText,...i})});let E7=0;const V_e=_.memo(_.forwardRef((t,e)=>{const[n,r]=nve();return _.useImperativeHandle(e,()=>({patchElement:r}),[r]),_.createElement(_.Fragment,null,n)}));function q_e(){const t=_.useRef(null),[e,n]=_.useState([]);_.useEffect(()=>{e.length&&(Cs(e).forEach(a=>{a()}),n([]))},[e]);const r=_.useCallback(s=>function(c){E7+=1;const u=_.createRef();let h;const p=new Promise(x=>{h=x});let v=!1,y;
189const E=_.createElement(z_e,{key:`modal-${E7}`,config:s(c),ref:u,afterClose:()=>{y?.()},isSilent:()=>v,onConfirm:x=>{h(x)}});return y=t.current?.patchElement(E),y&&q_.push(y),{destroy:()=>{function x(){u.current?.destroy()}u.current?x():n(C=>[].concat(Cs(C),[x]))},update:x=>{function C(){u.current?.update(x)}u.current?C():n(R=>[].concat(Cs(R),[C]))},then:x=>(v=!0,p.then(x))}},[]);return[_.useMemo(()=>({info:r(U_e),success:r(B_e),error:r(j_e),warning:r(F_e),confirm:r(H_e)}),[r]),_.createElement(V_e,{key:"modal-holder",ref:t})]}const W_e={info:_.createElement(Xx,null),success:_.createElement(Eb,null),error:_.createElement(Sb,null),warning:_.createElement(wb,null),loading:_.createElement(GP,null)};function DW(t,e){return e===null||e===!1?null:e||_.createElement(Lp,{className:`${t}-close-icon`})}const G_e=4.5,K_e="topRight",Y_e={offset:8},X_e=({children:t,prefixCls:e})=>{const n=Qx(e),[r,i]=Tve(e,n);return Te.createElement(Gq,{classNames:{list:Be(r,i,n)}},t)},Q_e=(t,{prefixCls:e,key:n})=>Te.createElement(X_e,{prefixCls:e,key:n},t),Z_e=Te.forwardRef((t,e)=>{const{top:n,bottom:r,prefixCls:i,getContainer:s,maxCount:a,rtl:c,onAllRemoved:u,stack:h,duration:p=G_e,pauseOnHover:v=!0,showProgress:y}=t,{getPrefixCls:E,getPopupContainer:S,direction:x}=El("notification"),{notification:C}=_.useContext(wr),R=i||E("notification"),A=_.useMemo(()=>kp(p)&&p>0?p:!1,[p]),[O,P]=_f([C?.classNames,t?.classNames],[C?.styles,t?.styles],{props:t}),L=()=>Qq(n,r),D=()=>Be({[`${R}-rtl`]:c??x==="rtl"}),N=()=>Gme(R),k=Xq(h,Y_e),[U,F]=Yq({prefixCls:R,style:L,className:D,motion:N,closable:{closeIcon:DW(R)},duration:A,getContainer:()=>s?.()||S?.()||document.body,maxCount:a,pauseOnHover:v,showProgress:y,classNames:O,styles:P,onAllRemoved:u,renderNotifications:Q_e,stack:k});return Te.useImperativeHandle(e,()=>({...U,prefixCls:R,notification:C})),F});function J_e(t){const e=Te.useRef(null),{notification:n}=Te.useContext(wr);return[Te.useMemo(()=>{const i=u=>{if(!e.current)return;const{open:h,prefixCls:p,notification:v}=e.current,y=v?.className||{},E=v?.style||{},S=`${p}-notice`,{title:x,message:C,description:R,icon:A,type:O,btn:P,actions:L,className:D,style:N,role:k="alert",closeIcon:U,closable:F,classNames:V={},styles:G={},...Z}=u,K=x??C,J=L??P,H=DW(S,Kme(U,t,v)),[Y,ee,,fe]=Jq(jC({...t||{},...u}),jC(n),{closable:!0,closeIcon:H}),ue=Y?{onClose:Oi(F)?F.onClose:void 0,closeIcon:ee,...fe}:!1,z=av(V,{props:u}),Q=av(G,{props:u}),ae=A||(O?W_e[O]:null),de=!A&&O?`${S}-icon-${O}`:void 0;return h({placement:t?.placement??K_e,...Z,title:K,description:R,icon:ae,actions:J,role:k,classNames:{...z,icon:Be(de,z.icon)},styles:{...Q,root:{...E,...Q.root}},className:Be({[`${S}-${O}`]:O},D,y),style:N,closable:ue})},a={open:i,destroy:u=>{u!==void 0?e.current?.close(u):e.current?.destroy()}};return["success","info","warning","error"].forEach(u=>{a[u]=h=>i({...h,type:u})}),a},[t,n]),Te.createElement(Z_e,{key:"notification-holder",...t,ref:e})]}function e1e(t){return J_e(t)}const S7=Te.createContext({}),NW=Te.createContext({message:{},notification:{},modal:{}}),t1e=t=>{const{componentCls:e,colorText:n,fontSize:r,lineHeight:i,fontFamily:s}=t;return{[e]:{color:n,fontSize:r,lineHeight:i,fontFamily:s,[`&${e}-rtl`]:{direction:"rtl"}}}},n1e=()=>({}),r1e=Sl("App",t1e,n1e),i1e=Te.forwardRef((t,e)=>{const{prefixCls:n,children:r,className:i,rootClassName:s,message:a,notification:c,style:u,component:h="div"}=t,{direction:p,getPrefixCls:v,className:y,style:E}=El("app"),S=v("app",n),[x,C]=r1e(S),R=Be(x,S,i,s,C,{[`${S}-rtl`]:p==="rtl"}),A=_.useContext(S7),O=Te.useMemo(()=>({message:{...A.message,...a},notification:{...A.notification,...c}}),[a,c,A.message,A.notification]),[P,L]=jve(O.message),[D,N]=e1e(O.notification),[k,U]=q_e(),F=Te.useMemo(()=>({message:P,notification:D,modal:k}),[P,D,k]),V=h===!1?Te.Fragment:h,G={className:Be(y,R),style:{...E,...u}};return Te.createElement(NW.Provider,{value:F},Te.createElement(S7.Provider,{value:O},Te.createElement(V,{...h===!1?void 0:{...G,ref:e}},U,L,N,r)))}),s1e=()=>Te.useContext(NW),JP=i1e;JP.useApp=s1e;var o1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function b3(){return b3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},b3.apply(this,arguments)}const a1e=(t,e)=>_.createElement(wl,b3({},t,{ref:e,icon:o1e})),l1e=_.forwardRef(a1e);var c1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43
189c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};function E3(){return E3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},E3.apply(this,arguments)}const u1e=(t,e)=>_.createElement(wl,E3({},t,{ref:e,icon:c1e})),d1e=_.forwardRef(u1e);var f1e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};function S3(){return S3=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},S3.apply(this,arguments)}const h1e=(t,e)=>_.createElement(wl,S3({},t,{ref:e,icon:f1e})),p1e=_.forwardRef(h1e),g1e=()=>_.createElement("svg",{width:"252",height:"294"},_.createElement("title",null,"No Found"),_.createElement("g",{fill:"none",fillRule:"evenodd"},_.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),_.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),_.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),_.createElement("path",{fill:"#FFF",d:"M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2"}),_.createElement("path",{fill:"#FFF",d:"M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),_.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),_.createElement("path",{fill:"#FFF",d:"M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4"}),_.createElement("path",{stroke:"#FFF",d:"M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z",strokeWidth:"2"}),_.createElement("path",{stroke:"#FFF",d:"m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4",strokeWidth:"2"}),_.createElement("path",{fill:"#FFF",d:"M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7"}),_.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),_.createElement("path",{fill:"#FFF",d:"M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2"}),_.createElement("path",{fill:"#FFB594",d:"M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76"}),_.createElement("path",{fill:"#FFC6A0",d:"m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6"}),_.createElement("path",{fill:"#FFF",d:"M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6"}),_.createElement("path",{fill:"#CBD1D1",d:"M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6"}),_.createElement("path",{fill:"#2B0849",d:"M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z"}),_.createElement("path",{fill:"#A4AABA",d:"M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),_.createElement("path",{fill:"#CBD1D1",d:"M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z"}),_.createElement("path",{fill:"#2B0849",d:"M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1"}),_.createElement("path",{fill:"#A4AABA",d:"M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1"}),_.createElement("path",{fill:"#7BB2F9",d:"m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2"}),_.createElement("path",{stroke:"#648BD8",d:"M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{stroke:"#648BD8",d:"M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{fill:"#192064",d:"M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4"}),_.createElement("path",{fill:"#FFF",d:"M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8"}),_.createElement("path",{fill:"#192064",d:"M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7"}),_.createElement("path",{stroke:"#648BD8",d:"M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{fill:"#FFC6A0",d:"M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2"}),_.createElement("path",{fill:"#FFC6A0",d:"M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5"}),_.createElement("path",{fill:"#520038",d:"M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z"}),_.createElement("path",{fill:"#552950",d:"M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3"}),_.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#DB836E",d:"M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#DB836E",d:"M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#E4EBF7",d:"M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{fill:"#F2D7AD",d:"M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1"}),_.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),_.createElement("path",{fill:"#F2D7AD",d:"M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l
189-7.2 10.4z"}),_.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),_.createElement("path",{fill:"#F4D19D",d:"M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8"}),_.createElement("path",{fill:"#CC9B6E",d:"M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z"}),_.createElement("path",{fill:"#FFC6A0",d:"m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2"}),_.createElement("path",{stroke:"#DB836E",d:"M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#DB836E",d:"M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{fill:"#5BA02E",d:"M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6"}),_.createElement("path",{fill:"#92C110",d:"M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7"}),_.createElement("path",{fill:"#F2D7AD",d:"M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2"}),_.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),m1e=()=>_.createElement("svg",{width:"254",height:"294"},_.createElement("title",null,"Server Error"),_.createElement("g",{fill:"none",fillRule:"evenodd"},_.createElement("path",{fill:"#E4EBF7",d:"M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1"}),_.createElement("path",{fill:"#FFF",d:"M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7"}),_.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),_.createElement("path",{fill:"#FFF",d:"M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8"}),_.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),_.createElement("path",{fill:"#FFF",d:"m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7"}),_.createElement("path",{fill:"#FFB594",d:"M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5"}),_.createElement("path",{fill:"#FFF",d:"M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2"}),_.createElement("path",{fill:"#FFB594",d:"m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2"}),_.createElement("path",{fill:"#FFC6A0",d:"M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6"}),_.createElement("path",{fill:"#520038",d:"M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z"}),_.createElement("path",{fill:"#552950",d:"M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3"}),_.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#DB836E",d:"M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2
1891.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#DB836E",d:"M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#E4EBF7",d:"M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{fill:"#FFF",d:"M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6"}),_.createElement("path",{fill:"#FFC6A0",d:"M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7"}),_.createElement("path",{fill:"#FFC6A0",d:"M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7"}),_.createElement("path",{stroke:"#E4EBF7",d:"M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{fill:"#FFC6A0",d:"M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1"}),_.createElement("path",{fill:"#FFF",d:"M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5"}),_.createElement("path",{fill:"#CBD1D1",d:"M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5"}),_.createElement("path",{fill:"#2B0849",d:"M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z"}),_.createElement("path",{fill:"#A4AABA",d:"M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6"}),_.createElement("path",{fill:"#CBD1D1",d:"M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z"}),_.createElement("path",{fill:"#2B0849",d:"M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1"}),_.createElement("path",{fill:"#A4AABA",d:"M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1"}),_.createElement("path",{fill:"#7BB2F9",d:"M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7"}),_.createElement("path",{stroke:"#648BD8",d:"M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),_.createElement("path",{stroke:"#648BD8",d:"M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13
189-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{fill:"#192064",d:"M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7"}),_.createElement("path",{fill:"#FFF",d:"M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8"}),_.createElement("path",{fill:"#192064",d:"M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7"}),_.createElement("path",{stroke:"#648BD8",d:"M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#E4EBF7",d:"M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{fill:"#FFC6A0",d:"M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7"}),_.createElement("path",{stroke:"#DB836E",d:"M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),_.createElement("path",{stroke:"#E59788",d:"M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7",
vendor: 4,896 bytes, line 189
189strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),_.createElement("path",{fill:"#FFC6A0",d:"M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6"}),_.createElement("path",{stroke:"#E59788",d:"M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),_.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),_.createElement("path",{stroke:"#BFCDDD",d:"m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),_.createElement("path",{fill:"#A3B4C6",d:"M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4"}),_.createElement("path",{fill:"#A3B4C6",d:"M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8"}),_.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),_.createElement("path",{fill:"#BFCDDD",d:"M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1"}),_.createElement("path",{fill:"#FFF",d:"M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8"}),_.createElement("path",{fill:"#BFCDDD",d:"M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2"}),_.createElement("path",{stroke:"#7C90A5",d:"M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{fill:"#FFF",d:"M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8"}),_.createElement("path",{fill:"#BFCDDD",d:"M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4"}),_.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{fill:"#5BA02E",d:"M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4"}),_.createElement("path",{fill:"#92C110",d:"M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4"}),_.createElement("path",{fill:"#F2D7AD",d:"M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2"}))),v1e=t=>{const{componentCls:e,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:s,paddingXS:a,paddingLG:c,marginXS:u,lineHeight:h}=t;return{[e]:{padding:`${At(t.calc(c).mul(2).equal())} ${At(s)}`,"&-rtl":{direction:"rtl"}},[`${e} ${e}-image`]:{width:t.imageWidth,height:t.imageHeight,margin:"auto"},[`${e} ${e}-icon`]:{marginBottom:c,textAlign:"center",[`& > ${r}`]:{fontSize:t.iconFontSize}},[`${e} ${e}-title`]:{color:t.colorTextHeading,fontSize:t.titleFontSize,lineHeight:n,marginBlock:u,textAlign:"center"},[`${e} ${e}-subtitle`]:{color:t.colorTextDescription,fontSize:t.subtitleFontSize,lineHeight:h,textAlign:"center"},[`${e} ${e}-body`]:{marginTop:c,padding:`${At(c)} ${At(t.calc(i).mul(2.5).equal())}`,backgroundColor:t.colorFillAlter},[`${e} ${e}-extra`]:{margin:t.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},y1e=t=>{const{componentCls:e,iconCls:n}=t;return{[`${e}-success ${e}-icon > ${n}`]:{color:t.resultSuccessIconColor},[`${e}-error ${e}-icon > ${n}`]:{color:t.resultErrorIconColor},[`${e}-info ${e}-icon > ${n}`]:{color:t.resultInfoIconColor},[`${e}-warning ${e}-icon > ${n}`]:{color:t.resultWarningIconColor}}},_1e=t=>[v1e(t),y1e(t)],b1e=t=>{const{fontSizeHeading3:e,fontSize:n,paddingLG:r}=t;
189return{titleFontSize:e,subtitleFontSize:n,iconFontSize:kp(e)?e*3:`calc(${e} * 3)`,extraMargin:`${r}px 0 0 0`}},E1e=Sl("Result",t=>{const e=t.colorInfo,n=t.colorError,r=t.colorSuccess,i=t.colorWarning,s=Ma(t,{resultInfoIconColor:e,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return _1e(s)},b1e),S1e=()=>_.createElement("svg",{width:"251",height:"294"},_.createElement("title",null,"Unauthorized"),_.createElement("g",{fill:"none",fillRule:"evenodd"},_.createElement("path",{fill:"#E4EBF7",d:"M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129"}),_.createElement("path",{fill:"#FFF",d:"M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6"}),_.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),_.createElement("path",{fill:"#FFF",d:"M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2"}),_.createElement("path",{fill:"#FFF",d:"M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),_.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),_.createElement("path",{fill:"#FFF",d:"M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4"}),_.createElement("path",{stroke:"#FFF",d:"M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z",strokeWidth:"2"}),_.createElement("path",{stroke:"#FFF",d:"m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7",strokeWidth:"2"}),_.createElement("path",{fill:"#A26EF4",d:"M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0"}),_.createElement("path",{fill:"#FFF",d:"m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7"}),_.createElement("path",{fill:"#FFF",d:"M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7"}),_.createElement("path",{fill:"#5BA02E",d:"M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6"}),_.createElement("path",{fill:"#92C110",d:"M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6"}),_.createElement("path",{fill:"#F2D7AD",d:"M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3"}),_.createElement("path",{fill:"#FFF",d:"M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7"}),_.createElement("path",{fill:"#FFC6A0",d:"m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2"}),_.createElement("path",{fill:"#FFB594",d:"M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4"}),_.createElement("path",{fill:"#FFC6A0",d:"m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26"}),_.createElement("path",{fill:"#FFF",d:"M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3"}),_.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#E4EBF7",d:"M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".9"}),_.createElement("path",{fill:"#FFC6A0",d:"m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2
1891.9 7 1 7 1l2.4-3.9z"}),_.createElement("path",{fill:"#FFB594",d:"m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9"}),_.createElement("path",{fill:"#5C2552",d:"M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7"}),_.createElement("path",{fill:"#FFC6A0",d:"M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1"}),_.createElement("path",{stroke:"#DB836E",d:"m100.8 77.1 1.7-1-1-4.3.7-1.4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{fill:"#552950",d:"M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3"}),_.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{fill:"#DB836E",d:"M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2"}),_.createElement("path",{stroke:"#5C2552",d:"M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),_.createElement("path",{stroke:"#DB836E",d:"M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#E4EBF7",d:"m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),_.createElement("path",{fill:"#FFC6A0",d:"m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7"}),_.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),_.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{fill:"#CBD1D1",d:"M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6"}),_.createElement("path",{fill:"#2B0849",d:"M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z"}),_.createElement("path",{fill:"#A4AABA",d:"M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),_.createElement("path",{fill:"#CBD1D1",d:"M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z"}),_.createElement("path",{fill:"#2B0849",d:"M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2"}),_.createElement("path",{fill:"#A4AABA",d:"M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1"}),_.createElement("path",{fill:"#7BB2F9",d:"m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39"}),_.createElement("path",{stroke:"#648BD8",d:"M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{stroke:"#648BD8",d:"M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),_.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),_.createElement("path",{fill:"#FFF",d:"M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7"}),_.createElement("path",{fill:"#192064",d:"M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7"}),_.createElement("path",{stroke:"#648BD8",d:"M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),w1e={success:Eb,error:Sb,info:wb,warning:p1e},Ob={404:g1e,500:m1e,403:S1e},$W=Object.keys(Ob),C1e=({icon:t,status:e,className:n,style:r})=>{if($W.includes(`${e}`)){const s=Ob[e];return _.createElement("div",{className:n,style:r},_.createElement(s,null))}const i=_.createElement(w1e[e]);return t===null||t===!1?null:_.createElement("div",{className:n,style:r},t||i)},x1e=({className:t,extra:e,style:n})=>e?_.createElement("div",{className:t,style:n},e):null,Ib=t=>{const{prefixCls:e,className:n,rootClassName:r,subTitle:i,title:s,style:a,children:c,status:u="info",icon:h,extra:p,styles:v,classNames:y,...E}=t,{getPrefixCls:S,direction:x,className:C,style:R,classNames:A,styles:O}=El("result"),P={...t,status:u},[L,D]=_f([A,y],[O,v],{props:P}),N=S("result",e),[k,U]=E1e(N),F=Be(N,`${N}-${u}`,n,C,r,{[`${N}-rtl`]:x==="rtl"},k,U,L.root),V=Be(`${N}-title`,L.title),G=Be(`${N}-subtitle`,L.subTitle),Z=Be(`${N}-extra`,L.extra),K=Be(`${N}-body`,L.body),J=Be(`${N}-icon`,{[`${N}-image`]:$W.includes(`${u}`)},L.icon),H={...D.root,...R,...a},Y=yp(E,{aria:!0,data:!0});return _.createElement("div",{...Y,className:F,style:H},_.createElement(C1e,{className:J,style:D.icon,status:u,icon:h}),hi(s)&&_.createElement("div",{className:V,style:D.title},s),hi(i)&&_.createElement("div",{className:G,style:D.subTitle},i),_.createElement(x1e,{className:Z,extra:p,style:D.extra}),hi(c)&&_.createElement("div",{className:K,style:D.body},c))};Ib.PRESENTED_IMAGE_403=Ob[403];Ib.PRESENTED_IMAGE_404=Ob[404];Ib.PRESENTED_IMAGE_500=Ob[500];const Ea=(t,e)=>new fi(t).setA(e).toRgbString(),Oh=(t,e)=>new fi(t).lighten(e).toHexString(),w7=t=>{const e=bb(t,{theme:"dark"});return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[6],6:e[5],7:e[4],8:e[6],9:e[5],10:e[4]}},T1e=(t,e,n)=>{const r=t||"#000",i=e||"#fff";return{colorBgBase:r,colorTextBase:i,colorShadow:n||"rgba(255, 255, 255, 0.2)",colorText:Ea(i,.85),colorTextSecondary:Ea(i,.65),colorTextTertiary:Ea(i,.45),colorTextQuaternary:Ea(i,.25),colorFill:Ea(i,.18),colorFillSecondary:Ea(i,.12),colorFillTertiary:Ea(i,.08),colorFillQuaternary:Ea(i,.04),colorBgSolid:Ea(i,.95),colorBgSolidHover:Ea(i,1),colorBgSolidActive:Ea(i,.9),colorBgElevated:Oh(r,12),colorBgContainer:Oh(r,8),colorBgLayout:Oh(r,0),c
189olorBgSpotlight:Oh(r,26),colorBgBlur:Ea(i,.04),colorBorder:Oh(r,26),colorBorderDisabled:Oh(r,26),colorBorderSecondary:Oh(r,19)}},R1e=(t,e)=>{const n=Object.keys(BP).map(a=>{const c=bb(t[a],{theme:"dark"});return Array.from({length:10},()=>1).reduce((u,h,p)=>(u[`${a}-${p+1}`]=c[p],u[`${a}${p+1}`]=c[p],u),{})}).reduce((a,c)=>(a={...a,...c},a),{}),r=e??jP(t),i=lq(t,{generateColorPalettes:w7,generateNeutralColorPalettes:T1e}),s=_b.reduce((a,c)=>{const u=t[c];if(u){const h=w7(u);a[`${c}Hover`]=h[7],a[`${c}Active`]=h[5]}return a},{});return{...r,...n,...i,...s,colorPrimaryBg:i.colorPrimaryBorder,colorPrimaryBgHover:i.colorPrimaryBorderHover}},C7={defaultSeed:DC.token,defaultAlgorithm:jP,darkAlgorithm:R1e};function A1e(t){const e=_.useRef(null);return e.current===null&&(e.current=t()),e.current}function O1e(t,e){if(t?.inherit&&e){const{inherit:n,...r}=t;return{...e,...r}}return t}const I1e=t=>!!(t&&t.getVelocity),x7=_.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),P1e=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function WC(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||P1e.has(t)}let FW=t=>!WC(t);function UW(t){typeof t=="function"&&(FW=e=>e.startsWith("on")?!WC(e):t(e))}try{UW(require("@emotion/is-prop-valid").default)}catch{}function vPe(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||I1e(t[i])||(FW(i)||n===!0&&WC(i)||!e&&!WC(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function L1e({children:t,isValidProp:e,...n}){e&&UW(e);const r=_.useContext(x7);n={...r,...n},n.transition=O1e(n.transition,r.transition),n.isStatic=A1e(()=>n.isStatic);const i=_.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);return W.jsx(x7.Provider,{value:i,children:t})}const k1e="error-boundary-module__errorBoundary__Lh8Bq",M1e="error-boundary-module__stage__j3yox",D1e="error-boundary-module__illustration__gallS",N1e="error-boundary-module__eyebrow__FQXkM",$1e="error-boundary-module__headline__ohf9d",F1e="error-boundary-module__message__J1kWZ",U1e="error-boundary-module__actions__k3YAH",B1e="error-boundary-module__primaryBtn__IhOJL",j1e="error-boundary-module__ghostBtn__d3wRy",H1e="error-boundary-module__meta__5J9Tq",z1e="error-boundary-module__metaKey__aLkDl",V1e="error-boundary-module__details__3zpSX",q1e="error-boundary-module__detailsSummary__giB3c",W1e="error-boundary-module__caret__tp16B",G1e="error-boundary-module__detailsBody__Gpq2X",K1e="error-boundary-module__detailsLabel__qmMZS",Y1e="error-boundary-module__errorText__5PEj5",X1e="error-boundary-module__stackTrace__sylYz",Vr={errorBoundary:k1e,stage:M1e,illustration:D1e,eyebrow:N1e,headline:$1e,message:F1e,actions:U1e,primaryBtn:B1e,ghostBtn:j1e,meta:H1e,metaKey:z1e,details:V1e,detailsSummary:q1e,caret:W1e,detailsBody:G1e,detailsLabel:K1e,errorText:Y1e,stackTrace:X1e},Q1e="oops-mark-module__mark__GLdaQ",Z1e="oops-mark-module__dot__z6rjX",T7={mark:Q1e,dot:Z1e},J1e=t=>{const e=Cr.c(8),{size:n,className:r}=t,i=n===void 0?96:n;let s;e[0]!==r?(s=[T7.mark,r].filter(Boolean),e[0]=r,e[1]=s):s=e[1];const a=s.join(" ");let c;e[2]!==i?(c={fontSize:i},e[2]=i,e[3]=c):c=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=W.jsx("span",{className:T7.dot,children:"."}),e[4]=u):u=e[4];let h;return e[5]!==a||e[6]!==c?(h=W.jsxs("span",{className:a,style:c,"aria-label":"oops",role:"img",children:["oops",u]}),e[5]=a,e[6]=c,e[7]=h):h=e[7],h};var O2={exports:{}},ebe=O2.exports,R7;function tbe(){return R7||(R7=1,(function(t,e){(function(n,r){t.exports=r()})(ebe,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,s){var a=i.prototype,c=a.format;s.en.formats=n,a.format=function(u){u===void 0&&(u="YYYY-MM-DDTHH:mm:ssZ");var h=this.$locale().formats,p=(function(v,y){return v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(E,S,x){var C=x&&x.toUpperCase();return S||y[x]||n[x]||y[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(R,A,O){return A||O.slice(1)}))}))})(u,h===void 0?{}:h);return c.call(this,p)}}}))})(O2)),O2.exports}var nbe=tbe();const rbe=ju(nbe);var I2={exports:{}},ibe=I2.exports,A7;function sbe(){return A7||(A7=1,(function(t,e){(function(n,r){t.exports=r()})(ibe,(function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,s,a){var c,u=function(y,E,S){S===void 0&&(S={});var x=new Date(y),C=(function(R,A){A===void 0&&(A={});var O=A.timeZoneName||"short",P=R+"|"+O,L=r[P];return L||(L=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:R,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:O}),r[P]=L),L})(E,S);return C.formatToParts(x)},h=function(y,E){for(var S=u(y,E),x=[],C=0;C<S.length;C+=1){var R=S[C],A=R.type,O=R.value,P=n[A];P>=0&&(x[P]=parseInt(O,10))}var L=x[3],D=L===24?0:L,N=x[0]+"-"+x[1]+"-"+x[2]+" "+D+":"+x[4]+":"+x[5]+":000",k=+y;return(a.utc(N).valueOf()-(k-=k%1e3))/6e4},p=s.prototype;
189p.tz=function(y,E){if(y===void 0&&(y=c),!this.isValid())return this;var S,x=this.utcOffset(),C=this.toDate(),R=C.toLocaleString("en-US",{timeZone:y}),A=h(+C,y);if(!Number(A))S=this.utcOffset(0,E);else if(S=a(R,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(A,!0),E){var O=S.utcOffset();S=S.add(x-O,"minute")}return S.$x.$timezone=y,S},p.offsetName=function(y){var E=this.$x.$timezone||a.tz.guess(),S=u(this.valueOf(),E,{timeZoneName:y}).find((function(x){return x.type.toLowerCase()==="timezonename"}));return S&&S.value};var v=p.startOf;p.startOf=function(y,E){if(!this.$x||!this.$x.$timezone)return v.call(this,y,E);var S=a(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return v.call(S,y,E).tz(this.$x.$timezone,!0)},a.tz=function(y,E,S){var x=S&&E,C=S||E||c,R=h(+a(),C);if(typeof y!="string")return a(y).tz(C);var A=a.utc(y,x).valueOf();if(Number.isNaN(A)){var O=a(NaN);return O.$x.$timezone=C,O}var P=(function(k,U,F){var V=k-60*U*1e3,G=h(V,F);if(U===G)return[V,U];var Z=h(V-=60*(G-U)*1e3,F);return G===Z?[V,G]:[k-60*Math.min(G,Z)*1e3,Math.max(G,Z)]})(A,R,C),L=P[0],D=P[1],N=a(L).utcOffset(D);return N.$x.$timezone=C,N},a.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},a.tz.setDefault=function(y){c=y}}}))})(I2)),I2.exports}var obe=sbe();const abe=ju(obe);var P2={exports:{}},lbe=P2.exports,O7;function cbe(){return O7||(O7=1,(function(t,e){(function(n,r){t.exports=r()})(lbe,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(s,a,c){var u=a.prototype;c.utc=function(x){var C={date:x,utc:!0,args:arguments};return new a(C)},u.utc=function(x){var C=c(this.toDate(),{locale:this.$L,utc:!0});return x?C.add(this.utcOffset(),n):C},u.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var h=u.parse;u.parse=function(x){x.utc&&(this.$u=!0),this.$utils().u(x.$offset)||(this.$offset=x.$offset),h.call(this,x)};var p=u.init;u.init=function(){if(this.$u){var x=this.$d;this.$y=x.getUTCFullYear(),this.$M=x.getUTCMonth(),this.$D=x.getUTCDate(),this.$W=x.getUTCDay(),this.$H=x.getUTCHours(),this.$m=x.getUTCMinutes(),this.$s=x.getUTCSeconds(),this.$ms=x.getUTCMilliseconds()}else p.call(this)};var v=u.utcOffset;u.utcOffset=function(x,C){var R=this.$utils().u;if(R(x))return this.$u?0:R(this.$offset)?v.call(this):this.$offset;if(typeof x=="string"&&(x=(function(L){L===void 0&&(L="");var D=L.match(r);if(!D)return null;var N=(""+D[0]).match(i)||["-",0,0],k=N[0],U=60*+N[1]+ +N[2];return U===0?0:k==="+"?U:-U})(x),x===null))return this;var A=Math.abs(x)<=16?60*x:x;if(A===0)return this.utc(C);var O=this.clone();if(C)return O.$offset=A,O.$u=!1,O;var P=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(O=this.local().add(A+P,n)).$offset=A,O.$x.$localOffset=P,O};var y=u.format;u.format=function(x){var C=x||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,C)},u.valueOf=function(){var x=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*x},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var E=u.toDate;u.toDate=function(x){return x==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():E.call(this)};var S=u.diff;u.diff=function(x,C,R){if(x&&this.$u===x.$u)return S.call(this,x,C,R);var A=this.local(),O=c(x).local();return S.call(A,O,C,R)}}}))})(P2)),P2.exports}var ube=cbe();const dbe=ju(ube);ta.extend(rbe);ta.extend(dbe);ta.extend(abe);const uv=()=>typeof window<"u"?Intl.DateTimeFormat().resolvedOptions().timeZone:"UTC",fbe=t=>{try{return Intl.DateTimeFormat(void 0,{timeZone:t}),!0}catch{return!1}},eL=t=>{const e=t?.trim();return e&&fbe(e)?e:uv()},hbe={short:"L",medium:"ll",long:"LL",full:"dddd, LL"},pbe={short:"LT",medium:"LTS",long:"LTS",full:"LTS"},gbe=(t,e,n={})=>{const{dateStyle:r,timeStyle:i}=n,s=r?hbe[r]:t,a=i?pbe[i]:e;return[s,a].filter(Boolean).join(" ")},tL=(t,e,n,r={})=>{const i=gbe(e,n,r);return ta(t).tz(uv()).format(i)},yPe=(t,e={})=>tL(t,"L",void 0,e),mbe=(t,e={})=>tL(t,"","LT",e),_Pe=(t,e={})=>tL(t,"L","LT",e),bPe=t=>ta(t).tz(uv()).format("ll"),EPe=t=>ta(t).tz(uv()).format("ll LT"),SPe=(t,e)=>{const n=ta(t);if(!n.isValid())return String(t);const r=eL(e);return`${n.tz(r).format("ll LT")} (${r})`},wPe=(t,e)=>{if(!t)return"";const n=ta(t);return n.isValid()?n.tz(eL(e)).format("YYYY-MM-DDTHH:mm"):""},CPe=(t,e)=>{if(!t)return"";try{const n=ta.tz(t,eL(e));return n.isValid()?n.toISOString():""}catch{return""}},xPe=t=>{const e=ta(t).tz(uv()),n=ta().tz(uv());return e.isSame(n,"day")?e.format("LT"):e.isSame(n,"year")?e.format("MMM D, LT"):e.format("ll LT")},vbe=()=>W.jsx(Rx,{i18nKey:"errorBoundary.title",components:{accent:W.jsx("em",{})}});class w3 extends _.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,n){console.error("ErrorBoundary caught an error:",e),console.error("Component Stack:",n.componentStack),this.setState({error:e,errorInfo:n}),this.props.onError?.(e,n),SO(rv.ERROR_OCCURRED,{error_type:"react_crash",message:e.message,component_stack:n.componentStack?.slice(0,500)}),gp.captureException(e,{component_stack:n.componentStack?.slice(0,500)})}componentDidUpdate(e){if(!this.state.hasError)return;const n=e.resetKeys,r=this.props.resetKeys;if(!n||!r||n.length!==r.length){n!==r&&this.handleReset();return}for(let i=0;i<r.length;i+=1)if(!Object.is(n[i],r[i])){this.handleReset();return}}handleReset=()=>{this.setState({hasError:!1,error:null,errorInfo:null})};handleReload=()=>{window.location.reload()};renderIllustration(){return W.jsx(J1e,{className:Vr.illustration,size:120})}renderMeta(){const e=typeof window<"u"?window.location.pathname:"",n=mbe(Date.now());return W.jsxs("div",{className:Vr.meta,"aria-hidden":"true",children:[W.jsxs("span",{children:[W.jsx("span",{className:Vr.metaKey,children:ni("common:errorBoundary.metaRoute")}),e||"â"]}),W.jsxs("span",{children:[W.jsx("span",{className:Vr.metaKey,children:ni("common:errorBoundary.metaAt")}),n]})]})}render(){const{hasError:e,error:n,errorInfo:r}=this.state,{children:i,fallback:s,showErrorDetails:a=!1,errorEyebrow:c=ni("common:errorBoundary.eyebrow"),errorTitle:u=vbe(),errorMessage:h=ni("common:errorBoundary.message")}=this.props;return e?s||W.jsx("div",{className:Vr.errorBoundary,role:"alert","aria-live":"polite",children:W.jsxs("div",{className:Vr.stage,children:[this.renderIllustration(),W.jsx("p",{className:Vr.eyebrow,children:c}),W.jsx("h1",{className:Vr.headline,children:u}),W.jsx("p",{className:Vr.message,children:h}),W.jsxs("div",{className:Vr.actions,children:[W.jsx(Sc,{type:"primary",className:Vr.primaryBtn,onClick:this.handleReset,children:ni("common:action.retry")}),W.jsx(Sc,{className:Vr.ghostBtn,onClick:this.handleReload,children:ni("common:errorBoundary.reload")})]}),this.renderMeta(),a&&n&&W.jsxs("details",{className:Vr.details,children:[W.jsxs("summary",{className:Vr.detailsSummary,children:[ni("common:errorBoundary.detailsSummary"),W.jsx("span",{className:Vr.caret,"aria-hidden":"true"})]}),W.jsxs("div",{className:Vr.detailsBody,children:[W.jsxs("div",{children:[W.jsx("span",{className:Vr.detailsLabel,children:ni("common:errorBoundary.detailsError")}),W.jsx("div",{className:Vr.errorText,children:n.toString()})]}),n.stack&&W.jsxs("div",{children:[W.jsx("span",{className:Vr.detailsLabel,children:ni("common:errorBoundary.detailsStack")}),W.jsx("pre",{className:Vr.stackTrace,children:n.stack})]}),r?.componentStack&&W.jsxs("div",{children:[W.jsx("span",{className:Vr.detailsLabel,children:ni("common:errorBoundary.detailsComponentStack")}),W.jsx("pre",{className:Vr.stackTrace,children:r.componentStack})]})]})]})]})}):i}}const ybe="branded-loader-module__loadingWrapper__S7Sgq",_be="branded-loader-module__fitParent__bGJ8Z",bbe="branded-loader-module__loadingStage__Hl6So",Ebe="branded-loader-module__loadingWordmark__vII6p",Sbe="branded-loader-module__loadingDots__INAlL",wbe="branded-loader-module__loadingLabel__-91vy",gm={loadingWrapper:ybe,fitParent:_be,loadingStage:bbe,loadingWordmark:Ebe,loadingDots:Sbe,loadingLabel:wbe},tT="dEssence",Cbe=tT.slice(0,1),xbe=tT.slice(1,2),Tbe=tT.slice(2),Rbe=t=>{const e=Cr.c(3),{className:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=W.jsx("em",{children:xbe}),e[0]=r):r=e[0];let i;return e[1]!==n?(i=W.jsxs("span",{className:n,"aria-label":tT,children:[Cbe,r,Tbe]}),e[1]=n,e[2]=i):i=e[2],i},nT=t=>{const e=Cr.c(9),{label:n,fitParent:r}=t,i=n===void 0?"":n,a=(r===void 0?!1:r)&&gm.fitParent;let c;e[0]!==a?(c=Be(gm.loadingWrapper,a),e[0]=a,e[1]=c):c=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=W.jsx(Rbe,{className:gm.loadingWordmark}),e[2]=u):u=e[2];let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=W.jsxs("span",{className:gm.loadingDots,"aria-hidden":"true",children:[W.jsx("i",{}),W.jsx("i",{}),W.jsx("i",{})]}),e[3]=h):h=e[3];let p;e[4]!==i?(p=W.jsxs("div",{className:gm.loadingStage,children:[u,h,W.jsx("span",{className:gm.loadingLabel,children:i})]}),e[4]=i,e[5]=p):p=e[5];let v;
189return e[6]!==c||e[7]!==p?(v=W.jsx("div",{className:c,role:"status","aria-live":"polite",children:p}),e[6]=c,e[7]=p,e[8]=v):v=e[8],v},Abe=t=>t.user?.user??null,to=t=>t.user?.user?.user_id??null,Obe=t=>t.user?.user?.email??void 0,Ibe=t=>t.user?.user?.username??t.user?.user?.display_name??void 0,TPe=t=>t.user?.user?.timezone??null,Pbe=t=>t.user?.user?.avatar_url??void 0,Lbe=t=>t.user?.loading??!1,kbe=t=>t.user?.error??null,Mbe=t=>t.user?.isInitialized??!1,Dbe=t=>t.user?.user?.is_active??!1,Nbe=t=>t.user?.profiles??[],no=t=>t.user?.selectedProfileId??null,$be=t=>{const e=t.user?.profiles??[],n=t.user?.selectedProfileId??null;return e.find(r=>r.profile_id===n)||null},Fbe=t=>t.user?.profilesLoading??!1,Ube=t=>t.user?.areProfilesInitialized??!1,Bbe=t=>t.user?.accounts??[],jbe=t=>t.user?.accountsLoading??!1,Hbe=()=>{};var I7={};const BW=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=i&63|128):(i&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=i&63|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=i&63|128)}return e},zbe=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const s=t[n++];e[r++]=String.fromCharCode((i&31)<<6|s&63)}else if(i>239&&i<365){const s=t[n++],a=t[n++],c=t[n++],u=((i&7)<<18|(s&63)<<12|(a&63)<<6|c&63)-65536;e[r++]=String.fromCharCode(55296+(u>>10)),e[r++]=String.fromCharCode(56320+(u&1023))}else{const s=t[n++],a=t[n++];e[r++]=String.fromCharCode((i&15)<<12|(s&63)<<6|a&63)}}return e.join("")},jW={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<t.length;i+=3){const s=t[i],a=i+1<t.length,c=a?t[i+1]:0,u=i+2<t.length,h=u?t[i+2]:0,p=s>>2,v=(s&3)<<4|c>>4;let y=(c&15)<<2|h>>6,E=h&63;u||(E=64,a||(y=64)),r.push(n[p],n[v],n[y],n[E])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(BW(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):zbe(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<t.length;){const s=n[t.charAt(i++)],c=i<t.length?n[t.charAt(i)]:0;++i;const h=i<t.length?n[t.charAt(i)]:64;++i;const v=i<t.length?n[t.charAt(i)]:64;if(++i,s==null||c==null||h==null||v==null)throw new Vbe;const y=s<<2|c>>4;if(r.push(y),h!==64){const E=c<<4&240|h>>2;if(r.push(E),v!==64){const S=h<<6&192|v;r.push(S)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class Vbe extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const qbe=function(t){const e=BW(t);return jW.encodeByteArray(e,!0)},HW=function(t){return qbe(t).replace(/\./g,"")},zW=function(t){try{return jW.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function Wbe(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}const Gbe=()=>Wbe().__FIREBASE_DEFAULTS__,Kbe=()=>{if(typeof process>"u"||typeof I7>"u")return;const t=I7.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},Ybe=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;
189]+)/)}catch{return}const e=t&&zW(t[1]);return e&&JSON.parse(e)},nL=()=>{try{return Hbe()||Gbe()||Kbe()||Ybe()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},Xbe=t=>{var e,n;return(n=(e=nL())===null||e===void 0?void 0:e.emulatorHosts)===null||n===void 0?void 0:n[t]},VW=()=>{var t;return(t=nL())===null||t===void 0?void 0:t.config},qW=t=>{var e;return(e=nL())===null||e===void 0?void 0:e[`_${t}`]};class Qbe{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}function rT(t){try{return(t.startsWith("http://")||t.startsWith("https://")?new URL(t).hostname:t).endsWith(".cloudworkstations.dev")}catch{return!1}}async function Zbe(t){return(await fetch(t,{credentials:"include"})).ok}const f1={};function Jbe(){const t={prod:[],emulator:[]};for(const e of Object.keys(f1))f1[e]?t.emulator.push(e):t.prod.push(e);return t}function eEe(t){let e=document.getElementById(t),n=!1;return e||(e=document.createElement("div"),e.setAttribute("id",t),n=!0),{created:n,element:e}}let P7=!1;function tEe(t,e){if(typeof window>"u"||typeof document>"u"||!rT(window.location.host)||f1[t]===e||f1[t]||P7)return;f1[t]=e;function n(y){return`__firebase__banner__${y}`}const r="__firebase__banner",s=Jbe().prod.length>0;function a(){const y=document.getElementById(r);y&&y.remove()}function c(y){y.style.display="flex",y.style.background="#7faaf0",y.style.position="fixed",y.style.bottom="5px",y.style.left="5px",y.style.padding=".5em",y.style.borderRadius="5px",y.style.alignItems="center"}function u(y,E){y.setAttribute("width","24"),y.setAttribute("id",E),y.setAttribute("height","24"),y.setAttribute("viewBox","0 0 24 24"),y.setAttribute("fill","none"),y.style.marginLeft="-6px"}function h(){const y=document.createElement("span");return y.style.cursor="pointer",y.style.marginLeft="16px",y.style.fontSize="24px",y.innerHTML=" ×",y.onclick=()=>{P7=!0,a()},y}function p(y,E){y.setAttribute("id",E),y.innerText="Learn more",y.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",y.setAttribute("target","__blank"),y.style.paddingLeft="5px",y.style.textDecoration="underline"}function v(){const y=eEe(r),E=n("text"),S=document.getElementById(E)||document.createElement("span"),x=n("learnmore"),C=document.getElementById(x)||document.createElement("a"),R=n("preprendIcon"),A=document.getElementById(R)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(y.created){const O=y.element;c(O),p(C,x);const P=h();u(A,R),O.append(A,S,C,P),document.body.appendChild(O)}s?(S.innerText="Preview backend disconnected.",A.innerHTML=`<g clip-path="url(#clip0_6013_33858)"> 190<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/> 191</g> 192<defs> 193<clipPath id="clip0_6013_33858"> 194<rect width="24" height="24" fill="white"/> 195</clipPath> 196</defs>`):(A.innerHTML=`<g clip-path="url(#clip0_6083_34804)"> 197<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/> 198</g> 199<defs> 200<clipPath id="clip0_6083_34804"> 201<rect width="24" height="24" fill="white"/> 202</clipPath> 203</defs>`,S.innerText="Preview backend running in this workspace."),S.setAttribute("id",E)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",v):v()}function Zs(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function nEe(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Zs())}function rEe(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function iEe(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function sEe(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function oEe(){const t=Zs();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function aEe(){try{return typeof indexedDB=="object"}catch{return!1}}function lEe(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var s;e(((s=i.error)===null||s===void 0?void 0:s.message)||"")}}catch(n){e(n)}})}const cEe="FirebaseError";
203class Ef extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=cEe,Object.setPrototypeOf(this,Ef.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Pb.prototype.create)}}class Pb{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},i=`${this.service}/${e}`,s=this.errors[e],a=s?uEe(s,r):"Error",c=`${this.serviceName}: ${a} (${i}).`;return new Ef(i,c,r)}}function uEe(t,e){return t.replace(dEe,(n,r)=>{const i=e[r];return i!=null?String(i):`<${r}?>`})}const dEe=/\{\$([^}]+)}/g;function fEe(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function dv(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const i of n){if(!r.includes(i))return!1;const s=t[i],a=e[i];if(L7(s)&&L7(a)){if(!dv(s,a))return!1}else if(s!==a)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function L7(t){return t!==null&&typeof t=="object"}function Lb(t){const e=[];for(const[n,r]of Object.entries(t))Array.isArray(r)?r.forEach(i=>{e.push(encodeURIComponent(n)+"="+encodeURIComponent(i))}):e.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return e.length?"&"+e.join("&"):""}function hEe(t,e){const n=new pEe(t,e);return n.subscribe.bind(n)}class pEe{constructor(e,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(n=>{n.next(e)})}error(e){this.forEachObserver(n=>{n.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,n,r){let i;if(e===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");gEe(e,["next","error","complete"])?i=e:i={next:e,error:n,complete:r},i.next===void 0&&(i.next=hA),i.error===void 0&&(i.error=hA),i.complete===void 0&&(i.complete=hA);const s=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch{}}),this.observers.push(i),s}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,e)}sendOne(e,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{n(this.observers[e])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function gEe(t,e){if(typeof t!="object"||t===null)return!1;for(const n of e)if(n in t&&typeof t[n]=="function")return!0;return!1}function hA(){}function Sf(t){return t&&t._delegate?t._delegate:t}class fv{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const Fh="[DEFAULT]";class mEe{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new Qbe;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e?.identifier),i=(n=e?.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(s){if(i)return null;throw s}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(yEe(e))try{this.getOrInitializeService({instanceIdentifier:Fh})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const s=this.getOrInitializeService({instanceIdentifier:i});r.resolve(s)}catch{}}}}clearInstance(e=Fh){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=Fh){return this.instances.has(e)}getOptions(e=Fh){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[s,a]of this.instancesDeferred.entries()){const c=this.normalizeInstanceIdentifier(s);r===c&&a.resolve(i)}return i}onInit(e,n){var r;const i=this.normalizeInstanceIdentifier(n),s=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;s.add(e),this.onInitCallbacks.set(i,s);const a=this.instances.get(i);return a&&e(a,i),()=>{s.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:vEe(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=Fh){return this.component?this.component.multipleInstances?e:Fh:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function vEe(t){return t===Fh?void 0:t}function yEe(t){return t.instantiationMode==="EAGER"}class _Ee{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new mEe(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}var fr;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(fr||(fr={}));const bEe={debug:fr.DEBUG,verbose:fr.VERBOSE,info:fr.INFO,warn:fr.WARN,error:fr.ERROR,silent:fr.SILENT},EEe=fr.INFO,SEe={[fr.DEBUG]:"log",[fr.VERBOSE]:"log",[fr.INFO]:"info",[fr.WARN]:"warn",[fr.ERROR]:"error"},wEe=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),i=SEe[e];
203if(i)console[i](`[${r}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class WW{constructor(e){this.name=e,this._logLevel=EEe,this._logHandler=wEe,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in fr))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?bEe[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,fr.DEBUG,...e),this._logHandler(this,fr.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,fr.VERBOSE,...e),this._logHandler(this,fr.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,fr.INFO,...e),this._logHandler(this,fr.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,fr.WARN,...e),this._logHandler(this,fr.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,fr.ERROR,...e),this._logHandler(this,fr.ERROR,...e)}}const CEe=(t,e)=>e.some(n=>t instanceof n);let k7,M7;function xEe(){return k7||(k7=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function TEe(){return M7||(M7=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const GW=new WeakMap,C3=new WeakMap,KW=new WeakMap,pA=new WeakMap,rL=new WeakMap;function REe(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",s),t.removeEventListener("error",a)},s=()=>{n(uf(t.result)),i()},a=()=>{r(t.error),i()};t.addEventListener("success",s),t.addEventListener("error",a)});return e.then(n=>{n instanceof IDBCursor&&GW.set(n,t)}).catch(()=>{}),rL.set(e,t),e}function AEe(t){if(C3.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",s),t.removeEventListener("error",a),t.removeEventListener("abort",a)},s=()=>{n(),i()},a=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",s),t.addEventListener("error",a),t.addEventListener("abort",a)});C3.set(t,e)}let x3={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return C3.get(t);if(e==="objectStoreNames")return t.objectStoreNames||KW.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return uf(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function OEe(t){x3=t(x3)}function IEe(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(gA(this),e,...n);return KW.set(r,e.sort?e.sort():[e]),uf(r)}:TEe().includes(t)?function(...e){return t.apply(gA(this),e),uf(GW.get(this))}:function(...e){return uf(t.apply(gA(this),e))}}function PEe(t){return typeof t=="function"?IEe(t):(t instanceof IDBTransaction&&AEe(t),CEe(t,xEe())?new Proxy(t,x3):t)}function uf(t){if(t instanceof IDBRequest)return REe(t);if(pA.has(t))return pA.get(t);const e=PEe(t);return e!==t&&(pA.set(t,e),rL.set(e,t)),e}const gA=t=>rL.get(t);function LEe(t,e,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){const a=indexedDB.open(t,e),c=uf(a);return r&&a.addEventListener("upgradeneeded",u=>{r(uf(a.result),u.oldVersion,u.newVersion,uf(a.transaction),u)}),n&&a.addEventListener("blocked",u=>n(u.oldVersion,u.newVersion,u)),c.then(u=>{s&&u.addEventListener("close",()=>s()),i&&u.addEventListener("versionchange",h=>i(h.oldVersion,h.newVersion,h))}).catch(()=>{}),c}const kEe=["get","getKey","getAll","getAllKeys","count"],MEe=["put","add","delete","clear"],mA=new Map;function D7(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(mA.get(e))return mA.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=MEe.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||kEe.includes(n)))return;const s=async function(a,...c){const u=this.transaction(a,i?"readwrite":"readonly");let h=u.store;
203return r&&(h=h.index(c.shift())),(await Promise.all([h[n](...c),i&&u.done]))[0]};return mA.set(e,s),s}OEe(t=>({...t,get:(e,n,r)=>D7(e,n)||t.get(e,n,r),has:(e,n)=>!!D7(e,n)||t.has(e,n)}));class DEe{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(NEe(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function NEe(t){const e=t.getComponent();return e?.type==="VERSION"}const T3="@firebase/app",N7="0.13.2";const $u=new WW("@firebase/app"),$Ee="@firebase/app-compat",FEe="@firebase/analytics-compat",UEe="@firebase/analytics",BEe="@firebase/app-check-compat",jEe="@firebase/app-check",HEe="@firebase/auth",zEe="@firebase/auth-compat",VEe="@firebase/database",qEe="@firebase/data-connect",WEe="@firebase/database-compat",GEe="@firebase/functions",KEe="@firebase/functions-compat",YEe="@firebase/installations",XEe="@firebase/installations-compat",QEe="@firebase/messaging",ZEe="@firebase/messaging-compat",JEe="@firebase/performance",eSe="@firebase/performance-compat",tSe="@firebase/remote-config",nSe="@firebase/remote-config-compat",rSe="@firebase/storage",iSe="@firebase/storage-compat",sSe="@firebase/firestore",oSe="@firebase/ai",aSe="@firebase/firestore-compat",lSe="firebase",cSe="11.10.0";const R3="[DEFAULT]",uSe={[T3]:"fire-core",[$Ee]:"fire-core-compat",[UEe]:"fire-analytics",[FEe]:"fire-analytics-compat",[jEe]:"fire-app-check",[BEe]:"fire-app-check-compat",[HEe]:"fire-auth",[zEe]:"fire-auth-compat",[VEe]:"fire-rtdb",[qEe]:"fire-data-connect",[WEe]:"fire-rtdb-compat",[GEe]:"fire-fn",[KEe]:"fire-fn-compat",[YEe]:"fire-iid",[XEe]:"fire-iid-compat",[QEe]:"fire-fcm",[ZEe]:"fire-fcm-compat",[JEe]:"fire-perf",[eSe]:"fire-perf-compat",[tSe]:"fire-rc",[nSe]:"fire-rc-compat",[rSe]:"fire-gcs",[iSe]:"fire-gcs-compat",[sSe]:"fire-fst",[aSe]:"fire-fst-compat",[oSe]:"fire-vertex","fire-js":"fire-js",[lSe]:"fire-js-all"};const X1=new Map,dSe=new Map,A3=new Map;function $7(t,e){try{t.container.addComponent(e)}catch(n){$u.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function Q1(t){const e=t.name;if(A3.has(e))return $u.debug(`There were multiple attempts to register component ${e}.`),!1;A3.set(e,t);for(const n of X1.values())$7(n,t);for(const n of dSe.values())$7(n,t);return!0}function YW(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}function gc(t){return t==null?!1:t.settings!==void 0}const fSe={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
203d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},df=new Pb("app","Firebase",fSe);class hSe{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new fv("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw df.create("app-deleted",{appName:this._name})}}const kb=cSe;function XW(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:R3,automaticDataCollectionEnabled:!0},e),i=r.name;if(typeof i!="string"||!i)throw df.create("bad-app-name",{appName:String(i)});if(n||(n=VW()),!n)throw df.create("no-options");const s=X1.get(i);if(s){if(dv(n,s.options)&&dv(r,s.config))return s;throw df.create("duplicate-app",{appName:i})}const a=new _Ee(i);for(const u of A3.values())a.addComponent(u);const c=new hSe(n,r,a);return X1.set(i,c),c}function QW(t=R3){const e=X1.get(t);if(!e&&t===R3&&VW())return XW();if(!e)throw df.create("no-app",{appName:t});return e}function pSe(){return Array.from(X1.values())}function zm(t,e,n){var r;let i=(r=uSe[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const s=i.match(/\s|\//),a=e.match(/\s|\//);if(s||a){const c=[`Unable to register library "${i}" with version "${e}":`];s&&c.push(`library name "${i}" contains illegal characters (whitespace or "/")`),s&&a&&c.push("and"),a&&c.push(`version name "${e}" contains illegal characters (whitespace or "/")`),$u.warn(c.join(" "));return}Q1(new fv(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}const gSe="firebase-heartbeat-database",mSe=1,Z1="firebase-heartbeat-store";let vA=null;function ZW(){return vA||(vA=LEe(gSe,mSe,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(Z1)}catch(n){console.warn(n)}}}}).catch(t=>{throw df.create("idb-open",{originalErrorMessage:t.message})})),vA}async function vSe(t){try{const n=(await ZW()).transaction(Z1),r=await n.objectStore(Z1).get(JW(t));return await n.done,r}catch(e){if(e instanceof Ef)$u.warn(e.message);else{const n=df.create("idb-get",{originalErrorMessage:e?.message});$u.warn(n.message)}}}async function F7(t,e){try{const r=(await ZW()).transaction(Z1,"readwrite");await r.objectStore(Z1).put(e,JW(t)),await r.done}catch(n){if(n instanceof Ef)$u.warn(n.message);else{const r=df.create("idb-set",{originalErrorMessage:n?.message});$u.warn(r.message)}}}function JW(t){return`${t.name}!${t.options.appId}`}const ySe=1024,_Se=30;class bSe{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new SSe(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var e,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=U7();if(((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===s||this._heartbeatsCache.heartbeats.some(a=>a.date===s))return;if(this._heartbeatsCache.heartbeats.push({date:s,agent:i}),this._heartbeatsCache.heartbeats.length>_Se){const a=wSe(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(a,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(r){$u.warn(r)}}async getHeartbeatsHeader(){var e;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=U7(),{heartbeatsToSend:r,unsentEntries:i}
203=ESe(this._heartbeatsCache.heartbeats),s=HW(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),s}catch(n){return $u.warn(n),""}}}function U7(){return new Date().toISOString().substring(0,10)}function ESe(t,e=ySe){const n=[];let r=t.slice();for(const i of t){const s=n.find(a=>a.agent===i.agent);if(s){if(s.dates.push(i.date),B7(n)>e){s.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),B7(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class SSe{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return aEe()?lEe().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await vSe(this.app);return n?.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return F7(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return F7(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}else return}}function B7(t){return HW(JSON.stringify({version:2,heartbeats:t})).length}function wSe(t){if(t.length===0)return-1;let e=0,n=t[0].date;for(let r=1;r<t.length;r++)t[r].date<n&&(n=t[r].date,e=r);return e}function CSe(t){Q1(new fv("platform-logger",e=>new DEe(e),"PRIVATE")),Q1(new fv("heartbeat",e=>new bSe(e),"PRIVATE")),zm(T3,N7,t),zm(T3,N7,"esm2017"),zm("fire-js","")}CSe("");var xSe="firebase",TSe="11.10.0";zm(xSe,TSe,"app");function iL(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function eG(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const RSe=eG,tG=new Pb("auth","Firebase",eG());const GC=new WW("@firebase/auth");function ASe(t,...e){GC.logLevel<=fr.WARN&&GC.warn(`Auth (${kb}): ${t}`,...e)}function L2(t,...e){GC.logLevel<=fr.ERROR&&GC.error(`Auth (${kb}): ${t}`,...e)}function wc(t,...e){throw oL(t,...e)}function vl(t,...e){return oL(t,...e)}function sL(t,e,n){const r=Object.assign(Object.assign({},RSe()),{[e]:n});return new Pb("auth","Firebase",r).create(e,{appName:t.name})}function lp(t){return sL(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function OSe(t,e,n){const r=n;if(!(e instanceof r))throw r.name!==e.constructor.name&&wc(t,"argument-error"),sL(t,"argument-error",`Type of ${e.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function oL(t,...e){if(typeof t!="string"){const n=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=t.name),t._errorFactory.create(n,...r)}return tG.create(t,...e)}function It(t,e,...n){if(!t)throw oL(e,...n)}function Au(t){const e="INTERNAL ASSERTION FAILED: "+t;throw L2(e),new Error(e)}function Fu(t,e){t||Au(e)}function O3(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.href)||""}function ISe(){return j7()==="http:"||j7()==="https:"}function j7(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.protocol)||null}function PSe(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(ISe()||iEe()||"connection"in navigator)?navigator.onLine:!0}function LSe(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}class Mb{constructor(e,n){this.shortDelay=e,this.longDelay=n,Fu(n>
203e,"Short delay should be less than long delay!"),this.isMobile=nEe()||sEe()}get(){return PSe()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function aL(t,e){Fu(t.emulator,"Emulator should always be set here");const{url:n}=t.emulator;return e?`${n}${e.startsWith("/")?e.slice(1):e}`:n}class nG{static initialize(e,n,r){this.fetchImpl=e,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Au("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Au("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Au("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const kSe={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};const MSe=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],DSe=new Mb(3e4,6e4);function lL(t,e){return t.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:t.tenantId}):e}async function Tv(t,e,n,r,i={}){return rG(t,i,async()=>{let s={},a={};r&&(e==="GET"?a=r:s={body:JSON.stringify(r)});const c=Lb(Object.assign({key:t.config.apiKey},a)).slice(1),u=await t._getAdditionalHeaders();u["Content-Type"]="application/json",t.languageCode&&(u["X-Firebase-Locale"]=t.languageCode);const h=Object.assign({method:e,headers:u},s);return rEe()||(h.referrerPolicy="no-referrer"),t.emulatorConfig&&rT(t.emulatorConfig.host)&&(h.credentials="include"),nG.fetch()(await iG(t,t.config.apiHost,n,c),h)})}async function rG(t,e,n){t._canInitEmulator=!1;const r=Object.assign(Object.assign({},kSe),e);try{const i=new $Se(t),s=await Promise.race([n(),i.promise]);i.clearNetworkTimeout();const a=await s.json();if("needConfirmation"in a)throw Iw(t,"account-exists-with-different-credential",a);if(s.ok&&!("errorMessage"in a))return a;{const c=s.ok?a.errorMessage:a.error.message,[u,h]=c.split(" : ");if(u==="FEDERATED_USER_ID_ALREADY_LINKED")throw Iw(t,"credential-already-in-use",a);if(u==="EMAIL_EXISTS")throw Iw(t,"email-already-in-use",a);if(u==="USER_DISABLED")throw Iw(t,"user-disabled",a);const p=r[u]||u.toLowerCase().replace(/[_\s]+/g,"-");if(h)throw sL(t,p,h);wc(t,p)}}catch(i){if(i instanceof Ef)throw i;
203wc(t,"network-request-failed",{message:String(i)})}}async function NSe(t,e,n,r,i={}){const s=await Tv(t,e,n,r,i);return"mfaPendingCredential"in s&&wc(t,"multi-factor-auth-required",{_serverResponse:s}),s}async function iG(t,e,n,r){const i=`${e}${n}?${r}`,s=t,a=s.config.emulator?aL(t.config,i):`${t.config.apiScheme}://${i}`;return MSe.includes(n)&&(await s._persistenceManagerAvailable,s._getPersistenceType()==="COOKIE")?s._getPersistence()._getFinalTarget(a).toString():a}class $Se{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(vl(this.auth,"network-request-failed")),DSe.get())})}}function Iw(t,e,n){const r={appName:t.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=vl(t,e,r);return i.customData._tokenResponse=n,i}async function FSe(t,e){return Tv(t,"POST","/v1/accounts:delete",e)}async function KC(t,e){return Tv(t,"POST","/v1/accounts:lookup",e)}function h1(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function USe(t,e=!1){const n=Sf(t),r=await n.getIdToken(e),i=cL(r);It(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const s=typeof i.firebase=="object"?i.firebase:void 0,a=s?.sign_in_provider;return{claims:i,token:r,authTime:h1(yA(i.auth_time)),issuedAtTime:h1(yA(i.iat)),expirationTime:h1(yA(i.exp)),signInProvider:a||null,signInSecondFactor:s?.sign_in_second_factor||null}}function yA(t){return Number(t)*1e3}function cL(t){const[e,n,r]=t.split(".");if(e===void 0||n===void 0||r===void 0)return L2("JWT malformed, contained fewer than 3 sections"),null;try{const i=zW(n);return i?JSON.parse(i):(L2("Failed to decode base64 JWT payload"),null)}catch(i){return L2("Caught error parsing JWT payload as JSON",i?.toString()),null}}function H7(t){const e=cL(t);return It(e,"internal-error"),It(typeof e.exp<"u","internal-error"),It(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}async function J1(t,e,n=!1){if(n)return e;try{return await e}catch(r){throw r instanceof Ef&&BSe(r)&&t.auth.currentUser===t&&await t.auth.signOut(),r}}function BSe({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}class jSe{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){var n;if(e){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const i=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,i)}}schedule(e=!1){if(!this.isRunning)return;const n=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){e?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}class I3{constructor(e,n){this.createdAt=e,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=h1(this.lastLoginAt),this.creationTime=h1(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function YC(t){var e;const n=t.auth,r=await t.getIdToken(),i=await J1(t,KC(n,{idToken:r}));It(i?.users.length,n,"internal-error");const s=i.users[0];t._notifyReloadListener(s);const a=!((e=s.providerUserInfo)===null||e===void 0)&&e.length?sG(s.providerUserInfo):[],c=zSe(t.providerData,a),u=t.isAnonymous,h=!(t.email&&s.passwordHash)&&!c?.length,p=u?h:!1,v={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:c,metadata:new I3(s.createdAt,s.lastLoginAt),isAnonymous:p};Object.assign(t,v)}async function HSe(t){const e=Sf(t);await YC(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function zSe(t,e){return[...t.filter(r=>!e.some(i=>i.providerId===r.providerId)),...e]}function sG(t){return t.map(e=>{var{providerId:n}=e,r=iL(e,["providerId"]);
203return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}async function VSe(t,e){const n=await rG(t,{},async()=>{const r=Lb({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:i,apiKey:s}=t.config,a=await iG(t,i,"/v1/token",`key=${s}`),c=await t._getAdditionalHeaders();c["Content-Type"]="application/x-www-form-urlencoded";const u={method:"POST",headers:c,body:r};return t.emulatorConfig&&rT(t.emulatorConfig.host)&&(u.credentials="include"),nG.fetch()(a,u)});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function qSe(t,e){return Tv(t,"POST","/v2/accounts:revokeToken",lL(t,e))}class Vm{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){It(e.idToken,"internal-error"),It(typeof e.idToken<"u","internal-error"),It(typeof e.refreshToken<"u","internal-error");const n="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):H7(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}updateFromIdToken(e){It(e.length!==0,"internal-error");const n=H7(e);this.updateTokensAndExpiration(e,null,n)}async getToken(e,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(It(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(e,n){const{accessToken:r,refreshToken:i,expiresIn:s}=await VSe(e,n);this.updateTokensAndExpiration(r,i,Number(s))}updateTokensAndExpiration(e,n,r){this.refreshToken=n||null,this.accessToken=e||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(e,n){const{refreshToken:r,accessToken:i,expirationTime:s}=n,a=new Vm;return r&&(It(typeof r=="string","internal-error",{appName:e}),a.refreshToken=r),i&&(It(typeof i=="string","internal-error",{appName:e}),a.accessToken=i),s&&(It(typeof s=="number","internal-error",{appName:e}),a.expirationTime=s),a}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new Vm,this.toJSON())}_performRefresh(){return Au("not implemented")}}function Hd(t,e){It(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class hl{constructor(e){var{uid:n,auth:r,stsTokenManager:i}=e,s=iL(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new jSe(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=s.displayName||null,this.email=s.email||null,this.emailVerified=s.emailVerified||!1,this.phoneNumber=s.phoneNumber||null,this.photoURL=s.photoURL||null,this.isAnonymous=s.isAnonymous||!1,this.tenantId=s.tenantId||null,this.providerData=s.providerData?[...s.providerData]:[],this.metadata=new I3(s.createdAt||void 0,s.lastLoginAt||void 0)}async getIdToken(e){const n=await J1(this,this.stsTokenManager.getToken(this.auth,e));return It(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return USe(this,e)}reload(){return HSe(this)}_assign(e){this!==e&&(It(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(n=>Object.assign({},n)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const n=new hl(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(e){It(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,n=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),n&&await YC(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(gc(this.auth.app))return Promise.reject(lp(this.auth));const e=await this.getIdToken();return await J1(this,FSe(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
203nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,n){var r,i,s,a,c,u,h,p;const v=(r=n.displayName)!==null&&r!==void 0?r:void 0,y=(i=n.email)!==null&&i!==void 0?i:void 0,E=(s=n.phoneNumber)!==null&&s!==void 0?s:void 0,S=(a=n.photoURL)!==null&&a!==void 0?a:void 0,x=(c=n.tenantId)!==null&&c!==void 0?c:void 0,C=(u=n._redirectEventId)!==null&&u!==void 0?u:void 0,R=(h=n.createdAt)!==null&&h!==void 0?h:void 0,A=(p=n.lastLoginAt)!==null&&p!==void 0?p:void 0,{uid:O,emailVerified:P,isAnonymous:L,providerData:D,stsTokenManager:N}=n;It(O&&N,e,"internal-error");const k=Vm.fromJSON(this.name,N);It(typeof O=="string",e,"internal-error"),Hd(v,e.name),Hd(y,e.name),It(typeof P=="boolean",e,"internal-error"),It(typeof L=="boolean",e,"internal-error"),Hd(E,e.name),Hd(S,e.name),Hd(x,e.name),Hd(C,e.name),Hd(R,e.name),Hd(A,e.name);const U=new hl({uid:O,auth:e,email:y,emailVerified:P,displayName:v,isAnonymous:L,photoURL:S,phoneNumber:E,tenantId:x,stsTokenManager:k,createdAt:R,lastLoginAt:A});return D&&Array.isArray(D)&&(U.providerData=D.map(F=>Object.assign({},F))),C&&(U._redirectEventId=C),U}static async _fromIdTokenResponse(e,n,r=!1){const i=new Vm;i.updateFromServerResponse(n);const s=new hl({uid:n.localId,auth:e,stsTokenManager:i,isAnonymous:r});return await YC(s),s}static async _fromGetAccountInfoResponse(e,n,r){const i=n.users[0];It(i.localId!==void 0,"internal-error");const s=i.providerUserInfo!==void 0?sG(i.providerUserInfo):[],a=!(i.email&&i.passwordHash)&&!s?.length,c=new Vm;c.updateFromIdToken(r);const u=new hl({uid:i.localId,auth:e,stsTokenManager:c,isAnonymous:a}),h={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:s,metadata:new I3(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash)&&!s?.length};return Object.assign(u,h),u}}const z7=new Map;function Ou(t){Fu(t instanceof Function,"Expected a class definition");let e=z7.get(t);return e?(Fu(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,z7.set(t,e),e)}class oG{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,n){this.storage[e]=n}async _get(e){const n=this.storage[e];return n===void 0?null:n}async _remove(e){delete this.storage[e]}_addListener(e,n){}_removeListener(e,n){}}oG.type="NONE";const V7=oG;function k2(t,e,n){return`firebase:${t}:${e}:${n}`}class qm{constructor(e,n,r){this.persistence=e,this.auth=n,this.userKey=r;const{config:i,name:s}=this.auth;this.fullUserKey=k2(this.userKey,i.apiKey,s),this.fullPersistenceKey=k2("persistence",i.apiKey,s),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);if(!e)return null;if(typeof e=="string"){const n=await KC(this.auth,{idToken:e}).catch(()=>{});return n?hl._fromGetAccountInfoResponse(this.auth,n,e):null}return hl._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,n,r="authUser"){if(!n.length)return new qm(Ou(V7),e,r);const i=(await Promise.all(n.map(async h=>{if(await h._isAvailable())return h}))).filter(h=>h);let s=i[0]||Ou(V7);const a=k2(r,e.config.apiKey,e.name);let c=null;for(const h of n)try{const p=await h._get(a);if(p){let v;if(typeof p=="string"){const y=await KC(e,{idToken:p}).catch(()=>{});if(!y)break;v=await hl._fromGetAccountInfoResponse(e,y,p)}else v=hl._fromJSON(e,p);h!==s&&(c=v),s=h;break}}catch{}const u=i.filter(h=>h._shouldAllowMigration);return!s._shouldAllowMigration||!u.length?new qm(s,e,r):(s=u[0],c&&await s._set(a,c.toJSON()),await Promise.all(n.map(async h=>{if(h!==s)try{await h._remove(a)}catch{}})),new qm(s,e,r))}}function q7(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(uG(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(aG(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(fG(e))return"Blackberry";if(hG(e))return"Webos";if(lG(e))return"Safari";if((e.includes("chrome/")||cG(e))&&!e.includes("edge/"))return"Chrome";
203if(dG(e))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=t.match(n);if(r?.length===2)return r[1]}return"Other"}function aG(t=Zs()){return/firefox\//i.test(t)}function lG(t=Zs()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function cG(t=Zs()){return/crios\//i.test(t)}function uG(t=Zs()){return/iemobile/i.test(t)}function dG(t=Zs()){return/android/i.test(t)}function fG(t=Zs()){return/blackberry/i.test(t)}function hG(t=Zs()){return/webos/i.test(t)}function uL(t=Zs()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function WSe(t=Zs()){var e;return uL(t)&&!!(!((e=window.navigator)===null||e===void 0)&&e.standalone)}function GSe(){return oEe()&&document.documentMode===10}function pG(t=Zs()){return uL(t)||dG(t)||hG(t)||fG(t)||/windows phone/i.test(t)||uG(t)}function gG(t,e=[]){let n;switch(t){case"Browser":n=q7(Zs());break;case"Worker":n=`${q7(Zs())}-${t}`;break;default:n=t}const r=e.length?e.join(","):"FirebaseCore-web";return`${n}/JsCore/${kb}/${r}`}class KSe{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,n){const r=s=>new Promise((a,c)=>{try{const u=e(s);a(u)}catch(u){c(u)}});r.onAbort=n,this.queue.push(r);const i=this.queue.length-1;return()=>{this.queue[i]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const n=[];try{for(const r of this.queue)await r(e),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const i of n)try{i()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r?.message})}}}async function YSe(t,e={}){return Tv(t,"GET","/v2/passwordPolicy",lL(t,e))}const XSe=6;class QSe{constructor(e){var n,r,i,s;const a=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=a.minPasswordLength)!==null&&n!==void 0?n:XSe,a.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=a.maxPasswordLength),a.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=a.containsLowercaseCharacter),a.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=a.containsUppercaseCharacter),a.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=a.containsNumericCharacter),a.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=a.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(i=(r=e.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&i!==void 0?i:"",this.forceUpgradeOnSignin=(s=e.forceUpgradeOnSignin)!==null&&s!==void 0?s:!1,this.schemaVersion=e.schemaVersion}validatePassword(e){var n,r,i,s,a,c;const u={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,u),this.validatePasswordCharacterOptions(e,u),u.isValid&&(u.isValid=(n=u.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),u.isValid&&(u.isValid=(r=u.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),u.isValid&&(u.isValid=(i=u.containsLowercaseLetter)!==null&&i!==void 0?i:!0),u.isValid&&(u.isValid=(s=u.containsUppercaseLetter)!==null&&s!==void 0?s:!0),u.isValid&&(u.isValid=(a=u.containsNumericCharacter)!==null&&a!==void 0?a:!0),u.isValid&&(u.isValid=(c=u.containsNonAlphanumericCharacter)!==null&&c!==void 0?c:!0),u}validatePasswordLengthOptions(e,n){const r=this.customStrengthOptions.minPasswordLength,i=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=e.length>=r),i&&(n.meetsMaxPasswordLength=e.length<=i)}validatePasswordCharacterOptions(e,n){this.updatePasswordCharacterOptionsStatuses(n,!1,
203!1,!1,!1);let r;for(let i=0;i<e.length;i++)r=e.charAt(i),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,n,r,i,s){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=i)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=s))}}class ZSe{constructor(e,n,r,i){this.app=e,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new W7(this),this.idTokenSubscription=new W7(this),this.beforeStateQueue=new KSe(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=tG,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=i.sdkClientVersion,this._persistenceManagerAvailable=new Promise(s=>this._resolvePersistenceManagerAvailable=s)}_initializeWithPersistence(e,n){return n&&(this._popupRedirectResolver=Ou(n)),this._initializationPromise=this.queue(async()=>{var r,i,s;if(!this._deleted&&(this.persistenceManager=await qm.create(this,e),(r=this._resolvePersistenceManagerAvailable)===null||r===void 0||r.call(this),!this._deleted)){if(!((i=this._popupRedirectResolver)===null||i===void 0)&&i._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((s=this.currentUser)===null||s===void 0?void 0:s.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUserFromIdToken(e){try{const n=await KC(this,{idToken:e}),r=await hl._fromGetAccountInfoResponse(this,n,e);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var n;if(gc(this.app)){const a=this.app.settings.authIdToken;return a?new Promise(c=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(a).then(c,c))}):this.directlySetCurrentUser(null)}const r=await this.assertedPersistence.getCurrentUser();let i=r,s=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const a=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,c=i?._redirectEventId,u=await this.tryRedirectSignIn(e);(!a||a===c)&&u?.user&&(i=u.user,s=!0)}if(!i)return this.directlySetCurrentUser(null);if(!i._redirectEventId){if(s)try{await this.beforeStateQueue.runMiddleware(i)}catch(a){i=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(a))}return i?this.reloadAndSetCurrentUserOrClear(i):this.directlySetCurrentUser(null)}return It(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===i._redirectEventId?this.directlySetCurrentUser(i):this.reloadAndSetCurrentUserOrClear(i)}async tryRedirectSignIn(e){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(e){try{await YC(e)}catch(n){if(n?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=LSe()}async _delete(){this._deleted=!0}
203async updateCurrentUser(e){if(gc(this.app))return Promise.reject(lp(this));const n=e?Sf(e):null;return n&&It(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(e,n=!1){if(!this._deleted)return e&&It(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return gc(this.app)?Promise.reject(lp(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return gc(this.app)?Promise.reject(lp(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(Ou(e))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(e)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await YSe(this),n=new QSe(e);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new Pb("auth","Firebase",e())}onAuthStateChanged(e,n,r){return this.registerStateListener(this.authStateSubscription,e,n,r)}beforeAuthStateChanged(e,n){return this.beforeStateQueue.pushCallback(e,n)}onIdTokenChanged(e,n,r){return this.registerStateListener(this.idTokenSubscription,e,n,r)}authStateReady(){return new Promise((e,n)=>{if(this.currentUser)e();else{const r=this.onAuthStateChanged(()=>{r(),e()},n)}})}async revokeAccessToken(e){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await qSe(this,r)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)===null||e===void 0?void 0:e.toJSON()}}async _setRedirectUser(e,n){const r=await this.getOrInitRedirectPersistenceManager(n);return e===null?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const n=e&&Ou(e)||this._popupRedirectResolver;It(n,this,"argument-error"),this.redirectPersistenceManager=await qm.create(this,[Ou(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===e?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,n,r,i){if(this._deleted)return()=>{};const s=typeof n=="function"?n:n.next.bind(n);let a=!1;const c=this._isInitialized?Promise.resolve():this._initializationPromise;if(It(c,this,"internal-error"),c.then(()=>{a||s(this.currentUser)}),typeof n=="function"){const u=e.addObserver(n,r,i);return()=>{a=!0,u()}}else{const u=e.addObserver(n);return()=>{a=!0,u()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return It(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=gG(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const r=await((e=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getHeartbeatsHeader());r&&(n["X-Firebase-Client"]=r);const i=await this._getAppCheckToken();return i&&(n["X-Firebase-AppCheck"]=i),n}async _getAppCheckToken(){var e;if(gc(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const n=await((e=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getToken());return n?.error&&ASe(`Error while retrieving App Check token: ${n.error}`),n?.token}}function iT(t){return Sf(t)}class W7{constructor(e){this.auth=e,this.observer=null,this.addObserver=hEe(n=>this.observer=n)}get next(){return It(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let dL={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function JSe(t){dL=t}function ewe(t){return dL.loadJS(t)}function twe(){return dL.gapiScript}function nwe(t){return`__${t}${Math.floor(Math.random()*1e6)}`}function rwe(t,e){const n=YW(t,"auth");if(n.isInitialized()){const i=n.getImmediate(),s=n.getOptions();if(dv(s,e??{}))return i;wc(i,"already-initialized")}return n.initialize({options:e})}function iwe(t,e){const n=e?.persistence||[],r=(Array.isArray(n)?n:[n]).map(Ou);e?.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(r,e?.popupRedirectResolver)}function swe(t,e,n){const r=iT(t);
203It(/^https?:\/\//.test(e),r,"invalid-emulator-scheme");const i=!1,s=mG(e),{host:a,port:c}=owe(e),u=c===null?"":`:${c}`,h={url:`${s}//${a}${u}/`},p=Object.freeze({host:a,port:c,protocol:s.replace(":",""),options:Object.freeze({disableWarnings:i})});if(!r._canInitEmulator){It(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),It(dv(h,r.config.emulator)&&dv(p,r.emulatorConfig),r,"emulator-config-failed");return}r.config.emulator=h,r.emulatorConfig=p,r.settings.appVerificationDisabledForTesting=!0,rT(a)?(Zbe(`${s}//${a}${u}`),tEe("Auth",!0)):awe()}function mG(t){const e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function owe(t){const e=mG(t),n=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const s=i[1];return{host:s,port:G7(r.substr(s.length+1))}}else{const[s,a]=r.split(":");return{host:s,port:G7(a)}}}function G7(t){if(!t)return null;const e=Number(t);return isNaN(e)?null:e}function awe(){function t(){const e=document.createElement("p"),n=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",t):t())}class vG{constructor(e,n){this.providerId=e,this.signInMethod=n}toJSON(){return Au("not implemented")}_getIdTokenResponse(e){return Au("not implemented")}_linkToIdToken(e,n){return Au("not implemented")}_getReauthenticationResolver(e){return Au("not implemented")}}async function Wm(t,e){return NSe(t,"POST","/v1/accounts:signInWithIdp",lL(t,e))}const lwe="http://localhost";class Uu extends vG{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const n=new Uu(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(n.idToken=e.idToken),e.accessToken&&(n.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(n.nonce=e.nonce),e.pendingToken&&(n.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(n.accessToken=e.oauthToken,n.secret=e.oauthTokenSecret):wc("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
203once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e,{providerId:r,signInMethod:i}=n,s=iL(n,["providerId","signInMethod"]);if(!r||!i)return null;const a=new Uu(r,i);return a.idToken=s.idToken||void 0,a.accessToken=s.accessToken||void 0,a.secret=s.secret,a.nonce=s.nonce,a.pendingToken=s.pendingToken||null,a}_getIdTokenResponse(e){const n=this.buildRequest();return Wm(e,n)}_linkToIdToken(e,n){const r=this.buildRequest();return r.idToken=n,Wm(e,r)}_getReauthenticationResolver(e){const n=this.buildRequest();return n.autoCreate=!1,Wm(e,n)}buildRequest(){const e={requestUri:lwe,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),e.postBody=Lb(n)}return e}}class fL{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class Rv extends fL{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class p1 extends Rv{static credentialFromJSON(e){const n=typeof e=="string"?JSON.parse(e):e;return It("providerId"in n&&"signInMethod"in n,"argument-error"),Uu._fromParams(n)}credential(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}_credential(e){return It(e.idToken||e.accessToken,"argument-error"),Uu._fromParams(Object.assign(Object.assign({}
203,e),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(e){return p1.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return p1.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r,oauthTokenSecret:i,pendingToken:s,nonce:a,providerId:c}=e;if(!r&&!i&&!n&&!s||!c)return null;try{return new p1(c)._credential({idToken:n,accessToken:r,nonce:a,pendingToken:s})}catch{return null}}}class wu extends Rv{constructor(){super("facebook.com")}static credential(e){return Uu._fromParams({providerId:wu.PROVIDER_ID,signInMethod:wu.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return wu.credentialFromTaggedObject(e)}static credentialFromError(e){return wu.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return wu.credential(e.oauthAccessToken)}catch{return null}}}wu.FACEBOOK_SIGN_IN_METHOD="facebook.com";wu.PROVIDER_ID="facebook.com";class Cu extends Rv{constructor(){super("google.com"),this.addScope("profile")}static credential(e,n){return Uu._fromParams({providerId:Cu.PROVIDER_ID,signInMethod:Cu.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return Cu.credentialFromTaggedObject(e)}static credentialFromError(e){return Cu.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r}=e;if(!n&&!r)return null;try{return Cu.credential(n,r)}catch{return null}}}Cu.GOOGLE_SIGN_IN_METHOD="google.com";Cu.PROVIDER_ID="google.com";class xu extends Rv{constructor(){super("github.com")}static credential(e){return Uu._fromParams({providerId:xu.PROVIDER_ID,signInMethod:xu.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return xu.credentialFromTaggedObject(e)}static credentialFromError(e){return xu.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return xu.credential(e.oauthAccessToken)}catch{return null}}}xu.GITHUB_SIGN_IN_METHOD="github.com";xu.PROVIDER_ID="github.com";class Jd extends Rv{constructor(){super("twitter.com")}static credential(e,n){return Uu._fromParams({providerId:Jd.PROVIDER_ID,signInMethod:Jd.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return Jd.credentialFromTaggedObject(e)}static credentialFromError(e){return Jd.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=e;if(!n||!r)return null;try{return Jd.credential(n,r)}catch{return null}}}Jd.TWITTER_SIGN_IN_METHOD="twitter.com";Jd.PROVIDER_ID="twitter.com";class hv{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,n,r,i=!1){const s=await hl._fromIdTokenResponse(e,r,i),a=K7(r);return new hv({user:s,providerId:a,_tokenResponse:r,operationType:n})}static async _forOperation(e,n,r){await e._updateTokensIfNecessary(r,!0);const i=K7(r);return new hv({user:e,providerId:i,_tokenResponse:r,operationType:n})}}function K7(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}class XC extends Ef{constructor(e,n,r,i){var s;super(n.code,n.message),this.operationType=r,this.user=i,Object.setPrototypeOf(this,XC.prototype),this.customData={appName:e.name,tenantId:(s=e.tenantId)!==null&&s!==void 0?s:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,n,r,i){return new XC(e,n,r,i)}}function yG(t,e,n,r){return(e==="reauthenticate"?n._getReauthenticationResolver(t):n._getIdTokenResponse(t)).catch(s=>{throw s.code==="auth/multi-factor-auth-required"?XC._fromErrorAndOperation(t,s,e,r):s})}async function cwe(t,e,n=!1){const r=await J1(t,e._linkToIdToken(t.auth,await t.getIdToken()),n);return hv._forOperation(t,"link",r)}async function uwe(t,e,n=!1){const{auth:r}=t;if(gc(r.app))return Promise.reject(lp(r));const i="reauthenticate";try{const s=await J1(t,yG(r,i,e,t),n);It(s.idToken,r,"internal-error");const a=cL(s.idToken);It(a,r,"internal-error");const{sub:c}=a;return It(t.uid===c,r,"user-mismatch"),hv._forOperation(t,i,s)}catch(s){throw s?.code==="auth/user-not-found"&&wc(r,"user-mismatch"),s}}async function dwe(t,e,n=!1){if(gc(t.app))return Promise.reject(lp(t));const r="signIn",i=await yG(t,r,e),s=await hv._fromIdTokenResponse(t,r,i);return n||await t._updateCurrentUser(s.user),s}function fwe(t,e){return Sf(t).setPersistence(e)}function hwe(t,e,n,r){return Sf(t).onIdTokenChanged(e,n,r)}function pwe(t,e,n){return Sf(t).beforeAuthStateChanged(e,n)}function gwe(t){return Sf(t).signOut()}const QC="__sak";class _G{constructor(e,n){this.storageRetriever=e,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(QC,"1"),this.storage.removeItem(QC),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,n){return this.storage.setItem(e,JSON.stringify(n)),Promise.resolve()}_get(e){const n=this.storage.getItem(e);return Promise.resolve(n?JSON.parse(n):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}const mwe=1e3,vwe=10;class bG extends _G{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,n)=>this.onStorageEvent(e,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=pG(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),i=this.localCache[n];r!==i&&e(n,i,r)}}
203onStorageEvent(e,n=!1){if(!e.key){this.forAllChangedKeys((a,c,u)=>{this.notifyListeners(a,u)});return}const r=e.key;n?this.detachListener():this.stopPolling();const i=()=>{const a=this.storage.getItem(r);!n&&this.localCache[r]===a||this.notifyListeners(r,a)},s=this.storage.getItem(r);GSe()&&s!==e.newValue&&e.newValue!==e.oldValue?setTimeout(i,vwe):i()}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const i of Array.from(r))i(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:n,newValue:r}),!0)})},mwe)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Ob
203ject.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,n){await super._set(e,n),this.localCache[e]=JSON.stringify(n)}async _get(e){const n=await super._get(e);return this.localCache[e]=JSON.stringify(n),n}async _remove(e){await super._remove(e),delete this.localCache[e]}}bG.type="LOCAL";const EG=bG;class SG extends _G{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,n){}_removeListener(e,n){}}SG.type="SESSION";const wG=SG;function ywe(t){return Promise.all(t.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(n){return{fulfilled:!1,reason:n}}}))}class sT{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const n=this.receivers.find(i=>i.isListeningto(e));if(n)return n;const r=new sT(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const n=e,{eventId:r,eventType:i,data:s}=n.data,a=this.handlersMap[i];if(!a?.size)return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:i});const c=Array.from(a).map(async h=>h(n.origin,s)),u=await ywe(c);n.ports[0].postMessage({status:"done",eventId:r,eventType:i,response:u})}_subscribe(e,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(n)}_unsubscribe(e,n){this.handlersMap[e]&&n&&this.handlersMap[e].delete(n),(!n||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}sT.receivers=[];function hL(t="",e=10){let n="";for(let r=0;r<e;r++)n+=Math.floor(Math.random()*10);return t+n}class _we{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,n,r=50){const i=typeof MessageChannel<"u"?new MessageChannel:null;if(!i)throw new Error("connection_unavailable");let s,a;return new Promise((c,u)=>{const h=hL("",20);i.port1.start();const p=setTimeout(()=>{u(new Error("unsupported_event"))},r);a={messageChannel:i,onMessage(v){const y=v;if(y.data.eventId===h)switch(y.data.status){case"ack":clearTimeout(p),s=setTimeout(()=>{u(new Error("timeout"))},3e3);break;case"done":clearTimeout(s),c(y.data.response);break;default:clearTimeout(p),clearTimeout(s),u(new Error("invalid_response"));break}}},this.handlers.add(a),i.port1.addEventListener("message",a.onMessage),this.target.postMessage({eventType:e,eventId:h,data:n},[i.port2])}).finally(()=>{a&&this.removeMessageHandler(a)})}}function yc(){return window}function bwe(t){yc().location.href=t}function CG(){return typeof yc().WorkerGlobalScope<"u"&&typeof yc().importScripts=="function"}async function Ewe(){if(!navigator?.serviceWorker)return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function Swe(){var t;return((t=navigator?.serviceWorker)===null||t===void 0?void 0:t.controller)||null}function wwe(){return CG()?self:null}const xG="firebaseLocalStorageDb",Cwe=1,ZC="firebaseLocalStorage",TG="fbase_key";class Db{constructor(e){this.request=e}toPromise(){return new Promise((e,n)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function oT(t,e){return t.transaction([ZC],e?"readwrite":"readonly").objectStore(ZC)}function xwe(){const t=indexedDB.deleteDatabase(xG);return new Db(t).toPromise()}function P3(){const t=indexedDB.open(xG,Cwe);return new Promise((e,n)=>{t.addEventListener("error",()=>{n(t.error)}),t.addEventListener("upgradeneeded",()=>{const r=t.result;try{r.createObjectStore(ZC,{keyPath:TG})}catch(i){n(i)}}),t.addEventListener("success",async()=>{const r=t.result;r.objectStoreNames.contains(ZC)?e(r):(r.close(),await xwe(),e(await P3()))})})}async function Y7(t,e,n){const r=oT(t,!0).put({[TG]:e,value:n});
203return new Db(r).toPromise()}async function Twe(t,e){const n=oT(t,!1).get(e),r=await new Db(n).toPromise();return r===void 0?null:r.value}function X7(t,e){const n=oT(t,!0).delete(e);return new Db(n).toPromise()}const Rwe=800,Awe=3;class RG{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await P3(),this.db)}async _withRetries(e){let n=0;for(;;)try{const r=await this._openDb();return await e(r)}catch(r){if(n++>Awe)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return CG()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=sT._getInstance(wwe()),this.receiver._subscribe("keyChanged",async(e,n)=>({keyProcessed:(await this._poll()).includes(n.key)}
203)),this.receiver._subscribe("ping",async(e,n)=>["keyChanged"])}async initializeSender(){var e,n;if(this.activeServiceWorker=await Ewe(),!this.activeServiceWorker)return;this.sender=new _we(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&!((e=r[0])===null||e===void 0)&&e.fulfilled&&!((n=r[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(!(!this.sender||!this.activeServiceWorker||Swe()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await P3();return await Y7(e,QC,"1"),await X7(e,QC),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>Y7(r,e,n)),this.localCache[e]=n,this.notifyServiceWorker(e)))}async _get(e){const n=await this._withRetries(r=>Twe(r,e));return this.localCache[e]=n,n}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(n=>X7(n,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(i=>{const s=oT(i,!1).getAll();return new Db(s).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(e.length!==0)for(const{fbase_key:i,value:s}of e)r.add(i),JSON.stringify(this.localCache[i])!==JSON.stringify(s)&&(this.notifyListeners(i,s),n.push(i));for(const i of Object.keys(this.localCache))this.localCache[i]&&!r.has(i)&&(this.notifyListeners(i,null),n.push(i));return n}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const i of Array.from(r))i(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),Rwe)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Ob
203ject.keys(this.listeners).length===0&&this.stopPolling()}}RG.type="LOCAL";const Owe=RG;new Mb(3e4,6e4);function AG(t,e){return e?Ou(e):(It(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}class pL extends vG{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Wm(e,this._buildIdpRequest())}_linkToIdToken(e,n){return Wm(e,this._buildIdpRequest(n))}_getReauthenticationResolver(e){return Wm(e,this._buildIdpRequest())}_buildIdpRequest(e){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(n.idToken=e),n}}function Iwe(t){return dwe(t.auth,new pL(t),t.bypassAuthState)}function Pwe(t){const{auth:e,user:n}=t;return It(n,e,"internal-error"),uwe(n,new pL(t),t.bypassAuthState)}async function Lwe(t){const{auth:e,user:n}=t;return It(n,e,"internal-error"),cwe(n,new pL(t),t.bypassAuthState)}class OG{constructor(e,n,r,i,s=!1){this.auth=e,this.resolver=r,this.user=i,this.bypassAuthState=s,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(e,n)=>{this.pendingPromise={resolve:e,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(e){const{urlResponse:n,sessionId:r,postBody:i,tenantId:s,error:a,type:c}=e;if(a){this.reject(a);return}const u={auth:this.auth,requestUri:n,sessionId:r,tenantId:s||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(c)(u))}catch(h){this.reject(h)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return Iwe;case"linkViaPopup":case"linkViaRedirect":return Lwe;case"reauthViaPopup":case"reauthViaRedirect":return Pwe;default:wc(this.auth,"internal-error")}}resolve(e){Fu(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Fu(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const kwe=new Mb(2e3,1e4);async function Mwe(t,e,n){if(gc(t.app))return Promise.reject(vl(t,"operation-not-supported-in-this-environment"));const r=iT(t);OSe(t,e,fL);const i=AG(r,n);return new Jh(r,"signInViaPopup",e,i).executeNotNull()}class Jh extends OG{constructor(e,n,r,i,s){super(e,n,i,s),this.provider=r,this.authWindow=null,this.pollId=null,Jh.currentPopupAction&&Jh.currentPopupAction.cancel(),Jh.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return It(e,this.auth,"internal-error"),e}async onExecution(){Fu(this.filter.length===1,"Popup operations only handle one event");const e=hL();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(vl(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return((e=this.authWindow)===null||e===void 0?void 0:e.associatedEvent)||null}cancel(){this.reject(vl(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Jh.currentPopupAction=null}pollUserCancellation(){const e=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(vl(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,kwe.get())};e()}}Jh.currentPopupAction=null;const Dwe="pendingRedirect",M2=new Map;class Nwe extends OG{constructor(e,n,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let e=M2.get(this.auth._key());if(!e){try{const r=await $we(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(r)}catch(n){e=()=>Promise.reject(n)}M2.set(this.auth._key(),e)}return this.bypassAuthState||M2.set(this.auth._key(),()=>Promise.resolve(null)),e()}
203async onAuthEvent(e){if(e.type==="signInViaRedirect")return super.onAuthEvent(e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){const n=await this.auth._redirectUserForId(e.eventId);if(n)return this.user=n,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function $we(t,e){const n=Bwe(e),r=Uwe(t);if(!await r._isAvailable())return!1;const i=await r._get(n)==="true";return await r._remove(n),i}function Fwe(t,e){M2.set(t._key(),e)}function Uwe(t){return Ou(t._redirectPersistence)}function Bwe(t){return k2(Dwe,t.config.apiKey,t.name)}async function jwe(t,e,n=!1){if(gc(t.app))return Promise.reject(lp(t));const r=iT(t),i=AG(r,e),a=await new Nwe(r,i,n).execute();return a&&!n&&(delete a.user._redirectEventId,await r._persistUserIfCurrent(a.user),await r._setRedirectUser(null,e)),a}const Hwe=600*1e3;class zwe{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(n=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!Vwe(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}sendToConsumer(e,n){var r;if(e.error&&!IG(e)){const i=((r=e.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(vl(this.auth,i))}else n.onAuthEvent(e)}isEventForConsumer(e,n){const r=n.eventId===null||!!e.eventId&&e.eventId===n.eventId;return n.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=Hwe&&this.cachedEventUids.clear(),this.cachedEventUids.has(Q7(e))}saveEventToCache(e){this.cachedEventUids.add(Q7(e)),this.lastProcessedEventTime=Date.now()}}function Q7(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function IG({type:t,error:e}){return t==="unknown"&&e?.code==="auth/no-auth-event"}function Vwe(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return IG(t);default:return!1}}async function qwe(t,e={}){return Tv(t,"GET","/v1/projects",e)}const Wwe=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Gwe=/^https?/;async function Kwe(t){if(t.config.emulator)return;const{authorizedDomains:e}=await qwe(t);for(const n of e)try{if(Ywe(n))return}catch{}wc(t,"unauthorized-domain")}function Ywe(t){const e=O3(),{protocol:n,hostname:r}=new URL(e);if(t.startsWith("chrome-extension://")){const a=new URL(t);return a.hostname===""&&r===""?n==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):n==="chrome-extension:"&&a.hostname===r}if(!Gwe.test(n))return!1;if(Wwe.test(t))return r===t;const i=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}const Xwe=new Mb(3e4,6e4);function Z7(){const t=yc().___jsl;if(t?.H){for(const e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let n=0;n<t.CP.length;n++)t.CP[n]=null}}function Qwe(t){return new Promise((e,n)=>{var r,i,s;function a(){Z7(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{Z7(),n(vl(t,"network-request-failed"))},timeout:Xwe.get()})}if(!((i=(r=yc().gapi)===null||r===void 0?void 0:r.iframes)===null||i===void 0)&&i.Iframe)e(gapi.iframes.getContext());else if(!((s=yc().gapi)===null||s===void 0)&&s.load)a();else{const c=nwe("iframefcb");return yc()[c]=()=>{gapi.load?a():n(vl(t,"network-request-failed"))},ewe(`${twe()}?onload=${c}`).catch(u=>n(u))}}).catch(e=>{throw D2=null,e})}let D2=null;function Zwe(t){return D2=D2||Qwe(t),D2}const Jwe=new Mb(5e3,15e3),e2e="__/auth/iframe",t2e="emulator/auth/iframe",n2e={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},r2e=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function i2e(t){const e=t.config;It(e.authDomain,t,"auth-domain-config-required");const n=e.emulator?aL(e,t2e):`https://${t.config.authDomain}/${e2e}`,r={apiKey:e.apiKey,appName:t.name,v:kb},i=r2e.get(t.config.apiHost);i&&(r.eid=i);const s=t._getFrameworks();return s.length&&(r.fw=s.join(",")),`${n}?${Lb(r).slice(1)}`}async function s2e(t){const e=await Zwe(t),n=yc().gapi;return It(n,t,"internal-error"),e.open({where:document.body,url:i2e(t),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:n2e,dontclear:!0},r=>new Promise(async(i,s)=>{await r.restyle({setHideOnLeave:!1});const a=vl(t,"network-request-failed"),c=yc().setTimeout(()=>{s(a)},Jwe.get());function u(){yc().clearTimeout(c),i(r)}r.ping(u).then(u,()=>{s(a)})}))}const o2e={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},a2e=500,l2e=600,c2e="_blank",u2e="http://localhost";class J7{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function d2e(t,e,n,r=a2e,i=l2e){const s=Math.max((window.screen.availHeight-i)/2,0).toString(),a=Math.max((window.screen.availWi
203dth-r)/2,0).toString();let c="";const u=Object.assign(Object.assign({},o2e),{width:r.toString(),height:i.toString(),top:s,left:a}),h=Zs().toLowerCase();n&&(c=cG(h)?c2e:n),aG(h)&&(e=e||u2e,u.scrollbars="yes");const p=Object.entries(u).reduce((y,[E,S])=>`${y}${E}=${S},`,"");if(WSe(h)&&c!=="_self")return f2e(e||"",c),new J7(null);const v=window.open(e||"",c,p);It(v,t,"popup-blocked");try{v.focus()}catch{}return new J7(v)}function f2e(t,e){const n=document.createElement("a");n.href=t,n.target=e;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}const h2e="__/auth/handler",p2e="emulator/auth/handler",g2e=encodeURIComponent("fac");async function e$(t,e,n,r,i,s){It(t.config.authDomain,t,"auth-domain-config-required"),It(t.config.apiKey,t,"invalid-api-key");const a={apiKey:t.config.apiKey,appName:t.name,authType:n,redirectUrl:r,v:kb,eventId:i};if(e instanceof fL){e.setDefaultLanguage(t.languageCode),a.providerId=e.providerId||"",fEe(e.getCustomParameters())||(a.customParameters=JSON.stringify(e.getCustomParameters()));for(const[p,v]of Object.entries({}))a[p]=v}if(e instanceof Rv){const p=e.getScopes().filter(v=>v!=="");p.length>0&&(a.scopes=p.join(","))}t.tenantId&&(a.tid=t.tenantId);const c=a;for(const p of Object.keys(c))c[p]===void 0&&delete c[p];const u=await t._getAppCheckToken(),h=u?`#${g2e}=${encodeURIComponent(u)}`:"";return`${m2e(t)}?${Lb(c).slice(1)}${h}`}function m2e({config:t}){return t.emulator?aL(t,p2e):`https://${t.authDomain}/${h2e}`}const _A="webStorageSupport";class v2e{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=wG,this._completeRedirectFn=jwe,this._overrideRedirectResult=Fwe}async _openPopup(e,n,r,i){var s;Fu((s=this.eventManagers[e._key()])===null||s===void 0?void 0:s.manager,"_initialize() not called before _openPopup()");const a=await e$(e,n,r,O3(),i);return d2e(e,a,hL())}async _openRedirect(e,n,r,i){await this._originValidation(e);const s=await e$(e,n,r,O3(),i);return bwe(s),new Promise(()=>{})}_initialize(e){const n=e._key();if(this.eventManagers[n]){const{manager:i,promise:s}=this.eventManagers[n];return i?Promise.resolve(i):(Fu(s,"If manager is not set, promise should be"),s)}const r=this.initAndGetManager(e);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(e){const n=await s2e(e),r=new zwe(e);return n.register("authEvent",i=>(It(i?.authEvent,e,"invalid-auth-event"),{status:r.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=n,r}_isIframeWebStorageSupported(e,n){this.iframes[e._key()].send(_A,{type:_A},i=>{var s;const a=(s=i?.[0])===null||s===void 0?void 0:s[_A];a!==void 0&&n(!!a),wc(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const n=e._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=Kwe(e)),this.originValidationPromises[n]}get _shouldInitProactively(){return pG()||lG()||uL()}}const y2e=v2e;var t$="@firebase/auth",n$="1.10.8";class _2e{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),((e=this.auth.currentUser)===null||e===void 0?void 0:e.uid)||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const n=this.auth.onIdTokenChanged(r=>{e(r?.stsTokenManager.accessToken||null)});this.internalListeners.set(e,n),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const n=this.internalListeners.get(e);n&&(this.internalListeners.delete(e),n(),this.updateProactiveRefresh())}assertAuthConfigured(){It(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}function b2e(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function E2e(t){Q1(new fv("auth",(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),s=e.getProvider("app-check-internal"),{apiKey:a,authDomain:c}=r.options;It(a&&!a.includes(":"),"invalid-api-key",{appName:r.name});const u={apiKey:a,authDomain:c,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:gG(t)},h=new ZSe(r,i,s,u);return iwe(h,n),h},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,r)=>{e.getProvider("auth-internal").initialize()})),Q1(new fv("auth-internal",e=>{const n=iT(e.getProvider("auth").getImmediate());return(r=>new _2e(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),zm(t$,n$,b2e(t)),zm(t$,n$,"esm2017")}const S2e=300,w2e=qW("authIdTokenMaxAge")||S2e;let r$=null;const C2e=t=>async e=>{const n=e&&await e.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>w2e)return;const i=n?.token;r$!==i&&(r$=i,await fetch(t,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))};function x2e(t=QW()){const e=YW(t,"auth");if(e.isInitialized())return e.getImmediate();const n=rwe(t,{popupRedirectResolver:y2e,persistence:[Owe,EG,wG]}),r=qW("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const s=new URL(r,location.origin);if(location.origin===s.origin){const a=C2e(s.toString());pwe(n,a,()=>a(n.currentUser)),hwe(n,c=>a(c))}}const i=Xbe("auth");return i&&swe(n,`http://${i}`),n}function T2e(){var t,e;return(e=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:document}
203JSe({loadJS(t){return new Promise((e,n)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=i=>{const s=vl("internal-error");s.customData=i,n(s)},r.type="text/javascript",r.charset="UTF-8",T2e().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});E2e("Browser");const W_={apiKey:ir.VITE_FIREBASE_API_KEY,authDomain:ir.VITE_FIREBASE_AUTH_DOMAIN,projectId:ir.VITE_FIREBASE_PROJECT_ID,appId:ir.VITE_FIREBASE_APP_ID,messagingSenderId:ir.VITE_FIREBASE_MESSAGING_SENDER_ID,storageBucket:ir.VITE_FIREBASE_STORAGE_BUCKET};let g1=null,mm=null;const R2e=ir.VITE_FIREBASE_AUTH_PROVIDERS.split(",").map(t=>t.trim().toLowerCase()).filter(Boolean),A2e=new Set(["google","apple","facebook","github"]),O2e=()=>R2e.filter(t=>A2e.has(t)),I2e=()=>!!W_.apiKey&&!!W_.authDomain&&!!W_.projectId&&!!W_.appId&&O2e().length>0,P2e=async()=>{if(!I2e())throw new Error("Social sign-in is not configured for this environment.");return g1||(g1=(async()=>{const t=pSe().some(n=>n.name==="dessence-ui")?QW("dessence-ui"):XW(W_,"dessence-ui"),e=x2e(t);return await fwe(e,EG),e})()),g1},L2e=t=>{switch(t){case"google":{const e=new Cu;return e.setCustomParameters({prompt:"select_account"}),e}case"apple":return new p1("apple.com");case"facebook":{const e=new wu;return e.addScope("email"),e}case"github":{const e=new xu;return e.addScope("read:user"),e}}},RPe=async t=>{if(mm){if(mm.providerId===t)return mm.promise;throw Object.assign(new Error("Another social sign-in is already in progress."),{code:"auth/social-sign-in-in-progress"})}const e=(async()=>{const n=await P2e();return(await Mwe(n,L2e(t))).user.getIdToken(!0)})();mm={providerId:t,promise:e};try{return await e}finally{mm?.promise===e&&(mm=null)}},i$=async()=>{if(!g1)return;const t=await g1;await gwe(t)},PG=t=>typeof t!="object"||t===null||!("code"in t)?null:String(t.code),APe=t=>{const e=PG(t);return e==="auth/cancelled-popup-request"||e==="auth/popup-closed-by-user"||e==="auth/user-cancelled"},OPe=t=>{const e=PG(t);if(e){if(e==="auth/cancelled-popup-request")return"Sign-in is already in progress.";if(e==="auth/user-cancelled")return"Google sign-in was cancelled. No changes were made.";if(e==="auth/popup-closed-by-user")return"The sign-in window was closed before completion.";if(e==="auth/popup-blocked")return"Your browser blocked the sign-in popup. Allow popups and try again.";if(e==="auth/social-sign-in-in-progress")return"Another social sign-in is already in progress.";if(e==="auth/account-exists-with-different-credential")return"This email already belongs to another sign-in method."}return t instanceof Error&&t.message?t.message:"Could not complete social sign-in."},s$=t=>{let e;const n=new Set,r=(h,p)=>{const v=typeof h=="function"?h(e):h;if(!Object.is(v,e)){const y=e;e=p??(typeof v!="object"||v===null)?v:Object.assign({},e,v),n.forEach(E=>E(e,y))}},i=()=>e,c={setState:r,getState:i,getInitialState:()=>u,subscribe:h=>(n.add(h),()=>n.delete(h))},u=e=t(r,i,c);return c},k2e=(t=>t?s$(t):s$),M2e=t=>t;function D2e(t,e=M2e){const n=Te.useSyncExternalStore(t.subscribe,Te.useCallback(()=>e(t.getState()),[t,e]),Te.useCallback(()=>e(t.getInitialState()),[t,e]));return Te.useDebugValue(n),n}const o$=t=>{const e=k2e(t),n=r=>D2e(e,r);return Object.assign(n,e),n},LG=(t=>t?o$(t):o$);function kG(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var s;const a=u=>u===null?null:JSON.parse(u,void 0),c=(s=n.getItem(i))!=null?s:null;return c instanceof Promise?c.then(a):a(c)},setItem:(i,s)=>n.setItem(i,JSON.stringify(s,void 0)),removeItem:i=>n.removeItem(i)}}const L3=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(r){return L3(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return L3(r)(n)}}}},N2e=(t,e)=>(n,r,i)=>{let s={storage:kG(()=>window.localStorage),partialize:C=>C,version:0,merge:(C,R)=>({...R,...C}),...e},a=!1,c=0;const u=new Set,h=new Set;let p=s.storage;if(!p)return t((...C)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...C)},r,i);const v=()=>{const C=s.partialize({...r()});return p.setItem(s.name,{state:C,version:s.version})},y=i.setState;i.setState=(C,R)=>(y(C,R),v());const E=t((...C)=>(n(...C),v()),r,i);i.getInitialState=()=>E;let S;const x=()=>{var C,R;
203if(!p)return;const A=++c;a=!1,u.forEach(P=>{var L;return P((L=r())!=null?L:E)});const O=((R=s.onRehydrateStorage)==null?void 0:R.call(s,(C=r())!=null?C:E))||void 0;return L3(p.getItem.bind(p))(s.name).then(P=>{if(P)if(typeof P.version=="number"&&P.version!==s.version){if(s.migrate){const L=s.migrate(P.state,P.version);return L instanceof Promise?L.then(D=>[!0,D]):[!0,L]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,P.state];return[!1,void 0]}).then(P=>{var L;if(A!==c)return;const[D,N]=P;if(S=s.merge(N,(L=r())!=null?L:E),n(S,!0),D)return v()}).then(()=>{A===c&&(O?.(r(),void 0),S=r(),a=!0,h.forEach(P=>P(S)))}).catch(P=>{A===c&&O?.(void 0,P)})};return i.persist={setOptions:C=>{s={...s,...C},C.storage&&(p=C.storage)},clearStorage:()=>{p?.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>x(),hasHydrated:()=>a,onHydrate:C=>(u.add(C),()=>{u.delete(C)}),onFinishHydration:C=>(h.add(C),()=>{h.delete(C)})},s.skipHydration||x(),S||E},$2e=N2e,F2e=248,MG=200,U2e=420,IPe=MG-40,B2e="dEssence:libraryIslandCollapsed",j2e=()=>{try{return window.localStorage.getItem(B2e)==="1"}catch{return!1}},a$={showSimilarityScores:!1,sidebarCollapsed:!1,sidebarWidth:F2e,mobileDrawerOpen:!1,chatViewTab:"chat",chatTabHasNotification:!1,libraryIslandCollapsed:!1,libraryIslandAutoCollapsed:!1,libraryIslandStateUserId:null,usefulLinksCollapsed:!1},H2e=()=>{const t=window.localStorage;if(!t||typeof t.getItem!="function"||typeof t.setItem!="function"||typeof t.removeItem!="function")throw new Error("localStorage is unavailable");return t},JC=LG()($2e(t=>({...a$,libraryIslandCollapsed:j2e(),setShowSimilarityScores:e=>t({showSimilarityScores:e}),toggleSidebar:()=>t(e=>({sidebarCollapsed:!e.sidebarCollapsed})),setSidebarCollapsed:e=>t({sidebarCollapsed:e}),setSidebarWidth:e=>t({sidebarWidth:Math.max(MG,Math.min(U2e,Math.round(e)))}),openMobileDrawer:()=>t({mobileDrawerOpen:!0}),closeMobileDrawer:()=>t({mobileDrawerOpen:!1}),setChatViewTab:e=>t({chatViewTab:e}),setChatTabNotification:e=>t({chatTabHasNotification:e}),setLibraryIslandCollapsed:e=>t({libraryIslandCollapsed:e}),autoCollapseLibraryIsland:()=>t(e=>e.libraryIslandAutoCollapsed?e:{libraryIslandCollapsed:!0,libraryIslandAutoCollapsed:!0}),claimLibraryIslandOwner:e=>t(n=>
203{if(n.libraryIslandStateUserId===e)return n;const r=n.libraryIslandStateUserId!==null;return{libraryIslandStateUserId:e,libraryIslandCollapsed:r?!1:n.libraryIslandCollapsed,libraryIslandAutoCollapsed:r?!1:n.libraryIslandAutoCollapsed}}),setUsefulLinksCollapsed:e=>t({usefulLinksCollapsed:e}),resetSettings:()=>t(a$)}),{name:"dessence-settings",storage:kG(H2e),partialize:t=>({showSimilarityScores:t.showSimilarityScores,sidebarCollapsed:t.sidebarCollapsed,sidebarWidth:t.sidebarWidth,libraryIslandCollapsed:t.libraryIslandCollapsed,libraryIslandAutoCollapsed:t.libraryIslandAutoCollapsed,libraryIslandStateUserId:t.libraryIslandStateUserId,usefulLinksCollapsed:t.usefulLinksCollapsed})}));gx("settings",()=>JC.getState().resetSettings());const gL="preferred-theme",z2e=(t,e=!1)=>{try{localStorage.removeItem(es.USER_ID),localStorage.removeItem(es.SELECTED_PROFILE_ID),e&&localStorage.removeItem(gL);const n=[];for(let r=0;r<localStorage.length;r++){const i=localStorage.key(r);i&&(i.startsWith(A_)||i==="dessence-settings")&&n.push(i)}n.forEach(r=>localStorage.removeItem(r))}catch(n){console.error("Error clearing localStorage:",n)}},V2e=async()=>{},l$=async(t,e=!1)=>{z2e(t,e),await V2e()},aT=()=>{const t=Ix(),e=zt(Abe),n=zt(to),r=zt(Obe),i=zt(Ibe),s=zt(Pbe),a=zt(Lbe),c=zt(kbe),u=zt(Mbe),h=zt(Dbe),p=zt(Nbe),v=zt(no),y=zt($be),E=zt(Fbe),S=zt(Ube),x=zt(Bbe),C=zt(jbe),R=_.useCallback(()=>t(n2()),[t]),A=_.useCallback(K=>t(Zw(K)),[t]),O=_.useCallback(K=>t(Jw(K)),[t]),P=_.useCallback(K=>t(e2(K)),[t]),L=_.useCallback(K=>t(t2(K)),[t]),D=_.useCallback(K=>t(r2(K)),[t]),N=_.useCallback((K,J)=>t(Fm({userId:K,updates:J})),[t]),k=_.useCallback(K=>t(i2(K)),[t]),U=_.useCallback(()=>{const K=n??void 0;Xs.logout().catch(()=>{}),i$().catch(()=>{}),t(Zoe()),JC.getState().resetSettings(),TC.purge(),l$(K,!1)},[t,n]),F=_.useCallback(K=>t(u2(K)),[t]),V=_.useCallback(K=>t(sz(K)),[t]),G=_.useCallback(()=>{i$().catch(()=>{}),t(oz()),JC.getState().resetSettings(),TC.purge(),l$(n??void 0,!1)},[t,n]),Z=_.useCallback(()=>t(c2()),[t]);return{user:e,userId:n,email:r,displayName:i,avatarUrl:s,loading:a,error:c,isInitialized:u,isActive:h,profiles:p,profilesLoading:E,areProfilesInitialized:S,selectedProfileId:v,selectedProfile:y,accounts:x,accountsLoading:C,validateSession:R,login:A,consumeEmailLink:O,register:P,loginWithFirebase:L,fetchUser:D,updateUser:N,deleteUser:k,logout:U,switchAccount:F,logoutAccount:V,logoutAllAccounts:G,fetchAccounts:Z,fetchProfiles:_.useCallback(K=>t(s2(K)),[t]),createProfile:_.useCallback(({userId:K,name:J})=>t(o2({userId:K,name:J})).unwrap(),[t]),updateProfile:_.useCallback(({userId:K,profileId:J,name:H})=>t(a2({userId:K,profileId:J,name:H})).unwrap(),[t]),deleteProfile:_.useCallback(({userId:K,profileId:J})=>t(l2({userId:K,profileId:J})).unwrap(),[t]),selectProfile:_.useCallback(K=>t(Joe(K)),[t])}},DG=()=>{const t=aT(),{isInitialized:e,validateSession:n}=t,r=_.useRef(!1);return _.useEffect(()=>{if(e){r.current=!1;return}r.current||(r.current=!0,n())},[e,n]),t},Ks=(t,e)=>t.get(e)?.trim()||void 0,c$=(t,e)=>t&&e.includes(t)?t:void 0,mL=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,Iu=(t,e)=>{const n=Ks(t,e);return n===void 0||mL.test(n)?n:null},NG=t=>{try{const e=decodeURIComponent(t);return mL.test(e)?e:null}catch{return null}},u$=(t,e)=>{const n=t.split("/").filter(Boolean),r=n[0]==="library"&&n[1]&&n[1]!=="chat"?n[1]:void 0,i=r?NG(r):void 0,s=Iu(e,"profile"),a=Iu(e,"item"),c=Iu(e,"message"),u=Iu(e,"block");return i===null||s===null||a===null||c===null||u===null?null:{kind:"library",context_id:i,profile_id:s,item_id:a,message_id:c,block_id:u,view:c$(Ks(e,"view"),["chat","library"])??(t==="/library/chat"?"chat":void 0),billing:c$(Ks(e,"billing"),["success","cancelled","upgrade"])}},q2e=t=>{const e=Iu(t,"job"),n=Iu(t,"run");return e===null||n===null?null:{kind:"jobs",job_id:e,run_id:n}},W2e=t=>{const e=Iu(t,"item"),n=Iu(t,"run"),r=Iu(t,"job");return e===null||n===null||r===null?null:{kind:"inbox",item_id:e,run_id:n,job_id:r,view:Ks(t,"view"),from:Ks(t,"from"),to:Ks(t,"to"),source:Ks(t,"source")}},G2e=t=>{const e=Ks(t,"client_id"),n=Ks(t,"code_challenge"),r=Ks(t,"redirect_uri"),i=Ks(t,"state");return!e||!n||!r||!i?null:{kind:"authorize",client_id:e,code_challenge:n,code_challenge_method:"S256",redirect_uri:r,state:i}},K2e=t=>{const e="https://dessence.local";let n;try{n=typeof t=="string"?new URL(t,e):new URL(`${t.pathname}${t.search}`,e)}catch{return null}if(n.origin!==e)return null;const{pathname:r,searchParams:i}=n;if(r==="/logout")return null;if(r==="/chat")return u$("/library",i);if(r==="/library"||r==="/library/chat"||r.startsWith("/library/"))return u$(r,i);const s=r.match(/^\/(?:projects|searches)\/([^/]+)$/);if(s){const a=NG(s[1]);return a?{kind:"library",context_id:a}:null}if(r==="/boards"||r==="/contexts")return{kind:"boards"};if(r==="/chats"||r==="/searches")return{kind:"chats"};if(r==="/memory"||r==="/profile")return{kind:"memory"};if(r==="/jobs")return q2e(i);if(r==="/inbox")return W2e(i);if(r==="/integrations")return{kind:"integrations",google:Ks(i,"google"),detail:Ks(i,"detail")};if(r==="/how-it-works")return{kind:"how_it_works",from:Ks(i,"from")};if(r==="/account-connect")return{kind:"account_connection"};if(r==="/ways-to-use")return{kind:"ways_to_use"};if(r==="/authorize")return G2e(i);if(r==="/share-target"){const a=Ks(i,"id");return a?{kind:"share_target",id:a}:null}return null},$r=(t,e,n)=>{n&&t.set(e,n)},ex=t=>{const e=new URLSearchParams;let n;switch(t.kind){case"library":n=t.context_id?`/library/${encodeURIComponent(t.context_id)}`:t.view==="chat"?"/library/chat":"/library",$r(e,"item",t.item_id),$r(e,"message",t.message_id),$r(e,"block",t.block_id),t.view&&t.view!=="chat"&&$r(e,"view",t.view
203),$r(e,"billing",t.billing);break;case"jobs":n="/jobs",$r(e,"job",t.job_id),$r(e,"run",t.run_id);break;case"inbox":n="/inbox",$r(e,"item",t.item_id),$r(e,"run",t.run_id),$r(e,"job",t.job_id),$r(e,"view",t.view),$r(e,"from",t.from),$r(e,"to",t.to),$r(e,"source",t.source);break;case"boards":n="/boards";break;case"chats":n="/chats";break;case"memory":n="/memory";break;case"integrations":n="/integrations",$r(e,"google",t.google),$r(e,"detail",t.detail);break;case"how_it_works":n="/how-it-works",$r(e,"from",t.from);break;case"account_connection":n="/account-connect";break;case"ways_to_use":n="/ways-to-use";break;case"authorize":n="/authorize",$r(e,"client_id",t.client_id),$r(e,"code_challenge",t.code_challenge),$r(e,"code_challenge_method",t.code_challenge_method??"S256"),$r(e,"redirect_uri",t.redirect_uri),$r(e,"state",t.state);break;case"share_target":n="/share-target",$r(e,"id",t.id);break}const r=e.toString();return r?`${n}?${r}`:n},Y2e=t=>t.kind==="authorize"?{resume:"allowed",layout:"fullscreen",admission:"account"}:t.kind==="share_target"?{resume:"allowed",layout:"fullscreen",admission:"browser-local"}:{resume:"allowed",layout:"main",admission:t.kind==="library"&&!!(t.profile_id||t.context_id||t.item_id||t.message_id||t.block_id)||t.kind==="jobs"&&!!(t.job_id||t.run_id)||t.kind==="inbox"&&!!(t.item_id||t.run_id||t.job_id)?"owned-resource":"account"},X2e=()=>({kind:"library",view:"chat"}),Q2e=t=>{if(!t||typeof t!="object"||!("kind"in t))return!1;const e=t,n=i=>e[i]===void 0||e[i]===null||typeof e[i]=="string",r=i=>n(i)&&(!e[i]||mL.test(e[i]));switch(e.kind){case"library":return["profile_id","context_id","item_id","message_id","block_id"].every(r)&&[void 0,null,"chat","library"].includes(e.view)&&[void 0,null,"success","cancelled","upgrade"].includes(e.billing);case"jobs":return r("job_id")&&r("run_id");case"inbox":return["item_id","run_id","job_id"].every(r)&&["view","from","to","source"].every(n);case"authorize":return["client_id","code_challenge","redirect_uri","state"].every(i=>typeof e[i]=="string"&&!!e[i])&&[void 0,"S256"].includes(e.code_challenge_method);case"share_target":return typeof e.id=="string"&&!!e.id;case"integrations":return n("google")&&n("detail");case"how_it_works":return n("from");case"boards":case"chats":case"memory":case"ways_to_use":case"account_connection":return!0;default:return!1}},Z2e=_.createContext(null),J2e=t=>{const e=Cr.c(3),{destination:n,children:r}=t;let i;return e[0]!==r||e[1]!==n?(i=W.jsx(Z2e.Provider,{value:n,children:r}),e[0]=r,e[1]=n,e[2]=i):i=e[2],i};var $G={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},d$=Te.createContext&&Te.createContext($G),eCe=["attr","size","title"];function tCe(t,e){if(t==null)return{};var n,r,i=nCe(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function nCe(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function tx(){return tx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},tx.apply(null,arguments)}function f$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function nx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?f$(Object(n),!0).forEach(function(r){rCe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f$(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rCe(t,e,n){return(e=iCe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function iCe(t){var e=sCe(t,"string");return typeof e=="symbol"?e:e+""}function sCe(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function FG(t){return t&&t.map((e,n)=>Te.createElement(e.tag,nx({key:n},e.attr),FG(e.child)))}function Xe(t){return e=>Te.createElement(oCe,tx({attr:nx({},t.attr)},e),FG(t.child))}function oCe(t){var e=n=>{var{attr:r,size:i,title:s}=t,a=tCe(t,eCe),c=i||n.size||"1em",u;return n.className&&(u=n.className),t.className&&(u=(u?u+" ":"")+t.className),Te.createElement("svg",tx({stroke:"currentColor",fill:"
203currentColor",strokeWidth:"0"},n.attr,r,a,{className:u,style:nx(nx({color:t.color||n.color},n.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),s&&Te.createElement("title",null,s),t.children)};return d$!==void 0?Te.createElement(d$.Consumer,null,n=>e(n)):e($G)}function PPe(t){return Xe({attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"},child:[]}]})(t)}function LPe(t){return Xe({attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M16.5 4.478v.227a48.816 48.816 0 0 1 3.878.512.75.75 0 1 1-.256 1.478l-.209-.035-1.005 13.07a3 3 0 0 1-2.991 2.77H8.084a3 3 0 0 1-2.991-2.77L4.087 6.66l-.209.035a.75.75 0 0 1-.256-1.478A48.567 48.567 0 0 1 7.5 4.705v-.227c0-1.564 1.213-2.9 2.816-2.951a52.662 52.662 0 0 1 3.369 0c1.603.051 2.815 1.387 2.815 2.951Zm-6.136-1.452a51.196 51.196 0 0 1 3.273 0C14.39 3.05 15 3.684 15 4.478v.113a49.488 49.488 0 0 0-6 0v-.113c0-.794.609-1.428 1.364-1.452Zm-.355 5.945a.75.75 0 1 0-1.5.058l.347 9a.75.75 0 1 0 1.499-.058l-.346-9Zm5.48.058a.75.75 0 1 0-1.498-.058l-.347 9a.75.75 0 0 0 1.5.058l.345-9Z",clipRule:"evenodd"},child:[]}]})(t)}function kPe(t){return Xe({attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12 3.75a.75.75 0 0 1 .75.75v6.75h6.75a.75.75 0 0 1 0 1.5h-6.75v6.75a.75.75 0 0 1-1.5 0v-6.75H4.5a.75.75 0 0 1 0-1.5h6.75V4.5a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"},child:[]}]})(t)}function MPe(t){return Xe({attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M7.493 18.5c-.425 0-.82-.236-.975-.632A7.48 7.48 0 0 1 6 15.125c0-1.75.599-3.358 1.602-4.634.151-.192.373-.309.6-.397.473-.183.89-.514 1.212-.924a9.042 9.042 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75A.75.75 0 0 1 15 2a2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H14.23c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23h-.777ZM2.331 10.727a11.969 11.969 0 0 0-.831 4.398 12 12 0 0 0 .52 3.507C2.28 19.482 3.105 20 3.994 20H4.9c.445 0 .72-.498.523-.898a8.963 8.963 0 0 1-.924-3.977c0-1.708.476-3.305 1.302-4.666.245-.403-.028-.959-.5-.959H4.25c-.832 0-1.612.453-1.918 1.227Z"},child:[]}]})(t)}function DPe(t){return Xe({attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M15.73 5.5h1.035A7.465 7.465 0 0 1 18 9.625a7.465 7.465 0 0 1-1.235 4.125h-.148c-.806 0-1.534.446-2.031 1.08a9.04 9.04 0 0 1-2.861 2.4c-.723.384-1.35.956-1.653 1.715a4.499 4.499 0 0 0-.322 1.672v.633A.75.75 0 0 1 9 22a2.25 2.25 0 0 1-2.25-2.25c0-1.152.26-2.243.723-3.218.266-.558-.107-1.282-.725-1.282H3.622c-1.026 0-1.945-.694-2.054-1.715A12.137 12.137 0 0 1 1.5 12.25c0-2.848.992-5.464 2.649-7.521C4.537 4.247 5.136 4 5.754 4H9.77a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23ZM21.669 14.023c.536-1.362.831-2.845.831-4.398 0-1.22-.182-2.398-.52-3.507-.26-.85-1.084-1.368-1.973-1.368H19.1c-.445 0-.72.498-.523.898.591 1.2.924 2.55.924 3.977a8.958 8.958 0 0 1-1.302 4.666c-.245.403.028.959.5.959h1.053c.832 0 1.612-.453 1.918-1.227Z"},child:[]}]})(t)}function NPe(t){return Xe({attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.502 6h7.128A3.375 3.375 0 0 1 18 9.375v9.375a3 3 0 0 0 3-3V6.108c0-1.505-1.125-2.811-2.664-2.94a48.972 48.972 0 0 0-.673-.05A3 3 0 0 0 15 1.5h-1.5a3 3 0 0 0-2.663 1.618c-.225.015-.45.032-.673.05C8.662 3.295 7.554 4.542 7.502 6ZM13.5 3A1.5 1.5 0 0 0 12 4.5h4.5A1.5 1.5 0 0 0 15 3h-1.5Z",clipRule:"evenodd"},child:[]},{tag:"path",attr:{fillRule:"evenodd",d:"M3 9.375C3 8.339 3.84 7.5 4.875 7.5h9.75c1.036 0 1.875.84 1.875 1.875v11.25c0 1.035-.84 1.875-1.875 1.875h-9.75A1.875 1.875 0 0 1 3 20.625V9.375ZM6 12a.75.75 0 0 1 .75-.75h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V12Zm2.25 0a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75ZM6 15a.75.75 0 0 1 .75-.75h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V15Zm2.25 0a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75ZM6 18a.75.75 0 0 1 .75-.75h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75H6.75a.75.75 0 0 1-.75-.75V18Zm2.25 0a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"},child:[]}]})(t)}
203function $Pe(t){return Xe({attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",clipRule:"evenodd"},child:[]}]})(t)}function FPe(t){return Xe({attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6.32 2.577a49.255 49.255 0 0 1 11.36 0c1.497.174 2.57 1.46 2.57 2.93V21a.75.75 0 0 1-1.085.67L12 18.089l-7.165 3.583A.75.75 0 0 1 3.75 21V5.507c0-1.47 1.073-2.756 2.57-2.93Z",clipRule:"evenodd"},child:[]}]})(t)}function UPe(t){return Xe({attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M11.25 4.533A9.707 9.707 0 0 0 6 3a9.735 9.735 0 0 0-3.25.555.75.75 0 0 0-.5.707v14.25a.75.75 0 0 0 1 .707A8.237 8.237 0 0 1 6 18.75c1.995 0 3.823.707 5.25 1.886V4.533ZM12.75 20.636A8.214 8.214 0 0 1 18 18.75c.966 0 1.89.166 2.75.47a.75.75 0 0 0 1-.708V4.262a.75.75 0 0 0-.5-.707A9.735 9.735 0 0 0 18 3a9.707 9.707 0 0 0-5.25 1.533v16.103Z"},child:[]}]})(t)}function BPe(t){return Xe({attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M5.85 3.5a.75.75 0 0 0-1.117-1 9.719 9.719 0 0 0-2.348 4.876.75.75 0 0 0 1.479.248A8.219 8.219 0 0 1 5.85 3.5ZM19.267 2.5a.75.75 0 1 0-1.118 1 8.22 8.22 0 0 1 1.987 4.124.75.75 0 0 0 1.48-.248A9.72 9.72 0 0 0 19.266 2.5Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",d:"M12 2.25A6.75 6.75 0 0 0 5.25 9v.75a8.217 8.217 0 0 1-2.119 5.52.75.75 0 0 0 .298 1.206c1.544.57 3.16.99 4.831 1.243a3.75 3.75 0 1 0 7.48 0 24.583 24.583 0 0 0 4.83-1.244.75.75 0 0 0 .298-1.205 8.217 8.217 0 0 1-2.118-5.52V9A6.75 6.75 0 0 0 12 2.25ZM9.75 18c0-.034 0-.067.002-.1a25.05 25.05 0 0 0 4.496 0l.002.1a2.25 2.25 0 1 1-4.5 0Z",clipRule:"evenodd"},child:[]}]})(t)}function jPe(t){return Xe({attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.03 3.97a.75.75 0 0 1 0 1.06l-6.22 6.22H21a.75.75 0 0 1 0 1.5H4.81l6.22 6.22a.75.75 0 1 1-1.06 1.06l-7.5-7.5a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"},child:[]}]})(t)}function HPe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"},child:[]}]})(t)}function zPe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"},child:[]}]})(t)}function VPe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"},child:[]}]})(t)}function qPe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.
203621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5"},child:[]}]})(t)}function WPe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 16.875h3.375m0 0h3.375m-3.375 0V13.5m0 3.375v3.375M6 10.5h2.25a2.25 2.25 0 0 0 2.25-2.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v2.25A2.25 2.25 0 0 0 6 10.5Zm0 9.75h2.25A2.25 2.25 0 0 0 10.5 18v-2.25a2.25 2.25 0 0 0-2.25-2.25H6a2.25 2.25 0 0 0-2.25 2.25V18A2.25 2.25 0 0 0 6 20.25Zm9.75-9.75H18a2.25 2.25 0 0 0 2.25-2.25V6A2.25 2.25 0 0 0 18 3.75h-2.25A2.25 2.25 0 0 0 13.5 6v2.25a2.25 2.25 0 0 0 2.25 2.25Z"},child:[]}]})(t)}function GPe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"},child:[]}]})(t)}function KPe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"},child:[]}]})(t)}function YPe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 10.5V6a3.75 3.75 0 1 0-7.5 0v4.5m11.356-1.993 1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 0 1-1.12-1.243l1.264-12A1.125 1.125 0 0 1 5.513 7.5h12.974c.576 0 1.059.435 1.119 1.007ZM8.625 10.5a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm7.5 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"},child:[]}]})(t)}function XPe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.217 10.9
20307a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z"},child:[]}]})(t)}function QPe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6.878V6a2.25 2.25 0 0 1 2.25-2.25h7.5A2.25 2.25 0 0 1 18 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 0 0 4.5 9v.878m13.5-3A2.25 2.25 0 0 1 19.5 9v.878m0 0a2.246 2.246 0 0 0-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0 1 21 12v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6c0-.98.626-1.813 1.5-2.122"},child:[]}]})(t)}function ZPe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"},child:[]}]})(t)}function JPe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"},child:[]}]})(t)}function eLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"},child:[]}]})(t)}function tLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"},child:[]}]})(t)}function nLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"},child:[]}]})(t)}function rLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9v6m-4.5 0V9M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},child:[]}]})(t)}function iLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"},child:[]}]})(t)}function sLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"},child:[]}]})(t)}function oLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 0 1-2.25 2.25M16.5 7.5V18a2.25 2.25 0 0 0 2.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 0 0 2.25 2.25h13.5M6 7.5h3v3H6v-3Z"},child:[]}]})(t)}function aLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},child:[]}]})(t)}function lLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18.75a6 6 0 0 0 6-6v-1.5m-6 7.5a6 6 0 0 1-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 0 1-3-3V4.5a3 3 0 1 1 6 0v8.25a3 3 0 0 1-3 3Z"},child:[]}]})(t)}function cLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"},child:[]}]})(t)}function uLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"},child:[]}]})(t)}function dLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 13.5h3.86a2.25 2.25 0 0 1 2.012 1.244l.256.512a2.25 2.25 0 0 0 2.013 1.244h3.218a2.25 2.25 0 0 0 2.013-1.244l.256-.512a2.25 2.25 0 0 1 2.013-1.244h3.859m-19.5.338V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18v-4.162c0-.224-.034-.447-.1-.661L19.24 5.338a2.25 2.25 0 0 0-2.15-1.588H6.911a2.25 2.25 0 0 0-2.15 1.588L2.35 13.177a2.25 2.25 0 0 0-.1.661Z"},child:[]}]})(t)}function fLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.9
20308c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z"},child:[]}]})(t)}function hLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54"},child:[]}]})(t)}function pLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"},child:[]}]})(t)}function gLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"},child:[]}]})(t)}function UG(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"},child:[]}]})(t)}function mLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"},child:[]}]})(t)}function vLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 12.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5ZM12 18.75a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5Z"},child:[]}]})(t)}function yLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"},child:[]}]})(t)}function _Le(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"},child:[]}]})(t)}function bLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"},child:[]}]})(t)}function ELe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.7
2035"},child:[]}]})(t)}function SLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"},child:[]}]})(t)}function wLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"},child:[]}]})(t)}function CLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"},child:[]}]})(t)}function xLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.666 3.888A2.25 2.25 0 0 0 13.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 0 1-.75.75H9a.75.75 0 0 1-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 0 1-2.25 2.25H6.75A2.25 2.25 0 0 1 4.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 0 1 1.927-.184"},child:[]}]})(t)}function TLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"},child:[]}]})(t)}function RLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"},child:[]}]})(t)}function ALe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"},child:[]}]})(t)}function OLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"},child:[]}]})(t)}function ILe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"},child:[]}]})(t)}function PLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"},child:[]}]})(t)}function LLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 0 1-.825-.242m9.345-8.334a2.126 2.126 0 0 0-.476-.
203095 48.64 48.64 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155"},child:[]}]})(t)}function kLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 9.75a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 0 1 .778-.332 48.294 48.294 0 0 0 5.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"},child:[]}]})(t)}function MLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008ZM12 15h.008v.008H12V15Zm0 2.25h.008v.008H12v-.008ZM9.75 15h.008v.008H9.75V15Zm0 2.25h.008v.008H9.75v-.008ZM7.5 15h.008v.008H7.5V15Zm0 2.25h.008v.008H7.5v-.008Zm6.75-4.5h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V15Zm0 2.25h.008v.008h-.008v-.008Zm2.25-4.5h.008v.008H16.5v-.008Zm0 2.25h.008v.008H16.5V15Z"},child:[]}]})(t)}function DLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"},child:[]}]})(t)}function NLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"},child:[]}]})(t)}function $Le(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"},child:[]}]})(t)}function FLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"},child:[]}]})(t)}function ULe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0M3.124 7.5A8.969 8.969 0 0 1 5.292 3m13.416 0a8.969 8.969 0 0 1 2.168 4.5"},child:[]}]})(t)}function BLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"},child:[]}]})(t)}function jLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 15 3 9m0 0 6-6M3 9h12a6 6 0 0 1 0 12h-3"},child:[]}]})(t)}function HLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"},child:[]}]})(t)}function zLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 8.25H7.5a2.25 2.25 0 0 0-2.25 2.25v9a2.25 2.25 0 0 0 2.25 2.25h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25H15m0-3-3-3m0 0-3 3m3-3V15"},child:[]}]})(t)}function VLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"},child:[]}]})(t)}function qLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"},child:[]}]})(t)}function WLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"},child:[]}]})(t)}function aCe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"},child:[]}]})(t)}function GLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"},child:[]}]})(t)}function KLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"},child:[]}]})(t)}function YLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"},child:[]}]})(t)}function XLe(t){return Xe({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5m8.25 3v6.75m0 0-3-3m3 3 3-3M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"},child:[]}]})(t)}function QLe(t){return Xe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",clipRule:"evenodd"},child:[]}]})(t)}function ZLe(t){return Xe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"},child:[]}]})(t)}function JLe(t){return Xe({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"},child:[]}]})(t)}const lCe="route-error-module__routeError__fCH1y",BG={routeError:lCe},k3=()=>{const t=Cr.c(17);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=["common"],t[0]=e):e=t[0];const{t:n}=xp(e),r=gb();let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=W.jsx(UG,{}),t[1]=i):i=t[1];let s;t[2]!==n?(s=n("common:destination.unavailableTitle"),t[2]=n,t[3]=s):s=t[3];let a;t[4]!==n?(a=n("common:destination.unavailableMessage"),t[4]=n,t[5]=a):a=t[5];let c;t[6]!==r?(c=()=>r(Zt.LIBRARY_CHAT,{replace:!0}),t[6]=r,t[7]=c):c=t[7];let u;
203t[8]!==n?(u=n("common:action.backToLibrary"),t[8]=n,t[9]=u):u=t[9];let h;t[10]!==c||t[11]!==u?(h=W.jsx(Sc,{type:"primary",onClick:c,children:u}),t[10]=c,t[11]=u,t[12]=h):h=t[12];let p;return t[13]!==s||t[14]!==a||t[15]!==h?(p=W.jsx("main",{className:BG.routeError,"aria-live":"polite",children:W.jsx(Ib,{status:"warning",icon:i,title:s,subTitle:a,extra:h})}),t[13]=s,t[14]=a,t[15]=h,t[16]=p):p=t[16],p},cCe={admit:async t=>{const{data:e}=await xe.post(`${ir.VITE_BASE_URL}/api/v2/deep-links/admit`,{destination:t},{baseURL:""});return e}},uCe=_.lazy(()=>ct(()=>import("./MainLayout-DhIfxfup.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38])).then(t=>({default:t.MainLayout}))),Pw=W.jsx(nT,{}),dCe=()=>{const t=Cr.c(29),{user:e,isInitialized:n,areProfilesInitialized:r,profiles:i,selectedProfileId:s,selectProfile:a}=DG(),c=Pi(),{pathname:u}=c;let h;t[0]!==c.pathname||t[1]!==c.search?(h=K2e({pathname:c.pathname,search:c.search}),t[0]=c.pathname,t[1]=c.search,t[2]=h):h=t[2];const p=h,v=p??X2e(),y=Y2e(v),E=bc({queryKey:["destination-admission",v],queryFn:()=>cCe.admit(v),enabled:!!(e&&p&&y.admission==="owned-resource"),retry:!1}),S=E.data?.profile_id??null;let x,C;t[3]!==S||t[4]!==r||t[5]!==i||t[6]!==a||t[7]!==s?(x=()=>{!S||!r||s===S||i.some(k=>k.profile_id===S)&&a(S)},C=[S,r,i,a,s],t[3]=S,t[4]=r,t[5]=i,t[6]=a,t[7]=s,t[8]=x,t[9]=C):(x=t[8],C=t[9]),_.useEffect(x,C);const R=u===Zt.SHARE_TARGET;if(!n)return R?null:Pw;if(!e){const k=new URLSearchParams({continue:ex(v)});return W.jsx(pl,{to:{pathname:Zt.LOGIN,search:k.toString()},replace:!0})}if(!p||E.isError){let k;return t[10]===Symbol.for("react.memo_cache_sentinel")?(k=W.jsx(k3,{}),t[10]=k):k=t[10],k}if(E.data){let k;t[11]!==E.data.destination?(k=ex(E.data.destination),t[11]=E.data.destination,t[12]=k):k=t[12];const U=k;if(U!==`${c.pathname}${c.search}`){let F;return t[13]!==U?(F=W.jsx(pl,{to:U,replace:!0}),t[13]=U,t[14]=F):F=t[14],F}}if(y.admission==="owned-resource"){const k=i.some(U=>U.profile_id===S);if(E.data&&r&&!k){let U;return t[15]===Symbol.for("react.memo_cache_sentinel")?(U=W.jsx(k3,{}),t[15]=U):U=t[15],U}if(E.isPending||!r||s!==S)return Pw}const A=E.data?.destination??p;let O;t[16]===Symbol.for("react.memo_cache_sentinel")?(O=W.jsx(pP,{}),t[16]=O):O=t[16];let P;t[17]!==A?(P=W.jsx(J2e,{destination:A,children:O}),t[17]=A,t[18]=P):P=t[18];const L=P;if(y.layout==="fullscreen"){let k;t[19]!==u?(k=[u],t[19]=u,t[20]=k):k=t[20];let U;return t[21]!==L||t[22]!==k?(U=W.jsx(_.Suspense,{fallback:Pw,children:W.jsx(w3,{resetKeys:k,children:L})}),t[21]=L,t[22]=k,t[23]=U):U=t[23],U}let D;t[24]!==u?(D=[u],t[24]=u,t[25]=D):D=t[25];let N;return t[26]!==L||t[27]!==D?(N=W.jsx(_.Suspense,{fallback:Pw,children:W.jsx(uCe,{children:W.jsx(w3,{resetKeys:D,children:L})})}),t[26]=L,t[27]=D,t[28]=N):N=t[28],N},fCe="timezone-change-prompt-module__banner__CtHc3",hCe="timezone-change-prompt-module__card__4-l-a",pCe="timezone-change-prompt-module__body__YlAQy",gCe="timezone-change-prompt-module__title__R3qkF",mCe="timezone-change-prompt-module__copy__dFNVz",vCe="timezone-change-prompt-module__timezone__CXVfg",yCe="timezone-change-prompt-module__actions__xmYBp",_Ce="timezone-change-prompt-module__primaryAction__hmlmb",bCe="timezone-change-prompt-module__secondaryAction__u0iWV",uu={banner:fCe,card:hCe,body:pCe,title:gCe,copy:mCe,timezone:vCe,actions:yCe,primaryAction:_Ce,secondaryAction:bCe},h$=t=>t?.trim()||null,ECe=(t,e,n)=>{const r=encodeURIComponent(e??"unset"),i=encodeURIComponent(n);return`${es.TIMEZONE_PROMPT_DISMISSED_PREFIX}:${t}:${r}:${i}`},SCe=({userId:t,accountTimezone:e,browserTimezone:n,isDismissed:r})=>{const i=t?.trim(),s=h$(e),a=h$(n);if(!i||!a||s===a)return null;const c=ECe(i,s,a);return r?.(c)?null:{accountTimezone:s,browserTimezone:a,dismissalKey:c}},jG=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},wCe=t=>localStorage.getItem(t)==="1",CCe=({userId:t,accountTimezone:e,disabled:n,onAccept:r})=>{const{t:i}=xp(["settings","common"]),{message:s}=JP.useApp(),[a,c]=_.useState(!1),[u,h]=_.useState(null),p=_.useMemo(()=>n?null:SCe({userId:t,accountTimezone:e,browserTimezone:jG(),isDismissed:wCe}),[e,n,t]);if(_.useEffect(()=>{h(null)}
203,[p?.dismissalKey]),!p||u===p.dismissalKey)return null;const v=async()=>{if(!a){c(!0);try{await r(p.browserTimezone),localStorage.removeItem(p.dismissalKey)}catch{s.error(i("settings:toast.timezoneUpdateFailed"))}finally{c(!1)}}},y=()=>{localStorage.setItem(p.dismissalKey,"1"),h(p.dismissalKey)};return W.jsx("div",{className:uu.banner,role:"region","aria-label":i("settings:timezone.regionLabel"),children:W.jsxs("div",{className:uu.card,children:[W.jsxs("div",{className:uu.body,children:[W.jsx("p",{className:uu.title,children:i("settings:timezone.title")}),W.jsx("p",{className:uu.copy,children:W.jsx(Rx,{t:i,i18nKey:"settings:timezone.copy",values:{timezone:p.browserTimezone},components:{zone:W.jsx("span",{className:uu.timezone})}})})]}),W.jsxs("div",{className:uu.actions,children:[W.jsx("button",{type:"button",className:uu.secondaryAction,onClick:y,disabled:a,children:i("common:action.notNow")}),W.jsx("button",{type:"button",className:uu.primaryAction,onClick:v,disabled:a,children:i("settings:timezone.use",{timezone:p.browserTimezone})})]})]})})},HG=_.createContext(null),lT=()=>{const t=_.useContext(HG);if(!t)throw new Error("useTrackingConsent must be used within a <TrackingConsentProvider>");return t},Av=()=>{const t=tV(),{status:e}=lT(),n=_.useRef(null),r=!!t;_.useEffect(()=>{if(!r){n.current=e;return}Zte(n.current,e)&&RM(),n.current=e},[e,r,t]);const i=_.useCallback((c,u)=>{t?.capture(c,a9(u,e))},[e,t]),s=_.useCallback((c,u)=>{Jte(c,u),A4(e)&&t?.identify(c,u)},[e,t]),a=_.useCallback(()=>{RM(),t?.reset()},[t]);return{trackEvent:i,identifyUser:s,resetUser:a,isInitialized:r}},m1={all:["library"],items:t=>[...m1.all,"items",t],context:(t,e=!1,n=null)=>[...m1.all,"context",t,{includeScores:e,assistantMessageId:n??"latest"}],selectionHistory:t=>[...m1.all,"selection-history",t]};function v1(t,e){const n=Date.parse(t.timestamp)-Date.parse(e.timestamp);if(n)return n;const r=i=>(i.match(/\.(\d+)(?:Z|[+-]\d{2}:\d{2})$/)?.[1]??"").slice(3).padEnd(6,"0");return r(t.timestamp).localeCompare(r(e.timestamp))||t.message_id.localeCompare(e.message_id)}const zG=(t,e,n)=>["chats","messages",n,t,e],Gm=new WeakMap;function xCe(t,e){const n=new Map((t.messages??[]).map(a=>[a.message_id,a])),r=t.messages?.[0],i=t.messages?.at(-1);for(const a of e.missing_ids)n.delete(a);for(const a of e.messages??[])(n.has(a.message_id)||(!t.older_cursor||!r||v1(a,r)>=0)&&(!t.newer_cursor||i&&v1(a,i)<=0))&&n.set(a.message_id,a);const s=[...n.values()].sort(v1);return{...t,messages:s,total_count:s.length,pending_work:e.pending_work??[]}}class TCe{constructor(e,n,r,i){this.client=e,this.userId=n,this.profileId=r,this.chatId=i,this.key=zG(n,r,i),this.errorKey=["conversation-sync-error",n,r,i]}client;userId;profileId;chatId;key;errorKey;queue=Promise.resolve();timer;syncFlight;again=!1;refreshVisible=!1;consumers=0;accessError;anchor;serial(e){const n=()=>
203{if(kr.isBlocked(this.accessError))throw this.accessError;return e().catch(i=>{throw this.accessError=i,i})},r=this.queue.then(n,n);return this.queue=r.catch(()=>{}),r}put(e){return this.client.setQueryData(this.key,e),this.client.setQueryData(this.errorKey,!1),e}snapshot(){return this.client.getQueryData(this.key)}async replace(e){return this.put(await hw.getChatMessages(this.userId,this.profileId,this.chatId,e?{around_message_id:e}:{}))}setAnchor(e){this.anchor=e}open(e){return this.anchor=e,this.serial(()=>this.replace(e))}older(){return this.serial(async()=>{const e=this.snapshot();if(!e?.older_cursor)return e;const n=await hw.getChatMessages(this.userId,this.profileId,this.chatId,{before:e.older_cursor}),r=[...new Map([...n.messages??[],...e.messages??[]].map(i=>[i.message_id,i])).values()].sort(v1);return this.put({...e,messages:r,total_count:r.length,older_cursor:n.older_cursor})})}request(e=!1){kr.isBlocked(this.accessError)||(this.refreshVisible||=e,this.again=!0,!this.timer&&(this.timer=setTimeout(()=>{this.timer=void 0,this.sync().catch(()=>this.client.setQueryData(this.errorKey,!0))},100)))}sync(){return this.syncFlight?(this.again=!0,this.syncFlight):(this.syncFlight=this.serial(async()=>{let e=this.snapshot();if(!e||e.revision===void 0)return e;do{this.again=!1;const n=await hw.changes(this.profileId,this.chatId,e.revision??0);if(n.resync_required){e=await this.replace(this.anchor??e.messages?.[0]?.message_id);continue}const r=new Set(n.changes.flatMap(c=>c.message_id?[c.message_id]:[]));if(this.refreshVisible){const c=e.messages??[],u=this.anchor?c.findIndex(h=>h.message_id===this.anchor):c.length-1;for(const h of c.slice(Math.max(0,u-25),Math.max(50,u+25)))r.add(h.message_id)}for(const c of e.messages??[]){const u=c.metadata;u?.web_delivery_status==="pending"&&typeof u.web_delivery_expires_at=="string"&&Date.parse(u.web_delivery_expires_at)<=Date.now()&&r.add(c.message_id)}const i=n.changes.some(c=>c.kind==="state");if(i)for(const c of e.messages??[])r.add(c.message_id);const s=[...r];let a=e;for(let c=0;c<s.length||i&&c===0;c+=100)a=xCe(a,await hw.batch(this.profileId,this.chatId,s.slice(c,c+100)));this.refreshVisible=!1,e=this.put({...a,revision:n.next_revision}),n.changes.length&&this.client.invalidateQueries({queryKey:m1.selectionHistory(this.chatId)}),this.again||=n.has_more}while(this.again);return e}).finally(()=>{this.syncFlight=void 0}),this.syncFlight)}activate(){this.consumers+=1;let e=Gm.get(this.client);e||(e=new Map,Gm.set(this.client,e)),e.set(JSON.stringify(this.key),this)}dispose(){if(this.consumers=Math.max(0,this.consumers-1),this.consumers)return;const e=Gm.get(this.client);e?.get(JSON.stringify(this.key))===this&&e.delete(JSON.stringify(this.key)),this.timer&&clearTimeout(this.timer),this.timer=void 0}}function RCe(t,e,n,r){let i=Gm.get(t);i||(i=new Map,Gm.set(t,i));const s=JSON.stringify(zG(e,n,r));let a=i.get(s);return a||(a=new TCe(t,e,n,r),i.set(s,a)),a}function VG(t,e,n=!1){for(const r of Gm.get(t)?.values()??[]){if(e&&r.chatId!==e)continue;t.getQueryCache().find({queryKey:r.key,exact:!0})?.isActive()&&r.request(n)}}function eke(t,e,n){t.setQueriesData({queryKey:["chats","messages",e]},n)}const qG=t=>typeof t=="object"&&t!==null,WG=t=>qG(t)&&Array.isArray(t.contexts),ACe=t=>qG(t)&&typeof t.context_id=="string"&&"title"in t,OCe=(t,e,n)=>{if(!WG(t)||Array.isArray(n)&&n[3]===!0)return t;const r=t.contexts.filter(i=>i.context_id!==e);return r.length===t.contexts.length?t:{...t,contexts:r,count:r.length}},ICe=(t,e,n)=>{if(WG(t)){let r=!1;const i=t.contexts.map(s=>s.context_id!==e?s:(r=!0,{...s,title:n}));return r?{...t,contexts:i}:t}return ACe(t)&&t.context_id===e?{...t,title:n}:t},Hi={all:["contexts"],list:(t,e,n,r)=>[...Hi.all,"list",t,e,n,r],detail:(t,e,n)=>[...Hi.all,"detail",t,e,n],items:(t,e,n)=>[...Hi.all,"items",t,e,n],itemProjectOptions:(t,e)=>[...Hi.all,"item-project-options",t,e]},cT=t=>{t.invalidateQueries({queryKey:Hi.all})},PCe=t=>{t.invalidateQueries({queryKey:[...Hi.all,"list"]})},vL=(t,e,n,r)=>{t.invalidateQueries({queryKey:Hi.items(e,n,r)})},uT=(t=!1,e=!1)=>{const n=zt(to),r=zt(no);return bc({queryKey:Hi.list(n||"",r||"",t,e),queryFn:async()=>!n||!r?{contexts:[],count:0}:Cc.list(n,r,{include_archived:t,include_previews:e}),enabled:!!n&&!!r})},tke=t=>{const e=zt(to),n=zt(no);return bc({queryKey:Hi.detail(e||"",n||"",t||""),queryFn:async()=>
203{if(!e||!n||!t)throw new Error("Missing user/profile/library");return Cc.get(e,n,t)},enabled:!!e&&!!n&&!!t})},nke=t=>{const e=zt(to),n=zt(no);return bc({queryKey:Hi.items(e||"",n||"",t||""),queryFn:async()=>{if(!e||!n||!t)throw new Error("Missing user/profile/library");return Cc.getItems(e,n,t)},enabled:!!e&&!!n&&!!t})},rke=t=>{const{data:e}=uT();return t?!!e?.contexts.find(r=>r.context_id===t)?.is_library_chat:!1},LCe=t=>!!t&&t.mode==="board"&&!t.is_library_chat,ike=t=>{const{data:e}=uT();if(!t)return!1;const n=e?.contexts.find(r=>r.context_id===t);return n?!LCe(n):!1},ske=t=>{const{data:e}=uT();return t?!!e?.contexts.some(n=>n.context_id===t):!0},oke=()=>{const{data:t}=uT();return t?.contexts.find(e=>e.is_library_chat)?.context_id??null},ake=(t,{enabled:e})=>{const n=zt(to),r=zt(no);return bc({queryKey:Hi.itemProjectOptions(String(r||""),t),queryFn:()=>hu.getItemProjectOptions(String(n),String(r),t),enabled:e&&!!n&&!!r&&!!t,staleTime:30*1e3})},lke=()=>{const t=Js(),e=zt(to),n=zt(no);return _c({mutationFn:async()=>{if(!e||!n)throw new Error("Missing user/profile");return Cc.getOrCreateLibraryChat(e,n)},onSuccess:()=>{PCe(t)}})},cke=()=>{const t=Js(),e=zt(to),n=zt(no);return _c({mutationFn:async(r={})=>{if(!e||!n)throw new Error("Missing user/profile");return Cc.createBoard(e,n,r)},onSuccess:()=>{cT(t)}})},uke=()=>{const t=Js(),e=zt(to),n=zt(no);return _c({mutationFn:async({contextId:r,title:i,itemIds:s})=>{if(!e||!n)throw new Error("Missing user/profile");return Cc.promoteToBoard(e,n,r,{title:i??null,item_ids:s})},onSuccess:()=>{cT(t),t.invalidateQueries({queryKey:["chats"]})}})},dke=()=>{const t=Js(),e=zt(to),n=zt(no);return _c({mutationFn:async({contextId:r,itemIds:i})=>{if(!e||!n)throw new Error("Missing user/profile");return Cc.attachItems(e,n,r,{item_ids:i})},onMutate:async({contextId:r,optimisticItems:i})=>{if(!e||!n||!i?.length)return{};const s=Hi.items(e,n,r);await t.cancelQueries({queryKey:s});const a=t.getQueryData(s);if(!a)return{queryKey:s};const c=new Set([...a.items.map(h=>h.id),...a.unsure_items.map(h=>h.id)]),u=i.filter(h=>!c.has(h.id)).map(h=>({...h,bucket:"confirmed"}));return u.length===0?{previous:a,queryKey:s}:(t.setQueryData(s,{...a,items:[...a.items,...u],confirmed_count:a.confirmed_count+u.length}),{previous:a,queryKey:s})},onError:(r,i,s)=>{s?.previous&&s.queryKey&&t.setQueryData(s.queryKey,s.previous)},onSettled:(r,i,{contextId:s})=>{!e||!n||vL(t,e,n,s)}})},fke=()=>{const t=Js(),e=zt(to),n=zt(no);return _c({mutationFn:async({contextId:r,itemIds:i})=>{if(!e||!n)throw new Error("Missing user/profile");return Cc.detachItems(e,n,r,{item_ids:i})},onMutate:async({contextId:r,itemIds:i})=>{if(!e||!n||i.length===0)return{};const s=Hi.items(e,n,r);await t.cancelQueries({queryKey:s});const a=t.getQueryData(s);if(!a)return{queryKey:s};const c=new Set(i),u=a.items.filter(p=>!c.has(p.id)),h=a.unsure_items.filter(p=>!c.has(p.id));return t.setQueryData(s,{...a,items:u,unsure_items:h,confirmed_count:u.length,unsure_count:h.length}),{previous:a,queryKey:s}},onError:(r,i,s)=>{s?.previous&&s.queryKey&&t.setQueryData(s.queryKey,s.previous)},onSettled:(r,i,{contextId:s})=>{!e||!n||vL(t,e,n,s)}})},hke=()=>{const t=Js(),e=zt(to),n=zt(no);return _c({mutationFn:async({contextId:r,itemIds:i})=>{if(!e||!n)throw new Error("Missing user/profile");return Cc.confirmItems(e,n,r,{item_ids:i})},onMutate:async({contextId:r,itemIds:i})=>{if(!e||!n||i.length===0)return{};const s=Hi.items(e,n,r);await t.cancelQueries({queryKey:s});const a=t.getQueryData(s);if(!a)return{queryKey:s};const c=new Set(i),u=a.unsure_items.filter(p=>c.has(p.id)).map(p=>({...p,bucket:"confirmed"}));if(u.length===0)return{previous:a,queryKey:s};const h=a.unsure_items.filter(p=>!c.has(p.id));return t.setQueryData(s,{...a,items:[...a.items,...u],unsure_items:h,confirmed_count:a.items.length+u.length,unsure_count:h.length}),{previous:a,queryKey:s}},onError:(r,i,s)=>{s?.previous&&s.queryKey&&t.setQueryData(s.queryKey,s.previous)},onSettled:(r,i,{contextId:s})=>{!e||!n||vL(t,e,n,s)}})},pke=()=>{const t=Js(),e=zt(to),n=zt(no);return _c({mutationFn:async({contextId:r,body:i})=>{if(!e||!n)throw new Error("Missing user/profile");return Cc.update(e,n,r,i)},onMutate:async({contextId:r,body:i})=>{if(i.title===void 0)return{};await t.cancelQueries({queryKey:Hi.all});const s=t.getQueriesData({queryKey:Hi.all});return t.setQueriesData({queryKey:Hi.all},a=>ICe(a,r,i.title??null)),{previousContextQueries:s}},onError:(r,i,s)=>{s?.previousContextQueries?.forEach(([a,c])=>{t.setQueryData(a,c)})},onSuccess:(r,{contextId:i,body:s})=>{s.is_archived===!0&&t.getQueriesData({queryKey:Hi.all}
203).forEach(([a,c])=>{const u=OCe(c,i,a);u!==c&&t.setQueryData(a,u)}),cT(t)}})},GG={all:["user-usage"],user:t=>["user-usage",t]},gke=(t,{enabled:e=!0}={})=>bc({queryKey:GG.user(t),queryFn:()=>bl.getUsage(),enabled:!!t&&e,staleTime:0}),ul={all:["chats"],lists:()=>[...ul.all,"list"],list:(t,e,n)=>[...ul.lists(),t,e,n],recents:()=>[...ul.all,"recent"],recent:(t,e,n)=>[...ul.recents(),t,e,n],details:()=>[...ul.all,"detail"],detail:t=>[...ul.details(),t],messages:t=>[...ul.all,"messages",t]},kCe=t=>{t.invalidateQueries({queryKey:ul.lists()}),t.invalidateQueries({queryKey:ul.recents()}),cT(t)},mke=(t,e,n,r)=>{const i=t?.messages??[],s=n?[n,r]:[r],a=new Set(s.map(h=>h.message_id)),u=[...i.filter(h=>!a.has(h.message_id)),...s].sort(v1);return{...t,context_id:t?.context_id??e,messages:u,total_count:u.length,pending_work:t?.pending_work??[]}},vke=(t,e,n)=>t===void 0?void 0:{...t,pending_work:n},yke=(t,e)=>{const n=zt(to),r=zt(no),i=Js(),s=_.useMemo(()=>RCe(i,String(n||""),String(r||""),String(t||"")),[i,n,r,t]),[a,c]=_.useState(null),u=_.useRef(e),h=bc({queryKey:s.key,queryFn:()=>s.open(e??void 0),enabled:!!t&&!!n&&!!r,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnReconnect:!1}),p=bc({queryKey:s.errorKey,queryFn:Cx,initialData:!1}),v=_c({mutationFn:()=>s.older()}),y=_c({mutationFn:()=>s.open()});return _.useEffect(()=>{const E=!!(e&&h.isSuccess&&!s.snapshot()?.messages?.some(S=>S.message_id===e));(e!==u.current||E)&&(u.current=e,c(null),s.open(e??void 0).catch(c))},[s,e,h.isSuccess]),_.useEffect(()=>{if(!t||!n||!r)return;s.activate();const E=()=>{document.visibilityState==="visible"&&s.request(!0)};E();const S=window.setInterval(E,3e4);return document.addEventListener("visibilitychange",E),()=>{window.clearInterval(S),document.removeEventListener("visibilitychange",E),s.dispose()}},[s,t,n,r]),{...h,isError:h.isError||!!a,hasOlder:!!h.data?.older_cursor,hasNewer:!!h.data?.newer_cursor,loadOlder:v.mutateAsync,isLoadingOlder:v.isPending,olderError:v.isError,jumpToLatest:y.mutateAsync,historyError:p.data||y.isError,retryHistory:()=>s.request(!0),setHistoryAnchor:E=>{s.setAnchor(E)}}},_ke=()=>{const t=Ix(),e=Js(),n=zt(to),r=zt(no);return _c({mutationFn:async({chatId:i,idempotencyKey:s,message:a,images:c,files:u,libraryItemIds:h,metadata:p,engagedObjects:v,replyTo:y})=>{if(!n||!r)throw new Error("User and profile are required to send a message");const E={idempotencyKey:s,message:a,images:c,files:u,libraryItemIds:h,metadata:p,engagedObjects:v,replyTo:y},S=await GO.startChatTurn(n,r,i,E);return S.input_id&&S.source_input_order!=null&&t(K9({inputId:S.input_id,chatId:i,inputOrder:S.source_input_order,userMessageId:S.user_message_id??""})),S.turn_id&&t(Uie({turnId:S.turn_id,chatId:i,sourceInputOrder:S.source_input_order,userMessageId:S.user_message_id})),e.invalidateQueries({queryKey:["conversation-inputs",n,r,i]}),VG(e,i),S},onSuccess:()=>{kCe(e)},onSettled:(i,s,a)=>{e.invalidateQueries({queryKey:["conversation-inputs",n,r,a.chatId]}),e.invalidateQueries({queryKey:GG.all})}})},bke=t=>{const e=zt(to),n=zt(no),r=Ix(),i=Js(),s=bc({queryKey:["conversation-inputs",e,n,t],queryFn:()=>GO.listConversationInputs(e,n,t),enabled:!!e&&!!n&&!!t,refetchInterval:1e3,refetchIntervalInBackground:!1}),a=s.data?.[s.data.length-1],c=bc({queryKey:["conversation-input-turn",n,a?.turn_id],queryFn:()=>GO.getChatTurn(n,a.turn_id),enabled:!!n&&a?.status==="admitted"&&!!a.turn_id,refetchInterval:u=>!u.state.data||["queued","running"].includes(u.state.data.status)?1e3:!1,refetchIntervalInBackground:!1});return _.useEffect(()=>{!t||!a||(r(K9({inputId:a.id,chatId:t,inputOrder:a.input_order,userMessageId:a.user_message_id,rejected:a.status==="rejected",error:a.error?.code,dailyQuota:tz(a.error?.details)??void 0})),a.status==="admitted"&&c.data&&r(Fie({...c.data,source_input_order:a.input_order})),VG(i,t))},[t,a,c.data,r,i]),s},MCe=({userId:t,username:e,email:n,selectedProfileId:r,profileCount:i,disabled:s=!1})=>{const{identifyUser:a}=Av(),c=Js(),u=_.useRef(null);_.useEffect(()=>{s||!t||!r||a(t,{username:e,email:n,user_id:t,profile_id:r,profile_count:i,platform:"web"})},[s,t,e,n,r,i,a]),_.useEffect(()=>{if(s||!t||!r)return;u.current=null;const h=()=>{const y=c.getQueryData(ul.list(t,r,{includeArchived:!1}));if(y)return{data:y,hasCompleteList:!0};const S=c.getQueriesData({queryKey:[...ul.all,"recent",t,r]}).reduce((C,[,R])=>{if(!R)return C;if(!C)return R;const A=R.chats?.length??0,O=C.chats?.length??0;return A>O||A===O&&R.total_count>C.total_count?R:C},void 0);if(!S)return;const x=S.chats?.length??0;return{data:S,hasCompleteList:x>=S.total_count}},p=()=>{const y=h(),E=y?.data,S=c.getQueryData(m1.items(r));if(!E&&!S)return;const x=E?.chats??[],C=E?.total_count,R=y?.hasCompleteList?x.reduce((L,D)=>L+(D.message_count??0),0):void 0,A=S?.pages?.[0]?.total_count,O=`${C??""}|${R??""}|${A??""}`;if(O===u.current)return;u.current=O;const P={};C!==void 0&&(P.chat_numbers=C),R!==void 0&&(P.number_messages_in_the_chats=R),A!==void 0&&(P.saved_items_in_library=A),Object.keys(P).length>0&&a(t,P)};p();const v=c.getQueryCache().subscribe(y=>{if(y.type!=="updated")return;const[E]=y.query.queryKey;(E==="chats"||E==="library")&&p()});return()=>
203{v()}},[s,t,r,a,c])},KG="2026-06-19T12:00:00.000Z",dT="mock-user-001",DCe={user_id:dT,email:"[email protected]",username:"Alex Chen",display_name:"Alex Chen",avatar_url:void 0,is_new_user:!1,auth_provider:"email",timezone:"America/Los_Angeles",locale:"en",created_at:"2025-09-15T10:00:00.000Z",updated_at:KG,is_active:!0,email_verified:!0,welcome_seen_at:"2025-09-15T10:01:00.000Z",tutorial_completed_at:"2025-09-15T10:05:00.000Z",dismissed_hint_keys:[],telegram_accounts:[]},NCe="mock-profile-001",rx=[{profile_id:NCe,user_id:dT,name:"Alex Chen",created_at:"2025-09-15T10:00:00.000Z",updated_at:KG,is_active:!0}],Eke={profiles:rx,total_count:rx.length},Ske={user:{user_id:dT,email:"[email protected]",username:"Alex Chen",display_name:"Alex Chen",email_verified:!0,auth_provider:"email"},is_new_user:!1,auth_provider:"email",destination:{kind:"library"}},wke={accounts:[{user_id:dT,email:"[email protected]",username:"Alex Chen",avatar_url:void 0,is_current:!0,email_verified:!0,auth_provider:"email"}]},$Ce=()=>{const t=new Date;return t.setUTCHours(24,0,0,0),t.toISOString()},Cke={plan_tier:"free",chat_messages:{used:3,limit:20},library_items:{used:1,limit:20},price_watches:{used:3,limit:100},price_watch_check_interval_hours:24,resets_at:$Ce()},FCe=()=>{const t=Ix(),{user:e,isInitialized:n,areProfilesInitialized:r,fetchProfiles:i,fetchAccounts:s,selectProfile:a,profiles:c,selectedProfileId:u}=aT(),h=Js(),p=_.useRef(null),v=_.useRef(null),{trackEvent:y}=Av(),E=ir.VITE_ENABLE_MOCK==="true",S=globalThis.__DESSENCE_E2E_SESSION__;MCe({userId:e?.user_id,username:e?.username??e?.display_name??void 0,email:e?.email??void 0,selectedProfileId:u,profileCount:c.length,disabled:E||!!S||!n||!r}),_.useEffect(()=>{if(S&&!n){t(FD(S));return}if(E&&!n){t(FD({user:DCe,profiles:rx,selectedProfileId:rx[0]?.profile_id??null}));return}},[t,S,E,n]),_.useEffect(()=>{n&&e?.user_id&&!r&&(i(e.user_id),s())},[n,e?.user_id,r,i,s]),_.useEffect(()=>{if(!E&&r&&!Nm.isEmpty(c)){const A=localStorage.getItem(es.SELECTED_PROFILE_ID);A&&c.some(O=>O.profile_id===A)&&a(A)}},[r,E,c,a]),_.useEffect(()=>{u&&p.current&&u!==p.current&&(h.clear(),j9()),p.current=u},[u,h]);const x=_.useCallback(A=>e?.user_id?t(Fm({userId:e.user_id,updates:{timezone:A}})).unwrap():Promise.resolve(),[t,e?.user_id]);_.useEffect(()=>{if(E||S||!n||!e?.user_id||e.timezone||v.current===e.user_id)return;const A=jG();if(!A)return;const O=e.user_id;v.current=O,t(Fm({userId:O,updates:{timezone:A}})).unwrap().catch(()=>{v.current===O&&(v.current=null)})},[t,S,E,n,e?.user_id,e?.timezone]);const C=(()=>{if(typeof window>"u"||!e?.user_id)return!0;const A=`dEssence:sessionCount:${e.user_id}`;return parseInt(localStorage.getItem(A)??"0",10)<2})();_.useEffect(()=>{if(!e?.user_id||typeof window>"u")return;const A=`dEssence:sessionCount:${e.user_id}`,O=parseInt(localStorage.getItem(A)??"0",10);(O===0||!sessionStorage.getItem(A))&&(localStorage.setItem(A,String(O+1)),sessionStorage.setItem(A,"1"))},[e?.user_id]);const R=E||!!S||!1||C;return _.useEffect(()=>{},[y]),_.useEffect(()=>{},[e?.user_id,u]),W.jsx(CCe,{userId:e?.user_id,accountTimezone:e?.timezone,disabled:R,onAccept:x})},YG=LG((t,e)=>({isDragging:!1,activeTypes:[],beginDrag:n=>t({isDragging:!0,activeTypes:Array.from(n)}),endDrag:()=>{e().isDragging&&t({isDragging:!1,activeTypes:[]})}}));gx("drag",()=>YG.setState({isDragging:!1,activeTypes:[]}));
203const UCe=()=>{_.useEffect(()=>{const{beginDrag:t,endDrag:e}=YG.getState(),n=s=>{s.dataTransfer&&t(s.dataTransfer.types)},r=()=>e(),i=s=>{s.relatedTarget===null&&e()};return window.addEventListener("dragstart",n),window.addEventListener("dragend",r,!0),window.addEventListener("drop",r,!0),document.addEventListener("dragleave",i),()=>{window.removeEventListener("dragstart",n),window.removeEventListener("dragend",r,!0),window.removeEventListener("drop",r,!0),document.removeEventListener("dragleave",i)}},[])},BCe=()=>{const t=Pi(),{trackEvent:e,isInitialized:n}=Av();_.useEffect(()=>{n&&e(rv.PAGE_VIEWED,{path:t.pathname,search:t.search,hash:t.hash})},[t.pathname,t.search,t.hash,e,n])},fT=_.createContext(null),jCe=()=>{const t=_.useContext(fT);if(!t)throw new Error("useLocale must be used inside <LocaleProvider>. It mounts in src/index.tsx.");return t},HCe=()=>{const{userId:t,user:e}=aT(),{syncAccountLocale:n}=jCe(),r=e?.locale??null;_.useEffect(()=>{n({userId:t??null,serverLocale:r})},[t,r,n])},zCe={backends:[{id:"html5",backend:ife,transition:cfe},{id:"touch",backend:_fe,options:{enableMouseEvents:!0},transition:lfe}]},VCe=()=>{const t=Cr.c(14);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=["common"],t[0]=e):e=t[0];const{t:n}=xp(e),{trackEvent:r}=Av();BCe(),UCe(),HCe();let i,s;t[1]!==r?(i=()=>{r(rv.APP_OPENED)},s=[r],t[1]=r,t[2]=i,t[3]=s):(i=t[2],s=t[3]),_.useEffect(i,s);let a;t[4]!==n?(a=n("common:errorBoundary.appEyebrow"),t[4]=n,t[5]=a):a=t[5];let c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=W.jsx(Rx,{i18nKey:"errorBoundary.appTitle",components:{accent:W.jsx("em",{})}}),t[6]=c):c=t[6];let u;t[7]!==n?(u=n("common:errorBoundary.appMessage"),t[7]=n,t[8]=u):u=t[8];let h,p;t[9]===Symbol.for("react.memo_cache_sentinel")?(h=W.jsx(FCe,{}),p=W.jsx(dCe,{}),t[9]=h,t[10]=p):(h=t[9],p=t[10]);let v;return t[11]!==a||t[12]!==u?(v=W.jsx(L1e,{reducedMotion:"user",children:W.jsx(Hde,{backend:afe,options:zCe,children:W.jsx(JP,{children:W.jsxs(w3,{errorEyebrow:a,errorTitle:c,errorMessage:u,children:[h,p]})})})}),t[11]=a,t[12]=u,t[13]=v):v=t[13],v},qCe="tracking-consent-panel-module__panel__ISta3",WCe="tracking-consent-panel-module__inner__U0fkZ",GCe="tracking-consent-panel-module__eyebrow__ni-yK",KCe="tracking-consent-panel-module__body__eKJZ3",YCe="tracking-consent-panel-module__title__o6Rsz",XCe="tracking-consent-panel-module__copy__CSWm9",QCe="tracking-consent-panel-module__actions__TfBKu",ZCe="tracking-consent-panel-module__primaryAction__UxMJl",JCe="tracking-consent-panel-module__secondaryAction__5DAxf",du={panel:qCe,inner:WCe,eyebrow:GCe,body:KCe,title:YCe,copy:XCe,actions:QCe,primaryAction:ZCe,secondaryAction:JCe},XG=()=>{try{return typeof window>"u"?void 0:window.sessionStorage}catch{return}},exe=t=>{const e=new URLSearchParams(t);return R4(e.get(n9))},QG=()=>{const t=XG();if(t)try{return R4(t.getItem(r9))}catch{return}},txe=t=>{const e=R4(t),n=XG();if(!e||!n)return e;
203try{n.setItem(r9,e)}catch{return e}return e},nxe=t=>{const e=exe(t);return e?txe(e):QG()},xke=t=>t?{[n9]:t}:{},rxe=cte,ixe=new Set(ute),sxe=new Set(hte),oxe=new Set(dte),axe=new Set(fte),lxe=new RegExp(`(^|\\.)(${pte.join("|")})\\.`,"i"),cxe=ate,ZG=()=>{try{return typeof window>"u"?void 0:window.sessionStorage}catch{return}},JG=t=>{const e=t?.trim();if(e)return e.slice(0,cxe)},uxe=t=>{const e=new URLSearchParams(t),n={};for(const r of lte){const i=JG(e.get(r));i&&(n[r]=i)}return n},dxe=()=>{const t=ZG();if(!t)return{};try{const e=t.getItem(JU);if(!e)return{};const n=JSON.parse(e);if(!n||typeof n!="object")return{};const r={};for(const[i,s]of Object.entries(n)){const a=typeof s=="string"?JG(s):void 0;a&&(r[i]=a)}return r}catch{return{}}},fxe=t=>{const e=ZG();if(e)try{e.setItem(JU,JSON.stringify(t))}catch{}},hxe=t=>{const e=uxe(t);return Object.keys(e).length>0?(fxe(e),e):dxe()},pxe=t=>{const e=(t.utm_medium??"").toLowerCase(),n=(t.ref_type??"").toLowerCase();if(rxe.some(u=>!!t[u])||ixe.has(e)||sxe.has(n))return"paid";const i=(t.referring_domain??"").toLowerCase(),s=i?lxe.test(i):!1;if(oxe.has(e)||s)return"search";const a=!!t.ref,c=!!i;return axe.has(e)||a||c?"referral":"direct"},Tke=t=>({...t,source_bucket:pxe(t)}),gxe=1800*1e3,eK=()=>{try{const t=JSON.parse(sessionStorage.getItem(px)??"null");if(!t||typeof t!="object")return;const{context:e,startedAt:n}=t;if(typeof n=="number"&&n<=Date.now()&&Date.now()-n<gxe&&e&&typeof e.auth_flow_id=="string"&&o9(e.auth_flow_id)&&e.attribution&&typeof e.attribution=="object"&&Object.values(e.attribution).every(r=>typeof r=="string")&&["pending","granted","denied"].includes(e.tracking_consent??"")&&(e.landing_visit_id===void 0||typeof e.landing_visit_id=="string"))return e}catch{}},Rke=t=>{const e=o9(new URLSearchParams(t).get(Xte)),n=eK();if(n&&(!e||n.auth_flow_id===e))return n;const r={auth_flow_id:e??crypto.randomUUID(),landing_visit_id:nxe(t),attribution:hxe(t),tracking_consent:Cp()};try{sessionStorage.setItem(px,JSON.stringify({context:r,startedAt:Date.now()}))}catch{}return r},Ake=t=>{const e={...t,auth_flow_id:crypto.randomUUID()};try{sessionStorage.setItem(px,JSON.stringify({context:e,startedAt:Date.now()}))}catch{}return e},Oke=()=>{try{sessionStorage.removeItem(px)}catch{}},Ike=(t,e)=>({error_id:crypto.randomUUID(),error_code:e.diagnostics.error_code,error_category:e.diagnostics.error_category,auth_stage:e.diagnostics.auth_stage,http_status_class:e.diagnostics.http_status_class,method:t}),mxe=()=>{const t=Cr.c(49);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=["settings","common"],t[0]=e):e=t[0];const{t:n}=xp(e),{status:r,grantConsent:i,denyConsent:s}=lT(),{trackEvent:a}=Av();let c,u;t[1]!==r||t[2]!==a?(c=()=>{r==="pending"&&a("consent_modal_shown")},u=[r,a],t[1]=r,t[2]=a,t[3]=c,t[4]=u):(c=t[3],u=t[4]),_.useEffect(c,u);let h;t[5]!==s||t[6]!==i||t[7]!==a?(h=G=>{const Z=eK();a(G?"consent_modal_accepted":"consent_modal_declined",Z?Qte(Z):void 0),G?i():s()},t[5]=s,t[6]=i,t[7]=a,t[8]=h):h=t[8];const p=h;if(r!=="pending")return null;let v;t[9]!==n?(v=n("settings:consent.regionLabel"),t[9]=n,t[10]=v):v=t[10];let y;t[11]!==n?(y=n("settings:consent.eyebrow"),t[11]=n,t[12]=y):y=t[12];let E;t[13]!==y?(E=W.jsx("div",{className:du.eyebrow,children:y}),t[13]=y,t[14]=E):E=t[14];let S;t[15]!==n?(S=n("settings:consent.title"),t[15]=n,t[16]=S):S=t[16];let x;t[17]!==S?(x=W.jsx("p",{className:du.title,children:S}),t[17]=S,t[18]=x):x=t[18];let C;t[19]===Symbol.for("react.memo_cache_sentinel")?(C={privacy:W.jsx("a",{href:"https://dessence.ai/privacy-policy",target:"_blank",rel:"noopener noreferrer"})},t[19]=C):C=t[19];let R;t[20]!==n?(R=W.jsx("p",{className:du.copy,children:W.jsx(Rx,{t:n,i18nKey:"settings:consent.copy",components:C})}),t[20]=n,t[21]=R):R=t[21];let A;t[22]!==R||t[23]!==x?(A=W.jsxs("div",{className:du.body,children:[x,R]}),t[22]=R,t[23]=x,t[24]=A):A=t[24];let O;t[25]!==p?(O=()=>p(!0),t[25]=p,t[26]=O):O=t[26];let P;t[27]!==n?(P=n("settings:consent.accept"),t[27]=n,t[28]=P):P=t[28];let L;t[29]!==O||t[30]!==P?(L=W.jsx("button",{type:"button",className:du.primaryAction,onClick:O,children:P}),t[29]=O,t[30]=P,t[31]=L):L=t[31];let D;t[32]!==p?(D=()=>p(!1),t[32]=p,t[33]=D):D=t[33];let N;t[34]!==n?(N=n("settings:consent.reject"),t[34]=n,t[35]=N):N=t[35];let k;t[36]!==D||t[37]!==N?(k=W.jsx("button",{type:"button",className:du.secondaryAction,onClick:D,children:N}),t[36]=D,t[37]=N,t[38]=k):k=t[38];let U;t[39]!==L||t[40]!==k?(U=W.jsxs("div",{className:du.actions,children:[L,k]}),t[39]=L,t[40]=k,t[41]=U):U=t[41];let F;t[42]!==A||t[43]!==U||t[44]!==E?(F=W.jsxs("div",{className:du.inner,children:[E,A,U]}),t[42]=A,t[43]=U,t[44]=E,t[45]=F):F=t[45];let V;return t[46]!==F||t[47]!==v?(V=W.jsx("section",{className:du.panel,role:"region","aria-label":v,"data-tracking-consent-panel":!0,children:F}),t[46]=F,t[47]=v,t[48]=V):V=t[48],V},vxe="2026-01-30",yxe=new Set(["1","true","yes","on"]),_xe="https://us.i.posthog.com",bxe="https://us.posthog.com",Exe=["adsgram_campaign","click_id","record"],Sxe=(t,e)=>{const n=t.trim();return n.startsWith("/")?typeof window>"u"?n:`${window.location.origin}${n}`:n||_xe},wxe=(t,e,n,r="pending")=>({api_host:Sxe(t),ui_host:n?.trim()||bxe,defaults:vxe,disable_external_dependency_loading:e,custom_campaign_params:[...Exe],cross_subdomain_cookie:!0,...kte(r)}),Cxe=(t,e)=>
203!!t.trim()&&!yxe.has(e.trim().toLowerCase()),tK=(t,e,n)=>{const r="web_app",i=xte(typeof window>"u"?"":window.location.hostname);return{...Tte(r,i)}},Vt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vn=globalThis,cp="10.59.0";function hT(){return pT(vn),vn}function pT(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||cp,e[cp]=e[cp]||{}}function Ov(t,e,n=vn){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[cp]=r[cp]||{};return i[t]||(i[t]=e())}const xxe=["debug","info","warn","error","log","assert","trace"],Txe="Sentry Logger ",ix={};function Iv(t){if(!("console"in vn))return t();const e=vn.console,n={},r=Object.keys(ix);r.forEach(i=>{const s=ix[i];n[i]=e[i],e[i]=s});try{return t()}finally{r.forEach(i=>{e[i]=n[i]})}}function Rxe(){_L().enabled=!0}function Axe(){_L().enabled=!1}function nK(){return _L().enabled}function Oxe(...t){yL("log",...t)}function Ixe(...t){yL("warn",...t)}function Pxe(...t){yL("error",...t)}function yL(t,...e){Vt&&nK()&&Iv(()=>{vn.console[t](`${Txe}[${t}]:`,...e)})}function _L(){return Vt?Ov("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const wt={enable:Rxe,disable:Axe,isEnabled:nK,log:Oxe,warn:Ixe,error:Pxe},rK=50,Sp="?",p$=/\(error: (.*)\)/,g$=/captureMessage|captureException/;function iK(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],a=n.split(` 204`);for(let c=r;c<a.length;c++){let u=a[c];u.length>1024&&(u=u.slice(0,1024));const h=p$.test(u)?u.replace(p$,"$1"):u;if(!h.includes("Error: ")){for(const p of e){const v=p(h);if(v){s.push(v);break}}if(s.length>=rK+i)break}}return kxe(s.slice(i))}}function Lxe(t){return Array.isArray(t)?iK(...t):t}function kxe(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(Lw(e).function||"")&&e.pop(),e.reverse(),g$.test(Lw(e).function||"")&&(e.pop(),g$.test(Lw(e).function||"")&&e.pop()),e.slice(0,rK).map(n=>({...n,filename:n.filename||Lw(e).filename,function:n.function||Sp}))}function Lw(t){return t[t.length-1]||{}}const bA="<anonymous>";function vf(t){try{return!t||typeof t!="function"?bA:t.name||bA}catch{return bA}}function m$(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const G_={},v$={};function Mp(t,e){return G_[t]=G_[t]||[],G_[t].push(e),()=>{const n=G_[t];if(n){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}}}function Dp(t,e){if(!v$[t]){v$[t]=!0;try{e()}catch(n){Vt&&wt.error(`Error while instrumenting ${t}`,n)}}}function yl(t,e){const n=t&&G_[t];if(n)for(const r of n)try{r(e)}catch(i){Vt&&wt.error(`Error while triggering instrumentation handler. 205Type: ${t} 206Name: ${vf(r)} 207Error:`,i)}}let EA=null;function Mxe(t){const e="error";Mp(e,t),Dp(e,Dxe)}function Dxe(){EA=vn.onerror,vn.onerror=function(t,e,n,r,i){return yl("error",{column:r,error:i,line:n,msg:t,url:e}),EA?EA.apply(this,arguments):!1},vn.onerror.__SENTRY_INSTRUMENTED__=!0}let SA=null;function Nxe(t){const e="unhandledrejection";Mp(e,t),Dp(e,$xe)}function $xe(){SA=vn.onunhandledrejection,vn.onunhandledrejection=function(t){return yl("unhandledrejection",t),SA?SA.apply(this,arguments):!0},vn.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const sK=Object.prototype.toString;function gT(t){switch(sK.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return pv(t,Error)}}function Pv(t,e){return sK.call(t)===`[object ${e}]`}function oK(t){return Pv(t,"ErrorEvent")}function y$(t){return Pv(t,"DOMError")}function Fxe(t){return Pv(t,"DOMException")}function Mu(t){return Pv(t,"String")}function bL(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Nb(t){return t===null||bL(t)||typeof t!="object"&&typeof t!="function"}function eb(t){return Pv(t,"Object")}function mT(t){return typeof Event<"u"&&pv(t,Event)}function Uxe(t){return Pv(t,"RegExp")}function $b(t){return!!(t?.then&&typeof t.then=="function")}function pv(t,e){try{return t instanceof e}catch{return!1}}function aK(t){return typeof Request<"u"&&pv(t,Request)}function Zo(t,e,n){if(!(e in t))return;const r=t[e];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&lK(i,r);try{t[e]=i}catch{Vt&&wt.log(`Failed to replace method "${e}" in object`,t)}}function yf(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{Vt&&wt.log(`Failed to add non-enumerable property "${String(e)}" to object`,t)}}function lK(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,yf(t,"__sentry_original__",e)}catch{}}function EL(t){return t.__sentry_original__}function cK(t){if(gT(t))return{message:t.message,name:t.name,stack:t.stack,..._$(t)};
207if(mT(t)){const{type:e,target:n,currentTarget:r,detail:i}=t;return{type:e,target:n,currentTarget:r,...i?{detail:i}:{},..._$(t)}}return t}function _$(t){return typeof t=="object"&&t!==null?Object.fromEntries(Object.entries(t)):{}}function Bxe(t){const e=Object.keys(cK(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}let vm;function vT(t){if(vm!==void 0)return vm?vm(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=vn;return e in n&&typeof n[e]=="function"?(vm=n[e],vm(t)):(vm=null,t())}function sx(){return vT(()=>Math.random())}function Lv(){return vT(()=>Date.now())}const jxe=Symbol.for("sentry.skipNormalization"),Hxe=Symbol.for("sentry.overrideNormalizationDepth");function zxe(t){return!!t[jxe]}function Vxe(t){const e=t[Hxe];return typeof e=="number"?e:void 0}let M3;function uK(t){M3=t}function vu(t,e=100,n=1/0){try{return D3("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function dK(t,e=3,n=100*1024){const r=vu(t,e);return Gxe(r)>n?dK(t,e-1,n):r}function D3(t,e,n=1/0,r=1/0,i=Kxe()){const[s,a]=i;
207if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const c=fK(t,e);if(!c.startsWith("[object "))return c;if(zxe(e))return e;const u=Vxe(e),h=u!==void 0?u:n;if(h===0)return c.replace("object ","");if(s(e))return"[Circular ~]";const p=e;if(p&&typeof p.toJSON=="function")try{const S=p.toJSON();return D3("",S,h-1,r,i)}catch{}const v=Array.isArray(e)?[]:{};let y=0;const E=cK(e);for(const S in E){if(!Object.prototype.hasOwnProperty.call(E,S))continue;if(y>=r){v[S]="[MaxProperties ~]";break}const x=E[S];v[S]=D3(S,x,h-1,r,i),y++}return a(e),v}function fK(t,e){try{if(M3){const r=M3(e);if(r)return r}return typeof global<"u"&&e===global?"[Global]":typeof e=="number"&&!Number.isFinite(e)?`[${e}]`:typeof e=="function"?`[Function: ${vf(e)}]`:typeof e=="symbol"?`[${String(e)}]`:typeof e=="bigint"?`[BigInt: ${String(e)}]`:`[object ${qxe(e)}]`}catch(n){return`**non-serializable** (${n})`}}function qxe(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function Wxe(t){return~-encodeURI(t).split(/%..|./).length}function Gxe(t){return Wxe(JSON.stringify(t))}function Kxe(){const t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function N3(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function b$(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const i=t[r];Nb(i)?n.push(String(i)):i instanceof Error?n.push(i.message?`${i.name}: ${i.message}`:i.name):n.push(fK(void 0,i))}return n.join(e)}function y1(t,e,n=!1){return Mu(t)?Uxe(e)?e.test(t):Mu(e)?n?t===e:t.includes(e):typeof e=="function"?e(t):!1:!1}function Fb(t,e=[],n=!1){for(const r of e)if(y1(t,r,n))return!0;return!1}function Yxe(){const t=vn;return t.crypto||t.msCrypto}let wA;function Xxe(){return sx()*16}function Oa(t=Yxe()){try{if(t?.randomUUID)return vT(()=>t.randomUUID()).replace(/-/g,"")}catch{}return wA||(wA="10000000100040008000"+1e11),wA.replace(/[018]/g,e=>(e^(Xxe()&15)>>e/4).toString(16))}function hK(t){return t.exception?.values?.[0]}function zh(t){const{message:e,event_id:n}=t;if(e)return e;const r=hK(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function $3(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||""),s.type||(s.type="Error")}function up(t,e){const n=hK(t);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...e},e&&"data"in e){const s={...i?.data,...e.data};n.mechanism.data=s}}function E$(t){if(Qxe(t))return!0;try{yf(t,"__sentry_captured__",!0)}catch{}return!1}function Qxe(t){try{return t.__sentry_captured__}catch{}}const pK=1e3;function Ub(){return Lv()/pK}function Zxe(){const{performance:t}=vn;if(!t?.now||!t.timeOrigin)return Ub;const e=t.timeOrigin;return()=>(e+vT(()=>t.now()))/pK}let S$;function Du(){return(S$??(S$=Zxe()))()}function Jxe(t){const e=Du(),n={sid:Oa(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>tTe(n)};return t&&gv(n,t),n}function gv(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Du(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:Oa()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function eTe(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),gv(t,n)}function tTe(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function Bb(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;const r={...t};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=Bb(r[i],e[i],n-1));return r}function w$(){return Oa()}function gK(){return Oa().substring(16)}function nTe(t){try{const e=vn.WeakRef;if(typeof e=="function")return new e(t)}catch{}return t}function mK(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}const F3="_sentrySpan";function C$(t,e){e?yf(t,F3,nTe(e)):delete t[F3]}function x$(t){return mK(t[F3])}const rTe=100;class Bu{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:w$(),sampleRand:sx()}}clone(){const e=new Bu;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,C$(e,x$(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&gv(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this.setTags({[e]:n})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,n){return this.setAttributes({[e]:n})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,r=n instanceof Bu?n.getScopeData():eb(n)?e:void 0,{tags:i,attributes:s,extra:a,user:c,contexts:u,level:h,fingerprint:p=[],propagationContext:v,conversationId:y}=r||{};return this._tags={...this._tags,...i},this._attributes={...this._attributes,...s},this._extra={...this._extra,...a},this._contexts={...this._contexts,...u},c&&Object.keys(c).length&&(this._user=c),h&&(this._level=h),p.length&&(this._fingerprint=p),v&&(this._propagationContext=v),y&&(this._conversationId=y),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,C$(this,void 0),this._attachments=[],this.setPropagationContext({traceId:w$(),sampleRand:sx()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:rTe;if(r<=0)return this;const i={timestamp:Ub(),...e,message:e.message?N3(e.message,2048):e.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:x$(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Bb(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n?.event_id||Oa();if(!this._client)return Vt&&wt.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureMessage(e,n,r){const i=r?.event_id||Oa();if(!this._client)return Vt&&wt.warn("No client configured on scope - will not capture message!"),i;const s=r?.syntheticException??new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:s,...r,event_id:i},this),i}captureEvent(e,n){const r=e.event_id||n?.event_id||Oa();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(Vt&&wt.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
207h(e=>{e(this)}),this._notifyingListeners=!1)}}function iTe(){return Ov("defaultCurrentScope",()=>new Bu)}function sTe(){return Ov("defaultIsolationScope",()=>new Bu)}const T$=t=>t instanceof Promise&&!t[vK],vK=Symbol("chained PromiseLike"),oTe=(t,e,n)=>{const r=t.then(i=>(e(i),i),i=>{throw n(i),i});return T$(r)&&T$(t)?r:aTe(t,r)},aTe=(t,e)=>{if(!e)return t;let n=!1;for(const r in t){if(r in e)continue;n=!0;const i=t[r];typeof i=="function"?Object.defineProperty(e,r,{value:(...s)=>i.apply(t,s),enumerable:!0,configurable:!0,writable:!0}):e[r]=i}return n&&Object.assign(e,{[vK]:!0}),e};class lTe{constructor(e,n){let r;e?r=e:r=new Bu;let i;n?i=n:i=new Bu,this._stack=[{scope:r}],this._isolationScope=i}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(i){throw this._popScope(),i}return $b(r)?oTe(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function mv(){const t=hT(),e=pT(t);return e.stack=e.stack||new lTe(iTe(),sTe())}function cTe(t){return mv().withScope(t)}function uTe(t,e){const n=mv();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function R$(t){return mv().withScope(()=>t(mv().getIsolationScope()))}function dTe(){return{withIsolationScope:R$,withScope:cTe,withSetScope:uTe,withSetIsolationScope:(t,e)=>R$(e),getCurrentScope:()=>mv().getScope(),getIsolationScope:()=>mv().getIsolationScope()}}function SL(t){const e=pT(t);return e.acs?e.acs:dTe()}function fTe(t){return typeof t=="object"&&t!=null&&!Array.isArray(t)&&Object.keys(t).includes("value")}function hTe(t,e){const{value:n,unit:r}=fTe(t)?t:{value:t,unit:void 0},i=pTe(n),s=r&&typeof r=="string"?{unit:r}:{};if(i)return{...i,...s};if(!e||e==="skip-undefined"&&n===void 0)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...s}}function A$(t,e=!1){const n={};for(const[r,i]of Object.entries(t??{})){const s=hTe(i,e);s&&(n[r]=s)}return n}function pTe(t){if(Array.isArray(t))return{value:t,type:"array"};const e=typeof t=="string"?"string":typeof t=="boolean"?"boolean":typeof t=="number"&&!Number.isNaN(t)?Number.isInteger(t)?"integer":"double":null;if(e)return{value:t,type:e}}function zu(){const t=hT();return SL(t).getCurrentScope()}function wf(){const t=hT();return SL(t).getIsolationScope()}function gTe(){return Ov("globalScope",()=>new Bu)}function mTe(...t){const e=hT(),n=SL(e);if(t.length===2){const[r,i]=t;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(t[0])}function As(){return zu().getClient()}function vTe(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=e,s={trace_id:n,span_id:i||gK()};return r&&(s.parent_span_id=r),s}const yTe="sentry.source",_Te="sentry.sample_rate",bTe="sentry.previous_trace_sample_rate",ETe="sentry.op",STe="sentry.origin",yK="sentry.profile_id",_K="sentry.exclusive_time",wTe="gen_ai.conversation.id",CTe=0,xTe=1,TTe="_sentryScope",RTe="_sentryIsolationScope";function U3(t){const e=t;return{scope:e[TTe],isolationScope:mK(e[RTe])}}const O$="sentry-";function ATe(t){const e=OTe(t);if(!e)return;const n=Object.entries(e).reduce((r,[i,s])=>{if(i.startsWith(O$)){const a=i.slice(O$.length);r[a]=s}return r},{});if(Object.keys(n).length>0)return n}function OTe(t){if(!(!t||!Mu(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=I$(n);return Object.entries(r).forEach(([i,s])=>{e[i]=s}),e},{}):I$(t)}function I$(t){return t.split(",").map(e=>{const n=e.indexOf("=");if(n===-1)return[];const r=e.slice(0,n),i=e.slice(n+1);return[r,i].map(s=>{try{return decodeURIComponent(s.trim())}catch{return}})}).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}const ITe=/^o(\d+)\./,PTe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function LTe(t){return t==="http"||t==="https"}function jb(t,e=!1){const{host:n,path:r,pass:i,port:s,projectId:a,protocol:c,publicKey:u}=t;return`${c}://${u}${e&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${a}`}function kTe(t){const e=PTe.exec(t);if(!e){Iv(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,i="",s="",a="",c=""]=e.slice(1);let u="",h=c;const p=h.split("/");if(p.length>1&&(u=p.slice(0,-1).join("/"),h=p.pop()),h){const v=h.match(/^\d+/);v&&(h=v[0])}return bK({host:s,pass:i,path:u,projectId:h,port:a,protocol:n,publicKey:r})}function bK(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function MTe(t){if(!Vt)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(a=>t[a]?!1:(wt.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:n.match(/^\d+$/)?LTe(r)?e&&isNaN(parseInt(e,10))?(wt.error(`Invalid Sentry Dsn: Invalid port ${e}
207`),!1):!0:(wt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(wt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function DTe(t){return t.match(ITe)?.[1]}function NTe(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=DTe(n)),r}function $Te(t){const e=typeof t=="string"?kTe(t):bK(t);if(!(!e||!MTe(e)))return e}function FTe(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const EK=1;let P$=!1;function UTe(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:yT(t).parent_span_id,s=U3(t).scope,a=r?s?.getPropagationContext().propagationSpanId||gK():e;return{parent_span_id:i,span_id:a,trace_id:n}}function BTe(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...i},attributes:s})=>({span_id:e,trace_id:n,sampled:r===EK,attributes:s,...i}))}function L$(t){return typeof t=="number"?k$(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?k$(t.getTime()):Du()}function k$(t){return t>9999999999?t/1e3:t}function yT(t){if(VTe(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(zTe(t)){const{attributes:r,startTime:i,name:s,endTime:a,status:c,links:u}=t;return{span_id:e,trace_id:n,data:r,description:s,parent_span_id:jTe(t),start_timestamp:L$(i),timestamp:L$(a)||void 0,status:WTe(c),op:r[ETe],origin:r[STe],links:BTe(u)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function jTe(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function HTe(t){return{...t,attributes:A$(t.attributes),links:t.links?.map(e=>({...e,attributes:A$(e.attributes)}))}}function zTe(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function VTe(t){return typeof t.getSpanJSON=="function"}function qTe(t){const{traceFlags:e}=t.spanContext();return e===EK}function WTe(t){if(!(!t||t.code===CTe))return t.code===xTe?"ok":t.message||"internal_error"}const GTe="_sentryRootSpan",SK=KTe;function KTe(t){return t[GTe]||t}function M$(){P$||(Iv(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),P$=!0)}function D$(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=t||As()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function N$(t){wt.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function $$(t,e){if(!e?.length)return!1;
207for(const n of e){if(QTe(n)){if(t.description&&y1(t.description,n))return Vt&&N$(t),!0;continue}const r=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!r)continue;const i=n.name?t.description&&y1(t.description,n.name):!0,s=n.op?t.op&&y1(t.op,n.op):!0,a=n.attributes?Object.entries(n.attributes).every(([c,u])=>YTe(t.attributes?.[c],u)):!0;if(i&&s&&a)return Vt&&N$(t),!0}return!1}function YTe(t,e){return typeof t=="string"&&(typeof e=="string"||e instanceof RegExp)?y1(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t===e}function XTe(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const i of t)i.parent_span_id===r&&(i.parent_span_id=n)}function QTe(t){return typeof t=="string"||t instanceof RegExp}const ZTe=Symbol.for("sentry.nonRecordingSpan");function JTe(t){return!!t&&t[ZTe]===!0}const wL="production",e5e="_frozenDsc";function wK(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i={environment:n.environment||wL,release:n.release,public_key:r,trace_id:t,org_id:NTe(e)};return e.emit("createDsc",i),i}function CK(t,e){const n=e.getPropagationContext();return n.dsc||wK(n.traceId,t)}function t5e(t){const e=As();if(!e)return{};const n=SK(t),r=yT(n),i=r.data,s=n.spanContext().traceState,a=s?.get("sentry.sample_rate")??i[_Te]??i[bTe];function c(S){return(typeof a=="number"||typeof a=="string")&&(S.sample_rate=`${a}`),S}const u=n[e5e];if(u)return c(u);if(JTe(n)&&!D$(e.getOptions())){const S=U3(n).scope;if(S)return c({...CK(e,S)})}const h=s?.get("sentry.dsc"),p=h&&ATe(h);if(p)return c(p);const v=wK(t.spanContext().traceId,e),y=i[yTe]??i["sentry.span.source"],E=r.description;return y!=="url"&&E&&(v.transaction=E),D$()&&(v.sampled=String(qTe(n)),v.sample_rand=s?.get("sentry.sample_rand")??U3(n).scope?.getPropagationContext().sampleRand.toString()),c(v),e.emit("createDsc",v,n),v}function n5e(t){return!!t&&typeof t=="function"&&"_streamed"in t&&!!t._streamed}function kv(t,e=[]){return[t,e]}function F$(t,e){const[n,r]=t;return[n,[...r,e]]}function B3(t,e){const n=t[1];for(const r of n){const i=r[0].type;if(e(r,i))return!0}return!1}function r5e(t,e){return B3(t,(n,r)=>e.includes(r))}function j3(t){const e=pT(vn);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function i5e(t){const[e,n]=t;let r=JSON.stringify(e);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[j3(r),s]:r.push(typeof s=="string"?j3(s):s)}for(const s of n){const[a,c]=s;if(i(` 208${JSON.stringify(a)} 209`),typeof c=="string"||c instanceof Uint8Array)i(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(vu(c))}i(u)}}return typeof r=="string"?r:s5e(r)}function s5e(t){const e=t.reduce((i,s)=>i+s.length,0),n=new Uint8Array(e);let r=0;for(const i of t)n.set(i,r),r+=i.length;return n}function o5e(t){const e=typeof t.data=="string"?j3(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const xK={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function a5e(t){return t in xK}function U$(t){return a5e(t)?xK[t]:t}function TK(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function l5e(t,e,n,r){const i=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date(Lv()).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:jb(r)},...i&&{trace:i}}}function c5e(t,e){if(!e)return t;const n=t.sdk||{};return t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0},t}function u5e(t,e,n,r){const i=TK(n),s={sent_at:new Date(Lv()).toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:jb(e)}},a="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return kv(s,[a])}function d5e(t,e,n,r){const i=TK(n),s=t.type&&t.type!=="replay_event"?t.type:"event";c5e(t,n?.sdk);const a=l5e(t,i,r,e);return delete t.sdkProcessingMetadata,kv(a,[[{type:s},t]])}function f5e(t){return t.getOptions().traceLifecycle==="stream"}function h5e(t,e){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=e;
209p5e(t,e),r&&v5e(t,r),y5e(t,n),g5e(t,i),m5e(t,s)}function B$(t,e){const{extra:n,tags:r,attributes:i,user:s,contexts:a,level:c,sdkProcessingMetadata:u,breadcrumbs:h,fingerprint:p,eventProcessors:v,attachments:y,propagationContext:E,transactionName:S,span:x}=e;__(t,"extra",n),__(t,"tags",r),__(t,"attributes",i),__(t,"user",s),__(t,"contexts",a),t.sdkProcessingMetadata=Bb(t.sdkProcessingMetadata,u,2),c&&(t.level=c),S&&(t.transactionName=S),x&&(t.span=x),h.length&&(t.breadcrumbs=[...t.breadcrumbs,...h]),p.length&&(t.fingerprint=[...t.fingerprint,...p]),v.length&&(t.eventProcessors=[...t.eventProcessors,...v]),y.length&&(t.attachments=[...t.attachments,...y]),t.propagationContext={...t.propagationContext,...E}}function __(t,e,n){t[e]=Bb(t[e],n,1)}function RK(t,e){const n=gTe().getScopeData();return t&&B$(n,t.getScopeData()),e&&B$(n,e.getScopeData()),n}function p5e(t,e){const{extra:n,tags:r,user:i,contexts:s,level:a,transactionName:c}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(i).length&&(t.user={...i,...t.user}),Object.keys(s).length&&(t.contexts={...s,...t.contexts}),a&&(t.level=a),c&&t.type!=="transaction"&&(t.transaction=c)}function g5e(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function m5e(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function v5e(t,e){t.contexts={trace:UTe(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:t5e(e),...t.sdkProcessingMetadata};const n=SK(e),r=yT(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function y5e(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}function CA(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function _5e(t,e=!0){if(t.startsWith("data:")){const n=t.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=t.includes(";base64,"),s=t.indexOf(",");let a="";if(e&&s!==-1){const c=t.slice(s+1);a=c.length>10?`${c.slice(0,10)}... [truncated]`:c}return`data:${r}${i?",base64":""}${a?`,${a}`:""}`}return t}function AK(t,e){const n=t.attributes??(t.attributes={});Object.entries(e).forEach(([r,i])=>{i!=null&&!(r in n)&&(n[r]=i)})}const xA=0,j$=1,H$=2;function Hb(t){return new tb(e=>{e(t)})}function CL(t){return new tb((e,n)=>{n(t)})}class tb{constructor(e){this._state=xA,this._handlers=[],this._runExecutor(e)}then(e,n){return new tb((r,i)=>{this._handlers.push([!1,s=>{if(!e)r(s);else try{r(e(s))}catch(a){i(a)}},s=>{if(!n)i(s);else try{r(n(s))}catch(a){i(a)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new tb((n,r)=>{let i,s;return this.then(a=>{s=!1,i=a,e&&e()},a=>{s=!0,i=a,e&&e()}).then(()=>{if(s){r(i);return}n(i)})})}_executeHandlers(){if(this._state===xA)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===j$&&n[1](this._value),this._state===H$&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(s,a)=>{if(this._state===xA){if($b(a)){a.then(r,i);return}this._state=s,this._value=a,this._executeHandlers()}},r=s=>{n(j$,s)},i=s=>{n(H$,s)};try{e(r,i)}catch(s){i(s)}}}function b5e(t,e,n,r=0){try{const i=H3(e,n,t,r);return $b(i)?i:Hb(i)}catch(i){return CL(i)}}function H3(t,e,n,r){const i=n[r];if(!t||!i)return t;const s=i({...t},e);return Vt&&s===null&&wt.log(`Event processor "${i.id||"?"}" dropped event`),$b(s)?s.then(a=>H3(a,e,n,r+1)):H3(s,e,n,r+1)}let Ih,z$,V$,zd;function E5e(t){const e=vn._sentryDebugIds,n=vn._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],i=n?Object.keys(n):[];if(zd&&r.length===z$&&i.length===V$)return zd;z$=r.length,V$=i.length,zd={},Ih||(Ih={});const s=(a,c)=>{for(const u of a){const h=c[u],p=Ih?.[u];if(p&&zd&&h)zd[p[0]]=h,Ih&&(Ih[u]=[p[0],h]);else if(h){const v=t(u);for(let y=v.length-1;y>=0;y--){const S=v[y]?.filename;if(S&&zd&&Ih){zd[S]=h,Ih[u]=[S,h];break}}}}};return e&&s(r,e),n&&s(i,n),zd}function S5e(t,e,n,r,i,s){const{normalizeDepth:a=3,normalizeMaxBreadth:c=1e3}=t,u={...e,event_id:e.event_id||n.event_id||Oa(),timestamp:e.timestamp||Ub()},h=n.integrations||t.integrations.map(R=>R.name);w5e(u,t),T5e(u,h),i&&i.emit("applyFrameMetadata",e),e.type===void 0&&C5e(u,t.stackParser);const p=A5e(r,n.captureContext);n.mechanism&&up(u,n.mechanism);const v=i?i.getEventProcessors():[],y=RK(s,p),E=[...n.attachments||[],...y.attachments];E.length&&(n.attachments=E),h5e(u,y);const S=[...v,...y.eventProcessors];return(n.data&&n.data.__sentry__===!0?Hb(u):b5e(S,u,n)).then(R=>
209(R&&x5e(R),typeof a=="number"&&a>0?R5e(R,a,c):R))}function w5e(t,e){const{environment:n,release:r,dist:i,maxValueLength:s}=e;t.environment=t.environment||n||wL,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);const a=t.request;a?.url&&s&&(a.url=N3(a.url,s)),s&&t.exception?.values?.forEach(c=>{c.value&&(c.value=N3(c.value,s))})}function C5e(t,e){const n=E5e(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.filename&&(i.debug_id=n[i.filename])})})}function x5e(t){const e={};if(t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.debug_id&&(i.abs_path?e[i.abs_path]=i.debug_id:i.filename&&(e[i.filename]=i.debug_id),delete i.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function T5e(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function R5e(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>({...i,...i.data&&{data:vu(i.data,e,n)}}))},...t.user&&{user:vu(t.user,e,n)},...t.contexts&&{contexts:vu(t.contexts,e,n)},...t.extra&&{extra:vu(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=vu(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>({...i,...i.data&&{data:vu(i.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=vu(t.contexts.flags,3,n)),r}function A5e(t,e){if(!e)return t;const n=t?t.clone():new Bu;return n.update(e),n}function OK(t,e){return zu().captureException(t,void 0)}function IK(t,e){return zu().captureEvent(t,e)}function O5e(t,e){wf().setContext(t,e)}function q$(t){const e=wf(),{user:n}=RK(e,zu()),{userAgent:r}=vn.navigator||{},i=Jxe({user:n,...r&&{userAgent:r},...t}),s=e.getSession();return s?.status==="ok"&&gv(s,{status:"exited"}),PK(),e.setSession(i),i}function PK(){const t=wf(),n=zu().getSession()||t.getSession();n&&eTe(n),LK(),t.setSession()}function LK(){const t=wf(),e=As(),n=t.getSession();n&&e&&e.captureSession(n)}function TA(t=!1){if(t){PK();return}LK()}const I5e="7";function P5e(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function L5e(t){return`${P5e(t)}${t.projectId}/envelope/`}function k5e(t,e){const n={sentry_version:I5e};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function M5e(t,e,n){return e||`${L5e(t)}?${k5e(t,n)}`}const W$=[];function D5e(t){const e={};return t.forEach(n=>{const{name:r}=n,i=e[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function N5e(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...e,...n];else if(typeof n=="function"){const i=n(e);r=Array.isArray(i)?i:[i]}else r=e;return D5e(r)}function $5e(t,e){const n={};return e.forEach(r=>{r?.beforeSetup&&r.beforeSetup(t)}),e.forEach(r=>{r&&kK(t,r,n)}),n}function G$(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function kK(t,e,n){if(n[e.name]){Vt&&wt.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,!W$.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),W$.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(i,s)=>r(i,s,t))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),i=Object.assign((s,a)=>r(s,a,t),{id:e.name});t.addEventProcessor(i)}["processSpan","processSegmentSpan"].forEach(r=>{const i=e[r];typeof i=="function"&&t.on(r,s=>i.call(e,s,t))}),Vt&&wt.log(`Integration installed: ${e.name}`)}function F5e(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function U5e(){return"npm"}function B5e(){return!F5e()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function xL(){return typeof window<"u"&&(!B5e()||j5e())}function j5e(){return vn.process?.type==="renderer"}function H5e(t,e){const n=e?"auto":"never";return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...xL()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:t}]}function z5e(t,e,n,r,i){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=jb(r)),kv(s,[H5e(t,i)])}function z3(t,e){const n=e??V5e(t)??[];if(n.length===0)return;const r=t.getOptions(),i=z5e(n,r._metadata,r.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);MK().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(i)}function V5e(t){return MK().get(t)}function MK(){return Ov("clientToLogBufferMap",()=>new WeakMap)}function q5e(t,e){const n=e?"auto":"never";return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...xL()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:t}]}function W5e(t,e,n,r,i){const s={};return e?.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(s.dsn=jb(r)),kv(s,[q5e(t,i)])}function DK(t,e){const n=e??G5e(t)??[];if(n.length===0)return;const r=t.getOptions(),i=W5e(n,r._metadata,r.tunnel,t.getDsn(),t.getDataCollectionOptions().userInfo);NK().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(i)}function G5e(t){return NK().get(t)}function NK(){return Ov("clientToMetricBufferMap",()=>new WeakMap)}function K5e(t){const e={trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,name:t.description||"",start_timestamp:t.start_timestamp,end_timestamp:t.timestamp||t.start_timestamp,status:!t.status||t.status==="ok"||t.status==="cancelled"?"ok":"error",is_segment:!1,attributes:{...t.data},links:t.links};return HTe(e)}function Y5e(t,e){if(t.type!=="transaction"||!t.spans?.length||!t.sdkProcessingMetadata?.hasGenAiSpans||!e.getOptions().streamGenAiSpans||f5e(e))return;const n=[],r=[];for(const s of t.spans)s.op?.startsWith("gen_ai.")?n.push(K5e(s)):r.push(s);if(n.length===0)return;t.spans=r;const i=e.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...xL()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}function $K(t){return typeof t=="object"&&typeof t.unref=="function"&&t.unref(),t}const TL=Symbol.for("SentryBufferFullError");function RL(t=100){const e=new Set;function n(){return e.size<t}function r(a){e.delete(a)}function i(a){if(!n())return CL(TL);const c=a();return e.add(c),c.then(()=>r(c),()=>r(c)),c}function s(a){if(!e.size)return Hb(!0);const c=Promise.allSettled(Array.from(e)).then(()=>!0);if(!a)return c;const u=[c,new Promise(h=>$K(setTimeout(()=>h(!1),a)))];return Promise.race(u)}return{get $(){return Array.from(e)},add:i,drain:s}}const X5e=60*1e3;function Q5e(t,e=Lv()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?X5e:r-e}function Z5e(t,e){return t[e]||t.all||0}
209function J5e(t,e,n=Lv()){return Z5e(t,e)>n}function eRe(t,{statusCode:e,headers:n},r=Lv()){const i={...t},s=n?.["x-sentry-rate-limits"],a=n?.["retry-after"];if(s)for(const c of s.trim().split(",")){const[u,h,,,p]=c.split(":",5),v=parseInt(u,10),y=(isNaN(v)?60:v)*1e3;if(!h)i.all=r+y;else for(const E of h.split(";"))E==="metric_bucket"?(!p||p.split(";").includes("custom"))&&(i[E]=r+y):i[E]=r+y}else a?i.all=r+Q5e(a,r):e===429&&(i.all=r+60*1e3);return i}const FK=64;function tRe(t,e,n=RL(t.bufferSize||FK)){let r={};const i=a=>n.drain(a);function s(a){const c=[];if(B3(a,(v,y)=>{const E=U$(y);J5e(r,E)?t.recordDroppedEvent("ratelimit_backoff",E):c.push(v)}),c.length===0)return Promise.resolve({});const u=kv(a[0],c),h=v=>{if(r5e(u,["client_report"])){Vt&&wt.warn(`Dropping client report. Will not send outcomes (reason: ${v}).`);return}B3(u,(y,E)=>{t.recordDroppedEvent(v,U$(E))})},p=()=>e({body:i5e(u)}).then(v=>v.statusCode===413?(Vt&&wt.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),h("send_error"),v):(Vt&&v.statusCode!==void 0&&(v.statusCode<200||v.statusCode>=300)&&wt.warn(`Sentry responded with status code ${v.statusCode} to sent event.`),r=eRe(r,v),v),v=>{throw h("network_error"),Vt&&wt.error("Encountered error running transport request:",v),v});return n.add(p).then(v=>v,v=>{if(v===TL)return Vt&&wt.error("Skipped sending event because buffer is full."),h("queue_overflow"),Promise.resolve({});throw v})}return{send:s,flush:i}}function nRe(t,e,n){const r=[{type:"client_report"},{timestamp:Ub(),discarded_events:t}];return kv(e?{dsn:e}:{},[r])}function UK(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function rRe(t){const{trace_id:e,parent_span_id:n,span_id:r,status:i,origin:s,data:a,op:c}=t.contexts?.trace??{};return{data:a??{},description:t.transaction,op:c,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:i,timestamp:t.timestamp,trace_id:e??"",origin:s,profile_id:a?.[yK],exclusive_time:a?.[_K],measurements:t.measurements,is_segment:!0}}function iRe(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{[yK]:t.profile_id},...t.exclusive_time&&{[_K]:t.exclusive_time}}}},measurements:t.measurements}}const kw=["forwarded","-ip","remote-","via","-user"];function sRe(t){return t===!0?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:kw},httpHeaders:{request:{deny:kw},response:{deny:kw}},httpBodies:[],queryParams:{deny:kw},genAI:{inputs:!1,outputs:!1},stackFrameVariables:!0,frameContextLines:7}}const oRe={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:5};function aRe(t){const e=t.dataCollection!=null?oRe:sRe(t.sendDefaultPii),n=t.dataCollection??{};return{userInfo:n.userInfo??e.userInfo,cookies:n.cookies??e.cookies,httpHeaders:{request:n.httpHeaders?.request??e.httpHeaders.request,response:n.httpHeaders?.response??e.httpHeaders.response},httpBodies:n.httpBodies??e.httpBodies,queryParams:n.queryParams??e.queryParams,genAI:{inputs:n.genAI?.inputs??e.genAI.inputs,outputs:n.genAI?.outputs??e.genAI.outputs}
209,stackFrameVariables:n.stackFrameVariables??e.stackFrameVariables,frameContextLines:n.frameContextLines??e.frameContextLines}}const K$="Not capturing exception because it's already been captured.",Y$="Discarded session because of missing or non-string release",BK=Symbol.for("SentryInternalError"),jK=Symbol.for("SentryDoNotSendEventError"),lRe=5e3;function N2(t){return{message:t,[BK]:!0}}function RA(t){return{message:t,[jK]:!0}}function X$(t){return!!t&&typeof t=="object"&&BK in t}function Q$(t){return!!t&&typeof t=="object"&&jK in t}function Z$(t,e,n,r,i){let s=0,a,c=!1;t.on(n,()=>{s=0,clearTimeout(a),c=!1}),t.on(e,u=>{if(s+=r(u),s>=8e5)i(t);else if(!c){const h=t.getOptions()._flushInterval??lRe;h>0&&(c=!0,a=$K(setTimeout(()=>{i(t)},h)))}}),t.on("flush",()=>{i(t)})}class cRe{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=RL(e.transportOptions?.bufferSize??FK),this._dataCollection=aRe(e),e.dsn?this._dsn=$Te(e.dsn):Vt&&wt.warn("No DSN provided, client will not send events."),this._dsn){const r=M5e(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Z$(this,"afterCaptureLog","flushLogs",hRe,z3),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Z$(this,"afterCaptureMetric","flushMetrics",fRe,DK)}captureException(e,n,r){const i=Oa();if(E$(e))return Vt&&wt.log(K$),i;const s={event_id:i,...n};return this._process(()=>this.eventFromException(e,s).then(a=>this._captureEvent(a,s,r)).then(a=>a),"error"),s.event_id}captureMessage(e,n,r,i){const s={event_id:Oa(),...r},a=bL(e)?e:String(e),c=Nb(e),u=c?this.eventFromMessage(a,n,s):this.eventFromException(e,s);return this._process(()=>u.then(h=>this._captureEvent(h,s,i)),c?"unknown":"error"),s.event_id}captureEvent(e,n,r){const i=Oa();if(n?.originalException&&E$(n.originalException))return Vt&&wt.log(K$),i;const s={event_id:i,...n},a=e.sdkProcessingMetadata||{},c=a.capturedSpanScope,u=a.capturedSpanIsolationScope,h=J$(e.type);return this._process(()=>this._captureEvent(e,s,c||r,u),h),s.event_id}captureSession(e){this.sendSession(e),gv(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const n=this._transport;if(this.emit("flush"),!n)return!0;const r=await this._isClientDoneProcessing(e),i=await n.flush(e);return r&&i}async close(e){z3(this);const n=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){const n=this._integrations[e.name];!n&&e.beforeSetup&&e.beforeSetup(this),kK(this,e,this._integrations),n||G$(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);const r=Y5e(e,this);let i=d5e(e,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])i=F$(i,o5e(s));r&&(i=F$(i,r)),this.sendEnvelope(i).then(s=>this.emit("afterSendEvent",e,s))}sendSession(e){const{release:n,environment:r=wL}=this._options;if("aggregates"in e){const s=e.attrs||{};if(!s.release&&!n){Vt&&wt.warn(Y$);return}s.release=s.release||n,s.environment=s.environment||r,e.attrs=s}else{if(!e.release&&!n){Vt&&wt.warn(Y$);return}e.release=e.release||n,e.environment=e.environment||r}this.emit("beforeSendSession",e);const i=u5e(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,n,r=1){if(this._options.sendClientReports){const i=`${e}:${n}`;Vt&&wt.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(e,n){const r=this._hooks[e]=this._hooks[e]||new Set,i=(...s)=>n(...s);return r.add(i),()=>{r.delete(i)}}emit(e,...n){const r=this._hooks[e];r&&r.forEach(i=>
209i(...n))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(n){return Vt&&wt.error("Error while sending envelope:",n),{}}return Vt&&wt.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=$5e(this,e),G$(this,e)}_updateSessionFromEvent(e,n){let r=n.level==="fatal",i=!1;const s=n.exception?.values;if(s){i=!0,r=!1;for(const u of s)if(u.mechanism?.handled===!1){r=!0;break}}const a=e.status==="ok";(a&&e.errors===0||a&&r)&&(gv(e,{...r&&{status:"crashed"},errors:e.errors||Number(i||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let n=0;for(;!e||n<e;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,i){const s=this.getOptions(),a=this.getIntegrationNames();return!n.integrations&&a.length&&(n.integrations=a),this.emit("preprocessEvent",e,n),e.type||i.setLastEventId(e.event_id||n.event_id),S5e(s,e,n,r,this,i).then(c=>{if(c===null)return c;this.emit("postprocessEvent",c,n),c.contexts={trace:{...c.contexts?.trace,...vTe(r)},...c.contexts};const u=CK(this,r);return c.sdkProcessingMetadata={dynamicSamplingContext:u,...c.sdkProcessingMetadata},c})}_captureEvent(e,n={},r=zu(),i=wf()){return Vt&&V3(e)&&wt.log(`Captured error event \`${UK(e)[0]||"<unknown>"}\``),this._processEvent(e,n,r,i).then(s=>s.event_id,s=>{Vt&&(Q$(s)?wt.log(s.message):X$(s)?wt.warn(s.message):wt.warn(s))})}_processEvent(e,n,r,i){const s=this.getOptions(),{sampleRate:a}=s,c=HK(e),u=V3(e),p=`before send for type \`${e.type||"error"}\``,v=typeof a>"u"?void 0:FTe(a);if(u&&typeof v=="number"&&sx()>v)return this.recordDroppedEvent("sample_rate","error"),CL(RA(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));const y=J$(e.type);return this._prepareEvent(e,n,r,i).then(E=>{if(E===null)throw this.recordDroppedEvent("event_processor",y),RA("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return E;const x=dRe(this,s,E,n);return uRe(x,p)}).then(E=>{if(E===null){if(this.recordDroppedEvent("before_send",y),c){const R=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",R)}throw RA(`${p} returned \`null\`, will not send event.`)}const S=r.getSession()||i.getSession();if(u&&S&&this._updateSessionFromEvent(S,E),c){const C=E.sdkProcessingMetadata?.spanCountBeforeProcessing||0,R=E.spans?E.spans.length:0,A=C-R;A>0&&this.recordDroppedEvent("before_send","span",A)}const x=E.transaction_info;if(c&&x&&E.transaction!==e.transaction){const C="custom";E.transaction_info={...x,source:C}}return this.sendEvent(E,n),E}).then(null,E=>{throw Q$(E)||X$(E)?E:(this.captureException(E,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:E}),N2(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 210Reason: ${E}`))})}_process(e,n){this._numProcessing++,this._promiseBuffer.add(e).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===TL&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,r])=>{const[i,s]=n.split(":");return{reason:i,category:s,quantity:r}})}_flushOutcomes(){Vt&&wt.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){Vt&&wt.log("No outcomes to send");return}if(!this._dsn){Vt&&wt.log("No dsn provided, will not send outcomes");return}Vt&&wt.log("Sending outcomes:",e);const n=nRe(e,this._options.tunnel&&jb(this._dsn));this.sendEnvelope(n)}}function J$(t){return t==="replay_event"?"replay":t||"error"}function uRe(t,e){const n=`${e} must return \`null\` or a valid event.`;if($b(t))return t.then(r=>{if(!eb(r)&&r!==null)throw N2(n);return r},r=>{throw N2(`${e} rejected with ${r}`)});if(!eb(t)&&t!==null)throw N2(n);return t}function dRe(t,e,n,r){const{beforeSend:i,beforeSendTransaction:s,ignoreSpans:a}=e,c=!n5e(e.beforeSendSpan)&&e.beforeSendSpan;let u=n;if(V3(u)&&i)return i(u,r);if(HK(u)){if(c||a){const h=rRe(u);
210if(a?.length&&$$({description:h.description,op:h.op,attributes:h.data},a))return null;if(c){const p=c(h);p?u=Bb(n,iRe(p)):M$()}if(u.spans){const p=[],v=u.spans;for(const E of v){if(a?.length&&$$({description:E.description,op:E.op,attributes:E.data},a)){XTe(v,E);continue}if(c){const S=c(E);S?p.push(S):(M$(),p.push(E))}else p.push(E)}const y=u.spans.length-p.length;y&&t.recordDroppedEvent("before_send","span",y),u.spans=p}}if(s){if(u.spans){const h=u.spans.length;u.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:h}}return s(u,r)}}return u}function V3(t){return t.type===void 0}function HK(t){return t.type==="transaction"}function fRe(t){let e=0;return t.name&&(e+=t.name.length*2),e+=8,e+zK(t.attributes)}function hRe(t){let e=0;return t.message&&(e+=t.message.length*2),e+zK(t.attributes)}function zK(t){if(!t)return 0;let e=0;return Object.values(t).forEach(n=>{Array.isArray(n)?e+=n.length*e8(n[0]):Nb(n)?e+=e8(n):e+=100}),e}function e8(t){return typeof t=="string"?t.length*2:typeof t=="number"?8:typeof t=="boolean"?4:0}function pRe(t,e){e.debug===!0&&(Vt?wt.enable():Iv(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),zu().update(e.initialScope);const r=new t(e);return gRe(r),r.init(),r}function gRe(t){zu().setClient(t)}function mRe(t){"aggregates"in t?t.attrs?.ip_address===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function VK(t,e,n=[e],r="npm"){const i=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${e}`,i.packages=n.map(s=>({name:`${r}:@sentry/${s}`,version:cp})),i.version=cp)}const vRe=100;function wp(t,e){const n=As(),r=wf();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=vRe}=n.getOptions();if(s<=0)return;const c={timestamp:Ub(),...t},u=i?Iv(()=>i(c,e)):c;u!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",u,e),r.addBreadcrumb(u,s))}let t8;const yRe="FunctionToString",n8=new WeakMap,_Re=(()=>({name:yRe,setupOnce(){t8=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=EL(this),n=n8.has(As())&&e!==void 0?e:this;return t8.apply(n,t)}}catch{}},setup(t){n8.set(t,!0)}})),bRe=_Re,ERe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],SRe="EventFilters",wRe=(t={})=>{let e;return{name:SRe,setup(n){const r=n.getOptions();e=r8(t,r)},processEvent(n,r,i){if(!e){const s=i.getOptions();e=r8(t,s)}return xRe(n,e)?null:n}}},CRe=((t={})=>({...wRe(t),name:"InboundFilters"}));function r8(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:ERe],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function xRe(t,e){if(t.type){if(t.type==="transaction"&&RRe(t,e.ignoreTransactions))return Vt&&wt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 211Event: ${zh(t)}`),!0}else{if(TRe(t,e.ignoreErrors))return Vt&&wt.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 212Event: ${zh(t)}`),!0;if(PRe(t))return Vt&&wt.warn(`Event dropped due to not having an error message, error type or stacktrace. 213Event: ${zh(t)}`),!0;if(ARe(t,e.denyUrls))return Vt&&wt.warn(`Event dropped due to being matched by \`denyUrls\` option. 214Event: ${zh(t)}. 215Url: ${ox(t)}`),!0;if(!ORe(t,e.allowUrls))return Vt&&wt.warn(`Event dropped due to not being matched by \`allowUrls\` option. 216Event: ${zh(t)}. 217Url: ${ox(t)}`),!0}return!1}function TRe(t,e){return e?.length?UK(t).some(n=>Fb(n,e)):!1}function RRe(t,e){if(!e?.length)return!1;const n=t.transaction;return n?Fb(n,e):!1}function ARe(t,e){if(!e?.length)return!1;const n=ox(t);return n?Fb(n,e):!1}function ORe(t,e){if(!e?.length)return!0;const n=ox(t);return n?Fb(n,e):!0}function IRe(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function ox(t){try{const n=[...t.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?IRe(n):null}catch{return Vt&&wt.error(`Cannot extract url for event ${zh(t)}`),null}}function PRe(t){return t.exception?.values?.length?!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value):!1}function LRe(t,e,n,r,i,s){if(!i.exception?.values||!s||!pv(s.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=q3(t,e,r,s.originalException,n,i.exception.values,a,0))}function q3(t,e,n,r,i,s,a,c){if(s.length>=n+1)return s;let u=[...s];if(pv(r[i],Error)){i8(a,c,r);const h=t(e,r[i]),p=u.length;s8(h,i,p,c),u=q3(t,e,n,r[i],i,[h,...u],h,p)}
217return qK(r)&&r.errors.forEach((h,p)=>{if(pv(h,Error)){i8(a,c,r);const v=t(e,h),y=u.length;s8(v,`errors[${p}]`,y,c),u=q3(t,e,n,h,i,[v,...u],v,y)}}),u}function qK(t){return Array.isArray(t.errors)}function i8(t,e,n){t.mechanism={handled:!0,type:"auto.core.linked_errors",...qK(n)&&{is_exception_group:!0},...t.mechanism,exception_id:e}}function s8(t,e,n,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function kRe(t){return gT(t)&&"__sentry_fetch_url_host__"in t&&typeof t.__sentry_fetch_url_host__=="string"}function o8(t){return kRe(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}const a8=new Set([]);function MRe(t){const e="console",n=Mp(e,t);return Dp(e,DRe),n}function DRe(){"console"in vn&&xxe.forEach(function(t){t in vn.console&&Zo(vn.console,t,function(e){return ix[t]=e,function(...n){const r=n[0],i=ix[t],s=a8.size&&typeof r=="string"&&Fb(r,a8);s||yl("console",{args:n,level:t}),(!s||Vt&&wt.isEnabled())&&i?.apply(vn.console,n)}})})}function NRe(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const $Re="Dedupe",FRe=(()=>{let t;return{name:$Re,processEvent(e){if(e.type)return e;try{if(BRe(e,t))return Vt&&wt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}}),URe=FRe;function BRe(t,e){return e?!!(jRe(t,e)||HRe(t,e)):!1}function jRe(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!GK(t,e)||!WK(t,e))}function HRe(t,e){const n=l8(e),r=l8(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!GK(t,e)||!WK(t,e))}function WK(t,e){let n=m$(t),r=m$(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const s=r[i],a=n[i];if(s.filename!==a.filename||s.lineno!==a.lineno||s.colno!==a.colno||s.function!==a.function)return!1}return!0}function GK(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function l8(t){return t.exception?.values?.[0]}const zRe="ConversationId",VRe=(()=>({name:zRe,setup(t){t.on("spanStart",e=>{const n=zu().getScopeData(),r=wf().getScopeData(),i=n.conversationId||r.conversationId;if(i){const{op:s,data:a,description:c}=yT(e);if(!s?.startsWith("gen_ai.")&&!a["ai.operationId"]&&!c?.startsWith("ai."))return;e.setAttribute(wTe,i)}})}})),qRe=VRe;function KK(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const nb=vn;function WRe(){return"history"in nb&&!!nb.history}function GRe(){if(!("fetch"in nb))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function W3(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function KRe(){if(typeof EdgeRuntime=="string")return!0;if(!GRe())return!1;if(W3(nb.fetch))return!0;let t=!1;const e=nb.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=W3(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){Vt&&wt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function YRe(t,e){const n="fetch",r=Mp(n,t);return Dp(n,()=>XRe(void 0,e)),r}function XRe(t,e=!1){e&&!KRe()||Zo(vn,"fetch",function(n){return function(...r){const i=new Error,{method:s,url:a}=QRe(r),c={args:r,fetchData:{method:s,url:a},startTimestamp:Du()*1e3,virtualError:i,headers:ZRe(r)};return yl("fetch",{...c}),n.apply(vn,r).then(async u=>(yl("fetch",{...c,endTimestamp:Du()*1e3,response:u}),u),u=>{yl("fetch",{...c,endTimestamp:Du()*1e3,error:u}),gT(u)&&u.stack===void 0&&(u.stack=i.stack,yf(u,"framesToPop",1));const p=As()?.getOptions().enhanceFetchErrorMessages??"always";if(p!==!1&&u instanceof TypeError&&(u.message==="Failed to fetch"||u.message==="Load failed"||u.message==="NetworkError when attempting to fetch resource."))try{const E=new URL(c.fetchData.url).host;p==="always"?u.message=`${u.message} (${E})`:yf(u,"__sentry_fetch_url_host__",E)}catch{}throw u})}})}function $2(t,e){return!!t&&typeof t=="object"&&!!t[e]}function c8(t){return typeof t=="string"?t:t?$2(t,"url")?t.url:t.toString?t.toString():"":""}function QRe(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:c8(n),method:$2(r,"method")?String(r.method).toUpperCase():aK(n)&&$2(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:c8(e),method:$2(e,"method")?String(e.method).toUpperCase():"GET"}}function ZRe(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(aK(e))return new Headers(e.headers)}catch{}}const YK=vn;function AL(){try{return YK.document.location.href}catch{return""}}
217function JRe(t,e=5){if(!YK.HTMLElement)return null;let n=t;for(let r=0;r<e;r++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}const Er=vn;let G3=0;function XK(){return G3>0}function eAe(){G3++,setTimeout(()=>{G3--})}function vv(t,e={}){function n(i){return typeof i=="function"}if(!n(t))return t;try{if(Object.prototype.hasOwnProperty.call(t,"__sentry_wrapped__")){const s=t.__sentry_wrapped__;return typeof s=="function"?s:t}if(EL(t))return t}catch{return t}const r=function(...i){vn._sentryWrappedDepth=(vn._sentryWrappedDepth||0)+1;try{const s=i.map(a=>vv(a,e));return t.apply(this,s)}catch(s){throw eAe(),mTe(a=>{a.addEventProcessor(c=>(e.mechanism&&($3(c,void 0),up(c,e.mechanism)),c.extra={...c.extra,arguments:i},c)),OK(s)}),s}finally{vn._sentryWrappedDepth=(vn._sentryWrappedDepth||0)-1}};try{for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch{}lK(r,t),yf(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function u8(){const t=AL(),{referrer:e}=Er.document||{},{userAgent:n}=Er.navigator||{},r={...e&&{Referer:e},...n&&{"User-Agent":n}};return{url:t,headers:r}}function OL(t,e){const n=_T(t,e),r={type:sAe(e),value:oAe(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function tAe(t,e,n,r){const s=As()?.getOptions().normalizeDepth,a=dAe(e),c={__serialized__:dK(e,s)};if(a)return{exception:{values:[OL(t,a)]},extra:c};const u={exception:{values:[{type:mT(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:cAe(e,{isUnhandledRejection:r})}]},extra:c};if(n){const h=_T(t,n);h.length&&(u.exception.values[0].stacktrace={frames:h})}return u}function AA(t,e){return{exception:{values:[OL(t,e)]}}}function _T(t,e){const n=e.stacktrace||e.stack||"",r=rAe(e),i=iAe(e);try{return t(n,r,i)}catch{}return[]}const nAe=/Minified React error #\d+;/i;function rAe(t){return t&&nAe.test(t.message)?1:0}function iAe(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function QK(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function sAe(t){const e=t?.name;return!e&&QK(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function oAe(t){const e=t?.message;return QK(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?o8(e.error):o8(t):"No error message"}function aAe(t,e,n,r){const i=n?.syntheticException||void 0,s=IL(t,e,i,r);return up(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),Hb(s)}function lAe(t,e,n="info",r,i){const s=r?.syntheticException||void 0,a=K3(t,e,s,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),Hb(a)}function IL(t,e,n,r,i){let s;if(oK(e)&&e.error)return AA(t,e.error);if(y$(e)||Fxe(e)){const a=e;if("stack"in e){s=AA(t,e);const c=s.exception?.values?.[0];if(r&&n&&c&&!c.stacktrace){const u=_T(t,n);u.length&&(c.stacktrace={frames:u},up(s,{synthetic:!0}))}}else{const c=a.name||(y$(a)?"DOMError":"DOMException"),u=a.message?`${c}: ${a.message}`:c;s=K3(t,u,n,r),$3(s,u)}return"code"in a&&(s.tags={...s.tags,"DOMException.code":`${a.code}`}),s}return gT(e)?AA(t,e):eb(e)||mT(e)?(s=tAe(t,e,n,i),up(s,{synthetic:!0}),s):(s=K3(t,e,n,r),$3(s,`${e}`),up(s,{synthetic:!0}),s)}function K3(t,e,n,r){const i={};if(r&&n){const s=_T(t,n);s.length&&(i.exception={values:[{value:e,stacktrace:{frames:s}}]}),up(i,{synthetic:!0})}if(bL(e)){const{__sentry_template_string__:s,__sentry_template_values__:a}=e;return i.logentry={message:s,params:a},i}return i.message=e,i}function cAe(t,{isUnhandledRejection:e}){const n=Bxe(t),r=e?"promise rejection":"exception";return oK(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:mT(t)?`Event \`${uAe(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function uAe(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function dAe(t){return Object.values(t).find(e=>e instanceof Error)}class fAe extends cRe{constructor(e){const n=hAe(e),r=Er.SENTRY_SDK_SOURCE||U5e();VK(n,"browser",["browser"],r),super(n);const{userInfo:i}=this.getDataCollectionOptions();n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:i?"auto":"never",...n._metadata.sdk.settings});const{sendClientReports:s,enableLogs:a,_experiments:c,enableMetrics:u}=this._options,h=u??c?.enableMetrics??!0;Er.document&&(s||a||h)&&Er.document.addEventListener("visibilitychange",()=>{Er.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),a&&z3(this),h&&DK(this))}),i&&this.on("beforeSendSession",mRe)}eventFromException(e,n){return aAe(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return lAe(this._options.stackParser,e,n,r,this._options.attachStacktrace)}_prepareEvent(e,n,r,i){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r,i)}}function hAe(t){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Er.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}const pAe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ys=vn,gAe=80,Uh={};try{typeof Node<"u"&&(Uh.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),typeof Element<"u"&&(Uh.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,Uh.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,Uh.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,Uh.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<"u"&&(Uh.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function Kd(t,e,n){const r=Uh[e];if(r)try{return r.call(t,n)}catch{}const i=t[e];return typeof i=="function"?i.call(t,n):i}function ZK(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,i=[];let s=0,a=0;const c=" > ",u=c.length;let h;const p=Array.isArray(e)?e:e.keyAttrs,v=!Array.isArray(e)&&e.maxStringLength||gAe;for(;n&&s++<r&&(h=mAe(n,p),!(h==="html"||s>1&&a+i.length*u+h.length>=v));)i.push(h),a+=h.length,n=Kd(n,"parentNode");return i.reverse().join(c)}catch{return"<unknown>"}}function mAe(t,e){const n=[],r=Kd(t,"tagName");if(!r)return"";if(typeof HTMLElement<"u"&&t instanceof HTMLElement){const s=Kd(t,"dataset");if(s){if(s.sentryComponent)return s.sentryComponent;if(s.sentryElement)return s.sentryElement}}n.push(r.toLowerCase());const i=e?.length?e.filter(s=>Kd(t,"getAttribute",s)).map(s=>[s,Kd(t,"getAttribute",s)]):null;if(i?.length)i.forEach(s=>
217{n.push(`[${s[0]}="${s[1]}"]`)});else{const s=Kd(t,"id");s&&n.push(`#${s}`);const a=Kd(t,"className");if(a&&Mu(a)){const c=a.split(/\s+/);for(const u of c)n.push(`.${u}`)}}for(const s of["aria-label","type","name","title","alt"]){const a=Kd(t,"getAttribute",s);a&&n.push(`[${s}="${a}"]`)}return n.join("")}const vAe=1e3;let d8,Y3,X3;function yAe(t){Mp("dom",t),Dp("dom",_Ae)}function _Ae(){if(!Ys.document)return;const t=yl.bind(null,"dom"),e=f8(t,!0);Ys.document.addEventListener("click",e,!1),Ys.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const i=Ys[n]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(Zo(i,"addEventListener",function(s){return function(a,c,u){if(a==="click"||a=="keypress")try{const h=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},p=h[a]=h[a]||{refCount:0};if(!p.handler){const v=f8(t);p.handler=v,s.call(this,a,v,u)}p.refCount++}catch{}return s.call(this,a,c,u)}}),Zo(i,"removeEventListener",function(s){return function(a,c,u){if(a==="click"||a=="keypress")try{const h=this.__sentry_instrumentation_handlers__||{},p=h[a];p&&(p.refCount--,p.refCount<=0&&(s.call(this,a,p.handler,u),p.handler=void 0,delete h[a]),Object.keys(h).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,a,c,u)}}))})}function bAe(t){if(t.type!==Y3)return!1;try{if(!t.target||t.target._sentryId!==X3)return!1}catch{}return!0}function EAe(t,e){return t!=="keypress"?!1:e?.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function f8(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=SAe(n);if(EAe(n.type,r))return;yf(n,"_sentryCaptured",!0),r&&!r._sentryId&&yf(r,"_sentryId",Oa());
217const i=n.type==="keypress"?"input":n.type;bAe(n)||(t({event:n,name:i,global:e}),Y3=n.type,X3=r?r._sentryId:void 0),clearTimeout(d8),d8=Ys.setTimeout(()=>{X3=void 0,Y3=void 0},vAe)}}function SAe(t){try{return t.target}catch{return null}}let Mw;function JK(t){const e="history";Mp(e,t),Dp(e,wAe)}function wAe(){if(Ys.addEventListener("popstate",()=>{const e=Ys.location.href,n=Mw;if(Mw=e,n===e)return;yl("history",{from:n,to:e})}),!WRe())return;function t(e){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=Mw,s=CAe(String(r));if(Mw=s,i===s)return e.apply(this,n);yl("history",{from:i,to:s})}return e.apply(this,n)}}Zo(Ys.history,"pushState",t),Zo(Ys.history,"replaceState",t)}function CAe(t){try{return new URL(t,Ys.location.origin).toString()}catch{return t}}const F2={};function xAe(t){const e=F2[t];if(e)return e;let n=Ys[t];if(W3(n))return F2[t]=n.bind(Ys);const r=Ys.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const s=i.contentWindow;s?.[t]&&(n=s[t]),r.head.removeChild(i)}catch(i){pAe&&wt.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,i)}return n&&(F2[t]=n.bind(Ys))}function TAe(t){F2[t]=void 0}const K_="__sentry_xhr_v3__";function RAe(t){Mp("xhr",t),Dp("xhr",AAe)}function AAe(){if(!Ys.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){const i=new Error,s=Du()*1e3,a=Mu(r[0])?r[0].toUpperCase():void 0,c=OAe(r[1]);if(!a||!c)return e.apply(n,r);n[K_]={method:a,url:c,request_headers:{}},a==="POST"&&c.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const u=()=>{const h=n[K_];if(h&&n.readyState===4){try{h.status_code=n.status}catch{}const p={endTimestamp:Du()*1e3,startTimestamp:s,xhr:n,virtualError:i};yl("xhr",p)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(h,p,v){return u(),h.apply(p,v)}}):n.addEventListener("readystatechange",u),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(h,p,v){const[y,E]=v,S=p[K_];return S&&Mu(y)&&Mu(E)&&(S.request_headers[y.toLowerCase()]=E),h.apply(p,v)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const i=n[K_];if(!i)return e.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:Du()*1e3,xhr:n};return yl("xhr",s),e.apply(n,r)}})}function OAe(t){if(Mu(t))return t;try{return t.toString()}catch{}}function IAe(t){if(typeof Element>"u")return!1;try{return t instanceof Element}catch{return!1}}const PAe=40;function LAe(t,e=xAe("fetch")){let n=0,r=0;async function i(s){const a=s.body.length;n+=a,r++;const c={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const u=await e(t.url,c);return{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}}catch(u){throw TAe("fetch"),u}finally{n-=a,r--}}return tRe(t,i,RL(t.bufferSize||PAe))}const bT=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,kAe=30,MAe=50;function Q3(t,e,n,r){const i={filename:t,function:e==="<anonymous>"?Sp:e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const DAe=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,NAe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,$Ae=/\((\S*)(?::(\d+))(?::(\d+))\)/,FAe=/at (.+?) ?\(data:(.+?),/,UAe=t=>{const e=t.match(FAe);if(e)return{filename:`<data:${e[2]}>`,function:e[1]};const n=DAe.exec(t);if(n){const[,i,s,a]=n;return Q3(i,Sp,+s,+a)}const r=NAe.exec(t);if(r){if(r[2]?.indexOf("eval")===0){const c=$Ae.exec(r[2]);c&&(r[2]=c[1],r[3]=c[2],r[4]=c[3])}const[s,a]=eY(r[1]||Sp,r[2]);return Q3(a,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},BAe=[kAe,UAe],jAe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,HAe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,zAe=t=>{const e=jAe.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const s=HAe.exec(e[3]);s&&(e[1]=e[1]||"eval",e[3]=s[1],e[4]=s[2],e[5]="")}let r=e[3],i=e[1]||Sp;return[i,r]=eY(i,r),Q3(r,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},VAe=[MAe,zAe],qAe=[BAe,VAe],WAe=iK(...qAe),eY=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Sp,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Dw=1024,GAe="Breadcrumbs",KAe=((t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:GAe,setup(n){e.console&&MRe(ZAe(n)),e.dom&&yAe(QAe(n,e.dom)),e.xhr&&RAe(JAe(n)),e.fetch&&YRe(eOe(n)),e.history&&JK(tOe(n)),e.sentry&&n.on("beforeSendEvent",XAe(n))}}}),YAe=KAe;function XAe(t){return function(n){As()===t&&wp({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:zh(n)},{event:n})}}function QAe(t,e){return function(r){if(As()!==t)return;let i,s,a=typeof e=="object"?e.serializeAttribute:void 0,c=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;c&&c>Dw&&(bT&&wt.warn(`\`dom.maxStringLength\` cannot exceed ${Dw}, but a value of ${c} was configured. Sentry will use ${Dw}
217 instead.`),c=Dw),typeof a=="string"&&(a=[a]);try{const h=r.event,p=nOe(h)?h.target:h;i=ZK(p,{keyAttrs:a,maxStringLength:c}),s=JRe(p)}catch{i="<unknown>"}if(i.length===0)return;const u={category:`ui.${r.name}`,message:i};s&&(u.data={"ui.component_name":s}),wp(u,{event:r.event,name:r.name,global:r.global})}}function ZAe(t){return function(n){if(As()!==t)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:NRe(n.level),message:b$(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${b$(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;wp(r,{input:n.args,level:n.level})}}function JAe(t){return function(n){if(As()!==t)return;const{startTimestamp:r,endTimestamp:i}=n,s=n.xhr[K_];if(!r||!i||!s)return;const{method:a,url:c,status_code:u,body:h}=s,p={method:a,url:c,status_code:u},v={xhr:n.xhr,input:h,startTimestamp:r,endTimestamp:i},y={category:"xhr",data:p,type:"http",level:KK(u)};t.emit("beforeOutgoingRequestBreadcrumb",y,v),wp(y,v)}}function eOe(t){return function(n){if(As()!==t)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},a={category:"fetch",data:n.fetchData,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",a,s),wp(a,s)}else{const s=n.response,a={...n.fetchData,status_code:s?.status},c={input:n.args,response:s,startTimestamp:r,endTimestamp:i},u={category:"fetch",data:a,type:"http",level:KK(a.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",u,c),wp(u,c)}}}function tOe(t){return function(n){if(As()!==t)return;let r=n.from,i=n.to;const s=CA(Er.location.href);let a=r?CA(r):void 0;const c=CA(i);a?.path||(a=s),s.protocol===c.protocol&&s.host===c.host&&(i=c.relative),s.protocol===a.protocol&&s.host===a.host&&(r=a.relative),wp({category:"navigation",data:{from:r,to:i}})}}function nOe(t){return!!t&&!!t.target}const rOe="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),iOe="BrowserApiErrors",sOe=((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:iOe,setupOnce(){e.setTimeout&&Zo(Er,"setTimeout",h8),e.setInterval&&Zo(Er,"setInterval",h8),e.requestAnimationFrame&&Zo(Er,"requestAnimationFrame",aOe),e.XMLHttpRequest&&"XMLHttpRequest"in Er&&Zo(XMLHttpRequest.prototype,"send",lOe);const n=e.eventTarget;n&&(Array.isArray(n)?n:rOe).forEach(i=>cOe(i,e))}}}),oOe=sOe;function h8(t){return function(...e){const n=e[0];return e[0]=vv(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${vf(t)}`}}),t.apply(this,e)}}function aOe(t){return function(e){return t.apply(this,[vv(e,{mechanism:{data:{handler:vf(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function lOe(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Zo(n,i,function(s){const a={mechanism:{data:{handler:vf(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${i}`}},c=EL(s);return c&&(a.mechanism.data.handler=vf(c)),vv(s,a)})}),t.apply(this,e)}}function cOe(t,e){const r=Er[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Zo(r,"addEventListener",function(i){return function(s,a,c){try{uOe(a)&&(a.handleEvent=vv(a.handleEvent,{mechanism:{data:{handler:vf(a),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&dOe(this,s,a),i.apply(this,[s,vv(a,{mechanism:{data:{handler:vf(a),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),c])}}),Zo(r,"removeEventListener",function(i){return function(s,a,c){try{if(Object.prototype.hasOwnProperty.call(a,"__sentry_wrapped__")){const u=a.__sentry_wrapped__;u&&i.call(this,s,u,c)}}catch{}return i.call(this,s,a,c)}}))}function uOe(t){return typeof t.handleEvent=="function"}function dOe(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const fOe=(t={})=>{const e=t.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof Er.document>"u"){bT&&wt.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}q$({ignoreDuration:!0}),TA();const n=wf();let r=n.getUser();n.addScopeListener(i=>{const s=i.getUser();(r?.id!==s?.id||r?.ip_address!==s?.ip_address)&&(TA(),r=s)}),e==="route"&&JK(({from:i,to:s})=>{i!==s&&(q$({ignoreDuration:!0}),TA())})}}},hOe="CultureContext",pOe=(()=>({name:hOe,preprocessEvent(t){const e=p8();e&&(t.contexts={...t.contexts,culture:{...e,...t.contexts?.culture}})},processSegmentSpan(t){const e=p8();e&&AK(t,{"culture.locale":e.locale,"culture.timezone":e.timezone,"culture.calendar":e.calendar})}})),gOe=pOe;function p8(){try{const t=Er.Intl;if(!t)return;const e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}const mOe="GlobalHandlers",vOe=((t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:mOe,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(_Oe(n),g8("onerror")),e.onunhandledrejection&&(bOe(n),g8("onunhandledrejection"))}}}),yOe=vOe;function _Oe(t){Mxe(e=>{const{stackParser:n,attachStacktrace:r}=tY();if(As()!==t||XK())return;const{msg:i,url:s,line:a,column:c,error:u}=e,h=wOe(IL(n,u||i,void 0,r,!1),s,a,c);h.level="error",IK(h,{originalException:u,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function bOe(t){Nxe(e=>{const{stackParser:n,attachStacktrace:r}=tY();if(As()!==t||XK())return;const i=EOe(e),s=Nb(i)?SOe(i):IL(n,i,void 0,r,!0);s.level="error",IK(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function EOe(t){if(Nb(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function SOe(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function wOe(t,e,n,r){const i=t.exception=t.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},c=a.stacktrace=a.stacktrace||{},u=c.frames=c.frames||[];return u.length===0&&u.push({colno:r,lineno:n,filename:COe(e)??AL(),function:Sp,in_app:!0}),t}function g8(t){bT&&wt.log(`Global Handler attached: ${t}`)}function tY(){return As()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function COe(t){if(!(!Mu(t)||t.length===0))return t.startsWith("data:")?`<${_5e(t,!1)}>`:t}const xOe=()=>({name:"HttpContext",preprocessEvent(t){if(!Er.navigator&&!Er.location&&!Er.document)return;const e=u8(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}},processSegmentSpan(t){if(!Er.navigator&&!Er.location&&!Er.document)return;const e=u8();AK(t,{"url.full":e.url||void 0,"http.request.header.user_agent":e.headers["User-Agent"],"http.request.header.referer":e.headers.Referer})}}),TOe="cause",ROe=5,AOe="LinkedErrors",OOe=((t={})=>{const e=t.limit||ROe,n=t.key||TOe;return{name:AOe,preprocessEvent(r,i,s){const a=s.getOptions();LRe(OL,a.stackParser,n,e,r,i)}}}),IOe=OOe,POe=/^HTML(\w*)Element$/;function nY(t){if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(IAe(t)){const e=LOe(t);if(POe.test(e))return`[HTMLElement: ${ZK(t)}]`}}function LOe(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function kOe(){return MOe()?(bT&&Iv(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function MOe(){if(typeof Er.window>"u")return!1;const t=Er;if(t.nw||!(t.chrome||t.browser)?.runtime?.id)return!1;const n=AL();return!(Er===Er.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}function DOe(t){return[CRe(),bRe(),qRe(),oOe(),YAe(),yOe(),IOe(),URe(),xOe(),gOe(),fOe()]}function NOe(t={}){const e=!t.skipBrowserExtensionCheck&&kOe();let n=t.defaultIntegrations==null?DOe():t.defaultIntegrations;const r={...t,enabled:e?!1:t.enabled,stackParser:Lxe(t.stackParser||WAe),integrations:N5e({integrations:t.integrations,defaultIntegrations:n}),transport:t.transport||LAe};return uK(nY),pRe(fAe,r)}function $Oe(t){return eb(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function FOe(t){const e={...t};VK(e,"react"),O5e("react",{version:_.version});const n=NOe(e);return uK(UOe),n}function UOe(t){return $Oe(t)?"[SyntheticEvent]":nY(t)}const BOe=new Set(["1","true","yes","on"]),jOe=t=>{try{const e=new URL(t.trim());return(e.protocol==="https:"||e.protocol==="http:")&&/^\w+$/.test(e.username)&&!!e.hostname&&/^\/\d+\/?$/.test(e.pathname)}catch{return!1}},HOe=(t,e)=>jOe(t)&&!BOe.has(e.trim().toLowerCase()),zOe=t=>t.trim()||"web",VOe=t=>{FOe({dsn:t.dsn,environment:t.environment,release:t.release?.trim()||void 0,tracesSampleRate:0,sendDefaultPii:!1})},qOe=t=>{OK(t)},WOe="guest_id",GOe="flow",rY="landing_demo",PL="dessence_landing_demo_guest_id",LL="dessence_landing_demo_resume",KOe=/^[a-zA-Z0-9_-]{8,128}$/,Mv=()=>{try{return typeof window>"u"?void 0:window.sessionStorage}catch{return}},kL=t=>{const e=t?.trim();if(!(!e||!KOe.test(e)))return e},iY=t=>new URLSearchParams(t).get(GOe)===rY,sY=t=>{const e=new URLSearchParams(t);return kL(e.get(WOe))},oY=()=>{const t=Mv();if(t)try{return kL(t.getItem(PL))}catch{return}},YOe=t=>{const e=kL(t),n=Mv();if(!e||!n)return e;
217try{n.setItem(PL,e)}catch{return e}return e},XOe=()=>{const t=Mv();if(t)try{t.removeItem(PL)}catch{}},Pke=t=>{const e=sY(t);return e&&iY(t)?YOe(e):oY()},QOe=t=>{const e=Mv();if(e)try{const n={t0:Date.now(),contextId:t};e.setItem(LL,JSON.stringify(n))}catch{}},Lke=()=>{const t=Mv();if(t)try{const e=t.getItem(LL);if(!e)return;const n=JSON.parse(e);return typeof n.t0!="number"||typeof n.contextId!="string"||!n.contextId?void 0:{t0:n.t0,contextId:n.contextId}}catch{return}},kke=()=>{const t=Mv();if(t)try{t.removeItem(LL)}catch{}},ZOe=t=>{const e=Cr.c(14),{children:n}=t,[r,i]=_.useState(JOe),s=tV();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{i(Cp())},e[0]=a):a=e[0];const c=a;let u,h;e[1]!==s||e[2]!==r?(u=()=>{nne(s,r,!1,{landing_visit_id:QG(),guest_id:oY()},tK(!1,ir.VITE_BASE_URL))},h=[s,r],e[1]=s,e[2]=r,e[3]=u,e[4]=h):(u=e[3],h=e[4]),_.useEffect(u,h);let p,v;e[5]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{const O=()=>{document.visibilityState==="visible"&&c()};return window.addEventListener("focus",c),document.addEventListener("visibilitychange",O),()=>{window.removeEventListener("focus",c),document.removeEventListener("visibilitychange",O)}},v=[c],e[5]=p,e[6]=v):(p=e[5],v=e[6]),_.useEffect(p,v);let y;e[7]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{rne(),i("granted")},e[7]=y):y=e[7];const E=y;let S;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{ine(),i("denied")},e[8]=S):S=e[8];const x=S;let C;e[9]!==r?(C={status:r,grantConsent:E,denyConsent:x},e[9]=r,e[10]=C):C=e[10];const R=C;let A;return e[11]!==n||e[12]!==R?(A=W.jsx(HG.Provider,{value:R,children:n}),e[11]=n,e[12]=R,e[13]=A):A=e[13],A};function JOe(){return Cp()}const eIe=()=>{const t=Cr.c(12);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=["common"],t[0]=e):e=t[0];const{t:n}=xp(e);_.useSyncExternalStore(kr.subscribe,kr.snapshot);const[r,i]=_.useState(!1);if(!kr.deniedCount()||kr.isSessionClosed())return null;let s;t[1]!==n?(s=n("common:accessDenied.message"),t[1]=n,t[2]=s):s=t[2];let a;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{i(!0),kr.recheck().finally(()=>i(!1))},t[3]=a):a=t[3];let c;t[4]!==n?(c=n("common:accessDenied.retry"),t[4]=n,t[5]=c):c=t[5];let u;t[6]!==r||t[7]!==c?(u=W.jsx(Sc,{loading:r,onClick:a,children:c}),t[6]=r,t[7]=c,t[8]=u):u=t[8];let h;return t[9]!==s||t[10]!==u?(h=W.jsx(Lq,{type:"error",showIcon:!0,title:s,action:u}),t[9]=s,t[10]=u,t[11]=h):h=t[11],h},tIe=t=>{const e=Cr.c(3),{children:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=W.jsx(eIe,{}),e[0]=r):r=e[0];let i;return e[1]!==n?(i=W.jsxs(Qre,{client:B9,children:[r,n]}),e[1]=n,e[2]=i):i=e[2],i},{trackMetaPixelEvent:aY}=zte({pixelId:ir.VITE_PUBLIC_META_PIXEL_ID,enabled:!0}),nIe=t=>aY("PageView",t),Mke=t=>aY("CompleteRegistration",t),rIe=()=>{const t=Cr.c(7),e=Pi(),{status:n}=lT();let r;t[0]!==n?(r=()=>{nIe(n)},t[0]=n,t[1]=r):r=t[1];let i;return t[2]!==e.hash||t[3]!==e.pathname||t[4]!==e.search||t[5]!==n?(i=[e.hash,e.pathname,e.search,n],t[2]=e.hash,t[3]=e.pathname,t[4]=e.search,t[5]=n,t[6]=i):i=t[6],_.useEffect(r,i),null},{trackRedditPixelEvent:lY}=Wte({enabled:!0}),iIe=t=>lY("PageVisit",t),Dke=t=>lY("SignUp",t),sIe=()=>{const t=Cr.c(7),e=Pi(),{status:n}=lT();let r;t[0]!==n?(r=()=>{iIe(n)},t[0]=n,t[1]=r):r=t[1];let i;return t[2]!==e.hash||t[3]!==e.pathname||t[4]!==e.search||t[5]!==n?(i=[e.hash,e.pathname,e.search,n],t[2]=e.hash,t[3]=e.pathname,t[4]=e.search,t[5]=n,t[6]=i):i=t[6],_.useEffect(r,i),null},oIe=()=>{const t=Cr.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=W.jsxs(W.Fragment,{children:[W.jsx(rIe,{}),W.jsx(sIe,{}),W.jsx(pP,{})]}),t[0]=e):e=t[0],e},aIe=[/failed to fetch dynamically imported module/i,/error loading dynamically imported module/i,/importing a module script failed/i,/loading chunk \S+ failed/i,/chunkloaderror/i,/unable to preload css/i],lIe=t=>{if(t instanceof Error)return[t.name,t.message,t.stack].filter(Boolean).join(` 218`);if(typeof t=="string")return t;if(t&&typeof t=="object"){const e="message"in t?t.message:void 0,n="statusText"in t?t.statusText:void 0;return[e,n].filter(r=>typeof r=="string").join(` 219`)}return""},cY=t=>{const e=lIe(t);return aIe.some(n=>n.test(e))},cIe=t=>cY(t)?{title:ni("common:routeError.updateTitle"),message:ni("common:routeError.updateMessage"),primaryAction:ni("common:routeError.updateAction")}:{title:ni("common:routeError.title"),message:ni("common:routeError.message"),primaryAction:ni("common:errorBoundary.reload")},uY="dessence:chunk-auto-reload",uIe=()=>typeof sessionStorage<"u"&&sessionStorage.getItem(uY)==="1",Z3=()=>{const t=Cr.c(22),e=Gz();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=["common"],t[0]=n):n=t[0],xp(n);let r;t[1]!==e?(r=cIe(e),t[1]=e,t[2]=r):r=t[2];const i=r;let s;t[3]!==e?(s=cY(e),t[3]=e,t[4]=s):s=t[4];const a=s;let c;t[5]!==a?(c=a&&!uIe(),t[5]=a,t[6]=c):c=t[6];const u=c;let h,p;t[7]!==e||t[8]!==a?(h=()=>{e&&!a&&qOe(e)},p=[e,a],t[7]=e,t[8]=a,t[9]=h,t[10]=p):(h=t[9],p=t[10]),_.useEffect(h,p);let v,y;if(t[11]!==u?(v=()=>{u&&(sessionStorage.setItem(uY,"1"),window.location.reload())},y=[u],t[11]=u,t[12]=v,t[13]=y):(v=t[12],y=t[13]),_.useEffect(v,y),u)return null;let E;t[14]===Symbol.for("react.memo_cache_sentinel")?(E=W.jsx(UG,{}),t[14]=E):E=t[14];let S;t[15]===Symbol.for("react.memo_cache_sentinel")?(S=W.jsx(aCe,{}),t[15]=S):S=t[15];let x;t[16]!==i.primaryAction?(x=W.jsx(Sc,{type:"primary",icon:S,onClick:dIe,children:i.primaryAction}),t[16]=i.primaryAction,t[17]=x):x=t[17];let C;return t[18]!==i.message||t[19]!==i.title||t[20]!==x?(C=W.jsx("main",{className:BG.routeError,"aria-live":"assertive",children:W.jsx(Ib,{status:"warning",icon:E,title:i.title,subTitle:i.message,extra:x})}),t[18]=i.message,t[19]=i.title,t[20]=x,t[21]=C):C=t[21],C};function dIe(){return window.location.reload()}var b_={},OA={exports:{}},m8;function ML(){return m8||(m8=1,(function(t){function e(n){return n&&n.__esModule?n:{default:n}}
219t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(OA)),OA.exports}var E_={},v8;function fIe(){if(v8)return E_;v8=1,Object.defineProperty(E_,"__esModule",{value:!0}),E_.default=void 0;const t={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};return E_.default=t,E_}var S_={},w_={},C_={},x_={},y8;function hIe(){return y8||(y8=1,Object.defineProperty(x_,"__esModule",{value:!0}),x_.commonLocale=void 0,x_.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),x_}var _8;function pIe(){if(_8)return C_;_8=1,Object.defineProperty(C_,"__esModule",{value:!0}),C_.default=void 0;var t=hIe();function e(u){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(u)}function n(u,h){var p=Object.keys(u);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(u);h&&(v=v.filter(function(y){return Object.getOwnPropertyDescriptor(u,y).enumerable})),p.push.apply(p,v)}return p}function r(u){for(var h=1;h<arguments.length;h++){var p=arguments[h]!=null?arguments[h]:{};h%2?n(Object(p),!0).forEach(function(v){i(u,v,p[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(p)):n(Object(p)).forEach(function(v){Object.defineProperty(u,v,Object.getOwnPropertyDescriptor(p,v))})}return u}function i(u,h,p){return h=s(h),h in u?Object.defineProperty(u,h,{value:p,enumerable:!0,configurable:!0,writable:!0}):u[h]=p,u}function s(u){var h=a(u,"string");return e(h)=="symbol"?h:String(h)}function a(u,h){if(e(u)!="object"||!u)return u;var p=u[Symbol.toPrimitive];if(p!==void 0){var v=p.call(u,h);if(e(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(u)}var c=r(r({},t.commonLocale),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});return C_.default=c,C_}var T_={},b8;function dY(){if(b8)return T_;b8=1,Object.defineProperty(T_,"__esModule",{value:!0}),T_.default=void 0;const t={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};return T_.default=t,T_}var E8;function fY(){if(E8)return w_;E8=1;var t=ML().default;Object.defineProperty(w_,"__esModule",{value:!0}),w_.default=void 0;var e=t(pIe()),n=t(dY());const r={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...e.default},timePickerLocale:{...n.default}};return w_.default=r,w_}var S8;function gIe(){if(S8)return S_;S8=1;var t=ML().default;Object.defineProperty(S_,"__esModule",{value:!0}),S_.default=void 0;var e=t(fY());return S_.default=e.default,S_}var w8;function mIe(){if(w8)return b_;w8=1;var t=ML().default;Object.defineProperty(b_,"__esModule",{value:!0}),b_.default=void 0;var e=t(fIe()),n=t(gIe()),r=t(fY()),i=t(dY());const s="${label} is not a valid ${type}",a={locale:"en",Pagination:e.default,DatePicker:r.default,TimePicker:i.default,Calendar:n.default,global:{placeholder:"Please select",close:"Close",sortable:"sortable",show:"Show",hide:"Hide"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label}
219 date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};return b_.default=a,b_}var IA,C8;function vIe(){return C8||(C8=1,IA=mIe()),IA}var hY=vIe();const pY=ju(hY),yIe=k8({__proto__:null,default:pY},[hY]),gY={exampleBadge:"Example",exampleBandLabel:"Example items",exampleCountOne:"1 example",exampleCountOther:"{count} examples",merchantFallback:"Store",matchExact:"Exact match",matchSimilar:"Similar",matchVerifiedSource:"Verified source",whereToBuy:"Where to buy",verifiedOffer:"Verified offer",availabilityInStock:"In stock",availabilityOutOfStock:"Out of stock",availabilityPreorder:"Preorder",discountOff:"{percent}% off",sizesInStock:"{sizes} in stock",offerStale:"May be outdated",watchedBadge:"Watched",watchedAriaLabel:"Price watched",watchThis:"Watch this",openLink:"Open Link",closeItem:"Close item",reminderKind:"Reminder",reminderFallbackTitle:"Reminder",reminderDueLabel:"Due",statusProcessing:"Processing",statusNeedsAttention:"Needs attention",formSelectPlaceholder:"Chooseâ¦"},_Ie={strings:gY,locale:"en"},mY=_.createContext(_Ie),bIe=({strings:t,locale:e,children:n})=>{const r=_.useMemo(()=>({strings:t??gY,locale:e}),[t,e]);return _.createElement(mY.Provider,{value:r},n)},Nke=()=>_.useContext(mY).strings,J3=t=>`{${t}}`,EIe=J3("count"),SIe=()=>{const t=Cr.c(83);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=["library","agent"],t[0]=e):e=t[0];const{t:n}=xp(e);let r;t[1]!==n?(r=n("library:surface.exampleBadge"),t[1]=n,t[2]=r):r=t[2];let i;t[3]!==n?(i=n("library:examples.bandAriaLabel"),t[3]=n,t[4]=i):i=t[4];let s;t[5]!==n?(s=n("library:examples.count",{count:1}),t[5]=n,t[6]=s):s=t[6];let a;t[7]!==n?(a=n("library:examples.count_other",{count:EIe}),t[7]=n,t[8]=a):a=t[8];let c;t[9]!==n?(c=n("library:surface.merchantFallback"),t[9]=n,t[10]=c):c=t[10];let u;t[11]!==n?(u=n("library:list.match.exact"),t[11]=n,t[12]=u):u=t[12];let h;t[13]!==n?(h=n("library:list.match.similarShort"),t[13]=n,t[14]=h):h=t[14];let p;t[15]!==n?(p=n("library:surface.verifiedSource"),t[15]=n,t[16]=p):p=t[16];let v;t[17]!==n?(v=n("library:detail.whereToBuy"),t[17]=n,t[18]=v):v=t[18];let y;t[19]!==n?(y=n("library:surface.verifiedOffer"),t[19]=n,t[20]=y):y=t[20];let E;t[21]!==n?(E=n("library:list.availability.inStock"),t[21]=n,t[22]=E):E=t[22];let S;t[23]!==n?(S=n("library:list.availability.outOfStock"),t[23]=n,t[24]=S):S=t[24];let x;t[25]!==n?(x=n("library:list.availability.preorder"),t[25]=n,t[26]=x):x=t[26];let C;t[27]!==n?(C=n("library:detail.purchase.discountOff",{percent:J3("percent")}),t[27]=n,t[28]=C):C=t[28];let R;t[29]!==n?(R=n("library:detail.offer.sizesInStock",{sizes:J3("sizes")}),t[29]=n,t[30]=R):R=t[30];let A;t[31]!==n?(A=n("library:detail.purchase.mayBeOutdated"),t[31]=n,t[32]=A):A=t[32];let O;t[33]!==n?(O=n("library:filters.kind.watched"),t[33]=n,t[34]=O):O=t[34];let P;t[35]!==n?(P=n("library:item.priceWatched"),t[35]=n,t[36]=P):P=t[36];let L;t[37]!==n?(L=n("library:surface.watchThis"),t[37]=n,t[38]=L):L=t[38];let D;t[39]!==n?(D=n("library:surface.openLink"),t[39]=n,t[40]=D):D=t[40];let N;t[41]!==n?(N=n("library:surface.closeItem"),t[41]=n,t[42]=N):N=t[42];let k;t[43]!==n?(k=n("library:list.kind.reminder"),t[43]=n,t[44]=k):k=t[44];let U;t[45]!==n?(U=n("library:detail.reminder.title"),t[45]=n,t[46]=U):U=t[46];let F;t[47]!==n?(F=n("library:detail.reminder.due"),t[47]=n,t[48]=F):F=t[48];let V;t[49]!==n?(V=n("library:item.status.processing"),t[49]=n,t[50]=V):V=t[50];let G;t[51]!==n?(G=n("library:item.status.needsAttention"),t[51]=n,t[52]=G):G=t[52];let Z;t[53]!==n?(Z=n("agent:form.selectPlaceholder"),t[53]=n,t[54]=Z):Z=t[54];let K;return t[55]!==r||t[56]!==y||t[57]!==E||t[58]!==S||t[59]!==x||t[60]!==C||t[61]!==R||t[62]!==A||t[63]!==O||t[64]!==P||t[65]!==L||t[66]!==i||t[67]!==D||t[68]!==N||t[69]!==k||t[70]!==U||t[71]!==F||t[72]!==V||t[73]!==G||t[74]!==Z||t[75]!==s||t[76]!==a||t[77]!==c||t[78]!==u||t[79]!==h||t[80]!==p||t[81]!==v?(K={exampleBadge:r,exampleBandLabel:i,exampleCountOne:s,exampleCountOther:a,merchantFallback:c,matchExact:u,matchSimilar:h,matchVerifiedSource:p,whereToBuy:v,verifiedOffer:y,availabilityInStock:E,availabilityOutOfStock:S,availabilityPreorder:x,discountOff:C,sizesInStock:R,offerStale:A,watchedBadge:O,watchedAriaLabel:P,
219watchThis:L,openLink:D,closeItem:N,reminderKind:k,reminderFallbackTitle:U,reminderDueLabel:F,statusProcessing:V,statusNeedsAttention:G,formSelectPlaceholder:Z},t[55]=r,t[56]=y,t[57]=E,t[58]=S,t[59]=x,t[60]=C,t[61]=R,t[62]=A,t[63]=O,t[64]=P,t[65]=L,t[66]=i,t[67]=D,t[68]=N,t[69]=k,t[70]=U,t[71]=F,t[72]=V,t[73]=G,t[74]=Z,t[75]=s,t[76]=a,t[77]=c,t[78]=u,t[79]=h,t[80]=p,t[81]=v,t[82]=K):K=t[82],K},wIe=t=>{const e=Cr.c(6),{children:n}=t,r=SIe(),s=_.useContext(fT)?.locale??"en";let a;e[0]!==s?(a=Q4(s),e[0]=s,e[1]=a):a=e[1];const c=a.intlTag;let u;return e[2]!==n||e[3]!==c||e[4]!==r?(u=W.jsx(bIe,{strings:r,locale:c,children:n}),e[2]=n,e[3]=c,e[4]=r,e[5]=u):u=e[5],u},CIe=5,x8=()=>{if(typeof navigator>"u")return[];const t=navigator.languages?.length?navigator.languages:[navigator.language],e=[],n=new Set;for(const r of t)if(r?.trim()){try{const i=Intl.getCanonicalLocales(r.trim())[0],s=i.toLowerCase();n.has(s)||(e.push(i),n.add(s))}catch{}if(e.length>=CIe)break}return e},xIe={locale:of,antdLocale:pY},TIe="locale",RIe=t=>{try{chrome?.storage?.local?.set({[TIe]:t})}catch{}},AIe=t=>{const e=Cr.c(24),{children:n}=t,[r]=_.useState(OIe);let i;e[0]!==r?(i=()=>$D({handoffLocale:r,sharedLocale:pD(),anonymousLocale:mR(null),browserLanguages:x8()}),e[0]=r,e[1]=i):i=e[1];const[s,a]=_.useState(i),[c,u]=_.useState(xIe),h=_.useRef(null);let p,v;e[2]!==s?(p=()=>{document.documentElement.lang=Aoe(s)},v=[s],e[2]=s,e[3]=p,e[4]=v):(p=e[3],v=e[4]),_.useLayoutEffect(p,v);let y,E;e[5]!==r?(y=()=>{r&&gD(r)},E=[r],e[5]=r,e[6]=y,e[7]=E):(y=e[6],E=e[7]),_.useEffect(y,E);let S,x;e[8]!==s?(S=()=>{let N=!1;return ND(s).then(k=>{N||u(k)}),RIe(s),()=>{N=!0}},x=[s],e[8]=s,e[9]=S,e[10]=x):(S=e[9],x=e[10]),_.useEffect(S,x);let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=async N=>{Ioe(h.current,N),gD(N),a(N),u(await ND(N))},e[11]=C):C=e[11];const R=C;let A;e[12]!==r?(A=N=>{const{userId:k,serverLocale:U}=N;h.current=k,a($D({explicit:k?mR(k):null,serverLocale:U,handoffLocale:r,sharedLocale:pD(),anonymousLocale:mR(null),browserLanguages:x8()}))},e[12]=r,e[13]=A):A=e[13];const O=A;if(c.locale!==s){let N;return e[14]===Symbol.for("react.memo_cache_sentinel")?(N=W.jsx(nT,{}),e[14]=N):N=e[14],N}let P;e[15]!==c.antdLocale||e[16]!==s||e[17]!==O?(P={locale:s,antdLocale:c.antdLocale,setLocale:R,syncAccountLocale:O},e[15]=c.antdLocale,e[16]=s,e[17]=O,e[18]=P):P=e[18];let L;e[19]!==n?(L=W.jsx(wIe,{children:n}),e[19]=n,e[20]=L):L=e[20];let D;return e[21]!==P||e[22]!==L?(D=W.jsx(fT.Provider,{value:P,children:L}),e[21]=P,e[22]=L,e[23]=D):D=e[23],D};function OIe(){return typeof window>"u"?null:lse(window.location.search)}const He=(t,e,n)=>n?e:t,IIe=t=>({token:{fontFamily:"var(--font-family)",colorPrimary:He("#1e2a4a","#3a5580",t),colorInfo:He("#bee4fc","#bee4fc",t),colorSuccess:He("#0dc268","#0dc268",t),colorWarning:He("#ff9e6d","#ff9e6d",t),colorError:He("#cf3035","#cf3035",t),colorBgBase:He("#e4e6ec","#202020",t),colorTextBase:He("#202020","#f4f9ff",t),colorText:"var(--color-text)",colorTextSecondary:"var(--color-text-secondary)",colorBorder:"var(--color-border)",colorBorderSecondary:He("#d6d9e1","#333333",t),borderRadius:999,controlHeight:40,fontWeightStrong:500,colorBgContainer:"var(--color-background)"},components:{Layout:{headerBg:He("transparent","transparent",t),siderBg:He("#1e2a4a","#131c36",t),bodyBg:He("#e4e6ec","#202020",t)},Menu:{itemBg:"transparent",itemSelectedBg:He("rgba(190,228,252,.1)","rgba(190,228,252,.08)",t),itemHoverBg:He("#ededf1","#4b4b60",t),itemActiveBg:He("rgba(190,228,252,.14)","rgba(190,228,252,.12)",t),itemColor:He("#65687a","#adadba",t),itemSelectedColor:He("#1e2a4a","#ffffff",t),itemHoverColor:He("#1e2a4a","#f0f0f7",t)},Card:{colorBgContainer:He("#fafbfd","#333343",t),colorBorderSecondary:"transparent",colorBorder:"transparent",boxShadow:"none",borderRadiusLG:16}
219,Input:{colorBgContainer:He("#fafbfd","#333343",t),colorBorder:He("#d6d9e1","#4b4b60",t),colorText:He("#1e2a4a","#f0f0f7",t),colorTextPlaceholder:He("#65687a","#8e8e9f",t),colorPrimaryHover:He("#1e2a4a","#6f6f89",t),borderRadius:12},Select:{colorBgContainer:He("#fafbfd","#333343",t),colorBorder:He("#d6d9e1","#4b4b60",t),colorText:He("#1e2a4a","#f0f0f7",t),colorTextPlaceholder:He("#65687a","#8e8e9f",t),borderRadius:999},DatePicker:{colorBgContainer:He("#fafbfd","#333343",t),colorBorder:He("#d6d9e1","#4b4b60",t),colorText:He("#1e2a4a","#f0f0f7",t),colorTextPlaceholder:He("#65687a","#8e8e9f",t),colorPrimaryHover:He("#d6d9e1","#6f6f89",t),cellHoverBg:He("#ededf1","#4b4b60",t),cellActiveWithRangeBg:He("rgba(190,228,252,.24)","#1a2854",t),cellRangeBorderColor:He("#1e2a4a","#7f93fa",t),colorBgElevated:He("#fafbfd","#333343",t),colorTextHeading:He("#1e2a4a","#f0f0f7",t),colorSplit:He("#d6d9e1","#4b4b60",t)},Table:{colorBgContainer:He("#fafbfd","#232333",t),headerBg:He("#ededf1","#333343",t),rowHoverBg:He("#ededf1","#333343",t),colorBorder:He("#d6d9e1","#4b4b60",t),colorText:He("#1e2a4a","#f0f0f7",t)},Empty:{colorText:He("#65687a","#adadba",t),colorTextDisabled:He("#d6d9e1","#6f6f89",t)},Button:{borderRadius:999,controlHeight:40,paddingInline:20,fontWeight:600,boxShadow:"none",primaryShadow:"0 8px 24px rgba(30, 42, 74, .18)",defaultShadow:"none",dangerShadow:"none",colorPrimary:"var(--color-primary)",colorPrimaryBg:"var(--color-primary)",colorPrimaryHover:"var(--color-primary-hover)",colorPrimaryBgHover:"var(--color-primary-hover)",colorPrimaryActive:"var(--color-primary-active)",colorTextLightSolid:"#ffffff",primaryColor:"#ffffff",defaultBg:"var(--color-background-card)",defaultColor:"var(--color-text-primary)",defaultHoverBg:"var(--color-hover-bg)",defaultHoverColor:"var(--color-text-primary)",defaultHoverBorderColor:"var(--color-border)",defaultActiveBg:"var(--color-neutral-10)",defaultActiveColor:"var(--color-text-primary)",defaultActiveBorderColor:"var(--color-border)",defaultBorderColor:"var(--color-border)",textTextColor:"var(--color-text-primary)",colorText:"var(--color-text-primary)",textTextHoverColor:"var(--color-text-primary)",textHoverBg:"var(--color-hover-bg)",textTextActiveColor:"var(--color-text-primary)",colorLink:"var(--color-primary)",colorLinkHover:"var(--color-primary-hover)",colorLinkActive:"var(--color-primary-active)",colorBgContainerDisabled:"var(--color-neutral-4)",colorTextDisabled:"var(--color-text-disabled)",borderColorDisabled:"transparent",onlyIconSize:20,contentFontSize:14},Segmented:{borderRadius:999,borderRadiusSM:999,trackPadding:3,itemSelectedBg:He("#fafbfd","#333343",t),itemSelectedColor:He("#1e2a4a","#ffffff",t),itemColor:He("#65687a","#adadba",t),trackBg:He("#ededf1","#2a2a3a",t)},Collapse:{headerBg:He("transparent","transparent",t),contentBg:He("transparent","transparent",t),colorTextHeading:He("#1e2a4a","#f0f0f7",t),colorText:He("#65687a","#adadba",t)},Modal:{contentBg:He("#fafbfd","#333343",t),headerBg:He("#fafbfd","#333343",t),titleColor:He("#1e2a4a","#f0f0f7",t),colorText:He("#1e2a4a","#f0f0f7",t),colorBgMask:He("rgba(30, 42, 74, .35)","rgba(0, 0, 0, 0.7)",t),colorIcon:He("#65687a","#adadba",t),colorIconHover:He("#1e2a4a","#f0f0f7",t),colorBorder:He("#d6d9e1","#4b4b60",t),paddingMD:16,paddingContentHorizontalLG:20,borderRadiusLG:18},Tooltip:{borderRadius:6,colorBgSpotlight:"#ffffff",colorTextLightSolid:"#1e2a4a"},Popover:{colorBgElevated:He("#fafbfd","#333343",t),colorText:He("#1e2a4a","#f0f0f7",t),colorTextHeading:He("#1e2a4a","#f0f0f7",t),colorBorder:He("#d6d9e1","#4b4b60",t),colorBgContainer:He("#fafbfd","#333343",t)},Dropdown:{colorBgElevated:He("#fafbfd","#333343",t),colorText:He("#1e2a4a","#f0f0f7",t),controlItemBgHover:He("#ededf1","#4b4b60",t),controlItemBgActive:He("rgba(190,228,252,.14)","#6f6f89",t),colorBorder:He("#d6d9e1","#4b4b60",t),borderRadiusLG:14},Popconfirm:{colorBgElevated:He("#fafbfd","#333343",t),colorText:He("#1e2a4a","#f0f0f7",t),colorTextHeading:He("#1e2a4a","#f0f0f7",t),colorWarning:He("#c0533a","#d87963",t),colorBorder:He("#d6d9e1","#4b4b60",t)},Notification:{colorBgElevated:He("#fafbfd","#333343",t),colorText:He("#1e2a4a","#f0f0f7",t),colorTextHeading:He("#1e2a4a","#f0f0f7",t),colorIcon:He("#65687a","#adadba",t),colorIconHover:He("#1e2a4a","#f0f0f7",t),colorBorder:He("#d6d9e1","#4b4b60",t)},Message:{contentBg:He("#fafbfd","#333343",t),colorText:He("#1e2a4a","#f0f0f7",t),colorBgElevated:He("#fafbfd","#333343",t)},Drawer:{colorBgElevated:He("#fafbfd","#333343",t),colorBgMask:He("rgba(30, 42, 74, .35)","rgba(0, 0, 0, 0.7)",t),colorText:He("#1e2a4a","#f0f0f7",t),colorIcon:He("#65687a","#adadba",t),colorIconHover:He("#1e2a4a","#f0f0f7",t),colorBorder:He("#d6d9e1","#4b4b60",t)},Pagination:{itemActiveBg:"var(--color-primary)",colorPrimary:"#ffffff",colorPrimaryHover:"#ffffff",itemBg:"var(--color-background-card)"},Tag:{defaultBg:"var(--color-background-secondary)",defaultColor:"var(--color-text-primary)",borderRadiusSM:999}}}),PIe={token:{fontFamily:"var(--font-family)",zIndexPopupBase:1400},components:{Menu:{itemBg:"transparent",itemPaddingInline:12},Card:{headerFontSize:14,headerHeight:"28px",headerPadding:16}}},LIe=_.createContext(null),kIe=()=>{if(typeof window>"u")return"light";const t=localStorage.getItem(gL);return t==="light"||t==="dark"?t:"light"},MIe=t=>{const e=Cr.c(22),{children:n}=t,[r,i]=_.useState(kIe),s=_.useContext(fT);let a,c;e[0]!==r?(a=()=>{document.body.setAttribute("data-theme",r)},c=[r],e[0]=r,e[1]=a,e[2]=c):(a=e[1],c=e[2]),_.useLayoutEffect(a,c);let u,h;e[3]!==r?(u=()=>{localStorage.setItem(gL,r)},h=[r],e[3]=r,e[4]=u,e[5]=h):(u=e[4],h=e[5]),_.useEffect(u,h);let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{i(DIe)},e[6]=p):p=e[6];const v=p,y=r==="dark"?C7.darkAlgorithm:C7.defaultAlgorithm;let E;e[7]!==r?(E=Nm.merge(IIe(r==="dark"),PIe),e[7]=r,e[8]=E):E=e[8];const S=E;let x;e[9]!==r?(x={theme:r,toggleTheme:v},e[9]=r,e[10]=x):x=e[10];const C=s?.antdLocale;let R;e[11]===Symbol.for("react.memo_cache_sentinel")?(R={key:"app"},e[11]=R):R=e[11];let A;e[12]!==y||e[13]!==S?(A={algorithm:y,...S,cssVar:R,hashed:!1},e[12]=y,e[13]=S,e[14]=A):A=e[14];let O;e[15]!==n||e[16]!==A||e[17]!==C?(O=W.jsx(bf,{locale:C,theme:A,children:n}),e[15]=n,e[16]=A,e[17]=C,e[18]=O):O=e[18];let P;return e[19]!==O||e[20]!==x?(P=W.jsx(LIe.Provider,{value:x,children:O}),e[19]=O,e[20]=x,e[21]=P):P=e[21],P};function DIe(t){return t==="light"?"dark":"light"}const NIe=()=>{const t=Cr.c(3),{search:e,hash:n}=Pi();let r;return t[0]!==n||t[1]!==e?(r=W.jsx(pl,{to:{pathname:Zt.LIBRARY,search:e,hash:n},replace:!0}),t[0]=n,t[1]=e,t[2]=r):r=t[2],r},T8=()=>{const t=Cr.c(7),{contextId:e}=sce(),{search:n,hash:r}=Pi();if(!e){let a;return t[0]===Symbol.for("react.memo_cache_sentinel")?(a=W.jsx(pl,{to:Zt.CHAT,replace:!0}),t[0]=a):a=t[0],a}let i;t[1]!==e?(i=oF(e),t[1]=e,t[2]=i):i=t[2];let s;return t[3]!==r||t[4]!==n||t[5]!==i?(s=W.jsx(pl,{to:{pathname:i,search:n,hash:r},replace:!0}),t[3]=r,t[4]=n,t[5]=i,t[6]=s):s=t[6],s},ri=t=>{const e=Cr.c(2),{fitParent:n}=t,r=n===void 0?!1:n;let i;return e[0]!==r?(i=W.jsx(nT,{fitParent:r}),e[0]=r,e[1]=i):i=e[1],i},$Ie=()=>{const t=Cr.c(5),{logout:e}=aT(),n=_.useRef(!1),[r,i]=_.useState(!1);let s,a;if(t[0]!==e?(s=()=>{n.current||(n.current=!0,Promise.resolve(e()).finally(()=>i(!0)))},a=[e],t[0]=e,t[1]=s,t[2]=a):(s=t[1],a=t[2]),_.useEffect(s,a),r){let u;return t[3]===Symbol.for("react.memo_cache_sentinel")?(u=W.jsx(pl,{to:Zt.LOGIN,replace:!0}),t[3]=u):u=t[3],u}let c;return t[4]===Symbol.for("react.memo_cache_sentinel")?(c=W.jsx(ri,{fitParent:!0}),t[4]=c):c=t[4],c},Pu="view",DL="chat",NL="chat",vY="context",yY="library",$ke=t=>t.isSearch?"search":t.hasContext?"board":"home",FIe=t=>t.get(Pu)===DL||t.has(NL),UIe=t=>t.get(Pu)===vY,BIe=t=>t.get(Pu)===yY,Fke=t=>t.has(Pu)||t.has(NL),Uke=(t,e)=>e==="search"?UIe(t)?"library":"chat":e==="home"?BIe(t)?"library":"chat":FIe(t)?"chat":"library",Bke=(t,e,n="board")=>
219{const r=new URLSearchParams(t);return r.delete(Pu),r.delete(NL),n==="search"?e==="library"&&r.set(Pu,vY):n==="home"?e==="library"&&r.set(Pu,yY):e==="chat"&&r.set(Pu,DL),r},jIe=()=>{const{user:t,isInitialized:e}=DG(),n=Pi(),r=gb(),{trackEvent:i}=Av(),s=n.state?.addAccount===!0,a=_.useRef(t?.user_id),c=iY(n.search)?sY(n.search):void 0,u=!!(t&&!s&&c),[h,p]=_.useState(!1),v=_.useRef(!1);return _.useEffect(()=>{!u||!c||v.current||(v.current=!0,(async()=>{let y="error";try{const{landing_claim:E}=await Xs.claimGuest({guest_id:c});if(E?.context_id){XOe(),QOe(E.context_id),JC.getState().setChatViewTab("chat"),r(`${oF(E.context_id)}?${Pu}=${DL}`,{replace:!0});return}y=E?.status??null}catch{}i(rv.DEMO_CLAIM_SKIPPED_EXISTING_SESSION,{flow:rY,claim_status:y}),p(!0)})())},[c,r,u,i]),t&&s&&t.user_id!==a.current?W.jsx(pl,{to:Zt.LIBRARY_CHAT,replace:!0}):e?u&&!h?W.jsx(ri,{}):t&&!s?W.jsx(pl,{to:Zt.LIBRARY_CHAT,replace:!0}):W.jsx(pP,{}):W.jsx(ri,{})},HIe=_.lazy(()=>ct(()=>import("./Chat-C3Cq22fW.js"),__vite__mapDeps([39,5,6,7,8,9,10,1,11,12,13,14,15,16,17,40,41,19,34,31,27,28,24,42,43,18,20,21,44,45,4,23,25,46,47,3])).then(t=>({default:t.Chat}))),zIe=_.lazy(()=>ct(()=>import("./ProfileView-BaSz1al2.js"),__vite__mapDeps([48,1,46,26,6,8,10,24,16,49,11,45,15,23,50,19,12,27,28,14,32,42])).then(t=>({default:t.ProfileView}))),R8=_.lazy(()=>ct(()=>import("./ContextsView-jyMryNMt.js"),__vite__mapDeps([51,17,1,34,31,41,19,12,6,35,45,32])).then(t=>({default:t.ContextsView}))),VIe=_.lazy(()=>ct(()=>import("./ShareTarget-v4cFu1K1.js"),__vite__mapDeps([52,36,25])).then(t=>({default:t.ShareTarget}))),A8=_.lazy(()=>ct(()=>import("./UserAuth-BYMBe3i8.js"),__vite__mapDeps([53,4,54,34,31,26,6,8,10,24,16,38,29,13,44,23,15,21])).then(t=>({default:t.UserAuth}))),qIe=_.lazy(()=>ct(()=>import("./Authorize-CGgAunAS.js"),__vite__mapDeps([55,20])).then(t=>({default:t.Authorize}))),WIe=_.lazy(()=>ct(()=>import("./ForgotPassword-9JULUCt7.js"),__vite__mapDeps([56,29,13,8,6,49,24,11,10,45,26,16,23,15,21])).then(t=>({default:t.ForgotPassword}))),GIe=_.lazy(()=>ct(()=>import("./ResetPassword-BPN809xP.js"),__vite__mapDeps([57,29,13,8,6,49,24,11,10,45,46,26,16,23,15,21])).then(t=>
219({default:t.ResetPassword}))),KIe=_.lazy(()=>ct(()=>import("./VerifyEmail-B1Sim5HJ.js"),__vite__mapDeps([58,26,6,8,10,24,16,46,49,11,45])).then(t=>({default:t.VerifyEmail}))),YIe=_.lazy(()=>ct(()=>import("./AccountConnect-DvvAP4dW.js"),__vite__mapDeps([37,38,29,13,8,6,23,15,24])).then(t=>({default:t.AccountConnect}))),XIe=_.lazy(()=>ct(()=>import("./TelegramSignIn-DxoYjQwa.js"),__vite__mapDeps([59,54,34,31,38])).then(t=>({default:t.TelegramSignIn}))),QIe=_.lazy(()=>ct(()=>import("./EmailSignIn-hTC4o-QY.js"),__vite__mapDeps([60,54,34,31])).then(t=>({default:t.EmailSignIn}))),ZIe=_.lazy(()=>ct(()=>import("./AccountDeletionConfirm-D-ji827w.js"),__vite__mapDeps([61,49,24,6,8,11,10,45,46,26,16])).then(t=>({default:t.AccountDeletionConfirm}))),JIe=_.lazy(()=>ct(()=>import("./IntegrationsPage-DEJTBXbm.js"),__vite__mapDeps([62,18,6,19,12,20,21,49,24,8,11,10,45,15,26,16,46,22,50,43,28])).then(t=>({default:t.IntegrationsPage}))),e3e=_.lazy(()=>ct(()=>import("./JobsView-Bn000ZJm.js"),__vite__mapDeps([63,9,6,10,1,40,47,19,12,3])).then(t=>({default:t.JobsView}))),t3e=_.lazy(()=>ct(()=>import("./InboxView-D4UEFzph.js"),__vite__mapDeps([64,7,6,8,9,10,1,11,12,13,14,15,47,2])).then(t=>({default:t.InboxView}))),n3e=_.lazy(()=>ct(()=>import("./HowItWorks--XH8jm_y.js"),__vite__mapDeps([65,66,30,31])).then(t=>({default:t.HowItWorks}))),r3e=_.lazy(()=>ct(()=>import("./WaysToUse-CLWeaxN7.js"),__vite__mapDeps([67,66,33,9,6,10,1])).then(t=>({default:t.WaysToUse}))),tr=W.jsx(Z3,{}),i3e=[{path:`${Zt.LIBRARY}/:contextId?`,handle:{destination:{canonical:!0,owners:["library"]}},errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{fitParent:!0}),children:W.jsx(HIe,{})})},{path:Zt.LEGACY_CHAT,handle:{destination:{canonical:!1,owners:["library"]}},errorElement:tr,element:W.jsx(NIe,{})},{path:Zt.PROJECT,handle:{destination:{canonical:!1,owners:["library"]}},errorElement:tr,element:W.jsx(T8,{})},{path:Zt.SEARCH,handle:{destination:{canonical:!1,owners:["library"]}},errorElement:tr,element:W.jsx(T8,{})},{path:Zt.MEMORY,handle:{destination:{canonical:!0,owners:["memory"]}},errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{fitParent:!0}),children:W.jsx(zIe,{})})},{path:Zt.PROFILE,handle:{destination:{canonical:!1,owners:["memory"]}},errorElement:tr,element:W.jsx(pl,{to:Zt.MEMORY,replace:!0})},{path:Zt.CONTEXTS,handle:{destination:{canonical:!0,owners:["boards"]}},errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{fitParent:!0}),children:W.jsx(R8,{mode:"board"})})},{path:Zt.SEARCHES,handle:{destination:{canonical:!0,owners:["chats"]}},element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{fitParent:!0}),children:W.jsx(R8,{mode:"search"})})},{path:Zt.LEGACY_CONTEXTS,handle:{destination:{canonical:!1,owners:["boards"]}},errorElement:tr,element:W.jsx(pl,{to:Zt.CONTEXTS,replace:!0})},{path:Zt.LEGACY_SEARCHES,handle:{destination:{canonical:!1,owners:["chats"]}},errorElement:tr,element:W.jsx(pl,{to:Zt.SEARCHES,replace:!0})},{path:Zt.JOBS,handle:{destination:{canonical:!0,owners:["jobs"]}},errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{fitParent:!0}),children:W.jsx(e3e,{})})},{path:Zt.INBOX,handle:{destination:{canonical:!0,owners:["inbox"]}},errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{fitParent:!0}),children:W.jsx(t3e,{})})},{path:Zt.HOW_IT_WORKS,handle:{destination:{canonical:!0,owners:["how_it_works"]}},errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{fitParent:!0}),children:W.jsx(n3e,{})})},{path:Zt.WAYS_TO_USE,handle:{destination:{canonical:!0,owners:["ways_to_use"]}},errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{fitParent:!0}),children:W.jsx(r3e,{})})},{path:Zt.SHARE_TARGET,handle:{destination:{canonical:!0,owners:["share_target"]}},errorElement:tr,element:W.jsx(_.Suspense,{fallback:null,children:W.jsx(VIe,{})})},{path:Zt.INTEGRATIONS,handle:{destination:{canonical:!0,owners:["integrations"]}},errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{fitParent:!0}),children:W.jsx(JIe,{})})},{path:Zt.AUTHORIZE,handle:{destination:{canonical:!0,owners:["authorize"]}},errorElement:tr,element:W.jsx(qIe,{})},{path:"*",handle:{destination:{canonical:!1,owners:["unavailable"]}},errorElement:tr,element:W.jsx(k3,{})}],s3e=[{path:Zt.ACCOUNT_CONNECT,handle:{destination:{canonical:!0,owners:["account_connection"]}},errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{}),children:W.jsx(YIe,{})})},{path:Zt.TELEGRAM_SIGN_IN,errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{}),children:W.jsx(XIe,{})})},{path:Zt.LOGOUT,errorElement:tr,element:W.jsx($Ie,{})},{errorElement:tr,element:W.jsx(jIe,{}),children:[{path:Zt.LOGIN,errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{}),children:W.jsx(A8,{})})}
219,{path:Zt.REGISTER,errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{}),children:W.jsx(A8,{})})},{path:Zt.FORGOT_PASSWORD,errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{}),children:W.jsx(WIe,{})})}]},{path:Zt.EMAIL_SIGN_IN,errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{}),children:W.jsx(QIe,{})})},{path:Zt.RESET_PASSWORD,errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{}),children:W.jsx(GIe,{})})},{path:Zt.VERIFY_EMAIL,errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{}),children:W.jsx(KIe,{})})},{path:Zt.ACCOUNT_DELETE,errorElement:tr,element:W.jsx(_.Suspense,{fallback:W.jsx(ri,{}),children:W.jsx(ZIe,{})})}],o3e=()=>{if(typeof window>"u")return;const t=()=>{document.documentElement.style.setProperty("--app-height",`${window.innerHeight}px`)};t(),window.addEventListener("resize",t),window.addEventListener("orientationchange",t)},a3e="investors-dashboard-module__page__xp3ss",l3e="investors-dashboard-module__header__JwfDj",c3e="investors-dashboard-module__headerInner__UHltN",u3e="investors-dashboard-module__tabs__X5e6b",d3e="investors-dashboard-module__workspace__VIsPq",f3e="investors-dashboard-module__brand__egQbd",h3e="investors-dashboard-module__logo__3EDRX",p3e="investors-dashboard-module__divider__CZJ2U",g3e="investors-dashboard-module__productName__VBadZ",m3e="investors-dashboard-module__headerMeta__Vrf-T",v3e="investors-dashboard-module__reloadButton__Nud7R",y3e="investors-dashboard-module__grouping__bfCNM",_3e="investors-dashboard-module__card__yuijh",b3e="investors-dashboard-module__closeButton__Bd4Dc",E3e="investors-dashboard-module__activeTab__SIrjU",S3e="investors-dashboard-module__metrics__bNfrM",w3e="investors-dashboard-module__controls__vEcTS",C3e="investors-dashboard-module__activeGrouping__8dEPP",x3e="investors-dashboard-module__search__jGGgF",T3e="investors-dashboard-module__count__qOkMA",R3e="investors-dashboard-module__board__MCFr1",A3e="investors-dashboard-module__column__c6wil",O3e="investors-dashboard-module__columnHead__sLdtM",I3e="investors-dashboard-module__stageDot__2fcal",P3e="investors-dashboard-module__muted__9X8ym",L3e="investors-dashboard-module__amber__02Wm3",k3e="investors-dashboard-module__blue__2tllq",M3e="investors-dashboard-module__violet__xJTAn",D3e="investors-dashboard-module__slate__m1m2v",N3e="investors-dashboard-module__green__q4wYU",$3e="investors-dashboard-module__teal__cwaMn",F3e="investors-dashboard-module__red__C-ZIJ",U3e="investors-dashboard-module__cards__1Ty3S",B3e="investors-dashboard-module__cardName__4W6WD",j3e="investors-dashboard-module__cardFirm__lkTVg",H3e="investors-dashboard-module__cardFooter__M78EI",z3e="investors-dashboard-module__tier__lBQZz",V3e="investors-dashboard-module__empty__QotG8",q3e="investors-dashboard-module__status__CYKPJ",W3e="investors-dashboard-module__error__ZT2KK",G3e="investors-dashboard-module__overlay__PkU-E",K3e="investors-dashboard-module__drawer__WICWD",Y3e="investors-dashboard-module__drawerLabel__e6UT2",tn={page:a3e,header:l3e,headerInner:c3e,tabs:u3e,workspace:d3e,brand:f3e,logo:h3e,divider:p3e,productName:g3e,headerMeta:m3e,reloadButton:v3e,grouping:y3e,card:_3e,closeButton:b3e,activeTab:E3e,metrics:S3e,controls:w3e,activeGrouping:C3e,search:x3e,count:T3e,board:R3e,column:A3e,columnHead:O3e,stageDot:I3e,muted:P3e,amber:L3e,blue:k3e,violet:M3e,slate:D3e,green:N3e,teal:$3e,red:F3e,cards:U3e,cardName:B3e,cardFirm:j3e,cardFooter:H3e,tier:z3e,empty:V3e,status:q3e,error:W3e,overlay:G3e,drawer:K3e,drawerLabel:Y3e},X3e="/api/v1/investors-dashboard",Q3e={async getDashboard(t){const e=await fetch(X3e,{credentials:"same-origin",headers:{Accept:"application/json"},signal:t});if(!e.ok)throw new Error(`Dashboard request failed (${e.status})`);return e.json()}},e4=[{id:"backlog",label:"Ðе напиÑали",tone:"muted"},{id:"inwork",label:"Ð ÑабоÑе",tone:"amber"},{id:"replied",label:"ÐÑвеÑил",tone:"blue"},{id:"call",label:"Созвон",tone:"violet"},{id:"won",label:"ÐÑигÑÑÑ",tone:"green"},{id:"parked",label:"ÐÑложен",tone:"teal"},{id:"lost",label:"ÐÑказ",tone:"slate"},{id:"nochannel",label:"ÐÐµÑ ÐºÐ¾Ð½ÑакÑа",tone:"red"}],_Y=["backlog","inwork","replied","call"],Z3e=["A","B","C","D"],J3e=Object.fromEntries(e4.map(t=>[t.id,t])),e4e=t=>t.filter(e=>_Y.includes(e.stage));function t4e(t){const e=t.reduce((n,r)=>!n||new Date(r.updated_at).getTime()>
219new Date(n).getTime()?r.updated_at:n,null);return e?`обновлено ${new Intl.DateTimeFormat("ru-RU",{dateStyle:"medium",timeStyle:"short"}).format(new Date(e))}`:"обновлÑеÑÑÑ"}function bY(){const[t,e]=_.useState([]),[n,r]=_.useState(null),[i,s]=_.useState(""),[a,c]=_.useState(""),[u,h]=_.useState("today"),[p,v]=_.useState("stage"),[y,E]=_.useState(!0),[S,x]=_.useState(null),C=async()=>{E(!0),x(null);try{const P=await Q3e.getDashboard();e(P.investors),r(L=>P.investors.find(D=>D.investor_id===L?.investor_id)??null)}catch(P){x(P instanceof Error?P.message:"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð´Ð°Ð½Ð½Ñе")}finally{E(!1)}};_.useEffect(()=>{C()},[]);const R=_.useMemo(()=>{const P=i.trim().toLowerCase();return t.filter(L=>{const D=`${L.display_name} ${L.firm} ${L.role??""} ${L.vertical??""}`.toLowerCase();return(!P||D.includes(P))&&(!a||L.tier===a)})},[t,i,a]),A=e4e(t).length,O=_.useMemo(()=>u==="board"&&p==="tier"?Z3e.map(L=>({id:L,label:`Ð¢Ð¸Ñ ${L}`,investors:R.filter(D=>D.tier===L)})):(u==="today"?e4.filter(L=>_Y.includes(L.id)):e4).map(L=>({id:L.id,label:L.label,tone:L.tone,investors:R.filter(D=>D.stage===L.id)})),[R,p,u]);return W.jsxs("main",{className:tn.page,children:[W.jsxs("header",{className:tn.header,children:[W.jsxs("div",{className:tn.headerInner,children:[W.jsxs("div",{className:tn.brand,children:[W.jsxs("span",{className:tn.logo,children:["d",W.jsx("span",{children:"E"}),"ssence"]}),W.jsx("span",{className:tn.divider}),W.jsx("span",{className:tn.productName,children:"CRM инвеÑÑоÑов"}),W.jsx("span",{className:tn.headerMeta,children:t4e(t)})]}),W.jsxs("button",{className:tn.reloadButton,type:"button",onClick:()=>{C()},"aria-label":"ÐбновиÑÑ Ð´Ð°Ð½Ð½Ñе",children:[W.jsx(d1e,{}),W.jsx("span",{children:"ÐбновиÑÑ"})]})]}),W.jsxs("nav",{className:tn.tabs,"aria-label":"ÐÑедÑÑавление CRM",children:[W.jsx("button",{className:u==="today"?tn.activeTab:void 0,type:"button",onClick:()=>h("today"),children:"ЧÑо делаÑÑ ÑегоднÑ"}),W.jsx("button",{className:u==="board"?tn.activeTab:void 0,type:"button",onClick:()=>h("board"),children:"ÐоÑонка"})]})]}),W.jsxs("section",{className:tn.workspace,children:[W.jsxs("div",{className:tn.metrics,children:[W.jsxs("div",{children:[W.jsx("strong",{children:t.length}),W.jsx("span",{children:"вÑего конÑакÑов"})]}),W.jsxs("div",{children:[W.jsx("strong",{children:t.filter(P=>P.tier==="A").length}),W.jsx("span",{children:"ÑÐ¸Ñ A"})]}),W.jsxs("div",{children:[W.jsx("strong",{children:t.filter(P=>P.tier==="B").length}),W.jsx("span",{children:"ÑÐ¸Ñ B"})]}),W.jsxs("div",{children:[W.jsx("strong",{children:t.filter(P=>P.tier==="C").length}),W.jsx("span",{children:"ÑÐ¸Ñ C"})]}),W.jsxs("div",{children:[W.jsx("strong",{children:A}),W.jsx("span",{children:"в акÑивной ÑабоÑе"})]}),W.jsxs("div",{children:[W.jsx("strong",{children:t.filter(P=>P.stage==="call").length}),W.jsx("span",{children:"ÑозвонÑ"})]})]}),W.jsxs("div",{className:tn.controls,children:[u==="board"&&W.jsxs("div",{className:tn.grouping,"aria-label":"ÐÑÑппиÑовка воÑонки",role:"group",children:[W.jsx("button",{className:p==="stage"?tn.activeGrouping:void 0,type:"button",onClick:()=>v("stage"),children:"Ðо ÑÑапÑ"}),W.jsx("button",{className:p==="tier"?tn.activeGrouping:void 0,type:"button",onClick:()=>v("tier"),children:"Ðо ÑиеÑÑ"})]}),W.jsxs("label",{className:tn.search,children:[W.jsx(l1e,{"aria-hidden":"true"}),W.jsx("input",{value:i,onChange:P=>s(P.target.value),placeholder:"ÐмÑ, Ñонд или ÑокÑÑ"})]}),W.jsxs("select",{"aria-label":"ФилÑÑÑ Ð¿Ð¾ tier",value:a,onChange:P=>c(P.target.value),children:[W.jsx("option",{value:"",children:"ÐÑе ÑиÑÑ"}),W.jsx("option",{value:"A",children:"Ð¢Ð¸Ñ A"}),W.jsx("option",{value:"B",children:"Ð¢Ð¸Ñ B"}),W.jsx("option",{value:"C",children:"Ð¢Ð¸Ñ C"}),W.jsx("option",{value:"D",children:"Ð¢Ð¸Ñ D"})]}),W.jsxs("span",{className:tn.count,children:[R.length," из ",t.length]})]}),y&&W.jsx("div",{className:tn.status,children:"ÐагÑÑжаем воÑонкÑâ¦"}),S&&W.jsxs("div",{className:tn.error,children:[W.jsx("span",{children:S}),W.jsx("button",{type:"button",onClick:()=>{C()},children:"ÐовÑоÑиÑÑ"})]}),!y&&!S&&W.jsx("div",{className:tn.board,"data-group":p,"data-mode":u,children:O.map(P=>W.jsxs("section",{className:tn.column,children:[W.jsxs("div",{className:tn.columnHead,children:[P.tone&&W.jsx("span",{className:`${tn.stageDot} ${tn[P.tone]}`}),W.jsx("h2",{children:P.label}),W.jsx("span",{children:P.investors.length})]}),W.jsxs("div",{className:tn.cards,children:[P.investors.map(L=>
219W.jsx(n4e,{investor:L,onOpen:()=>r(L)},L.investor_id)),!P.investors.length&&W.jsx("div",{className:tn.empty,children:"ÐÐµÑ ÐºÐ¾Ð½ÑакÑов"})]})]},P.id))})]}),n&&W.jsx(r4e,{investor:n,onClose:()=>r(null)})]})}function n4e(t){const e=Cr.c(16),{investor:n,onOpen:r}=t;let i;e[0]!==n.display_name?(i=W.jsx("span",{className:tn.cardName,children:n.display_name}),e[0]=n.display_name,e[1]=i):i=e[1];let s;e[2]!==n.firm?(s=W.jsx("span",{className:tn.cardFirm,children:n.firm}),e[2]=n.firm,e[3]=s):s=e[3];let a;e[4]!==n.tier?(a=W.jsxs("span",{className:tn.tier,children:["Ð¢Ð¸Ñ ",n.tier]}),e[4]=n.tier,e[5]=a):a=e[5];let c;e[6]!==n.vertical?(c=n.vertical&&W.jsx("span",{children:n.vertical}),e[6]=n.vertical,e[7]=c):c=e[7];let u;e[8]!==a||e[9]!==c?(u=W.jsxs("span",{className:tn.cardFooter,children:[a,c]}),e[8]=a,e[9]=c,e[10]=u):u=e[10];let h;return e[11]!==r||e[12]!==i||e[13]!==s||e[14]!==u?(h=W.jsxs("button",{type:"button",className:tn.card,onClick:r,children:[i,s,u]}),e[11]=r,e[12]=i,e[13]=s,e[14]=u,e[15]=h):h=e[15],h}function r4e(t){const e=Cr.c(41),{investor:n,onClose:r}=t,i=J3e[n.stage],s=n.display_name;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=W.jsx(Lp,{}),e[0]=a):a=e[0];let c;e[1]!==r?(c=W.jsx("button",{type:"button",className:tn.closeButton,onClick:r,"aria-label":"ÐакÑÑÑÑ ÐºÐ°ÑÑоÑкÑ",children:a}),e[1]=r,e[2]=c):c=e[2];let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=W.jsx("span",{className:tn.drawerLabel,children:"ÐнвеÑÑоÑ"}),e[3]=u):u=e[3];let h;e[4]!==n.display_name?(h=W.jsx("h2",{children:n.display_name}),e[4]=n.display_name,e[5]=h):h=e[5];let p;e[6]!==n.firm?(p=W.jsx("p",{children:n.firm}),e[6]=n.firm,e[7]=p):p=e[7];let v;e[8]===Symbol.for("react.memo_cache_sentinel")?(v=W.jsx("dt",{children:"СÑаÑÑÑ"}),e[8]=v):v=e[8];const y=`${tn.stageDot} ${tn[i.tone]}`;let E;e[9]!==y?(E=W.jsx("span",{className:y}),e[9]=y,e[10]=E):E=e[10];let S;e[11]!==i.label||e[12]!==E?(S=W.jsxs("div",{children:[v,W.jsxs("dd",{children:[E,i.label]})]}),e[11]=i.label,e[12]=E,e[13]=S):S=e[13];let x;e[14]===Symbol.for("react.memo_cache_sentinel")?(x=W.jsx("dt",{children:"ТиÑ"}),e[14]=x):x=e[14];let C;e[15]!==n.tier?(C=W.jsxs("div",{children:[x,W.jsxs("dd",{children:["Ð¢Ð¸Ñ ",n.tier]})]}),e[15]=n.tier,e[16]=C):C=e[16];let R;e[17]!==n.role?(R=n.role&&W.jsxs("div",{children:[W.jsx("dt",{children:"РолÑ"}),W.jsx("dd",{children:n.role})]}),e[17]=n.role,e[18]=R):R=e[18];let A;e[19]!==n.vertical?(A=n.vertical&&W.jsxs("div",{children:[W.jsx("dt",{children:"ФокÑÑ"}),W.jsx("dd",{children:n.vertical})]}),e[19]=n.vertical,e[20]=A):A=e[20];let O;e[21]===Symbol.for("react.memo_cache_sentinel")?(O=W.jsx("dt",{children:"Ðбновлено"}),e[21]=O):O=e[21];let P;e[22]!==n.updated_at?(P=new Intl.DateTimeFormat("ru-RU",{dateStyle:"medium",timeStyle:"short"}).format(new Date(n.updated_at)),e[22]=n.updated_at,e[23]=P):P=e[23];let L;e[24]!==P?(L=W.jsxs("div",{children:[O,W.jsx("dd",{children:P})]}),e[24]=P,e[25]=L):L=e[25];let D;e[26]!==S||e[27]!==C||e[28]!==R||e[29]!==A||e[30]!==L?(D=W.jsxs("dl",{children:[S,C,R,A,L]}),e[26]=S,e[27]=C,e[28]=R,e[29]=A,e[30]=L,e[31]=D):D=e[31];let N;e[32]!==n.display_name||e[33]!==D||e[34]!==c||e[35]!==h||e[36]!==p?(N=W.jsxs("aside",{className:tn.drawer,role:"dialog","aria-modal":"true","aria-label":s,onMouseDown:i4e,children:[c,u,h,p,D]}),e[32]=n.display_name,e[33]=D,e[34]=c,e[35]=h,e[36]=p,e[37]=N):N=e[37];let k;return e[38]!==r||e[39]!==N?(k=W.jsx("div",{className:tn.overlay,role:"presentation",onMouseDown:r,children:N}),e[38]=r,e[39]=N,e[40]=k):k=e[40],k}function i4e(t){return t.stopPropagation()}const O8="telegram-web-app-sdk",s4e="https://telegram.org/js/telegram-web-app.js?63",o4e="/telegram-destination-unavailable",a4e=ex({kind:"library",view:"library"}),l4e=()=>{const t=new URLSearchParams(window.location.hash.replace(/^#/,""));return t.has("tgWebAppVersion")||t.has("tgWebAppPlatform")||t.has("tgWebAppData")},c4e=async()=>{if(window.Telegram?.WebApp)return;const t=document.getElementById(O8);await new Promise((e,n)=>{const r=t??document.createElement("script");r.addEventListener("load",()=>e(),{once:!0}),r.addEventListener("error",()=>n(new Error("Telegram Web App SDK failed to load")),{once:!0}),t||(r.id=O8,r.src=s4e,document.head.append(r))})};let R_=null;const PA=t=>{window.history.replaceState(null,"",t),window.dispatchEvent(new PopStateEvent("popstate",{state:null}))},u4e=async()=>
219{if(l4e()){if(R_)return R_;R_=(async()=>{await c4e();const t=window.Telegram?.WebApp;if(!t?.initData)return;const e=await Xs.exchangeTelegramMiniApp(t.initData);e.launch_target_status==="resolved"&&Q2e(e.destination)?PA(ex(e.destination)):e.launch_target_status==="unavailable"?PA(o4e):e.launch_target_status==="none"&&PA(a4e),t.ready(),t.expand()})();try{return await R_}finally{R_=null}}};let _1=null;const EY=()=>{if(!(typeof window>"u"||_1)){if(window.location.pathname===Zt.TELEGRAM_SIGN_IN){const t=new URLSearchParams(window.location.search);_1={code:t.get("code")??void 0,state:t.get("state")??void 0},window.history.replaceState(window.history.state,"",window.location.pathname)}else if(window.location.pathname===Zt.ACCOUNT_CONNECT){const t=new URLSearchParams(window.location.hash.slice(1)),e=t.get("handoff"),n=t.get("email_token");if(!e&&!n)return;_1={handoff:e??void 0,emailToken:n??void 0},window.history.replaceState(window.history.state,"",window.location.pathname+window.location.search)}}},jke=()=>{EY();const t=_1??{};return _1=null,t},d4e="app-frame-module__frame__VIxbf",f4e="app-frame-module__routeViewport__cfq32",I8={frame:d4e,routeViewport:f4e};EY();const zb=window.location.hostname==="investors.dessence.ai"||!1;o3e();!zb&&HOe(ir.VITE_SENTRY_DSN,ir.VITE_DISABLE_SENTRY)&&VOe({dsn:ir.VITE_SENTRY_DSN,environment:zOe(ir.VITE_SENTRY_ENVIRONMENT),release:ir.VITE_FRONTEND_COMMIT});const SY=!zb&&Cxe(ir.VITE_PUBLIC_POSTHOG_PROJECT_TOKEN,ir.VITE_DISABLE_POSTHOG);SY&&(gp.init(ir.VITE_PUBLIC_POSTHOG_PROJECT_TOKEN,wxe(ir.VITE_PUBLIC_POSTHOG_HOST,!1,ir.VITE_PUBLIC_POSTHOG_UI_HOST,Cp())),gp.register(tK(!1,ir.VITE_BASE_URL)));!zb&&ir.VITE_ENABLE_MOCK!=="true"&&typeof navigator<"u"&&"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(t=>{console.warn("Service worker registration failed",t)})});const h4e="/",p4e=Qce(zb?[{path:"*",element:W.jsx(bY,{})}]:[{element:W.jsx(oIe,{}),errorElement:W.jsx(Z3,{}),children:[...s3e,{element:W.jsx(VCe,{}),errorElement:W.jsx(Z3,{}),children:i3e}]}],{basename:h4e}),P8=W.jsx(ZOe,{children:W.jsx(AIe,{children:W.jsx(MIe,{children:W.jsx(tIe,{children:W.jsx(Dae,{store:lz,children:W.jsxs("div",{className:I8.frame,"data-app-frame":!0,children:[W.jsx(mxe,{}),W.jsx("div",{className:I8.routeViewport,"data-route-viewport":!0,children:W.jsx(Zz,{loading:W.jsx(nT,{}),persistor:TC,children:W.jsx(wce,{router:p4e})})})]})})})})})}),L8=dz.createRoot(document.getElementById("root")),g4e=async()=>{if(zb){L8.render(W.jsx(bY,{}));return}if(ir.VITE_ENABLE_MOCK==="true"){const{worker:t}=await ct(async()=>{const{worker:e}=await import("./browser-D9Lm_SgE.js");return{worker:e}},[]);await t.start({onUnhandledRequest:"bypass",quiet:!1})}await u4e().catch(t=>{console.error("Telegram Mini App session exchange failed",t)}),L8.render(SY?W.jsx(gue,{client:gp,children:P8}):P8)};g4e();export{$C as $,Ma as A,nPe as B,Sl as C,Fye as D,Ep as E,fi as F,HP as G,Tc as H,Ap as I,pq as J,wv as K,TP as L,El as M,_f as N,Cb as O,tve as P,Oi as Q,Te as R,wl as S,Ip as T,Op as U,ji as V,Z4e as W,m7 as X,aPe as Y,Qx as Z,tq as _,DCe as a,yoe as a$,Zve as a0,K0e as a1,bf as a2,hi as a3,Sc as a4,wr as a5,Zx as a6,I6 as a7,Im as a8,ove as a9,zt as aA,to as aB,no as aC,JC as aD,bc as aE,Nke as aF,W as aG,Ix as aH,gb as aI,tV as aJ,rp as aK,VG as aL,ul as aM,A4e as aN,Zt as aO,Uie as aP,Q2e as aQ,Cr as aR,xp as aS,$Le as aT,qLe as aU,oF as aV,HPe as aW,FPe as aX,K4e as aY,Bke as aZ,Ev as a_,vb as aa,$fe as ab,Uq as ac,Jme as ad,jC as ae,xv as af,kp as ag,v_e as ah,eve as ai,X0e as aj,eW as ak,HC as al,JP as am,Js as an,Av as ao,_c as ap,rv as aq,ni as ar,Hi as as,hu as at,GG as au,j4e as av,xe as aw,Nm as ax,m1 as ay,M4e as az,NCe as b,JLe as b$,_oe as b0,X4e as b1,bLe as b2,uLe as b3,eLe as b4,CLe as b5,aCe as b6,jLe as b7,ILe as b8,lLe as b9,pLe as bA,ZPe as bB,ike as bC,ske as bD,nke as bE,uke as bF,ZLe as bG,Lp as bH,xLe as bI,PPe as bJ,aLe as bK,zLe as bL,WPe as bM,vLe as bN,_ie as bO,SLe as bP,HLe as bQ,TLe as bR,OLe as bS,wC as bT,Rx as bU,yke as bV,hke as bW,tke as bX,YG as bY,LCe as bZ,kPe as b_,E4e as ba,iLe as bb,LG as bc,gx as bd,ct as be,PLe as bf,sLe as bg,DLe as bh,KLe as bi,ELe as bj,LPe as bk,xP as bl,yLe as bm,$4e as bn,aT as bo,TPe as bp,gLe as bq,BPe as br,NPe as bs,SPe as bt,SO as bu,ake as bv,dke as bw,fke as bx,cke as by,cLe as bz,wke as c,D1 as c$,yPe as c0,YLe as c1,qPe as c2,_Le as c3,gke as c4,XQ as c5,GLe as c6,VPe as c7,XPe as c8,Xz as c9,Uke as cA,$ke as cB,Oie as cC,Lke as cD,kke as cE,k4e as cF,eke as cG,mke as cH,Voe as cI,GO as cJ,_ke as cK,bke as cL,Fie as cM,Mie as cN,KO as cO,B4e as cP,Pu as cQ,DL as cR,Ib as cS,qOe as cT,S4e as cU,l1e as cV,ZH as cW,pke as cX,GPe as cY,LLe as cZ,q4e as c_,QLe as ca,QPe as cb,ALe as cc,RLe as cd,ULe as ce,w3 as cf,K2e as cg,ex as ch,bPe as ci,VLe as cj,Ibe as ck,xPe as cl,_Pe as cm,mLe as cn,kr as co,u9 as cp,o_ as cq,gu as cr,Pi as cs,sce as ct,BIe as cu,oke as cv,uT as cw,lke as cx,F1 as cy,rke as cz,v1 as d,sv as d$,Loe as d0,VQ as d1,oZ as d2,jCe as d3,Rke as d4,nxe as d5,hxe as d6,Pke as d7,iY as d8,X2e as d9,Ox as dA,bl as dB,z4e as dC,xke as dD,Tke as dE,Oke as dF,Mke as dG,Dke as dH,Eie as dI,z9 as dJ,X4 as dK,x4e as dL,T4e as dM,Eb as dN,d1e as dO,lye as dP,dW as dQ,Yve as dR,Cs as dS,Rye as dT,Tye as dU,Yx as dV,vme as dW,is as dX,NC as dY,eo as dZ,J4e as d_,I2e as da,O2e as db,Qte as dc,b4e as dd,Xs as de,Cp as df,x8 as dg,es as d
219h,rY as di,Ike as dj,ub as dk,RPe as dl,APe as dm,OPe as dn,Ake as dp,XOe as dq,QOe as dr,Fke as ds,O1e as dt,I1e as du,vPe as dv,A1e as dw,x7 as dx,Lq as dy,jke as dz,ir as e,xW as e$,Bpe as e0,$Pe as e1,FLe as e2,YPe as e3,F4e as e4,wPe as e5,CPe as e6,EPe as e7,nLe as e8,rLe as e9,Rbe as eA,NLe as eB,oLe as eC,zPe as eD,kLe as eE,P4e as eF,L4e as eG,vke as eH,I4e as eI,C4e as eJ,joe as eK,H4e as eL,MG as eM,IPe as eN,U2e as eO,Abe as eP,wb as eQ,yW as eR,hW as eS,GR as eT,Sb as eU,W4e as eV,tLe as eW,A_ as eX,RV as eY,RP as eZ,Pp as e_,JPe as ea,uv as eb,MLe as ec,U4e as ed,UG as ee,KPe as ef,dLe as eg,N4e as eh,Z2e as ei,jPe as ej,aye as ek,MC as el,oPe as em,Cge as en,GP as eo,Tw as ep,mf as eq,UPe as er,BLe as es,Xe as et,wLe as eu,WLe as ev,D4e as ew,XLe as ex,of as ey,J4 as ez,Eke as f,D6 as f$,pPe as f0,hPe as f1,ap as f2,cye as f3,dPe as f4,lPe as f5,$ge as f6,fPe as f7,jq as f8,lv as f9,II as fA,ePe as fB,I_e as fC,D_e as fD,__e as fE,Yye as fF,y_e as fG,L_e as fH,q_e as fI,gPe as fJ,U_e as fK,B_e as fL,j_e as fM,H_e as fN,q_ as fO,mPe as fP,F_e as fQ,bye as fR,_b as fS,Ofe as fT,iPe as fU,gW as fV,gI as fW,AV as fX,ume as fY,WP as fZ,Ufe as f_,uPe as fa,G0e as fb,Rb as fc,Hx as fd,Ta as fe,Vo as ff,cPe as fg,cv as fh,VC as fi,SV as fj,CW as fk,jx as fl,j0e as fm,q0e as fn,cW as fo,uW as fp,zme as fq,sPe as fr,jve as fs,kve as ft,NV as fu,Ime as fv,S7 as fw,Bve as fx,na as fy,rPe as fz,rx as g,ame as g0,PC as g1,fme as g2,dme as g3,cme as g4,lhe as g5,ome as g6,mme as g7,bme as g8,Aoe as g9,mn as ga,Cue as gb,MPe as gc,fLe as gd,DPe as ge,hLe as gf,Uoe as gg,N9 as gh,hIe as gi,ML as gj,xoe as gk,_4e as gl,Cke as h,ju as i,ta as j,Be as k,ea as l,Ske as m,kL as n,Q4e as o,Rie as p,gf as q,_ as r,IP as s,UV as t,ii as u,yp as v,gl as w,PV as x,hq as y,At as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.