@ukpc-lib/react 0.1.10 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/components/index.cjs +65 -6
  2. package/dist/components/index.js +7180 -3010
  3. package/dist/index-9b2c9629.js +15460 -0
  4. package/dist/index-b4299ca4.cjs +155 -0
  5. package/dist/share/index.cjs +1 -101
  6. package/dist/share/index.js +56 -4374
  7. package/dist/src/components/GlobalMenu/helpers/index.d.ts +0 -0
  8. package/dist/src/components/StyledAutocomplete/AutocompleteOption.d.ts +11 -0
  9. package/dist/src/components/StyledAutocomplete/StyledAutocomplete.d.ts +29 -0
  10. package/dist/src/components/StyledAutocomplete/helpers.d.ts +1 -0
  11. package/dist/src/components/StyledAutocomplete/index.d.ts +3 -0
  12. package/dist/src/components/StyledAutocomplete/types.d.ts +46 -0
  13. package/dist/src/components/StyledAutocomplete/useStyledAutocomplete.d.ts +28 -0
  14. package/dist/{components → src/components}/index.d.ts +1 -0
  15. package/dist/src/share/helpers/index.d.ts +1 -0
  16. package/dist/{share → src/share}/index.d.ts +1 -0
  17. package/dist/{share → src/share}/interceptor/index.d.ts +2 -2
  18. package/package.json +6 -2
  19. package/web-components-bundle/global-menu/index.cjs +37 -11
  20. package/web-components-bundle/global-menu/index.js +11012 -7107
  21. package/web-components-bundle/global-topbar/index.cjs +1 -1
  22. package/web-components-bundle/global-topbar/index.js +1 -1
  23. package/web-components-bundle/{index-6ba7e1d4.js → index-094a6d97.js} +12 -10
  24. package/web-components-bundle/{index-447756c6.cjs → index-9fa9d5f1.cjs} +17 -17
  25. package/dist/components/GlobalMenu/helpers/index.d.ts +0 -3
  26. package/dist/interceptor.const-3d8c3adc.js +0 -11616
  27. package/dist/interceptor.const-abe41a95.cjs +0 -129
  28. /package/dist/{interceptor.css → index.css} +0 -0
  29. /package/dist/{components → src/components}/GlobalMenu/components/Dropdown.d.ts +0 -0
  30. /package/dist/{components → src/components}/GlobalMenu/components/MenuItem.d.ts +0 -0
  31. /package/dist/{components → src/components}/GlobalMenu/icons/IconCollapsed.d.ts +0 -0
  32. /package/dist/{components → src/components}/GlobalMenu/icons/IconDown.d.ts +0 -0
  33. /package/dist/{components → src/components}/GlobalMenu/icons/IconExpand.d.ts +0 -0
  34. /package/dist/{components → src/components}/GlobalMenu/icons/IconLogout.d.ts +0 -0
  35. /package/dist/{components → src/components}/GlobalMenu/index.d.ts +0 -0
  36. /package/dist/{components → src/components}/GlobalMenu/models/MenuItemDto.d.ts +0 -0
  37. /package/dist/{components → src/components}/GlobalMenu/models/index.d.ts +0 -0
  38. /package/dist/{components → src/components}/LanguageSwitcher/index.d.ts +0 -0
  39. /package/dist/{components → src/components}/LogoutConfirmModal/index.d.ts +0 -0
  40. /package/dist/{components → src/components}/ShadownDom/index.d.ts +0 -0
  41. /package/dist/{components → src/components}/Toast/ToastConfig.d.ts +0 -0
  42. /package/dist/{components → src/components}/Toast/icons/ErrorIcon.d.ts +0 -0
  43. /package/dist/{components → src/components}/Toast/icons/SuccessIcon.d.ts +0 -0
  44. /package/dist/{components → src/components}/Toast/icons/WarningIcon.d.ts +0 -0
  45. /package/dist/{components → src/components}/Toast/index.d.ts +0 -0
  46. /package/dist/{components → src/components}/Topbar/icons/MessageIcon.d.ts +0 -0
  47. /package/dist/{components → src/components}/Topbar/icons/NotificationIcon.d.ts +0 -0
  48. /package/dist/{components → src/components}/Topbar/index.d.ts +0 -0
  49. /package/dist/{share → src/share}/AuthProvider/index.d.ts +0 -0
  50. /package/dist/{share → src/share}/hooks/index.d.ts +0 -0
  51. /package/dist/{share → src/share}/hooks/useGetPermission.d.ts +0 -0
  52. /package/dist/{share → src/share}/interceptor/interceptor.const.d.ts +0 -0
  53. /package/dist/{share → src/share}/permissions/HasPermission.d.ts +0 -0
  54. /package/dist/{share → src/share}/permissions/PermissionRoute.d.ts +0 -0
  55. /package/dist/{share → src/share}/permissions/index.d.ts +0 -0
@@ -1,4 +1,9 @@
1
- "use strict";const p=require("../index-447756c6.cjs");/**
1
+ "use strict";const _=require("../index-9fa9d5f1.cjs");function Wh(t,n){return function(){return t.apply(n,arguments)}}const{toString:kw}=Object.prototype,{getPrototypeOf:Ja}=Object,Ss=(t=>n=>{const r=kw.call(n);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Fe=t=>(t=t.toLowerCase(),n=>Ss(n)===t),As=t=>n=>typeof n===t,{isArray:mr}=Array,Kr=As("undefined");function Ww(t){return t!==null&&!Kr(t)&&t.constructor!==null&&!Kr(t.constructor)&&be(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const jh=Fe("ArrayBuffer");function jw(t){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&jh(t.buffer),n}const Uw=As("string"),be=As("function"),Uh=As("number"),Ts=t=>t!==null&&typeof t=="object",zw=t=>t===!0||t===!1,ns=t=>{if(Ss(t)!=="object")return!1;const n=Ja(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Hw=Fe("Date"),$w=Fe("File"),Gw=Fe("Blob"),qw=Fe("FileList"),Kw=t=>Ts(t)&&be(t.pipe),Xw=t=>{let n;return t&&(typeof FormData=="function"&&t instanceof FormData||be(t.append)&&((n=Ss(t))==="formdata"||n==="object"&&be(t.toString)&&t.toString()==="[object FormData]"))},Yw=Fe("URLSearchParams"),Jw=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qr(t,n,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let s,a;if(typeof t!="object"&&(t=[t]),mr(t))for(s=0,a=t.length;s<a;s++)n.call(null,t[s],s,t);else{const u=r?Object.getOwnPropertyNames(t):Object.keys(t),l=u.length;let f;for(s=0;s<l;s++)f=u[s],n.call(null,t[f],f,t)}}function zh(t,n){n=n.toLowerCase();const r=Object.keys(t);let s=r.length,a;for(;s-- >0;)if(a=r[s],n===a.toLowerCase())return a;return null}const Hh=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),$h=t=>!Kr(t)&&t!==Hh;function Pa(){const{caseless:t}=$h(this)&&this||{},n={},r=(s,a)=>{const u=t&&zh(n,a)||a;ns(n[u])&&ns(s)?n[u]=Pa(n[u],s):ns(s)?n[u]=Pa({},s):mr(s)?n[u]=s.slice():n[u]=s};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&Qr(arguments[s],r);return n}const Zw=(t,n,r,{allOwnKeys:s}={})=>(Qr(n,(a,u)=>{r&&be(a)?t[u]=Wh(a,r):t[u]=a},{allOwnKeys:s}),t),Qw=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),t1=(t,n,r,s)=>{t.prototype=Object.create(n.prototype,s),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),r&&Object.assign(t.prototype,r)},e1=(t,n,r,s)=>{let a,u,l;const f={};if(n=n||{},t==null)return n;do{for(a=Object.getOwnPropertyNames(t),u=a.length;u-- >0;)l=a[u],(!s||s(l,t,n))&&!f[l]&&(n[l]=t[l],f[l]=!0);t=r!==!1&&Ja(t)}while(t&&(!r||r(t,n))&&t!==Object.prototype);return n},n1=(t,n,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=n.length;const s=t.indexOf(n,r);return s!==-1&&s===r},r1=t=>{if(!t)return null;if(mr(t))return t;let n=t.length;if(!Uh(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=t[n];return r},i1=(t=>n=>t&&n instanceof t)(typeof Uint8Array<"u"&&Ja(Uint8Array)),s1=(t,n)=>{const s=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=s.next())&&!a.done;){const u=a.value;n.call(t,u[0],u[1])}},o1=(t,n)=>{let r;const s=[];for(;(r=t.exec(n))!==null;)s.push(r);return s},a1=Fe("HTMLFormElement"),l1=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,s,a){return s.toUpperCase()+a}),rf=(({hasOwnProperty:t})=>(n,r)=>t.call(n,r))(Object.prototype),u1=Fe("RegExp"),Gh=(t,n)=>{const r=Object.getOwnPropertyDescriptors(t),s={};Qr(r,(a,u)=>{let l;(l=n(a,u,t))!==!1&&(s[u]=l||a)}),Object.defineProperties(t,s)},c1=t=>{Gh(t,(n,r)=>{if(be(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const s=t[r];if(be(s)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},f1=(t,n)=>{const r={},s=a=>{a.forEach(u=>{r[u]=!0})};return mr(t)?s(t):s(String(t).split(n)),r},h1=()=>{},d1=(t,n)=>(t=+t,Number.isFinite(t)?t:n),la="abcdefghijklmnopqrstuvwxyz",sf="0123456789",qh={DIGIT:sf,ALPHA:la,ALPHA_DIGIT:la+la.toUpperCase()+sf},p1=(t=16,n=qh.ALPHA_DIGIT)=>{let r="";const{length:s}=n;for(;t--;)r+=n[Math.random()*s|0];return r};function m1(t){return!!(t&&be(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const g1=t=>{const n=new Array(10),r=(s,a)=>{if(Ts(s)){if(n.indexOf(s)>=0)return;if(!("toJSON"in s)){n[a]=s;const u=mr(s)?[]:{};return Qr(s,(l,f)=>{const h=r(l,a+1);!Kr(h)&&(u[f]=h)}),n[a]=void 0,u}}return s};return r(t,0)},v1=Fe("AsyncFunction"),y1=t=>t&&(Ts(t)||be(t))&&be(t.then)&&be(t.catch),V={isArray:mr,isArrayBuffer:jh,isBuffer:Ww,isFormData:Xw,isArrayBufferView:jw,isString:Uw,isNumber:Uh,isBoolean:zw,isObject:Ts,isPlainObject:ns,isUndefined:Kr,isDate:Hw,isFile:$w,isBlob:Gw,isRegExp:u1,isFunction:be,isStream:Kw,isURLSearchParams:Yw,isTypedArray:i1,isFileList:qw,forEach:Qr,merge:Pa,extend:Zw,trim:Jw,stripBOM:Qw,inherits:t1,toFlatObject:e1,kindOf:Ss,kindOfTest:Fe,endsWith:n1,toArray:r1,forEachEntry:s1,matchAll:o1,isHTMLForm:a1,hasOwnProperty:rf,hasOwnProp:rf,reduceDescriptors:Gh,freezeMethods:c1,toObjectSet:f1,toCamelCase:l1,noop:h1,toFiniteNumber:d1,findKey:zh,global:Hh,isContextDefined:$h,ALPHABET:qh,generateString:p1,isSpecCompliantForm:m1,toJSONObject:g1,isAsyncFn:v1,isThenable:y1};function ot(t,n,r,s,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),a&&(this.response=a)}V.inherits(ot,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Kh=ot.prototype,Xh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Xh[t]={value:t}});Object.defineProperties(ot,Xh);Object.defineProperty(Kh,"isAxiosError",{value:!0});ot.from=(t,n,r,s,a,u)=>{const l=Object.create(Kh);return V.toFlatObject(t,l,function(h){return h!==Error.prototype},f=>f!=="isAxiosError"),ot.call(l,t.message,n,r,s,a),l.cause=t,l.name=t.name,u&&Object.assign(l,u),l};const x1=null;function Oa(t){return V.isPlainObject(t)||V.isArray(t)}function Yh(t){return V.endsWith(t,"[]")?t.slice(0,-2):t}function of(t,n,r){return t?t.concat(n).map(function(a,u){return a=Yh(a),!r&&u?"["+a+"]":a}).join(r?".":""):n}function b1(t){return V.isArray(t)&&!t.some(Oa)}const w1=V.toFlatObject(V,{},null,function(n){return/^is[A-Z]/.test(n)});function Rs(t,n,r){if(!V.isObject(t))throw new TypeError("target must be an object");n=n||new FormData,r=V.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,C){return!V.isUndefined(C[R])});const s=r.metaTokens,a=r.visitor||g,u=r.dots,l=r.indexes,h=(r.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(n);if(!V.isFunction(a))throw new TypeError("visitor must be a function");function m(S){if(S===null)return"";if(V.isDate(S))return S.toISOString();if(!h&&V.isBlob(S))throw new ot("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(S)||V.isTypedArray(S)?h&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function g(S,R,C){let M=S;if(S&&!C&&typeof S=="object"){if(V.endsWith(R,"{}"))R=s?R:R.slice(0,-2),S=JSON.stringify(S);else if(V.isArray(S)&&b1(S)||(V.isFileList(S)||V.endsWith(R,"[]"))&&(M=V.toArray(S)))return R=Yh(R),M.forEach(function(O,N){!(V.isUndefined(O)||O===null)&&n.append(l===!0?of([R],N,u):l===null?R:R+"[]",m(O))}),!1}return Oa(S)?!0:(n.append(of(C,R,u),m(S)),!1)}const p=[],b=Object.assign(w1,{defaultVisitor:g,convertValue:m,isVisitable:Oa});function w(S,R){if(!V.isUndefined(S)){if(p.indexOf(S)!==-1)throw Error("Circular reference detected in "+R.join("."));p.push(S),V.forEach(S,function(M,B){(!(V.isUndefined(M)||M===null)&&a.call(n,M,V.isString(B)?B.trim():B,R,b))===!0&&w(M,R?R.concat(B):[B])}),p.pop()}}if(!V.isObject(t))throw new TypeError("data must be an object");return w(t),n}function af(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(s){return n[s]})}function Za(t,n){this._pairs=[],t&&Rs(t,this,n)}const Jh=Za.prototype;Jh.append=function(n,r){this._pairs.push([n,r])};Jh.toString=function(n){const r=n?function(s){return n.call(this,s,af)}:af;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function E1(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zh(t,n,r){if(!n)return t;const s=r&&r.encode||E1,a=r&&r.serialize;let u;if(a?u=a(n,r):u=V.isURLSearchParams(n)?n.toString():new Za(n,r).toString(s),u){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+u}return t}class _1{constructor(){this.handlers=[]}use(n,r,s){return this.handlers.push({fulfilled:n,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){V.forEach(this.handlers,function(s){s!==null&&n(s)})}}const lf=_1,Qh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},S1=typeof URLSearchParams<"u"?URLSearchParams:Za,A1=typeof FormData<"u"?FormData:null,T1=typeof Blob<"u"?Blob:null,R1={isBrowser:!0,classes:{URLSearchParams:S1,FormData:A1,Blob:T1},protocols:["http","https","file","blob","url","data"]},td=typeof window<"u"&&typeof document<"u",C1=(t=>td&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),P1=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),O1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:td,hasStandardBrowserEnv:C1,hasStandardBrowserWebWorkerEnv:P1},Symbol.toStringTag,{value:"Module"})),Ve={...O1,...R1};function L1(t,n){return Rs(t,new Ve.classes.URLSearchParams,Object.assign({visitor:function(r,s,a,u){return Ve.isNode&&V.isBuffer(r)?(this.append(s,r.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},n))}function M1(t){return V.matchAll(/\w+|\[(\w*)]/g,t).map(n=>n[0]==="[]"?"":n[1]||n[0])}function I1(t){const n={},r=Object.keys(t);let s;const a=r.length;let u;for(s=0;s<a;s++)u=r[s],n[u]=t[u];return n}function ed(t){function n(r,s,a,u){let l=r[u++];if(l==="__proto__")return!0;const f=Number.isFinite(+l),h=u>=r.length;return l=!l&&V.isArray(a)?a.length:l,h?(V.hasOwnProp(a,l)?a[l]=[a[l],s]:a[l]=s,!f):((!a[l]||!V.isObject(a[l]))&&(a[l]=[]),n(r,s,a[l],u)&&V.isArray(a[l])&&(a[l]=I1(a[l])),!f)}if(V.isFormData(t)&&V.isFunction(t.entries)){const r={};return V.forEachEntry(t,(s,a)=>{n(M1(s),a,r,0)}),r}return null}function D1(t,n,r){if(V.isString(t))try{return(n||JSON.parse)(t),V.trim(t)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(t)}const Qa={transitional:Qh,adapter:["xhr","http"],transformRequest:[function(n,r){const s=r.getContentType()||"",a=s.indexOf("application/json")>-1,u=V.isObject(n);if(u&&V.isHTMLForm(n)&&(n=new FormData(n)),V.isFormData(n))return a&&a?JSON.stringify(ed(n)):n;if(V.isArrayBuffer(n)||V.isBuffer(n)||V.isStream(n)||V.isFile(n)||V.isBlob(n))return n;if(V.isArrayBufferView(n))return n.buffer;if(V.isURLSearchParams(n))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let f;if(u){if(s.indexOf("application/x-www-form-urlencoded")>-1)return L1(n,this.formSerializer).toString();if((f=V.isFileList(n))||s.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Rs(f?{"files[]":n}:n,h&&new h,this.formSerializer)}}return u||a?(r.setContentType("application/json",!1),D1(n)):n}],transformResponse:[function(n){const r=this.transitional||Qa.transitional,s=r&&r.forcedJSONParsing,a=this.responseType==="json";if(n&&V.isString(n)&&(s&&!this.responseType||a)){const l=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(n)}catch(f){if(l)throw f.name==="SyntaxError"?ot.from(f,ot.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],t=>{Qa.headers[t]={}});const tl=Qa,V1=V.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"]),B1=t=>{const n={};let r,s,a;return t&&t.split(`
2
+ `).forEach(function(l){a=l.indexOf(":"),r=l.substring(0,a).trim().toLowerCase(),s=l.substring(a+1).trim(),!(!r||n[r]&&V1[r])&&(r==="set-cookie"?n[r]?n[r].push(s):n[r]=[s]:n[r]=n[r]?n[r]+", "+s:s)}),n},uf=Symbol("internals");function Fr(t){return t&&String(t).trim().toLowerCase()}function rs(t){return t===!1||t==null?t:V.isArray(t)?t.map(rs):String(t)}function F1(t){const n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=r.exec(t);)n[s[1]]=s[2];return n}const N1=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ua(t,n,r,s,a){if(V.isFunction(s))return s.call(this,n,r);if(a&&(n=r),!!V.isString(n)){if(V.isString(s))return n.indexOf(s)!==-1;if(V.isRegExp(s))return s.test(n)}}function k1(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,r,s)=>r.toUpperCase()+s)}function W1(t,n){const r=V.toCamelCase(" "+n);["get","set","has"].forEach(s=>{Object.defineProperty(t,s+r,{value:function(a,u,l){return this[s].call(this,n,a,u,l)},configurable:!0})})}class Cs{constructor(n){n&&this.set(n)}set(n,r,s){const a=this;function u(f,h,m){const g=Fr(h);if(!g)throw new Error("header name must be a non-empty string");const p=V.findKey(a,g);(!p||a[p]===void 0||m===!0||m===void 0&&a[p]!==!1)&&(a[p||h]=rs(f))}const l=(f,h)=>V.forEach(f,(m,g)=>u(m,g,h));return V.isPlainObject(n)||n instanceof this.constructor?l(n,r):V.isString(n)&&(n=n.trim())&&!N1(n)?l(B1(n),r):n!=null&&u(r,n,s),this}get(n,r){if(n=Fr(n),n){const s=V.findKey(this,n);if(s){const a=this[s];if(!r)return a;if(r===!0)return F1(a);if(V.isFunction(r))return r.call(this,a,s);if(V.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,r){if(n=Fr(n),n){const s=V.findKey(this,n);return!!(s&&this[s]!==void 0&&(!r||ua(this,this[s],s,r)))}return!1}delete(n,r){const s=this;let a=!1;function u(l){if(l=Fr(l),l){const f=V.findKey(s,l);f&&(!r||ua(s,s[f],f,r))&&(delete s[f],a=!0)}}return V.isArray(n)?n.forEach(u):u(n),a}clear(n){const r=Object.keys(this);let s=r.length,a=!1;for(;s--;){const u=r[s];(!n||ua(this,this[u],u,n,!0))&&(delete this[u],a=!0)}return a}normalize(n){const r=this,s={};return V.forEach(this,(a,u)=>{const l=V.findKey(s,u);if(l){r[l]=rs(a),delete r[u];return}const f=n?k1(u):String(u).trim();f!==u&&delete r[u],r[f]=rs(a),s[f]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const r=Object.create(null);return V.forEach(this,(s,a)=>{s!=null&&s!==!1&&(r[a]=n&&V.isArray(s)?s.join(", "):s)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,r])=>n+": "+r).join(`
3
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...r){const s=new this(n);return r.forEach(a=>s.set(a)),s}static accessor(n){const s=(this[uf]=this[uf]={accessors:{}}).accessors,a=this.prototype;function u(l){const f=Fr(l);s[f]||(W1(a,l),s[f]=!0)}return V.isArray(n)?n.forEach(u):u(n),this}}Cs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(Cs.prototype,({value:t},n)=>{let r=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(s){this[r]=s}}});V.freezeMethods(Cs);const Ye=Cs;function ca(t,n){const r=this||tl,s=n||r,a=Ye.from(s.headers);let u=s.data;return V.forEach(t,function(f){u=f.call(r,u,a.normalize(),n?n.status:void 0)}),a.normalize(),u}function nd(t){return!!(t&&t.__CANCEL__)}function ti(t,n,r){ot.call(this,t??"canceled",ot.ERR_CANCELED,n,r),this.name="CanceledError"}V.inherits(ti,ot,{__CANCEL__:!0});function j1(t,n,r){const s=r.config.validateStatus;!r.status||!s||s(r.status)?t(r):n(new ot("Request failed with status code "+r.status,[ot.ERR_BAD_REQUEST,ot.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const U1=Ve.hasStandardBrowserEnv?{write(t,n,r,s,a,u){const l=[t+"="+encodeURIComponent(n)];V.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),V.isString(s)&&l.push("path="+s),V.isString(a)&&l.push("domain="+a),u===!0&&l.push("secure"),document.cookie=l.join("; ")},read(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function z1(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function H1(t,n){return n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t}function rd(t,n){return t&&!z1(n)?H1(t,n):n}const $1=Ve.hasStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let s;function a(u){let l=u;return n&&(r.setAttribute("href",l),l=r.href),r.setAttribute("href",l),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return s=a(window.location.href),function(l){const f=V.isString(l)?a(l):l;return f.protocol===s.protocol&&f.host===s.host}}():function(){return function(){return!0}}();function G1(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}function q1(t,n){t=t||10;const r=new Array(t),s=new Array(t);let a=0,u=0,l;return n=n!==void 0?n:1e3,function(h){const m=Date.now(),g=s[u];l||(l=m),r[a]=h,s[a]=m;let p=u,b=0;for(;p!==a;)b+=r[p++],p=p%t;if(a=(a+1)%t,a===u&&(u=(u+1)%t),m-l<n)return;const w=g&&m-g;return w?Math.round(b*1e3/w):void 0}}function cf(t,n){let r=0;const s=q1(50,250);return a=>{const u=a.loaded,l=a.lengthComputable?a.total:void 0,f=u-r,h=s(f),m=u<=l;r=u;const g={loaded:u,total:l,progress:l?u/l:void 0,bytes:f,rate:h||void 0,estimated:h&&l&&m?(l-u)/h:void 0,event:a};g[n?"download":"upload"]=!0,t(g)}}const K1=typeof XMLHttpRequest<"u",X1=K1&&function(t){return new Promise(function(r,s){let a=t.data;const u=Ye.from(t.headers).normalize();let{responseType:l,withXSRFToken:f}=t,h;function m(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}let g;if(V.isFormData(a)){if(Ve.hasStandardBrowserEnv||Ve.hasStandardBrowserWebWorkerEnv)u.setContentType(!1);else if((g=u.getContentType())!==!1){const[R,...C]=g?g.split(";").map(M=>M.trim()).filter(Boolean):[];u.setContentType([R||"multipart/form-data",...C].join("; "))}}let p=new XMLHttpRequest;if(t.auth){const R=t.auth.username||"",C=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";u.set("Authorization","Basic "+btoa(R+":"+C))}const b=rd(t.baseURL,t.url);p.open(t.method.toUpperCase(),Zh(b,t.params,t.paramsSerializer),!0),p.timeout=t.timeout;function w(){if(!p)return;const R=Ye.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),M={data:!l||l==="text"||l==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:R,config:t,request:p};j1(function(O){r(O),m()},function(O){s(O),m()},M),p=null}if("onloadend"in p?p.onloadend=w:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(w)},p.onabort=function(){p&&(s(new ot("Request aborted",ot.ECONNABORTED,t,p)),p=null)},p.onerror=function(){s(new ot("Network Error",ot.ERR_NETWORK,t,p)),p=null},p.ontimeout=function(){let C=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const M=t.transitional||Qh;t.timeoutErrorMessage&&(C=t.timeoutErrorMessage),s(new ot(C,M.clarifyTimeoutError?ot.ETIMEDOUT:ot.ECONNABORTED,t,p)),p=null},Ve.hasStandardBrowserEnv&&(f&&V.isFunction(f)&&(f=f(t)),f||f!==!1&&$1(b))){const R=t.xsrfHeaderName&&t.xsrfCookieName&&U1.read(t.xsrfCookieName);R&&u.set(t.xsrfHeaderName,R)}a===void 0&&u.setContentType(null),"setRequestHeader"in p&&V.forEach(u.toJSON(),function(C,M){p.setRequestHeader(M,C)}),V.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),l&&l!=="json"&&(p.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&p.addEventListener("progress",cf(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",cf(t.onUploadProgress)),(t.cancelToken||t.signal)&&(h=R=>{p&&(s(!R||R.type?new ti(null,t,p):R),p.abort(),p=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h)));const S=G1(b);if(S&&Ve.protocols.indexOf(S)===-1){s(new ot("Unsupported protocol "+S+":",ot.ERR_BAD_REQUEST,t));return}p.send(a||null)})},La={http:x1,xhr:X1};V.forEach(La,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch{}Object.defineProperty(t,"adapterName",{value:n})}});const ff=t=>`- ${t}`,Y1=t=>V.isFunction(t)||t===null||t===!1,id={getAdapter:t=>{t=V.isArray(t)?t:[t];const{length:n}=t;let r,s;const a={};for(let u=0;u<n;u++){r=t[u];let l;if(s=r,!Y1(r)&&(s=La[(l=String(r)).toLowerCase()],s===void 0))throw new ot(`Unknown adapter '${l}'`);if(s)break;a[l||"#"+u]=s}if(!s){const u=Object.entries(a).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let l=n?u.length>1?`since :
4
+ `+u.map(ff).join(`
5
+ `):" "+ff(u[0]):"as no adapter specified";throw new ot("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return s},adapters:La};function fa(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ti(null,t)}function hf(t){return fa(t),t.headers=Ye.from(t.headers),t.data=ca.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),id.getAdapter(t.adapter||tl.adapter)(t).then(function(s){return fa(t),s.data=ca.call(t,t.transformResponse,s),s.headers=Ye.from(s.headers),s},function(s){return nd(s)||(fa(t),s&&s.response&&(s.response.data=ca.call(t,t.transformResponse,s.response),s.response.headers=Ye.from(s.response.headers))),Promise.reject(s)})}const df=t=>t instanceof Ye?t.toJSON():t;function hr(t,n){n=n||{};const r={};function s(m,g,p){return V.isPlainObject(m)&&V.isPlainObject(g)?V.merge.call({caseless:p},m,g):V.isPlainObject(g)?V.merge({},g):V.isArray(g)?g.slice():g}function a(m,g,p){if(V.isUndefined(g)){if(!V.isUndefined(m))return s(void 0,m,p)}else return s(m,g,p)}function u(m,g){if(!V.isUndefined(g))return s(void 0,g)}function l(m,g){if(V.isUndefined(g)){if(!V.isUndefined(m))return s(void 0,m)}else return s(void 0,g)}function f(m,g,p){if(p in n)return s(m,g);if(p in t)return s(void 0,m)}const h={url:u,method:u,data:u,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:f,headers:(m,g)=>a(df(m),df(g),!0)};return V.forEach(Object.keys(Object.assign({},t,n)),function(g){const p=h[g]||a,b=p(t[g],n[g],g);V.isUndefined(b)&&p!==f||(r[g]=b)}),r}const sd="1.6.5",el={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{el[t]=function(s){return typeof s===t||"a"+(n<1?"n ":" ")+t}});const pf={};el.transitional=function(n,r,s){function a(u,l){return"[Axios v"+sd+"] Transitional option '"+u+"'"+l+(s?". "+s:"")}return(u,l,f)=>{if(n===!1)throw new ot(a(l," has been removed"+(r?" in "+r:"")),ot.ERR_DEPRECATED);return r&&!pf[l]&&(pf[l]=!0,console.warn(a(l," has been deprecated since v"+r+" and will be removed in the near future"))),n?n(u,l,f):!0}};function J1(t,n,r){if(typeof t!="object")throw new ot("options must be an object",ot.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let a=s.length;for(;a-- >0;){const u=s[a],l=n[u];if(l){const f=t[u],h=f===void 0||l(f,u,t);if(h!==!0)throw new ot("option "+u+" must be "+h,ot.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ot("Unknown option "+u,ot.ERR_BAD_OPTION)}}const Ma={assertOptions:J1,validators:el},dn=Ma.validators;class ls{constructor(n){this.defaults=n,this.interceptors={request:new lf,response:new lf}}request(n,r){typeof n=="string"?(r=r||{},r.url=n):r=n||{},r=hr(this.defaults,r);const{transitional:s,paramsSerializer:a,headers:u}=r;s!==void 0&&Ma.assertOptions(s,{silentJSONParsing:dn.transitional(dn.boolean),forcedJSONParsing:dn.transitional(dn.boolean),clarifyTimeoutError:dn.transitional(dn.boolean)},!1),a!=null&&(V.isFunction(a)?r.paramsSerializer={serialize:a}:Ma.assertOptions(a,{encode:dn.function,serialize:dn.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let l=u&&V.merge(u.common,u[r.method]);u&&V.forEach(["delete","get","head","post","put","patch","common"],S=>{delete u[S]}),r.headers=Ye.concat(l,u);const f=[];let h=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(r)===!1||(h=h&&R.synchronous,f.unshift(R.fulfilled,R.rejected))});const m=[];this.interceptors.response.forEach(function(R){m.push(R.fulfilled,R.rejected)});let g,p=0,b;if(!h){const S=[hf.bind(this),void 0];for(S.unshift.apply(S,f),S.push.apply(S,m),b=S.length,g=Promise.resolve(r);p<b;)g=g.then(S[p++],S[p++]);return g}b=f.length;let w=r;for(p=0;p<b;){const S=f[p++],R=f[p++];try{w=S(w)}catch(C){R.call(this,C);break}}try{g=hf.call(this,w)}catch(S){return Promise.reject(S)}for(p=0,b=m.length;p<b;)g=g.then(m[p++],m[p++]);return g}getUri(n){n=hr(this.defaults,n);const r=rd(n.baseURL,n.url);return Zh(r,n.params,n.paramsSerializer)}}V.forEach(["delete","get","head","options"],function(n){ls.prototype[n]=function(r,s){return this.request(hr(s||{},{method:n,url:r,data:(s||{}).data}))}});V.forEach(["post","put","patch"],function(n){function r(s){return function(u,l,f){return this.request(hr(f||{},{method:n,headers:s?{"Content-Type":"multipart/form-data"}:{},url:u,data:l}))}}ls.prototype[n]=r(),ls.prototype[n+"Form"]=r(!0)});const is=ls;class nl{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(u){r=u});const s=this;this.promise.then(a=>{if(!s._listeners)return;let u=s._listeners.length;for(;u-- >0;)s._listeners[u](a);s._listeners=null}),this.promise.then=a=>{let u;const l=new Promise(f=>{s.subscribe(f),u=f}).then(a);return l.cancel=function(){s.unsubscribe(u)},l},n(function(u,l,f){s.reason||(s.reason=new ti(u,l,f),r(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}static source(){let n;return{token:new nl(function(a){n=a}),cancel:n}}}const Z1=nl;function Q1(t){return function(r){return t.apply(null,r)}}function tE(t){return V.isObject(t)&&t.isAxiosError===!0}const Ia={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ia).forEach(([t,n])=>{Ia[n]=t});const eE=Ia;function od(t){const n=new is(t),r=Wh(is.prototype.request,n);return V.extend(r,is.prototype,n,{allOwnKeys:!0}),V.extend(r,n,null,{allOwnKeys:!0}),r.create=function(a){return od(hr(t,a))},r}const Pt=od(tl);Pt.Axios=is;Pt.CanceledError=ti;Pt.CancelToken=Z1;Pt.isCancel=nd;Pt.VERSION=sd;Pt.toFormData=Rs;Pt.AxiosError=ot;Pt.Cancel=Pt.CanceledError;Pt.all=function(n){return Promise.all(n)};Pt.spread=Q1;Pt.isAxiosError=tE;Pt.mergeConfig=hr;Pt.AxiosHeaders=Ye;Pt.formToJSON=t=>ed(V.isHTMLForm(t)?new FormData(t):t);Pt.getAdapter=id.getAdapter;Pt.HttpStatusCode=eE;Pt.default=Pt;const nE=Pt;var rE=typeof global=="object"&&global&&global.Object===Object&&global;const iE=rE;var sE=typeof self=="object"&&self&&self.Object===Object&&self,oE=iE||sE||Function("return this")();const ad=oE;var aE=ad.Symbol;const us=aE;var ld=Object.prototype,lE=ld.hasOwnProperty,uE=ld.toString,Nr=us?us.toStringTag:void 0;function cE(t){var n=lE.call(t,Nr),r=t[Nr];try{t[Nr]=void 0;var s=!0}catch{}var a=uE.call(t);return s&&(n?t[Nr]=r:delete t[Nr]),a}var fE=Object.prototype,hE=fE.toString;function dE(t){return hE.call(t)}var pE="[object Null]",mE="[object Undefined]",mf=us?us.toStringTag:void 0;function gE(t){return t==null?t===void 0?mE:pE:mf&&mf in Object(t)?cE(t):dE(t)}function vE(t){return t!=null&&typeof t=="object"}var yE="[object Symbol]";function xE(t){return typeof t=="symbol"||vE(t)&&gE(t)==yE}var bE=/\s/;function wE(t){for(var n=t.length;n--&&bE.test(t.charAt(n)););return n}var EE=/^\s+/;function _E(t){return t&&t.slice(0,wE(t)+1).replace(EE,"")}function cs(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var gf=0/0,SE=/^[-+]0x[0-9a-f]+$/i,AE=/^0b[01]+$/i,TE=/^0o[0-7]+$/i,RE=parseInt;function vf(t){if(typeof t=="number")return t;if(xE(t))return gf;if(cs(t)){var n=typeof t.valueOf=="function"?t.valueOf():t;t=cs(n)?n+"":n}if(typeof t!="string")return t===0?t:+t;t=_E(t);var r=AE.test(t);return r||TE.test(t)?RE(t.slice(2),r?2:8):SE.test(t)?gf:+t}var CE=function(){return ad.Date.now()};const ha=CE;var PE="Expected a function",OE=Math.max,LE=Math.min;function ss(t,n,r){var s,a,u,l,f,h,m=0,g=!1,p=!1,b=!0;if(typeof t!="function")throw new TypeError(PE);n=vf(n)||0,cs(r)&&(g=!!r.leading,p="maxWait"in r,u=p?OE(vf(r.maxWait)||0,n):u,b="trailing"in r?!!r.trailing:b);function w(z){var U=s,W=a;return s=a=void 0,m=z,l=t.apply(W,U),l}function S(z){return m=z,f=setTimeout(M,n),g?w(z):l}function R(z){var U=z-h,W=z-m,q=n-U;return p?LE(q,u-W):q}function C(z){var U=z-h,W=z-m;return h===void 0||U>=n||U<0||p&&W>=u}function M(){var z=ha();if(C(z))return B(z);f=setTimeout(M,R(z))}function B(z){return f=void 0,b&&s?w(z):(s=a=void 0,l)}function O(){f!==void 0&&clearTimeout(f),m=0,s=h=a=f=void 0}function N(){return f===void 0?l:B(ha())}function k(){var z=ha(),U=C(z);if(s=arguments,a=this,h=z,U){if(f===void 0)return S(h);if(p)return clearTimeout(f),f=setTimeout(M,n),w(h)}return f===void 0&&(f=setTimeout(M,n)),l}return k.cancel=O,k.flush=N,k}var ME="Expected a function";function IE(t,n,r){var s=!0,a=!0;if(typeof t!="function")throw new TypeError(ME);return cs(r)&&(s="leading"in r?!!r.leading:s,a="trailing"in r?!!r.trailing:a),ss(t,n,{leading:s,maxWait:n,trailing:a})}var DE=!!(typeof window<"u"&&window.document&&window.document.createElement),VE=DE;const ud=_.getDefaultExportFromCjs(VE);var ar=function(){return ar=Object.assign||function(n){for(var r,s=1,a=arguments.length;s<a;s++){r=arguments[s];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(n[u]=r[u])}return n},ar.apply(this,arguments)},sr=null,yf=null;ud&&window.addEventListener("resize",function(){yf!==window.devicePixelRatio&&(yf=window.devicePixelRatio,sr=null)});function xf(){if(sr===null){if(typeof document>"u")return sr=0,sr;var t=document.body,n=document.createElement("div");n.classList.add("simplebar-hide-scrollbar"),t.appendChild(n);var r=n.getBoundingClientRect().right;t.removeChild(n),sr=r}return sr}function cd(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function fd(t){return!t||!t.ownerDocument?document:t.ownerDocument}var hd=function(t){var n={},r=Array.prototype.reduce.call(t,function(s,a){var u=a.name.match(/data-simplebar-(.+)/);if(u){var l=u[1].replace(/\W+(.)/g,function(f,h){return h.toUpperCase()});switch(a.value){case"true":s[l]=!0;break;case"false":s[l]=!1;break;case void 0:s[l]=!0;break;default:s[l]=a.value}}return s},n);return r};function dd(t,n){var r;t&&(r=t.classList).add.apply(r,n.split(" "))}function pd(t,n){t&&n.split(" ").forEach(function(r){t.classList.remove(r)})}function md(t){return".".concat(t.split(" ").join("."))}var BE=Object.freeze({__proto__:null,getElementWindow:cd,getElementDocument:fd,getOptions:hd,addClasses:dd,removeClasses:pd,classNamesToQuery:md}),pn=cd,da=fd,FE=hd,mn=dd,gn=pd,Zt=md,Xi=function(){function t(n,r){r===void 0&&(r={});var s=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var a=pn(s.el);s.scrollXTicking||(a.requestAnimationFrame(s.scrollX),s.scrollXTicking=!0),s.scrollYTicking||(a.requestAnimationFrame(s.scrollY),s.scrollYTicking=!0),s.isScrolling||(s.isScrolling=!0,mn(s.el,s.classNames.scrolling)),s.showScrollbar("x"),s.showScrollbar("y"),s.onStopScrolling()},this.scrollX=function(){s.axis.x.isOverflowing&&s.positionScrollbar("x"),s.scrollXTicking=!1},this.scrollY=function(){s.axis.y.isOverflowing&&s.positionScrollbar("y"),s.scrollYTicking=!1},this._onStopScrolling=function(){gn(s.el,s.classNames.scrolling),s.options.autoHide&&(s.hideScrollbar("x"),s.hideScrollbar("y")),s.isScrolling=!1},this.onMouseEnter=function(){s.isMouseEntering||(mn(s.el,s.classNames.mouseEntered),s.showScrollbar("x"),s.showScrollbar("y"),s.isMouseEntering=!0),s.onMouseEntered()},this._onMouseEntered=function(){gn(s.el,s.classNames.mouseEntered),s.options.autoHide&&(s.hideScrollbar("x"),s.hideScrollbar("y")),s.isMouseEntering=!1},this._onMouseMove=function(a){s.mouseX=a.clientX,s.mouseY=a.clientY,(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&s.onMouseMoveForAxis("x"),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&s.onMouseMoveForAxis("y")},this.onMouseLeave=function(){s.onMouseMove.cancel(),(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&s.onMouseLeaveForAxis("x"),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&s.onMouseLeaveForAxis("y"),s.mouseX=-1,s.mouseY=-1},this._onWindowResize=function(){s.scrollbarWidth=s.getScrollbarWidth(),s.hideNativeScrollbar()},this.onPointerEvent=function(a){if(!(!s.axis.x.track.el||!s.axis.y.track.el||!s.axis.x.scrollbar.el||!s.axis.y.scrollbar.el)){var u,l;s.axis.x.track.rect=s.axis.x.track.el.getBoundingClientRect(),s.axis.y.track.rect=s.axis.y.track.el.getBoundingClientRect(),(s.axis.x.isOverflowing||s.axis.x.forceVisible)&&(u=s.isWithinBounds(s.axis.x.track.rect)),(s.axis.y.isOverflowing||s.axis.y.forceVisible)&&(l=s.isWithinBounds(s.axis.y.track.rect)),(u||l)&&(a.stopPropagation(),a.type==="pointerdown"&&a.pointerType!=="touch"&&(u&&(s.axis.x.scrollbar.rect=s.axis.x.scrollbar.el.getBoundingClientRect(),s.isWithinBounds(s.axis.x.scrollbar.rect)?s.onDragStart(a,"x"):s.onTrackClick(a,"x")),l&&(s.axis.y.scrollbar.rect=s.axis.y.scrollbar.el.getBoundingClientRect(),s.isWithinBounds(s.axis.y.scrollbar.rect)?s.onDragStart(a,"y"):s.onTrackClick(a,"y"))))}},this.drag=function(a){var u,l,f,h,m,g,p,b,w,S,R;if(!(!s.draggedAxis||!s.contentWrapperEl)){var C,M=s.axis[s.draggedAxis].track,B=(l=(u=M.rect)===null||u===void 0?void 0:u[s.axis[s.draggedAxis].sizeAttr])!==null&&l!==void 0?l:0,O=s.axis[s.draggedAxis].scrollbar,N=(h=(f=s.contentWrapperEl)===null||f===void 0?void 0:f[s.axis[s.draggedAxis].scrollSizeAttr])!==null&&h!==void 0?h:0,k=parseInt((g=(m=s.elStyles)===null||m===void 0?void 0:m[s.axis[s.draggedAxis].sizeAttr])!==null&&g!==void 0?g:"0px",10);a.preventDefault(),a.stopPropagation(),s.draggedAxis==="y"?C=a.pageY:C=a.pageX;var z=C-((b=(p=M.rect)===null||p===void 0?void 0:p[s.axis[s.draggedAxis].offsetAttr])!==null&&b!==void 0?b:0)-s.axis[s.draggedAxis].dragOffset;z=s.draggedAxis==="x"&&s.isRtl?((S=(w=M.rect)===null||w===void 0?void 0:w[s.axis[s.draggedAxis].sizeAttr])!==null&&S!==void 0?S:0)-O.size-z:z;var U=z/(B-O.size),W=U*(N-k);s.draggedAxis==="x"&&s.isRtl&&(W=!((R=t.getRtlHelpers())===null||R===void 0)&&R.isScrollingToNegative?-W:W),s.contentWrapperEl[s.axis[s.draggedAxis].scrollOffsetAttr]=W}},this.onEndDrag=function(a){var u=da(s.el),l=pn(s.el);a.preventDefault(),a.stopPropagation(),gn(s.el,s.classNames.dragging),u.removeEventListener("mousemove",s.drag,!0),u.removeEventListener("mouseup",s.onEndDrag,!0),s.removePreventClickId=l.setTimeout(function(){u.removeEventListener("click",s.preventClick,!0),u.removeEventListener("dblclick",s.preventClick,!0),s.removePreventClickId=null})},this.preventClick=function(a){a.preventDefault(),a.stopPropagation()},this.el=n,this.options=ar(ar({},t.defaultOptions),r),this.classNames=ar(ar({},t.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=IE(this._onMouseMove,64),this.onWindowResize=ss(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=ss(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=ss(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var n=document.createElement("div");n.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=n.firstElementChild,s=r==null?void 0:r.firstElementChild;if(!s)return null;document.body.appendChild(r),r.scrollLeft=0;var a=t.getOffset(r),u=t.getOffset(s);r.scrollLeft=-999;var l=t.getOffset(s);return document.body.removeChild(r),t.rtlHelpers={isScrollOriginAtZero:a.left!==u.left,isScrollingToNegative:u.left!==l.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:xf()}catch{return xf()}},t.getOffset=function(n){var r=n.getBoundingClientRect(),s=da(n),a=pn(n);return{top:r.top+(a.pageYOffset||s.documentElement.scrollTop),left:r.left+(a.pageXOffset||s.documentElement.scrollLeft)}},t.prototype.init=function(){ud&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var n,r;this.wrapperEl=this.el.querySelector(Zt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Zt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Zt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Zt(this.classNames.offset)),this.maskEl=this.el.querySelector(Zt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Zt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Zt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Zt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Zt(this.classNames.track)).concat(Zt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Zt(this.classNames.track)).concat(Zt(this.classNames.vertical))),this.axis.x.scrollbar.el=((n=this.axis.x.track.el)===null||n===void 0?void 0:n.querySelector(Zt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(Zt(this.classNames.scrollbar)))||null,this.options.autoHide||(mn(this.axis.x.scrollbar.el,this.classNames.visible),mn(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var n=this,r,s=pn(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),s.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var a=!1,u=s.ResizeObserver||ResizeObserver;this.resizeObserver=new u(function(){a&&s.requestAnimationFrame(function(){n.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),s.requestAnimationFrame(function(){a=!0})}this.mutationObserver=new s.MutationObserver(function(){s.requestAnimationFrame(function(){n.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var n=pn(this.el);this.elStyles=n.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,s=this.heightAutoObserverEl.offsetHeight<=1,a=this.heightAutoObserverEl.offsetWidth<=1||r>0,u=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,f=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var h=this.contentEl.scrollHeight,m=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=s?"auto":"100%",this.placeholderEl.style.width=a?"".concat(r||m,"px"):"auto",this.placeholderEl.style.height="".concat(h,"px");var g=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&m>r,this.axis.y.isOverflowing=h>g,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=f==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var p=this.axis.x.isOverflowing?this.scrollbarWidth:0,b=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&m>u-b,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&h>g-p,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(n){var r,s;if(n===void 0&&(n="y"),!this.axis[n].isOverflowing||!this.contentEl)return 0;var a=this.contentEl[this.axis[n].scrollSizeAttr],u=(s=(r=this.axis[n].track.el)===null||r===void 0?void 0:r[this.axis[n].offsetSizeAttr])!==null&&s!==void 0?s:0,l=u/a,f;return f=Math.max(~~(l*u),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(f=Math.min(f,this.options.scrollbarMaxSize)),f},t.prototype.positionScrollbar=function(n){var r,s,a;n===void 0&&(n="y");var u=this.axis[n].scrollbar;if(!(!this.axis[n].isOverflowing||!this.contentWrapperEl||!u.el||!this.elStyles)){var l=this.contentWrapperEl[this.axis[n].scrollSizeAttr],f=((r=this.axis[n].track.el)===null||r===void 0?void 0:r[this.axis[n].offsetSizeAttr])||0,h=parseInt(this.elStyles[this.axis[n].sizeAttr],10),m=this.contentWrapperEl[this.axis[n].scrollOffsetAttr];m=n==="x"&&this.isRtl&&(!((s=t.getRtlHelpers())===null||s===void 0)&&s.isScrollOriginAtZero)?-m:m,n==="x"&&this.isRtl&&(m=!((a=t.getRtlHelpers())===null||a===void 0)&&a.isScrollingToNegative?m:-m);var g=m/(l-h),p=~~((f-u.size)*g);p=n==="x"&&this.isRtl?-p+(f-u.size):p,u.el.style.transform=n==="x"?"translate3d(".concat(p,"px, 0, 0)"):"translate3d(0, ".concat(p,"px, 0)")}},t.prototype.toggleTrackVisibility=function(n){n===void 0&&(n="y");var r=this.axis[n].track.el,s=this.axis[n].scrollbar.el;!r||!s||!this.contentWrapperEl||(this.axis[n].isOverflowing||this.axis[n].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[n].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(n))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[n].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(n))),this.axis[n].isOverflowing?s.style.display="block":s.style.display="none")},t.prototype.showScrollbar=function(n){n===void 0&&(n="y"),this.axis[n].isOverflowing&&!this.axis[n].scrollbar.isVisible&&(mn(this.axis[n].scrollbar.el,this.classNames.visible),this.axis[n].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(n){n===void 0&&(n="y"),this.axis[n].isOverflowing&&this.axis[n].scrollbar.isVisible&&(gn(this.axis[n].scrollbar.el,this.classNames.visible),this.axis[n].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(n){n===void 0&&(n="y");var r=this.axis[n];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(n),mn(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?mn(r.scrollbar.el,this.classNames.hover):gn(r.scrollbar.el,this.classNames.hover)):(gn(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(n)))},t.prototype.onMouseLeaveForAxis=function(n){n===void 0&&(n="y"),gn(this.axis[n].track.el,this.classNames.hover),gn(this.axis[n].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(n)},t.prototype.onDragStart=function(n,r){var s;r===void 0&&(r="y");var a=da(this.el),u=pn(this.el),l=this.axis[r].scrollbar,f=r==="y"?n.pageY:n.pageX;this.axis[r].dragOffset=f-(((s=l.rect)===null||s===void 0?void 0:s[this.axis[r].offsetAttr])||0),this.draggedAxis=r,mn(this.el,this.classNames.dragging),a.addEventListener("mousemove",this.drag,!0),a.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(a.addEventListener("click",this.preventClick,!0),a.addEventListener("dblclick",this.preventClick,!0)):(u.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(n,r){var s=this,a,u,l,f;r===void 0&&(r="y");var h=this.axis[r];if(!(!this.options.clickOnTrack||!h.scrollbar.el||!this.contentWrapperEl)){n.preventDefault();var m=pn(this.el);this.axis[r].scrollbar.rect=h.scrollbar.el.getBoundingClientRect();var g=this.axis[r].scrollbar,p=(u=(a=g.rect)===null||a===void 0?void 0:a[this.axis[r].offsetAttr])!==null&&u!==void 0?u:0,b=parseInt((f=(l=this.elStyles)===null||l===void 0?void 0:l[this.axis[r].sizeAttr])!==null&&f!==void 0?f:"0px",10),w=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],S=r==="y"?this.mouseY-p:this.mouseX-p,R=S<0?-1:1,C=R===-1?w-b:w+b,M=40,B=function(){s.contentWrapperEl&&(R===-1?w>C&&(w-=M,s.contentWrapperEl[s.axis[r].scrollOffsetAttr]=w,m.requestAnimationFrame(B)):w<C&&(w+=M,s.contentWrapperEl[s.axis[r].scrollOffsetAttr]=w,m.requestAnimationFrame(B)))};B()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var n=pn(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(n){return this.mouseX>=n.left&&this.mouseX<=n.left+n.width&&this.mouseY>=n.top&&this.mouseY<=n.top+n.height},t.prototype.findChild=function(n,r){var s=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;return Array.prototype.filter.call(n.children,function(a){return s.call(a,r)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=FE,t.helpers=BE,t}(),oe=function(){return oe=Object.assign||function(n){for(var r,s=1,a=arguments.length;s<a;s++){r=arguments[s];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(n[u]=r[u])}return n},oe.apply(this,arguments)};function NE(t,n){var r={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&n.indexOf(s)<0&&(r[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(t);a<s.length;a++)n.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(t,s[a])&&(r[s[a]]=t[s[a]]);return r}var gd=_.reactExports.forwardRef(function(t,n){var r=t.children,s=t.scrollableNodeProps,a=s===void 0?{}:s,u=NE(t,["children","scrollableNodeProps"]),l=_.reactExports.useRef(),f=_.reactExports.useRef(),h=_.reactExports.useRef(),m={},g={};Object.keys(u).forEach(function(w){Object.prototype.hasOwnProperty.call(Xi.defaultOptions,w)?m[w]=u[w]:g[w]=u[w]});var p=oe(oe({},Xi.defaultOptions.classNames),m.classNames),b=oe(oe({},a),{className:"".concat(p.contentWrapper).concat(a.className?" ".concat(a.className):""),tabIndex:0,role:"region","aria-label":m.ariaLabel||Xi.defaultOptions.ariaLabel});return _.reactExports.useEffect(function(){var w;return f.current=b.ref?b.ref.current:f.current,l.current&&(w=new Xi(l.current,oe(oe(oe({},m),f.current&&{scrollableNode:f.current}),h.current&&{contentNode:h.current})),typeof n=="function"?n(w):n&&(n.current=w)),function(){w==null||w.unMount(),w=null,typeof n=="function"&&n(null)}},[]),_.reactExports.createElement("div",oe({"data-simplebar":"init",ref:l},g),_.reactExports.createElement("div",{className:p.wrapper},_.reactExports.createElement("div",{className:p.heightAutoObserverWrapperEl},_.reactExports.createElement("div",{className:p.heightAutoObserverEl})),_.reactExports.createElement("div",{className:p.mask},_.reactExports.createElement("div",{className:p.offset},typeof r=="function"?r({scrollableNodeRef:f,scrollableNodeProps:oe(oe({},b),{ref:f}),contentNodeRef:h,contentNodeProps:{className:p.contentEl,ref:h}}):_.reactExports.createElement("div",oe({},b),_.reactExports.createElement("div",{className:p.contentEl},r)))),_.reactExports.createElement("div",{className:p.placeholder})),_.reactExports.createElement("div",{className:"".concat(p.track," simplebar-horizontal")},_.reactExports.createElement("div",{className:p.scrollbar})),_.reactExports.createElement("div",{className:"".concat(p.track," simplebar-vertical")},_.reactExports.createElement("div",{className:p.scrollbar})))});gd.displayName="SimpleBar";const kE=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
6
+ `,WE=t=>{window.location.href=`${t}/authentication/logout?callbackUrl=${window.location.href}`},rl=t=>typeof t=="number"&&!isNaN(t),Ur=t=>typeof t=="string",vd=t=>typeof t=="function",jE=t=>_.reactExports.isValidElement(t)||Ur(t)||vd(t)||rl(t),De=new Map;let Da=[];const bf=new Set,yd=()=>De.size>0;function UE(t,n){var r;if(n)return!((r=De.get(n))==null||!r.isToastActive(t));let s=!1;return De.forEach(a=>{a.isToastActive(t)&&(s=!0)}),s}function zE(t,n){jE(t)&&(yd()||Da.push({content:t,options:n}),De.forEach(r=>{r.buildToast(t,n)}))}function wf(t,n){De.forEach(r=>{n!=null&&n!=null&&n.containerId?(n==null?void 0:n.containerId)===r.id&&r.toggle(t,n==null?void 0:n.id):r.toggle(t,n==null?void 0:n.id)})}let HE=1;const xd=()=>""+HE++;function $E(t){return t&&(Ur(t.toastId)||rl(t.toastId))?t.toastId:xd()}function zr(t,n){return zE(t,n),n.toastId}function fs(t,n){return{...n,type:n&&n.type||t,toastId:$E(n)}}function Yi(t){return(n,r)=>zr(n,fs(t,r))}function yt(t,n){return zr(t,fs("default",n))}yt.loading=(t,n)=>zr(t,fs("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...n})),yt.promise=function(t,n,r){let s,{pending:a,error:u,success:l}=n;a&&(s=Ur(a)?yt.loading(a,r):yt.loading(a.render,{...r,...a}));const f={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},h=(g,p,b)=>{if(p==null)return void yt.dismiss(s);const w={type:g,...f,...r,data:b},S=Ur(p)?{render:p}:p;return s?yt.update(s,{...w,...S}):yt(S.render,{...w,...S}),b},m=vd(t)?t():t;return m.then(g=>h("success",l,g)).catch(g=>h("error",u,g)),m},yt.success=Yi("success"),yt.info=Yi("info"),yt.error=Yi("error"),yt.warning=Yi("warning"),yt.warn=yt.warning,yt.dark=(t,n)=>zr(t,fs("default",{theme:"dark",...n})),yt.dismiss=function(t){(function(n){var r;if(yd()){if(n==null||Ur(r=n)||rl(r))De.forEach(a=>{a.removeToast(n)});else if(n&&("containerId"in n||"id"in n)){var s;(s=De.get(n.containerId))!=null&&s.removeToast(n.id)||De.forEach(a=>{a.removeToast(n.id)})}}else Da=Da.filter(a=>n!=null&&a.options.toastId!==n)})(t)},yt.clearWaitingQueue=function(t){t===void 0&&(t={}),De.forEach(n=>{!n.props.limit||t.containerId&&n.id!==t.containerId||n.clearQueue()})},yt.isActive=UE,yt.update=function(t,n){n===void 0&&(n={});const r=((s,a)=>{var u;let{containerId:l}=a;return(u=De.get(l||1))==null?void 0:u.toasts.get(s)})(t,n);if(r){const{props:s,content:a}=r,u={delay:100,...s,...n,toastId:n.toastId||t,updateId:xd()};u.toastId!==t&&(u.staleId=t);const l=u.render||a;delete u.render,zr(l,u)}},yt.done=t=>{yt.update(t,{progress:1})},yt.onChange=function(t){return bf.add(t),()=>{bf.delete(t)}},yt.play=t=>wf(!0,t),yt.pause=t=>wf(!1,t);const Ef={primary:"#93D500",secondary:"#007BFF",textPrimary:"#000000",textSecondary:"#101010",priText:"#009D4F",lightPrimary:"#E8F5E9",darkPrimary:"#2E7D32",lightSecondary:"#E8F5E9",darkSecondary:"#339790",danger:"#E01B00",darkDanger:"#BE1700",warning:"#FFB600",success:"#009D4F",error:"#E9645B",successChip:"#F4FBE5",errorChip:"#E01B001A",warningChip:"#FFB8001A",secondaryChip:"#E5F2FF",appBarColor:"#000000",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey600:"#85858A",gold100:"#FFFBE6",gold200:"#FFF1B8",gold300:"#FFE58F",gold600:"#FAAD14",gold700:"#D48806",outlinedButton:"#009D4F",containedButtonString:"#000000",pink:"#E81F76"};function GE(){return _.jsxRuntimeExports.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),_.jsxRuntimeExports.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),_.jsxRuntimeExports.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const qE={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},KE=t=>{yt.error(t,{icon:_.jsxRuntimeExports.jsx(GE,{}),position:"bottom-right",style:{...qE,background:"#F7E4E1",borderColor:Ef.danger,color:Ef.danger}})},bd=_.reactExports.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Ps=_.reactExports.createContext({}),il=_.reactExports.createContext(null),Os=typeof document<"u",XE=Os?_.reactExports.useLayoutEffect:_.reactExports.useEffect,wd=_.reactExports.createContext({strict:!1}),sl=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),YE="framerAppearId",Ed="data-"+sl(YE);function JE(t,n,r,s){const{visualElement:a}=_.reactExports.useContext(Ps),u=_.reactExports.useContext(wd),l=_.reactExports.useContext(il),f=_.reactExports.useContext(bd).reducedMotion,h=_.reactExports.useRef();s=s||u.renderer,!h.current&&s&&(h.current=s(t,{visualState:n,parent:a,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:f}));const m=h.current;_.reactExports.useInsertionEffect(()=>{m&&m.update(r,l)});const g=_.reactExports.useRef(!!(r[Ed]&&!window.HandoffComplete));return XE(()=>{m&&(m.render(),g.current&&m.animationState&&m.animationState.animateChanges())}),_.reactExports.useEffect(()=>{m&&(m.updateFeatures(),!g.current&&m.animationState&&m.animationState.animateChanges(),g.current&&(g.current=!1,window.HandoffComplete=!0))}),m}function lr(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function ZE(t,n,r){return _.reactExports.useCallback(s=>{s&&t.mount&&t.mount(s),n&&(s?n.mount(s):n.unmount()),r&&(typeof r=="function"?r(s):lr(r)&&(r.current=s))},[n])}function Xr(t){return typeof t=="string"||Array.isArray(t)}function Ls(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const ol=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],al=["initial",...ol];function Ms(t){return Ls(t.animate)||al.some(n=>Xr(t[n]))}function _d(t){return!!(Ms(t)||t.variants)}function QE(t,n){if(Ms(t)){const{initial:r,animate:s}=t;return{initial:r===!1||Xr(r)?r:void 0,animate:Xr(s)?s:void 0}}return t.inherit!==!1?n:{}}function t_(t){const{initial:n,animate:r}=QE(t,_.reactExports.useContext(Ps));return _.reactExports.useMemo(()=>({initial:n,animate:r}),[_f(n),_f(r)])}function _f(t){return Array.isArray(t)?t.join(" "):t}const Sf={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Yr={};for(const t in Sf)Yr[t]={isEnabled:n=>Sf[t].some(r=>!!n[r])};function e_(t){for(const n in t)Yr[n]={...Yr[n],...t[n]}}const Sd=_.reactExports.createContext({}),Ad=_.reactExports.createContext({}),n_=Symbol.for("motionComponentSymbol");function r_({preloadedFeatures:t,createVisualElement:n,useRender:r,useVisualState:s,Component:a}){t&&e_(t);function u(f,h){let m;const g={..._.reactExports.useContext(bd),...f,layoutId:i_(f)},{isStatic:p}=g,b=t_(f),w=s(f,p);if(!p&&Os){b.visualElement=JE(a,w,g,n);const S=_.reactExports.useContext(Ad),R=_.reactExports.useContext(wd).strict;b.visualElement&&(m=b.visualElement.loadFeatures(g,R,t,S))}return _.reactExports.createElement(Ps.Provider,{value:b},m&&b.visualElement?_.reactExports.createElement(m,{visualElement:b.visualElement,...g}):null,r(a,f,ZE(w,b.visualElement,h),w,p,b.visualElement))}const l=_.reactExports.forwardRef(u);return l[n_]=a,l}function i_({layoutId:t}){const n=_.reactExports.useContext(Sd).id;return n&&t!==void 0?n+"-"+t:t}function s_(t){function n(s,a={}){return r_(t(s,a))}if(typeof Proxy>"u")return n;const r=new Map;return new Proxy(n,{get:(s,a)=>(r.has(a)||r.set(a,n(a)),r.get(a))})}const o_=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ll(t){return typeof t!="string"||t.includes("-")?!1:!!(o_.indexOf(t)>-1||/[A-Z]/.test(t))}const hs={};function a_(t){Object.assign(hs,t)}const ei=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jn=new Set(ei);function Td(t,{layout:n,layoutId:r}){return jn.has(t)||t.startsWith("origin")||(n||r!==void 0)&&(!!hs[t]||t==="opacity")}const Qt=t=>!!(t&&t.getVelocity),l_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},u_=ei.length;function c_(t,{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},s,a){let u="";for(let l=0;l<u_;l++){const f=ei[l];if(t[f]!==void 0){const h=l_[f]||f;u+=`${h}(${t[f]}) `}}return n&&!t.z&&(u+="translateZ(0)"),u=u.trim(),a?u=a(t,s?"":u):r&&s&&(u="none"),u}const Rd=t=>n=>typeof n=="string"&&n.startsWith(t),Cd=Rd("--"),Va=Rd("var(--"),f_=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,h_=(t,n)=>n&&typeof t=="number"?n.transform(t):t,En=(t,n,r)=>Math.min(Math.max(r,t),n),Un={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Hr={...Un,transform:t=>En(0,1,t)},Ji={...Un,default:1},$r=t=>Math.round(t*1e5)/1e5,Is=/(-)?([\d]*\.?[\d])+/g,Pd=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,d_=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ni(t){return typeof t=="string"}const ri=t=>({test:n=>ni(n)&&n.endsWith(t)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${t}`}),vn=ri("deg"),Be=ri("%"),Y=ri("px"),p_=ri("vh"),m_=ri("vw"),Af={...Be,parse:t=>Be.parse(t)/100,transform:t=>Be.transform(t*100)},Tf={...Un,transform:Math.round},Od={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,size:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:vn,rotateX:vn,rotateY:vn,rotateZ:vn,scale:Ji,scaleX:Ji,scaleY:Ji,scaleZ:Ji,skew:vn,skewX:vn,skewY:vn,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:Hr,originX:Af,originY:Af,originZ:Y,zIndex:Tf,fillOpacity:Hr,strokeOpacity:Hr,numOctaves:Tf};function ul(t,n,r,s){const{style:a,vars:u,transform:l,transformOrigin:f}=t;let h=!1,m=!1,g=!0;for(const p in n){const b=n[p];if(Cd(p)){u[p]=b;continue}const w=Od[p],S=h_(b,w);if(jn.has(p)){if(h=!0,l[p]=S,!g)continue;b!==(w.default||0)&&(g=!1)}else p.startsWith("origin")?(m=!0,f[p]=S):a[p]=S}if(n.transform||(h||s?a.transform=c_(t.transform,r,g,s):a.transform&&(a.transform="none")),m){const{originX:p="50%",originY:b="50%",originZ:w=0}=f;a.transformOrigin=`${p} ${b} ${w}`}}const cl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ld(t,n,r){for(const s in n)!Qt(n[s])&&!Td(s,r)&&(t[s]=n[s])}function g_({transformTemplate:t},n,r){return _.reactExports.useMemo(()=>{const s=cl();return ul(s,n,{enableHardwareAcceleration:!r},t),Object.assign({},s.vars,s.style)},[n])}function v_(t,n,r){const s=t.style||{},a={};return Ld(a,s,t),Object.assign(a,g_(t,n,r)),t.transformValues?t.transformValues(a):a}function y_(t,n,r){const s={},a=v_(t,n,r);return t.drag&&t.dragListener!==!1&&(s.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=a,s}const x_=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ds(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||x_.has(t)}let Md=t=>!ds(t);function b_(t){t&&(Md=n=>n.startsWith("on")?!ds(n):t(n))}try{b_(require("@emotion/is-prop-valid").default)}catch{}function w_(t,n,r){const s={};for(const a in t)a==="values"&&typeof t.values=="object"||(Md(a)||r===!0&&ds(a)||!n&&!ds(a)||t.draggable&&a.startsWith("onDrag"))&&(s[a]=t[a]);return s}function Rf(t,n,r){return typeof t=="string"?t:Y.transform(n+r*t)}function E_(t,n,r){const s=Rf(n,t.x,t.width),a=Rf(r,t.y,t.height);return`${s} ${a}`}const __={offset:"stroke-dashoffset",array:"stroke-dasharray"},S_={offset:"strokeDashoffset",array:"strokeDasharray"};function A_(t,n,r=1,s=0,a=!0){t.pathLength=1;const u=a?__:S_;t[u.offset]=Y.transform(-s);const l=Y.transform(n),f=Y.transform(r);t[u.array]=`${l} ${f}`}function fl(t,{attrX:n,attrY:r,attrScale:s,originX:a,originY:u,pathLength:l,pathSpacing:f=1,pathOffset:h=0,...m},g,p,b){if(ul(t,m,g,b),p){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:w,style:S,dimensions:R}=t;w.transform&&(R&&(S.transform=w.transform),delete w.transform),R&&(a!==void 0||u!==void 0||S.transform)&&(S.transformOrigin=E_(R,a!==void 0?a:.5,u!==void 0?u:.5)),n!==void 0&&(w.x=n),r!==void 0&&(w.y=r),s!==void 0&&(w.scale=s),l!==void 0&&A_(w,l,f,h,!1)}const Id=()=>({...cl(),attrs:{}}),hl=t=>typeof t=="string"&&t.toLowerCase()==="svg";function T_(t,n,r,s){const a=_.reactExports.useMemo(()=>{const u=Id();return fl(u,n,{enableHardwareAcceleration:!1},hl(s),t.transformTemplate),{...u.attrs,style:{...u.style}}},[n]);if(t.style){const u={};Ld(u,t.style,t),a.style={...u,...a.style}}return a}function R_(t=!1){return(r,s,a,{latestValues:u},l)=>{const h=(ll(r)?T_:y_)(s,u,l,r),g={...w_(s,typeof r=="string",t),...h,ref:a},{children:p}=s,b=_.reactExports.useMemo(()=>Qt(p)?p.get():p,[p]);return _.reactExports.createElement(r,{...g,children:b})}}function Dd(t,{style:n,vars:r},s,a){Object.assign(t.style,n,a&&a.getProjectionStyles(s));for(const u in r)t.style.setProperty(u,r[u])}const Vd=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Bd(t,n,r,s){Dd(t,n,void 0,s);for(const a in n.attrs)t.setAttribute(Vd.has(a)?a:sl(a),n.attrs[a])}function dl(t,n){const{style:r}=t,s={};for(const a in r)(Qt(r[a])||n.style&&Qt(n.style[a])||Td(a,t))&&(s[a]=r[a]);return s}function Fd(t,n){const r=dl(t,n);for(const s in t)if(Qt(t[s])||Qt(n[s])){const a=ei.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[a]=t[s]}return r}function pl(t,n,r,s={},a={}){return typeof n=="function"&&(n=n(r!==void 0?r:t.custom,s,a)),typeof n=="string"&&(n=t.variants&&t.variants[n]),typeof n=="function"&&(n=n(r!==void 0?r:t.custom,s,a)),n}function C_(t){const n=_.reactExports.useRef(null);return n.current===null&&(n.current=t()),n.current}const ps=t=>Array.isArray(t),P_=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),O_=t=>ps(t)?t[t.length-1]||0:t;function os(t){const n=Qt(t)?t.get():t;return P_(n)?n.toValue():n}function L_({scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},s,a,u){const l={latestValues:M_(s,a,u,t),renderState:n()};return r&&(l.mount=f=>r(s,f,l)),l}const Nd=t=>(n,r)=>{const s=_.reactExports.useContext(Ps),a=_.reactExports.useContext(il),u=()=>L_(t,n,s,a);return r?u():C_(u)};function M_(t,n,r,s){const a={},u=s(t,{});for(const b in u)a[b]=os(u[b]);let{initial:l,animate:f}=t;const h=Ms(t),m=_d(t);n&&m&&!h&&t.inherit!==!1&&(l===void 0&&(l=n.initial),f===void 0&&(f=n.animate));let g=r?r.initial===!1:!1;g=g||l===!1;const p=g?f:l;return p&&typeof p!="boolean"&&!Ls(p)&&(Array.isArray(p)?p:[p]).forEach(w=>{const S=pl(t,w);if(!S)return;const{transitionEnd:R,transition:C,...M}=S;for(const B in M){let O=M[B];if(Array.isArray(O)){const N=g?O.length-1:0;O=O[N]}O!==null&&(a[B]=O)}for(const B in R)a[B]=R[B]}),a}const Et=t=>t;class Cf{constructor(){this.order=[],this.scheduled=new Set}add(n){if(!this.scheduled.has(n))return this.scheduled.add(n),this.order.push(n),!0}remove(n){const r=this.order.indexOf(n);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(n))}clear(){this.order.length=0,this.scheduled.clear()}}function I_(t){let n=new Cf,r=new Cf,s=0,a=!1,u=!1;const l=new WeakSet,f={schedule:(h,m=!1,g=!1)=>{const p=g&&a,b=p?n:r;return m&&l.add(h),b.add(h)&&p&&a&&(s=n.order.length),h},cancel:h=>{r.remove(h),l.delete(h)},process:h=>{if(a){u=!0;return}if(a=!0,[n,r]=[r,n],r.clear(),s=n.order.length,s)for(let m=0;m<s;m++){const g=n.order[m];g(h),l.has(g)&&(f.schedule(g),t())}a=!1,u&&(u=!1,f.process(h))}};return f}const Zi=["prepare","read","update","preRender","render","postRender"],D_=40;function V_(t,n){let r=!1,s=!0;const a={delta:0,timestamp:0,isProcessing:!1},u=Zi.reduce((p,b)=>(p[b]=I_(()=>r=!0),p),{}),l=p=>u[p].process(a),f=()=>{const p=performance.now();r=!1,a.delta=s?1e3/60:Math.max(Math.min(p-a.timestamp,D_),1),a.timestamp=p,a.isProcessing=!0,Zi.forEach(l),a.isProcessing=!1,r&&n&&(s=!1,t(f))},h=()=>{r=!0,s=!0,a.isProcessing||t(f)};return{schedule:Zi.reduce((p,b)=>{const w=u[b];return p[b]=(S,R=!1,C=!1)=>(r||h(),w.schedule(S,R,C)),p},{}),cancel:p=>Zi.forEach(b=>u[b].cancel(p)),state:a,steps:u}}const{schedule:pt,cancel:Qe,state:jt,steps:pa}=V_(typeof requestAnimationFrame<"u"?requestAnimationFrame:Et,!0),B_={useVisualState:Nd({scrapeMotionValuesFromProps:Fd,createRenderState:Id,onMount:(t,n,{renderState:r,latestValues:s})=>{pt.read(()=>{try{r.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),pt.render(()=>{fl(r,s,{enableHardwareAcceleration:!1},hl(n.tagName),t.transformTemplate),Bd(n,r)})}})},F_={useVisualState:Nd({scrapeMotionValuesFromProps:dl,createRenderState:cl})};function N_(t,{forwardMotionProps:n=!1},r,s){return{...ll(t)?B_:F_,preloadedFeatures:r,useRender:R_(n),createVisualElement:s,Component:t}}function Xe(t,n,r,s={passive:!0}){return t.addEventListener(n,r,s),()=>t.removeEventListener(n,r)}const kd=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Ds(t,n="page"){return{point:{x:t[n+"X"],y:t[n+"Y"]}}}const k_=t=>n=>kd(n)&&t(n,Ds(n));function Je(t,n,r,s){return Xe(t,n,k_(r),s)}const W_=(t,n)=>r=>n(t(r)),bn=(...t)=>t.reduce(W_);function Wd(t){let n=null;return()=>{const r=()=>{n=null};return n===null?(n=t,r):!1}}const Pf=Wd("dragHorizontal"),Of=Wd("dragVertical");function jd(t){let n=!1;if(t==="y")n=Of();else if(t==="x")n=Pf();else{const r=Pf(),s=Of();r&&s?n=()=>{r(),s()}:(r&&r(),s&&s())}return n}function Ud(){const t=jd(!0);return t?(t(),!1):!0}class Sn{constructor(n){this.isMounted=!1,this.node=n}update(){}}function Lf(t,n){const r="pointer"+(n?"enter":"leave"),s="onHover"+(n?"Start":"End"),a=(u,l)=>{if(u.pointerType==="touch"||Ud())return;const f=t.getProps();t.animationState&&f.whileHover&&t.animationState.setActive("whileHover",n),f[s]&&pt.update(()=>f[s](u,l))};return Je(t.current,r,a,{passive:!t.getProps()[s]})}class j_ extends Sn{mount(){this.unmount=bn(Lf(this.node,!0),Lf(this.node,!1))}unmount(){}}class U_ extends Sn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=bn(Xe(this.node.current,"focus",()=>this.onFocus()),Xe(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const zd=(t,n)=>n?t===n?!0:zd(t,n.parentElement):!1;function ma(t,n){if(!n)return;const r=new PointerEvent("pointer"+t);n(r,Ds(r))}class z_ extends Sn{constructor(){super(...arguments),this.removeStartListeners=Et,this.removeEndListeners=Et,this.removeAccessibleListeners=Et,this.startPointerPress=(n,r)=>{if(this.isPressing)return;this.removeEndListeners();const s=this.node.getProps(),u=Je(window,"pointerup",(f,h)=>{if(!this.checkPressEnd())return;const{onTap:m,onTapCancel:g,globalTapTarget:p}=this.node.getProps();pt.update(()=>{!p&&!zd(this.node.current,f.target)?g&&g(f,h):m&&m(f,h)})},{passive:!(s.onTap||s.onPointerUp)}),l=Je(window,"pointercancel",(f,h)=>this.cancelPress(f,h),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=bn(u,l),this.startPress(n,r)},this.startAccessiblePress=()=>{const n=u=>{if(u.key!=="Enter"||this.isPressing)return;const l=f=>{f.key!=="Enter"||!this.checkPressEnd()||ma("up",(h,m)=>{const{onTap:g}=this.node.getProps();g&&pt.update(()=>g(h,m))})};this.removeEndListeners(),this.removeEndListeners=Xe(this.node.current,"keyup",l),ma("down",(f,h)=>{this.startPress(f,h)})},r=Xe(this.node.current,"keydown",n),s=()=>{this.isPressing&&ma("cancel",(u,l)=>this.cancelPress(u,l))},a=Xe(this.node.current,"blur",s);this.removeAccessibleListeners=bn(r,a)}}startPress(n,r){this.isPressing=!0;const{onTapStart:s,whileTap:a}=this.node.getProps();a&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&pt.update(()=>s(n,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ud()}cancelPress(n,r){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&pt.update(()=>s(n,r))}mount(){const n=this.node.getProps(),r=Je(n.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(n.onTapStart||n.onPointerStart)}),s=Xe(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=bn(r,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ba=new WeakMap,ga=new WeakMap,H_=t=>{const n=Ba.get(t.target);n&&n(t)},$_=t=>{t.forEach(H_)};function G_({root:t,...n}){const r=t||document;ga.has(r)||ga.set(r,{});const s=ga.get(r),a=JSON.stringify(n);return s[a]||(s[a]=new IntersectionObserver($_,{root:t,...n})),s[a]}function q_(t,n,r){const s=G_(n);return Ba.set(t,r),s.observe(t),()=>{Ba.delete(t),s.unobserve(t)}}const K_={some:0,all:1};class X_ extends Sn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:r,margin:s,amount:a="some",once:u}=n,l={root:r?r.current:void 0,rootMargin:s,threshold:typeof a=="number"?a:K_[a]},f=h=>{const{isIntersecting:m}=h;if(this.isInView===m||(this.isInView=m,u&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:g,onViewportLeave:p}=this.node.getProps(),b=m?g:p;b&&b(h)};return q_(this.node.current,l,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:r}=this.node;["amount","margin","root"].some(Y_(n,r))&&this.startObserver()}unmount(){}}function Y_({viewport:t={}},{viewport:n={}}={}){return r=>t[r]!==n[r]}const J_={inView:{Feature:X_},tap:{Feature:z_},focus:{Feature:U_},hover:{Feature:j_}};function Hd(t,n){if(!Array.isArray(n))return!1;const r=n.length;if(r!==t.length)return!1;for(let s=0;s<r;s++)if(n[s]!==t[s])return!1;return!0}function Z_(t){const n={};return t.values.forEach((r,s)=>n[s]=r.get()),n}function Q_(t){const n={};return t.values.forEach((r,s)=>n[s]=r.getVelocity()),n}function Vs(t,n,r){const s=t.getProps();return pl(s,n,r!==void 0?r:s.custom,Z_(t),Q_(t))}let tS=Et,ml=Et;const wn=t=>t*1e3,Ze=t=>t/1e3,eS={current:!1},$d=t=>Array.isArray(t)&&typeof t[0]=="number";function Gd(t){return!!(!t||typeof t=="string"&&qd[t]||$d(t)||Array.isArray(t)&&t.every(Gd))}const jr=([t,n,r,s])=>`cubic-bezier(${t}, ${n}, ${r}, ${s})`,qd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jr([0,.65,.55,1]),circOut:jr([.55,0,1,.45]),backIn:jr([.31,.01,.66,-.59]),backOut:jr([.33,1.53,.69,.99])};function Kd(t){if(t)return $d(t)?jr(t):Array.isArray(t)?t.map(Kd):qd[t]}function nS(t,n,r,{delay:s=0,duration:a,repeat:u=0,repeatType:l="loop",ease:f,times:h}={}){const m={[n]:r};h&&(m.offset=h);const g=Kd(f);return Array.isArray(g)&&(m.easing=g),t.animate(m,{delay:s,duration:a,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:u+1,direction:l==="reverse"?"alternate":"normal"})}function rS(t,{repeat:n,repeatType:r="loop"}){const s=n&&r!=="loop"&&n%2===1?0:t.length-1;return t[s]}const Xd=(t,n,r)=>(((1-3*r+3*n)*t+(3*r-6*n))*t+3*n)*t,iS=1e-7,sS=12;function oS(t,n,r,s,a){let u,l,f=0;do l=n+(r-n)/2,u=Xd(l,s,a)-t,u>0?r=l:n=l;while(Math.abs(u)>iS&&++f<sS);return l}function ii(t,n,r,s){if(t===n&&r===s)return Et;const a=u=>oS(u,0,1,t,r);return u=>u===0||u===1?u:Xd(a(u),n,s)}const aS=ii(.42,0,1,1),lS=ii(0,0,.58,1),Yd=ii(.42,0,.58,1),uS=t=>Array.isArray(t)&&typeof t[0]!="number",Jd=t=>n=>n<=.5?t(2*n)/2:(2-t(2*(1-n)))/2,Zd=t=>n=>1-t(1-n),gl=t=>1-Math.sin(Math.acos(t)),Qd=Zd(gl),cS=Jd(gl),tp=ii(.33,1.53,.69,.99),vl=Zd(tp),fS=Jd(vl),hS=t=>(t*=2)<1?.5*vl(t):.5*(2-Math.pow(2,-10*(t-1))),dS={linear:Et,easeIn:aS,easeInOut:Yd,easeOut:lS,circIn:gl,circInOut:cS,circOut:Qd,backIn:vl,backInOut:fS,backOut:tp,anticipate:hS},Mf=t=>{if(Array.isArray(t)){ml(t.length===4);const[n,r,s,a]=t;return ii(n,r,s,a)}else if(typeof t=="string")return dS[t];return t},yl=(t,n)=>r=>!!(ni(r)&&d_.test(r)&&r.startsWith(t)||n&&Object.prototype.hasOwnProperty.call(r,n)),ep=(t,n,r)=>s=>{if(!ni(s))return s;const[a,u,l,f]=s.match(Is);return{[t]:parseFloat(a),[n]:parseFloat(u),[r]:parseFloat(l),alpha:f!==void 0?parseFloat(f):1}},pS=t=>En(0,255,t),va={...Un,transform:t=>Math.round(pS(t))},kn={test:yl("rgb","red"),parse:ep("red","green","blue"),transform:({red:t,green:n,blue:r,alpha:s=1})=>"rgba("+va.transform(t)+", "+va.transform(n)+", "+va.transform(r)+", "+$r(Hr.transform(s))+")"};function mS(t){let n="",r="",s="",a="";return t.length>5?(n=t.substring(1,3),r=t.substring(3,5),s=t.substring(5,7),a=t.substring(7,9)):(n=t.substring(1,2),r=t.substring(2,3),s=t.substring(3,4),a=t.substring(4,5),n+=n,r+=r,s+=s,a+=a),{red:parseInt(n,16),green:parseInt(r,16),blue:parseInt(s,16),alpha:a?parseInt(a,16)/255:1}}const Fa={test:yl("#"),parse:mS,transform:kn.transform},ur={test:yl("hsl","hue"),parse:ep("hue","saturation","lightness"),transform:({hue:t,saturation:n,lightness:r,alpha:s=1})=>"hsla("+Math.round(t)+", "+Be.transform($r(n))+", "+Be.transform($r(r))+", "+$r(Hr.transform(s))+")"},$t={test:t=>kn.test(t)||Fa.test(t)||ur.test(t),parse:t=>kn.test(t)?kn.parse(t):ur.test(t)?ur.parse(t):Fa.parse(t),transform:t=>ni(t)?t:t.hasOwnProperty("red")?kn.transform(t):ur.transform(t)},bt=(t,n,r)=>-r*t+r*n+t;function ya(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}function gS({hue:t,saturation:n,lightness:r,alpha:s}){t/=360,n/=100,r/=100;let a=0,u=0,l=0;if(!n)a=u=l=r;else{const f=r<.5?r*(1+n):r+n-r*n,h=2*r-f;a=ya(h,f,t+1/3),u=ya(h,f,t),l=ya(h,f,t-1/3)}return{red:Math.round(a*255),green:Math.round(u*255),blue:Math.round(l*255),alpha:s}}const xa=(t,n,r)=>{const s=t*t;return Math.sqrt(Math.max(0,r*(n*n-s)+s))},vS=[Fa,kn,ur],yS=t=>vS.find(n=>n.test(t));function If(t){const n=yS(t);let r=n.parse(t);return n===ur&&(r=gS(r)),r}const np=(t,n)=>{const r=If(t),s=If(n),a={...r};return u=>(a.red=xa(r.red,s.red,u),a.green=xa(r.green,s.green,u),a.blue=xa(r.blue,s.blue,u),a.alpha=bt(r.alpha,s.alpha,u),kn.transform(a))};function xS(t){var n,r;return isNaN(t)&&ni(t)&&(((n=t.match(Is))===null||n===void 0?void 0:n.length)||0)+(((r=t.match(Pd))===null||r===void 0?void 0:r.length)||0)>0}const rp={regex:f_,countKey:"Vars",token:"${v}",parse:Et},ip={regex:Pd,countKey:"Colors",token:"${c}",parse:$t.parse},sp={regex:Is,countKey:"Numbers",token:"${n}",parse:Un.parse};function ba(t,{regex:n,countKey:r,token:s,parse:a}){const u=t.tokenised.match(n);u&&(t["num"+r]=u.length,t.tokenised=t.tokenised.replace(n,s),t.values.push(...u.map(a)))}function ms(t){const n=t.toString(),r={value:n,tokenised:n,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&ba(r,rp),ba(r,ip),ba(r,sp),r}function op(t){return ms(t).values}function ap(t){const{values:n,numColors:r,numVars:s,tokenised:a}=ms(t),u=n.length;return l=>{let f=a;for(let h=0;h<u;h++)h<s?f=f.replace(rp.token,l[h]):h<s+r?f=f.replace(ip.token,$t.transform(l[h])):f=f.replace(sp.token,$r(l[h]));return f}}const bS=t=>typeof t=="number"?0:t;function wS(t){const n=op(t);return ap(t)(n.map(bS))}const _n={test:xS,parse:op,createTransformer:ap,getAnimatableNone:wS},lp=(t,n)=>r=>`${r>0?n:t}`;function up(t,n){return typeof t=="number"?r=>bt(t,n,r):$t.test(t)?np(t,n):t.startsWith("var(")?lp(t,n):fp(t,n)}const cp=(t,n)=>{const r=[...t],s=r.length,a=t.map((u,l)=>up(u,n[l]));return u=>{for(let l=0;l<s;l++)r[l]=a[l](u);return r}},ES=(t,n)=>{const r={...t,...n},s={};for(const a in r)t[a]!==void 0&&n[a]!==void 0&&(s[a]=up(t[a],n[a]));return a=>{for(const u in s)r[u]=s[u](a);return r}},fp=(t,n)=>{const r=_n.createTransformer(n),s=ms(t),a=ms(n);return s.numVars===a.numVars&&s.numColors===a.numColors&&s.numNumbers>=a.numNumbers?bn(cp(s.values,a.values),r):lp(t,n)},Jr=(t,n,r)=>{const s=n-t;return s===0?1:(r-t)/s},Df=(t,n)=>r=>bt(t,n,r);function _S(t){return typeof t=="number"?Df:typeof t=="string"?$t.test(t)?np:fp:Array.isArray(t)?cp:typeof t=="object"?ES:Df}function SS(t,n,r){const s=[],a=r||_S(t[0]),u=t.length-1;for(let l=0;l<u;l++){let f=a(t[l],t[l+1]);if(n){const h=Array.isArray(n)?n[l]||Et:n;f=bn(h,f)}s.push(f)}return s}function hp(t,n,{clamp:r=!0,ease:s,mixer:a}={}){const u=t.length;if(ml(u===n.length),u===1)return()=>n[0];t[0]>t[u-1]&&(t=[...t].reverse(),n=[...n].reverse());const l=SS(n,s,a),f=l.length,h=m=>{let g=0;if(f>1)for(;g<t.length-2&&!(m<t[g+1]);g++);const p=Jr(t[g],t[g+1],m);return l[g](p)};return r?m=>h(En(t[0],t[u-1],m)):h}function AS(t,n){const r=t[t.length-1];for(let s=1;s<=n;s++){const a=Jr(0,n,s);t.push(bt(r,1,a))}}function TS(t){const n=[0];return AS(n,t.length-1),n}function RS(t,n){return t.map(r=>r*n)}function CS(t,n){return t.map(()=>n||Yd).splice(0,t.length-1)}function gs({duration:t=300,keyframes:n,times:r,ease:s="easeInOut"}){const a=uS(s)?s.map(Mf):Mf(s),u={done:!1,value:n[0]},l=RS(r&&r.length===n.length?r:TS(n),t),f=hp(l,n,{ease:Array.isArray(a)?a:CS(n,a)});return{calculatedDuration:t,next:h=>(u.value=f(h),u.done=h>=t,u)}}function dp(t,n){return n?t*(1e3/n):0}const PS=5;function pp(t,n,r){const s=Math.max(n-PS,0);return dp(r-t(s),n-s)}const wa=.001,OS=.01,Vf=10,LS=.05,MS=1;function IS({duration:t=800,bounce:n=.25,velocity:r=0,mass:s=1}){let a,u;tS(t<=wn(Vf));let l=1-n;l=En(LS,MS,l),t=En(OS,Vf,Ze(t)),l<1?(a=m=>{const g=m*l,p=g*t,b=g-r,w=Na(m,l),S=Math.exp(-p);return wa-b/w*S},u=m=>{const p=m*l*t,b=p*r+r,w=Math.pow(l,2)*Math.pow(m,2)*t,S=Math.exp(-p),R=Na(Math.pow(m,2),l);return(-a(m)+wa>0?-1:1)*((b-w)*S)/R}):(a=m=>{const g=Math.exp(-m*t),p=(m-r)*t+1;return-wa+g*p},u=m=>{const g=Math.exp(-m*t),p=(r-m)*(t*t);return g*p});const f=5/t,h=VS(a,u,f);if(t=wn(t),isNaN(h))return{stiffness:100,damping:10,duration:t};{const m=Math.pow(h,2)*s;return{stiffness:m,damping:l*2*Math.sqrt(s*m),duration:t}}}const DS=12;function VS(t,n,r){let s=r;for(let a=1;a<DS;a++)s=s-t(s)/n(s);return s}function Na(t,n){return t*Math.sqrt(1-n*n)}const BS=["duration","bounce"],FS=["stiffness","damping","mass"];function Bf(t,n){return n.some(r=>t[r]!==void 0)}function NS(t){let n={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Bf(t,FS)&&Bf(t,BS)){const r=IS(t);n={...n,...r,mass:1},n.isResolvedFromDuration=!0}return n}function mp({keyframes:t,restDelta:n,restSpeed:r,...s}){const a=t[0],u=t[t.length-1],l={done:!1,value:a},{stiffness:f,damping:h,mass:m,duration:g,velocity:p,isResolvedFromDuration:b}=NS({...s,velocity:-Ze(s.velocity||0)}),w=p||0,S=h/(2*Math.sqrt(f*m)),R=u-a,C=Ze(Math.sqrt(f/m)),M=Math.abs(R)<5;r||(r=M?.01:2),n||(n=M?.005:.5);let B;if(S<1){const O=Na(C,S);B=N=>{const k=Math.exp(-S*C*N);return u-k*((w+S*C*R)/O*Math.sin(O*N)+R*Math.cos(O*N))}}else if(S===1)B=O=>u-Math.exp(-C*O)*(R+(w+C*R)*O);else{const O=C*Math.sqrt(S*S-1);B=N=>{const k=Math.exp(-S*C*N),z=Math.min(O*N,300);return u-k*((w+S*C*R)*Math.sinh(z)+O*R*Math.cosh(z))/O}}return{calculatedDuration:b&&g||null,next:O=>{const N=B(O);if(b)l.done=O>=g;else{let k=w;O!==0&&(S<1?k=pp(B,O,N):k=0);const z=Math.abs(k)<=r,U=Math.abs(u-N)<=n;l.done=z&&U}return l.value=l.done?u:N,l}}}function Ff({keyframes:t,velocity:n=0,power:r=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:u=500,modifyTarget:l,min:f,max:h,restDelta:m=.5,restSpeed:g}){const p=t[0],b={done:!1,value:p},w=W=>f!==void 0&&W<f||h!==void 0&&W>h,S=W=>f===void 0?h:h===void 0||Math.abs(f-W)<Math.abs(h-W)?f:h;let R=r*n;const C=p+R,M=l===void 0?C:l(C);M!==C&&(R=M-p);const B=W=>-R*Math.exp(-W/s),O=W=>M+B(W),N=W=>{const q=B(W),mt=O(W);b.done=Math.abs(q)<=m,b.value=b.done?M:mt};let k,z;const U=W=>{w(b.value)&&(k=W,z=mp({keyframes:[b.value,S(b.value)],velocity:pp(O,W,b.value),damping:a,stiffness:u,restDelta:m,restSpeed:g}))};return U(0),{calculatedDuration:null,next:W=>{let q=!1;return!z&&k===void 0&&(q=!0,N(W),U(W)),k!==void 0&&W>k?z.next(W-k):(!q&&N(W),b)}}}const kS=t=>{const n=({timestamp:r})=>t(r);return{start:()=>pt.update(n,!0),stop:()=>Qe(n),now:()=>jt.isProcessing?jt.timestamp:performance.now()}},Nf=2e4;function kf(t){let n=0;const r=50;let s=t.next(n);for(;!s.done&&n<Nf;)n+=r,s=t.next(n);return n>=Nf?1/0:n}const WS={decay:Ff,inertia:Ff,tween:gs,keyframes:gs,spring:mp};function vs({autoplay:t=!0,delay:n=0,driver:r=kS,keyframes:s,type:a="keyframes",repeat:u=0,repeatDelay:l=0,repeatType:f="loop",onPlay:h,onStop:m,onComplete:g,onUpdate:p,...b}){let w=1,S=!1,R,C;const M=()=>{C=new Promise(rt=>{R=rt})};M();let B;const O=WS[a]||gs;let N;O!==gs&&typeof s[0]!="number"&&(N=hp([0,100],s,{clamp:!1}),s=[0,100]);const k=O({...b,keyframes:s});let z;f==="mirror"&&(z=O({...b,keyframes:[...s].reverse(),velocity:-(b.velocity||0)}));let U="idle",W=null,q=null,mt=null;k.calculatedDuration===null&&u&&(k.calculatedDuration=kf(k));const{calculatedDuration:Dt}=k;let gt=1/0,_t=1/0;Dt!==null&&(gt=Dt+l,_t=gt*(u+1)-l);let Rt=0;const le=rt=>{if(q===null)return;w>0&&(q=Math.min(q,rt)),w<0&&(q=Math.min(rt-_t/w,q)),W!==null?Rt=W:Rt=Math.round(rt-q)*w;const tn=Rt-n*(w>=0?1:-1),en=w>=0?tn<0:tn>_t;Rt=Math.max(tn,0),U==="finished"&&W===null&&(Rt=_t);let vr=Rt,Gt=k;if(u){const Ee=Math.min(Rt,_t)/gt;let Ne=Math.floor(Ee),Ft=Ee%1;!Ft&&Ee>=1&&(Ft=1),Ft===1&&Ne--,Ne=Math.min(Ne,u+1),!!(Ne%2)&&(f==="reverse"?(Ft=1-Ft,l&&(Ft-=l/gt)):f==="mirror"&&(Gt=z)),vr=En(0,1,Ft)*gt}const qt=en?{done:!1,value:s[0]}:Gt.next(vr);N&&(qt.value=N(qt.value));let{done:nn}=qt;!en&&Dt!==null&&(nn=w>=0?Rt>=_t:Rt<=0);const ue=W===null&&(U==="finished"||U==="running"&&nn);return p&&p(qt.value),ue&&ft(),qt},St=()=>{B&&B.stop(),B=void 0},Mt=()=>{U="idle",St(),R(),M(),q=mt=null},ft=()=>{U="finished",g&&g(),St(),R()},Pe=()=>{if(S)return;B||(B=r(le));const rt=B.now();h&&h(),W!==null?q=rt-W:(!q||U==="finished")&&(q=rt),U==="finished"&&M(),mt=q,W=null,U="running",B.start()};t&&Pe();const we={then(rt,tn){return C.then(rt,tn)},get time(){return Ze(Rt)},set time(rt){rt=wn(rt),Rt=rt,W!==null||!B||w===0?W=rt:q=B.now()-rt/w},get duration(){const rt=k.calculatedDuration===null?kf(k):k.calculatedDuration;return Ze(rt)},get speed(){return w},set speed(rt){rt===w||!B||(w=rt,we.time=Ze(Rt))},get state(){return U},play:Pe,pause:()=>{U="paused",W=Rt},stop:()=>{S=!0,U!=="idle"&&(U="idle",m&&m(),Mt())},cancel:()=>{mt!==null&&le(mt),Mt()},complete:()=>{U="finished"},sample:rt=>(q=0,le(rt))};return we}function jS(t){let n;return()=>(n===void 0&&(n=t()),n)}const US=jS(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),zS=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Qi=10,HS=2e4,$S=(t,n)=>n.type==="spring"||t==="backgroundColor"||!Gd(n.ease);function GS(t,n,{onUpdate:r,onComplete:s,...a}){if(!(US()&&zS.has(n)&&!a.repeatDelay&&a.repeatType!=="mirror"&&a.damping!==0&&a.type!=="inertia"))return!1;let l=!1,f,h,m=!1;const g=()=>{h=new Promise(O=>{f=O})};g();let{keyframes:p,duration:b=300,ease:w,times:S}=a;if($S(n,a)){const O=vs({...a,repeat:0,delay:0});let N={done:!1,value:p[0]};const k=[];let z=0;for(;!N.done&&z<HS;)N=O.sample(z),k.push(N.value),z+=Qi;S=void 0,p=k,b=z-Qi,w="linear"}const R=nS(t.owner.current,n,p,{...a,duration:b,ease:w,times:S}),C=()=>{m=!1,R.cancel()},M=()=>{m=!0,pt.update(C),f(),g()};return R.onfinish=()=>{m||(t.set(rS(p,a)),s&&s(),M())},{then(O,N){return h.then(O,N)},attachTimeline(O){return R.timeline=O,R.onfinish=null,Et},get time(){return Ze(R.currentTime||0)},set time(O){R.currentTime=wn(O)},get speed(){return R.playbackRate},set speed(O){R.playbackRate=O},get duration(){return Ze(b)},play:()=>{l||(R.play(),Qe(C))},pause:()=>R.pause(),stop:()=>{if(l=!0,R.playState==="idle")return;const{currentTime:O}=R;if(O){const N=vs({...a,autoplay:!1});t.setWithVelocity(N.sample(O-Qi).value,N.sample(O).value,Qi)}M()},complete:()=>{m||R.finish()},cancel:M}}function qS({keyframes:t,delay:n,onUpdate:r,onComplete:s}){const a=()=>(r&&r(t[t.length-1]),s&&s(),{time:0,speed:1,duration:0,play:Et,pause:Et,stop:Et,then:u=>(u(),Promise.resolve()),cancel:Et,complete:Et});return n?vs({keyframes:[0,1],duration:0,delay:n,onComplete:a}):a()}const KS={type:"spring",stiffness:500,damping:25,restSpeed:10},XS=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),YS={type:"keyframes",duration:.8},JS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ZS=(t,{keyframes:n})=>n.length>2?YS:jn.has(t)?t.startsWith("scale")?XS(n[1]):KS:JS,ka=(t,n)=>t==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(_n.test(n)||n==="0")&&!n.startsWith("url(")),QS=new Set(["brightness","contrast","saturate","opacity"]);function tA(t){const[n,r]=t.slice(0,-1).split("(");if(n==="drop-shadow")return t;const[s]=r.match(Is)||[];if(!s)return t;const a=r.replace(s,"");let u=QS.has(n)?1:0;return s!==r&&(u*=100),n+"("+u+a+")"}const eA=/([a-z-]*)\(.*?\)/g,Wa={..._n,getAnimatableNone:t=>{const n=t.match(eA);return n?n.map(tA).join(" "):t}},nA={...Od,color:$t,backgroundColor:$t,outlineColor:$t,fill:$t,stroke:$t,borderColor:$t,borderTopColor:$t,borderRightColor:$t,borderBottomColor:$t,borderLeftColor:$t,filter:Wa,WebkitFilter:Wa},xl=t=>nA[t];function gp(t,n){let r=xl(t);return r!==Wa&&(r=_n),r.getAnimatableNone?r.getAnimatableNone(n):void 0}const vp=t=>/^0[^.\s]+$/.test(t);function rA(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||vp(t)}function iA(t,n,r,s){const a=ka(n,r);let u;Array.isArray(r)?u=[...r]:u=[null,r];const l=s.from!==void 0?s.from:t.get();let f;const h=[];for(let m=0;m<u.length;m++)u[m]===null&&(u[m]=m===0?l:u[m-1]),rA(u[m])&&h.push(m),typeof u[m]=="string"&&u[m]!=="none"&&u[m]!=="0"&&(f=u[m]);if(a&&h.length&&f)for(let m=0;m<h.length;m++){const g=h[m];u[g]=gp(n,f)}return u}function sA({when:t,delay:n,delayChildren:r,staggerChildren:s,staggerDirection:a,repeat:u,repeatType:l,repeatDelay:f,from:h,elapsed:m,...g}){return!!Object.keys(g).length}function bl(t,n){return t[n]||t.default||t}const oA={skipAnimations:!1},wl=(t,n,r,s={})=>a=>{const u=bl(s,t)||{},l=u.delay||s.delay||0;let{elapsed:f=0}=s;f=f-wn(l);const h=iA(n,t,r,u),m=h[0],g=h[h.length-1],p=ka(t,m),b=ka(t,g);let w={keyframes:h,velocity:n.getVelocity(),ease:"easeOut",...u,delay:-f,onUpdate:S=>{n.set(S),u.onUpdate&&u.onUpdate(S)},onComplete:()=>{a(),u.onComplete&&u.onComplete()}};if(sA(u)||(w={...w,...ZS(t,w)}),w.duration&&(w.duration=wn(w.duration)),w.repeatDelay&&(w.repeatDelay=wn(w.repeatDelay)),!p||!b||eS.current||u.type===!1||oA.skipAnimations)return qS(w);if(!s.isHandoff&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate){const S=GS(n,t,w);if(S)return S}return vs(w)};function ys(t){return!!(Qt(t)&&t.add)}const yp=t=>/^\-?\d*\.?\d+$/.test(t);function El(t,n){t.indexOf(n)===-1&&t.push(n)}function _l(t,n){const r=t.indexOf(n);r>-1&&t.splice(r,1)}class Sl{constructor(){this.subscriptions=[]}add(n){return El(this.subscriptions,n),()=>_l(this.subscriptions,n)}notify(n,r,s){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](n,r,s);else for(let u=0;u<a;u++){const l=this.subscriptions[u];l&&l(n,r,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const aA=t=>!isNaN(parseFloat(t));class lA{constructor(n,r={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(s,a=!0)=>{this.prev=this.current,this.current=s;const{delta:u,timestamp:l}=jt;this.lastUpdated!==l&&(this.timeDelta=u,this.lastUpdated=l,pt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>pt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:s})=>{s!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=n,this.canTrackVelocity=aA(this.current),this.owner=r.owner}onChange(n){return this.on("change",n)}on(n,r){this.events[n]||(this.events[n]=new Sl);const s=this.events[n].add(r);return n==="change"?()=>{s(),pt.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,r){this.passiveEffect=n,this.stopPassiveEffect=r}set(n,r=!0){!r||!this.passiveEffect?this.updateAndNotify(n,r):this.passiveEffect(n,this.updateAndNotify)}setWithVelocity(n,r,s){this.set(r),this.prev=n,this.timeDelta=s}jump(n){this.updateAndNotify(n),this.prev=n,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?dp(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(n){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=n(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function dr(t,n){return new lA(t,n)}const xp=t=>n=>n.test(t),uA={test:t=>t==="auto",parse:t=>t},bp=[Un,Y,Be,vn,m_,p_,uA],kr=t=>bp.find(xp(t)),cA=[...bp,$t,_n],fA=t=>cA.find(xp(t));function hA(t,n,r){t.hasValue(n)?t.getValue(n).set(r):t.addValue(n,dr(r))}function dA(t,n){const r=Vs(t,n);let{transitionEnd:s={},transition:a={},...u}=r?t.makeTargetAnimatable(r,!1):{};u={...u,...s};for(const l in u){const f=O_(u[l]);hA(t,l,f)}}function pA(t,n,r){var s,a;const u=Object.keys(n).filter(f=>!t.hasValue(f)),l=u.length;if(l)for(let f=0;f<l;f++){const h=u[f],m=n[h];let g=null;Array.isArray(m)&&(g=m[0]),g===null&&(g=(a=(s=r[h])!==null&&s!==void 0?s:t.readValue(h))!==null&&a!==void 0?a:n[h]),g!=null&&(typeof g=="string"&&(yp(g)||vp(g))?g=parseFloat(g):!fA(g)&&_n.test(m)&&(g=gp(h,m)),t.addValue(h,dr(g,{owner:t})),r[h]===void 0&&(r[h]=g),g!==null&&t.setBaseTarget(h,g))}}function mA(t,n){return n?(n[t]||n.default||n).from:void 0}function gA(t,n,r){const s={};for(const a in t){const u=mA(a,n);if(u!==void 0)s[a]=u;else{const l=r.getValue(a);l&&(s[a]=l.get())}}return s}function vA({protectedKeys:t,needsAnimating:n},r){const s=t.hasOwnProperty(r)&&n[r]!==!0;return n[r]=!1,s}function yA(t,n){const r=t.get();if(Array.isArray(n)){for(let s=0;s<n.length;s++)if(n[s]!==r)return!0}else return r!==n}function wp(t,n,{delay:r=0,transitionOverride:s,type:a}={}){let{transition:u=t.getDefaultTransition(),transitionEnd:l,...f}=t.makeTargetAnimatable(n);const h=t.getValue("willChange");s&&(u=s);const m=[],g=a&&t.animationState&&t.animationState.getState()[a];for(const p in f){const b=t.getValue(p),w=f[p];if(!b||w===void 0||g&&vA(g,p))continue;const S={delay:r,elapsed:0,...bl(u||{},p)};if(window.HandoffAppearAnimations){const M=t.getProps()[Ed];if(M){const B=window.HandoffAppearAnimations(M,p,b,pt);B!==null&&(S.elapsed=B,S.isHandoff=!0)}}let R=!S.isHandoff&&!yA(b,w);if(S.type==="spring"&&(b.getVelocity()||S.velocity)&&(R=!1),b.animation&&(R=!1),R)continue;b.start(wl(p,b,w,t.shouldReduceMotion&&jn.has(p)?{type:!1}:S));const C=b.animation;ys(h)&&(h.add(p),C.then(()=>h.remove(p))),m.push(C)}return l&&Promise.all(m).then(()=>{l&&dA(t,l)}),m}function ja(t,n,r={}){const s=Vs(t,n,r.custom);let{transition:a=t.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(a=r.transitionOverride);const u=s?()=>Promise.all(wp(t,s,r)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:p}=a;return xA(t,n,m+h,g,p,r)}:()=>Promise.resolve(),{when:f}=a;if(f){const[h,m]=f==="beforeChildren"?[u,l]:[l,u];return h().then(()=>m())}else return Promise.all([u(),l(r.delay)])}function xA(t,n,r=0,s=0,a=1,u){const l=[],f=(t.variantChildren.size-1)*s,h=a===1?(m=0)=>m*s:(m=0)=>f-m*s;return Array.from(t.variantChildren).sort(bA).forEach((m,g)=>{m.notify("AnimationStart",n),l.push(ja(m,n,{...u,delay:r+h(g)}).then(()=>m.notify("AnimationComplete",n)))}),Promise.all(l)}function bA(t,n){return t.sortNodePosition(n)}function wA(t,n,r={}){t.notify("AnimationStart",n);let s;if(Array.isArray(n)){const a=n.map(u=>ja(t,u,r));s=Promise.all(a)}else if(typeof n=="string")s=ja(t,n,r);else{const a=typeof n=="function"?Vs(t,n,r.custom):n;s=Promise.all(wp(t,a,r))}return s.then(()=>t.notify("AnimationComplete",n))}const EA=[...ol].reverse(),_A=ol.length;function SA(t){return n=>Promise.all(n.map(({animation:r,options:s})=>wA(t,r,s)))}function AA(t){let n=SA(t);const r=RA();let s=!0;const a=(h,m)=>{const g=Vs(t,m);if(g){const{transition:p,transitionEnd:b,...w}=g;h={...h,...w,...b}}return h};function u(h){n=h(t)}function l(h,m){const g=t.getProps(),p=t.getVariantContext(!0)||{},b=[],w=new Set;let S={},R=1/0;for(let M=0;M<_A;M++){const B=EA[M],O=r[B],N=g[B]!==void 0?g[B]:p[B],k=Xr(N),z=B===m?O.isActive:null;z===!1&&(R=M);let U=N===p[B]&&N!==g[B]&&k;if(U&&s&&t.manuallyAnimateOnMount&&(U=!1),O.protectedKeys={...S},!O.isActive&&z===null||!N&&!O.prevProp||Ls(N)||typeof N=="boolean")continue;let q=TA(O.prevProp,N)||B===m&&O.isActive&&!U&&k||M>R&&k,mt=!1;const Dt=Array.isArray(N)?N:[N];let gt=Dt.reduce(a,{});z===!1&&(gt={});const{prevResolvedValues:_t={}}=O,Rt={..._t,...gt},le=St=>{q=!0,w.has(St)&&(mt=!0,w.delete(St)),O.needsAnimating[St]=!0};for(const St in Rt){const Mt=gt[St],ft=_t[St];if(S.hasOwnProperty(St))continue;let Pe=!1;ps(Mt)&&ps(ft)?Pe=!Hd(Mt,ft):Pe=Mt!==ft,Pe?Mt!==void 0?le(St):w.add(St):Mt!==void 0&&w.has(St)?le(St):O.protectedKeys[St]=!0}O.prevProp=N,O.prevResolvedValues=gt,O.isActive&&(S={...S,...gt}),s&&t.blockInitialAnimation&&(q=!1),q&&(!U||mt)&&b.push(...Dt.map(St=>({animation:St,options:{type:B,...h}})))}if(w.size){const M={};w.forEach(B=>{const O=t.getBaseTarget(B);O!==void 0&&(M[B]=O)}),b.push({animation:M})}let C=!!b.length;return s&&(g.initial===!1||g.initial===g.animate)&&!t.manuallyAnimateOnMount&&(C=!1),s=!1,C?n(b):Promise.resolve()}function f(h,m,g){var p;if(r[h].isActive===m)return Promise.resolve();(p=t.variantChildren)===null||p===void 0||p.forEach(w=>{var S;return(S=w.animationState)===null||S===void 0?void 0:S.setActive(h,m)}),r[h].isActive=m;const b=l(g,h);for(const w in r)r[w].protectedKeys={};return b}return{animateChanges:l,setActive:f,setAnimateFunction:u,getState:()=>r}}function TA(t,n){return typeof n=="string"?n!==t:Array.isArray(n)?!Hd(n,t):!1}function Bn(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function RA(){return{animate:Bn(!0),whileInView:Bn(),whileHover:Bn(),whileTap:Bn(),whileDrag:Bn(),whileFocus:Bn(),exit:Bn()}}class CA extends Sn{constructor(n){super(n),n.animationState||(n.animationState=AA(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();this.unmount(),Ls(n)&&(this.unmount=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:r}=this.node.prevProps||{};n!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let PA=0;class OA extends Sn{constructor(){super(...arguments),this.id=PA++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:r,custom:s}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===a)return;const u=this.node.animationState.setActive("exit",!n,{custom:s??this.node.getProps().custom});r&&!n&&u.then(()=>r(this.id))}mount(){const{register:n}=this.node.presenceContext||{};n&&(this.unmount=n(this.id))}unmount(){}}const LA={animation:{Feature:CA},exit:{Feature:OA}},Wf=(t,n)=>Math.abs(t-n);function MA(t,n){const r=Wf(t.x,n.x),s=Wf(t.y,n.y);return Math.sqrt(r**2+s**2)}class Ep{constructor(n,r,{transformPagePoint:s,contextWindow:a,dragSnapToOrigin:u=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=_a(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,w=MA(p.offset,{x:0,y:0})>=3;if(!b&&!w)return;const{point:S}=p,{timestamp:R}=jt;this.history.push({...S,timestamp:R});const{onStart:C,onMove:M}=this.handlers;b||(C&&C(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,p)},this.handlePointerMove=(p,b)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Ea(b,this.transformPagePoint),pt.update(this.updatePoint,!0)},this.handlePointerUp=(p,b)=>{this.end();const{onEnd:w,onSessionEnd:S,resumeAnimation:R}=this.handlers;if(this.dragSnapToOrigin&&R&&R(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=_a(p.type==="pointercancel"?this.lastMoveEventInfo:Ea(b,this.transformPagePoint),this.history);this.startEvent&&w&&w(p,C),S&&S(p,C)},!kd(n))return;this.dragSnapToOrigin=u,this.handlers=r,this.transformPagePoint=s,this.contextWindow=a||window;const l=Ds(n),f=Ea(l,this.transformPagePoint),{point:h}=f,{timestamp:m}=jt;this.history=[{...h,timestamp:m}];const{onSessionStart:g}=r;g&&g(n,_a(f,this.history)),this.removeListeners=bn(Je(this.contextWindow,"pointermove",this.handlePointerMove),Je(this.contextWindow,"pointerup",this.handlePointerUp),Je(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),Qe(this.updatePoint)}}function Ea(t,n){return n?{point:n(t.point)}:t}function jf(t,n){return{x:t.x-n.x,y:t.y-n.y}}function _a({point:t},n){return{point:t,delta:jf(t,_p(n)),offset:jf(t,IA(n)),velocity:DA(n,.1)}}function IA(t){return t[0]}function _p(t){return t[t.length-1]}function DA(t,n){if(t.length<2)return{x:0,y:0};let r=t.length-1,s=null;const a=_p(t);for(;r>=0&&(s=t[r],!(a.timestamp-s.timestamp>wn(n)));)r--;if(!s)return{x:0,y:0};const u=Ze(a.timestamp-s.timestamp);if(u===0)return{x:0,y:0};const l={x:(a.x-s.x)/u,y:(a.y-s.y)/u};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function ae(t){return t.max-t.min}function Ua(t,n=0,r=.01){return Math.abs(t-n)<=r}function Uf(t,n,r,s=.5){t.origin=s,t.originPoint=bt(n.min,n.max,t.origin),t.scale=ae(r)/ae(n),(Ua(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=bt(r.min,r.max,t.origin)-t.originPoint,(Ua(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Gr(t,n,r,s){Uf(t.x,n.x,r.x,s?s.originX:void 0),Uf(t.y,n.y,r.y,s?s.originY:void 0)}function zf(t,n,r){t.min=r.min+n.min,t.max=t.min+ae(n)}function VA(t,n,r){zf(t.x,n.x,r.x),zf(t.y,n.y,r.y)}function Hf(t,n,r){t.min=n.min-r.min,t.max=t.min+ae(n)}function qr(t,n,r){Hf(t.x,n.x,r.x),Hf(t.y,n.y,r.y)}function BA(t,{min:n,max:r},s){return n!==void 0&&t<n?t=s?bt(n,t,s.min):Math.max(t,n):r!==void 0&&t>r&&(t=s?bt(r,t,s.max):Math.min(t,r)),t}function $f(t,n,r){return{min:n!==void 0?t.min+n:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function FA(t,{top:n,left:r,bottom:s,right:a}){return{x:$f(t.x,r,a),y:$f(t.y,n,s)}}function Gf(t,n){let r=n.min-t.min,s=n.max-t.max;return n.max-n.min<t.max-t.min&&([r,s]=[s,r]),{min:r,max:s}}function NA(t,n){return{x:Gf(t.x,n.x),y:Gf(t.y,n.y)}}function kA(t,n){let r=.5;const s=ae(t),a=ae(n);return a>s?r=Jr(n.min,n.max-s,t.min):s>a&&(r=Jr(t.min,t.max-a,n.min)),En(0,1,r)}function WA(t,n){const r={};return n.min!==void 0&&(r.min=n.min-t.min),n.max!==void 0&&(r.max=n.max-t.min),r}const za=.35;function jA(t=za){return t===!1?t=0:t===!0&&(t=za),{x:qf(t,"left","right"),y:qf(t,"top","bottom")}}function qf(t,n,r){return{min:Kf(t,n),max:Kf(t,r)}}function Kf(t,n){return typeof t=="number"?t:t[n]||0}const Xf=()=>({translate:0,scale:1,origin:0,originPoint:0}),cr=()=>({x:Xf(),y:Xf()}),Yf=()=>({min:0,max:0}),Ct=()=>({x:Yf(),y:Yf()});function xe(t){return[t("x"),t("y")]}function Sp({top:t,left:n,right:r,bottom:s}){return{x:{min:n,max:r},y:{min:t,max:s}}}function UA({x:t,y:n}){return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function zA(t,n){if(!n)return t;const r=n({x:t.left,y:t.top}),s=n({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:s.y,right:s.x}}function Sa(t){return t===void 0||t===1}function Ha({scale:t,scaleX:n,scaleY:r}){return!Sa(t)||!Sa(n)||!Sa(r)}function Fn(t){return Ha(t)||Ap(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Ap(t){return Jf(t.x)||Jf(t.y)}function Jf(t){return t&&t!=="0%"}function xs(t,n,r){const s=t-r,a=n*s;return r+a}function Zf(t,n,r,s,a){return a!==void 0&&(t=xs(t,a,s)),xs(t,r,s)+n}function $a(t,n=0,r=1,s,a){t.min=Zf(t.min,n,r,s,a),t.max=Zf(t.max,n,r,s,a)}function Tp(t,{x:n,y:r}){$a(t.x,n.translate,n.scale,n.originPoint),$a(t.y,r.translate,r.scale,r.originPoint)}function HA(t,n,r,s=!1){const a=r.length;if(!a)return;n.x=n.y=1;let u,l;for(let f=0;f<a;f++){u=r[f],l=u.projectionDelta;const h=u.instance;h&&h.style&&h.style.display==="contents"||(s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&fr(t,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),l&&(n.x*=l.x.scale,n.y*=l.y.scale,Tp(t,l)),s&&Fn(u.latestValues)&&fr(t,u.latestValues))}n.x=Qf(n.x),n.y=Qf(n.y)}function Qf(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function yn(t,n){t.min=t.min+n,t.max=t.max+n}function th(t,n,[r,s,a]){const u=n[a]!==void 0?n[a]:.5,l=bt(t.min,t.max,u);$a(t,n[r],n[s],l,n.scale)}const $A=["x","scaleX","originX"],GA=["y","scaleY","originY"];function fr(t,n){th(t.x,n,$A),th(t.y,n,GA)}function Rp(t,n){return Sp(zA(t.getBoundingClientRect(),n))}function qA(t,n,r){const s=Rp(t,r),{scroll:a}=n;return a&&(yn(s.x,a.offset.x),yn(s.y,a.offset.y)),s}const Cp=({current:t})=>t?t.ownerDocument.defaultView:null,KA=new WeakMap;class XA{constructor(n){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ct(),this.visualElement=n}start(n,{snapToCursor:r=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const a=g=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Ds(g,"page").point)},u=(g,p)=>{const{drag:b,dragPropagation:w,onDragStart:S}=this.getProps();if(b&&!w&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=jd(b),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),xe(C=>{let M=this.getAxisMotionValue(C).get()||0;if(Be.test(M)){const{projection:B}=this.visualElement;if(B&&B.layout){const O=B.layout.layoutBox[C];O&&(M=ae(O)*(parseFloat(M)/100))}}this.originPoint[C]=M}),S&&pt.update(()=>S(g,p),!1,!0);const{animationState:R}=this.visualElement;R&&R.setActive("whileDrag",!0)},l=(g,p)=>{const{dragPropagation:b,dragDirectionLock:w,onDirectionLock:S,onDrag:R}=this.getProps();if(!b&&!this.openGlobalLock)return;const{offset:C}=p;if(w&&this.currentDirection===null){this.currentDirection=YA(C),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",p.point,C),this.updateAxis("y",p.point,C),this.visualElement.render(),R&&R(g,p)},f=(g,p)=>this.stop(g,p),h=()=>xe(g=>{var p;return this.getAnimationState(g)==="paused"&&((p=this.getAxisMotionValue(g).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new Ep(n,{onSessionStart:a,onStart:u,onMove:l,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:Cp(this.visualElement)})}stop(n,r){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:u}=this.getProps();u&&pt.update(()=>u(n,r))}cancel(){this.isDragging=!1;const{projection:n,animationState:r}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(n,r,s){const{drag:a}=this.getProps();if(!s||!ts(n,a,this.currentDirection))return;const u=this.getAxisMotionValue(n);let l=this.originPoint[n]+s[n];this.constraints&&this.constraints[n]&&(l=BA(l,this.constraints[n],this.elastic[n])),u.set(l)}resolveConstraints(){var n;const{dragConstraints:r,dragElastic:s}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(n=this.visualElement.projection)===null||n===void 0?void 0:n.layout,u=this.constraints;r&&lr(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=FA(a.layoutBox,r):this.constraints=!1,this.elastic=jA(s),u!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&xe(l=>{this.getAxisMotionValue(l)&&(this.constraints[l]=WA(a.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:r}=this.getProps();if(!n||!lr(n))return!1;const s=n.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const u=qA(s,a.root,this.visualElement.getTransformPagePoint());let l=NA(a.layout.layoutBox,u);if(r){const f=r(UA(l));this.hasMutatedConstraints=!!f,f&&(l=Sp(f))}return l}startAnimation(n){const{drag:r,dragMomentum:s,dragElastic:a,dragTransition:u,dragSnapToOrigin:l,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},m=xe(g=>{if(!ts(g,r,this.currentDirection))return;let p=h&&h[g]||{};l&&(p={min:0,max:0});const b=a?200:1e6,w=a?40:1e7,S={type:"inertia",velocity:s?n[g]:0,bounceStiffness:b,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...u,...p};return this.startAxisValueAnimation(g,S)});return Promise.all(m).then(f)}startAxisValueAnimation(n,r){const s=this.getAxisMotionValue(n);return s.start(wl(n,s,0,r))}stopAnimation(){xe(n=>this.getAxisMotionValue(n).stop())}pauseAnimation(){xe(n=>{var r;return(r=this.getAxisMotionValue(n).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(n){var r;return(r=this.getAxisMotionValue(n).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(n){const r="_drag"+n.toUpperCase(),s=this.visualElement.getProps(),a=s[r];return a||this.visualElement.getValue(n,(s.initial?s.initial[n]:void 0)||0)}snapToCursor(n){xe(r=>{const{drag:s}=this.getProps();if(!ts(r,s,this.currentDirection))return;const{projection:a}=this.visualElement,u=this.getAxisMotionValue(r);if(a&&a.layout){const{min:l,max:f}=a.layout.layoutBox[r];u.set(n[r]-bt(l,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:r}=this.getProps(),{projection:s}=this.visualElement;if(!lr(r)||!s||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};xe(l=>{const f=this.getAxisMotionValue(l);if(f){const h=f.get();a[l]=kA({min:h,max:h},this.constraints[l])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),xe(l=>{if(!ts(l,n,null))return;const f=this.getAxisMotionValue(l),{min:h,max:m}=this.constraints[l];f.set(bt(h,m,a[l]))})}addListeners(){if(!this.visualElement.current)return;KA.set(this.visualElement,this);const n=this.visualElement.current,r=Je(n,"pointerdown",h=>{const{drag:m,dragListener:g=!0}=this.getProps();m&&g&&this.start(h)}),s=()=>{const{dragConstraints:h}=this.getProps();lr(h)&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,u=a.addEventListener("measure",s);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),s();const l=Xe(window,"resize",()=>this.scalePositionWithinConstraints()),f=a.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(xe(g=>{const p=this.getAxisMotionValue(g);p&&(this.originPoint[g]+=h[g].translate,p.set(p.get()+h[g].translate))}),this.visualElement.render())});return()=>{l(),r(),u(),f&&f()}}getProps(){const n=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:s=!1,dragPropagation:a=!1,dragConstraints:u=!1,dragElastic:l=za,dragMomentum:f=!0}=n;return{...n,drag:r,dragDirectionLock:s,dragPropagation:a,dragConstraints:u,dragElastic:l,dragMomentum:f}}}function ts(t,n,r){return(n===!0||n===t)&&(r===null||r===t)}function YA(t,n=10){let r=null;return Math.abs(t.y)>n?r="y":Math.abs(t.x)>n&&(r="x"),r}class JA extends Sn{constructor(n){super(n),this.removeGroupControls=Et,this.removeListeners=Et,this.controls=new XA(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Et}unmount(){this.removeGroupControls(),this.removeListeners()}}const eh=t=>(n,r)=>{t&&pt.update(()=>t(n,r))};class ZA extends Sn{constructor(){super(...arguments),this.removePointerDownListener=Et}onPointerDown(n){this.session=new Ep(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Cp(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:r,onPan:s,onPanEnd:a}=this.node.getProps();return{onSessionStart:eh(n),onStart:eh(r),onMove:s,onEnd:(u,l)=>{delete this.session,a&&pt.update(()=>a(u,l))}}}mount(){this.removePointerDownListener=Je(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function QA(){const t=_.reactExports.useContext(il);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,a=_.reactExports.useId();return _.reactExports.useEffect(()=>s(a),[]),!n&&r?[!1,()=>r&&r(a)]:[!0]}const as={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nh(t,n){return n.max===n.min?0:t/(n.max-n.min)*100}const Wr={correct:(t,n)=>{if(!n.target)return t;if(typeof t=="string")if(Y.test(t))t=parseFloat(t);else return t;const r=nh(t,n.target.x),s=nh(t,n.target.y);return`${r}% ${s}%`}},tT={correct:(t,{treeScale:n,projectionDelta:r})=>{const s=t,a=_n.parse(t);if(a.length>5)return s;const u=_n.createTransformer(t),l=typeof a[0]!="number"?1:0,f=r.x.scale*n.x,h=r.y.scale*n.y;a[0+l]/=f,a[1+l]/=h;const m=bt(f,h,.5);return typeof a[2+l]=="number"&&(a[2+l]/=m),typeof a[3+l]=="number"&&(a[3+l]/=m),u(a)}};class eT extends _.React.Component{componentDidMount(){const{visualElement:n,layoutGroup:r,switchLayoutGroup:s,layoutId:a}=this.props,{projection:u}=n;a_(nT),u&&(r.group&&r.group.add(u),s&&s.register&&a&&s.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),as.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:r,visualElement:s,drag:a,isPresent:u}=this.props,l=s.projection;return l&&(l.isPresent=u,a||n.layoutDependency!==r||r===void 0?l.willUpdate():this.safeToRemove(),n.isPresent!==u&&(u?l.promote():l.relegate()||pt.postRender(()=>{const f=l.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),queueMicrotask(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:r,switchLayoutGroup:s}=this.props,{projection:a}=n;a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),s&&s.deregister&&s.deregister(a))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function Pp(t){const[n,r]=QA(),s=_.reactExports.useContext(Sd);return _.React.createElement(eT,{...t,layoutGroup:s,switchLayoutGroup:_.reactExports.useContext(Ad),isPresent:n,safeToRemove:r})}const nT={borderRadius:{...Wr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Wr,borderTopRightRadius:Wr,borderBottomLeftRadius:Wr,borderBottomRightRadius:Wr,boxShadow:tT},Op=["TopLeft","TopRight","BottomLeft","BottomRight"],rT=Op.length,rh=t=>typeof t=="string"?parseFloat(t):t,ih=t=>typeof t=="number"||Y.test(t);function iT(t,n,r,s,a,u){a?(t.opacity=bt(0,r.opacity!==void 0?r.opacity:1,sT(s)),t.opacityExit=bt(n.opacity!==void 0?n.opacity:1,0,oT(s))):u&&(t.opacity=bt(n.opacity!==void 0?n.opacity:1,r.opacity!==void 0?r.opacity:1,s));for(let l=0;l<rT;l++){const f=`border${Op[l]}Radius`;let h=sh(n,f),m=sh(r,f);if(h===void 0&&m===void 0)continue;h||(h=0),m||(m=0),h===0||m===0||ih(h)===ih(m)?(t[f]=Math.max(bt(rh(h),rh(m),s),0),(Be.test(m)||Be.test(h))&&(t[f]+="%")):t[f]=m}(n.rotate||r.rotate)&&(t.rotate=bt(n.rotate||0,r.rotate||0,s))}function sh(t,n){return t[n]!==void 0?t[n]:t.borderRadius}const sT=Lp(0,.5,Qd),oT=Lp(.5,.95,Et);function Lp(t,n,r){return s=>s<t?0:s>n?1:r(Jr(t,n,s))}function oh(t,n){t.min=n.min,t.max=n.max}function ye(t,n){oh(t.x,n.x),oh(t.y,n.y)}function ah(t,n,r,s,a){return t-=n,t=xs(t,1/r,s),a!==void 0&&(t=xs(t,1/a,s)),t}function aT(t,n=0,r=1,s=.5,a,u=t,l=t){if(Be.test(n)&&(n=parseFloat(n),n=bt(l.min,l.max,n/100)-l.min),typeof n!="number")return;let f=bt(u.min,u.max,s);t===u&&(f-=n),t.min=ah(t.min,n,r,f,a),t.max=ah(t.max,n,r,f,a)}function lh(t,n,[r,s,a],u,l){aT(t,n[r],n[s],n[a],n.scale,u,l)}const lT=["x","scaleX","originX"],uT=["y","scaleY","originY"];function uh(t,n,r,s){lh(t.x,n,lT,r?r.x:void 0,s?s.x:void 0),lh(t.y,n,uT,r?r.y:void 0,s?s.y:void 0)}function ch(t){return t.translate===0&&t.scale===1}function Mp(t){return ch(t.x)&&ch(t.y)}function cT(t,n){return t.x.min===n.x.min&&t.x.max===n.x.max&&t.y.min===n.y.min&&t.y.max===n.y.max}function Ip(t,n){return Math.round(t.x.min)===Math.round(n.x.min)&&Math.round(t.x.max)===Math.round(n.x.max)&&Math.round(t.y.min)===Math.round(n.y.min)&&Math.round(t.y.max)===Math.round(n.y.max)}function fh(t){return ae(t.x)/ae(t.y)}class fT{constructor(){this.members=[]}add(n){El(this.members,n),n.scheduleRender()}remove(n){if(_l(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(n){const r=this.members.findIndex(a=>n===a);if(r===0)return!1;let s;for(let a=r;a>=0;a--){const u=this.members[a];if(u.isPresent!==!1){s=u;break}}return s?(this.promote(s),!0):!1}promote(n,r){const s=this.lead;if(n!==s&&(this.prevLead=s,this.lead=n,n.show(),s)){s.instance&&s.scheduleRender(),n.scheduleRender(),n.resumeFrom=s,r&&(n.resumeFrom.preserveOpacity=!0),s.snapshot&&(n.snapshot=s.snapshot,n.snapshot.latestValues=s.animationValues||s.latestValues),n.root&&n.root.isUpdating&&(n.isLayoutDirty=!0);const{crossfade:a}=n.options;a===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(n=>{const{options:r,resumingFrom:s}=n;r.onExitComplete&&r.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(n=>{n.instance&&n.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function hh(t,n,r){let s="";const a=t.x.translate/n.x,u=t.y.translate/n.y;if((a||u)&&(s=`translate3d(${a}px, ${u}px, 0) `),(n.x!==1||n.y!==1)&&(s+=`scale(${1/n.x}, ${1/n.y}) `),r){const{rotate:h,rotateX:m,rotateY:g}=r;h&&(s+=`rotate(${h}deg) `),m&&(s+=`rotateX(${m}deg) `),g&&(s+=`rotateY(${g}deg) `)}const l=t.x.scale*n.x,f=t.y.scale*n.y;return(l!==1||f!==1)&&(s+=`scale(${l}, ${f})`),s||"none"}const hT=(t,n)=>t.depth-n.depth;class dT{constructor(){this.children=[],this.isDirty=!1}add(n){El(this.children,n),this.isDirty=!0}remove(n){_l(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(hT),this.isDirty=!1,this.children.forEach(n)}}function pT(t,n){const r=performance.now(),s=({timestamp:a})=>{const u=a-r;u>=n&&(Qe(s),t(u-n))};return pt.read(s,!0),()=>Qe(s)}function mT(t){window.MotionDebug&&window.MotionDebug.record(t)}function gT(t){return t instanceof SVGElement&&t.tagName!=="svg"}function vT(t,n,r){const s=Qt(t)?t:dr(t);return s.start(wl("",s,n,r)),s.animation}const dh=["","X","Y","Z"],yT={visibility:"hidden"},ph=1e3;let xT=0;const Nn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Dp({attachResizeListener:t,defaultParent:n,measureScroll:r,checkIsScrollRoot:s,resetTransform:a}){return class{constructor(l={},f=n==null?void 0:n()){this.id=xT++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Nn.totalNodes=Nn.resolvedTargetDeltas=Nn.recalculatedProjection=0,this.nodes.forEach(ET),this.nodes.forEach(RT),this.nodes.forEach(CT),this.nodes.forEach(_T),mT(Nn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new dT)}addEventListener(l,f){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Sl),this.eventHandlers.get(l).add(f)}notifyListeners(l,...f){const h=this.eventHandlers.get(l);h&&h.notify(...f)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,f=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=gT(l),this.instance=l;const{layoutId:h,layout:m,visualElement:g}=this.options;if(g&&!g.current&&g.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),f&&(m||h)&&(this.isLayoutDirty=!0),t){let p;const b=()=>this.root.updateBlockedByResize=!1;t(l,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=pT(b,250),as.hasAnimatedSinceResize&&(as.hasAnimatedSinceResize=!1,this.nodes.forEach(gh))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||m)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:b,hasRelativeTargetChanged:w,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const R=this.options.transition||g.getDefaultTransition()||IT,{onLayoutAnimationStart:C,onLayoutAnimationComplete:M}=g.getProps(),B=!this.targetLayout||!Ip(this.targetLayout,S)||w,O=!b&&w;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||O||b&&(B||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,O);const N={...bl(R,"layout"),onPlay:C,onComplete:M};(g.shouldReduceMotion||this.options.layoutRoot)&&(N.delay=0,N.type=!1),this.startAnimation(N)}else b||gh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Qe(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(PT),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const p=this.path[g];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:f,layout:h}=this.options;if(f===void 0&&!h)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(mh);return}this.isUpdating||this.nodes.forEach(AT),this.isUpdating=!1,this.nodes.forEach(TT),this.nodes.forEach(bT),this.nodes.forEach(wT),this.clearAllSnapshots();const f=performance.now();jt.delta=En(0,1e3/60,f-jt.timestamp),jt.timestamp=f,jt.isProcessing=!0,pa.update.process(jt),pa.preRender.process(jt),pa.render.process(jt),jt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(ST),this.sharedNodes.forEach(OT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,pt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){pt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let h=0;h<this.path.length;h++)this.path[h].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ct(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let f=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(f=!1),f&&(this.scroll={animationId:this.root.animationId,phase:l,isRoot:s(this.instance),offset:r(this.instance)})}resetTransform(){if(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform,f=this.projectionDelta&&!Mp(this.projectionDelta),h=this.getTransformTemplate(),m=h?h(this.latestValues,""):void 0,g=m!==this.prevTransformTemplateValue;l&&(f||Fn(this.latestValues)||g)&&(a(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const f=this.measurePageBox();let h=this.removeElementScroll(f);return l&&(h=this.removeTransform(h)),DT(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:l}=this.options;if(!l)return Ct();const f=l.measureViewportBox(),{scroll:h}=this.root;return h&&(yn(f.x,h.offset.x),yn(f.y,h.offset.y)),f}removeElementScroll(l){const f=Ct();ye(f,l);for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:g,options:p}=m;if(m!==this.root&&g&&p.layoutScroll){if(g.isRoot){ye(f,l);const{scroll:b}=this.root;b&&(yn(f.x,-b.offset.x),yn(f.y,-b.offset.y))}yn(f.x,g.offset.x),yn(f.y,g.offset.y)}}return f}applyTransform(l,f=!1){const h=Ct();ye(h,l);for(let m=0;m<this.path.length;m++){const g=this.path[m];!f&&g.options.layoutScroll&&g.scroll&&g!==g.root&&fr(h,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),Fn(g.latestValues)&&fr(h,g.latestValues)}return Fn(this.latestValues)&&fr(h,this.latestValues),h}removeTransform(l){const f=Ct();ye(f,l);for(let h=0;h<this.path.length;h++){const m=this.path[h];if(!m.instance||!Fn(m.latestValues))continue;Ha(m.latestValues)&&m.updateSnapshot();const g=Ct(),p=m.measurePageBox();ye(g,p),uh(f,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,g)}return Fn(this.latestValues)&&uh(f,this.latestValues),f}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==jt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var f;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(l||m&&this.isSharedProjectionDirty||this.isProjectionDirty||!((f=this.parent)===null||f===void 0)&&f.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:p,layoutId:b}=this.options;if(!(!this.layout||!(p||b))){if(this.resolvedRelativeTargetAt=jt.timestamp,!this.targetDelta&&!this.relativeTarget){const w=this.getClosestProjectingParent();w&&w.layout&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ct(),this.relativeTargetOrigin=Ct(),qr(this.relativeTargetOrigin,this.layout.layoutBox,w.layout.layoutBox),ye(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ct(),this.targetWithTransforms=Ct()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),VA(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ye(this.target,this.layout.layoutBox),Tp(this.target,this.targetDelta)):ye(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const w=this.getClosestProjectingParent();w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ct(),this.relativeTargetOrigin=Ct(),qr(this.relativeTargetOrigin,this.target,w.target),ye(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Nn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ha(this.parent.latestValues)||Ap(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var l;const f=this.getLead(),h=!!this.resumingFrom||this!==f;let m=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===jt.timestamp&&(m=!1),m)return;const{layout:g,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||p))return;ye(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,w=this.treeScale.y;HA(this.layoutCorrected,this.treeScale,this.path,h),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox);const{target:S}=f;if(!S){this.projectionTransform&&(this.projectionDelta=cr(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=cr(),this.projectionDeltaWithTransform=cr());const R=this.projectionTransform;Gr(this.projectionDelta,this.layoutCorrected,S,this.latestValues),this.projectionTransform=hh(this.projectionDelta,this.treeScale),(this.projectionTransform!==R||this.treeScale.x!==b||this.treeScale.y!==w)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S)),Nn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(l,f=!1){const h=this.snapshot,m=h?h.latestValues:{},g={...this.latestValues},p=cr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const b=Ct(),w=h?h.source:void 0,S=this.layout?this.layout.source:void 0,R=w!==S,C=this.getStack(),M=!C||C.members.length<=1,B=!!(R&&!M&&this.options.crossfade===!0&&!this.path.some(MT));this.animationProgress=0;let O;this.mixTargetDelta=N=>{const k=N/1e3;vh(p.x,l.x,k),vh(p.y,l.y,k),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qr(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),LT(this.relativeTarget,this.relativeTargetOrigin,b,k),O&&cT(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=Ct()),ye(O,this.relativeTarget)),R&&(this.animationValues=g,iT(g,m,this.latestValues,k,B,M)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Qe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=pt.update(()=>{as.hasAnimatedSinceResize=!0,this.currentAnimation=vT(0,ph,{...l,onUpdate:f=>{this.mixTargetDelta(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ph),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:f,target:h,layout:m,latestValues:g}=l;if(!(!f||!h||!m)){if(this!==l&&this.layout&&m&&Vp(this.options.animationType,this.layout.layoutBox,m.layoutBox)){h=this.target||Ct();const p=ae(this.layout.layoutBox.x);h.x.min=l.target.x.min,h.x.max=h.x.min+p;const b=ae(this.layout.layoutBox.y);h.y.min=l.target.y.min,h.y.max=h.y.min+b}ye(f,h),fr(f,g),Gr(this.projectionDeltaWithTransform,this.layoutCorrected,f,g)}}registerSharedNode(l,f){this.sharedNodes.has(l)||this.sharedNodes.set(l,new fT),this.sharedNodes.get(l).add(f);const m=f.options.initialPromotionConfig;f.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(f):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:f}=this.options;return f?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:f}=this.options;return f?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:f,preserveFollowOpacity:h}={}){const m=this.getStack();m&&m.promote(this,h),l&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetRotation(){const{visualElement:l}=this.options;if(!l)return;let f=!1;const{latestValues:h}=l;if((h.rotate||h.rotateX||h.rotateY||h.rotateZ)&&(f=!0),!f)return;const m={};for(let g=0;g<dh.length;g++){const p="rotate"+dh[g];h[p]&&(m[p]=h[p],l.setStaticValue(p,0))}l.render();for(const g in m)l.setStaticValue(g,m[g]);l.scheduleRender()}getProjectionStyles(l){var f,h;if(!this.instance||this.isSVG)return;if(!this.isVisible)return yT;const m={visibility:""},g=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=os(l==null?void 0:l.pointerEvents)||"",m.transform=g?g(this.latestValues,""):"none",m;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const R={};return this.options.layoutId&&(R.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,R.pointerEvents=os(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Fn(this.latestValues)&&(R.transform=g?g({},""):"none",this.hasProjected=!1),R}const b=p.animationValues||p.latestValues;this.applyTransformsToTarget(),m.transform=hh(this.projectionDeltaWithTransform,this.treeScale,b),g&&(m.transform=g(b,m.transform));const{x:w,y:S}=this.projectionDelta;m.transformOrigin=`${w.origin*100}% ${S.origin*100}% 0`,p.animationValues?m.opacity=p===this?(h=(f=b.opacity)!==null&&f!==void 0?f:this.latestValues.opacity)!==null&&h!==void 0?h:1:this.preserveOpacity?this.latestValues.opacity:b.opacityExit:m.opacity=p===this?b.opacity!==void 0?b.opacity:"":b.opacityExit!==void 0?b.opacityExit:0;for(const R in hs){if(b[R]===void 0)continue;const{correct:C,applyTo:M}=hs[R],B=m.transform==="none"?b[R]:C(b[R],p);if(M){const O=M.length;for(let N=0;N<O;N++)m[M[N]]=B}else m[R]=B}return this.options.layoutId&&(m.pointerEvents=p===this?os(l==null?void 0:l.pointerEvents)||"":"none"),m}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var f;return(f=l.currentAnimation)===null||f===void 0?void 0:f.stop()}),this.root.nodes.forEach(mh),this.root.sharedNodes.clear()}}}function bT(t){t.updateLayout()}function wT(t){var n;const r=((n=t.resumeFrom)===null||n===void 0?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:a}=t.layout,{animationType:u}=t.options,l=r.source!==t.layout.source;u==="size"?xe(p=>{const b=l?r.measuredBox[p]:r.layoutBox[p],w=ae(b);b.min=s[p].min,b.max=b.min+w}):Vp(u,r.layoutBox,s)&&xe(p=>{const b=l?r.measuredBox[p]:r.layoutBox[p],w=ae(s[p]);b.max=b.min+w,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[p].max=t.relativeTarget[p].min+w)});const f=cr();Gr(f,s,r.layoutBox);const h=cr();l?Gr(h,t.applyTransform(a,!0),r.measuredBox):Gr(h,s,r.layoutBox);const m=!Mp(f);let g=!1;if(!t.resumeFrom){const p=t.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:b,layout:w}=p;if(b&&w){const S=Ct();qr(S,r.layoutBox,b.layoutBox);const R=Ct();qr(R,s,w.layoutBox),Ip(S,R)||(g=!0),p.options.layoutRoot&&(t.relativeTarget=R,t.relativeTargetOrigin=S,t.relativeParent=p)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:r,delta:h,layoutDelta:f,hasLayoutChanged:m,hasRelativeTargetChanged:g})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function ET(t){Nn.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function _T(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ST(t){t.clearSnapshot()}function mh(t){t.clearMeasurements()}function AT(t){t.isLayoutDirty=!1}function TT(t){const{visualElement:n}=t.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),t.resetTransform()}function gh(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function RT(t){t.resolveTargetDelta()}function CT(t){t.calcProjection()}function PT(t){t.resetRotation()}function OT(t){t.removeLeadSnapshot()}function vh(t,n,r){t.translate=bt(n.translate,0,r),t.scale=bt(n.scale,1,r),t.origin=n.origin,t.originPoint=n.originPoint}function yh(t,n,r,s){t.min=bt(n.min,r.min,s),t.max=bt(n.max,r.max,s)}function LT(t,n,r,s){yh(t.x,n.x,r.x,s),yh(t.y,n.y,r.y,s)}function MT(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const IT={duration:.45,ease:[.4,0,.1,1]},xh=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),bh=xh("applewebkit/")&&!xh("chrome/")?Math.round:Et;function wh(t){t.min=bh(t.min),t.max=bh(t.max)}function DT(t){wh(t.x),wh(t.y)}function Vp(t,n,r){return t==="position"||t==="preserve-aspect"&&!Ua(fh(n),fh(r),.2)}const VT=Dp({attachResizeListener:(t,n)=>Xe(t,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Aa={current:void 0},Bp=Dp({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Aa.current){const t=new VT({});t.mount(window),t.setOptions({layoutScroll:!0}),Aa.current=t}return Aa.current},resetTransform:(t,n)=>{t.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),BT={pan:{Feature:ZA},drag:{Feature:JA,ProjectionNode:Bp,MeasureLayout:Pp}},FT=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function NT(t){const n=FT.exec(t);if(!n)return[,];const[,r,s]=n;return[r,s]}function Ga(t,n,r=1){const[s,a]=NT(t);if(!s)return;const u=window.getComputedStyle(n).getPropertyValue(s);if(u){const l=u.trim();return yp(l)?parseFloat(l):l}else return Va(a)?Ga(a,n,r+1):a}function kT(t,{...n},r){const s=t.current;if(!(s instanceof Element))return{target:n,transitionEnd:r};r&&(r={...r}),t.values.forEach(a=>{const u=a.get();if(!Va(u))return;const l=Ga(u,s);l&&a.set(l)});for(const a in n){const u=n[a];if(!Va(u))continue;const l=Ga(u,s);l&&(n[a]=l,r||(r={}),r[a]===void 0&&(r[a]=u))}return{target:n,transitionEnd:r}}const WT=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Fp=t=>WT.has(t),jT=t=>Object.keys(t).some(Fp),Eh=t=>t===Un||t===Y,_h=(t,n)=>parseFloat(t.split(", ")[n]),Sh=(t,n)=>(r,{transform:s})=>{if(s==="none"||!s)return 0;const a=s.match(/^matrix3d\((.+)\)$/);if(a)return _h(a[1],n);{const u=s.match(/^matrix\((.+)\)$/);return u?_h(u[1],t):0}},UT=new Set(["x","y","z"]),zT=ei.filter(t=>!UT.has(t));function HT(t){const n=[];return zT.forEach(r=>{const s=t.getValue(r);s!==void 0&&(n.push([r,s.get()]),s.set(r.startsWith("scale")?1:0))}),n.length&&t.render(),n}const pr={width:({x:t},{paddingLeft:n="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(n)-parseFloat(r),height:({y:t},{paddingTop:n="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(n)-parseFloat(r),top:(t,{top:n})=>parseFloat(n),left:(t,{left:n})=>parseFloat(n),bottom:({y:t},{top:n})=>parseFloat(n)+(t.max-t.min),right:({x:t},{left:n})=>parseFloat(n)+(t.max-t.min),x:Sh(4,13),y:Sh(5,14)};pr.translateX=pr.x;pr.translateY=pr.y;const $T=(t,n,r)=>{const s=n.measureViewportBox(),a=n.current,u=getComputedStyle(a),{display:l}=u,f={};l==="none"&&n.setStaticValue("display",t.display||"block"),r.forEach(m=>{f[m]=pr[m](s,u)}),n.render();const h=n.measureViewportBox();return r.forEach(m=>{const g=n.getValue(m);g&&g.jump(f[m]),t[m]=pr[m](h,u)}),t},GT=(t,n,r={},s={})=>{n={...n},s={...s};const a=Object.keys(n).filter(Fp);let u=[],l=!1;const f=[];if(a.forEach(h=>{const m=t.getValue(h);if(!t.hasValue(h))return;let g=r[h],p=kr(g);const b=n[h];let w;if(ps(b)){const S=b.length,R=b[0]===null?1:0;g=b[R],p=kr(g);for(let C=R;C<S&&b[C]!==null;C++)w?ml(kr(b[C])===w):w=kr(b[C])}else w=kr(b);if(p!==w)if(Eh(p)&&Eh(w)){const S=m.get();typeof S=="string"&&m.set(parseFloat(S)),typeof b=="string"?n[h]=parseFloat(b):Array.isArray(b)&&w===Y&&(n[h]=b.map(parseFloat))}else p!=null&&p.transform&&(w!=null&&w.transform)&&(g===0||b===0)?g===0?m.set(w.transform(g)):n[h]=p.transform(b):(l||(u=HT(t),l=!0),f.push(h),s[h]=s[h]!==void 0?s[h]:n[h],m.jump(b))}),f.length){const h=f.indexOf("height")>=0?window.pageYOffset:null,m=$T(n,t,f);return u.length&&u.forEach(([g,p])=>{t.getValue(g).set(p)}),t.render(),Os&&h!==null&&window.scrollTo({top:h}),{target:m,transitionEnd:s}}else return{target:n,transitionEnd:s}};function qT(t,n,r,s){return jT(n)?GT(t,n,r,s):{target:n,transitionEnd:s}}const KT=(t,n,r,s)=>{const a=kT(t,n,s);return n=a.target,s=a.transitionEnd,qT(t,n,r,s)},qa={current:null},Np={current:!1};function XT(){if(Np.current=!0,!!Os)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),n=()=>qa.current=t.matches;t.addListener(n),n()}else qa.current=!1}function YT(t,n,r){const{willChange:s}=n;for(const a in n){const u=n[a],l=r[a];if(Qt(u))t.addValue(a,u),ys(s)&&s.add(a);else if(Qt(l))t.addValue(a,dr(u,{owner:t})),ys(s)&&s.remove(a);else if(l!==u)if(t.hasValue(a)){const f=t.getValue(a);!f.hasAnimated&&f.set(u)}else{const f=t.getStaticValue(a);t.addValue(a,dr(f!==void 0?f:u,{owner:t}))}}for(const a in r)n[a]===void 0&&t.removeValue(a);return n}const Ah=new WeakMap,kp=Object.keys(Yr),JT=kp.length,Th=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ZT=al.length;class QT{constructor({parent:n,props:r,presenceContext:s,reducedMotionConfig:a,visualState:u},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>pt.render(this.render,!1,!0);const{latestValues:f,renderState:h}=u;this.latestValues=f,this.baseTarget={...f},this.initialValues=r.initial?{...f}:{},this.renderState=h,this.parent=n,this.props=r,this.presenceContext=s,this.depth=n?n.depth+1:0,this.reducedMotionConfig=a,this.options=l,this.isControllingVariants=Ms(r),this.isVariantNode=_d(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(r,{});for(const p in g){const b=g[p];f[p]!==void 0&&Qt(b)&&(b.set(f[p],!1),ys(m)&&m.add(p))}}scrapeMotionValuesFromProps(n,r){return{}}mount(n){this.current=n,Ah.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,s)=>this.bindToMotionValue(s,r)),Np.current||XT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:qa.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ah.delete(this.current),this.projection&&this.projection.unmount(),Qe(this.notifyUpdate),Qe(this.render),this.valueSubscriptions.forEach(n=>n()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const n in this.events)this.events[n].clear();for(const n in this.features)this.features[n].unmount();this.current=null}bindToMotionValue(n,r){const s=jn.has(n),a=r.on("change",l=>{this.latestValues[n]=l,this.props.onUpdate&&pt.update(this.notifyUpdate,!1,!0),s&&this.projection&&(this.projection.isTransformDirty=!0)}),u=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(n,()=>{a(),u()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}loadFeatures({children:n,...r},s,a,u){let l,f;for(let h=0;h<JT;h++){const m=kp[h],{isEnabled:g,Feature:p,ProjectionNode:b,MeasureLayout:w}=Yr[m];b&&(l=b),g(r)&&(!this.features[m]&&p&&(this.features[m]=new p(this)),w&&(f=w))}if((this.type==="html"||this.type==="svg")&&!this.projection&&l){this.projection=new l(this.latestValues,this.parent&&this.parent.projection);const{layoutId:h,layout:m,drag:g,dragConstraints:p,layoutScroll:b,layoutRoot:w}=r;this.projection.setOptions({layoutId:h,layout:m,alwaysMeasureLayout:!!g||p&&lr(p),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof m=="string"?m:"both",initialPromotionConfig:u,layoutScroll:b,layoutRoot:w})}return f}updateFeatures(){for(const n in this.features){const r=this.features[n];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ct()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,r){this.latestValues[n]=r}makeTargetAnimatable(n,r=!0){return this.makeTargetAnimatableFromInstance(n,this.props,r)}update(n,r){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let s=0;s<Th.length;s++){const a=Th[s];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const u=n["on"+a];u&&(this.propEventSubscriptions[a]=this.on(a,u))}this.prevMotionValues=YT(this,this.scrapeMotionValuesFromProps(n,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(n=!1){if(n)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const s=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(s.initial=this.props.initial),s}const r={};for(let s=0;s<ZT;s++){const a=al[s],u=this.props[a];(Xr(u)||u===!1)&&(r[a]=u)}return r}addVariantChild(n){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(n),()=>r.variantChildren.delete(n)}addValue(n,r){r!==this.values.get(n)&&(this.removeValue(n),this.bindToMotionValue(n,r)),this.values.set(n,r),this.latestValues[n]=r.get()}removeValue(n){this.values.delete(n);const r=this.valueSubscriptions.get(n);r&&(r(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,r){if(this.props.values&&this.props.values[n])return this.props.values[n];let s=this.values.get(n);return s===void 0&&r!==void 0&&(s=dr(r,{owner:this}),this.addValue(n,s)),s}readValue(n){var r;return this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:(r=this.getBaseTargetFromProps(this.props,n))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,n,this.options)}setBaseTarget(n,r){this.baseTarget[n]=r}getBaseTarget(n){var r;const{initial:s}=this.props,a=typeof s=="string"||typeof s=="object"?(r=pl(this.props,s))===null||r===void 0?void 0:r[n]:void 0;if(s&&a!==void 0)return a;const u=this.getBaseTargetFromProps(this.props,n);return u!==void 0&&!Qt(u)?u:this.initialValues[n]!==void 0&&a===void 0?void 0:this.baseTarget[n]}on(n,r){return this.events[n]||(this.events[n]=new Sl),this.events[n].add(r)}notify(n,...r){this.events[n]&&this.events[n].notify(...r)}}class Wp extends QT{sortInstanceNodePosition(n,r){return n.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(n,r){return n.style?n.style[r]:void 0}removeValueFromRenderState(n,{vars:r,style:s}){delete r[n],delete s[n]}makeTargetAnimatableFromInstance({transition:n,transitionEnd:r,...s},{transformValues:a},u){let l=gA(s,n||{},this);if(a&&(r&&(r=a(r)),s&&(s=a(s)),l&&(l=a(l))),u){pA(this,s,l);const f=KT(this,s,l,r);r=f.transitionEnd,s=f.target}return{transition:n,transitionEnd:r,...s}}}function tR(t){return window.getComputedStyle(t)}class eR extends Wp{constructor(){super(...arguments),this.type="html"}readValueFromInstance(n,r){if(jn.has(r)){const s=xl(r);return s&&s.default||0}else{const s=tR(n),a=(Cd(r)?s.getPropertyValue(r):s[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(n,{transformPagePoint:r}){return Rp(n,r)}build(n,r,s,a){ul(n,r,s,a.transformTemplate)}scrapeMotionValuesFromProps(n,r){return dl(n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;Qt(n)&&(this.childSubscription=n.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(n,r,s,a){Dd(n,r,s,a)}}class nR extends Wp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(n,r){return n[r]}readValueFromInstance(n,r){if(jn.has(r)){const s=xl(r);return s&&s.default||0}return r=Vd.has(r)?r:sl(r),n.getAttribute(r)}measureInstanceViewportBox(){return Ct()}scrapeMotionValuesFromProps(n,r){return Fd(n,r)}build(n,r,s,a){fl(n,r,s,this.isSVGTag,a.transformTemplate)}renderInstance(n,r,s,a){Bd(n,r,s,a)}mount(n){this.isSVGTag=hl(n.tagName),super.mount(n)}}const rR=(t,n)=>ll(t)?new nR(n,{enableHardwareAcceleration:!1}):new eR(n,{enableHardwareAcceleration:!0}),iR={layout:{ProjectionNode:Bp,MeasureLayout:Pp}},sR={...LA,...J_,...BT,...iR},jp=s_((t,n)=>N_(t,n,sR,rR));/**
2
7
  * @remix-run/router v1.14.2
3
8
  *
4
9
  * Copyright (c) Remix Software Inc.
@@ -7,7 +12,7 @@
7
12
  * LICENSE.md file in the root directory of this source tree.
8
13
  *
9
14
  * @license MIT
10
- */function fe(){return fe=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},fe.apply(this,arguments)}var Mt;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Mt||(Mt={}));const Fr="popstate";function Fa(t){t===void 0&&(t={});function e(r,i){let{pathname:o,search:s,hash:a}=r.location;return Fn("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:_e(i)}return Ba(e,n,null,t)}function tt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Na(){return Math.random().toString(36).substr(2,8)}function Nr(t,e){return{usr:t.state,key:t.key,idx:e}}function Fn(t,e,n,r){return n===void 0&&(n=null),fe({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Je(e):e,{state:n,key:e&&e.key||r||Na()})}function _e(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Je(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function Ba(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Mt.Pop,l=null,c=f();c==null&&(c=0,s.replaceState(fe({},s.state,{idx:c}),""));function f(){return(s.state||{idx:null}).idx}function u(){a=Mt.Pop;let y=f(),x=y==null?null:y-c;c=y,l&&l({action:a,location:g.location,delta:x})}function h(y,x){a=Mt.Push;let w=Fn(g.location,y,x);n&&n(w,y),c=f()+1;let v=Nr(w,c),E=g.createHref(w);try{s.pushState(v,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(E)}o&&l&&l({action:a,location:g.location,delta:1})}function d(y,x){a=Mt.Replace;let w=Fn(g.location,y,x);n&&n(w,y),c=f();let v=Nr(w,c),E=g.createHref(w);s.replaceState(v,"",E),o&&l&&l({action:a,location:g.location,delta:0})}function m(y){let x=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof y=="string"?y:_e(y);return tt(x,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,x)}let g={get action(){return a},get location(){return t(i,s)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Fr,u),l=y,()=>{i.removeEventListener(Fr,u),l=null}},createHref(y){return e(i,y)},createURL:m,encodeLocation(y){let x=m(y);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:h,replace:d,go(y){return s.go(y)}};return g}var Br;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Br||(Br={}));function xs(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 Ia(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?Je(t):t;return{pathname:n?n.startsWith("/")?n:Wa(n,e):e,search:za(r),hash:Ha(i)}}function Wa(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function gn(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 Ua(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function bs(t,e){let n=Ua(t);return e?n.map((r,i)=>i===t.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ws(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=Je(t):(i=fe({},t),tt(!i.pathname||!i.pathname.includes("?"),gn("?","pathname","search",i)),tt(!i.pathname||!i.pathname.includes("#"),gn("#","pathname","hash",i)),tt(!i.search||!i.search.includes("#"),gn("#","search","hash",i)));let o=t===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let u=e.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),u-=1;i.pathname=h.join("/")}a=u>=0?e[u]:"/"}let l=Ia(i,a),c=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const Es=t=>t.join("/").replace(/\/\/+/g,"/"),za=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Ha=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Ss=["post","put","patch","delete"];new Set(Ss);const $a=["get",...Ss];new Set($a);/**
15
+ */function Zr(){return Zr=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Zr.apply(this,arguments)}var Wn;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Wn||(Wn={}));const Rh="popstate";function oR(t){t===void 0&&(t={});function n(s,a){let{pathname:u,search:l,hash:f}=s.location;return Ka("",{pathname:u,search:l,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(s,a){return typeof a=="string"?a:bs(a)}return lR(n,r,null,t)}function Ce(t,n){if(t===!1||t===null||typeof t>"u")throw new Error(n)}function aR(){return Math.random().toString(36).substr(2,8)}function Ch(t,n){return{usr:t.state,key:t.key,idx:n}}function Ka(t,n,r,s){return r===void 0&&(r=null),Zr({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof n=="string"?Bs(n):n,{state:r,key:n&&n.key||s||aR()})}function bs(t){let{pathname:n="/",search:r="",hash:s=""}=t;return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function Bs(t){let n={};if(t){let r=t.indexOf("#");r>=0&&(n.hash=t.substr(r),t=t.substr(0,r));let s=t.indexOf("?");s>=0&&(n.search=t.substr(s),t=t.substr(0,s)),t&&(n.pathname=t)}return n}function lR(t,n,r,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:u=!1}=s,l=a.history,f=Wn.Pop,h=null,m=g();m==null&&(m=0,l.replaceState(Zr({},l.state,{idx:m}),""));function g(){return(l.state||{idx:null}).idx}function p(){f=Wn.Pop;let C=g(),M=C==null?null:C-m;m=C,h&&h({action:f,location:R.location,delta:M})}function b(C,M){f=Wn.Push;let B=Ka(R.location,C,M);r&&r(B,C),m=g()+1;let O=Ch(B,m),N=R.createHref(B);try{l.pushState(O,"",N)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;a.location.assign(N)}u&&h&&h({action:f,location:R.location,delta:1})}function w(C,M){f=Wn.Replace;let B=Ka(R.location,C,M);r&&r(B,C),m=g();let O=Ch(B,m),N=R.createHref(B);l.replaceState(O,"",N),u&&h&&h({action:f,location:R.location,delta:0})}function S(C){let M=a.location.origin!=="null"?a.location.origin:a.location.href,B=typeof C=="string"?C:bs(C);return Ce(M,"No window.location.(origin|href) available to create URL for href: "+B),new URL(B,M)}let R={get action(){return f},get location(){return t(a,l)},listen(C){if(h)throw new Error("A history only accepts one active listener");return a.addEventListener(Rh,p),h=C,()=>{a.removeEventListener(Rh,p),h=null}},createHref(C){return n(a,C)},createURL:S,encodeLocation(C){let M=S(C);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:b,replace:w,go(C){return l.go(C)}};return R}var Ph;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Ph||(Ph={}));function Up(t,n){if(n==="/")return t;if(!t.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,s=t.charAt(r);return s&&s!=="/"?null:t.slice(r)||"/"}function uR(t,n){n===void 0&&(n="/");let{pathname:r,search:s="",hash:a=""}=typeof t=="string"?Bs(t):t;return{pathname:r?r.startsWith("/")?r:cR(r,n):n,search:hR(s),hash:dR(a)}}function cR(t,n){let r=n.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Ta(t,n,r,s){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function fR(t){return t.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function zp(t,n){let r=fR(t);return n?r.map((s,a)=>a===t.length-1?s.pathname:s.pathnameBase):r.map(s=>s.pathnameBase)}function Hp(t,n,r,s){s===void 0&&(s=!1);let a;typeof t=="string"?a=Bs(t):(a=Zr({},t),Ce(!a.pathname||!a.pathname.includes("?"),Ta("?","pathname","search",a)),Ce(!a.pathname||!a.pathname.includes("#"),Ta("#","pathname","hash",a)),Ce(!a.search||!a.search.includes("#"),Ta("#","search","hash",a)));let u=t===""||a.pathname==="",l=u?"/":a.pathname,f;if(l==null)f=r;else{let p=n.length-1;if(!s&&l.startsWith("..")){let b=l.split("/");for(;b[0]==="..";)b.shift(),p-=1;a.pathname=b.join("/")}f=p>=0?n[p]:"/"}let h=uR(a,f),m=l&&l!=="/"&&l.endsWith("/"),g=(u||l===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(m||g)&&(h.pathname+="/"),h}const $p=t=>t.join("/").replace(/\/\/+/g,"/"),hR=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,dR=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Gp=["post","put","patch","delete"];new Set(Gp);const pR=["get",...Gp];new Set(pR);/**
11
16
  * React Router v6.21.3
12
17
  *
13
18
  * Copyright (c) Remix Software Inc.
@@ -16,7 +21,7 @@
16
21
  * LICENSE.md file in the root directory of this source tree.
17
22
  *
18
23
  * @license MIT
19
- */function Fe(){return Fe=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},Fe.apply(this,arguments)}const Ts=p.reactExports.createContext(null),Jt=p.reactExports.createContext(null),sr=p.reactExports.createContext(null),Ze=p.reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});function qa(t,e){let{relative:n}=e===void 0?{}:e;Qe()||tt(!1);let{basename:r,navigator:i}=p.reactExports.useContext(Jt),{hash:o,pathname:s,search:a}=As(t,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:Es([r,s])),i.createHref({pathname:l,search:a,hash:o})}function Qe(){return p.reactExports.useContext(sr)!=null}function tn(){return Qe()||tt(!1),p.reactExports.useContext(sr).location}function Ps(t){p.reactExports.useContext(Jt).static||p.reactExports.useLayoutEffect(t)}function Ga(){let{isDataRoute:t}=p.reactExports.useContext(Ze);return t?Za():Xa()}function Xa(){Qe()||tt(!1);let t=p.reactExports.useContext(Ts),{basename:e,future:n,navigator:r}=p.reactExports.useContext(Jt),{matches:i}=p.reactExports.useContext(Ze),{pathname:o}=tn(),s=JSON.stringify(bs(i,n.v7_relativeSplatPath)),a=p.reactExports.useRef(!1);return Ps(()=>{a.current=!0}),p.reactExports.useCallback(function(c,f){if(f===void 0&&(f={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let u=ws(c,JSON.parse(s),o,f.relative==="path");t==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:Es([e,u.pathname])),(f.replace?r.replace:r.push)(u,f.state,f)},[e,r,s,o,t])}function As(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=p.reactExports.useContext(Jt),{matches:i}=p.reactExports.useContext(Ze),{pathname:o}=tn(),s=JSON.stringify(bs(i,r.v7_relativeSplatPath));return p.reactExports.useMemo(()=>ws(t,JSON.parse(s),o,n==="path"),[t,s,o,n])}var Cs=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Cs||{}),Rs=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Rs||{});function Ka(t){let e=p.reactExports.useContext(Ts);return e||tt(!1),e}function Ya(t){let e=p.reactExports.useContext(Ze);return e||tt(!1),e}function Ja(t){let e=Ya(),n=e.matches[e.matches.length-1];return n.route.id||tt(!1),n.route.id}function Za(){let{router:t}=Ka(Cs.UseNavigateStable),e=Ja(Rs.UseNavigateStable),n=p.reactExports.useRef(!1);return Ps(()=>{n.current=!0}),p.reactExports.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,Fe({fromRouteId:e},o)))},[t,e])}function Qa(t){let{basename:e="/",children:n=null,location:r,navigationType:i=Mt.Pop,navigator:o,static:s=!1,future:a}=t;Qe()&&tt(!1);let l=e.replace(/^\/*/,"/"),c=p.reactExports.useMemo(()=>({basename:l,navigator:o,static:s,future:Fe({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=Je(r));let{pathname:f="/",search:u="",hash:h="",state:d=null,key:m="default"}=r,g=p.reactExports.useMemo(()=>{let y=xs(f,l);return y==null?null:{location:{pathname:y,search:u,hash:h,state:d,key:m},navigationType:i}},[l,f,u,h,d,m,i]);return g==null?null:p.reactExports.createElement(Jt.Provider,{value:c},p.reactExports.createElement(sr.Provider,{children:n,value:g}))}new Promise(()=>{});/**
24
+ */function ws(){return ws=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},ws.apply(this,arguments)}const qp=_.reactExports.createContext(null),gr=_.reactExports.createContext(null),Al=_.reactExports.createContext(null),Fs=_.reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});function mR(t,n){let{relative:r}=n===void 0?{}:n;Ns()||Ce(!1);let{basename:s,navigator:a}=_.reactExports.useContext(gr),{hash:u,pathname:l,search:f}=Xp(t,{relative:r}),h=l;return s!=="/"&&(h=l==="/"?s:$p([s,l])),a.createHref({pathname:h,search:f,hash:u})}function Ns(){return _.reactExports.useContext(Al)!=null}function ks(){return Ns()||Ce(!1),_.reactExports.useContext(Al).location}function Kp(t){_.reactExports.useContext(gr).static||_.reactExports.useLayoutEffect(t)}function gR(){let{isDataRoute:t}=_.reactExports.useContext(Fs);return t?wR():vR()}function vR(){Ns()||Ce(!1);let t=_.reactExports.useContext(qp),{basename:n,future:r,navigator:s}=_.reactExports.useContext(gr),{matches:a}=_.reactExports.useContext(Fs),{pathname:u}=ks(),l=JSON.stringify(zp(a,r.v7_relativeSplatPath)),f=_.reactExports.useRef(!1);return Kp(()=>{f.current=!0}),_.reactExports.useCallback(function(m,g){if(g===void 0&&(g={}),!f.current)return;if(typeof m=="number"){s.go(m);return}let p=Hp(m,JSON.parse(l),u,g.relative==="path");t==null&&n!=="/"&&(p.pathname=p.pathname==="/"?n:$p([n,p.pathname])),(g.replace?s.replace:s.push)(p,g.state,g)},[n,s,l,u,t])}function Xp(t,n){let{relative:r}=n===void 0?{}:n,{future:s}=_.reactExports.useContext(gr),{matches:a}=_.reactExports.useContext(Fs),{pathname:u}=ks(),l=JSON.stringify(zp(a,s.v7_relativeSplatPath));return _.reactExports.useMemo(()=>Hp(t,JSON.parse(l),u,r==="path"),[t,l,u,r])}var Yp=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Yp||{}),Jp=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Jp||{});function yR(t){let n=_.reactExports.useContext(qp);return n||Ce(!1),n}function xR(t){let n=_.reactExports.useContext(Fs);return n||Ce(!1),n}function bR(t){let n=xR(),r=n.matches[n.matches.length-1];return r.route.id||Ce(!1),r.route.id}function wR(){let{router:t}=yR(Yp.UseNavigateStable),n=bR(Jp.UseNavigateStable),r=_.reactExports.useRef(!1);return Kp(()=>{r.current=!0}),_.reactExports.useCallback(function(a,u){u===void 0&&(u={}),r.current&&(typeof a=="number"?t.navigate(a):t.navigate(a,ws({fromRouteId:n},u)))},[t,n])}function ER(t){let{basename:n="/",children:r=null,location:s,navigationType:a=Wn.Pop,navigator:u,static:l=!1,future:f}=t;Ns()&&Ce(!1);let h=n.replace(/^\/*/,"/"),m=_.reactExports.useMemo(()=>({basename:h,navigator:u,static:l,future:ws({v7_relativeSplatPath:!1},f)}),[h,f,u,l]);typeof s=="string"&&(s=Bs(s));let{pathname:g="/",search:p="",hash:b="",state:w=null,key:S="default"}=s,R=_.reactExports.useMemo(()=>{let C=Up(g,h);return C==null?null:{location:{pathname:C,search:p,hash:b,state:w,key:S},navigationType:a}},[h,g,p,b,w,S,a]);return R==null?null:_.reactExports.createElement(gr.Provider,{value:m},_.reactExports.createElement(Al.Provider,{children:r,value:R}))}new Promise(()=>{});/**
20
25
  * React Router DOM v6.21.3
21
26
  *
22
27
  * Copyright (c) Remix Software Inc.
@@ -25,14 +30,35 @@
25
30
  * LICENSE.md file in the root directory of this source tree.
26
31
  *
27
32
  * @license MIT
28
- */function Nn(){return Nn=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},Nn.apply(this,arguments)}function tl(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function el(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function nl(t,e){return t.button===0&&(!e||e==="_self")&&!el(t)}const rl=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],il="startTransition",Ir=p.React[il];function sl(t){let{basename:e,children:n,future:r,window:i}=t,o=p.reactExports.useRef();o.current==null&&(o.current=Fa({window:i,v5Compat:!0}));let s=o.current,[a,l]=p.reactExports.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},f=p.reactExports.useCallback(u=>{c&&Ir?Ir(()=>l(u)):l(u)},[l,c]);return p.reactExports.useLayoutEffect(()=>s.listen(f),[s,f]),p.reactExports.createElement(Qa,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const ol=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",al=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ll=p.reactExports.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:f,unstable_viewTransition:u}=e,h=tl(e,rl),{basename:d}=p.reactExports.useContext(Jt),m,g=!1;if(typeof c=="string"&&al.test(c)&&(m=c,ol))try{let v=new URL(window.location.href),E=c.startsWith("//")?new URL(v.protocol+c):new URL(c),S=xs(E.pathname,d);E.origin===v.origin&&S!=null?c=S+E.search+E.hash:g=!0}catch{}let y=qa(c,{relative:i}),x=cl(c,{replace:s,state:a,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:u});function w(v){r&&r(v),v.defaultPrevented||x(v)}return p.reactExports.createElement("a",Nn({},h,{href:m||y,onClick:g||o?r:w,ref:n,target:l}))});var Wr;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Wr||(Wr={}));var Ur;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Ur||(Ur={}));function cl(t,e){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a}=e===void 0?{}:e,l=Ga(),c=tn(),f=As(t,{relative:s});return p.reactExports.useCallback(u=>{if(nl(u,n)){u.preventDefault();let h=r!==void 0?r:_e(c)===_e(f);l(t,{replace:h,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a})}},[c,l,f,r,i,n,t,o,s,a])}var ul=typeof global=="object"&&global&&global.Object===Object&&global;const fl=ul;var hl=typeof self=="object"&&self&&self.Object===Object&&self,dl=fl||hl||Function("return this")();const Os=dl;var pl=Os.Symbol;const Ne=pl;var Vs=Object.prototype,ml=Vs.hasOwnProperty,gl=Vs.toString,te=Ne?Ne.toStringTag:void 0;function yl(t){var e=ml.call(t,te),n=t[te];try{t[te]=void 0;var r=!0}catch{}var i=gl.call(t);return r&&(e?t[te]=n:delete t[te]),i}var vl=Object.prototype,xl=vl.toString;function bl(t){return xl.call(t)}var wl="[object Null]",El="[object Undefined]",zr=Ne?Ne.toStringTag:void 0;function Sl(t){return t==null?t===void 0?El:wl:zr&&zr in Object(t)?yl(t):bl(t)}function Tl(t){return t!=null&&typeof t=="object"}var Pl="[object Symbol]";function Al(t){return typeof t=="symbol"||Tl(t)&&Sl(t)==Pl}var Cl=/\s/;function Rl(t){for(var e=t.length;e--&&Cl.test(t.charAt(e)););return e}var Ol=/^\s+/;function Vl(t){return t&&t.slice(0,Rl(t)+1).replace(Ol,"")}function Be(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Hr=0/0,kl=/^[-+]0x[0-9a-f]+$/i,Ml=/^0b[01]+$/i,jl=/^0o[0-7]+$/i,Ll=parseInt;function $r(t){if(typeof t=="number")return t;if(Al(t))return Hr;if(Be(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Be(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Vl(t);var n=Ml.test(t);return n||jl.test(t)?Ll(t.slice(2),n?2:8):kl.test(t)?Hr:+t}var Dl=function(){return Os.Date.now()};const yn=Dl;var _l="Expected a function",Fl=Math.max,Nl=Math.min;function Ve(t,e,n){var r,i,o,s,a,l,c=0,f=!1,u=!1,h=!0;if(typeof t!="function")throw new TypeError(_l);e=$r(e)||0,Be(n)&&(f=!!n.leading,u="maxWait"in n,o=u?Fl($r(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h);function d(T){var P=r,A=i;return r=i=void 0,c=T,s=t.apply(A,P),s}function m(T){return c=T,a=setTimeout(x,e),f?d(T):s}function g(T){var P=T-l,A=T-c,R=e-P;return u?Nl(R,o-A):R}function y(T){var P=T-l,A=T-c;return l===void 0||P>=e||P<0||u&&A>=o}function x(){var T=yn();if(y(T))return w(T);a=setTimeout(x,g(T))}function w(T){return a=void 0,h&&r?d(T):(r=i=void 0,s)}function v(){a!==void 0&&clearTimeout(a),c=0,r=l=i=a=void 0}function E(){return a===void 0?s:w(yn())}function S(){var T=yn(),P=y(T);if(r=arguments,i=this,l=T,P){if(a===void 0)return m(l);if(u)return clearTimeout(a),a=setTimeout(x,e),d(l)}return a===void 0&&(a=setTimeout(x,e)),s}return S.cancel=v,S.flush=E,S}var Bl="Expected a function";function Il(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(Bl);return Be(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ve(t,e,{leading:r,maxWait:e,trailing:i})}var Wl=!!(typeof window<"u"&&window.document&&window.document.createElement),Ul=Wl;const ks=p.getDefaultExportFromCjs(Ul);var zt=function(){return zt=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},zt.apply(this,arguments)},Wt=null,qr=null;ks&&window.addEventListener("resize",function(){qr!==window.devicePixelRatio&&(qr=window.devicePixelRatio,Wt=null)});function Gr(){if(Wt===null){if(typeof document>"u")return Wt=0,Wt;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),Wt=n}return Wt}function Ms(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function js(t){return!t||!t.ownerDocument?document:t.ownerDocument}var Ls=function(t){var e={},n=Array.prototype.reduce.call(t,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},e);return n};function Ds(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function _s(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function Fs(t){return".".concat(t.split(" ").join("."))}var zl=Object.freeze({__proto__:null,getElementWindow:Ms,getElementDocument:js,getOptions:Ls,addClasses:Ds,removeClasses:_s,classNamesToQuery:Fs}),mt=Ms,vn=js,Hl=Ls,gt=Ds,yt=_s,q=Fs,Se=function(){function t(e,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=mt(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,gt(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){yt(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(gt(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){yt(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,s;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),s&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,s,a,l,c,f,u,h,d,m,g;if(!(!r.draggedAxis||!r.contentWrapperEl)){var y,x=r.axis[r.draggedAxis].track,w=(s=(o=x.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,v=r.axis[r.draggedAxis].scrollbar,E=(l=(a=r.contentWrapperEl)===null||a===void 0?void 0:a[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,S=parseInt((f=(c=r.elStyles)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].sizeAttr])!==null&&f!==void 0?f:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?y=i.pageY:y=i.pageX;var T=y-((h=(u=x.rect)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-r.axis[r.draggedAxis].dragOffset;T=r.draggedAxis==="x"&&r.isRtl?((m=(d=x.rect)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].sizeAttr])!==null&&m!==void 0?m:0)-v.size-T:T;var P=T/(w-v.size),A=P*(E-S);r.draggedAxis==="x"&&r.isRtl&&(A=!((g=t.getRtlHelpers())===null||g===void 0)&&g.isScrollingToNegative?-A:A),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=A}},this.onEndDrag=function(i){var o=vn(r.el),s=mt(r.el);i.preventDefault(),i.stopPropagation(),yt(r.el,r.classNames.dragging),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=e,this.options=zt(zt({},t.defaultOptions),n),this.classNames=zt(zt({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Il(this._onMouseMove,64),this.onWindowResize=Ve(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Ve(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ve(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=t.getOffset(n),o=t.getOffset(r);n.scrollLeft=-999;var s=t.getOffset(r);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Gr()}catch{return Gr()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=vn(e),i=mt(e);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){ks&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(q(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(q(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(q(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(q(this.classNames.offset)),this.maskEl=this.el.querySelector(q(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,q(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(q(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(q(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(q(this.classNames.track)).concat(q(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(q(this.classNames.track)).concat(q(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(q(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(q(this.classNames.scrollbar)))||null,this.options.autoHide||(gt(this.axis.x.scrollbar.el,this.classNames.visible),gt(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=mt(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=mt(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||c,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var f=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&c>n,this.axis.y.isOverflowing=l>f,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>o-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>f-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,r;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[e].scrollSizeAttr],o=(r=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&r!==void 0?r:0,s=o/i,a;return a=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},t.prototype.positionScrollbar=function(e){var n,r,i;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[e].scrollSizeAttr],a=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[e].sizeAttr],10),c=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];c=e==="x"&&this.isRtl&&(!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-c:c,e==="x"&&this.isRtl&&(c=!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?c:-c);var f=c/(s-l),u=~~((a-o.size)*f);u=e==="x"&&this.isRtl?-u+(a-o.size):u,o.el.style.transform=e==="x"?"translate3d(".concat(u,"px, 0, 0)"):"translate3d(0, ".concat(u,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,r=this.axis[e].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?r.style.display="block":r.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(gt(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(yt(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),gt(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?gt(n.scrollbar.el,this.classNames.hover):yt(n.scrollbar.el,this.classNames.hover)):(yt(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),yt(this.axis[e].track.el,this.classNames.hover),yt(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var r;n===void 0&&(n="y");var i=vn(this.el),o=mt(this.el),s=this.axis[n].scrollbar,a=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=a-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,gt(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var r=this,i,o,s,a;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var c=mt(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var f=this.axis[n].scrollbar,u=(o=(i=f.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,h=parseInt((a=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&a!==void 0?a:"0px",10),d=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],m=n==="y"?this.mouseY-u:this.mouseX-u,g=m<0?-1:1,y=g===-1?d-h:d+h,x=40,w=function(){r.contentWrapperEl&&(g===-1?d>y&&(d-=x,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=d,c.requestAnimationFrame(w)):d<y&&(d+=x,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=d,c.requestAnimationFrame(w)))};w()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=mt(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(i){return r.call(i,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=Hl,t.helpers=zl,t}(),X=function(){return X=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},X.apply(this,arguments)};function $l(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}var Ns=p.reactExports.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,i=r===void 0?{}:r,o=$l(t,["children","scrollableNodeProps"]),s=p.reactExports.useRef(),a=p.reactExports.useRef(),l=p.reactExports.useRef(),c={},f={};Object.keys(o).forEach(function(d){Object.prototype.hasOwnProperty.call(Se.defaultOptions,d)?c[d]=o[d]:f[d]=o[d]});var u=X(X({},Se.defaultOptions.classNames),c.classNames),h=X(X({},i),{className:"".concat(u.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":c.ariaLabel||Se.defaultOptions.ariaLabel});return p.reactExports.useEffect(function(){var d;return a.current=h.ref?h.ref.current:a.current,s.current&&(d=new Se(s.current,X(X(X({},c),a.current&&{scrollableNode:a.current}),l.current&&{contentNode:l.current})),typeof e=="function"?e(d):e&&(e.current=d)),function(){d==null||d.unMount(),d=null,typeof e=="function"&&e(null)}},[]),p.reactExports.createElement("div",X({"data-simplebar":"init",ref:s},f),p.reactExports.createElement("div",{className:u.wrapper},p.reactExports.createElement("div",{className:u.heightAutoObserverWrapperEl},p.reactExports.createElement("div",{className:u.heightAutoObserverEl})),p.reactExports.createElement("div",{className:u.mask},p.reactExports.createElement("div",{className:u.offset},typeof n=="function"?n({scrollableNodeRef:a,scrollableNodeProps:X(X({},h),{ref:a}),contentNodeRef:l,contentNodeProps:{className:u.contentEl,ref:l}}):p.reactExports.createElement("div",X({},h),p.reactExports.createElement("div",{className:u.contentEl},n)))),p.reactExports.createElement("div",{className:u.placeholder})),p.reactExports.createElement("div",{className:"".concat(u.track," simplebar-horizontal")},p.reactExports.createElement("div",{className:u.scrollbar})),p.reactExports.createElement("div",{className:"".concat(u.track," simplebar-vertical")},p.reactExports.createElement("div",{className:u.scrollbar})))});Ns.displayName="SimpleBar";const Bs=p.reactExports.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),en=p.reactExports.createContext({}),or=p.reactExports.createContext(null),nn=typeof document<"u",ql=nn?p.reactExports.useLayoutEffect:p.reactExports.useEffect,Is=p.reactExports.createContext({strict:!1}),ar=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Gl="framerAppearId",Ws="data-"+ar(Gl);function Xl(t,e,n,r){const{visualElement:i}=p.reactExports.useContext(en),o=p.reactExports.useContext(Is),s=p.reactExports.useContext(or),a=p.reactExports.useContext(Bs).reducedMotion,l=p.reactExports.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(t,{visualState:e,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;p.reactExports.useInsertionEffect(()=>{c&&c.update(n,s)});const f=p.reactExports.useRef(!!(n[Ws]&&!window.HandoffComplete));return ql(()=>{c&&(c.render(),f.current&&c.animationState&&c.animationState.animateChanges())}),p.reactExports.useEffect(()=>{c&&(c.updateFeatures(),!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),c}function Ht(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Kl(t,e,n){return p.reactExports.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Ht(n)&&(n.current=r))},[e])}function he(t){return typeof t=="string"||Array.isArray(t)}function rn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const lr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cr=["initial",...lr];function sn(t){return rn(t.animate)||cr.some(e=>he(t[e]))}function Us(t){return!!(sn(t)||t.variants)}function Yl(t,e){if(sn(t)){const{initial:n,animate:r}=t;return{initial:n===!1||he(n)?n:void 0,animate:he(r)?r:void 0}}return t.inherit!==!1?e:{}}function Jl(t){const{initial:e,animate:n}=Yl(t,p.reactExports.useContext(en));return p.reactExports.useMemo(()=>({initial:e,animate:n}),[Xr(e),Xr(n)])}function Xr(t){return Array.isArray(t)?t.join(" "):t}const Kr={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},de={};for(const t in Kr)de[t]={isEnabled:e=>Kr[t].some(n=>!!e[n])};function Zl(t){for(const e in t)de[e]={...de[e],...t[e]}}const zs=p.reactExports.createContext({}),Hs=p.reactExports.createContext({}),Ql=Symbol.for("motionComponentSymbol");function tc({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&Zl(t);function o(a,l){let c;const f={...p.reactExports.useContext(Bs),...a,layoutId:ec(a)},{isStatic:u}=f,h=Jl(a),d=r(a,u);if(!u&&nn){h.visualElement=Xl(i,d,f,e);const m=p.reactExports.useContext(Hs),g=p.reactExports.useContext(Is).strict;h.visualElement&&(c=h.visualElement.loadFeatures(f,g,t,m))}return p.reactExports.createElement(en.Provider,{value:h},c&&h.visualElement?p.reactExports.createElement(c,{visualElement:h.visualElement,...f}):null,n(i,a,Kl(d,h.visualElement,l),d,u,h.visualElement))}const s=p.reactExports.forwardRef(o);return s[Ql]=i,s}function ec({layoutId:t}){const e=p.reactExports.useContext(zs).id;return e&&t!==void 0?e+"-"+t:t}function nc(t){function e(r,i={}){return tc(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const rc=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ur(t){return typeof t!="string"||t.includes("-")?!1:!!(rc.indexOf(t)>-1||/[A-Z]/.test(t))}const Ie={};function ic(t){Object.assign(Ie,t)}const ge=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Lt=new Set(ge);function $s(t,{layout:e,layoutId:n}){return Lt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ie[t]||t==="opacity")}const G=t=>!!(t&&t.getVelocity),sc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oc=ge.length;function ac(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<oc;s++){const a=ge[s];if(t[a]!==void 0){const l=sc[a]||a;o+=`${l}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}const qs=t=>e=>typeof e=="string"&&e.startsWith(t),Gs=qs("--"),Bn=qs("var(--"),lc=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,cc=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Tt=(t,e,n)=>Math.min(Math.max(n,t),e),Dt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},se={...Dt,transform:t=>Tt(0,1,t)},Te={...Dt,default:1},oe=t=>Math.round(t*1e5)/1e5,on=/(-)?([\d]*\.?[\d])+/g,Xs=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,uc=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ye(t){return typeof t=="string"}const ve=t=>({test:e=>ye(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),xt=ve("deg"),ot=ve("%"),C=ve("px"),fc=ve("vh"),hc=ve("vw"),Yr={...ot,parse:t=>ot.parse(t)/100,transform:t=>ot.transform(t*100)},Jr={...Dt,transform:Math.round},Ks={borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,radius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,size:C,top:C,right:C,bottom:C,left:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,rotate:xt,rotateX:xt,rotateY:xt,rotateZ:xt,scale:Te,scaleX:Te,scaleY:Te,scaleZ:Te,skew:xt,skewX:xt,skewY:xt,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:se,originX:Yr,originY:Yr,originZ:C,zIndex:Jr,fillOpacity:se,strokeOpacity:se,numOctaves:Jr};function fr(t,e,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=t;let l=!1,c=!1,f=!0;for(const u in e){const h=e[u];if(Gs(u)){o[u]=h;continue}const d=Ks[u],m=cc(h,d);if(Lt.has(u)){if(l=!0,s[u]=m,!f)continue;h!==(d.default||0)&&(f=!1)}else u.startsWith("origin")?(c=!0,a[u]=m):i[u]=m}if(e.transform||(l||r?i.transform=ac(t.transform,n,f,r):i.transform&&(i.transform="none")),c){const{originX:u="50%",originY:h="50%",originZ:d=0}=a;i.transformOrigin=`${u} ${h} ${d}`}}const hr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ys(t,e,n){for(const r in e)!G(e[r])&&!$s(r,n)&&(t[r]=e[r])}function dc({transformTemplate:t},e,n){return p.reactExports.useMemo(()=>{const r=hr();return fr(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function pc(t,e,n){const r=t.style||{},i={};return Ys(i,r,t),Object.assign(i,dc(t,e,n)),t.transformValues?t.transformValues(i):i}function mc(t,e,n){const r={},i=pc(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const gc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function We(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||gc.has(t)}let Js=t=>!We(t);function yc(t){t&&(Js=e=>e.startsWith("on")?!We(e):t(e))}try{yc(require("@emotion/is-prop-valid").default)}catch{}function vc(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(Js(i)||n===!0&&We(i)||!e&&!We(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function Zr(t,e,n){return typeof t=="string"?t:C.transform(e+n*t)}function xc(t,e,n){const r=Zr(e,t.x,t.width),i=Zr(n,t.y,t.height);return`${r} ${i}`}const bc={offset:"stroke-dashoffset",array:"stroke-dasharray"},wc={offset:"strokeDashoffset",array:"strokeDasharray"};function Ec(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?bc:wc;t[o.offset]=C.transform(-r);const s=C.transform(e),a=C.transform(n);t[o.array]=`${s} ${a}`}function dr(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},f,u,h){if(fr(t,c,f,h),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:m,dimensions:g}=t;d.transform&&(g&&(m.transform=d.transform),delete d.transform),g&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=xc(g,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&Ec(d,s,a,l,!1)}const Zs=()=>({...hr(),attrs:{}}),pr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Sc(t,e,n,r){const i=p.reactExports.useMemo(()=>{const o=Zs();return dr(o,e,{enableHardwareAcceleration:!1},pr(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Ys(o,t.style,t),i.style={...o,...i.style}}return i}function Tc(t=!1){return(n,r,i,{latestValues:o},s)=>{const l=(ur(n)?Sc:mc)(r,o,s,n),f={...vc(r,typeof n=="string",t),...l,ref:i},{children:u}=r,h=p.reactExports.useMemo(()=>G(u)?u.get():u,[u]);return p.reactExports.createElement(n,{...f,children:h})}}function Qs(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const to=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function eo(t,e,n,r){Qs(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(to.has(i)?i:ar(i),e.attrs[i])}function mr(t,e){const{style:n}=t,r={};for(const i in n)(G(n[i])||e.style&&G(e.style[i])||$s(i,t))&&(r[i]=n[i]);return r}function no(t,e){const n=mr(t,e);for(const r in t)if(G(t[r])||G(e[r])){const i=ge.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function gr(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function Pc(t){const e=p.reactExports.useRef(null);return e.current===null&&(e.current=t()),e.current}const Ue=t=>Array.isArray(t),Ac=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Cc=t=>Ue(t)?t[t.length-1]||0:t;function ke(t){const e=G(t)?t.get():t;return Ac(e)?e.toValue():e}function Rc({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const s={latestValues:Oc(r,i,o,t),renderState:e()};return n&&(s.mount=a=>n(r,a,s)),s}const ro=t=>(e,n)=>{const r=p.reactExports.useContext(en),i=p.reactExports.useContext(or),o=()=>Rc(t,e,r,i);return n?o():Pc(o)};function Oc(t,e,n,r){const i={},o=r(t,{});for(const h in o)i[h]=ke(o[h]);let{initial:s,animate:a}=t;const l=sn(t),c=Us(t);e&&c&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),a===void 0&&(a=e.animate));let f=n?n.initial===!1:!1;f=f||s===!1;const u=f?a:s;return u&&typeof u!="boolean"&&!rn(u)&&(Array.isArray(u)?u:[u]).forEach(d=>{const m=gr(t,d);if(!m)return;const{transitionEnd:g,transition:y,...x}=m;for(const w in x){let v=x[w];if(Array.isArray(v)){const E=f?v.length-1:0;v=v[E]}v!==null&&(i[w]=v)}for(const w in g)i[w]=g[w]}),i}const D=t=>t;class Qr{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function Vc(t){let e=new Qr,n=new Qr,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,c=!1,f=!1)=>{const u=f&&i,h=u?e:n;return c&&s.add(l),h.add(l)&&u&&i&&(r=e.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let c=0;c<r;c++){const f=e.order[c];f(l),s.has(f)&&(a.schedule(f),t())}i=!1,o&&(o=!1,a.process(l))}};return a}const Pe=["prepare","read","update","preRender","render","postRender"],kc=40;function Mc(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Pe.reduce((u,h)=>(u[h]=Vc(()=>n=!0),u),{}),s=u=>o[u].process(i),a=()=>{const u=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(u-i.timestamp,kc),1),i.timestamp=u,i.isProcessing=!0,Pe.forEach(s),i.isProcessing=!1,n&&e&&(r=!1,t(a))},l=()=>{n=!0,r=!0,i.isProcessing||t(a)};return{schedule:Pe.reduce((u,h)=>{const d=o[h];return u[h]=(m,g=!1,y=!1)=>(n||l(),d.schedule(m,g,y)),u},{}),cancel:u=>Pe.forEach(h=>o[h].cancel(u)),state:i,steps:o}}const{schedule:k,cancel:dt,state:z,steps:xn}=Mc(typeof requestAnimationFrame<"u"?requestAnimationFrame:D,!0),jc={useVisualState:ro({scrapeMotionValuesFromProps:no,createRenderState:Zs,onMount:(t,e,{renderState:n,latestValues:r})=>{k.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),k.render(()=>{dr(n,r,{enableHardwareAcceleration:!1},pr(e.tagName),t.transformTemplate),eo(e,n)})}})},Lc={useVisualState:ro({scrapeMotionValuesFromProps:mr,createRenderState:hr})};function Dc(t,{forwardMotionProps:e=!1},n,r){return{...ur(t)?jc:Lc,preloadedFeatures:n,useRender:Tc(e),createVisualElement:r,Component:t}}function ct(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const io=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function an(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const _c=t=>e=>io(e)&&t(e,an(e));function ut(t,e,n,r){return ct(t,e,_c(n),r)}const Fc=(t,e)=>n=>e(t(n)),Et=(...t)=>t.reduce(Fc);function so(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const ti=so("dragHorizontal"),ei=so("dragVertical");function oo(t){let e=!1;if(t==="y")e=ei();else if(t==="x")e=ti();else{const n=ti(),r=ei();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function ao(){const t=oo(!0);return t?(t(),!1):!0}class At{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ni(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||ao())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[r]&&k.update(()=>a[r](o,s))};return ut(t.current,n,i,{passive:!t.getProps()[r]})}class Nc extends At{mount(){this.unmount=Et(ni(this.node,!0),ni(this.node,!1))}unmount(){}}class Bc extends At{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Et(ct(this.node.current,"focus",()=>this.onFocus()),ct(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const lo=(t,e)=>e?t===e?!0:lo(t,e.parentElement):!1;function bn(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,an(n))}class Ic extends At{constructor(){super(...arguments),this.removeStartListeners=D,this.removeEndListeners=D,this.removeAccessibleListeners=D,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=ut(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:f,globalTapTarget:u}=this.node.getProps();k.update(()=>{!u&&!lo(this.node.current,a.target)?f&&f(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=ut(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Et(o,s),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||bn("up",(l,c)=>{const{onTap:f}=this.node.getProps();f&&k.update(()=>f(l,c))})};this.removeEndListeners(),this.removeEndListeners=ct(this.node.current,"keyup",s),bn("down",(a,l)=>{this.startPress(a,l)})},n=ct(this.node.current,"keydown",e),r=()=>{this.isPressing&&bn("cancel",(o,s)=>this.cancelPress(o,s))},i=ct(this.node.current,"blur",r);this.removeAccessibleListeners=Et(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&k.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ao()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&k.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=ut(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=ct(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Et(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const In=new WeakMap,wn=new WeakMap,Wc=t=>{const e=In.get(t.target);e&&e(t)},Uc=t=>{t.forEach(Wc)};function zc({root:t,...e}){const n=t||document;wn.has(n)||wn.set(n,{});const r=wn.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(Uc,{root:t,...e})),r[i]}function Hc(t,e,n){const r=zc(e);return In.set(t,n),r.observe(t),()=>{In.delete(t),r.unobserve(t)}}const $c={some:0,all:1};class qc extends At{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:$c[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:u}=this.node.getProps(),h=c?f:u;h&&h(l)};return Hc(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Gc(e,n))&&this.startObserver()}unmount(){}}function Gc({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Xc={inView:{Feature:qc},tap:{Feature:Ic},focus:{Feature:Bc},hover:{Feature:Nc}};function co(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Kc(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function Yc(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function ln(t,e,n){const r=t.getProps();return gr(r,e,n!==void 0?n:r.custom,Kc(t),Yc(t))}let Jc=D,yr=D;const St=t=>t*1e3,ft=t=>t/1e3,Zc={current:!1},uo=t=>Array.isArray(t)&&typeof t[0]=="number";function fo(t){return!!(!t||typeof t=="string"&&ho[t]||uo(t)||Array.isArray(t)&&t.every(fo))}const ie=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,ho={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ie([0,.65,.55,1]),circOut:ie([.55,0,1,.45]),backIn:ie([.31,.01,.66,-.59]),backOut:ie([.33,1.53,.69,.99])};function po(t){if(t)return uo(t)?ie(t):Array.isArray(t)?t.map(po):ho[t]}function Qc(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const f=po(a);return Array.isArray(f)&&(c.easing=f),t.animate(c,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function tu(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const mo=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,eu=1e-7,nu=12;function ru(t,e,n,r,i){let o,s,a=0;do s=e+(n-e)/2,o=mo(s,r,i)-t,o>0?n=s:e=s;while(Math.abs(o)>eu&&++a<nu);return s}function xe(t,e,n,r){if(t===e&&n===r)return D;const i=o=>ru(o,0,1,t,n);return o=>o===0||o===1?o:mo(i(o),e,r)}const iu=xe(.42,0,1,1),su=xe(0,0,.58,1),go=xe(.42,0,.58,1),ou=t=>Array.isArray(t)&&typeof t[0]!="number",yo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,vo=t=>e=>1-t(1-e),vr=t=>1-Math.sin(Math.acos(t)),xo=vo(vr),au=yo(vr),bo=xe(.33,1.53,.69,.99),xr=vo(bo),lu=yo(xr),cu=t=>(t*=2)<1?.5*xr(t):.5*(2-Math.pow(2,-10*(t-1))),uu={linear:D,easeIn:iu,easeInOut:go,easeOut:su,circIn:vr,circInOut:au,circOut:xo,backIn:xr,backInOut:lu,backOut:bo,anticipate:cu},ri=t=>{if(Array.isArray(t)){yr(t.length===4);const[e,n,r,i]=t;return xe(e,n,r,i)}else if(typeof t=="string")return uu[t];return t},br=(t,e)=>n=>!!(ye(n)&&uc.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),wo=(t,e,n)=>r=>{if(!ye(r))return r;const[i,o,s,a]=r.match(on);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},fu=t=>Tt(0,255,t),En={...Dt,transform:t=>Math.round(fu(t))},jt={test:br("rgb","red"),parse:wo("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+En.transform(t)+", "+En.transform(e)+", "+En.transform(n)+", "+oe(se.transform(r))+")"};function hu(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Wn={test:br("#"),parse:hu,transform:jt.transform},$t={test:br("hsl","hue"),parse:wo("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+ot.transform(oe(e))+", "+ot.transform(oe(n))+", "+oe(se.transform(r))+")"},$={test:t=>jt.test(t)||Wn.test(t)||$t.test(t),parse:t=>jt.test(t)?jt.parse(t):$t.test(t)?$t.parse(t):Wn.parse(t),transform:t=>ye(t)?t:t.hasOwnProperty("red")?jt.transform(t):$t.transform(t)},j=(t,e,n)=>-n*t+n*e+t;function Sn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function du({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,s=0;if(!e)i=o=s=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Sn(l,a,t+1/3),o=Sn(l,a,t),s=Sn(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Tn=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},pu=[Wn,jt,$t],mu=t=>pu.find(e=>e.test(t));function ii(t){const e=mu(t);let n=e.parse(t);return e===$t&&(n=du(n)),n}const Eo=(t,e)=>{const n=ii(t),r=ii(e),i={...n};return o=>(i.red=Tn(n.red,r.red,o),i.green=Tn(n.green,r.green,o),i.blue=Tn(n.blue,r.blue,o),i.alpha=j(n.alpha,r.alpha,o),jt.transform(i))};function gu(t){var e,n;return isNaN(t)&&ye(t)&&(((e=t.match(on))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Xs))===null||n===void 0?void 0:n.length)||0)>0}const So={regex:lc,countKey:"Vars",token:"${v}",parse:D},To={regex:Xs,countKey:"Colors",token:"${c}",parse:$.parse},Po={regex:on,countKey:"Numbers",token:"${n}",parse:Dt.parse};function Pn(t,{regex:e,countKey:n,token:r,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function ze(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Pn(n,So),Pn(n,To),Pn(n,Po),n}function Ao(t){return ze(t).values}function Co(t){const{values:e,numColors:n,numVars:r,tokenised:i}=ze(t),o=e.length;return s=>{let a=i;for(let l=0;l<o;l++)l<r?a=a.replace(So.token,s[l]):l<r+n?a=a.replace(To.token,$.transform(s[l])):a=a.replace(Po.token,oe(s[l]));return a}}const yu=t=>typeof t=="number"?0:t;function vu(t){const e=Ao(t);return Co(t)(e.map(yu))}const Pt={test:gu,parse:Ao,createTransformer:Co,getAnimatableNone:vu},Ro=(t,e)=>n=>`${n>0?e:t}`;function Oo(t,e){return typeof t=="number"?n=>j(t,e,n):$.test(t)?Eo(t,e):t.startsWith("var(")?Ro(t,e):ko(t,e)}const Vo=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,s)=>Oo(o,e[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},xu=(t,e)=>{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Oo(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},ko=(t,e)=>{const n=Pt.createTransformer(e),r=ze(t),i=ze(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Et(Vo(r.values,i.values),n):Ro(t,e)},pe=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},si=(t,e)=>n=>j(t,e,n);function bu(t){return typeof t=="number"?si:typeof t=="string"?$.test(t)?Eo:ko:Array.isArray(t)?Vo:typeof t=="object"?xu:si}function wu(t,e,n){const r=[],i=n||bu(t[0]),o=t.length-1;for(let s=0;s<o;s++){let a=i(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||D:e;a=Et(l,a)}r.push(a)}return r}function Mo(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(yr(o===e.length),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=wu(e,r,i),a=s.length,l=c=>{let f=0;if(a>1)for(;f<t.length-2&&!(c<t[f+1]);f++);const u=pe(t[f],t[f+1],c);return s[f](u)};return n?c=>l(Tt(t[0],t[o-1],c)):l}function Eu(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=pe(0,e,r);t.push(j(n,1,i))}}function Su(t){const e=[0];return Eu(e,t.length-1),e}function Tu(t,e){return t.map(n=>n*e)}function Pu(t,e){return t.map(()=>e||go).splice(0,t.length-1)}function He({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=ou(r)?r.map(ri):ri(r),o={done:!1,value:e[0]},s=Tu(n&&n.length===e.length?n:Su(e),t),a=Mo(s,e,{ease:Array.isArray(i)?i:Pu(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}function jo(t,e){return e?t*(1e3/e):0}const Au=5;function Lo(t,e,n){const r=Math.max(e-Au,0);return jo(n-t(r),e-r)}const An=.001,Cu=.01,oi=10,Ru=.05,Ou=1;function Vu({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;Jc(t<=St(oi));let s=1-e;s=Tt(Ru,Ou,s),t=Tt(Cu,oi,ft(t)),s<1?(i=c=>{const f=c*s,u=f*t,h=f-n,d=Un(c,s),m=Math.exp(-u);return An-h/d*m},o=c=>{const u=c*s*t,h=u*n+n,d=Math.pow(s,2)*Math.pow(c,2)*t,m=Math.exp(-u),g=Un(Math.pow(c,2),s);return(-i(c)+An>0?-1:1)*((h-d)*m)/g}):(i=c=>{const f=Math.exp(-c*t),u=(c-n)*t+1;return-An+f*u},o=c=>{const f=Math.exp(-c*t),u=(n-c)*(t*t);return f*u});const a=5/t,l=Mu(i,o,a);if(t=St(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:t}}}const ku=12;function Mu(t,e,n){let r=n;for(let i=1;i<ku;i++)r=r-t(r)/e(r);return r}function Un(t,e){return t*Math.sqrt(1-e*e)}const ju=["duration","bounce"],Lu=["stiffness","damping","mass"];function ai(t,e){return e.some(n=>t[n]!==void 0)}function Du(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ai(t,Lu)&&ai(t,ju)){const n=Vu(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Do({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:f,velocity:u,isResolvedFromDuration:h}=Du({...r,velocity:-ft(r.velocity||0)}),d=u||0,m=l/(2*Math.sqrt(a*c)),g=o-i,y=ft(Math.sqrt(a/c)),x=Math.abs(g)<5;n||(n=x?.01:2),e||(e=x?.005:.5);let w;if(m<1){const v=Un(y,m);w=E=>{const S=Math.exp(-m*y*E);return o-S*((d+m*y*g)/v*Math.sin(v*E)+g*Math.cos(v*E))}}else if(m===1)w=v=>o-Math.exp(-y*v)*(g+(d+y*g)*v);else{const v=y*Math.sqrt(m*m-1);w=E=>{const S=Math.exp(-m*y*E),T=Math.min(v*E,300);return o-S*((d+m*y*g)*Math.sinh(T)+v*g*Math.cosh(T))/v}}return{calculatedDuration:h&&f||null,next:v=>{const E=w(v);if(h)s.done=v>=f;else{let S=d;v!==0&&(m<1?S=Lo(w,v,E):S=0);const T=Math.abs(S)<=n,P=Math.abs(o-E)<=e;s.done=T&&P}return s.value=s.done?o:E,s}}}function li({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:f}){const u=t[0],h={done:!1,value:u},d=A=>a!==void 0&&A<a||l!==void 0&&A>l,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let g=n*e;const y=u+g,x=s===void 0?y:s(y);x!==y&&(g=x-u);const w=A=>-g*Math.exp(-A/r),v=A=>x+w(A),E=A=>{const R=w(A),N=v(A);h.done=Math.abs(R)<=c,h.value=h.done?x:N};let S,T;const P=A=>{d(h.value)&&(S=A,T=Do({keyframes:[h.value,m(h.value)],velocity:Lo(v,A,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:f}))};return P(0),{calculatedDuration:null,next:A=>{let R=!1;return!T&&S===void 0&&(R=!0,E(A),P(A)),S!==void 0&&A>S?T.next(A-S):(!R&&E(A),h)}}}const _u=t=>{const e=({timestamp:n})=>t(n);return{start:()=>k.update(e,!0),stop:()=>dt(e),now:()=>z.isProcessing?z.timestamp:performance.now()}},ci=2e4;function ui(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<ci;)e+=n,r=t.next(e);return e>=ci?1/0:e}const Fu={decay:li,inertia:li,tween:He,keyframes:He,spring:Do};function $e({autoplay:t=!0,delay:e=0,driver:n=_u,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:f,onUpdate:u,...h}){let d=1,m=!1,g,y;const x=()=>{y=new Promise(V=>{g=V})};x();let w;const v=Fu[i]||He;let E;v!==He&&typeof r[0]!="number"&&(E=Mo([0,100],r,{clamp:!1}),r=[0,100]);const S=v({...h,keyframes:r});let T;a==="mirror"&&(T=v({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let P="idle",A=null,R=null,N=null;S.calculatedDuration===null&&o&&(S.calculatedDuration=ui(S));const{calculatedDuration:H}=S;let L=1/0,B=1/0;H!==null&&(L=H+s,B=L*(o+1)-s);let W=0;const et=V=>{if(R===null)return;d>0&&(R=Math.min(R,V)),d<0&&(R=Math.min(V-B/d,R)),A!==null?W=A:W=Math.round(V-R)*d;const Ft=W-e*(d>=0?1:-1),Nt=d>=0?Ft<0:Ft>B;W=Math.max(Ft,0),P==="finished"&&A===null&&(W=B);let pn=W,Ct=S;if(o){const Qt=Math.min(W,B)/L;let Rt=Math.floor(Qt),Q=Qt%1;!Q&&Qt>=1&&(Q=1),Q===1&&Rt--,Rt=Math.min(Rt,o+1),!!(Rt%2)&&(a==="reverse"?(Q=1-Q,s&&(Q-=s/L)):a==="mirror"&&(Ct=T)),pn=Tt(0,1,Q)*L}const lt=Nt?{done:!1,value:r[0]}:Ct.next(pn);E&&(lt.value=E(lt.value));let{done:Bt}=lt;!Nt&&H!==null&&(Bt=d>=0?W>=B:W<=0);const It=A===null&&(P==="finished"||P==="running"&&Bt);return u&&u(lt.value),It&&U(),lt},I=()=>{w&&w.stop(),w=void 0},nt=()=>{P="idle",I(),g(),x(),R=N=null},U=()=>{P="finished",f&&f(),I(),g()},pt=()=>{if(m)return;w||(w=n(et));const V=w.now();l&&l(),A!==null?R=V-A:(!R||P==="finished")&&(R=V),P==="finished"&&x(),N=R,A=null,P="running",w.start()};t&&pt();const _t={then(V,Ft){return y.then(V,Ft)},get time(){return ft(W)},set time(V){V=St(V),W=V,A!==null||!w||d===0?A=V:R=w.now()-V/d},get duration(){const V=S.calculatedDuration===null?ui(S):S.calculatedDuration;return ft(V)},get speed(){return d},set speed(V){V===d||!w||(d=V,_t.time=ft(W))},get state(){return P},play:pt,pause:()=>{P="paused",A=W},stop:()=>{m=!0,P!=="idle"&&(P="idle",c&&c(),nt())},cancel:()=>{N!==null&&et(N),nt()},complete:()=>{P="finished"},sample:V=>(R=0,et(V))};return _t}function Nu(t){let e;return()=>(e===void 0&&(e=t()),e)}const Bu=Nu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Iu=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ae=10,Wu=2e4,Uu=(t,e)=>e.type==="spring"||t==="backgroundColor"||!fo(e.ease);function zu(t,e,{onUpdate:n,onComplete:r,...i}){if(!(Bu()&&Iu.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,c=!1;const f=()=>{l=new Promise(v=>{a=v})};f();let{keyframes:u,duration:h=300,ease:d,times:m}=i;if(Uu(e,i)){const v=$e({...i,repeat:0,delay:0});let E={done:!1,value:u[0]};const S=[];let T=0;for(;!E.done&&T<Wu;)E=v.sample(T),S.push(E.value),T+=Ae;m=void 0,u=S,h=T-Ae,d="linear"}const g=Qc(t.owner.current,e,u,{...i,duration:h,ease:d,times:m}),y=()=>{c=!1,g.cancel()},x=()=>{c=!0,k.update(y),a(),f()};return g.onfinish=()=>{c||(t.set(tu(u,i)),r&&r(),x())},{then(v,E){return l.then(v,E)},attachTimeline(v){return g.timeline=v,g.onfinish=null,D},get time(){return ft(g.currentTime||0)},set time(v){g.currentTime=St(v)},get speed(){return g.playbackRate},set speed(v){g.playbackRate=v},get duration(){return ft(h)},play:()=>{s||(g.play(),dt(y))},pause:()=>g.pause(),stop:()=>{if(s=!0,g.playState==="idle")return;const{currentTime:v}=g;if(v){const E=$e({...i,autoplay:!1});t.setWithVelocity(E.sample(v-Ae).value,E.sample(v).value,Ae)}x()},complete:()=>{c||g.finish()},cancel:x}}function Hu({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:D,pause:D,stop:D,then:o=>(o(),Promise.resolve()),cancel:D,complete:D});return e?$e({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const $u={type:"spring",stiffness:500,damping:25,restSpeed:10},qu=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Gu={type:"keyframes",duration:.8},Xu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ku=(t,{keyframes:e})=>e.length>2?Gu:Lt.has(t)?t.startsWith("scale")?qu(e[1]):$u:Xu,zn=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Pt.test(e)||e==="0")&&!e.startsWith("url(")),Yu=new Set(["brightness","contrast","saturate","opacity"]);function Ju(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(on)||[];if(!r)return t;const i=n.replace(r,"");let o=Yu.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const Zu=/([a-z-]*)\(.*?\)/g,Hn={...Pt,getAnimatableNone:t=>{const e=t.match(Zu);return e?e.map(Ju).join(" "):t}},Qu={...Ks,color:$,backgroundColor:$,outlineColor:$,fill:$,stroke:$,borderColor:$,borderTopColor:$,borderRightColor:$,borderBottomColor:$,borderLeftColor:$,filter:Hn,WebkitFilter:Hn},wr=t=>Qu[t];function _o(t,e){let n=wr(t);return n!==Hn&&(n=Pt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Fo=t=>/^0[^.\s]+$/.test(t);function tf(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Fo(t)}function ef(t,e,n,r){const i=zn(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:t.get();let a;const l=[];for(let c=0;c<o.length;c++)o[c]===null&&(o[c]=c===0?s:o[c-1]),tf(o[c])&&l.push(c),typeof o[c]=="string"&&o[c]!=="none"&&o[c]!=="0"&&(a=o[c]);if(i&&l.length&&a)for(let c=0;c<l.length;c++){const f=l[c];o[f]=_o(e,a)}return o}function nf({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...f}){return!!Object.keys(f).length}function Er(t,e){return t[e]||t.default||t}const rf={skipAnimations:!1},Sr=(t,e,n,r={})=>i=>{const o=Er(r,t)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-St(s);const l=ef(e,t,n,o),c=l[0],f=l[l.length-1],u=zn(t,c),h=zn(t,f);let d={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:m=>{e.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(nf(o)||(d={...d,...Ku(t,d)}),d.duration&&(d.duration=St(d.duration)),d.repeatDelay&&(d.repeatDelay=St(d.repeatDelay)),!u||!h||Zc.current||o.type===!1||rf.skipAnimations)return Hu(d);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const m=zu(e,t,d);if(m)return m}return $e(d)};function qe(t){return!!(G(t)&&t.add)}const No=t=>/^\-?\d*\.?\d+$/.test(t);function Tr(t,e){t.indexOf(e)===-1&&t.push(e)}function Pr(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ar{constructor(){this.subscriptions=[]}add(e){return Tr(this.subscriptions,e),()=>Pr(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const sf=t=>!isNaN(parseFloat(t));class of{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=z;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,k.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>k.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=sf(this.current),this.owner=n.owner}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Ar);const r=this.events[e].add(n);return e==="change"?()=>{r(),k.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?jo(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Xt(t,e){return new of(t,e)}const Bo=t=>e=>e.test(t),af={test:t=>t==="auto",parse:t=>t},Io=[Dt,C,ot,xt,hc,fc,af],ee=t=>Io.find(Bo(t)),lf=[...Io,$,Pt],cf=t=>lf.find(Bo(t));function uf(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Xt(n))}function ff(t,e){const n=ln(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=Cc(o[s]);uf(t,s,a)}}function hf(t,e,n){var r,i;const o=Object.keys(e).filter(a=>!t.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],c=e[l];let f=null;Array.isArray(c)&&(f=c[0]),f===null&&(f=(i=(r=n[l])!==null&&r!==void 0?r:t.readValue(l))!==null&&i!==void 0?i:e[l]),f!=null&&(typeof f=="string"&&(No(f)||Fo(f))?f=parseFloat(f):!cf(f)&&Pt.test(c)&&(f=_o(l,c)),t.addValue(l,Xt(f,{owner:t})),n[l]===void 0&&(n[l]=f),f!==null&&t.setBaseTarget(l,f))}}function df(t,e){return e?(e[t]||e.default||e).from:void 0}function pf(t,e,n){const r={};for(const i in t){const o=df(i,e);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function mf({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function gf(t,e){const n=t.get();if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(e[r]!==n)return!0}else return n!==e}function Wo(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");r&&(o=r);const c=[],f=i&&t.animationState&&t.animationState.getState()[i];for(const u in a){const h=t.getValue(u),d=a[u];if(!h||d===void 0||f&&mf(f,u))continue;const m={delay:n,elapsed:0,...Er(o||{},u)};if(window.HandoffAppearAnimations){const x=t.getProps()[Ws];if(x){const w=window.HandoffAppearAnimations(x,u,h,k);w!==null&&(m.elapsed=w,m.isHandoff=!0)}}let g=!m.isHandoff&&!gf(h,d);if(m.type==="spring"&&(h.getVelocity()||m.velocity)&&(g=!1),h.animation&&(g=!1),g)continue;h.start(Sr(u,h,d,t.shouldReduceMotion&&Lt.has(u)?{type:!1}:m));const y=h.animation;qe(l)&&(l.add(u),y.then(()=>l.remove(u))),c.push(y)}return s&&Promise.all(c).then(()=>{s&&ff(t,s)}),c}function $n(t,e,n={}){const r=ln(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Wo(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:u}=i;return yf(t,e,c+l,f,u,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function yf(t,e,n=0,r=0,i=1,o){const s=[],a=(t.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(t.variantChildren).sort(vf).forEach((c,f)=>{c.notify("AnimationStart",e),s.push($n(c,e,{...o,delay:n+l(f)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(s)}function vf(t,e){return t.sortNodePosition(e)}function xf(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>$n(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=$n(t,e,n);else{const i=typeof e=="function"?ln(t,e,n.custom):e;r=Promise.all(Wo(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const bf=[...lr].reverse(),wf=lr.length;function Ef(t){return e=>Promise.all(e.map(({animation:n,options:r})=>xf(t,n,r)))}function Sf(t){let e=Ef(t);const n=Pf();let r=!0;const i=(l,c)=>{const f=ln(t,c);if(f){const{transition:u,transitionEnd:h,...d}=f;l={...l,...d,...h}}return l};function o(l){e=l(t)}function s(l,c){const f=t.getProps(),u=t.getVariantContext(!0)||{},h=[],d=new Set;let m={},g=1/0;for(let x=0;x<wf;x++){const w=bf[x],v=n[w],E=f[w]!==void 0?f[w]:u[w],S=he(E),T=w===c?v.isActive:null;T===!1&&(g=x);let P=E===u[w]&&E!==f[w]&&S;if(P&&r&&t.manuallyAnimateOnMount&&(P=!1),v.protectedKeys={...m},!v.isActive&&T===null||!E&&!v.prevProp||rn(E)||typeof E=="boolean")continue;let R=Tf(v.prevProp,E)||w===c&&v.isActive&&!P&&S||x>g&&S,N=!1;const H=Array.isArray(E)?E:[E];let L=H.reduce(i,{});T===!1&&(L={});const{prevResolvedValues:B={}}=v,W={...B,...L},et=I=>{R=!0,d.has(I)&&(N=!0,d.delete(I)),v.needsAnimating[I]=!0};for(const I in W){const nt=L[I],U=B[I];if(m.hasOwnProperty(I))continue;let pt=!1;Ue(nt)&&Ue(U)?pt=!co(nt,U):pt=nt!==U,pt?nt!==void 0?et(I):d.add(I):nt!==void 0&&d.has(I)?et(I):v.protectedKeys[I]=!0}v.prevProp=E,v.prevResolvedValues=L,v.isActive&&(m={...m,...L}),r&&t.blockInitialAnimation&&(R=!1),R&&(!P||N)&&h.push(...H.map(I=>({animation:I,options:{type:w,...l}})))}if(d.size){const x={};d.forEach(w=>{const v=t.getBaseTarget(w);v!==void 0&&(x[w]=v)}),h.push({animation:x})}let y=!!h.length;return r&&(f.initial===!1||f.initial===f.animate)&&!t.manuallyAnimateOnMount&&(y=!1),r=!1,y?e(h):Promise.resolve()}function a(l,c,f){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(d=>{var m;return(m=d.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const h=s(f,l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function Tf(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!co(e,t):!1}function Ot(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Pf(){return{animate:Ot(!0),whileInView:Ot(),whileHover:Ot(),whileTap:Ot(),whileDrag:Ot(),whileFocus:Ot(),exit:Ot()}}class Af extends At{constructor(e){super(e),e.animationState||(e.animationState=Sf(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),rn(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Cf=0;class Rf extends At{constructor(){super(...arguments),this.id=Cf++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Of={animation:{Feature:Af},exit:{Feature:Rf}},fi=(t,e)=>Math.abs(t-e);function Vf(t,e){const n=fi(t.x,e.x),r=fi(t.y,e.y);return Math.sqrt(n**2+r**2)}class Uo{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Rn(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,d=Vf(u.offset,{x:0,y:0})>=3;if(!h&&!d)return;const{point:m}=u,{timestamp:g}=z;this.history.push({...m,timestamp:g});const{onStart:y,onMove:x}=this.handlers;h||(y&&y(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,u)},this.handlePointerMove=(u,h)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Cn(h,this.transformPagePoint),k.update(this.updatePoint,!0)},this.handlePointerUp=(u,h)=>{this.end();const{onEnd:d,onSessionEnd:m,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Rn(u.type==="pointercancel"?this.lastMoveEventInfo:Cn(h,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,y),m&&m(u,y)},!io(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=an(e),a=Cn(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=z;this.history=[{...l,timestamp:c}];const{onSessionStart:f}=n;f&&f(e,Rn(a,this.history)),this.removeListeners=Et(ut(this.contextWindow,"pointermove",this.handlePointerMove),ut(this.contextWindow,"pointerup",this.handlePointerUp),ut(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),dt(this.updatePoint)}}function Cn(t,e){return e?{point:e(t.point)}:t}function hi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Rn({point:t},e){return{point:t,delta:hi(t,zo(e)),offset:hi(t,kf(e)),velocity:Mf(e,.1)}}function kf(t){return t[0]}function zo(t){return t[t.length-1]}function Mf(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=zo(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>St(e)));)n--;if(!r)return{x:0,y:0};const o=ft(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function K(t){return t.max-t.min}function qn(t,e=0,n=.01){return Math.abs(t-e)<=n}function di(t,e,n,r=.5){t.origin=r,t.originPoint=j(e.min,e.max,t.origin),t.scale=K(n)/K(e),(qn(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=j(n.min,n.max,t.origin)-t.originPoint,(qn(t.translate)||isNaN(t.translate))&&(t.translate=0)}function ae(t,e,n,r){di(t.x,e.x,n.x,r?r.originX:void 0),di(t.y,e.y,n.y,r?r.originY:void 0)}function pi(t,e,n){t.min=n.min+e.min,t.max=t.min+K(e)}function jf(t,e,n){pi(t.x,e.x,n.x),pi(t.y,e.y,n.y)}function mi(t,e,n){t.min=e.min-n.min,t.max=t.min+K(e)}function le(t,e,n){mi(t.x,e.x,n.x),mi(t.y,e.y,n.y)}function Lf(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?j(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?j(n,t,r.max):Math.min(t,n)),t}function gi(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Df(t,{top:e,left:n,bottom:r,right:i}){return{x:gi(t.x,n,i),y:gi(t.y,e,r)}}function yi(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function _f(t,e){return{x:yi(t.x,e.x),y:yi(t.y,e.y)}}function Ff(t,e){let n=.5;const r=K(t),i=K(e);return i>r?n=pe(e.min,e.max-r,t.min):r>i&&(n=pe(t.min,t.max-i,e.min)),Tt(0,1,n)}function Nf(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Gn=.35;function Bf(t=Gn){return t===!1?t=0:t===!0&&(t=Gn),{x:vi(t,"left","right"),y:vi(t,"top","bottom")}}function vi(t,e,n){return{min:xi(t,e),max:xi(t,n)}}function xi(t,e){return typeof t=="number"?t:t[e]||0}const bi=()=>({translate:0,scale:1,origin:0,originPoint:0}),qt=()=>({x:bi(),y:bi()}),wi=()=>({min:0,max:0}),_=()=>({x:wi(),y:wi()});function J(t){return[t("x"),t("y")]}function Ho({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function If({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Wf(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function On(t){return t===void 0||t===1}function Xn({scale:t,scaleX:e,scaleY:n}){return!On(t)||!On(e)||!On(n)}function Vt(t){return Xn(t)||$o(t)||t.z||t.rotate||t.rotateX||t.rotateY}function $o(t){return Ei(t.x)||Ei(t.y)}function Ei(t){return t&&t!=="0%"}function Ge(t,e,n){const r=t-n,i=e*r;return n+i}function Si(t,e,n,r,i){return i!==void 0&&(t=Ge(t,i,r)),Ge(t,n,r)+e}function Kn(t,e=0,n=1,r,i){t.min=Si(t.min,e,n,r,i),t.max=Si(t.max,e,n,r,i)}function qo(t,{x:e,y:n}){Kn(t.x,e.translate,e.scale,e.originPoint),Kn(t.y,n.translate,n.scale,n.originPoint)}function Uf(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Gt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,qo(t,s)),r&&Vt(o.latestValues)&&Gt(t,o.latestValues))}e.x=Ti(e.x),e.y=Ti(e.y)}function Ti(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function bt(t,e){t.min=t.min+e,t.max=t.max+e}function Pi(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,s=j(t.min,t.max,o);Kn(t,e[n],e[r],s,e.scale)}const zf=["x","scaleX","originX"],Hf=["y","scaleY","originY"];function Gt(t,e){Pi(t.x,e,zf),Pi(t.y,e,Hf)}function Go(t,e){return Ho(Wf(t.getBoundingClientRect(),e))}function $f(t,e,n){const r=Go(t,n),{scroll:i}=e;return i&&(bt(r.x,i.offset.x),bt(r.y,i.offset.y)),r}const Xo=({current:t})=>t?t.ownerDocument.defaultView:null,qf=new WeakMap;class Gf{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=_(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(an(f,"page").point)},o=(f,u)=>{const{drag:h,dragPropagation:d,onDragStart:m}=this.getProps();if(h&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=oo(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),J(y=>{let x=this.getAxisMotionValue(y).get()||0;if(ot.test(x)){const{projection:w}=this.visualElement;if(w&&w.layout){const v=w.layout.layoutBox[y];v&&(x=K(v)*(parseFloat(x)/100))}}this.originPoint[y]=x}),m&&k.update(()=>m(f,u),!1,!0);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(f,u)=>{const{dragPropagation:h,dragDirectionLock:d,onDirectionLock:m,onDrag:g}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:y}=u;if(d&&this.currentDirection===null){this.currentDirection=Xf(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",u.point,y),this.updateAxis("y",u.point,y),this.visualElement.render(),g&&g(f,u)},a=(f,u)=>this.stop(f,u),l=()=>J(f=>{var u;return this.getAnimationState(f)==="paused"&&((u=this.getAxisMotionValue(f).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Uo(e,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Xo(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&k.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Ce(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=Lf(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&Ht(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Df(i.layoutBox,n):this.constraints=!1,this.elastic=Bf(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&J(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=Nf(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Ht(e))return!1;const r=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=$f(r,i.root,this.visualElement.getTransformPagePoint());let s=_f(i.layout.layoutBox,o);if(n){const a=n(If(s));this.hasMutatedConstraints=!!a,a&&(s=Ho(a))}return s}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=J(f=>{if(!Ce(f,n,this.currentDirection))return;let u=l&&l[f]||{};s&&(u={min:0,max:0});const h=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:r?e[f]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(f,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(Sr(e,r,0,n))}stopAnimation(){J(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){J(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){J(n=>{const{drag:r}=this.getProps();if(!Ce(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(e[n]-j(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ht(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};J(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=Ff({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),J(s=>{if(!Ce(s,e,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(j(l,c,i[s]))})}addListeners(){if(!this.visualElement.current)return;qf.set(this.visualElement,this);const e=this.visualElement.current,n=ut(e,"pointerdown",l=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ht(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=ct(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(J(f=>{const u=this.getAxisMotionValue(f);u&&(this.originPoint[f]+=l[f].translate,u.set(u.get()+l[f].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Gn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Ce(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Xf(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Kf extends At{constructor(e){super(e),this.removeGroupControls=D,this.removeListeners=D,this.controls=new Gf(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||D}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ai=t=>(e,n)=>{t&&k.update(()=>t(e,n))};class Yf extends At{constructor(){super(...arguments),this.removePointerDownListener=D}onPointerDown(e){this.session=new Uo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xo(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ai(e),onStart:Ai(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&k.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=ut(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Jf(){const t=p.reactExports.useContext(or);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=p.reactExports.useId();return p.reactExports.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Me={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ci(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ne={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(C.test(t))t=parseFloat(t);else return t;const n=Ci(t,e.target.x),r=Ci(t,e.target.y);return`${n}% ${r}%`}},Zf={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Pt.parse(t);if(i.length>5)return r;const o=Pt.createTransformer(t),s=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+s]/=a,i[1+s]/=l;const c=j(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),o(i)}};class Qf extends p.e.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;ic(th),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Me.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||e.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||k.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ko(t){const[e,n]=Jf(),r=p.reactExports.useContext(zs);return p.e.createElement(Qf,{...t,layoutGroup:r,switchLayoutGroup:p.reactExports.useContext(Hs),isPresent:e,safeToRemove:n})}const th={borderRadius:{...ne,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomLeftRadius:ne,borderBottomRightRadius:ne,boxShadow:Zf},Yo=["TopLeft","TopRight","BottomLeft","BottomRight"],eh=Yo.length,Ri=t=>typeof t=="string"?parseFloat(t):t,Oi=t=>typeof t=="number"||C.test(t);function nh(t,e,n,r,i,o){i?(t.opacity=j(0,n.opacity!==void 0?n.opacity:1,rh(r)),t.opacityExit=j(e.opacity!==void 0?e.opacity:1,0,ih(r))):o&&(t.opacity=j(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<eh;s++){const a=`border${Yo[s]}Radius`;let l=Vi(e,a),c=Vi(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Oi(l)===Oi(c)?(t[a]=Math.max(j(Ri(l),Ri(c),r),0),(ot.test(c)||ot.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=j(e.rotate||0,n.rotate||0,r))}function Vi(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const rh=Jo(0,.5,xo),ih=Jo(.5,.95,D);function Jo(t,e,n){return r=>r<t?0:r>e?1:n(pe(t,e,r))}function ki(t,e){t.min=e.min,t.max=e.max}function Y(t,e){ki(t.x,e.x),ki(t.y,e.y)}function Mi(t,e,n,r,i){return t-=e,t=Ge(t,1/n,r),i!==void 0&&(t=Ge(t,1/i,r)),t}function sh(t,e=0,n=1,r=.5,i,o=t,s=t){if(ot.test(e)&&(e=parseFloat(e),e=j(s.min,s.max,e/100)-s.min),typeof e!="number")return;let a=j(o.min,o.max,r);t===o&&(a-=e),t.min=Mi(t.min,e,n,a,i),t.max=Mi(t.max,e,n,a,i)}function ji(t,e,[n,r,i],o,s){sh(t,e[n],e[r],e[i],e.scale,o,s)}const oh=["x","scaleX","originX"],ah=["y","scaleY","originY"];function Li(t,e,n,r){ji(t.x,e,oh,n?n.x:void 0,r?r.x:void 0),ji(t.y,e,ah,n?n.y:void 0,r?r.y:void 0)}function Di(t){return t.translate===0&&t.scale===1}function Zo(t){return Di(t.x)&&Di(t.y)}function lh(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Qo(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function _i(t){return K(t.x)/K(t.y)}class ch{constructor(){this.members=[]}add(e){Tr(this.members,e),e.scheduleRender()}remove(e){if(Pr(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Fi(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:c,rotateY:f}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),f&&(r+=`rotateY(${f}deg) `)}const s=t.x.scale*e.x,a=t.y.scale*e.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const uh=(t,e)=>t.depth-e.depth;class fh{constructor(){this.children=[],this.isDirty=!1}add(e){Tr(this.children,e),this.isDirty=!0}remove(e){Pr(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(uh),this.isDirty=!1,this.children.forEach(e)}}function hh(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(dt(r),t(o-e))};return k.read(r,!0),()=>dt(r)}function dh(t){window.MotionDebug&&window.MotionDebug.record(t)}function ph(t){return t instanceof SVGElement&&t.tagName!=="svg"}function mh(t,e,n){const r=G(t)?t:Xt(t);return r.start(Sr("",r,e,n)),r.animation}const Ni=["","X","Y","Z"],gh={visibility:"hidden"},Bi=1e3;let yh=0;const kt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ta({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=e==null?void 0:e()){this.id=yh++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,kt.totalNodes=kt.resolvedTargetDeltas=kt.recalculatedProjection=0,this.nodes.forEach(bh),this.nodes.forEach(Ph),this.nodes.forEach(Ah),this.nodes.forEach(wh),dh(kt)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new fh)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Ar),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ph(s),this.instance=s;const{layoutId:l,layout:c,visualElement:f}=this.options;if(f&&!f.current&&f.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let u;const h=()=>this.root.updateBlockedByResize=!1;t(s,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=hh(h,250),Me.hasAnimatedSinceResize&&(Me.hasAnimatedSinceResize=!1,this.nodes.forEach(Wi))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeTargetChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||f.getDefaultTransition()||kh,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=f.getProps(),w=!this.targetLayout||!Qo(this.targetLayout,m)||d,v=!h&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||h&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,v);const E={...Er(g,"layout"),onPlay:y,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else h||Wi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,dt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ch),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const u=this.path[f];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ii);return}this.isUpdating||this.nodes.forEach(Sh),this.isUpdating=!1,this.nodes.forEach(Th),this.nodes.forEach(vh),this.nodes.forEach(xh),this.clearAllSnapshots();const a=performance.now();z.delta=Tt(0,1e3/60,a-z.timestamp),z.timestamp=a,z.isProcessing=!0,xn.update.process(z),xn.preRender.process(z),xn.render.process(z),z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Eh),this.sharedNodes.forEach(Rh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=_(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!Zo(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,f=c!==this.prevTransformTemplateValue;s&&(a||Vt(this.latestValues)||f)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),Mh(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return _();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(bt(a.x,l.offset.x),bt(a.y,l.offset.y)),a}removeElementScroll(s){const a=_();Y(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:f,options:u}=c;if(c!==this.root&&f&&u.layoutScroll){if(f.isRoot){Y(a,s);const{scroll:h}=this.root;h&&(bt(a.x,-h.offset.x),bt(a.y,-h.offset.y))}bt(a.x,f.offset.x),bt(a.y,f.offset.y)}}return a}applyTransform(s,a=!1){const l=_();Y(l,s);for(let c=0;c<this.path.length;c++){const f=this.path[c];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Gt(l,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Vt(f.latestValues)&&Gt(l,f.latestValues)}return Vt(this.latestValues)&&Gt(l,this.latestValues),l}removeTransform(s){const a=_();Y(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Vt(c.latestValues))continue;Xn(c.latestValues)&&c.updateSnapshot();const f=_(),u=c.measurePageBox();Y(f,u),Li(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,f)}return Vt(this.latestValues)&&Li(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:u,layoutId:h}=this.options;if(!(!this.layout||!(u||h))){if(this.resolvedRelativeTargetAt=z.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_(),this.relativeTargetOrigin=_(),le(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),Y(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=_(),this.targetWithTransforms=_()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),jf(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Y(this.target,this.layout.layoutBox),qo(this.target,this.targetDelta)):Y(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_(),this.relativeTargetOrigin=_(),le(this.relativeTargetOrigin,this.target,d.target),Y(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}kt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Xn(this.parent.latestValues)||$o(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===z.timestamp&&(c=!1),c)return;const{layout:f,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||u))return;Y(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;Uf(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:m}=a;if(!m){this.projectionTransform&&(this.projectionDelta=qt(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=qt(),this.projectionDeltaWithTransform=qt());const g=this.projectionTransform;ae(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Fi(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==h||this.treeScale.y!==d)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),kt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},f={...this.latestValues},u=qt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=_(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=d!==m,y=this.getStack(),x=!y||y.members.length<=1,w=!!(g&&!x&&this.options.crossfade===!0&&!this.path.some(Vh));this.animationProgress=0;let v;this.mixTargetDelta=E=>{const S=E/1e3;Ui(u.x,s.x,S),Ui(u.y,s.y,S),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(le(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Oh(this.relativeTarget,this.relativeTargetOrigin,h,S),v&&lh(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=_()),Y(v,this.relativeTarget)),g&&(this.animationValues=f,nh(f,c,this.latestValues,S,w,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(dt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=k.update(()=>{Me.hasAnimatedSinceResize=!0,this.currentAnimation=mh(0,Bi,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Bi),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:f}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&ea(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||_();const u=K(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+u;const h=K(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}Y(a,l),Gt(a,f),ae(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new ch),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let f=0;f<Ni.length;f++){const u="rotate"+Ni[f];l[u]&&(c[u]=l[u],s.setStaticValue(u,0))}s.render();for(const f in c)s.setStaticValue(f,c[f]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return gh;const c={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=ke(s==null?void 0:s.pointerEvents)||"",c.transform=f?f(this.latestValues,""):"none",c;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=ke(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Vt(this.latestValues)&&(g.transform=f?f({},""):"none",this.hasProjected=!1),g}const h=u.animationValues||u.latestValues;this.applyTransformsToTarget(),c.transform=Fi(this.projectionDeltaWithTransform,this.treeScale,h),f&&(c.transform=f(h,c.transform));const{x:d,y:m}=this.projectionDelta;c.transformOrigin=`${d.origin*100}% ${m.origin*100}% 0`,u.animationValues?c.opacity=u===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=u===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const g in Ie){if(h[g]===void 0)continue;const{correct:y,applyTo:x}=Ie[g],w=c.transform==="none"?h[g]:y(h[g],u);if(x){const v=x.length;for(let E=0;E<v;E++)c[x[E]]=w}else c[g]=w}return this.options.layoutId&&(c.pointerEvents=u===this?ke(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Ii),this.root.sharedNodes.clear()}}}function vh(t){t.updateLayout()}function xh(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,s=n.source!==t.layout.source;o==="size"?J(u=>{const h=s?n.measuredBox[u]:n.layoutBox[u],d=K(h);h.min=r[u].min,h.max=h.min+d}):ea(o,n.layoutBox,r)&&J(u=>{const h=s?n.measuredBox[u]:n.layoutBox[u],d=K(r[u]);h.max=h.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+d)});const a=qt();ae(a,r,n.layoutBox);const l=qt();s?ae(l,t.applyTransform(i,!0),n.measuredBox):ae(l,r,n.layoutBox);const c=!Zo(a);let f=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:d}=u;if(h&&d){const m=_();le(m,n.layoutBox,h.layoutBox);const g=_();le(g,r,d.layoutBox),Qo(m,g)||(f=!0),u.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=m,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:f})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function bh(t){kt.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function wh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Eh(t){t.clearSnapshot()}function Ii(t){t.clearMeasurements()}function Sh(t){t.isLayoutDirty=!1}function Th(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Wi(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ph(t){t.resolveTargetDelta()}function Ah(t){t.calcProjection()}function Ch(t){t.resetRotation()}function Rh(t){t.removeLeadSnapshot()}function Ui(t,e,n){t.translate=j(e.translate,0,n),t.scale=j(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function zi(t,e,n,r){t.min=j(e.min,n.min,r),t.max=j(e.max,n.max,r)}function Oh(t,e,n,r){zi(t.x,e.x,n.x,r),zi(t.y,e.y,n.y,r)}function Vh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const kh={duration:.45,ease:[.4,0,.1,1]},Hi=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),$i=Hi("applewebkit/")&&!Hi("chrome/")?Math.round:D;function qi(t){t.min=$i(t.min),t.max=$i(t.max)}function Mh(t){qi(t.x),qi(t.y)}function ea(t,e,n){return t==="position"||t==="preserve-aspect"&&!qn(_i(e),_i(n),.2)}const jh=ta({attachResizeListener:(t,e)=>ct(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vn={current:void 0},na=ta({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Vn.current){const t=new jh({});t.mount(window),t.setOptions({layoutScroll:!0}),Vn.current=t}return Vn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Lh={pan:{Feature:Yf},drag:{Feature:Kf,ProjectionNode:na,MeasureLayout:Ko}},Dh=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function _h(t){const e=Dh.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}function Yn(t,e,n=1){const[r,i]=_h(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const s=o.trim();return No(s)?parseFloat(s):s}else return Bn(i)?Yn(i,e,n+1):i}function Fh(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!Bn(o))return;const s=Yn(o,r);s&&i.set(s)});for(const i in e){const o=e[i];if(!Bn(o))continue;const s=Yn(o,r);s&&(e[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const Nh=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ra=t=>Nh.has(t),Bh=t=>Object.keys(t).some(ra),Gi=t=>t===Dt||t===C,Xi=(t,e)=>parseFloat(t.split(", ")[e]),Ki=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Xi(i[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?Xi(o[1],t):0}},Ih=new Set(["x","y","z"]),Wh=ge.filter(t=>!Ih.has(t));function Uh(t){const e=[];return Wh.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Kt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Ki(4,13),y:Ki(5,14)};Kt.translateX=Kt.x;Kt.translateY=Kt.y;const zh=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(c=>{a[c]=Kt[c](r,o)}),e.render();const l=e.measureViewportBox();return n.forEach(c=>{const f=e.getValue(c);f&&f.jump(a[c]),t[c]=Kt[c](l,o)}),t},Hh=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(ra);let o=[],s=!1;const a=[];if(i.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let f=n[l],u=ee(f);const h=e[l];let d;if(Ue(h)){const m=h.length,g=h[0]===null?1:0;f=h[g],u=ee(f);for(let y=g;y<m&&h[y]!==null;y++)d?yr(ee(h[y])===d):d=ee(h[y])}else d=ee(h);if(u!==d)if(Gi(u)&&Gi(d)){const m=c.get();typeof m=="string"&&c.set(parseFloat(m)),typeof h=="string"?e[l]=parseFloat(h):Array.isArray(h)&&d===C&&(e[l]=h.map(parseFloat))}else u!=null&&u.transform&&(d!=null&&d.transform)&&(f===0||h===0)?f===0?c.set(d.transform(f)):e[l]=u.transform(h):(s||(o=Uh(t),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:e[l],c.jump(h))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,c=zh(e,t,a);return o.length&&o.forEach(([f,u])=>{t.getValue(f).set(u)}),t.render(),nn&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:e,transitionEnd:r}};function $h(t,e,n,r){return Bh(e)?Hh(t,e,n,r):{target:e,transitionEnd:r}}const qh=(t,e,n,r)=>{const i=Fh(t,e,r);return e=i.target,r=i.transitionEnd,$h(t,e,n,r)},Jn={current:null},ia={current:!1};function Gh(){if(ia.current=!0,!!nn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Jn.current=t.matches;t.addListener(e),e()}else Jn.current=!1}function Xh(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],s=n[i];if(G(o))t.addValue(i,o),qe(r)&&r.add(i);else if(G(s))t.addValue(i,Xt(o,{owner:t})),qe(r)&&r.remove(i);else if(s!==o)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(i);t.addValue(i,Xt(a!==void 0?a:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Yi=new WeakMap,sa=Object.keys(de),Kh=sa.length,Ji=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Yh=cr.length;class Jh{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>k.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=sn(n),this.isVariantNode=Us(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{});for(const u in f){const h=f[u];a[u]!==void 0&&G(h)&&(h.set(a[u],!1),qe(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,Yi.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ia.current||Gh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Jn.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Yi.delete(this.current),this.projection&&this.projection.unmount(),dt(this.notifyUpdate),dt(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=Lt.has(e),i=n.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&k.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,o){let s,a;for(let l=0;l<Kh;l++){const c=sa[l],{isEnabled:f,Feature:u,ProjectionNode:h,MeasureLayout:d}=de[c];h&&(s=h),f(n)&&(!this.features[c]&&u&&(this.features[c]=new u(this)),d&&(a=d))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:f,dragConstraints:u,layoutScroll:h,layoutRoot:d}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!f||u&&Ht(u),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:h,layoutRoot:d})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ji.length;r++){const i=Ji[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=e["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Xh(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<Yh;r++){const i=cr[r],o=this.props[i];(he(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Xt(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=gr(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!G(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Ar),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class oa extends Jh{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:i},o){let s=pf(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){hf(this,r,s);const a=qh(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:e,transitionEnd:n,...r}}}function Zh(t){return window.getComputedStyle(t)}class Qh extends oa{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(Lt.has(n)){const r=wr(n);return r&&r.default||0}else{const r=Zh(e),i=(Gs(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Go(e,n)}build(e,n,r,i){fr(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return mr(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;G(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){Qs(e,n,r,i)}}class td extends oa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Lt.has(n)){const r=wr(n);return r&&r.default||0}return n=to.has(n)?n:ar(n),e.getAttribute(n)}measureInstanceViewportBox(){return _()}scrapeMotionValuesFromProps(e,n){return no(e,n)}build(e,n,r,i){dr(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){eo(e,n,r,i)}mount(e){this.isSVGTag=pr(e.tagName),super.mount(e)}}const ed=(t,e)=>ur(t)?new td(e,{enableHardwareAcceleration:!1}):new Qh(e,{enableHardwareAcceleration:!0}),nd={layout:{ProjectionNode:na,MeasureLayout:Ko}},rd={...Of,...Xc,...Lh,...nd},aa=nc((t,e)=>Dc(t,e,rd,ed));function id(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Xe(){return Xe=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},Xe.apply(this,arguments)}function Zn(t,e){return Zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zn(t,e)}function sd(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Zn(t,e)}function kn(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}/*!
33
+ */function Xa(){return Xa=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Xa.apply(this,arguments)}function _R(t,n){if(t==null)return{};var r={},s=Object.keys(t),a,u;for(u=0;u<s.length;u++)a=s[u],!(n.indexOf(a)>=0)&&(r[a]=t[a]);return r}function SR(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function AR(t,n){return t.button===0&&(!n||n==="_self")&&!SR(t)}const TR=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],RR="startTransition",Oh=_.React$1[RR];function CR(t){let{basename:n,children:r,future:s,window:a}=t,u=_.reactExports.useRef();u.current==null&&(u.current=oR({window:a,v5Compat:!0}));let l=u.current,[f,h]=_.reactExports.useState({action:l.action,location:l.location}),{v7_startTransition:m}=s||{},g=_.reactExports.useCallback(p=>{m&&Oh?Oh(()=>h(p)):h(p)},[h,m]);return _.reactExports.useLayoutEffect(()=>l.listen(g),[l,g]),_.reactExports.createElement(ER,{basename:n,children:r,location:f.location,navigationType:f.action,navigator:l,future:s})}const PR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",OR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,LR=_.reactExports.forwardRef(function(n,r){let{onClick:s,relative:a,reloadDocument:u,replace:l,state:f,target:h,to:m,preventScrollReset:g,unstable_viewTransition:p}=n,b=_R(n,TR),{basename:w}=_.reactExports.useContext(gr),S,R=!1;if(typeof m=="string"&&OR.test(m)&&(S=m,PR))try{let O=new URL(window.location.href),N=m.startsWith("//")?new URL(O.protocol+m):new URL(m),k=Up(N.pathname,w);N.origin===O.origin&&k!=null?m=k+N.search+N.hash:R=!0}catch{}let C=mR(m,{relative:a}),M=MR(m,{replace:l,state:f,target:h,preventScrollReset:g,relative:a,unstable_viewTransition:p});function B(O){s&&s(O),O.defaultPrevented||M(O)}return _.reactExports.createElement("a",Xa({},b,{href:S||C,onClick:R||u?s:B,ref:r,target:h}))});var Lh;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Lh||(Lh={}));var Mh;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Mh||(Mh={}));function MR(t,n){let{target:r,replace:s,state:a,preventScrollReset:u,relative:l,unstable_viewTransition:f}=n===void 0?{}:n,h=gR(),m=ks(),g=Xp(t,{relative:l});return _.reactExports.useCallback(p=>{if(AR(p,r)){p.preventDefault();let b=s!==void 0?s:bs(m)===bs(g);h(t,{replace:b,state:a,preventScrollReset:u,relative:l,unstable_viewTransition:f})}},[m,h,g,s,a,r,t,u,l,f])}function IR(t,n){if(t==null)return{};var r={},s=Object.keys(t),a,u;for(u=0;u<s.length;u++)a=s[u],!(n.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Es(){return Es=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Es.apply(this,arguments)}function Ya(t,n){return Ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,a){return s.__proto__=a,s},Ya(t,n)}function DR(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,Ya(t,n)}function Ra(t,n,r){if(r||arguments.length===2)for(var s=0,a=n.length,u;s<a;s++)(u||!(s in n))&&(u||(u=Array.prototype.slice.call(n,0,s)),u[s]=n[s]);return t.concat(u||Array.prototype.slice.call(n))}/*!
29
34
  * content-type
30
35
  * Copyright(c) 2015 Douglas Christopher Wilson
31
36
  * MIT Licensed
32
- */var Zi=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,od=/\\([\u000b\u0020-\u00ff])/g,ad=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,ld=cd;function cd(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?ud(t):t;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var n=e.indexOf(";"),r=n!==-1?e.slice(0,n).trim():e.trim();if(!ad.test(r))throw new TypeError("invalid media type");var i=new fd(r.toLowerCase());if(n!==-1){var o,s,a;for(Zi.lastIndex=n;s=Zi.exec(e);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,o=s[1].toLowerCase(),a=s[2],a.charCodeAt(0)===34&&(a=a.slice(1,-1),a.indexOf("\\")!==-1&&(a=a.replace(od,"$1"))),i.parameters[o]=a}if(n!==e.length)throw new TypeError("invalid parameter format")}return i}function ud(t){var e;if(typeof t.getHeader=="function"?e=t.getHeader("content-type"):typeof t.headers=="object"&&(e=t.headers&&t.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function fd(t){this.parameters=Object.create(null),this.type=t}var Ut=new Map,la=function(e){return e.cloneNode(!0)},Qi=function(){return window.location.protocol==="file:"},ca=function(e,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var s=ld(o).type;if(!(s==="image/svg+xml"||s==="text/plain"))throw new Error("Invalid content type: ".concat(s))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(Qi()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(i.status===200||Qi()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(a){if(i.abort(),a instanceof Error)r(a,i);else throw a}},i.open("GET",e),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},wt={},ts=function(e,n){wt[e]=wt[e]||[],wt[e].push(n)},hd=function(e){for(var n=function(s,a){setTimeout(function(){if(Array.isArray(wt[e])){var l=Ut.get(e),c=wt[e][s];l instanceof SVGSVGElement&&c(null,la(l)),l instanceof Error&&c(l),s===wt[e].length-1&&delete wt[e]}},0)},r=0,i=wt[e].length;r<i;r++)n(r)},dd=function(e,n,r){if(Ut.has(e)){var i=Ut.get(e);if(i===void 0){ts(e,r);return}if(i instanceof SVGSVGElement){r(null,la(i));return}}Ut.set(e,void 0),ts(e,r),ca(e,n,function(o,s){var a;o?Ut.set(e,o):((a=s.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&Ut.set(e,s.responseXML.documentElement),hd(e)})},pd=function(e,n,r){ca(e,n,function(i,o){var s;i?r(i):((s=o.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},md=0,gd=function(){return++md},rt=[],es={},yd="http://www.w3.org/2000/svg",Mn="http://www.w3.org/1999/xlink",ns=function(e,n,r,i,o,s,a){var l=e.getAttribute("data-src")||e.getAttribute("src");if(!l){a(new Error("Invalid data-src or src attribute"));return}if(rt.indexOf(e)!==-1){rt.splice(rt.indexOf(e),1),e=null;return}rt.push(e),e.setAttribute("src","");var c=i?dd:pd;c(l,o,function(f,u){if(!u){rt.splice(rt.indexOf(e),1),e=null,a(f);return}var h=e.getAttribute("id");h&&u.setAttribute("id",h);var d=e.getAttribute("title");d&&u.setAttribute("title",d);var m=e.getAttribute("width");m&&u.setAttribute("width",m);var g=e.getAttribute("height");g&&u.setAttribute("height",g);var y=Array.from(new Set(kn(kn(kn([],(u.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();u.setAttribute("class",y);var x=e.getAttribute("style");x&&u.setAttribute("style",x),u.setAttribute("data-src",l);var w=[].filter.call(e.attributes,function(U){return/^data-\w[\w-]*$/.test(U.name)});if(Array.prototype.forEach.call(w,function(U){U.name&&U.value&&u.setAttribute(U.name,U.value)}),r){var v={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},E,S,T,P,A;Object.keys(v).forEach(function(U){E=U,T=v[U],S=u.querySelectorAll(E+"[id]");for(var pt=function(Nt,pn){P=S[Nt].id,A=P+"-"+gd();var Ct;Array.prototype.forEach.call(T,function(mn){Ct=u.querySelectorAll("["+mn+'*="'+P+'"]');for(var Ee=0,_a=Ct.length;Ee<_a;Ee++){var _r=Ct[Ee].getAttribute(mn);_r&&!_r.match(new RegExp('url\\("?#'+P+'"?\\)'))||Ct[Ee].setAttribute(mn,"url(#"+A+")")}});for(var lt=u.querySelectorAll("[*|href]"),Bt=[],It=0,Qt=lt.length;It<Qt;It++){var Rt=lt[It].getAttributeNS(Mn,"href");Rt&&Rt.toString()==="#"+S[Nt].id&&Bt.push(lt[It])}for(var Q=0,Dr=Bt.length;Q<Dr;Q++)Bt[Q].setAttributeNS(Mn,"href","#"+A);S[Nt].id=A},_t=0,V=S.length;_t<V;_t++)pt(_t)})}u.removeAttribute("xmlns:a");for(var R=u.querySelectorAll("script"),N=[],H,L,B=0,W=R.length;B<W;B++)L=R[B].getAttribute("type"),(!L||L==="application/ecmascript"||L==="application/javascript"||L==="text/javascript")&&(H=R[B].innerText||R[B].textContent,H&&N.push(H),u.removeChild(R[B]));if(N.length>0&&(n==="always"||n==="once"&&!es[l])){for(var et=0,I=N.length;et<I;et++)new Function(N[et])(window);es[l]=!0}var nt=u.querySelectorAll("style");if(Array.prototype.forEach.call(nt,function(U){U.textContent+=""}),u.setAttribute("xmlns",yd),u.setAttribute("xmlns:xlink",Mn),s(u),!e.parentNode){rt.splice(rt.indexOf(e),1),e=null,a(new Error("Parent node is null"));return}e.parentNode.replaceChild(u,e),rt.splice(rt.indexOf(e),1),e=null,a(null,u)})},vd=function(e,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,s=r.afterEach,a=s===void 0?function(){}:s,l=r.beforeEach,c=l===void 0?function(){}:l,f=r.cacheRequests,u=f===void 0?!0:f,h=r.evalScripts,d=h===void 0?"never":h,m=r.httpRequestWithCredentials,g=m===void 0?!1:m,y=r.renumerateIRIElements,x=y===void 0?!0:y;if(e&&"length"in e)for(var w=0,v=0,E=e.length;v<E;v++)ns(e[v],d,x,u,g,c,function(S,T){a(S,T),e&&"length"in e&&e.length===++w&&o(w)});else e?ns(e,d,x,u,g,c,function(S,T){a(S,T),o(1),e=null}):o(0)},xd=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},bd=function(e,n){for(var r in e)if(!(r in n))return!0;for(var i in n)if(e[i]!==n[i])return!0;return!1},wd=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Re="http://www.w3.org/2000/svg",rs="http://www.w3.org/1999/xlink",Cr=function(t){sd(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(a){r.reactWrapper=a},r}var n=e.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof xd(this.reactWrapper).Node){var o=this.props,s=o.desc,a=o.evalScripts,l=o.httpRequestWithCredentials,c=o.renumerateIRIElements,f=o.src,u=o.title,h=o.useRequestCache,d=this.props.onError,m=this.props.beforeInjection,g=this.props.afterInjection,y=this.props.wrapper,x,w;y==="svg"?(x=document.createElementNS(Re,y),x.setAttribute("xmlns",Re),x.setAttribute("xmlns:xlink",rs),w=document.createElementNS(Re,y)):(x=document.createElement(y),w=document.createElement(y)),x.appendChild(w),w.dataset.src=f,this.nonReactWrapper=this.reactWrapper.appendChild(x);var v=function(P){if(i.removeSVG(),!i._isMounted){d(P);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){d(P)})},E=function(P,A){if(P){v(P);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{g(A)}catch(R){v(R)}})},S=function(P){if(P.setAttribute("role","img"),s){var A=P.querySelector(":scope > desc");A&&P.removeChild(A);var R=document.createElement("desc");R.innerHTML=s,P.prepend(R)}if(u){var N=P.querySelector(":scope > title");N&&P.removeChild(N);var H=document.createElement("title");H.innerHTML=u,P.prepend(H)}try{m(P)}catch(L){v(L)}};vd(w,{afterEach:E,beforeEach:S,cacheRequests:h,evalScripts:a,httpRequestWithCredentials:l,renumerateIRIElements:c})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;bd(Xe({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var s=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var a=i.wrapper,l=id(i,wd),c=a;return p.reactExports.createElement(c,Xe({},l,{ref:this.refCallback},a==="svg"?{xmlns:Re,xmlnsXlink:rs}:{}),this.state.isLoading&&s&&p.reactExports.createElement(s,null),this.state.hasError&&o&&p.reactExports.createElement(o,null))},e}(p.reactExports.Component);Cr.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Cr.propTypes={afterInjection:p.propTypesExports.func,beforeInjection:p.propTypesExports.func,desc:p.propTypesExports.string,evalScripts:p.propTypesExports.oneOf(["always","once","never"]),fallback:p.propTypesExports.oneOfType([p.propTypesExports.func,p.propTypesExports.object,p.propTypesExports.string]),httpRequestWithCredentials:p.propTypesExports.bool,loading:p.propTypesExports.oneOfType([p.propTypesExports.func,p.propTypesExports.object,p.propTypesExports.string]),onError:p.propTypesExports.func,renumerateIRIElements:p.propTypesExports.bool,src:p.propTypesExports.string.isRequired,title:p.propTypesExports.string,useRequestCache:p.propTypesExports.bool,wrapper:p.propTypesExports.oneOf(["div","span","svg"])};function Ed(t){return p.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:p.jsxRuntimeExports.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function Sd(t){const{children:e,parentRef:n,onlyChild:r}=t,[i,o]=p.reactExports.useState({top:0,left:0});return p.reactExports.useLayoutEffect(()=>{if(n.current){const s=n.current.getBoundingClientRect();o({top:s.top,left:s.left+s.width})}},[n]),r?e:p.reactDomExports.createPortal(p.jsxRuntimeExports.jsx(aa.div,{style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},children:e}),n.current)}function ua({item:t,level:e=0,...n}){var P;const{isActive:r,isCollapsed:i,expanded:o,toggleExpand:s}=n,a=`level-${e}`,l=i?"collapsed":"expanded",c=r(t.id)?"active":"",f=(A,R=a)=>`${A} ${R} ${l} ${c}`,u=!!((P=t.children)!=null&&P.length),[h,d]=p.reactExports.useState(!1),m=p.reactExports.useRef();function g(A){var L;const{level:R,hovered:N,parentRef:H}=A;return!u||i&&R>=2&&!N?null:p.jsxRuntimeExports.jsx(Sd,{parentRef:H,onlyChild:!i||i&&R<2,children:p.jsxRuntimeExports.jsx(aa.div,{className:f("menu-item__dropdown",`level-${R}`),initial:{height:i?"auto":0},animate:{height:i||o(t.id)?"auto":0},transition:{duration:.2},children:(L=t.children)==null?void 0:L.map(B=>p.reactExports.createElement(ua,{...n,key:B.id,item:B,level:R}))},+i)})}const y=window.location.origin,x=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},w=window.location.pathname.split("/")[1],v=x.pathname.split("/")[1],E=n.ssr||!y.includes("local")&&y!==x.origin||v!==w,S=u?"div":E?"a":ll,T=t.path&&n.replacePath?n.replacePath(t.path):t.path||"#";return p.jsxRuntimeExports.jsxs("div",{ref:m,className:f("menu-item__wrapper"),onMouseEnter:()=>i&&d(!0),onMouseLeave:()=>i&&d(!1),children:[p.jsxRuntimeExports.jsxs(S,{to:T,href:T,style:{paddingLeft:`${i?"0.5rem":`${e*1}rem`}`},className:f("menu-item__link"),onClick:A=>{u&&(A.preventDefault(),i||s(t.id))},children:[e!==0&&p.jsxRuntimeExports.jsx(Td,{cls:f,item:t}),p.jsxRuntimeExports.jsx("span",{className:f("menu-item__label"),children:t.name}),u&&p.jsxRuntimeExports.jsx("div",{className:f("menu-item__icon-arrow__wrapper"),children:p.jsxRuntimeExports.jsx(Ed,{className:f(`menu-item__icon-arrow__icon ${o(t.id)?"open":"close"}`)})})]}),g({level:e+1,hovered:h,parentRef:m})]},t.id)}function Td({item:t,cls:e}){var s,a;const[n,r]=p.reactExports.useState(!1),i=()=>{r(!0)},o=(s=t.icon)==null?void 0:s.endsWith(".svg");return p.jsxRuntimeExports.jsx("div",{className:e("menu-item__icon"),children:n?p.jsxRuntimeExports.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(a=t.name.trim().at(0))==null?void 0:a.toUpperCase()}):o?p.jsxRuntimeExports.jsx(Cr,{src:t.icon,beforeInjection:l=>{l.setAttribute("style","margin: 0 auto;"),l.querySelectorAll("path").forEach(f=>{f.setAttribute("stroke","currentColor")})}}):p.jsxRuntimeExports.jsx("img",{src:t.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:i})})}function is(t){for(;t.startsWith("/");)t=t.slice(1);return t}function fa(t,e,n=[]){for(const r of t){if(console.log(r.path,e,r.path===e),is(r.path||"")===is(e))return[...n,r];if(r.children){const i=fa(r.children,e,[...n,r]);if(i)return i}}return null}function Pd(t){return p.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:p.jsxRuntimeExports.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}function ha(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ad}=Object.prototype,{getPrototypeOf:Rr}=Object,cn=(t=>e=>{const n=Ad.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),at=t=>(t=t.toLowerCase(),e=>cn(e)===t),un=t=>e=>typeof e===t,{isArray:Zt}=Array,me=un("undefined");function Cd(t){return t!==null&&!me(t)&&t.constructor!==null&&!me(t.constructor)&&Z(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const da=at("ArrayBuffer");function Rd(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&da(t.buffer),e}const Od=un("string"),Z=un("function"),pa=un("number"),fn=t=>t!==null&&typeof t=="object",Vd=t=>t===!0||t===!1,je=t=>{if(cn(t)!=="object")return!1;const e=Rr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},kd=at("Date"),Md=at("File"),jd=at("Blob"),Ld=at("FileList"),Dd=t=>fn(t)&&Z(t.pipe),_d=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Z(t.append)&&((e=cn(t))==="formdata"||e==="object"&&Z(t.toString)&&t.toString()==="[object FormData]"))},Fd=at("URLSearchParams"),Nd=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function be(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),Zt(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let a;for(r=0;r<s;r++)a=o[r],e.call(null,t[a],a,t)}}function ma(t,e){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 ga=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ya=t=>!me(t)&&t!==ga;function Qn(){const{caseless:t}=ya(this)&&this||{},e={},n=(r,i)=>{const o=t&&ma(e,i)||i;je(e[o])&&je(r)?e[o]=Qn(e[o],r):je(r)?e[o]=Qn({},r):Zt(r)?e[o]=r.slice():e[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&be(arguments[r],n);return e}const Bd=(t,e,n,{allOwnKeys:r}={})=>(be(e,(i,o)=>{n&&Z(i)?t[o]=ha(i,n):t[o]=i},{allOwnKeys:r}),t),Id=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Wd=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Ud=(t,e,n,r)=>{let i,o,s;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&Rr(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},zd=(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},Hd=t=>{if(!t)return null;if(Zt(t))return t;let e=t.length;if(!pa(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},$d=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Rr(Uint8Array)),qd=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},Gd=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Xd=at("HTMLFormElement"),Kd=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),ss=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Yd=at("RegExp"),va=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};be(n,(i,o)=>{let s;(s=e(i,o,t))!==!1&&(r[o]=s||i)}),Object.defineProperties(t,r)},Jd=t=>{va(t,(e,n)=>{if(Z(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Z(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+"'")})}})},Zd=(t,e)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Zt(t)?r(t):r(String(t).split(e)),n},Qd=()=>{},tp=(t,e)=>(t=+t,Number.isFinite(t)?t:e),jn="abcdefghijklmnopqrstuvwxyz",os="0123456789",xa={DIGIT:os,ALPHA:jn,ALPHA_DIGIT:jn+jn.toUpperCase()+os},ep=(t=16,e=xa.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function np(t){return!!(t&&Z(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const rp=t=>{const e=new Array(10),n=(r,i)=>{if(fn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const o=Zt(r)?[]:{};return be(r,(s,a)=>{const l=n(s,i+1);!me(l)&&(o[a]=l)}),e[i]=void 0,o}}return r};return n(t,0)},ip=at("AsyncFunction"),sp=t=>t&&(fn(t)||Z(t))&&Z(t.then)&&Z(t.catch),b={isArray:Zt,isArrayBuffer:da,isBuffer:Cd,isFormData:_d,isArrayBufferView:Rd,isString:Od,isNumber:pa,isBoolean:Vd,isObject:fn,isPlainObject:je,isUndefined:me,isDate:kd,isFile:Md,isBlob:jd,isRegExp:Yd,isFunction:Z,isStream:Dd,isURLSearchParams:Fd,isTypedArray:$d,isFileList:Ld,forEach:be,merge:Qn,extend:Bd,trim:Nd,stripBOM:Id,inherits:Wd,toFlatObject:Ud,kindOf:cn,kindOfTest:at,endsWith:zd,toArray:Hd,forEachEntry:qd,matchAll:Gd,isHTMLForm:Xd,hasOwnProperty:ss,hasOwnProp:ss,reduceDescriptors:va,freezeMethods:Jd,toObjectSet:Zd,toCamelCase:Kd,noop:Qd,toFiniteNumber:tp,findKey:ma,global:ga,isContextDefined:ya,ALPHABET:xa,generateString:ep,isSpecCompliantForm:np,toJSONObject:rp,isAsyncFn:ip,isThenable:sp};function O(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}b.inherits(O,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:b.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ba=O.prototype,wa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{wa[t]={value:t}});Object.defineProperties(O,wa);Object.defineProperty(ba,"isAxiosError",{value:!0});O.from=(t,e,n,r,i,o)=>{const s=Object.create(ba);return b.toFlatObject(t,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),O.call(s,t.message,e,n,r,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const op=null;function tr(t){return b.isPlainObject(t)||b.isArray(t)}function Ea(t){return b.endsWith(t,"[]")?t.slice(0,-2):t}function as(t,e,n){return t?t.concat(e).map(function(i,o){return i=Ea(i),!n&&o?"["+i+"]":i}).join(n?".":""):e}function ap(t){return b.isArray(t)&&!t.some(tr)}const lp=b.toFlatObject(b,{},null,function(e){return/^is[A-Z]/.test(e)});function hn(t,e,n){if(!b.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!b.isUndefined(y[g])});const r=n.metaTokens,i=n.visitor||f,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(e);if(!b.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(b.isDate(m))return m.toISOString();if(!l&&b.isBlob(m))throw new O("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(m)||b.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,g,y){let x=m;if(m&&!y&&typeof m=="object"){if(b.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(b.isArray(m)&&ap(m)||(b.isFileList(m)||b.endsWith(g,"[]"))&&(x=b.toArray(m)))return g=Ea(g),x.forEach(function(v,E){!(b.isUndefined(v)||v===null)&&e.append(s===!0?as([g],E,o):s===null?g:g+"[]",c(v))}),!1}return tr(m)?!0:(e.append(as(y,g,o),c(m)),!1)}const u=[],h=Object.assign(lp,{defaultVisitor:f,convertValue:c,isVisitable:tr});function d(m,g){if(!b.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(m),b.forEach(m,function(x,w){(!(b.isUndefined(x)||x===null)&&i.call(e,x,b.isString(w)?w.trim():w,g,h))===!0&&d(x,g?g.concat(w):[w])}),u.pop()}}if(!b.isObject(t))throw new TypeError("data must be an object");return d(t),e}function ls(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Or(t,e){this._pairs=[],t&&hn(t,this,e)}const Sa=Or.prototype;Sa.append=function(e,n){this._pairs.push([e,n])};Sa.toString=function(e){const n=e?function(r){return e.call(this,r,ls)}:ls;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function cp(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ta(t,e,n){if(!e)return t;const r=n&&n.encode||cp,i=n&&n.serialize;let o;if(i?o=i(e,n):o=b.isURLSearchParams(e)?e.toString():new Or(e,n).toString(r),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class up{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){b.forEach(this.handlers,function(r){r!==null&&e(r)})}}const cs=up,Pa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fp=typeof URLSearchParams<"u"?URLSearchParams:Or,hp=typeof FormData<"u"?FormData:null,dp=typeof Blob<"u"?Blob:null,pp={isBrowser:!0,classes:{URLSearchParams:fp,FormData:hp,Blob:dp},protocols:["http","https","file","blob","url","data"]},Aa=typeof window<"u"&&typeof document<"u",mp=(t=>Aa&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),gp=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),yp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Aa,hasStandardBrowserEnv:mp,hasStandardBrowserWebWorkerEnv:gp},Symbol.toStringTag,{value:"Module"})),st={...yp,...pp};function vp(t,e){return hn(t,new st.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return st.isNode&&b.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function xp(t){return b.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function bp(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}function Ca(t){function e(n,r,i,o){let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=o>=n.length;return s=!s&&b.isArray(i)?i.length:s,l?(b.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!b.isObject(i[s]))&&(i[s]=[]),e(n,r,i[s],o)&&b.isArray(i[s])&&(i[s]=bp(i[s])),!a)}if(b.isFormData(t)&&b.isFunction(t.entries)){const n={};return b.forEachEntry(t,(r,i)=>{e(xp(r),i,n,0)}),n}return null}function wp(t,e,n){if(b.isString(t))try{return(e||JSON.parse)(t),b.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Vr={transitional:Pa,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=b.isObject(e);if(o&&b.isHTMLForm(e)&&(e=new FormData(e)),b.isFormData(e))return i&&i?JSON.stringify(Ca(e)):e;if(b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e))return e;if(b.isArrayBufferView(e))return e.buffer;if(b.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vp(e,this.formSerializer).toString();if((a=b.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return hn(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),wp(e)):e}],transformResponse:[function(e){const n=this.transitional||Vr.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(e&&b.isString(e)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?O.from(a,O.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],t=>{Vr.headers[t]={}});const kr=Vr,Ep=b.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"]),Sp=t=>{const e={};let n,r,i;return t&&t.split(`
33
- `).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||e[n]&&Ep[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},us=Symbol("internals");function re(t){return t&&String(t).trim().toLowerCase()}function Le(t){return t===!1||t==null?t:b.isArray(t)?t.map(Le):String(t)}function Tp(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 Pp=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ln(t,e,n,r,i){if(b.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!b.isString(e)){if(b.isString(r))return e.indexOf(r)!==-1;if(b.isRegExp(r))return r.test(e)}}function Ap(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Cp(t,e){const n=b.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,o,s){return this[r].call(this,e,i,o,s)},configurable:!0})})}class dn{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function o(a,l,c){const f=re(l);if(!f)throw new Error("header name must be a non-empty string");const u=b.findKey(i,f);(!u||i[u]===void 0||c===!0||c===void 0&&i[u]!==!1)&&(i[u||l]=Le(a))}const s=(a,l)=>b.forEach(a,(c,f)=>o(c,f,l));return b.isPlainObject(e)||e instanceof this.constructor?s(e,n):b.isString(e)&&(e=e.trim())&&!Pp(e)?s(Sp(e),n):e!=null&&o(n,e,r),this}get(e,n){if(e=re(e),e){const r=b.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return Tp(i);if(b.isFunction(n))return n.call(this,i,r);if(b.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=re(e),e){const r=b.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Ln(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function o(s){if(s=re(s),s){const a=b.findKey(r,s);a&&(!n||Ln(r,r[a],a,n))&&(delete r[a],i=!0)}}return b.isArray(e)?e.forEach(o):o(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!e||Ln(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const n=this,r={};return b.forEach(this,(i,o)=>{const s=b.findKey(r,o);if(s){n[s]=Le(i),delete n[o];return}const a=e?Ap(o):String(o).trim();a!==o&&delete n[o],n[a]=Le(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return b.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&b.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(`
34
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[us]=this[us]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=re(s);r[a]||(Cp(i,s),r[a]=!0)}return b.isArray(e)?e.forEach(o):o(e),this}}dn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(dn.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});b.freezeMethods(dn);const ht=dn;function Dn(t,e){const n=this||kr,r=e||n,i=ht.from(r.headers);let o=r.data;return b.forEach(t,function(a){o=a.call(n,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function Ra(t){return!!(t&&t.__CANCEL__)}function we(t,e,n){O.call(this,t??"canceled",O.ERR_CANCELED,e,n),this.name="CanceledError"}b.inherits(we,O,{__CANCEL__:!0});function Rp(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new O("Request failed with status code "+n.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Op=st.hasStandardBrowserEnv?{write(t,e,n,r,i,o){const s=[t+"="+encodeURIComponent(e)];b.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),b.isString(r)&&s.push("path="+r),b.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vp(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function kp(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Oa(t,e){return t&&!Vp(e)?kp(t,e):e}const Mp=st.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const a=b.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function jp(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Lp(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,o=0,s;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),f=r[o];s||(s=c),n[i]=l,r[i]=c;let u=o,h=0;for(;u!==i;)h+=n[u++],u=u%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),c-s<e)return;const d=f&&c-f;return d?Math.round(h*1e3/d):void 0}}function fs(t,e){let n=0;const r=Lp(50,250);return i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a),c=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-o)/l:void 0,event:i};f[e?"download":"upload"]=!0,t(f)}}const Dp=typeof XMLHttpRequest<"u",_p=Dp&&function(t){return new Promise(function(n,r){let i=t.data;const o=ht.from(t.headers).normalize();let{responseType:s,withXSRFToken:a}=t,l;function c(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let f;if(b.isFormData(i)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[g,...y]=f?f.split(";").map(x=>x.trim()).filter(Boolean):[];o.setContentType([g||"multipart/form-data",...y].join("; "))}}let u=new XMLHttpRequest;if(t.auth){const g=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+y))}const h=Oa(t.baseURL,t.url);u.open(t.method.toUpperCase(),Ta(h,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function d(){if(!u)return;const g=ht.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:g,config:t,request:u};Rp(function(v){n(v),c()},function(v){r(v),c()},x),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new O("Request aborted",O.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new O("Network Error",O.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let y=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const x=t.transitional||Pa;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),r(new O(y,x.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,t,u)),u=null},st.hasStandardBrowserEnv&&(a&&b.isFunction(a)&&(a=a(t)),a||a!==!1&&Mp(h))){const g=t.xsrfHeaderName&&t.xsrfCookieName&&Op.read(t.xsrfCookieName);g&&o.set(t.xsrfHeaderName,g)}i===void 0&&o.setContentType(null),"setRequestHeader"in u&&b.forEach(o.toJSON(),function(y,x){u.setRequestHeader(x,y)}),b.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),s&&s!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",fs(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",fs(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=g=>{u&&(r(!g||g.type?new we(null,t,u):g),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const m=jp(h);if(m&&st.protocols.indexOf(m)===-1){r(new O("Unsupported protocol "+m+":",O.ERR_BAD_REQUEST,t));return}u.send(i||null)})},er={http:op,xhr:_p};b.forEach(er,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const hs=t=>`- ${t}`,Fp=t=>b.isFunction(t)||t===null||t===!1,Va={getAdapter:t=>{t=b.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o<e;o++){n=t[o];let s;if(r=n,!Fp(n)&&(r=er[(s=String(n)).toLowerCase()],r===void 0))throw new O(`Unknown adapter '${s}'`);if(r)break;i[s||"#"+o]=r}if(!r){const o=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=e?o.length>1?`since :
35
- `+o.map(hs).join(`
36
- `):" "+hs(o[0]):"as no adapter specified";throw new O("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:er};function _n(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new we(null,t)}function ds(t){return _n(t),t.headers=ht.from(t.headers),t.data=Dn.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Va.getAdapter(t.adapter||kr.adapter)(t).then(function(r){return _n(t),r.data=Dn.call(t,t.transformResponse,r),r.headers=ht.from(r.headers),r},function(r){return Ra(r)||(_n(t),r&&r.response&&(r.response.data=Dn.call(t,t.transformResponse,r.response),r.response.headers=ht.from(r.response.headers))),Promise.reject(r)})}const ps=t=>t instanceof ht?t.toJSON():t;function Yt(t,e){e=e||{};const n={};function r(c,f,u){return b.isPlainObject(c)&&b.isPlainObject(f)?b.merge.call({caseless:u},c,f):b.isPlainObject(f)?b.merge({},f):b.isArray(f)?f.slice():f}function i(c,f,u){if(b.isUndefined(f)){if(!b.isUndefined(c))return r(void 0,c,u)}else return r(c,f,u)}function o(c,f){if(!b.isUndefined(f))return r(void 0,f)}function s(c,f){if(b.isUndefined(f)){if(!b.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function a(c,f,u){if(u in e)return r(c,f);if(u in t)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,f)=>i(ps(c),ps(f),!0)};return b.forEach(Object.keys(Object.assign({},t,e)),function(f){const u=l[f]||i,h=u(t[f],e[f],f);b.isUndefined(h)&&u!==a||(n[f]=h)}),n}const ka="1.6.5",Mr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Mr[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const ms={};Mr.transitional=function(e,n,r){function i(o,s){return"[Axios v"+ka+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(e===!1)throw new O(i(s," has been removed"+(n?" in "+n:"")),O.ERR_DEPRECATED);return n&&!ms[s]&&(ms[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,s,a):!0}};function Np(t,e,n){if(typeof t!="object")throw new O("options must be an object",O.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],s=e[o];if(s){const a=t[o],l=a===void 0||s(a,o,t);if(l!==!0)throw new O("option "+o+" must be "+l,O.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new O("Unknown option "+o,O.ERR_BAD_OPTION)}}const nr={assertOptions:Np,validators:Mr},vt=nr.validators;class Ke{constructor(e){this.defaults=e,this.interceptors={request:new cs,response:new cs}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Yt(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&nr.assertOptions(r,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),i!=null&&(b.isFunction(i)?n.paramsSerializer={serialize:i}:nr.assertOptions(i,{encode:vt.function,serialize:vt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&b.merge(o.common,o[n.method]);o&&b.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=ht.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let f,u=0,h;if(!l){const m=[ds.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,c),h=m.length,f=Promise.resolve(n);u<h;)f=f.then(m[u++],m[u++]);return f}h=a.length;let d=n;for(u=0;u<h;){const m=a[u++],g=a[u++];try{d=m(d)}catch(y){g.call(this,y);break}}try{f=ds.call(this,d)}catch(m){return Promise.reject(m)}for(u=0,h=c.length;u<h;)f=f.then(c[u++],c[u++]);return f}getUri(e){e=Yt(this.defaults,e);const n=Oa(e.baseURL,e.url);return Ta(n,e.params,e.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(e){Ke.prototype[e]=function(n,r){return this.request(Yt(r||{},{method:e,url:n,data:(r||{}).data}))}});b.forEach(["post","put","patch"],function(e){function n(r){return function(o,s,a){return this.request(Yt(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Ke.prototype[e]=n(),Ke.prototype[e+"Form"]=n(!0)});const De=Ke;class jr{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},e(function(o,s,a){r.reason||(r.reason=new we(o,s,a),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)}static source(){let e;return{token:new jr(function(i){e=i}),cancel:e}}}const Bp=jr;function Ip(t){return function(n){return t.apply(null,n)}}function Wp(t){return b.isObject(t)&&t.isAxiosError===!0}const rr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rr).forEach(([t,e])=>{rr[e]=t});const Up=rr;function Ma(t){const e=new De(t),n=ha(De.prototype.request,e);return b.extend(n,De.prototype,e,{allOwnKeys:!0}),b.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Ma(Yt(t,i))},n}const F=Ma(kr);F.Axios=De;F.CanceledError=we;F.CancelToken=Bp;F.isCancel=Ra;F.VERSION=ka;F.toFormData=hn;F.AxiosError=O;F.Cancel=F.CanceledError;F.all=function(e){return Promise.all(e)};F.spread=Ip;F.isAxiosError=Wp;F.mergeConfig=Yt;F.AxiosHeaders=ht;F.formToJSON=t=>Ca(b.isHTMLForm(t)?new FormData(t):t);F.getAdapter=Va.getAdapter;F.HttpStatusCode=Up;F.default=F;const zp=F,Hp=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
37
- `;function $p(){return p.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:p.jsxRuntimeExports.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function qp(){return p.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:p.jsxRuntimeExports.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}const Gp=`.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;padding:0 8px}.side-bar.expanded{width:18rem}.side-bar.collapsed{width:64px;padding-left:4px;padding-right:4px}.side-bar__menu{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.side-bar__menu.collapsed{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px}.side-bar__logout-btn__text.collapsed{display:none}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:0 16px;min-height:48px;border-radius:.375rem}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__logout-btn.collapsed{justify-content:center}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;margin-top:4px}.menu-item__wrapper:first-child,.menu-item__wrapper.collapsed{margin-top:0}.menu-item__wrapper.collapsed.level-1{margin-top:4px}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:auto}.menu-item__link.menu-item__link.collapsed.level-0{display:none}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.menu-item__icon.collapsed.level-1{width:100%}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-1{text-align:center;margin-left:0;display:none}.menu-item__label.level-0{color:#85858a}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:-3px}.menu-item__icon-arrow__wrapper.expanded{right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{margin-top:4px;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}
38
- `,Lr=t=>typeof t=="number"&&!isNaN(t),ce=t=>typeof t=="string",ja=t=>typeof t=="function",Xp=t=>p.reactExports.isValidElement(t)||ce(t)||ja(t)||Lr(t),it=new Map;let ir=[];const gs=new Set,La=()=>it.size>0;function Kp(t,e){var n;if(e)return!((n=it.get(e))==null||!n.isToastActive(t));let r=!1;return it.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function Yp(t,e){Xp(t)&&(La()||ir.push({content:t,options:e}),it.forEach(n=>{n.buildToast(t,e)}))}function ys(t,e){it.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}let Jp=1;const Da=()=>""+Jp++;function Zp(t){return t&&(ce(t.toastId)||Lr(t.toastId))?t.toastId:Da()}function ue(t,e){return Yp(t,e),e.toastId}function Ye(t,e){return{...e,type:e&&e.type||t,toastId:Zp(e)}}function Oe(t){return(e,n)=>ue(e,Ye(t,n))}function M(t,e){return ue(t,Ye("default",e))}M.loading=(t,e)=>ue(t,Ye("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),M.promise=function(t,e,n){let r,{pending:i,error:o,success:s}=e;i&&(r=ce(i)?M.loading(i,n):M.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(f,u,h)=>{if(u==null)return void M.dismiss(r);const d={type:f,...a,...n,data:h},m=ce(u)?{render:u}:u;return r?M.update(r,{...d,...m}):M(m.render,{...d,...m}),h},c=ja(t)?t():t;return c.then(f=>l("success",s,f)).catch(f=>l("error",o,f)),c},M.success=Oe("success"),M.info=Oe("info"),M.error=Oe("error"),M.warning=Oe("warning"),M.warn=M.warning,M.dark=(t,e)=>ue(t,Ye("default",{theme:"dark",...e})),M.dismiss=function(t){(function(e){var n;if(La()){if(e==null||ce(n=e)||Lr(n))it.forEach(i=>{i.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var r;(r=it.get(e.containerId))!=null&&r.removeToast(e.id)||it.forEach(i=>{i.removeToast(e.id)})}}else ir=ir.filter(i=>e!=null&&i.options.toastId!==e)})(t)},M.clearWaitingQueue=function(t){t===void 0&&(t={}),it.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},M.isActive=Kp,M.update=function(t,e){e===void 0&&(e={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=it.get(s||1))==null?void 0:o.toasts.get(r)})(t,e);if(n){const{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:Da()};o.toastId!==t&&(o.staleId=t);const s=o.render||i;delete o.render,ue(s,o)}},M.done=t=>{M.update(t,{progress:1})},M.onChange=function(t){return gs.add(t),()=>{gs.delete(t)}},M.play=t=>ys(!0,t),M.pause=t=>ys(!1,t);const vs={primary:"#93D500",secondary:"#007BFF",textPrimary:"#000000",textSecondary:"#101010",priText:"#009D4F",lightPrimary:"#E8F5E9",darkPrimary:"#2E7D32",lightSecondary:"#E8F5E9",darkSecondary:"#339790",danger:"#E01B00",darkDanger:"#BE1700",warning:"#FFB600",success:"#009D4F",error:"#E9645B",successChip:"#F4FBE5",errorChip:"#E01B001A",warningChip:"#FFB8001A",secondaryChip:"#E5F2FF",appBarColor:"#000000",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey600:"#85858A",gold100:"#FFFBE6",gold200:"#FFF1B8",gold300:"#FFE58F",gold600:"#FAAD14",gold700:"#D48806",outlinedButton:"#009D4F",containedButtonString:"#000000",pink:"#E81F76"};function Qp(){return p.jsxRuntimeExports.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),p.jsxRuntimeExports.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),p.jsxRuntimeExports.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const tm={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},em=t=>{M.error(t,{icon:p.jsxRuntimeExports.jsx(Qp,{}),position:"bottom-right",style:{...tm,background:"#F7E4E1",borderColor:vs.danger,color:vs.danger}})},nm=t=>{window.location.href=`${t}/authentication/logout?callbackUrl=${window.location.href}`};function rm(t){return p.jsxRuntimeExports.jsx(p.ShadowDomWrapper,{styles:[Hp,Gp],style:{zIndex:1200},children:p.jsxRuntimeExports.jsx(im,{...t})})}function im(t){const{baseUrl:e,menuPath:n}=t,r=tn(),[i,o]=p.reactExports.useState([]),[s,a]=p.reactExports.useState(!1),l=(fa(i,r.pathname)||[]).filter(x=>x.parentKey!==0),[c,f]=p.reactExports.useState({}),u=x=>{f({...c,[x]:!c[x]})},h=()=>{a(!s)};p.reactExports.useEffect(()=>{(async()=>{const w=e+(n||"/global-menu-config/api/v1/menu-items/user"),v=await zp.get(w,{withCredentials:!0}).then(S=>S.data).catch(S=>{var T,P;em(((P=(T=S.response)==null?void 0:T.data)==null?void 0:P.errorMessage)||"Have error when get menu items")}),E={};v.forEach(S=>{S.children&&(E[S.id]=!0)}),f(E),o(v.map(S=>({...S,parentKey:0})))})()},[e,n]);const[d,m]=p.reactExports.useState(!1),g=s?"collapsed":"expanded",y=x=>`${x} ${g}`;return p.jsxRuntimeExports.jsxs("div",{className:y("side-bar"),children:[p.jsxRuntimeExports.jsx("div",{className:y("side-bar__wrapper-toggle-btn"),children:p.jsxRuntimeExports.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:h,children:s?p.jsxRuntimeExports.jsx(qp,{}):p.jsxRuntimeExports.jsx($p,{})})}),p.jsxRuntimeExports.jsx(Ns,{className:y("side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:i.map(x=>{const w=v=>l.some(E=>E.id===v);return p.jsxRuntimeExports.jsx(ua,{item:x,isActive:w,isCollapsed:s,expanded:v=>c[v],toggleExpand:u,replacePath:t.replacePath},x.id)})}),p.jsxRuntimeExports.jsxs("div",{className:y("side-bar__wrap-btn-logout"),children:[p.jsxRuntimeExports.jsxs("button",{className:y("side-bar__logout-btn"),onClick:()=>m(!0),children:[p.jsxRuntimeExports.jsx(Pd,{}),p.jsxRuntimeExports.jsx("span",{className:y("side-bar__logout-btn__text"),children:"Logout"})]}),p.jsxRuntimeExports.jsx(p.LogoutConfirmModal,{isOpen:d,onClose:()=>m(!1),onConfirm:()=>t.logout?t.logout():nm(t.baseUrl)})]})]})}function sm(t){return p.jsxRuntimeExports.jsx(sl,{children:p.jsxRuntimeExports.jsx(rm,{...t,ssr:!0})})}const om=p.s(sm,{props:{baseUrl:"string",menuPath:"string",logout:"function",replacePath:"function",ssr:"boolean"}});customElements.define("global-menu",om);
37
+ */var Ih=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,VR=/\\([\u000b\u0020-\u00ff])/g,BR=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,FR=NR;function NR(t){if(!t)throw new TypeError("argument string is required");var n=typeof t=="object"?kR(t):t;if(typeof n!="string")throw new TypeError("argument string is required to be a string");var r=n.indexOf(";"),s=r!==-1?n.slice(0,r).trim():n.trim();if(!BR.test(s))throw new TypeError("invalid media type");var a=new WR(s.toLowerCase());if(r!==-1){var u,l,f;for(Ih.lastIndex=r;l=Ih.exec(n);){if(l.index!==r)throw new TypeError("invalid parameter format");r+=l[0].length,u=l[1].toLowerCase(),f=l[2],f.charCodeAt(0)===34&&(f=f.slice(1,-1),f.indexOf("\\")!==-1&&(f=f.replace(VR,"$1"))),a.parameters[u]=f}if(r!==n.length)throw new TypeError("invalid parameter format")}return a}function kR(t){var n;if(typeof t.getHeader=="function"?n=t.getHeader("content-type"):typeof t.headers=="object"&&(n=t.headers&&t.headers["content-type"]),typeof n!="string")throw new TypeError("content-type header is missing from object");return n}function WR(t){this.parameters=Object.create(null),this.type=t}var or=new Map,Zp=function(n){return n.cloneNode(!0)},Dh=function(){return window.location.protocol==="file:"},Qp=function(n,r,s){var a=new XMLHttpRequest;a.onreadystatechange=function(){try{if(!/\.svg/i.test(n)&&a.readyState===2){var u=a.getResponseHeader("Content-Type");if(!u)throw new Error("Content type not found");var l=FR(u).type;if(!(l==="image/svg+xml"||l==="text/plain"))throw new Error("Invalid content type: ".concat(l))}if(a.readyState===4){if(a.status===404||a.responseXML===null)throw new Error(Dh()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+n);if(a.status===200||Dh()&&a.status===0)s(null,a);else throw new Error("There was a problem injecting the SVG: "+a.status+" "+a.statusText)}}catch(f){if(a.abort(),f instanceof Error)s(f,a);else throw f}},a.open("GET",n),a.withCredentials=r,a.overrideMimeType&&a.overrideMimeType("text/xml"),a.send()},xn={},Vh=function(n,r){xn[n]=xn[n]||[],xn[n].push(r)},jR=function(n){for(var r=function(l,f){setTimeout(function(){if(Array.isArray(xn[n])){var h=or.get(n),m=xn[n][l];h instanceof SVGSVGElement&&m(null,Zp(h)),h instanceof Error&&m(h),l===xn[n].length-1&&delete xn[n]}},0)},s=0,a=xn[n].length;s<a;s++)r(s)},UR=function(n,r,s){if(or.has(n)){var a=or.get(n);if(a===void 0){Vh(n,s);return}if(a instanceof SVGSVGElement){s(null,Zp(a));return}}or.set(n,void 0),Vh(n,s),Qp(n,r,function(u,l){var f;u?or.set(n,u):((f=l.responseXML)===null||f===void 0?void 0:f.documentElement)instanceof SVGSVGElement&&or.set(n,l.responseXML.documentElement),jR(n)})},zR=function(n,r,s){Qp(n,r,function(a,u){var l;a?s(a):((l=u.responseXML)===null||l===void 0?void 0:l.documentElement)instanceof SVGSVGElement&&s(null,u.responseXML.documentElement)})},HR=0,$R=function(){return++HR},Ie=[],Bh={},GR="http://www.w3.org/2000/svg",Ca="http://www.w3.org/1999/xlink",Fh=function(n,r,s,a,u,l,f){var h=n.getAttribute("data-src")||n.getAttribute("src");if(!h){f(new Error("Invalid data-src or src attribute"));return}if(Ie.indexOf(n)!==-1){Ie.splice(Ie.indexOf(n),1),n=null;return}Ie.push(n),n.setAttribute("src","");var m=a?UR:zR;m(h,u,function(g,p){if(!p){Ie.splice(Ie.indexOf(n),1),n=null,f(g);return}var b=n.getAttribute("id");b&&p.setAttribute("id",b);var w=n.getAttribute("title");w&&p.setAttribute("title",w);var S=n.getAttribute("width");S&&p.setAttribute("width",S);var R=n.getAttribute("height");R&&p.setAttribute("height",R);var C=Array.from(new Set(Ra(Ra(Ra([],(p.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(n.getAttribute("class")||"").split(" "),!0))).join(" ").trim();p.setAttribute("class",C);var M=n.getAttribute("style");M&&p.setAttribute("style",M),p.setAttribute("data-src",h);var B=[].filter.call(n.attributes,function(ft){return/^data-\w[\w-]*$/.test(ft.name)});if(Array.prototype.forEach.call(B,function(ft){ft.name&&ft.value&&p.setAttribute(ft.name,ft.value)}),s){var O={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},N,k,z,U,W;Object.keys(O).forEach(function(ft){N=ft,z=O[ft],k=p.querySelectorAll(N+"[id]");for(var Pe=function(en,vr){U=k[en].id,W=U+"-"+$R();var Gt;Array.prototype.forEach.call(z,function(zn){Gt=p.querySelectorAll("["+zn+'*="'+U+'"]');for(var Nt=0,Tn=Gt.length;Nt<Tn;Nt++){var si=Gt[Nt].getAttribute(zn);si&&!si.match(new RegExp('url\\("?#'+U+'"?\\)'))||Gt[Nt].setAttribute(zn,"url(#"+W+")")}});for(var qt=p.querySelectorAll("[*|href]"),nn=[],ue=0,Ee=qt.length;ue<Ee;ue++){var Ne=qt[ue].getAttributeNS(Ca,"href");Ne&&Ne.toString()==="#"+k[en].id&&nn.push(qt[ue])}for(var Ft=0,An=nn.length;Ft<An;Ft++)nn[Ft].setAttributeNS(Ca,"href","#"+W);k[en].id=W},we=0,rt=k.length;we<rt;we++)Pe(we)})}p.removeAttribute("xmlns:a");for(var q=p.querySelectorAll("script"),mt=[],Dt,gt,_t=0,Rt=q.length;_t<Rt;_t++)gt=q[_t].getAttribute("type"),(!gt||gt==="application/ecmascript"||gt==="application/javascript"||gt==="text/javascript")&&(Dt=q[_t].innerText||q[_t].textContent,Dt&&mt.push(Dt),p.removeChild(q[_t]));if(mt.length>0&&(r==="always"||r==="once"&&!Bh[h])){for(var le=0,St=mt.length;le<St;le++)new Function(mt[le])(window);Bh[h]=!0}var Mt=p.querySelectorAll("style");if(Array.prototype.forEach.call(Mt,function(ft){ft.textContent+=""}),p.setAttribute("xmlns",GR),p.setAttribute("xmlns:xlink",Ca),l(p),!n.parentNode){Ie.splice(Ie.indexOf(n),1),n=null,f(new Error("Parent node is null"));return}n.parentNode.replaceChild(p,n),Ie.splice(Ie.indexOf(n),1),n=null,f(null,p)})},qR=function(n,r){var s=r===void 0?{}:r,a=s.afterAll,u=a===void 0?function(){}:a,l=s.afterEach,f=l===void 0?function(){}:l,h=s.beforeEach,m=h===void 0?function(){}:h,g=s.cacheRequests,p=g===void 0?!0:g,b=s.evalScripts,w=b===void 0?"never":b,S=s.httpRequestWithCredentials,R=S===void 0?!1:S,C=s.renumerateIRIElements,M=C===void 0?!0:C;if(n&&"length"in n)for(var B=0,O=0,N=n.length;O<N;O++)Fh(n[O],w,M,p,R,m,function(k,z){f(k,z),n&&"length"in n&&n.length===++B&&u(B)});else n?Fh(n,w,M,p,R,m,function(k,z){f(k,z),u(1),n=null}):u(0)},KR=function(n){var r=(n==null?void 0:n.ownerDocument)||document;return r.defaultView||window},XR=function(n,r){for(var s in n)if(!(s in r))return!0;for(var a in r)if(n[a]!==r[a])return!0;return!1},YR=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],es="http://www.w3.org/2000/svg",Nh="http://www.w3.org/1999/xlink",Tl=function(t){DR(n,t);function n(){for(var s,a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];return s=t.call.apply(t,[this].concat(u))||this,s.initialState={hasError:!1,isLoading:!0},s.state=s.initialState,s._isMounted=!1,s.reactWrapper=void 0,s.nonReactWrapper=void 0,s.refCallback=function(f){s.reactWrapper=f},s}var r=n.prototype;return r.renderSVG=function(){var a=this;if(this.reactWrapper instanceof KR(this.reactWrapper).Node){var u=this.props,l=u.desc,f=u.evalScripts,h=u.httpRequestWithCredentials,m=u.renumerateIRIElements,g=u.src,p=u.title,b=u.useRequestCache,w=this.props.onError,S=this.props.beforeInjection,R=this.props.afterInjection,C=this.props.wrapper,M,B;C==="svg"?(M=document.createElementNS(es,C),M.setAttribute("xmlns",es),M.setAttribute("xmlns:xlink",Nh),B=document.createElementNS(es,C)):(M=document.createElement(C),B=document.createElement(C)),M.appendChild(B),B.dataset.src=g,this.nonReactWrapper=this.reactWrapper.appendChild(M);var O=function(U){if(a.removeSVG(),!a._isMounted){w(U);return}a.setState(function(){return{hasError:!0,isLoading:!1}},function(){w(U)})},N=function(U,W){if(U){O(U);return}a._isMounted&&a.setState(function(){return{isLoading:!1}},function(){try{R(W)}catch(q){O(q)}})},k=function(U){if(U.setAttribute("role","img"),l){var W=U.querySelector(":scope > desc");W&&U.removeChild(W);var q=document.createElement("desc");q.innerHTML=l,U.prepend(q)}if(p){var mt=U.querySelector(":scope > title");mt&&U.removeChild(mt);var Dt=document.createElement("title");Dt.innerHTML=p,U.prepend(Dt)}try{S(U)}catch(gt){O(gt)}};qR(B,{afterEach:N,beforeEach:k,cacheRequests:b,evalScripts:f,httpRequestWithCredentials:h,renumerateIRIElements:m})}},r.removeSVG=function(){var a;(a=this.nonReactWrapper)!=null&&a.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},r.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},r.componentDidUpdate=function(a){var u=this;XR(Es({},a),this.props)&&this.setState(function(){return u.initialState},function(){u.removeSVG(),u.renderSVG()})},r.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},r.render=function(){var a=this.props;a.afterInjection,a.beforeInjection,a.desc,a.evalScripts;var u=a.fallback;a.httpRequestWithCredentials;var l=a.loading;a.renumerateIRIElements,a.src,a.title,a.useRequestCache;var f=a.wrapper,h=IR(a,YR),m=f;return _.reactExports.createElement(m,Es({},h,{ref:this.refCallback},f==="svg"?{xmlns:es,xmlnsXlink:Nh}:{}),this.state.isLoading&&l&&_.reactExports.createElement(l,null),this.state.hasError&&u&&_.reactExports.createElement(u,null))},n}(_.reactExports.Component);Tl.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Tl.propTypes={afterInjection:_.propTypesExports.func,beforeInjection:_.propTypesExports.func,desc:_.propTypesExports.string,evalScripts:_.propTypesExports.oneOf(["always","once","never"]),fallback:_.propTypesExports.oneOfType([_.propTypesExports.func,_.propTypesExports.object,_.propTypesExports.string]),httpRequestWithCredentials:_.propTypesExports.bool,loading:_.propTypesExports.oneOfType([_.propTypesExports.func,_.propTypesExports.object,_.propTypesExports.string]),onError:_.propTypesExports.func,renumerateIRIElements:_.propTypesExports.bool,src:_.propTypesExports.string.isRequired,title:_.propTypesExports.string,useRequestCache:_.propTypesExports.bool,wrapper:_.propTypesExports.oneOf(["div","span","svg"])};function JR(t){return _.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:_.jsxRuntimeExports.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function ZR(t){const{children:n,parentRef:r,onlyChild:s}=t,[a,u]=_.reactExports.useState({top:0,left:0});return _.reactExports.useLayoutEffect(()=>{if(r.current){const l=r.current.getBoundingClientRect();u({top:l.top,left:l.left+l.width})}},[r]),s?n:_.reactDomExports.createPortal(_.jsxRuntimeExports.jsx(jp.div,{style:{position:"fixed",top:a.top,left:a.left,zIndex:1200},children:n}),r.current)}function tm({item:t,level:n=0,...r}){var U;const{isActive:s,isCollapsed:a,expanded:u,toggleExpand:l}=r,f=`level-${n}`,h=a?"collapsed":"expanded",m=s(t.id)?"active":"",g=(W,q=f)=>`${W} ${q} ${h} ${m}`,p=!!((U=t.children)!=null&&U.length),[b,w]=_.reactExports.useState(!1),S=_.reactExports.useRef();function R(W){var gt;const{level:q,hovered:mt,parentRef:Dt}=W;return!p||a&&q>=2&&!mt?null:_.jsxRuntimeExports.jsx(ZR,{parentRef:Dt,onlyChild:!a||a&&q<2,children:_.jsxRuntimeExports.jsx(jp.div,{className:g("menu-item__dropdown",`level-${q}`),initial:{height:a?"auto":0},animate:{height:a||u(t.id)?"auto":0},transition:{duration:.2},children:(gt=t.children)==null?void 0:gt.map(_t=>_.reactExports.createElement(tm,{...r,key:_t.id,item:_t,level:q}))},+a)})}const C=window.location.origin,M=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},B=window.location.pathname.split("/")[1],O=M.pathname.split("/")[1],N=r.ssr||!C.includes("local")&&C!==M.origin||O!==B,k=p?"div":N?"a":LR,z=t.path||"#";return _.jsxRuntimeExports.jsxs("div",{ref:S,className:g("menu-item__wrapper"),onMouseEnter:()=>a&&w(!0),onMouseLeave:()=>a&&w(!1),children:[_.jsxRuntimeExports.jsxs(k,{to:z,href:z,style:{paddingLeft:`${a?"0.5rem":`${n*1}rem`}`},className:g("menu-item__link"),onClick:W=>{p&&(W.preventDefault(),a||l(t.id))},children:[n!==0&&_.jsxRuntimeExports.jsx(QR,{cls:g,item:t}),_.jsxRuntimeExports.jsx("span",{className:g("menu-item__label"),children:t.name}),p&&_.jsxRuntimeExports.jsx("div",{className:g("menu-item__icon-arrow__wrapper"),children:_.jsxRuntimeExports.jsx(JR,{className:g(`menu-item__icon-arrow__icon ${u(t.id)?"open":"close"}`)})})]}),R({level:n+1,hovered:b,parentRef:S})]},t.id)}function QR({item:t,cls:n}){var l,f;const[r,s]=_.reactExports.useState(!1),a=()=>{s(!0)},u=(l=t.icon)==null?void 0:l.endsWith(".svg");return _.jsxRuntimeExports.jsx("div",{className:n("menu-item__icon"),children:r?_.jsxRuntimeExports.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(f=t.name.trim().at(0))==null?void 0:f.toUpperCase()}):u?_.jsxRuntimeExports.jsx(Tl,{src:t.icon,beforeInjection:h=>{h.setAttribute("style","margin: 0 auto;"),h.querySelectorAll("path").forEach(g=>{g.setAttribute("stroke","currentColor")})}}):_.jsxRuntimeExports.jsx("img",{src:t.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:a})})}function tC(){return _.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:_.jsxRuntimeExports.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function eC(){return _.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:_.jsxRuntimeExports.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function nC(t){return _.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:_.jsxRuntimeExports.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const rC=`.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;padding:0 8px}.side-bar.expanded{width:18rem}.side-bar.collapsed{width:64px;padding-left:4px;padding-right:4px}.side-bar__menu{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.side-bar__menu.collapsed{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px}.side-bar__logout-btn__text.collapsed{display:none}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:0 16px;min-height:48px;border-radius:.375rem}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__logout-btn.collapsed{justify-content:center}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;margin-top:4px}.menu-item__wrapper:first-child,.menu-item__wrapper.collapsed{margin-top:0}.menu-item__wrapper.collapsed.level-1{margin-top:4px}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:auto}.menu-item__link.menu-item__link.collapsed.level-0{display:none}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.menu-item__icon.collapsed.level-1{width:100%}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-1{text-align:center;margin-left:0;display:none}.menu-item__label.level-0{color:#85858a}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:-3px}.menu-item__icon-arrow__wrapper.expanded{right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{margin-top:4px;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}
38
+ `,iC="@ukpc-lib/react",sC="0.1.12",oC="module",aC="./dist/",lC="./dist/",uC={"./components":{import:"./dist/components/index.js",require:"./dist/components/index.cjs",types:"./dist/components/index.d.ts"},"./share":{import:"./dist/share/index.js",require:"./dist/share/index.cjs",types:"./dist/share/index.d.ts"}},cC={"*":{"*":["./dist/*/index.d.ts"]}},fC=["dist","web-components-bundle"],hC={dev:"vite",build:"npm run build-react && npm run build-wc","build-react":"tsc && vite build --config vite.config.react.ts","build-wc":"tsc && vite build --config vite.config.wc.ts --mode production",lint:"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",preview:"vite preview",publish:"npm publish --access public","build-publish":"npm run build && npm version patch && npm run build && npm run publish"},dC={"@emotion/react":"^11.11.3","@emotion/styled":"^11.11.0","@mui/icons-material":"^5.15.4","@mui/material":"^5.15.4","@r2wc/react-to-web-component":"^2.0.3","@rollup/plugin-replace":"^5.0.5",axios:"^1.6.5",cssnano:"^6.0.3","framer-motion":"^10.18.0","react-query":"^3.39.3","react-router-dom":"^6.21.3","react-shadow":"^20.4.0","react-svg":"^16.1.32","react-toastify":"^10.0.4","react-window":"^1.8.10","react-window-infinite-loader":"^1.0.9","simplebar-react":"^3.2.4","vite-plugin-css-injected-by-js":"^3.3.1"},pC={"@types/node":"^20.8.10","@types/react":"^18.2.15","@types/react-dom":"^18.2.7","@types/react-window-infinite-loader":"^1.0.9","@typescript-eslint/eslint-plugin":"^6.0.0","@typescript-eslint/parser":"^6.0.0","@vitejs/plugin-react-swc":"^3.3.2",autoprefixer:"^10.4.16",eslint:"^8.45.0","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-react-refresh":"^0.4.3",postcss:"^8.4.33",prettier:"^3.0.3",react:"^18.2.0","react-dom":"^18.2.0",tailwindcss:"^3.4.1",typescript:"^5.0.2",vite:"^4.5.1","vite-plugin-css-injected-by-js":"^3.3.1","vite-plugin-dts":"^3.7.0","vite-plugin-lib-inject-css":"^1.3.0"},mC={"@mui/material":"^5.15.4",react:"^18.2.0","react-dom":"^18.2.0","react-query":"^3.39.3","react-router-dom":"^6.21.3",tailwindcss:"^3.4.1"},gC="Thinh Phung",vC="![Screenshot 2024-01-22 at 11 40 08](https://github.com/UKParkingControl/LibShareJS/assets/153060345/99004010-67a2-436b-a5b7-317992137205)",yC="ISC",xC={name:iC,private:!1,version:sC,type:oC,main:aC,module:lC,exports:uC,typesVersions:cC,files:fC,scripts:hC,dependencies:dC,devDependencies:pC,peerDependencies:mC,author:gC,description:vC,license:yC};function bC(t){return _.jsxRuntimeExports.jsx(_.ShadowDomWrapper,{styles:[kE,rC],style:{zIndex:1200},children:_.jsxRuntimeExports.jsx(wC,{...t})})}function wC(t){const{baseUrl:n,menuPath:r}=t,s=ks(),[a,u]=_.reactExports.useState([]),[l,f]=_.reactExports.useState(!1),[h,m]=_.reactExports.useState({}),g=em(a),p=window.location.origin+s.pathname,b=EC(g,p).filter(O=>O.parentKey!==0);console.log("matchPaths:",b);const w=O=>{m({...h,[O]:!h[O]})},S=()=>{f(!l)};_.reactExports.useEffect(()=>{(async()=>{const N=n+(r||"/global-menu-config/api/v1/menu-items/user"),k=await nE.get(N,{withCredentials:!0}).then(W=>W.data).catch(W=>{var q,mt;KE(((mt=(q=W.response)==null?void 0:q.data)==null?void 0:mt.errorMessage)||"Have error when get menu items")}),z={};k.forEach(W=>{W.children&&(z[W.id]=!0)}),m(z);let U=k.map(W=>({...W,parentKey:0}));t.replacePath&&(U=nm(U,t.replacePath)),u(U)})()},[n,r,t.replacePath]);const[R,C]=_.reactExports.useState(!1),M=l?"collapsed":"expanded",B=O=>`${O} ${M}`;return _.jsxRuntimeExports.jsxs("div",{className:B("side-bar"),children:[_.jsxRuntimeExports.jsxs("div",{style:{display:"none"},children:["Version: ",xC.version]}),_.jsxRuntimeExports.jsx("div",{className:B("side-bar__wrapper-toggle-btn"),children:_.jsxRuntimeExports.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:S,children:l?_.jsxRuntimeExports.jsx(eC,{}):_.jsxRuntimeExports.jsx(tC,{})})}),_.jsxRuntimeExports.jsx(gd,{className:B("side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:a.map(O=>{const N=k=>b.some(z=>z.id===k);return _.jsxRuntimeExports.jsx(tm,{item:O,isActive:N,isCollapsed:l,expanded:k=>h[k],toggleExpand:w,replacePath:t.replacePath,ssr:t.ssr},O.id)})}),_.jsxRuntimeExports.jsxs("div",{className:B("side-bar__wrap-btn-logout"),children:[_.jsxRuntimeExports.jsxs("button",{className:B("side-bar__logout-btn"),onClick:()=>C(!0),children:[_.jsxRuntimeExports.jsx(nC,{}),_.jsxRuntimeExports.jsx("span",{className:B("side-bar__logout-btn__text"),children:"Logout"})]}),_.jsxRuntimeExports.jsx(_.LogoutConfirmModal,{isOpen:R,onClose:()=>C(!1),onConfirm:()=>t.logout?t.logout():WE(t.baseUrl)})]})]})}function em(t){let n=[];for(const r of t)n.push(r),r.children&&(n=n.concat(em(r.children)));return n}function EC(t,n){let r=t.find(a=>a.path&&n.includes(a.path)),s=[];for(;r;)s=[r,...s],r=t.find(a=>a.id===r.parentKey);return s}function nm(t,n){return t.map(r=>(r.path&&(r.path=n(r.path)),r.children&&r.children.length>0&&(r.children=nm(r.children,n)),r))}var _s={exports:{}};/**
39
+ * @license
40
+ * Lodash <https://lodash.com/>
41
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
42
+ * Released under MIT license <https://lodash.com/license>
43
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
44
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
45
+ */_s.exports;(function(t,n){(function(){var r,s="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",f="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",m=500,g="__lodash_placeholder__",p=1,b=2,w=4,S=1,R=2,C=1,M=2,B=4,O=8,N=16,k=32,z=64,U=128,W=256,q=512,mt=30,Dt="...",gt=800,_t=16,Rt=1,le=2,St=3,Mt=1/0,ft=9007199254740991,Pe=17976931348623157e292,we=0/0,rt=4294967295,tn=rt-1,en=rt>>>1,vr=[["ary",U],["bind",C],["bindKey",M],["curry",O],["curryRight",N],["flip",q],["partial",k],["partialRight",z],["rearg",W]],Gt="[object Arguments]",qt="[object Array]",nn="[object AsyncFunction]",ue="[object Boolean]",Ee="[object Date]",Ne="[object DOMException]",Ft="[object Error]",An="[object Function]",zn="[object GeneratorFunction]",Nt="[object Map]",Tn="[object Number]",si="[object Null]",ke="[object Object]",Rl="[object Promise]",rm="[object Proxy]",yr="[object RegExp]",_e="[object Set]",xr="[object String]",oi="[object Symbol]",im="[object Undefined]",br="[object WeakMap]",sm="[object WeakSet]",wr="[object ArrayBuffer]",Hn="[object DataView]",Ws="[object Float32Array]",js="[object Float64Array]",Us="[object Int8Array]",zs="[object Int16Array]",Hs="[object Int32Array]",$s="[object Uint8Array]",Gs="[object Uint8ClampedArray]",qs="[object Uint16Array]",Ks="[object Uint32Array]",om=/\b__p \+= '';/g,am=/\b(__p \+=) '' \+/g,lm=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Cl=/&(?:amp|lt|gt|quot|#39);/g,Pl=/[&<>"']/g,um=RegExp(Cl.source),cm=RegExp(Pl.source),fm=/<%-([\s\S]+?)%>/g,hm=/<%([\s\S]+?)%>/g,Ol=/<%=([\s\S]+?)%>/g,dm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pm=/^\w*$/,mm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xs=/[\\^$.*+?()[\]{}|]/g,gm=RegExp(Xs.source),Ys=/^\s+/,vm=/\s/,ym=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xm=/\{\n\/\* \[wrapped with (.+)\] \*/,bm=/,? & /,wm=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Em=/[()=,{}\[\]\/\s]/,_m=/\\(\\)?/g,Sm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ll=/\w*$/,Am=/^[-+]0x[0-9a-f]+$/i,Tm=/^0b[01]+$/i,Rm=/^\[object .+?Constructor\]$/,Cm=/^0o[0-7]+$/i,Pm=/^(?:0|[1-9]\d*)$/,Om=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ai=/($^)/,Lm=/['\n\r\u2028\u2029\\]/g,li="\\ud800-\\udfff",Mm="\\u0300-\\u036f",Im="\\ufe20-\\ufe2f",Dm="\\u20d0-\\u20ff",Ml=Mm+Im+Dm,Il="\\u2700-\\u27bf",Dl="a-z\\xdf-\\xf6\\xf8-\\xff",Vm="\\xac\\xb1\\xd7\\xf7",Bm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Fm="\\u2000-\\u206f",Nm=" \\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",Vl="A-Z\\xc0-\\xd6\\xd8-\\xde",Bl="\\ufe0e\\ufe0f",Fl=Vm+Bm+Fm+Nm,Js="['’]",km="["+li+"]",Nl="["+Fl+"]",ui="["+Ml+"]",kl="\\d+",Wm="["+Il+"]",Wl="["+Dl+"]",jl="[^"+li+Fl+kl+Il+Dl+Vl+"]",Zs="\\ud83c[\\udffb-\\udfff]",jm="(?:"+ui+"|"+Zs+")",Ul="[^"+li+"]",Qs="(?:\\ud83c[\\udde6-\\uddff]){2}",to="[\\ud800-\\udbff][\\udc00-\\udfff]",$n="["+Vl+"]",zl="\\u200d",Hl="(?:"+Wl+"|"+jl+")",Um="(?:"+$n+"|"+jl+")",$l="(?:"+Js+"(?:d|ll|m|re|s|t|ve))?",Gl="(?:"+Js+"(?:D|LL|M|RE|S|T|VE))?",ql=jm+"?",Kl="["+Bl+"]?",zm="(?:"+zl+"(?:"+[Ul,Qs,to].join("|")+")"+Kl+ql+")*",Hm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$m="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xl=Kl+ql+zm,Gm="(?:"+[Wm,Qs,to].join("|")+")"+Xl,qm="(?:"+[Ul+ui+"?",ui,Qs,to,km].join("|")+")",Km=RegExp(Js,"g"),Xm=RegExp(ui,"g"),eo=RegExp(Zs+"(?="+Zs+")|"+qm+Xl,"g"),Ym=RegExp([$n+"?"+Wl+"+"+$l+"(?="+[Nl,$n,"$"].join("|")+")",Um+"+"+Gl+"(?="+[Nl,$n+Hl,"$"].join("|")+")",$n+"?"+Hl+"+"+$l,$n+"+"+Gl,$m,Hm,kl,Gm].join("|"),"g"),Jm=RegExp("["+zl+li+Ml+Bl+"]"),Zm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qm=["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"],tg=-1,dt={};dt[Ws]=dt[js]=dt[Us]=dt[zs]=dt[Hs]=dt[$s]=dt[Gs]=dt[qs]=dt[Ks]=!0,dt[Gt]=dt[qt]=dt[wr]=dt[ue]=dt[Hn]=dt[Ee]=dt[Ft]=dt[An]=dt[Nt]=dt[Tn]=dt[ke]=dt[yr]=dt[_e]=dt[xr]=dt[br]=!1;var ht={};ht[Gt]=ht[qt]=ht[wr]=ht[Hn]=ht[ue]=ht[Ee]=ht[Ws]=ht[js]=ht[Us]=ht[zs]=ht[Hs]=ht[Nt]=ht[Tn]=ht[ke]=ht[yr]=ht[_e]=ht[xr]=ht[oi]=ht[$s]=ht[Gs]=ht[qs]=ht[Ks]=!0,ht[Ft]=ht[An]=ht[br]=!1;var eg={À:"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:"'n",ſ:"s"},ng={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rg={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ig={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sg=parseFloat,og=parseInt,Yl=typeof _.commonjsGlobal=="object"&&_.commonjsGlobal&&_.commonjsGlobal.Object===Object&&_.commonjsGlobal,ag=typeof self=="object"&&self&&self.Object===Object&&self,Vt=Yl||ag||Function("return this")(),no=n&&!n.nodeType&&n,Rn=no&&!0&&t&&!t.nodeType&&t,Jl=Rn&&Rn.exports===no,ro=Jl&&Yl.process,ce=function(){try{var A=Rn&&Rn.require&&Rn.require("util").types;return A||ro&&ro.binding&&ro.binding("util")}catch{}}(),Zl=ce&&ce.isArrayBuffer,Ql=ce&&ce.isDate,tu=ce&&ce.isMap,eu=ce&&ce.isRegExp,nu=ce&&ce.isSet,ru=ce&&ce.isTypedArray;function te(A,L,P){switch(P.length){case 0:return A.call(L);case 1:return A.call(L,P[0]);case 2:return A.call(L,P[0],P[1]);case 3:return A.call(L,P[0],P[1],P[2])}return A.apply(L,P)}function lg(A,L,P,H){for(var J=-1,at=A==null?0:A.length;++J<at;){var Ot=A[J];L(H,Ot,P(Ot),A)}return H}function fe(A,L){for(var P=-1,H=A==null?0:A.length;++P<H&&L(A[P],P,A)!==!1;);return A}function ug(A,L){for(var P=A==null?0:A.length;P--&&L(A[P],P,A)!==!1;);return A}function iu(A,L){for(var P=-1,H=A==null?0:A.length;++P<H;)if(!L(A[P],P,A))return!1;return!0}function rn(A,L){for(var P=-1,H=A==null?0:A.length,J=0,at=[];++P<H;){var Ot=A[P];L(Ot,P,A)&&(at[J++]=Ot)}return at}function ci(A,L){var P=A==null?0:A.length;return!!P&&Gn(A,L,0)>-1}function io(A,L,P){for(var H=-1,J=A==null?0:A.length;++H<J;)if(P(L,A[H]))return!0;return!1}function vt(A,L){for(var P=-1,H=A==null?0:A.length,J=Array(H);++P<H;)J[P]=L(A[P],P,A);return J}function sn(A,L){for(var P=-1,H=L.length,J=A.length;++P<H;)A[J+P]=L[P];return A}function so(A,L,P,H){var J=-1,at=A==null?0:A.length;for(H&&at&&(P=A[++J]);++J<at;)P=L(P,A[J],J,A);return P}function cg(A,L,P,H){var J=A==null?0:A.length;for(H&&J&&(P=A[--J]);J--;)P=L(P,A[J],J,A);return P}function oo(A,L){for(var P=-1,H=A==null?0:A.length;++P<H;)if(L(A[P],P,A))return!0;return!1}var fg=ao("length");function hg(A){return A.split("")}function dg(A){return A.match(wm)||[]}function su(A,L,P){var H;return P(A,function(J,at,Ot){if(L(J,at,Ot))return H=at,!1}),H}function fi(A,L,P,H){for(var J=A.length,at=P+(H?1:-1);H?at--:++at<J;)if(L(A[at],at,A))return at;return-1}function Gn(A,L,P){return L===L?Ag(A,L,P):fi(A,ou,P)}function pg(A,L,P,H){for(var J=P-1,at=A.length;++J<at;)if(H(A[J],L))return J;return-1}function ou(A){return A!==A}function au(A,L){var P=A==null?0:A.length;return P?uo(A,L)/P:we}function ao(A){return function(L){return L==null?r:L[A]}}function lo(A){return function(L){return A==null?r:A[L]}}function lu(A,L,P,H,J){return J(A,function(at,Ot,ct){P=H?(H=!1,at):L(P,at,Ot,ct)}),P}function mg(A,L){var P=A.length;for(A.sort(L);P--;)A[P]=A[P].value;return A}function uo(A,L){for(var P,H=-1,J=A.length;++H<J;){var at=L(A[H]);at!==r&&(P=P===r?at:P+at)}return P}function co(A,L){for(var P=-1,H=Array(A);++P<A;)H[P]=L(P);return H}function gg(A,L){return vt(L,function(P){return[P,A[P]]})}function uu(A){return A&&A.slice(0,du(A)+1).replace(Ys,"")}function ee(A){return function(L){return A(L)}}function fo(A,L){return vt(L,function(P){return A[P]})}function Er(A,L){return A.has(L)}function cu(A,L){for(var P=-1,H=A.length;++P<H&&Gn(L,A[P],0)>-1;);return P}function fu(A,L){for(var P=A.length;P--&&Gn(L,A[P],0)>-1;);return P}function vg(A,L){for(var P=A.length,H=0;P--;)A[P]===L&&++H;return H}var yg=lo(eg),xg=lo(ng);function bg(A){return"\\"+ig[A]}function wg(A,L){return A==null?r:A[L]}function qn(A){return Jm.test(A)}function Eg(A){return Zm.test(A)}function _g(A){for(var L,P=[];!(L=A.next()).done;)P.push(L.value);return P}function ho(A){var L=-1,P=Array(A.size);return A.forEach(function(H,J){P[++L]=[J,H]}),P}function hu(A,L){return function(P){return A(L(P))}}function on(A,L){for(var P=-1,H=A.length,J=0,at=[];++P<H;){var Ot=A[P];(Ot===L||Ot===g)&&(A[P]=g,at[J++]=P)}return at}function hi(A){var L=-1,P=Array(A.size);return A.forEach(function(H){P[++L]=H}),P}function Sg(A){var L=-1,P=Array(A.size);return A.forEach(function(H){P[++L]=[H,H]}),P}function Ag(A,L,P){for(var H=P-1,J=A.length;++H<J;)if(A[H]===L)return H;return-1}function Tg(A,L,P){for(var H=P+1;H--;)if(A[H]===L)return H;return H}function Kn(A){return qn(A)?Cg(A):fg(A)}function Se(A){return qn(A)?Pg(A):hg(A)}function du(A){for(var L=A.length;L--&&vm.test(A.charAt(L)););return L}var Rg=lo(rg);function Cg(A){for(var L=eo.lastIndex=0;eo.test(A);)++L;return L}function Pg(A){return A.match(eo)||[]}function Og(A){return A.match(Ym)||[]}var Lg=function A(L){L=L==null?Vt:Xn.defaults(Vt.Object(),L,Xn.pick(Vt,Qm));var P=L.Array,H=L.Date,J=L.Error,at=L.Function,Ot=L.Math,ct=L.Object,po=L.RegExp,Mg=L.String,he=L.TypeError,di=P.prototype,Ig=at.prototype,Yn=ct.prototype,pi=L["__core-js_shared__"],mi=Ig.toString,ut=Yn.hasOwnProperty,Dg=0,pu=function(){var e=/[^.]+$/.exec(pi&&pi.keys&&pi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gi=Yn.toString,Vg=mi.call(ct),Bg=Vt._,Fg=po("^"+mi.call(ut).replace(Xs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vi=Jl?L.Buffer:r,an=L.Symbol,yi=L.Uint8Array,mu=vi?vi.allocUnsafe:r,xi=hu(ct.getPrototypeOf,ct),gu=ct.create,vu=Yn.propertyIsEnumerable,bi=di.splice,yu=an?an.isConcatSpreadable:r,_r=an?an.iterator:r,Cn=an?an.toStringTag:r,wi=function(){try{var e=In(ct,"defineProperty");return e({},"",{}),e}catch{}}(),Ng=L.clearTimeout!==Vt.clearTimeout&&L.clearTimeout,kg=H&&H.now!==Vt.Date.now&&H.now,Wg=L.setTimeout!==Vt.setTimeout&&L.setTimeout,Ei=Ot.ceil,_i=Ot.floor,mo=ct.getOwnPropertySymbols,jg=vi?vi.isBuffer:r,xu=L.isFinite,Ug=di.join,zg=hu(ct.keys,ct),Lt=Ot.max,kt=Ot.min,Hg=H.now,$g=L.parseInt,bu=Ot.random,Gg=di.reverse,go=In(L,"DataView"),Sr=In(L,"Map"),vo=In(L,"Promise"),Jn=In(L,"Set"),Ar=In(L,"WeakMap"),Tr=In(ct,"create"),Si=Ar&&new Ar,Zn={},qg=Dn(go),Kg=Dn(Sr),Xg=Dn(vo),Yg=Dn(Jn),Jg=Dn(Ar),Ai=an?an.prototype:r,Rr=Ai?Ai.valueOf:r,wu=Ai?Ai.toString:r;function v(e){if(wt(e)&&!Z(e)&&!(e instanceof it)){if(e instanceof de)return e;if(ut.call(e,"__wrapped__"))return Ec(e)}return new de(e)}var Qn=function(){function e(){}return function(i){if(!xt(i))return{};if(gu)return gu(i);e.prototype=i;var o=new e;return e.prototype=r,o}}();function Ti(){}function de(e,i){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=r}v.templateSettings={escape:fm,evaluate:hm,interpolate:Ol,variable:"",imports:{_:v}},v.prototype=Ti.prototype,v.prototype.constructor=v,de.prototype=Qn(Ti.prototype),de.prototype.constructor=de;function it(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=rt,this.__views__=[]}function Zg(){var e=new it(this.__wrapped__);return e.__actions__=Kt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Kt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Kt(this.__views__),e}function Qg(){if(this.__filtered__){var e=new it(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function tv(){var e=this.__wrapped__.value(),i=this.__dir__,o=Z(e),c=i<0,d=o?e.length:0,y=h0(0,d,this.__views__),x=y.start,E=y.end,T=E-x,I=c?E:x-1,D=this.__iteratees__,F=D.length,j=0,$=kt(T,this.__takeCount__);if(!o||!c&&d==T&&$==T)return $u(e,this.__actions__);var K=[];t:for(;T--&&j<$;){I+=i;for(var tt=-1,X=e[I];++tt<F;){var nt=D[tt],st=nt.iteratee,ie=nt.type,Ht=st(X);if(ie==le)X=Ht;else if(!Ht){if(ie==Rt)continue t;break t}}K[j++]=X}return K}it.prototype=Qn(Ti.prototype),it.prototype.constructor=it;function Pn(e){var i=-1,o=e==null?0:e.length;for(this.clear();++i<o;){var c=e[i];this.set(c[0],c[1])}}function ev(){this.__data__=Tr?Tr(null):{},this.size=0}function nv(e){var i=this.has(e)&&delete this.__data__[e];return this.size-=i?1:0,i}function rv(e){var i=this.__data__;if(Tr){var o=i[e];return o===h?r:o}return ut.call(i,e)?i[e]:r}function iv(e){var i=this.__data__;return Tr?i[e]!==r:ut.call(i,e)}function sv(e,i){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Tr&&i===r?h:i,this}Pn.prototype.clear=ev,Pn.prototype.delete=nv,Pn.prototype.get=rv,Pn.prototype.has=iv,Pn.prototype.set=sv;function We(e){var i=-1,o=e==null?0:e.length;for(this.clear();++i<o;){var c=e[i];this.set(c[0],c[1])}}function ov(){this.__data__=[],this.size=0}function av(e){var i=this.__data__,o=Ri(i,e);if(o<0)return!1;var c=i.length-1;return o==c?i.pop():bi.call(i,o,1),--this.size,!0}function lv(e){var i=this.__data__,o=Ri(i,e);return o<0?r:i[o][1]}function uv(e){return Ri(this.__data__,e)>-1}function cv(e,i){var o=this.__data__,c=Ri(o,e);return c<0?(++this.size,o.push([e,i])):o[c][1]=i,this}We.prototype.clear=ov,We.prototype.delete=av,We.prototype.get=lv,We.prototype.has=uv,We.prototype.set=cv;function je(e){var i=-1,o=e==null?0:e.length;for(this.clear();++i<o;){var c=e[i];this.set(c[0],c[1])}}function fv(){this.size=0,this.__data__={hash:new Pn,map:new(Sr||We),string:new Pn}}function hv(e){var i=ki(this,e).delete(e);return this.size-=i?1:0,i}function dv(e){return ki(this,e).get(e)}function pv(e){return ki(this,e).has(e)}function mv(e,i){var o=ki(this,e),c=o.size;return o.set(e,i),this.size+=o.size==c?0:1,this}je.prototype.clear=fv,je.prototype.delete=hv,je.prototype.get=dv,je.prototype.has=pv,je.prototype.set=mv;function On(e){var i=-1,o=e==null?0:e.length;for(this.__data__=new je;++i<o;)this.add(e[i])}function gv(e){return this.__data__.set(e,h),this}function vv(e){return this.__data__.has(e)}On.prototype.add=On.prototype.push=gv,On.prototype.has=vv;function Ae(e){var i=this.__data__=new We(e);this.size=i.size}function yv(){this.__data__=new We,this.size=0}function xv(e){var i=this.__data__,o=i.delete(e);return this.size=i.size,o}function bv(e){return this.__data__.get(e)}function wv(e){return this.__data__.has(e)}function Ev(e,i){var o=this.__data__;if(o instanceof We){var c=o.__data__;if(!Sr||c.length<a-1)return c.push([e,i]),this.size=++o.size,this;o=this.__data__=new je(c)}return o.set(e,i),this.size=o.size,this}Ae.prototype.clear=yv,Ae.prototype.delete=xv,Ae.prototype.get=bv,Ae.prototype.has=wv,Ae.prototype.set=Ev;function Eu(e,i){var o=Z(e),c=!o&&Vn(e),d=!o&&!c&&hn(e),y=!o&&!c&&!d&&rr(e),x=o||c||d||y,E=x?co(e.length,Mg):[],T=E.length;for(var I in e)(i||ut.call(e,I))&&!(x&&(I=="length"||d&&(I=="offset"||I=="parent")||y&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||$e(I,T)))&&E.push(I);return E}function _u(e){var i=e.length;return i?e[Co(0,i-1)]:r}function _v(e,i){return Wi(Kt(e),Ln(i,0,e.length))}function Sv(e){return Wi(Kt(e))}function yo(e,i,o){(o!==r&&!Te(e[i],o)||o===r&&!(i in e))&&Ue(e,i,o)}function Cr(e,i,o){var c=e[i];(!(ut.call(e,i)&&Te(c,o))||o===r&&!(i in e))&&Ue(e,i,o)}function Ri(e,i){for(var o=e.length;o--;)if(Te(e[o][0],i))return o;return-1}function Av(e,i,o,c){return ln(e,function(d,y,x){i(c,d,o(d),x)}),c}function Su(e,i){return e&&Le(i,It(i),e)}function Tv(e,i){return e&&Le(i,Yt(i),e)}function Ue(e,i,o){i=="__proto__"&&wi?wi(e,i,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[i]=o}function xo(e,i){for(var o=-1,c=i.length,d=P(c),y=e==null;++o<c;)d[o]=y?r:Qo(e,i[o]);return d}function Ln(e,i,o){return e===e&&(o!==r&&(e=e<=o?e:o),i!==r&&(e=e>=i?e:i)),e}function pe(e,i,o,c,d,y){var x,E=i&p,T=i&b,I=i&w;if(o&&(x=d?o(e,c,d,y):o(e)),x!==r)return x;if(!xt(e))return e;var D=Z(e);if(D){if(x=p0(e),!E)return Kt(e,x)}else{var F=Wt(e),j=F==An||F==zn;if(hn(e))return Ku(e,E);if(F==ke||F==Gt||j&&!d){if(x=T||j?{}:dc(e),!E)return T?r0(e,Tv(x,e)):n0(e,Su(x,e))}else{if(!ht[F])return d?e:{};x=m0(e,F,E)}}y||(y=new Ae);var $=y.get(e);if($)return $;y.set(e,x),Uc(e)?e.forEach(function(X){x.add(pe(X,i,o,X,e,y))}):Wc(e)&&e.forEach(function(X,nt){x.set(nt,pe(X,i,o,nt,e,y))});var K=I?T?ko:No:T?Yt:It,tt=D?r:K(e);return fe(tt||e,function(X,nt){tt&&(nt=X,X=e[nt]),Cr(x,nt,pe(X,i,o,nt,e,y))}),x}function Rv(e){var i=It(e);return function(o){return Au(o,e,i)}}function Au(e,i,o){var c=o.length;if(e==null)return!c;for(e=ct(e);c--;){var d=o[c],y=i[d],x=e[d];if(x===r&&!(d in e)||!y(x))return!1}return!0}function Tu(e,i,o){if(typeof e!="function")throw new he(l);return Vr(function(){e.apply(r,o)},i)}function Pr(e,i,o,c){var d=-1,y=ci,x=!0,E=e.length,T=[],I=i.length;if(!E)return T;o&&(i=vt(i,ee(o))),c?(y=io,x=!1):i.length>=a&&(y=Er,x=!1,i=new On(i));t:for(;++d<E;){var D=e[d],F=o==null?D:o(D);if(D=c||D!==0?D:0,x&&F===F){for(var j=I;j--;)if(i[j]===F)continue t;T.push(D)}else y(i,F,c)||T.push(D)}return T}var ln=Qu(Oe),Ru=Qu(wo,!0);function Cv(e,i){var o=!0;return ln(e,function(c,d,y){return o=!!i(c,d,y),o}),o}function Ci(e,i,o){for(var c=-1,d=e.length;++c<d;){var y=e[c],x=i(y);if(x!=null&&(E===r?x===x&&!re(x):o(x,E)))var E=x,T=y}return T}function Pv(e,i,o,c){var d=e.length;for(o=Q(o),o<0&&(o=-o>d?0:d+o),c=c===r||c>d?d:Q(c),c<0&&(c+=d),c=o>c?0:Hc(c);o<c;)e[o++]=i;return e}function Cu(e,i){var o=[];return ln(e,function(c,d,y){i(c,d,y)&&o.push(c)}),o}function Bt(e,i,o,c,d){var y=-1,x=e.length;for(o||(o=v0),d||(d=[]);++y<x;){var E=e[y];i>0&&o(E)?i>1?Bt(E,i-1,o,c,d):sn(d,E):c||(d[d.length]=E)}return d}var bo=tc(),Pu=tc(!0);function Oe(e,i){return e&&bo(e,i,It)}function wo(e,i){return e&&Pu(e,i,It)}function Pi(e,i){return rn(i,function(o){return Ge(e[o])})}function Mn(e,i){i=cn(i,e);for(var o=0,c=i.length;e!=null&&o<c;)e=e[Me(i[o++])];return o&&o==c?e:r}function Ou(e,i,o){var c=i(e);return Z(e)?c:sn(c,o(e))}function Ut(e){return e==null?e===r?im:si:Cn&&Cn in ct(e)?f0(e):S0(e)}function Eo(e,i){return e>i}function Ov(e,i){return e!=null&&ut.call(e,i)}function Lv(e,i){return e!=null&&i in ct(e)}function Mv(e,i,o){return e>=kt(i,o)&&e<Lt(i,o)}function _o(e,i,o){for(var c=o?io:ci,d=e[0].length,y=e.length,x=y,E=P(y),T=1/0,I=[];x--;){var D=e[x];x&&i&&(D=vt(D,ee(i))),T=kt(D.length,T),E[x]=!o&&(i||d>=120&&D.length>=120)?new On(x&&D):r}D=e[0];var F=-1,j=E[0];t:for(;++F<d&&I.length<T;){var $=D[F],K=i?i($):$;if($=o||$!==0?$:0,!(j?Er(j,K):c(I,K,o))){for(x=y;--x;){var tt=E[x];if(!(tt?Er(tt,K):c(e[x],K,o)))continue t}j&&j.push(K),I.push($)}}return I}function Iv(e,i,o,c){return Oe(e,function(d,y,x){i(c,o(d),y,x)}),c}function Or(e,i,o){i=cn(i,e),e=vc(e,i);var c=e==null?e:e[Me(ge(i))];return c==null?r:te(c,e,o)}function Lu(e){return wt(e)&&Ut(e)==Gt}function Dv(e){return wt(e)&&Ut(e)==wr}function Vv(e){return wt(e)&&Ut(e)==Ee}function Lr(e,i,o,c,d){return e===i?!0:e==null||i==null||!wt(e)&&!wt(i)?e!==e&&i!==i:Bv(e,i,o,c,Lr,d)}function Bv(e,i,o,c,d,y){var x=Z(e),E=Z(i),T=x?qt:Wt(e),I=E?qt:Wt(i);T=T==Gt?ke:T,I=I==Gt?ke:I;var D=T==ke,F=I==ke,j=T==I;if(j&&hn(e)){if(!hn(i))return!1;x=!0,D=!1}if(j&&!D)return y||(y=new Ae),x||rr(e)?cc(e,i,o,c,d,y):u0(e,i,T,o,c,d,y);if(!(o&S)){var $=D&&ut.call(e,"__wrapped__"),K=F&&ut.call(i,"__wrapped__");if($||K){var tt=$?e.value():e,X=K?i.value():i;return y||(y=new Ae),d(tt,X,o,c,y)}}return j?(y||(y=new Ae),c0(e,i,o,c,d,y)):!1}function Fv(e){return wt(e)&&Wt(e)==Nt}function So(e,i,o,c){var d=o.length,y=d,x=!c;if(e==null)return!y;for(e=ct(e);d--;){var E=o[d];if(x&&E[2]?E[1]!==e[E[0]]:!(E[0]in e))return!1}for(;++d<y;){E=o[d];var T=E[0],I=e[T],D=E[1];if(x&&E[2]){if(I===r&&!(T in e))return!1}else{var F=new Ae;if(c)var j=c(I,D,T,e,i,F);if(!(j===r?Lr(D,I,S|R,c,F):j))return!1}}return!0}function Mu(e){if(!xt(e)||x0(e))return!1;var i=Ge(e)?Fg:Rm;return i.test(Dn(e))}function Nv(e){return wt(e)&&Ut(e)==yr}function kv(e){return wt(e)&&Wt(e)==_e}function Wv(e){return wt(e)&&Gi(e.length)&&!!dt[Ut(e)]}function Iu(e){return typeof e=="function"?e:e==null?Jt:typeof e=="object"?Z(e)?Bu(e[0],e[1]):Vu(e):ef(e)}function Ao(e){if(!Dr(e))return zg(e);var i=[];for(var o in ct(e))ut.call(e,o)&&o!="constructor"&&i.push(o);return i}function jv(e){if(!xt(e))return _0(e);var i=Dr(e),o=[];for(var c in e)c=="constructor"&&(i||!ut.call(e,c))||o.push(c);return o}function To(e,i){return e<i}function Du(e,i){var o=-1,c=Xt(e)?P(e.length):[];return ln(e,function(d,y,x){c[++o]=i(d,y,x)}),c}function Vu(e){var i=jo(e);return i.length==1&&i[0][2]?mc(i[0][0],i[0][1]):function(o){return o===e||So(o,e,i)}}function Bu(e,i){return zo(e)&&pc(i)?mc(Me(e),i):function(o){var c=Qo(o,e);return c===r&&c===i?ta(o,e):Lr(i,c,S|R)}}function Oi(e,i,o,c,d){e!==i&&bo(i,function(y,x){if(d||(d=new Ae),xt(y))Uv(e,i,x,o,Oi,c,d);else{var E=c?c($o(e,x),y,x+"",e,i,d):r;E===r&&(E=y),yo(e,x,E)}},Yt)}function Uv(e,i,o,c,d,y,x){var E=$o(e,o),T=$o(i,o),I=x.get(T);if(I){yo(e,o,I);return}var D=y?y(E,T,o+"",e,i,x):r,F=D===r;if(F){var j=Z(T),$=!j&&hn(T),K=!j&&!$&&rr(T);D=T,j||$||K?Z(E)?D=E:At(E)?D=Kt(E):$?(F=!1,D=Ku(T,!0)):K?(F=!1,D=Xu(T,!0)):D=[]:Br(T)||Vn(T)?(D=E,Vn(E)?D=$c(E):(!xt(E)||Ge(E))&&(D=dc(T))):F=!1}F&&(x.set(T,D),d(D,T,c,y,x),x.delete(T)),yo(e,o,D)}function Fu(e,i){var o=e.length;if(o)return i+=i<0?o:0,$e(i,o)?e[i]:r}function Nu(e,i,o){i.length?i=vt(i,function(y){return Z(y)?function(x){return Mn(x,y.length===1?y[0]:y)}:y}):i=[Jt];var c=-1;i=vt(i,ee(G()));var d=Du(e,function(y,x,E){var T=vt(i,function(I){return I(y)});return{criteria:T,index:++c,value:y}});return mg(d,function(y,x){return e0(y,x,o)})}function zv(e,i){return ku(e,i,function(o,c){return ta(e,c)})}function ku(e,i,o){for(var c=-1,d=i.length,y={};++c<d;){var x=i[c],E=Mn(e,x);o(E,x)&&Mr(y,cn(x,e),E)}return y}function Hv(e){return function(i){return Mn(i,e)}}function Ro(e,i,o,c){var d=c?pg:Gn,y=-1,x=i.length,E=e;for(e===i&&(i=Kt(i)),o&&(E=vt(e,ee(o)));++y<x;)for(var T=0,I=i[y],D=o?o(I):I;(T=d(E,D,T,c))>-1;)E!==e&&bi.call(E,T,1),bi.call(e,T,1);return e}function Wu(e,i){for(var o=e?i.length:0,c=o-1;o--;){var d=i[o];if(o==c||d!==y){var y=d;$e(d)?bi.call(e,d,1):Lo(e,d)}}return e}function Co(e,i){return e+_i(bu()*(i-e+1))}function $v(e,i,o,c){for(var d=-1,y=Lt(Ei((i-e)/(o||1)),0),x=P(y);y--;)x[c?y:++d]=e,e+=o;return x}function Po(e,i){var o="";if(!e||i<1||i>ft)return o;do i%2&&(o+=e),i=_i(i/2),i&&(e+=e);while(i);return o}function et(e,i){return Go(gc(e,i,Jt),e+"")}function Gv(e){return _u(ir(e))}function qv(e,i){var o=ir(e);return Wi(o,Ln(i,0,o.length))}function Mr(e,i,o,c){if(!xt(e))return e;i=cn(i,e);for(var d=-1,y=i.length,x=y-1,E=e;E!=null&&++d<y;){var T=Me(i[d]),I=o;if(T==="__proto__"||T==="constructor"||T==="prototype")return e;if(d!=x){var D=E[T];I=c?c(D,T,E):r,I===r&&(I=xt(D)?D:$e(i[d+1])?[]:{})}Cr(E,T,I),E=E[T]}return e}var ju=Si?function(e,i){return Si.set(e,i),e}:Jt,Kv=wi?function(e,i){return wi(e,"toString",{configurable:!0,enumerable:!1,value:na(i),writable:!0})}:Jt;function Xv(e){return Wi(ir(e))}function me(e,i,o){var c=-1,d=e.length;i<0&&(i=-i>d?0:d+i),o=o>d?d:o,o<0&&(o+=d),d=i>o?0:o-i>>>0,i>>>=0;for(var y=P(d);++c<d;)y[c]=e[c+i];return y}function Yv(e,i){var o;return ln(e,function(c,d,y){return o=i(c,d,y),!o}),!!o}function Li(e,i,o){var c=0,d=e==null?c:e.length;if(typeof i=="number"&&i===i&&d<=en){for(;c<d;){var y=c+d>>>1,x=e[y];x!==null&&!re(x)&&(o?x<=i:x<i)?c=y+1:d=y}return d}return Oo(e,i,Jt,o)}function Oo(e,i,o,c){var d=0,y=e==null?0:e.length;if(y===0)return 0;i=o(i);for(var x=i!==i,E=i===null,T=re(i),I=i===r;d<y;){var D=_i((d+y)/2),F=o(e[D]),j=F!==r,$=F===null,K=F===F,tt=re(F);if(x)var X=c||K;else I?X=K&&(c||j):E?X=K&&j&&(c||!$):T?X=K&&j&&!$&&(c||!tt):$||tt?X=!1:X=c?F<=i:F<i;X?d=D+1:y=D}return kt(y,tn)}function Uu(e,i){for(var o=-1,c=e.length,d=0,y=[];++o<c;){var x=e[o],E=i?i(x):x;if(!o||!Te(E,T)){var T=E;y[d++]=x===0?0:x}}return y}function zu(e){return typeof e=="number"?e:re(e)?we:+e}function ne(e){if(typeof e=="string")return e;if(Z(e))return vt(e,ne)+"";if(re(e))return wu?wu.call(e):"";var i=e+"";return i=="0"&&1/e==-Mt?"-0":i}function un(e,i,o){var c=-1,d=ci,y=e.length,x=!0,E=[],T=E;if(o)x=!1,d=io;else if(y>=a){var I=i?null:a0(e);if(I)return hi(I);x=!1,d=Er,T=new On}else T=i?[]:E;t:for(;++c<y;){var D=e[c],F=i?i(D):D;if(D=o||D!==0?D:0,x&&F===F){for(var j=T.length;j--;)if(T[j]===F)continue t;i&&T.push(F),E.push(D)}else d(T,F,o)||(T!==E&&T.push(F),E.push(D))}return E}function Lo(e,i){return i=cn(i,e),e=vc(e,i),e==null||delete e[Me(ge(i))]}function Hu(e,i,o,c){return Mr(e,i,o(Mn(e,i)),c)}function Mi(e,i,o,c){for(var d=e.length,y=c?d:-1;(c?y--:++y<d)&&i(e[y],y,e););return o?me(e,c?0:y,c?y+1:d):me(e,c?y+1:0,c?d:y)}function $u(e,i){var o=e;return o instanceof it&&(o=o.value()),so(i,function(c,d){return d.func.apply(d.thisArg,sn([c],d.args))},o)}function Mo(e,i,o){var c=e.length;if(c<2)return c?un(e[0]):[];for(var d=-1,y=P(c);++d<c;)for(var x=e[d],E=-1;++E<c;)E!=d&&(y[d]=Pr(y[d]||x,e[E],i,o));return un(Bt(y,1),i,o)}function Gu(e,i,o){for(var c=-1,d=e.length,y=i.length,x={};++c<d;){var E=c<y?i[c]:r;o(x,e[c],E)}return x}function Io(e){return At(e)?e:[]}function Do(e){return typeof e=="function"?e:Jt}function cn(e,i){return Z(e)?e:zo(e,i)?[e]:wc(lt(e))}var Jv=et;function fn(e,i,o){var c=e.length;return o=o===r?c:o,!i&&o>=c?e:me(e,i,o)}var qu=Ng||function(e){return Vt.clearTimeout(e)};function Ku(e,i){if(i)return e.slice();var o=e.length,c=mu?mu(o):new e.constructor(o);return e.copy(c),c}function Vo(e){var i=new e.constructor(e.byteLength);return new yi(i).set(new yi(e)),i}function Zv(e,i){var o=i?Vo(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function Qv(e){var i=new e.constructor(e.source,Ll.exec(e));return i.lastIndex=e.lastIndex,i}function t0(e){return Rr?ct(Rr.call(e)):{}}function Xu(e,i){var o=i?Vo(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function Yu(e,i){if(e!==i){var o=e!==r,c=e===null,d=e===e,y=re(e),x=i!==r,E=i===null,T=i===i,I=re(i);if(!E&&!I&&!y&&e>i||y&&x&&T&&!E&&!I||c&&x&&T||!o&&T||!d)return 1;if(!c&&!y&&!I&&e<i||I&&o&&d&&!c&&!y||E&&o&&d||!x&&d||!T)return-1}return 0}function e0(e,i,o){for(var c=-1,d=e.criteria,y=i.criteria,x=d.length,E=o.length;++c<x;){var T=Yu(d[c],y[c]);if(T){if(c>=E)return T;var I=o[c];return T*(I=="desc"?-1:1)}}return e.index-i.index}function Ju(e,i,o,c){for(var d=-1,y=e.length,x=o.length,E=-1,T=i.length,I=Lt(y-x,0),D=P(T+I),F=!c;++E<T;)D[E]=i[E];for(;++d<x;)(F||d<y)&&(D[o[d]]=e[d]);for(;I--;)D[E++]=e[d++];return D}function Zu(e,i,o,c){for(var d=-1,y=e.length,x=-1,E=o.length,T=-1,I=i.length,D=Lt(y-E,0),F=P(D+I),j=!c;++d<D;)F[d]=e[d];for(var $=d;++T<I;)F[$+T]=i[T];for(;++x<E;)(j||d<y)&&(F[$+o[x]]=e[d++]);return F}function Kt(e,i){var o=-1,c=e.length;for(i||(i=P(c));++o<c;)i[o]=e[o];return i}function Le(e,i,o,c){var d=!o;o||(o={});for(var y=-1,x=i.length;++y<x;){var E=i[y],T=c?c(o[E],e[E],E,o,e):r;T===r&&(T=e[E]),d?Ue(o,E,T):Cr(o,E,T)}return o}function n0(e,i){return Le(e,Uo(e),i)}function r0(e,i){return Le(e,fc(e),i)}function Ii(e,i){return function(o,c){var d=Z(o)?lg:Av,y=i?i():{};return d(o,e,G(c,2),y)}}function tr(e){return et(function(i,o){var c=-1,d=o.length,y=d>1?o[d-1]:r,x=d>2?o[2]:r;for(y=e.length>3&&typeof y=="function"?(d--,y):r,x&&zt(o[0],o[1],x)&&(y=d<3?r:y,d=1),i=ct(i);++c<d;){var E=o[c];E&&e(i,E,c,y)}return i})}function Qu(e,i){return function(o,c){if(o==null)return o;if(!Xt(o))return e(o,c);for(var d=o.length,y=i?d:-1,x=ct(o);(i?y--:++y<d)&&c(x[y],y,x)!==!1;);return o}}function tc(e){return function(i,o,c){for(var d=-1,y=ct(i),x=c(i),E=x.length;E--;){var T=x[e?E:++d];if(o(y[T],T,y)===!1)break}return i}}function i0(e,i,o){var c=i&C,d=Ir(e);function y(){var x=this&&this!==Vt&&this instanceof y?d:e;return x.apply(c?o:this,arguments)}return y}function ec(e){return function(i){i=lt(i);var o=qn(i)?Se(i):r,c=o?o[0]:i.charAt(0),d=o?fn(o,1).join(""):i.slice(1);return c[e]()+d}}function er(e){return function(i){return so(Qc(Zc(i).replace(Km,"")),e,"")}}function Ir(e){return function(){var i=arguments;switch(i.length){case 0:return new e;case 1:return new e(i[0]);case 2:return new e(i[0],i[1]);case 3:return new e(i[0],i[1],i[2]);case 4:return new e(i[0],i[1],i[2],i[3]);case 5:return new e(i[0],i[1],i[2],i[3],i[4]);case 6:return new e(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new e(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var o=Qn(e.prototype),c=e.apply(o,i);return xt(c)?c:o}}function s0(e,i,o){var c=Ir(e);function d(){for(var y=arguments.length,x=P(y),E=y,T=nr(d);E--;)x[E]=arguments[E];var I=y<3&&x[0]!==T&&x[y-1]!==T?[]:on(x,T);if(y-=I.length,y<o)return oc(e,i,Di,d.placeholder,r,x,I,r,r,o-y);var D=this&&this!==Vt&&this instanceof d?c:e;return te(D,this,x)}return d}function nc(e){return function(i,o,c){var d=ct(i);if(!Xt(i)){var y=G(o,3);i=It(i),o=function(E){return y(d[E],E,d)}}var x=e(i,o,c);return x>-1?d[y?i[x]:x]:r}}function rc(e){return He(function(i){var o=i.length,c=o,d=de.prototype.thru;for(e&&i.reverse();c--;){var y=i[c];if(typeof y!="function")throw new he(l);if(d&&!x&&Ni(y)=="wrapper")var x=new de([],!0)}for(c=x?c:o;++c<o;){y=i[c];var E=Ni(y),T=E=="wrapper"?Wo(y):r;T&&Ho(T[0])&&T[1]==(U|O|k|W)&&!T[4].length&&T[9]==1?x=x[Ni(T[0])].apply(x,T[3]):x=y.length==1&&Ho(y)?x[E]():x.thru(y)}return function(){var I=arguments,D=I[0];if(x&&I.length==1&&Z(D))return x.plant(D).value();for(var F=0,j=o?i[F].apply(this,I):D;++F<o;)j=i[F].call(this,j);return j}})}function Di(e,i,o,c,d,y,x,E,T,I){var D=i&U,F=i&C,j=i&M,$=i&(O|N),K=i&q,tt=j?r:Ir(e);function X(){for(var nt=arguments.length,st=P(nt),ie=nt;ie--;)st[ie]=arguments[ie];if($)var Ht=nr(X),se=vg(st,Ht);if(c&&(st=Ju(st,c,d,$)),y&&(st=Zu(st,y,x,$)),nt-=se,$&&nt<I){var Tt=on(st,Ht);return oc(e,i,Di,X.placeholder,o,st,Tt,E,T,I-nt)}var Re=F?o:this,Ke=j?Re[e]:e;return nt=st.length,E?st=A0(st,E):K&&nt>1&&st.reverse(),D&&T<nt&&(st.length=T),this&&this!==Vt&&this instanceof X&&(Ke=tt||Ir(Ke)),Ke.apply(Re,st)}return X}function ic(e,i){return function(o,c){return Iv(o,e,i(c),{})}}function Vi(e,i){return function(o,c){var d;if(o===r&&c===r)return i;if(o!==r&&(d=o),c!==r){if(d===r)return c;typeof o=="string"||typeof c=="string"?(o=ne(o),c=ne(c)):(o=zu(o),c=zu(c)),d=e(o,c)}return d}}function Bo(e){return He(function(i){return i=vt(i,ee(G())),et(function(o){var c=this;return e(i,function(d){return te(d,c,o)})})})}function Bi(e,i){i=i===r?" ":ne(i);var o=i.length;if(o<2)return o?Po(i,e):i;var c=Po(i,Ei(e/Kn(i)));return qn(i)?fn(Se(c),0,e).join(""):c.slice(0,e)}function o0(e,i,o,c){var d=i&C,y=Ir(e);function x(){for(var E=-1,T=arguments.length,I=-1,D=c.length,F=P(D+T),j=this&&this!==Vt&&this instanceof x?y:e;++I<D;)F[I]=c[I];for(;T--;)F[I++]=arguments[++E];return te(j,d?o:this,F)}return x}function sc(e){return function(i,o,c){return c&&typeof c!="number"&&zt(i,o,c)&&(o=c=r),i=qe(i),o===r?(o=i,i=0):o=qe(o),c=c===r?i<o?1:-1:qe(c),$v(i,o,c,e)}}function Fi(e){return function(i,o){return typeof i=="string"&&typeof o=="string"||(i=ve(i),o=ve(o)),e(i,o)}}function oc(e,i,o,c,d,y,x,E,T,I){var D=i&O,F=D?x:r,j=D?r:x,$=D?y:r,K=D?r:y;i|=D?k:z,i&=~(D?z:k),i&B||(i&=~(C|M));var tt=[e,i,d,$,F,K,j,E,T,I],X=o.apply(r,tt);return Ho(e)&&yc(X,tt),X.placeholder=c,xc(X,e,i)}function Fo(e){var i=Ot[e];return function(o,c){if(o=ve(o),c=c==null?0:kt(Q(c),292),c&&xu(o)){var d=(lt(o)+"e").split("e"),y=i(d[0]+"e"+(+d[1]+c));return d=(lt(y)+"e").split("e"),+(d[0]+"e"+(+d[1]-c))}return i(o)}}var a0=Jn&&1/hi(new Jn([,-0]))[1]==Mt?function(e){return new Jn(e)}:sa;function ac(e){return function(i){var o=Wt(i);return o==Nt?ho(i):o==_e?Sg(i):gg(i,e(i))}}function ze(e,i,o,c,d,y,x,E){var T=i&M;if(!T&&typeof e!="function")throw new he(l);var I=c?c.length:0;if(I||(i&=~(k|z),c=d=r),x=x===r?x:Lt(Q(x),0),E=E===r?E:Q(E),I-=d?d.length:0,i&z){var D=c,F=d;c=d=r}var j=T?r:Wo(e),$=[e,i,o,c,d,D,F,y,x,E];if(j&&E0($,j),e=$[0],i=$[1],o=$[2],c=$[3],d=$[4],E=$[9]=$[9]===r?T?0:e.length:Lt($[9]-I,0),!E&&i&(O|N)&&(i&=~(O|N)),!i||i==C)var K=i0(e,i,o);else i==O||i==N?K=s0(e,i,E):(i==k||i==(C|k))&&!d.length?K=o0(e,i,o,c):K=Di.apply(r,$);var tt=j?ju:yc;return xc(tt(K,$),e,i)}function lc(e,i,o,c){return e===r||Te(e,Yn[o])&&!ut.call(c,o)?i:e}function uc(e,i,o,c,d,y){return xt(e)&&xt(i)&&(y.set(i,e),Oi(e,i,r,uc,y),y.delete(i)),e}function l0(e){return Br(e)?r:e}function cc(e,i,o,c,d,y){var x=o&S,E=e.length,T=i.length;if(E!=T&&!(x&&T>E))return!1;var I=y.get(e),D=y.get(i);if(I&&D)return I==i&&D==e;var F=-1,j=!0,$=o&R?new On:r;for(y.set(e,i),y.set(i,e);++F<E;){var K=e[F],tt=i[F];if(c)var X=x?c(tt,K,F,i,e,y):c(K,tt,F,e,i,y);if(X!==r){if(X)continue;j=!1;break}if($){if(!oo(i,function(nt,st){if(!Er($,st)&&(K===nt||d(K,nt,o,c,y)))return $.push(st)})){j=!1;break}}else if(!(K===tt||d(K,tt,o,c,y))){j=!1;break}}return y.delete(e),y.delete(i),j}function u0(e,i,o,c,d,y,x){switch(o){case Hn:if(e.byteLength!=i.byteLength||e.byteOffset!=i.byteOffset)return!1;e=e.buffer,i=i.buffer;case wr:return!(e.byteLength!=i.byteLength||!y(new yi(e),new yi(i)));case ue:case Ee:case Tn:return Te(+e,+i);case Ft:return e.name==i.name&&e.message==i.message;case yr:case xr:return e==i+"";case Nt:var E=ho;case _e:var T=c&S;if(E||(E=hi),e.size!=i.size&&!T)return!1;var I=x.get(e);if(I)return I==i;c|=R,x.set(e,i);var D=cc(E(e),E(i),c,d,y,x);return x.delete(e),D;case oi:if(Rr)return Rr.call(e)==Rr.call(i)}return!1}function c0(e,i,o,c,d,y){var x=o&S,E=No(e),T=E.length,I=No(i),D=I.length;if(T!=D&&!x)return!1;for(var F=T;F--;){var j=E[F];if(!(x?j in i:ut.call(i,j)))return!1}var $=y.get(e),K=y.get(i);if($&&K)return $==i&&K==e;var tt=!0;y.set(e,i),y.set(i,e);for(var X=x;++F<T;){j=E[F];var nt=e[j],st=i[j];if(c)var ie=x?c(st,nt,j,i,e,y):c(nt,st,j,e,i,y);if(!(ie===r?nt===st||d(nt,st,o,c,y):ie)){tt=!1;break}X||(X=j=="constructor")}if(tt&&!X){var Ht=e.constructor,se=i.constructor;Ht!=se&&"constructor"in e&&"constructor"in i&&!(typeof Ht=="function"&&Ht instanceof Ht&&typeof se=="function"&&se instanceof se)&&(tt=!1)}return y.delete(e),y.delete(i),tt}function He(e){return Go(gc(e,r,Ac),e+"")}function No(e){return Ou(e,It,Uo)}function ko(e){return Ou(e,Yt,fc)}var Wo=Si?function(e){return Si.get(e)}:sa;function Ni(e){for(var i=e.name+"",o=Zn[i],c=ut.call(Zn,i)?o.length:0;c--;){var d=o[c],y=d.func;if(y==null||y==e)return d.name}return i}function nr(e){var i=ut.call(v,"placeholder")?v:e;return i.placeholder}function G(){var e=v.iteratee||ra;return e=e===ra?Iu:e,arguments.length?e(arguments[0],arguments[1]):e}function ki(e,i){var o=e.__data__;return y0(i)?o[typeof i=="string"?"string":"hash"]:o.map}function jo(e){for(var i=It(e),o=i.length;o--;){var c=i[o],d=e[c];i[o]=[c,d,pc(d)]}return i}function In(e,i){var o=wg(e,i);return Mu(o)?o:r}function f0(e){var i=ut.call(e,Cn),o=e[Cn];try{e[Cn]=r;var c=!0}catch{}var d=gi.call(e);return c&&(i?e[Cn]=o:delete e[Cn]),d}var Uo=mo?function(e){return e==null?[]:(e=ct(e),rn(mo(e),function(i){return vu.call(e,i)}))}:oa,fc=mo?function(e){for(var i=[];e;)sn(i,Uo(e)),e=xi(e);return i}:oa,Wt=Ut;(go&&Wt(new go(new ArrayBuffer(1)))!=Hn||Sr&&Wt(new Sr)!=Nt||vo&&Wt(vo.resolve())!=Rl||Jn&&Wt(new Jn)!=_e||Ar&&Wt(new Ar)!=br)&&(Wt=function(e){var i=Ut(e),o=i==ke?e.constructor:r,c=o?Dn(o):"";if(c)switch(c){case qg:return Hn;case Kg:return Nt;case Xg:return Rl;case Yg:return _e;case Jg:return br}return i});function h0(e,i,o){for(var c=-1,d=o.length;++c<d;){var y=o[c],x=y.size;switch(y.type){case"drop":e+=x;break;case"dropRight":i-=x;break;case"take":i=kt(i,e+x);break;case"takeRight":e=Lt(e,i-x);break}}return{start:e,end:i}}function d0(e){var i=e.match(xm);return i?i[1].split(bm):[]}function hc(e,i,o){i=cn(i,e);for(var c=-1,d=i.length,y=!1;++c<d;){var x=Me(i[c]);if(!(y=e!=null&&o(e,x)))break;e=e[x]}return y||++c!=d?y:(d=e==null?0:e.length,!!d&&Gi(d)&&$e(x,d)&&(Z(e)||Vn(e)))}function p0(e){var i=e.length,o=new e.constructor(i);return i&&typeof e[0]=="string"&&ut.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function dc(e){return typeof e.constructor=="function"&&!Dr(e)?Qn(xi(e)):{}}function m0(e,i,o){var c=e.constructor;switch(i){case wr:return Vo(e);case ue:case Ee:return new c(+e);case Hn:return Zv(e,o);case Ws:case js:case Us:case zs:case Hs:case $s:case Gs:case qs:case Ks:return Xu(e,o);case Nt:return new c;case Tn:case xr:return new c(e);case yr:return Qv(e);case _e:return new c;case oi:return t0(e)}}function g0(e,i){var o=i.length;if(!o)return e;var c=o-1;return i[c]=(o>1?"& ":"")+i[c],i=i.join(o>2?", ":" "),e.replace(ym,`{
46
+ /* [wrapped with `+i+`] */
47
+ `)}function v0(e){return Z(e)||Vn(e)||!!(yu&&e&&e[yu])}function $e(e,i){var o=typeof e;return i=i??ft,!!i&&(o=="number"||o!="symbol"&&Pm.test(e))&&e>-1&&e%1==0&&e<i}function zt(e,i,o){if(!xt(o))return!1;var c=typeof i;return(c=="number"?Xt(o)&&$e(i,o.length):c=="string"&&i in o)?Te(o[i],e):!1}function zo(e,i){if(Z(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||re(e)?!0:pm.test(e)||!dm.test(e)||i!=null&&e in ct(i)}function y0(e){var i=typeof e;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?e!=="__proto__":e===null}function Ho(e){var i=Ni(e),o=v[i];if(typeof o!="function"||!(i in it.prototype))return!1;if(e===o)return!0;var c=Wo(o);return!!c&&e===c[0]}function x0(e){return!!pu&&pu in e}var b0=pi?Ge:aa;function Dr(e){var i=e&&e.constructor,o=typeof i=="function"&&i.prototype||Yn;return e===o}function pc(e){return e===e&&!xt(e)}function mc(e,i){return function(o){return o==null?!1:o[e]===i&&(i!==r||e in ct(o))}}function w0(e){var i=Hi(e,function(c){return o.size===m&&o.clear(),c}),o=i.cache;return i}function E0(e,i){var o=e[1],c=i[1],d=o|c,y=d<(C|M|U),x=c==U&&o==O||c==U&&o==W&&e[7].length<=i[8]||c==(U|W)&&i[7].length<=i[8]&&o==O;if(!(y||x))return e;c&C&&(e[2]=i[2],d|=o&C?0:B);var E=i[3];if(E){var T=e[3];e[3]=T?Ju(T,E,i[4]):E,e[4]=T?on(e[3],g):i[4]}return E=i[5],E&&(T=e[5],e[5]=T?Zu(T,E,i[6]):E,e[6]=T?on(e[5],g):i[6]),E=i[7],E&&(e[7]=E),c&U&&(e[8]=e[8]==null?i[8]:kt(e[8],i[8])),e[9]==null&&(e[9]=i[9]),e[0]=i[0],e[1]=d,e}function _0(e){var i=[];if(e!=null)for(var o in ct(e))i.push(o);return i}function S0(e){return gi.call(e)}function gc(e,i,o){return i=Lt(i===r?e.length-1:i,0),function(){for(var c=arguments,d=-1,y=Lt(c.length-i,0),x=P(y);++d<y;)x[d]=c[i+d];d=-1;for(var E=P(i+1);++d<i;)E[d]=c[d];return E[i]=o(x),te(e,this,E)}}function vc(e,i){return i.length<2?e:Mn(e,me(i,0,-1))}function A0(e,i){for(var o=e.length,c=kt(i.length,o),d=Kt(e);c--;){var y=i[c];e[c]=$e(y,o)?d[y]:r}return e}function $o(e,i){if(!(i==="constructor"&&typeof e[i]=="function")&&i!="__proto__")return e[i]}var yc=bc(ju),Vr=Wg||function(e,i){return Vt.setTimeout(e,i)},Go=bc(Kv);function xc(e,i,o){var c=i+"";return Go(e,g0(c,T0(d0(c),o)))}function bc(e){var i=0,o=0;return function(){var c=Hg(),d=_t-(c-o);if(o=c,d>0){if(++i>=gt)return arguments[0]}else i=0;return e.apply(r,arguments)}}function Wi(e,i){var o=-1,c=e.length,d=c-1;for(i=i===r?c:i;++o<i;){var y=Co(o,d),x=e[y];e[y]=e[o],e[o]=x}return e.length=i,e}var wc=w0(function(e){var i=[];return e.charCodeAt(0)===46&&i.push(""),e.replace(mm,function(o,c,d,y){i.push(d?y.replace(_m,"$1"):c||o)}),i});function Me(e){if(typeof e=="string"||re(e))return e;var i=e+"";return i=="0"&&1/e==-Mt?"-0":i}function Dn(e){if(e!=null){try{return mi.call(e)}catch{}try{return e+""}catch{}}return""}function T0(e,i){return fe(vr,function(o){var c="_."+o[0];i&o[1]&&!ci(e,c)&&e.push(c)}),e.sort()}function Ec(e){if(e instanceof it)return e.clone();var i=new de(e.__wrapped__,e.__chain__);return i.__actions__=Kt(e.__actions__),i.__index__=e.__index__,i.__values__=e.__values__,i}function R0(e,i,o){(o?zt(e,i,o):i===r)?i=1:i=Lt(Q(i),0);var c=e==null?0:e.length;if(!c||i<1)return[];for(var d=0,y=0,x=P(Ei(c/i));d<c;)x[y++]=me(e,d,d+=i);return x}function C0(e){for(var i=-1,o=e==null?0:e.length,c=0,d=[];++i<o;){var y=e[i];y&&(d[c++]=y)}return d}function P0(){var e=arguments.length;if(!e)return[];for(var i=P(e-1),o=arguments[0],c=e;c--;)i[c-1]=arguments[c];return sn(Z(o)?Kt(o):[o],Bt(i,1))}var O0=et(function(e,i){return At(e)?Pr(e,Bt(i,1,At,!0)):[]}),L0=et(function(e,i){var o=ge(i);return At(o)&&(o=r),At(e)?Pr(e,Bt(i,1,At,!0),G(o,2)):[]}),M0=et(function(e,i){var o=ge(i);return At(o)&&(o=r),At(e)?Pr(e,Bt(i,1,At,!0),r,o):[]});function I0(e,i,o){var c=e==null?0:e.length;return c?(i=o||i===r?1:Q(i),me(e,i<0?0:i,c)):[]}function D0(e,i,o){var c=e==null?0:e.length;return c?(i=o||i===r?1:Q(i),i=c-i,me(e,0,i<0?0:i)):[]}function V0(e,i){return e&&e.length?Mi(e,G(i,3),!0,!0):[]}function B0(e,i){return e&&e.length?Mi(e,G(i,3),!0):[]}function F0(e,i,o,c){var d=e==null?0:e.length;return d?(o&&typeof o!="number"&&zt(e,i,o)&&(o=0,c=d),Pv(e,i,o,c)):[]}function _c(e,i,o){var c=e==null?0:e.length;if(!c)return-1;var d=o==null?0:Q(o);return d<0&&(d=Lt(c+d,0)),fi(e,G(i,3),d)}function Sc(e,i,o){var c=e==null?0:e.length;if(!c)return-1;var d=c-1;return o!==r&&(d=Q(o),d=o<0?Lt(c+d,0):kt(d,c-1)),fi(e,G(i,3),d,!0)}function Ac(e){var i=e==null?0:e.length;return i?Bt(e,1):[]}function N0(e){var i=e==null?0:e.length;return i?Bt(e,Mt):[]}function k0(e,i){var o=e==null?0:e.length;return o?(i=i===r?1:Q(i),Bt(e,i)):[]}function W0(e){for(var i=-1,o=e==null?0:e.length,c={};++i<o;){var d=e[i];c[d[0]]=d[1]}return c}function Tc(e){return e&&e.length?e[0]:r}function j0(e,i,o){var c=e==null?0:e.length;if(!c)return-1;var d=o==null?0:Q(o);return d<0&&(d=Lt(c+d,0)),Gn(e,i,d)}function U0(e){var i=e==null?0:e.length;return i?me(e,0,-1):[]}var z0=et(function(e){var i=vt(e,Io);return i.length&&i[0]===e[0]?_o(i):[]}),H0=et(function(e){var i=ge(e),o=vt(e,Io);return i===ge(o)?i=r:o.pop(),o.length&&o[0]===e[0]?_o(o,G(i,2)):[]}),$0=et(function(e){var i=ge(e),o=vt(e,Io);return i=typeof i=="function"?i:r,i&&o.pop(),o.length&&o[0]===e[0]?_o(o,r,i):[]});function G0(e,i){return e==null?"":Ug.call(e,i)}function ge(e){var i=e==null?0:e.length;return i?e[i-1]:r}function q0(e,i,o){var c=e==null?0:e.length;if(!c)return-1;var d=c;return o!==r&&(d=Q(o),d=d<0?Lt(c+d,0):kt(d,c-1)),i===i?Tg(e,i,d):fi(e,ou,d,!0)}function K0(e,i){return e&&e.length?Fu(e,Q(i)):r}var X0=et(Rc);function Rc(e,i){return e&&e.length&&i&&i.length?Ro(e,i):e}function Y0(e,i,o){return e&&e.length&&i&&i.length?Ro(e,i,G(o,2)):e}function J0(e,i,o){return e&&e.length&&i&&i.length?Ro(e,i,r,o):e}var Z0=He(function(e,i){var o=e==null?0:e.length,c=xo(e,i);return Wu(e,vt(i,function(d){return $e(d,o)?+d:d}).sort(Yu)),c});function Q0(e,i){var o=[];if(!(e&&e.length))return o;var c=-1,d=[],y=e.length;for(i=G(i,3);++c<y;){var x=e[c];i(x,c,e)&&(o.push(x),d.push(c))}return Wu(e,d),o}function qo(e){return e==null?e:Gg.call(e)}function ty(e,i,o){var c=e==null?0:e.length;return c?(o&&typeof o!="number"&&zt(e,i,o)?(i=0,o=c):(i=i==null?0:Q(i),o=o===r?c:Q(o)),me(e,i,o)):[]}function ey(e,i){return Li(e,i)}function ny(e,i,o){return Oo(e,i,G(o,2))}function ry(e,i){var o=e==null?0:e.length;if(o){var c=Li(e,i);if(c<o&&Te(e[c],i))return c}return-1}function iy(e,i){return Li(e,i,!0)}function sy(e,i,o){return Oo(e,i,G(o,2),!0)}function oy(e,i){var o=e==null?0:e.length;if(o){var c=Li(e,i,!0)-1;if(Te(e[c],i))return c}return-1}function ay(e){return e&&e.length?Uu(e):[]}function ly(e,i){return e&&e.length?Uu(e,G(i,2)):[]}function uy(e){var i=e==null?0:e.length;return i?me(e,1,i):[]}function cy(e,i,o){return e&&e.length?(i=o||i===r?1:Q(i),me(e,0,i<0?0:i)):[]}function fy(e,i,o){var c=e==null?0:e.length;return c?(i=o||i===r?1:Q(i),i=c-i,me(e,i<0?0:i,c)):[]}function hy(e,i){return e&&e.length?Mi(e,G(i,3),!1,!0):[]}function dy(e,i){return e&&e.length?Mi(e,G(i,3)):[]}var py=et(function(e){return un(Bt(e,1,At,!0))}),my=et(function(e){var i=ge(e);return At(i)&&(i=r),un(Bt(e,1,At,!0),G(i,2))}),gy=et(function(e){var i=ge(e);return i=typeof i=="function"?i:r,un(Bt(e,1,At,!0),r,i)});function vy(e){return e&&e.length?un(e):[]}function yy(e,i){return e&&e.length?un(e,G(i,2)):[]}function xy(e,i){return i=typeof i=="function"?i:r,e&&e.length?un(e,r,i):[]}function Ko(e){if(!(e&&e.length))return[];var i=0;return e=rn(e,function(o){if(At(o))return i=Lt(o.length,i),!0}),co(i,function(o){return vt(e,ao(o))})}function Cc(e,i){if(!(e&&e.length))return[];var o=Ko(e);return i==null?o:vt(o,function(c){return te(i,r,c)})}var by=et(function(e,i){return At(e)?Pr(e,i):[]}),wy=et(function(e){return Mo(rn(e,At))}),Ey=et(function(e){var i=ge(e);return At(i)&&(i=r),Mo(rn(e,At),G(i,2))}),_y=et(function(e){var i=ge(e);return i=typeof i=="function"?i:r,Mo(rn(e,At),r,i)}),Sy=et(Ko);function Ay(e,i){return Gu(e||[],i||[],Cr)}function Ty(e,i){return Gu(e||[],i||[],Mr)}var Ry=et(function(e){var i=e.length,o=i>1?e[i-1]:r;return o=typeof o=="function"?(e.pop(),o):r,Cc(e,o)});function Pc(e){var i=v(e);return i.__chain__=!0,i}function Cy(e,i){return i(e),e}function ji(e,i){return i(e)}var Py=He(function(e){var i=e.length,o=i?e[0]:0,c=this.__wrapped__,d=function(y){return xo(y,e)};return i>1||this.__actions__.length||!(c instanceof it)||!$e(o)?this.thru(d):(c=c.slice(o,+o+(i?1:0)),c.__actions__.push({func:ji,args:[d],thisArg:r}),new de(c,this.__chain__).thru(function(y){return i&&!y.length&&y.push(r),y}))});function Oy(){return Pc(this)}function Ly(){return new de(this.value(),this.__chain__)}function My(){this.__values__===r&&(this.__values__=zc(this.value()));var e=this.__index__>=this.__values__.length,i=e?r:this.__values__[this.__index__++];return{done:e,value:i}}function Iy(){return this}function Dy(e){for(var i,o=this;o instanceof Ti;){var c=Ec(o);c.__index__=0,c.__values__=r,i?d.__wrapped__=c:i=c;var d=c;o=o.__wrapped__}return d.__wrapped__=e,i}function Vy(){var e=this.__wrapped__;if(e instanceof it){var i=e;return this.__actions__.length&&(i=new it(this)),i=i.reverse(),i.__actions__.push({func:ji,args:[qo],thisArg:r}),new de(i,this.__chain__)}return this.thru(qo)}function By(){return $u(this.__wrapped__,this.__actions__)}var Fy=Ii(function(e,i,o){ut.call(e,o)?++e[o]:Ue(e,o,1)});function Ny(e,i,o){var c=Z(e)?iu:Cv;return o&&zt(e,i,o)&&(i=r),c(e,G(i,3))}function ky(e,i){var o=Z(e)?rn:Cu;return o(e,G(i,3))}var Wy=nc(_c),jy=nc(Sc);function Uy(e,i){return Bt(Ui(e,i),1)}function zy(e,i){return Bt(Ui(e,i),Mt)}function Hy(e,i,o){return o=o===r?1:Q(o),Bt(Ui(e,i),o)}function Oc(e,i){var o=Z(e)?fe:ln;return o(e,G(i,3))}function Lc(e,i){var o=Z(e)?ug:Ru;return o(e,G(i,3))}var $y=Ii(function(e,i,o){ut.call(e,o)?e[o].push(i):Ue(e,o,[i])});function Gy(e,i,o,c){e=Xt(e)?e:ir(e),o=o&&!c?Q(o):0;var d=e.length;return o<0&&(o=Lt(d+o,0)),qi(e)?o<=d&&e.indexOf(i,o)>-1:!!d&&Gn(e,i,o)>-1}var qy=et(function(e,i,o){var c=-1,d=typeof i=="function",y=Xt(e)?P(e.length):[];return ln(e,function(x){y[++c]=d?te(i,x,o):Or(x,i,o)}),y}),Ky=Ii(function(e,i,o){Ue(e,o,i)});function Ui(e,i){var o=Z(e)?vt:Du;return o(e,G(i,3))}function Xy(e,i,o,c){return e==null?[]:(Z(i)||(i=i==null?[]:[i]),o=c?r:o,Z(o)||(o=o==null?[]:[o]),Nu(e,i,o))}var Yy=Ii(function(e,i,o){e[o?0:1].push(i)},function(){return[[],[]]});function Jy(e,i,o){var c=Z(e)?so:lu,d=arguments.length<3;return c(e,G(i,4),o,d,ln)}function Zy(e,i,o){var c=Z(e)?cg:lu,d=arguments.length<3;return c(e,G(i,4),o,d,Ru)}function Qy(e,i){var o=Z(e)?rn:Cu;return o(e,$i(G(i,3)))}function tx(e){var i=Z(e)?_u:Gv;return i(e)}function ex(e,i,o){(o?zt(e,i,o):i===r)?i=1:i=Q(i);var c=Z(e)?_v:qv;return c(e,i)}function nx(e){var i=Z(e)?Sv:Xv;return i(e)}function rx(e){if(e==null)return 0;if(Xt(e))return qi(e)?Kn(e):e.length;var i=Wt(e);return i==Nt||i==_e?e.size:Ao(e).length}function ix(e,i,o){var c=Z(e)?oo:Yv;return o&&zt(e,i,o)&&(i=r),c(e,G(i,3))}var sx=et(function(e,i){if(e==null)return[];var o=i.length;return o>1&&zt(e,i[0],i[1])?i=[]:o>2&&zt(i[0],i[1],i[2])&&(i=[i[0]]),Nu(e,Bt(i,1),[])}),zi=kg||function(){return Vt.Date.now()};function ox(e,i){if(typeof i!="function")throw new he(l);return e=Q(e),function(){if(--e<1)return i.apply(this,arguments)}}function Mc(e,i,o){return i=o?r:i,i=e&&i==null?e.length:i,ze(e,U,r,r,r,r,i)}function Ic(e,i){var o;if(typeof i!="function")throw new he(l);return e=Q(e),function(){return--e>0&&(o=i.apply(this,arguments)),e<=1&&(i=r),o}}var Xo=et(function(e,i,o){var c=C;if(o.length){var d=on(o,nr(Xo));c|=k}return ze(e,c,i,o,d)}),Dc=et(function(e,i,o){var c=C|M;if(o.length){var d=on(o,nr(Dc));c|=k}return ze(i,c,e,o,d)});function Vc(e,i,o){i=o?r:i;var c=ze(e,O,r,r,r,r,r,i);return c.placeholder=Vc.placeholder,c}function Bc(e,i,o){i=o?r:i;var c=ze(e,N,r,r,r,r,r,i);return c.placeholder=Bc.placeholder,c}function Fc(e,i,o){var c,d,y,x,E,T,I=0,D=!1,F=!1,j=!0;if(typeof e!="function")throw new he(l);i=ve(i)||0,xt(o)&&(D=!!o.leading,F="maxWait"in o,y=F?Lt(ve(o.maxWait)||0,i):y,j="trailing"in o?!!o.trailing:j);function $(Tt){var Re=c,Ke=d;return c=d=r,I=Tt,x=e.apply(Ke,Re),x}function K(Tt){return I=Tt,E=Vr(nt,i),D?$(Tt):x}function tt(Tt){var Re=Tt-T,Ke=Tt-I,nf=i-Re;return F?kt(nf,y-Ke):nf}function X(Tt){var Re=Tt-T,Ke=Tt-I;return T===r||Re>=i||Re<0||F&&Ke>=y}function nt(){var Tt=zi();if(X(Tt))return st(Tt);E=Vr(nt,tt(Tt))}function st(Tt){return E=r,j&&c?$(Tt):(c=d=r,x)}function ie(){E!==r&&qu(E),I=0,c=T=d=E=r}function Ht(){return E===r?x:st(zi())}function se(){var Tt=zi(),Re=X(Tt);if(c=arguments,d=this,T=Tt,Re){if(E===r)return K(T);if(F)return qu(E),E=Vr(nt,i),$(T)}return E===r&&(E=Vr(nt,i)),x}return se.cancel=ie,se.flush=Ht,se}var ax=et(function(e,i){return Tu(e,1,i)}),lx=et(function(e,i,o){return Tu(e,ve(i)||0,o)});function ux(e){return ze(e,q)}function Hi(e,i){if(typeof e!="function"||i!=null&&typeof i!="function")throw new he(l);var o=function(){var c=arguments,d=i?i.apply(this,c):c[0],y=o.cache;if(y.has(d))return y.get(d);var x=e.apply(this,c);return o.cache=y.set(d,x)||y,x};return o.cache=new(Hi.Cache||je),o}Hi.Cache=je;function $i(e){if(typeof e!="function")throw new he(l);return function(){var i=arguments;switch(i.length){case 0:return!e.call(this);case 1:return!e.call(this,i[0]);case 2:return!e.call(this,i[0],i[1]);case 3:return!e.call(this,i[0],i[1],i[2])}return!e.apply(this,i)}}function cx(e){return Ic(2,e)}var fx=Jv(function(e,i){i=i.length==1&&Z(i[0])?vt(i[0],ee(G())):vt(Bt(i,1),ee(G()));var o=i.length;return et(function(c){for(var d=-1,y=kt(c.length,o);++d<y;)c[d]=i[d].call(this,c[d]);return te(e,this,c)})}),Yo=et(function(e,i){var o=on(i,nr(Yo));return ze(e,k,r,i,o)}),Nc=et(function(e,i){var o=on(i,nr(Nc));return ze(e,z,r,i,o)}),hx=He(function(e,i){return ze(e,W,r,r,r,i)});function dx(e,i){if(typeof e!="function")throw new he(l);return i=i===r?i:Q(i),et(e,i)}function px(e,i){if(typeof e!="function")throw new he(l);return i=i==null?0:Lt(Q(i),0),et(function(o){var c=o[i],d=fn(o,0,i);return c&&sn(d,c),te(e,this,d)})}function mx(e,i,o){var c=!0,d=!0;if(typeof e!="function")throw new he(l);return xt(o)&&(c="leading"in o?!!o.leading:c,d="trailing"in o?!!o.trailing:d),Fc(e,i,{leading:c,maxWait:i,trailing:d})}function gx(e){return Mc(e,1)}function vx(e,i){return Yo(Do(i),e)}function yx(){if(!arguments.length)return[];var e=arguments[0];return Z(e)?e:[e]}function xx(e){return pe(e,w)}function bx(e,i){return i=typeof i=="function"?i:r,pe(e,w,i)}function wx(e){return pe(e,p|w)}function Ex(e,i){return i=typeof i=="function"?i:r,pe(e,p|w,i)}function _x(e,i){return i==null||Au(e,i,It(i))}function Te(e,i){return e===i||e!==e&&i!==i}var Sx=Fi(Eo),Ax=Fi(function(e,i){return e>=i}),Vn=Lu(function(){return arguments}())?Lu:function(e){return wt(e)&&ut.call(e,"callee")&&!vu.call(e,"callee")},Z=P.isArray,Tx=Zl?ee(Zl):Dv;function Xt(e){return e!=null&&Gi(e.length)&&!Ge(e)}function At(e){return wt(e)&&Xt(e)}function Rx(e){return e===!0||e===!1||wt(e)&&Ut(e)==ue}var hn=jg||aa,Cx=Ql?ee(Ql):Vv;function Px(e){return wt(e)&&e.nodeType===1&&!Br(e)}function Ox(e){if(e==null)return!0;if(Xt(e)&&(Z(e)||typeof e=="string"||typeof e.splice=="function"||hn(e)||rr(e)||Vn(e)))return!e.length;var i=Wt(e);if(i==Nt||i==_e)return!e.size;if(Dr(e))return!Ao(e).length;for(var o in e)if(ut.call(e,o))return!1;return!0}function Lx(e,i){return Lr(e,i)}function Mx(e,i,o){o=typeof o=="function"?o:r;var c=o?o(e,i):r;return c===r?Lr(e,i,r,o):!!c}function Jo(e){if(!wt(e))return!1;var i=Ut(e);return i==Ft||i==Ne||typeof e.message=="string"&&typeof e.name=="string"&&!Br(e)}function Ix(e){return typeof e=="number"&&xu(e)}function Ge(e){if(!xt(e))return!1;var i=Ut(e);return i==An||i==zn||i==nn||i==rm}function kc(e){return typeof e=="number"&&e==Q(e)}function Gi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ft}function xt(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}function wt(e){return e!=null&&typeof e=="object"}var Wc=tu?ee(tu):Fv;function Dx(e,i){return e===i||So(e,i,jo(i))}function Vx(e,i,o){return o=typeof o=="function"?o:r,So(e,i,jo(i),o)}function Bx(e){return jc(e)&&e!=+e}function Fx(e){if(b0(e))throw new J(u);return Mu(e)}function Nx(e){return e===null}function kx(e){return e==null}function jc(e){return typeof e=="number"||wt(e)&&Ut(e)==Tn}function Br(e){if(!wt(e)||Ut(e)!=ke)return!1;var i=xi(e);if(i===null)return!0;var o=ut.call(i,"constructor")&&i.constructor;return typeof o=="function"&&o instanceof o&&mi.call(o)==Vg}var Zo=eu?ee(eu):Nv;function Wx(e){return kc(e)&&e>=-ft&&e<=ft}var Uc=nu?ee(nu):kv;function qi(e){return typeof e=="string"||!Z(e)&&wt(e)&&Ut(e)==xr}function re(e){return typeof e=="symbol"||wt(e)&&Ut(e)==oi}var rr=ru?ee(ru):Wv;function jx(e){return e===r}function Ux(e){return wt(e)&&Wt(e)==br}function zx(e){return wt(e)&&Ut(e)==sm}var Hx=Fi(To),$x=Fi(function(e,i){return e<=i});function zc(e){if(!e)return[];if(Xt(e))return qi(e)?Se(e):Kt(e);if(_r&&e[_r])return _g(e[_r]());var i=Wt(e),o=i==Nt?ho:i==_e?hi:ir;return o(e)}function qe(e){if(!e)return e===0?e:0;if(e=ve(e),e===Mt||e===-Mt){var i=e<0?-1:1;return i*Pe}return e===e?e:0}function Q(e){var i=qe(e),o=i%1;return i===i?o?i-o:i:0}function Hc(e){return e?Ln(Q(e),0,rt):0}function ve(e){if(typeof e=="number")return e;if(re(e))return we;if(xt(e)){var i=typeof e.valueOf=="function"?e.valueOf():e;e=xt(i)?i+"":i}if(typeof e!="string")return e===0?e:+e;e=uu(e);var o=Tm.test(e);return o||Cm.test(e)?og(e.slice(2),o?2:8):Am.test(e)?we:+e}function $c(e){return Le(e,Yt(e))}function Gx(e){return e?Ln(Q(e),-ft,ft):e===0?e:0}function lt(e){return e==null?"":ne(e)}var qx=tr(function(e,i){if(Dr(i)||Xt(i)){Le(i,It(i),e);return}for(var o in i)ut.call(i,o)&&Cr(e,o,i[o])}),Gc=tr(function(e,i){Le(i,Yt(i),e)}),Ki=tr(function(e,i,o,c){Le(i,Yt(i),e,c)}),Kx=tr(function(e,i,o,c){Le(i,It(i),e,c)}),Xx=He(xo);function Yx(e,i){var o=Qn(e);return i==null?o:Su(o,i)}var Jx=et(function(e,i){e=ct(e);var o=-1,c=i.length,d=c>2?i[2]:r;for(d&&zt(i[0],i[1],d)&&(c=1);++o<c;)for(var y=i[o],x=Yt(y),E=-1,T=x.length;++E<T;){var I=x[E],D=e[I];(D===r||Te(D,Yn[I])&&!ut.call(e,I))&&(e[I]=y[I])}return e}),Zx=et(function(e){return e.push(r,uc),te(qc,r,e)});function Qx(e,i){return su(e,G(i,3),Oe)}function tb(e,i){return su(e,G(i,3),wo)}function eb(e,i){return e==null?e:bo(e,G(i,3),Yt)}function nb(e,i){return e==null?e:Pu(e,G(i,3),Yt)}function rb(e,i){return e&&Oe(e,G(i,3))}function ib(e,i){return e&&wo(e,G(i,3))}function sb(e){return e==null?[]:Pi(e,It(e))}function ob(e){return e==null?[]:Pi(e,Yt(e))}function Qo(e,i,o){var c=e==null?r:Mn(e,i);return c===r?o:c}function ab(e,i){return e!=null&&hc(e,i,Ov)}function ta(e,i){return e!=null&&hc(e,i,Lv)}var lb=ic(function(e,i,o){i!=null&&typeof i.toString!="function"&&(i=gi.call(i)),e[i]=o},na(Jt)),ub=ic(function(e,i,o){i!=null&&typeof i.toString!="function"&&(i=gi.call(i)),ut.call(e,i)?e[i].push(o):e[i]=[o]},G),cb=et(Or);function It(e){return Xt(e)?Eu(e):Ao(e)}function Yt(e){return Xt(e)?Eu(e,!0):jv(e)}function fb(e,i){var o={};return i=G(i,3),Oe(e,function(c,d,y){Ue(o,i(c,d,y),c)}),o}function hb(e,i){var o={};return i=G(i,3),Oe(e,function(c,d,y){Ue(o,d,i(c,d,y))}),o}var db=tr(function(e,i,o){Oi(e,i,o)}),qc=tr(function(e,i,o,c){Oi(e,i,o,c)}),pb=He(function(e,i){var o={};if(e==null)return o;var c=!1;i=vt(i,function(y){return y=cn(y,e),c||(c=y.length>1),y}),Le(e,ko(e),o),c&&(o=pe(o,p|b|w,l0));for(var d=i.length;d--;)Lo(o,i[d]);return o});function mb(e,i){return Kc(e,$i(G(i)))}var gb=He(function(e,i){return e==null?{}:zv(e,i)});function Kc(e,i){if(e==null)return{};var o=vt(ko(e),function(c){return[c]});return i=G(i),ku(e,o,function(c,d){return i(c,d[0])})}function vb(e,i,o){i=cn(i,e);var c=-1,d=i.length;for(d||(d=1,e=r);++c<d;){var y=e==null?r:e[Me(i[c])];y===r&&(c=d,y=o),e=Ge(y)?y.call(e):y}return e}function yb(e,i,o){return e==null?e:Mr(e,i,o)}function xb(e,i,o,c){return c=typeof c=="function"?c:r,e==null?e:Mr(e,i,o,c)}var Xc=ac(It),Yc=ac(Yt);function bb(e,i,o){var c=Z(e),d=c||hn(e)||rr(e);if(i=G(i,4),o==null){var y=e&&e.constructor;d?o=c?new y:[]:xt(e)?o=Ge(y)?Qn(xi(e)):{}:o={}}return(d?fe:Oe)(e,function(x,E,T){return i(o,x,E,T)}),o}function wb(e,i){return e==null?!0:Lo(e,i)}function Eb(e,i,o){return e==null?e:Hu(e,i,Do(o))}function _b(e,i,o,c){return c=typeof c=="function"?c:r,e==null?e:Hu(e,i,Do(o),c)}function ir(e){return e==null?[]:fo(e,It(e))}function Sb(e){return e==null?[]:fo(e,Yt(e))}function Ab(e,i,o){return o===r&&(o=i,i=r),o!==r&&(o=ve(o),o=o===o?o:0),i!==r&&(i=ve(i),i=i===i?i:0),Ln(ve(e),i,o)}function Tb(e,i,o){return i=qe(i),o===r?(o=i,i=0):o=qe(o),e=ve(e),Mv(e,i,o)}function Rb(e,i,o){if(o&&typeof o!="boolean"&&zt(e,i,o)&&(i=o=r),o===r&&(typeof i=="boolean"?(o=i,i=r):typeof e=="boolean"&&(o=e,e=r)),e===r&&i===r?(e=0,i=1):(e=qe(e),i===r?(i=e,e=0):i=qe(i)),e>i){var c=e;e=i,i=c}if(o||e%1||i%1){var d=bu();return kt(e+d*(i-e+sg("1e-"+((d+"").length-1))),i)}return Co(e,i)}var Cb=er(function(e,i,o){return i=i.toLowerCase(),e+(o?Jc(i):i)});function Jc(e){return ea(lt(e).toLowerCase())}function Zc(e){return e=lt(e),e&&e.replace(Om,yg).replace(Xm,"")}function Pb(e,i,o){e=lt(e),i=ne(i);var c=e.length;o=o===r?c:Ln(Q(o),0,c);var d=o;return o-=i.length,o>=0&&e.slice(o,d)==i}function Ob(e){return e=lt(e),e&&cm.test(e)?e.replace(Pl,xg):e}function Lb(e){return e=lt(e),e&&gm.test(e)?e.replace(Xs,"\\$&"):e}var Mb=er(function(e,i,o){return e+(o?"-":"")+i.toLowerCase()}),Ib=er(function(e,i,o){return e+(o?" ":"")+i.toLowerCase()}),Db=ec("toLowerCase");function Vb(e,i,o){e=lt(e),i=Q(i);var c=i?Kn(e):0;if(!i||c>=i)return e;var d=(i-c)/2;return Bi(_i(d),o)+e+Bi(Ei(d),o)}function Bb(e,i,o){e=lt(e),i=Q(i);var c=i?Kn(e):0;return i&&c<i?e+Bi(i-c,o):e}function Fb(e,i,o){e=lt(e),i=Q(i);var c=i?Kn(e):0;return i&&c<i?Bi(i-c,o)+e:e}function Nb(e,i,o){return o||i==null?i=0:i&&(i=+i),$g(lt(e).replace(Ys,""),i||0)}function kb(e,i,o){return(o?zt(e,i,o):i===r)?i=1:i=Q(i),Po(lt(e),i)}function Wb(){var e=arguments,i=lt(e[0]);return e.length<3?i:i.replace(e[1],e[2])}var jb=er(function(e,i,o){return e+(o?"_":"")+i.toLowerCase()});function Ub(e,i,o){return o&&typeof o!="number"&&zt(e,i,o)&&(i=o=r),o=o===r?rt:o>>>0,o?(e=lt(e),e&&(typeof i=="string"||i!=null&&!Zo(i))&&(i=ne(i),!i&&qn(e))?fn(Se(e),0,o):e.split(i,o)):[]}var zb=er(function(e,i,o){return e+(o?" ":"")+ea(i)});function Hb(e,i,o){return e=lt(e),o=o==null?0:Ln(Q(o),0,e.length),i=ne(i),e.slice(o,o+i.length)==i}function $b(e,i,o){var c=v.templateSettings;o&&zt(e,i,o)&&(i=r),e=lt(e),i=Ki({},i,c,lc);var d=Ki({},i.imports,c.imports,lc),y=It(d),x=fo(d,y),E,T,I=0,D=i.interpolate||ai,F="__p += '",j=po((i.escape||ai).source+"|"+D.source+"|"+(D===Ol?Sm:ai).source+"|"+(i.evaluate||ai).source+"|$","g"),$="//# sourceURL="+(ut.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tg+"]")+`
48
+ `;e.replace(j,function(X,nt,st,ie,Ht,se){return st||(st=ie),F+=e.slice(I,se).replace(Lm,bg),nt&&(E=!0,F+=`' +
49
+ __e(`+nt+`) +
50
+ '`),Ht&&(T=!0,F+=`';
51
+ `+Ht+`;
52
+ __p += '`),st&&(F+=`' +
53
+ ((__t = (`+st+`)) == null ? '' : __t) +
54
+ '`),I=se+X.length,X}),F+=`';
55
+ `;var K=ut.call(i,"variable")&&i.variable;if(!K)F=`with (obj) {
56
+ `+F+`
57
+ }
58
+ `;else if(Em.test(K))throw new J(f);F=(T?F.replace(om,""):F).replace(am,"$1").replace(lm,"$1;"),F="function("+(K||"obj")+`) {
59
+ `+(K?"":`obj || (obj = {});
60
+ `)+"var __t, __p = ''"+(E?", __e = _.escape":"")+(T?`, __j = Array.prototype.join;
61
+ function print() { __p += __j.call(arguments, '') }
62
+ `:`;
63
+ `)+F+`return __p
64
+ }`;var tt=tf(function(){return at(y,$+"return "+F).apply(r,x)});if(tt.source=F,Jo(tt))throw tt;return tt}function Gb(e){return lt(e).toLowerCase()}function qb(e){return lt(e).toUpperCase()}function Kb(e,i,o){if(e=lt(e),e&&(o||i===r))return uu(e);if(!e||!(i=ne(i)))return e;var c=Se(e),d=Se(i),y=cu(c,d),x=fu(c,d)+1;return fn(c,y,x).join("")}function Xb(e,i,o){if(e=lt(e),e&&(o||i===r))return e.slice(0,du(e)+1);if(!e||!(i=ne(i)))return e;var c=Se(e),d=fu(c,Se(i))+1;return fn(c,0,d).join("")}function Yb(e,i,o){if(e=lt(e),e&&(o||i===r))return e.replace(Ys,"");if(!e||!(i=ne(i)))return e;var c=Se(e),d=cu(c,Se(i));return fn(c,d).join("")}function Jb(e,i){var o=mt,c=Dt;if(xt(i)){var d="separator"in i?i.separator:d;o="length"in i?Q(i.length):o,c="omission"in i?ne(i.omission):c}e=lt(e);var y=e.length;if(qn(e)){var x=Se(e);y=x.length}if(o>=y)return e;var E=o-Kn(c);if(E<1)return c;var T=x?fn(x,0,E).join(""):e.slice(0,E);if(d===r)return T+c;if(x&&(E+=T.length-E),Zo(d)){if(e.slice(E).search(d)){var I,D=T;for(d.global||(d=po(d.source,lt(Ll.exec(d))+"g")),d.lastIndex=0;I=d.exec(D);)var F=I.index;T=T.slice(0,F===r?E:F)}}else if(e.indexOf(ne(d),E)!=E){var j=T.lastIndexOf(d);j>-1&&(T=T.slice(0,j))}return T+c}function Zb(e){return e=lt(e),e&&um.test(e)?e.replace(Cl,Rg):e}var Qb=er(function(e,i,o){return e+(o?" ":"")+i.toUpperCase()}),ea=ec("toUpperCase");function Qc(e,i,o){return e=lt(e),i=o?r:i,i===r?Eg(e)?Og(e):dg(e):e.match(i)||[]}var tf=et(function(e,i){try{return te(e,r,i)}catch(o){return Jo(o)?o:new J(o)}}),tw=He(function(e,i){return fe(i,function(o){o=Me(o),Ue(e,o,Xo(e[o],e))}),e});function ew(e){var i=e==null?0:e.length,o=G();return e=i?vt(e,function(c){if(typeof c[1]!="function")throw new he(l);return[o(c[0]),c[1]]}):[],et(function(c){for(var d=-1;++d<i;){var y=e[d];if(te(y[0],this,c))return te(y[1],this,c)}})}function nw(e){return Rv(pe(e,p))}function na(e){return function(){return e}}function rw(e,i){return e==null||e!==e?i:e}var iw=rc(),sw=rc(!0);function Jt(e){return e}function ra(e){return Iu(typeof e=="function"?e:pe(e,p))}function ow(e){return Vu(pe(e,p))}function aw(e,i){return Bu(e,pe(i,p))}var lw=et(function(e,i){return function(o){return Or(o,e,i)}}),uw=et(function(e,i){return function(o){return Or(e,o,i)}});function ia(e,i,o){var c=It(i),d=Pi(i,c);o==null&&!(xt(i)&&(d.length||!c.length))&&(o=i,i=e,e=this,d=Pi(i,It(i)));var y=!(xt(o)&&"chain"in o)||!!o.chain,x=Ge(e);return fe(d,function(E){var T=i[E];e[E]=T,x&&(e.prototype[E]=function(){var I=this.__chain__;if(y||I){var D=e(this.__wrapped__),F=D.__actions__=Kt(this.__actions__);return F.push({func:T,args:arguments,thisArg:e}),D.__chain__=I,D}return T.apply(e,sn([this.value()],arguments))})}),e}function cw(){return Vt._===this&&(Vt._=Bg),this}function sa(){}function fw(e){return e=Q(e),et(function(i){return Fu(i,e)})}var hw=Bo(vt),dw=Bo(iu),pw=Bo(oo);function ef(e){return zo(e)?ao(Me(e)):Hv(e)}function mw(e){return function(i){return e==null?r:Mn(e,i)}}var gw=sc(),vw=sc(!0);function oa(){return[]}function aa(){return!1}function yw(){return{}}function xw(){return""}function bw(){return!0}function ww(e,i){if(e=Q(e),e<1||e>ft)return[];var o=rt,c=kt(e,rt);i=G(i),e-=rt;for(var d=co(c,i);++o<e;)i(o);return d}function Ew(e){return Z(e)?vt(e,Me):re(e)?[e]:Kt(wc(lt(e)))}function _w(e){var i=++Dg;return lt(e)+i}var Sw=Vi(function(e,i){return e+i},0),Aw=Fo("ceil"),Tw=Vi(function(e,i){return e/i},1),Rw=Fo("floor");function Cw(e){return e&&e.length?Ci(e,Jt,Eo):r}function Pw(e,i){return e&&e.length?Ci(e,G(i,2),Eo):r}function Ow(e){return au(e,Jt)}function Lw(e,i){return au(e,G(i,2))}function Mw(e){return e&&e.length?Ci(e,Jt,To):r}function Iw(e,i){return e&&e.length?Ci(e,G(i,2),To):r}var Dw=Vi(function(e,i){return e*i},1),Vw=Fo("round"),Bw=Vi(function(e,i){return e-i},0);function Fw(e){return e&&e.length?uo(e,Jt):0}function Nw(e,i){return e&&e.length?uo(e,G(i,2)):0}return v.after=ox,v.ary=Mc,v.assign=qx,v.assignIn=Gc,v.assignInWith=Ki,v.assignWith=Kx,v.at=Xx,v.before=Ic,v.bind=Xo,v.bindAll=tw,v.bindKey=Dc,v.castArray=yx,v.chain=Pc,v.chunk=R0,v.compact=C0,v.concat=P0,v.cond=ew,v.conforms=nw,v.constant=na,v.countBy=Fy,v.create=Yx,v.curry=Vc,v.curryRight=Bc,v.debounce=Fc,v.defaults=Jx,v.defaultsDeep=Zx,v.defer=ax,v.delay=lx,v.difference=O0,v.differenceBy=L0,v.differenceWith=M0,v.drop=I0,v.dropRight=D0,v.dropRightWhile=V0,v.dropWhile=B0,v.fill=F0,v.filter=ky,v.flatMap=Uy,v.flatMapDeep=zy,v.flatMapDepth=Hy,v.flatten=Ac,v.flattenDeep=N0,v.flattenDepth=k0,v.flip=ux,v.flow=iw,v.flowRight=sw,v.fromPairs=W0,v.functions=sb,v.functionsIn=ob,v.groupBy=$y,v.initial=U0,v.intersection=z0,v.intersectionBy=H0,v.intersectionWith=$0,v.invert=lb,v.invertBy=ub,v.invokeMap=qy,v.iteratee=ra,v.keyBy=Ky,v.keys=It,v.keysIn=Yt,v.map=Ui,v.mapKeys=fb,v.mapValues=hb,v.matches=ow,v.matchesProperty=aw,v.memoize=Hi,v.merge=db,v.mergeWith=qc,v.method=lw,v.methodOf=uw,v.mixin=ia,v.negate=$i,v.nthArg=fw,v.omit=pb,v.omitBy=mb,v.once=cx,v.orderBy=Xy,v.over=hw,v.overArgs=fx,v.overEvery=dw,v.overSome=pw,v.partial=Yo,v.partialRight=Nc,v.partition=Yy,v.pick=gb,v.pickBy=Kc,v.property=ef,v.propertyOf=mw,v.pull=X0,v.pullAll=Rc,v.pullAllBy=Y0,v.pullAllWith=J0,v.pullAt=Z0,v.range=gw,v.rangeRight=vw,v.rearg=hx,v.reject=Qy,v.remove=Q0,v.rest=dx,v.reverse=qo,v.sampleSize=ex,v.set=yb,v.setWith=xb,v.shuffle=nx,v.slice=ty,v.sortBy=sx,v.sortedUniq=ay,v.sortedUniqBy=ly,v.split=Ub,v.spread=px,v.tail=uy,v.take=cy,v.takeRight=fy,v.takeRightWhile=hy,v.takeWhile=dy,v.tap=Cy,v.throttle=mx,v.thru=ji,v.toArray=zc,v.toPairs=Xc,v.toPairsIn=Yc,v.toPath=Ew,v.toPlainObject=$c,v.transform=bb,v.unary=gx,v.union=py,v.unionBy=my,v.unionWith=gy,v.uniq=vy,v.uniqBy=yy,v.uniqWith=xy,v.unset=wb,v.unzip=Ko,v.unzipWith=Cc,v.update=Eb,v.updateWith=_b,v.values=ir,v.valuesIn=Sb,v.without=by,v.words=Qc,v.wrap=vx,v.xor=wy,v.xorBy=Ey,v.xorWith=_y,v.zip=Sy,v.zipObject=Ay,v.zipObjectDeep=Ty,v.zipWith=Ry,v.entries=Xc,v.entriesIn=Yc,v.extend=Gc,v.extendWith=Ki,ia(v,v),v.add=Sw,v.attempt=tf,v.camelCase=Cb,v.capitalize=Jc,v.ceil=Aw,v.clamp=Ab,v.clone=xx,v.cloneDeep=wx,v.cloneDeepWith=Ex,v.cloneWith=bx,v.conformsTo=_x,v.deburr=Zc,v.defaultTo=rw,v.divide=Tw,v.endsWith=Pb,v.eq=Te,v.escape=Ob,v.escapeRegExp=Lb,v.every=Ny,v.find=Wy,v.findIndex=_c,v.findKey=Qx,v.findLast=jy,v.findLastIndex=Sc,v.findLastKey=tb,v.floor=Rw,v.forEach=Oc,v.forEachRight=Lc,v.forIn=eb,v.forInRight=nb,v.forOwn=rb,v.forOwnRight=ib,v.get=Qo,v.gt=Sx,v.gte=Ax,v.has=ab,v.hasIn=ta,v.head=Tc,v.identity=Jt,v.includes=Gy,v.indexOf=j0,v.inRange=Tb,v.invoke=cb,v.isArguments=Vn,v.isArray=Z,v.isArrayBuffer=Tx,v.isArrayLike=Xt,v.isArrayLikeObject=At,v.isBoolean=Rx,v.isBuffer=hn,v.isDate=Cx,v.isElement=Px,v.isEmpty=Ox,v.isEqual=Lx,v.isEqualWith=Mx,v.isError=Jo,v.isFinite=Ix,v.isFunction=Ge,v.isInteger=kc,v.isLength=Gi,v.isMap=Wc,v.isMatch=Dx,v.isMatchWith=Vx,v.isNaN=Bx,v.isNative=Fx,v.isNil=kx,v.isNull=Nx,v.isNumber=jc,v.isObject=xt,v.isObjectLike=wt,v.isPlainObject=Br,v.isRegExp=Zo,v.isSafeInteger=Wx,v.isSet=Uc,v.isString=qi,v.isSymbol=re,v.isTypedArray=rr,v.isUndefined=jx,v.isWeakMap=Ux,v.isWeakSet=zx,v.join=G0,v.kebabCase=Mb,v.last=ge,v.lastIndexOf=q0,v.lowerCase=Ib,v.lowerFirst=Db,v.lt=Hx,v.lte=$x,v.max=Cw,v.maxBy=Pw,v.mean=Ow,v.meanBy=Lw,v.min=Mw,v.minBy=Iw,v.stubArray=oa,v.stubFalse=aa,v.stubObject=yw,v.stubString=xw,v.stubTrue=bw,v.multiply=Dw,v.nth=K0,v.noConflict=cw,v.noop=sa,v.now=zi,v.pad=Vb,v.padEnd=Bb,v.padStart=Fb,v.parseInt=Nb,v.random=Rb,v.reduce=Jy,v.reduceRight=Zy,v.repeat=kb,v.replace=Wb,v.result=vb,v.round=Vw,v.runInContext=A,v.sample=tx,v.size=rx,v.snakeCase=jb,v.some=ix,v.sortedIndex=ey,v.sortedIndexBy=ny,v.sortedIndexOf=ry,v.sortedLastIndex=iy,v.sortedLastIndexBy=sy,v.sortedLastIndexOf=oy,v.startCase=zb,v.startsWith=Hb,v.subtract=Bw,v.sum=Fw,v.sumBy=Nw,v.template=$b,v.times=ww,v.toFinite=qe,v.toInteger=Q,v.toLength=Hc,v.toLower=Gb,v.toNumber=ve,v.toSafeInteger=Gx,v.toString=lt,v.toUpper=qb,v.trim=Kb,v.trimEnd=Xb,v.trimStart=Yb,v.truncate=Jb,v.unescape=Zb,v.uniqueId=_w,v.upperCase=Qb,v.upperFirst=ea,v.each=Oc,v.eachRight=Lc,v.first=Tc,ia(v,function(){var e={};return Oe(v,function(i,o){ut.call(v.prototype,o)||(e[o]=i)}),e}(),{chain:!1}),v.VERSION=s,fe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){v[e].placeholder=v}),fe(["drop","take"],function(e,i){it.prototype[e]=function(o){o=o===r?1:Lt(Q(o),0);var c=this.__filtered__&&!i?new it(this):this.clone();return c.__filtered__?c.__takeCount__=kt(o,c.__takeCount__):c.__views__.push({size:kt(o,rt),type:e+(c.__dir__<0?"Right":"")}),c},it.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),fe(["filter","map","takeWhile"],function(e,i){var o=i+1,c=o==Rt||o==St;it.prototype[e]=function(d){var y=this.clone();return y.__iteratees__.push({iteratee:G(d,3),type:o}),y.__filtered__=y.__filtered__||c,y}}),fe(["head","last"],function(e,i){var o="take"+(i?"Right":"");it.prototype[e]=function(){return this[o](1).value()[0]}}),fe(["initial","tail"],function(e,i){var o="drop"+(i?"":"Right");it.prototype[e]=function(){return this.__filtered__?new it(this):this[o](1)}}),it.prototype.compact=function(){return this.filter(Jt)},it.prototype.find=function(e){return this.filter(e).head()},it.prototype.findLast=function(e){return this.reverse().find(e)},it.prototype.invokeMap=et(function(e,i){return typeof e=="function"?new it(this):this.map(function(o){return Or(o,e,i)})}),it.prototype.reject=function(e){return this.filter($i(G(e)))},it.prototype.slice=function(e,i){e=Q(e);var o=this;return o.__filtered__&&(e>0||i<0)?new it(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),i!==r&&(i=Q(i),o=i<0?o.dropRight(-i):o.take(i-e)),o)},it.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},it.prototype.toArray=function(){return this.take(rt)},Oe(it.prototype,function(e,i){var o=/^(?:filter|find|map|reject)|While$/.test(i),c=/^(?:head|last)$/.test(i),d=v[c?"take"+(i=="last"?"Right":""):i],y=c||/^find/.test(i);d&&(v.prototype[i]=function(){var x=this.__wrapped__,E=c?[1]:arguments,T=x instanceof it,I=E[0],D=T||Z(x),F=function(nt){var st=d.apply(v,sn([nt],E));return c&&j?st[0]:st};D&&o&&typeof I=="function"&&I.length!=1&&(T=D=!1);var j=this.__chain__,$=!!this.__actions__.length,K=y&&!j,tt=T&&!$;if(!y&&D){x=tt?x:new it(this);var X=e.apply(x,E);return X.__actions__.push({func:ji,args:[F],thisArg:r}),new de(X,j)}return K&&tt?e.apply(this,E):(X=this.thru(F),K?c?X.value()[0]:X.value():X)})}),fe(["pop","push","shift","sort","splice","unshift"],function(e){var i=di[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",c=/^(?:pop|shift)$/.test(e);v.prototype[e]=function(){var d=arguments;if(c&&!this.__chain__){var y=this.value();return i.apply(Z(y)?y:[],d)}return this[o](function(x){return i.apply(Z(x)?x:[],d)})}}),Oe(it.prototype,function(e,i){var o=v[i];if(o){var c=o.name+"";ut.call(Zn,c)||(Zn[c]=[]),Zn[c].push({name:i,func:o})}}),Zn[Di(r,M).name]=[{name:"wrapper",func:r}],it.prototype.clone=Zg,it.prototype.reverse=Qg,it.prototype.value=tv,v.prototype.at=Py,v.prototype.chain=Oy,v.prototype.commit=Ly,v.prototype.next=My,v.prototype.plant=Dy,v.prototype.reverse=Vy,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=By,v.prototype.first=v.prototype.head,_r&&(v.prototype[_r]=Iy),v},Xn=Lg();Rn?((Rn.exports=Xn)._=Xn,no._=Xn):Vt._=Xn}).call(_.commonjsGlobal)})(_s,_s.exports);_s.exports;function _C(t){var n=t.lastRenderedStartIndex,r=t.lastRenderedStopIndex,s=t.startIndex,a=t.stopIndex;return!(s>r||a<n)}function SC(t){for(var n=t.isItemLoaded,r=t.itemCount,s=t.minimumBatchSize,a=t.startIndex,u=t.stopIndex,l=[],f=null,h=null,m=a;m<=u;m++){var g=n(m);g?h!==null&&(l.push(f,h),f=h=null):(h=m,f===null&&(f=m))}if(h!==null){for(var p=Math.min(Math.max(h,f+s-1),r-1),b=h+1;b<=p&&!n(b);b++)h=b;l.push(f,h)}if(l.length)for(;l[1]-l[0]+1<s&&l[0]>0;){var w=l[0]-1;if(!n(w))l[0]=w;else break}return l}var AC=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")},TC=function(){function t(n,r){for(var s=0;s<r.length;s++){var a=r[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}return function(n,r,s){return r&&t(n.prototype,r),s&&t(n,s),n}}(),RC=function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)},kh=function(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t};(function(t){RC(n,t);function n(){var r,s,a,u;AC(this,n);for(var l=arguments.length,f=Array(l),h=0;h<l;h++)f[h]=arguments[h];return u=(s=(a=kh(this,(r=n.__proto__||Object.getPrototypeOf(n)).call.apply(r,[this].concat(f))),a),a._lastRenderedStartIndex=-1,a._lastRenderedStopIndex=-1,a._memoizedUnloadedRanges=[],a._onItemsRendered=function(m){var g=m.visibleStartIndex,p=m.visibleStopIndex;a._lastRenderedStartIndex=g,a._lastRenderedStopIndex=p,a._ensureRowsLoaded(g,p)},a._setRef=function(m){a._listRef=m},s),kh(a,u)}return TC(n,[{key:"resetloadMoreItemsCache",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],s&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var s=this.props.children;return s({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(s,a){var u=this.props,l=u.isItemLoaded,f=u.itemCount,h=u.minimumBatchSize,m=h===void 0?10:h,g=u.threshold,p=g===void 0?15:g,b=SC({isItemLoaded:l,itemCount:f,minimumBatchSize:m,startIndex:Math.max(0,s-p),stopIndex:Math.min(f-1,a+p)});(this._memoizedUnloadedRanges.length!==b.length||this._memoizedUnloadedRanges.some(function(w,S){return b[S]!==w}))&&(this._memoizedUnloadedRanges=b,this._loadUnloadedRanges(b))}},{key:"_loadUnloadedRanges",value:function(s){for(var a=this,u=this.props.loadMoreItems||this.props.loadMoreRows,l=function(m){var g=s[m],p=s[m+1],b=u(g,p);b!=null&&b.then(function(){if(_C({lastRenderedStartIndex:a._lastRenderedStartIndex,lastRenderedStopIndex:a._lastRenderedStopIndex,startIndex:g,stopIndex:p})){if(a._listRef==null)return;typeof a._listRef.resetAfterIndex=="function"?a._listRef.resetAfterIndex(g,!0):(typeof a._listRef._getItemStyleCache=="function"&&a._listRef._getItemStyleCache(-1),a._listRef.forceUpdate())}})},f=0;f<s.length;f+=2)l(f)}}]),n})(_.reactExports.PureComponent);_.reactExports.createContext({});function CC(t){return _.jsxRuntimeExports.jsx(CR,{children:_.jsxRuntimeExports.jsx(bC,{...t,ssr:!0})})}const PC=_.s(CC,{props:{baseUrl:"string",menuPath:"string",logout:"function",replacePath:"function",ssr:"boolean"}});customElements.define("global-menu",PC);