@ukpc-lib/react 0.2.7 → 0.2.9

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 (33) hide show
  1. package/dist/assets/icons/notification-icon.svg +7 -0
  2. package/dist/components/Notification/NotificationList/components/AllContent.d.ts +4 -0
  3. package/dist/components/Notification/NotificationList/components/CustomOpenListContext.d.ts +9 -0
  4. package/dist/components/Notification/NotificationList/components/NotitficationItem.d.ts +7 -0
  5. package/dist/components/Notification/NotificationList/index.d.ts +3 -0
  6. package/dist/components/Notification/Tabs/index.d.ts +13 -0
  7. package/dist/components/Notification/firebase/firebaseConfig.d.ts +3 -2
  8. package/dist/components/Notification/index.d.ts +8 -0
  9. package/dist/components/Notification/models/NotiticationDto.d.ts +43 -0
  10. package/dist/components/Topbar/icons/NotificationIcon.d.ts +3 -1
  11. package/dist/components/Topbar/index.d.ts +2 -1
  12. package/dist/components/index.cjs +28 -26
  13. package/dist/components/index.js +3654 -3351
  14. package/dist/index.css +1 -1
  15. package/dist/{index.module-34bab88b.js → index.module-7d653d97.js} +1270 -1288
  16. package/dist/{index.module-9c4fe97a.cjs → index.module-ff8a71df.cjs} +100 -100
  17. package/dist/share/index.cjs +1 -1
  18. package/dist/share/index.js +13 -13
  19. package/package.json +1 -1
  20. package/web-components-bundle/global-menu/index.cjs +2 -2
  21. package/web-components-bundle/global-menu/index.js +2 -3
  22. package/web-components-bundle/global-topbar/index.cjs +1 -2
  23. package/web-components-bundle/global-topbar/index.js +3 -234
  24. package/web-components-bundle/has-permission/index.cjs +1 -1046
  25. package/web-components-bundle/has-permission/index.js +4 -17742
  26. package/web-components-bundle/index-11fd22c1.cjs +884 -0
  27. package/web-components-bundle/index-374bf205.cjs +106 -0
  28. package/web-components-bundle/index-51fef28a.js +17668 -0
  29. package/web-components-bundle/index-75324537.js +17036 -0
  30. package/web-components-bundle/index-5a2ec4da.cjs +0 -38
  31. package/web-components-bundle/index-8330a770.js +0 -7687
  32. package/web-components-bundle/react-to-web-component-287abfaf.cjs +0 -69
  33. package/web-components-bundle/react-to-web-component-8933be15.js +0 -9353
@@ -1,38 +0,0 @@
1
- "use strict";const p=require("./react-to-web-component-287abfaf.cjs");function bi(t,e){return function(){return t.apply(e,arguments)}}const{toString:Wa}=Object.prototype,{getPrototypeOf:or}=Object,Je=(t=>e=>{const n=Wa.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),at=t=>(t=t.toLowerCase(),e=>Je(e)===t),Ze=t=>e=>typeof e===t,{isArray:Zt}=Array,he=Ze("undefined");function za(t){return t!==null&&!he(t)&&t.constructor!==null&&!he(t.constructor)&&Z(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const wi=at("ArrayBuffer");function Ha(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&wi(t.buffer),e}const $a=Ze("string"),Z=Ze("function"),Ei=Ze("number"),Qe=t=>t!==null&&typeof t=="object",qa=t=>t===!0||t===!1,ke=t=>{if(Je(t)!=="object")return!1;const e=or(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Ga=at("Date"),Xa=at("File"),Ka=at("Blob"),Ya=at("FileList"),Ja=t=>Qe(t)&&Z(t.pipe),Za=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Z(t.append)&&((e=Je(t))==="formdata"||e==="object"&&Z(t.toString)&&t.toString()==="[object FormData]"))},Qa=at("URLSearchParams"),tl=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ye(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),Zt(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let a;for(r=0;r<i;r++)a=o[r],e.call(null,t[a],a,t)}}function Si(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const Ti=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Pi=t=>!he(t)&&t!==Ti;function Nn(){const{caseless:t}=Pi(this)&&this||{},e={},n=(r,s)=>{const o=t&&Si(e,s)||s;ke(e[o])&&ke(r)?e[o]=Nn(e[o],r):ke(r)?e[o]=Nn({},r):Zt(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&ye(arguments[r],n);return e}const el=(t,e,n,{allOwnKeys:r}={})=>(ye(e,(s,o)=>{n&&Z(s)?t[o]=bi(s,n):t[o]=s},{allOwnKeys:r}),t),nl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),rl=(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)},sl=(t,e,n,r)=>{let s,o,i;const a={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)i=s[o],(!r||r(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&or(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},il=(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},ol=t=>{if(!t)return null;if(Zt(t))return t;let e=t.length;if(!Ei(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},al=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&or(Uint8Array)),ll=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},cl=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},ul=at("HTMLFormElement"),fl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ir=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),hl=at("RegExp"),Ai=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};ye(n,(s,o)=>{let i;(i=e(s,o,t))!==!1&&(r[o]=i||s)}),Object.defineProperties(t,r)},dl=t=>{Ai(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+"'")})}})},pl=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return Zt(t)?r(t):r(String(t).split(e)),n},ml=()=>{},gl=(t,e)=>(t=+t,Number.isFinite(t)?t:e),gn="abcdefghijklmnopqrstuvwxyz",Ur="0123456789",Ci={DIGIT:Ur,ALPHA:gn,ALPHA_DIGIT:gn+gn.toUpperCase()+Ur},yl=(t=16,e=Ci.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function vl(t){return!!(t&&Z(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const xl=t=>{const e=new Array(10),n=(r,s)=>{if(Qe(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=Zt(r)?[]:{};return ye(r,(i,a)=>{const l=n(i,s+1);!he(l)&&(o[a]=l)}),e[s]=void 0,o}}return r};return n(t,0)},bl=at("AsyncFunction"),wl=t=>t&&(Qe(t)||Z(t))&&Z(t.then)&&Z(t.catch),x={isArray:Zt,isArrayBuffer:wi,isBuffer:za,isFormData:Za,isArrayBufferView:Ha,isString:$a,isNumber:Ei,isBoolean:qa,isObject:Qe,isPlainObject:ke,isUndefined:he,isDate:Ga,isFile:Xa,isBlob:Ka,isRegExp:hl,isFunction:Z,isStream:Ja,isURLSearchParams:Qa,isTypedArray:al,isFileList:Ya,forEach:ye,merge:Nn,extend:el,trim:tl,stripBOM:nl,inherits:rl,toFlatObject:sl,kindOf:Je,kindOfTest:at,endsWith:il,toArray:ol,forEachEntry:ll,matchAll:cl,isHTMLForm:ul,hasOwnProperty:Ir,hasOwnProp:Ir,reduceDescriptors:Ai,freezeMethods:dl,toObjectSet:pl,toCamelCase:fl,noop:ml,toFiniteNumber:gl,findKey:Si,global:Ti,isContextDefined:Pi,ALPHABET:Ci,generateString:yl,isSpecCompliantForm:vl,toJSONObject:xl,isAsyncFn:bl,isThenable:wl};function O(t,e,n,r,s){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),s&&(this.response=s)}x.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:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ri=O.prototype,Oi={};["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=>{Oi[t]={value:t}});Object.defineProperties(O,Oi);Object.defineProperty(Ri,"isAxiosError",{value:!0});O.from=(t,e,n,r,s,o)=>{const i=Object.create(Ri);return x.toFlatObject(t,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),O.call(i,t.message,e,n,r,s),i.cause=t,i.name=t.name,o&&Object.assign(i,o),i};const El=null;function Fn(t){return x.isPlainObject(t)||x.isArray(t)}function Vi(t){return x.endsWith(t,"[]")?t.slice(0,-2):t}function Wr(t,e,n){return t?t.concat(e).map(function(s,o){return s=Vi(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function Sl(t){return x.isArray(t)&&!t.some(Fn)}const Tl=x.toFlatObject(x,{},null,function(e){return/^is[A-Z]/.test(e)});function tn(t,e,n){if(!x.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!x.isUndefined(y[g])});const r=n.metaTokens,s=n.visitor||f,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(e);if(!x.isFunction(s))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(x.isDate(m))return m.toISOString();if(!l&&x.isBlob(m))throw new O("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(m)||x.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,g,y){let b=m;if(m&&!y&&typeof m=="object"){if(x.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(x.isArray(m)&&Sl(m)||(x.isFileList(m)||x.endsWith(g,"[]"))&&(b=x.toArray(m)))return g=Vi(g),b.forEach(function(v,E){!(x.isUndefined(v)||v===null)&&e.append(i===!0?Wr([g],E,o):i===null?g:g+"[]",c(v))}),!1}return Fn(m)?!0:(e.append(Wr(y,g,o),c(m)),!1)}const u=[],h=Object.assign(Tl,{defaultVisitor:f,convertValue:c,isVisitable:Fn});function d(m,g){if(!x.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(m),x.forEach(m,function(b,w){(!(x.isUndefined(b)||b===null)&&s.call(e,b,x.isString(w)?w.trim():w,g,h))===!0&&d(b,g?g.concat(w):[w])}),u.pop()}}if(!x.isObject(t))throw new TypeError("data must be an object");return d(t),e}function zr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function ar(t,e){this._pairs=[],t&&tn(t,this,e)}const ki=ar.prototype;ki.append=function(e,n){this._pairs.push([e,n])};ki.toString=function(e){const n=e?function(r){return e.call(this,r,zr)}:zr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Pl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mi(t,e,n){if(!e)return t;const r=n&&n.encode||Pl,s=n&&n.serialize;let o;if(s?o=s(e,n):o=x.isURLSearchParams(e)?e.toString():new ar(e,n).toString(r),o){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Al{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){x.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Hr=Al,Li={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cl=typeof URLSearchParams<"u"?URLSearchParams:ar,Rl=typeof FormData<"u"?FormData:null,Ol=typeof Blob<"u"?Blob:null,Vl={isBrowser:!0,classes:{URLSearchParams:Cl,FormData:Rl,Blob:Ol},protocols:["http","https","file","blob","url","data"]},ji=typeof window<"u"&&typeof document<"u",kl=(t=>ji&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),Ml=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ll=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ji,hasStandardBrowserEnv:kl,hasStandardBrowserWebWorkerEnv:Ml},Symbol.toStringTag,{value:"Module"})),it={...Ll,...Vl};function jl(t,e){return tn(t,new it.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return it.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Dl(t){return x.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function _l(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function Di(t){function e(n,r,s,o){let i=n[o++];const a=Number.isFinite(+i),l=o>=n.length;return i=!i&&x.isArray(s)?s.length:i,l?(x.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!a):((!s[i]||!x.isObject(s[i]))&&(s[i]=[]),e(n,r,s[i],o)&&x.isArray(s[i])&&(s[i]=_l(s[i])),!a)}if(x.isFormData(t)&&x.isFunction(t.entries)){const n={};return x.forEachEntry(t,(r,s)=>{e(Dl(r),s,n,0)}),n}return null}function Nl(t,e,n){if(x.isString(t))try{return(e||JSON.parse)(t),x.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const lr={transitional:Li,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=x.isObject(e);if(o&&x.isHTMLForm(e)&&(e=new FormData(e)),x.isFormData(e))return s&&s?JSON.stringify(Di(e)):e;if(x.isArrayBuffer(e)||x.isBuffer(e)||x.isStream(e)||x.isFile(e)||x.isBlob(e))return e;if(x.isArrayBufferView(e))return e.buffer;if(x.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 jl(e,this.formSerializer).toString();if((a=x.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return tn(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Nl(e)):e}],transformResponse:[function(e){const n=this.transitional||lr.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(e&&x.isString(e)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(a){if(i)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:it.classes.FormData,Blob:it.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],t=>{lr.headers[t]={}});const cr=lr,Fl=x.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"]),Bl=t=>{const e={};let n,r,s;return t&&t.split(`
2
- `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||e[n]&&Fl[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},$r=Symbol("internals");function ee(t){return t&&String(t).trim().toLowerCase()}function Me(t){return t===!1||t==null?t:x.isArray(t)?t.map(Me):String(t)}function Il(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 Ul=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function yn(t,e,n,r,s){if(x.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!x.isString(e)){if(x.isString(r))return e.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(e)}}function Wl(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function zl(t,e){const n=x.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,o,i){return this[r].call(this,e,s,o,i)},configurable:!0})})}class en{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function o(a,l,c){const f=ee(l);if(!f)throw new Error("header name must be a non-empty string");const u=x.findKey(s,f);(!u||s[u]===void 0||c===!0||c===void 0&&s[u]!==!1)&&(s[u||l]=Me(a))}const i=(a,l)=>x.forEach(a,(c,f)=>o(c,f,l));return x.isPlainObject(e)||e instanceof this.constructor?i(e,n):x.isString(e)&&(e=e.trim())&&!Ul(e)?i(Bl(e),n):e!=null&&o(n,e,r),this}get(e,n){if(e=ee(e),e){const r=x.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return Il(s);if(x.isFunction(n))return n.call(this,s,r);if(x.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ee(e),e){const r=x.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||yn(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function o(i){if(i=ee(i),i){const a=x.findKey(r,i);a&&(!n||yn(r,r[a],a,n))&&(delete r[a],s=!0)}}return x.isArray(e)?e.forEach(o):o(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!e||yn(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,r={};return x.forEach(this,(s,o)=>{const i=x.findKey(r,o);if(i){n[i]=Me(s),delete n[o];return}const a=e?Wl(o):String(o).trim();a!==o&&delete n[o],n[a]=Me(s),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return x.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&x.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(`
3
- `)}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(s=>r.set(s)),r}static accessor(e){const r=(this[$r]=this[$r]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=ee(i);r[a]||(zl(s,i),r[a]=!0)}return x.isArray(e)?e.forEach(o):o(e),this}}en.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(en.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});x.freezeMethods(en);const ut=en;function vn(t,e){const n=this||cr,r=e||n,s=ut.from(r.headers);let o=r.data;return x.forEach(t,function(a){o=a.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function _i(t){return!!(t&&t.__CANCEL__)}function ve(t,e,n){O.call(this,t??"canceled",O.ERR_CANCELED,e,n),this.name="CanceledError"}x.inherits(ve,O,{__CANCEL__:!0});function Hl(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 $l=it.hasStandardBrowserEnv?{write(t,e,n,r,s,o){const i=[t+"="+encodeURIComponent(e)];x.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),x.isString(r)&&i.push("path="+r),x.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.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 ql(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Gl(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function Ni(t,e){return t&&!ql(e)?Gl(t,e):e}const Xl=it.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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=s(window.location.href),function(i){const a=x.isString(i)?s(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Kl(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Yl(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,o=0,i;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),f=r[o];i||(i=c),n[s]=l,r[s]=c;let u=o,h=0;for(;u!==s;)h+=n[u++],u=u%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),c-i<e)return;const d=f&&c-f;return d?Math.round(h*1e3/d):void 0}}function qr(t,e){let n=0;const r=Yl(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,a=o-n,l=r(a),c=o<=i;n=o;const f={loaded:o,total:i,progress:i?o/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&c?(i-o)/l:void 0,event:s};f[e?"download":"upload"]=!0,t(f)}}const Jl=typeof XMLHttpRequest<"u",Zl=Jl&&function(t){return new Promise(function(n,r){let s=t.data;const o=ut.from(t.headers).normalize();let{responseType:i,withXSRFToken:a}=t,l;function c(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let f;if(x.isFormData(s)){if(it.hasStandardBrowserEnv||it.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[g,...y]=f?f.split(";").map(b=>b.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=Ni(t.baseURL,t.url);u.open(t.method.toUpperCase(),Mi(h,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function d(){if(!u)return;const g=ut.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),b={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:g,config:t,request:u};Hl(function(v){n(v),c()},function(v){r(v),c()},b),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 b=t.transitional||Li;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),r(new O(y,b.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,t,u)),u=null},it.hasStandardBrowserEnv&&(a&&x.isFunction(a)&&(a=a(t)),a||a!==!1&&Xl(h))){const g=t.xsrfHeaderName&&t.xsrfCookieName&&$l.read(t.xsrfCookieName);g&&o.set(t.xsrfHeaderName,g)}s===void 0&&o.setContentType(null),"setRequestHeader"in u&&x.forEach(o.toJSON(),function(y,b){u.setRequestHeader(b,y)}),x.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),i&&i!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",qr(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",qr(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=g=>{u&&(r(!g||g.type?new ve(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=Kl(h);if(m&&it.protocols.indexOf(m)===-1){r(new O("Unsupported protocol "+m+":",O.ERR_BAD_REQUEST,t));return}u.send(s||null)})},Bn={http:El,xhr:Zl};x.forEach(Bn,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Gr=t=>`- ${t}`,Ql=t=>x.isFunction(t)||t===null||t===!1,Fi={getAdapter:t=>{t=x.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let o=0;o<e;o++){n=t[o];let i;if(r=n,!Ql(n)&&(r=Bn[(i=String(n)).toLowerCase()],r===void 0))throw new O(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=e?o.length>1?`since :
4
- `+o.map(Gr).join(`
5
- `):" "+Gr(o[0]):"as no adapter specified";throw new O("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Bn};function xn(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ve(null,t)}function Xr(t){return xn(t),t.headers=ut.from(t.headers),t.data=vn.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Fi.getAdapter(t.adapter||cr.adapter)(t).then(function(r){return xn(t),r.data=vn.call(t,t.transformResponse,r),r.headers=ut.from(r.headers),r},function(r){return _i(r)||(xn(t),r&&r.response&&(r.response.data=vn.call(t,t.transformResponse,r.response),r.response.headers=ut.from(r.response.headers))),Promise.reject(r)})}const Kr=t=>t instanceof ut?t.toJSON():t;function Xt(t,e){e=e||{};const n={};function r(c,f,u){return x.isPlainObject(c)&&x.isPlainObject(f)?x.merge.call({caseless:u},c,f):x.isPlainObject(f)?x.merge({},f):x.isArray(f)?f.slice():f}function s(c,f,u){if(x.isUndefined(f)){if(!x.isUndefined(c))return r(void 0,c,u)}else return r(c,f,u)}function o(c,f){if(!x.isUndefined(f))return r(void 0,f)}function i(c,f){if(x.isUndefined(f)){if(!x.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:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,f)=>s(Kr(c),Kr(f),!0)};return x.forEach(Object.keys(Object.assign({},t,e)),function(f){const u=l[f]||s,h=u(t[f],e[f],f);x.isUndefined(h)&&u!==a||(n[f]=h)}),n}const Bi="1.6.2",ur={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ur[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Yr={};ur.transitional=function(e,n,r){function s(o,i){return"[Axios v"+Bi+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,a)=>{if(e===!1)throw new O(s(i," has been removed"+(n?" in "+n:"")),O.ERR_DEPRECATED);return n&&!Yr[i]&&(Yr[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,i,a):!0}};function tc(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 s=r.length;for(;s-- >0;){const o=r[s],i=e[o];if(i){const a=t[o],l=a===void 0||i(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 In={assertOptions:tc,validators:ur},mt=In.validators;class Ne{constructor(e){this.defaults=e,this.interceptors={request:new Hr,response:new Hr}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Xt(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&In.assertOptions(r,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),s!=null&&(x.isFunction(s)?n.paramsSerializer={serialize:s}:In.assertOptions(s,{encode:mt.function,serialize:mt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&x.merge(o.common,o[n.method]);o&&x.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=ut.concat(i,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=[Xr.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=Xr.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=Xt(this.defaults,e);const n=Ni(e.baseURL,e.url);return Mi(n,e.params,e.paramsSerializer)}}x.forEach(["delete","get","head","options"],function(e){Ne.prototype[e]=function(n,r){return this.request(Xt(r||{},{method:e,url:n,data:(r||{}).data}))}});x.forEach(["post","put","patch"],function(e){function n(r){return function(o,i,a){return this.request(Xt(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Ne.prototype[e]=n(),Ne.prototype[e+"Form"]=n(!0)});const Le=Ne;class fr{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(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{r.subscribe(a),o=a}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},e(function(o,i,a){r.reason||(r.reason=new ve(o,i,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 fr(function(s){e=s}),cancel:e}}}const ec=fr;function nc(t){return function(n){return t.apply(null,n)}}function rc(t){return x.isObject(t)&&t.isAxiosError===!0}const Un={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(Un).forEach(([t,e])=>{Un[e]=t});const sc=Un;function Ii(t){const e=new Le(t),n=bi(Le.prototype.request,e);return x.extend(n,Le.prototype,e,{allOwnKeys:!0}),x.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return Ii(Xt(t,s))},n}const B=Ii(cr);B.Axios=Le;B.CanceledError=ve;B.CancelToken=ec;B.isCancel=_i;B.VERSION=Bi;B.toFormData=tn;B.AxiosError=O;B.Cancel=B.CanceledError;B.all=function(e){return Promise.all(e)};B.spread=nc;B.isAxiosError=rc;B.mergeConfig=Xt;B.AxiosHeaders=ut;B.formToJSON=t=>Di(x.isHTMLForm(t)?new FormData(t):t);B.getAdapter=Fi.getAdapter;B.HttpStatusCode=sc;B.default=B;const Ui=B;var ic=typeof global=="object"&&global&&global.Object===Object&&global;const oc=ic;var ac=typeof self=="object"&&self&&self.Object===Object&&self,lc=oc||ac||Function("return this")();const Wi=lc;var cc=Wi.Symbol;const Fe=cc;var zi=Object.prototype,uc=zi.hasOwnProperty,fc=zi.toString,ne=Fe?Fe.toStringTag:void 0;function hc(t){var e=uc.call(t,ne),n=t[ne];try{t[ne]=void 0;var r=!0}catch{}var s=fc.call(t);return r&&(e?t[ne]=n:delete t[ne]),s}var dc=Object.prototype,pc=dc.toString;function mc(t){return pc.call(t)}var gc="[object Null]",yc="[object Undefined]",Jr=Fe?Fe.toStringTag:void 0;function vc(t){return t==null?t===void 0?yc:gc:Jr&&Jr in Object(t)?hc(t):mc(t)}function xc(t){return t!=null&&typeof t=="object"}var bc="[object Symbol]";function wc(t){return typeof t=="symbol"||xc(t)&&vc(t)==bc}var Ec=/\s/;function Sc(t){for(var e=t.length;e--&&Ec.test(t.charAt(e)););return e}var Tc=/^\s+/;function Pc(t){return t&&t.slice(0,Sc(t)+1).replace(Tc,"")}function Be(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Zr=0/0,Ac=/^[-+]0x[0-9a-f]+$/i,Cc=/^0b[01]+$/i,Rc=/^0o[0-7]+$/i,Oc=parseInt;function Qr(t){if(typeof t=="number")return t;if(wc(t))return Zr;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=Pc(t);var n=Cc.test(t);return n||Rc.test(t)?Oc(t.slice(2),n?2:8):Ac.test(t)?Zr:+t}var Vc=function(){return Wi.Date.now()};const bn=Vc;var kc="Expected a function",Mc=Math.max,Lc=Math.min;function je(t,e,n){var r,s,o,i,a,l,c=0,f=!1,u=!1,h=!0;if(typeof t!="function")throw new TypeError(kc);e=Qr(e)||0,Be(n)&&(f=!!n.leading,u="maxWait"in n,o=u?Mc(Qr(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h);function d(T){var P=r,A=s;return r=s=void 0,c=T,i=t.apply(A,P),i}function m(T){return c=T,a=setTimeout(b,e),f?d(T):i}function g(T){var P=T-l,A=T-c,R=e-P;return u?Lc(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 b(){var T=bn();if(y(T))return w(T);a=setTimeout(b,g(T))}function w(T){return a=void 0,h&&r?d(T):(r=s=void 0,i)}function v(){a!==void 0&&clearTimeout(a),c=0,r=l=s=a=void 0}function E(){return a===void 0?i:w(bn())}function S(){var T=bn(),P=y(T);if(r=arguments,s=this,l=T,P){if(a===void 0)return m(l);if(u)return clearTimeout(a),a=setTimeout(b,e),d(l)}return a===void 0&&(a=setTimeout(b,e)),i}return S.cancel=v,S.flush=E,S}var jc="Expected a function";function Dc(t,e,n){var r=!0,s=!0;if(typeof t!="function")throw new TypeError(jc);return Be(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),je(t,e,{leading:r,maxWait:e,trailing:s})}var _c=!!(typeof window<"u"&&window.document&&window.document.createElement),Nc=_c;const Hi=p.getDefaultExportFromCjs(Nc);var zt=function(){return zt=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;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)},Ut=null,ts=null;Hi&&window.addEventListener("resize",function(){ts!==window.devicePixelRatio&&(ts=window.devicePixelRatio,Ut=null)});function es(){if(Ut===null){if(typeof document>"u")return Ut=0,Ut;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),Ut=n}return Ut}function $i(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function qi(t){return!t||!t.ownerDocument?document:t.ownerDocument}var Gi=function(t){var e={},n=Array.prototype.reduce.call(t,function(r,s){var o=s.name.match(/data-simplebar-(.+)/);if(o){var i=o[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(s.value){case"true":r[i]=!0;break;case"false":r[i]=!1;break;case void 0:r[i]=!0;break;default:r[i]=s.value}}return r},e);return n};function Xi(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function Ki(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function Yi(t){return".".concat(t.split(" ").join("."))}var Fc=Object.freeze({__proto__:null,getElementWindow:$i,getElementDocument:qi,getOptions:Gi,addClasses:Xi,removeClasses:Ki,classNamesToQuery:Yi}),gt=$i,wn=qi,Bc=Gi,yt=Xi,vt=Ki,q=Yi,Te=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 s=gt(r.el);r.scrollXTicking||(s.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(s.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,yt(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(){vt(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(yt(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){vt(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(s){r.mouseX=s.clientX,r.mouseY=s.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(s){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,i;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)&&(i=r.isWithinBounds(r.axis.y.track.rect)),(o||i)&&(s.stopPropagation(),s.type==="pointerdown"&&s.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(s,"x"):r.onTrackClick(s,"x")),i&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(s,"y"):r.onTrackClick(s,"y"))))}},this.drag=function(s){var o,i,a,l,c,f,u,h,d,m,g;if(!(!r.draggedAxis||!r.contentWrapperEl)){var y,b=r.axis[r.draggedAxis].track,w=(i=(o=b.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&i!==void 0?i: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);s.preventDefault(),s.stopPropagation(),r.draggedAxis==="y"?y=s.pageY:y=s.pageX;var T=y-((h=(u=b.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=b.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(s){var o=wn(r.el),i=gt(r.el);s.preventDefault(),s.stopPropagation(),vt(r.el,r.classNames.dragging),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=i.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(s){s.preventDefault(),s.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=Dc(this._onMouseMove,64),this.onWindowResize=je(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=je(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=je(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 s=t.getOffset(n),o=t.getOffset(r);n.scrollLeft=-999;var i=t.getOffset(r);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:s.left!==o.left,isScrollingToNegative:o.left!==i.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:es()}catch{return es()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=wn(e),s=gt(e);return{top:n.top+(s.pageYOffset||r.documentElement.scrollTop),left:n.left+(s.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){Hi&&(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||(yt(this.axis.x.scrollbar.el,this.classNames.visible),yt(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=gt(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 s=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){s&&r.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){s=!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=gt(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,s=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,i=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=s?"".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=i==="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 s=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,i=o/s,a;return a=Math.max(~~(i*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},t.prototype.positionScrollbar=function(e){var n,r,s;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var i=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=!((s=t.getRtlHelpers())===null||s===void 0)&&s.isScrollingToNegative?c:-c);var f=c/(i-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&&(yt(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&&(vt(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),yt(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?yt(n.scrollbar.el,this.classNames.hover):vt(n.scrollbar.el,this.classNames.hover)):(vt(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),vt(this.axis[e].track.el,this.classNames.hover),vt(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 s=wn(this.el),o=gt(this.el),i=this.axis[n].scrollbar,a=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=a-(((r=i.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,yt(this.el,this.classNames.dragging),s.addEventListener("mousemove",this.drag,!0),s.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(s.addEventListener("click",this.preventClick,!0),s.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var r=this,s,o,i,a;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var c=gt(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var f=this.axis[n].scrollbar,u=(o=(s=f.rect)===null||s===void 0?void 0:s[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,h=parseInt((a=(i=this.elStyles)===null||i===void 0?void 0:i[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,b=40,w=function(){r.contentWrapperEl&&(g===-1?d>y&&(d-=b,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=d,c.requestAnimationFrame(w)):d<y&&(d+=b,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=gt(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(s){return r.call(s,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=Bc,t.helpers=Fc,t}(),X=function(){return X=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;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 Ic(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 s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}var Ji=p.reactExports.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,s=r===void 0?{}:r,o=Ic(t,["children","scrollableNodeProps"]),i=p.reactExports.useRef(),a=p.reactExports.useRef(),l=p.reactExports.useRef(),c={},f={};Object.keys(o).forEach(function(d){Object.prototype.hasOwnProperty.call(Te.defaultOptions,d)?c[d]=o[d]:f[d]=o[d]});var u=X(X({},Te.defaultOptions.classNames),c.classNames),h=X(X({},s),{className:"".concat(u.contentWrapper).concat(s.className?" ".concat(s.className):""),tabIndex:0,role:"region","aria-label":c.ariaLabel||Te.defaultOptions.ariaLabel});return p.reactExports.useEffect(function(){var d;return a.current=h.ref?h.ref.current:a.current,i.current&&(d=new Te(i.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:i},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})))});Ji.displayName="SimpleBar";const Uc=`[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
- `,Wc=t=>{window.location.href=`${t}/authentication/logout?callbackUrl=${window.location.href}`},hr=t=>typeof t=="number"&&!isNaN(t),oe=t=>typeof t=="string",Zi=t=>typeof t=="function",zc=t=>p.reactExports.isValidElement(t)||oe(t)||Zi(t)||hr(t),st=new Map;let Wn=[];const ns=new Set,Qi=()=>st.size>0;function Hc(t,e){var n;if(e)return!((n=st.get(e))==null||!n.isToastActive(t));let r=!1;return st.forEach(s=>{s.isToastActive(t)&&(r=!0)}),r}function $c(t,e){zc(t)&&(Qi()||Wn.push({content:t,options:e}),st.forEach(n=>{n.buildToast(t,e)}))}function rs(t,e){st.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 qc=1;const to=()=>""+qc++;function Gc(t){return t&&(oe(t.toastId)||hr(t.toastId))?t.toastId:to()}function ae(t,e){return $c(t,e),e.toastId}function Ie(t,e){return{...e,type:e&&e.type||t,toastId:Gc(e)}}function Pe(t){return(e,n)=>ae(e,Ie(t,n))}function L(t,e){return ae(t,Ie("default",e))}L.loading=(t,e)=>ae(t,Ie("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),L.promise=function(t,e,n){let r,{pending:s,error:o,success:i}=e;s&&(r=oe(s)?L.loading(s,n):L.loading(s.render,{...n,...s}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(f,u,h)=>{if(u==null)return void L.dismiss(r);const d={type:f,...a,...n,data:h},m=oe(u)?{render:u}:u;return r?L.update(r,{...d,...m}):L(m.render,{...d,...m}),h},c=Zi(t)?t():t;return c.then(f=>l("success",i,f)).catch(f=>l("error",o,f)),c},L.success=Pe("success"),L.info=Pe("info"),L.error=Pe("error"),L.warning=Pe("warning"),L.warn=L.warning,L.dark=(t,e)=>ae(t,Ie("default",{theme:"dark",...e})),L.dismiss=function(t){(function(e){var n;if(Qi()){if(e==null||oe(n=e)||hr(n))st.forEach(s=>{s.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var r;(r=st.get(e.containerId))!=null&&r.removeToast(e.id)||st.forEach(s=>{s.removeToast(e.id)})}}else Wn=Wn.filter(s=>e!=null&&s.options.toastId!==e)})(t)},L.clearWaitingQueue=function(t){t===void 0&&(t={}),st.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},L.isActive=Hc,L.update=function(t,e){e===void 0&&(e={});const n=((r,s)=>{var o;let{containerId:i}=s;return(o=st.get(i||1))==null?void 0:o.toasts.get(r)})(t,e);if(n){const{props:r,content:s}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:to()};o.toastId!==t&&(o.staleId=t);const i=o.render||s;delete o.render,ae(i,o)}},L.done=t=>{L.update(t,{progress:1})},L.onChange=function(t){return ns.add(t),()=>{ns.delete(t)}},L.play=t=>rs(!0,t),L.pause=t=>rs(!1,t);const zn={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 Xc(){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 Kc={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},Yc=t=>{L.error(t,{icon:p.jsxRuntimeExports.jsx(Xc,{}),position:"bottom-right",style:{...Kc,background:"#F7E4E1",borderColor:zn.danger,color:zn.danger}})},eo=p.reactExports.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),nn=p.reactExports.createContext({}),dr=p.reactExports.createContext(null),rn=typeof document<"u",Jc=rn?p.reactExports.useLayoutEffect:p.reactExports.useEffect,no=p.reactExports.createContext({strict:!1}),pr=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Zc="framerAppearId",ro="data-"+pr(Zc);function Qc(t,e,n,r){const{visualElement:s}=p.reactExports.useContext(nn),o=p.reactExports.useContext(no),i=p.reactExports.useContext(dr),a=p.reactExports.useContext(eo).reducedMotion,l=p.reactExports.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(t,{visualState:e,parent:s,props:n,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;p.reactExports.useInsertionEffect(()=>{c&&c.update(n,i)});const f=p.reactExports.useRef(!!(n[ro]&&!window.HandoffComplete));return Jc(()=>{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 tu(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 de(t){return typeof t=="string"||Array.isArray(t)}function sn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const mr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gr=["initial",...mr];function on(t){return sn(t.animate)||gr.some(e=>de(t[e]))}function so(t){return!!(on(t)||t.variants)}function eu(t,e){if(on(t)){const{initial:n,animate:r}=t;return{initial:n===!1||de(n)?n:void 0,animate:de(r)?r:void 0}}return t.inherit!==!1?e:{}}function nu(t){const{initial:e,animate:n}=eu(t,p.reactExports.useContext(nn));return p.reactExports.useMemo(()=>({initial:e,animate:n}),[ss(e),ss(n)])}function ss(t){return Array.isArray(t)?t.join(" "):t}const is={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"]},pe={};for(const t in is)pe[t]={isEnabled:e=>is[t].some(n=>!!e[n])};function ru(t){for(const e in t)pe[e]={...pe[e],...t[e]}}const io=p.reactExports.createContext({}),oo=p.reactExports.createContext({}),su=Symbol.for("motionComponentSymbol");function iu({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:s}){t&&ru(t);function o(a,l){let c;const f={...p.reactExports.useContext(eo),...a,layoutId:ou(a)},{isStatic:u}=f,h=nu(a),d=r(a,u);if(!u&&rn){h.visualElement=Qc(s,d,f,e);const m=p.reactExports.useContext(oo),g=p.reactExports.useContext(no).strict;h.visualElement&&(c=h.visualElement.loadFeatures(f,g,t,m))}return p.reactExports.createElement(nn.Provider,{value:h},c&&h.visualElement?p.reactExports.createElement(c,{visualElement:h.visualElement,...f}):null,n(s,a,tu(d,h.visualElement,l),d,u,h.visualElement))}const i=p.reactExports.forwardRef(o);return i[su]=s,i}function ou({layoutId:t}){const e=p.reactExports.useContext(io).id;return e&&t!==void 0?e+"-"+t:t}function au(t){function e(r,s={}){return iu(t(r,s))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,s)=>(n.has(s)||n.set(s,e(s)),n.get(s))})}const lu=["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 yr(t){return typeof t!="string"||t.includes("-")?!1:!!(lu.indexOf(t)>-1||/[A-Z]/.test(t))}const Ue={};function cu(t){Object.assign(Ue,t)}const xe=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jt=new Set(xe);function ao(t,{layout:e,layoutId:n}){return jt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ue[t]||t==="opacity")}const G=t=>!!(t&&t.getVelocity),uu={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fu=xe.length;function hu(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,s){let o="";for(let i=0;i<fu;i++){const a=xe[i];if(t[a]!==void 0){const l=uu[a]||a;o+=`${l}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(t,r?"":o):n&&r&&(o="none"),o}const lo=t=>e=>typeof e=="string"&&e.startsWith(t),co=lo("--"),Hn=lo("var(--"),du=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,pu=(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},le={...Dt,transform:t=>Tt(0,1,t)},Ae={...Dt,default:1},ce=t=>Math.round(t*1e5)/1e5,an=/(-)?([\d]*\.?[\d])+/g,uo=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,mu=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function be(t){return typeof t=="string"}const we=t=>({test:e=>be(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),xt=we("deg"),ot=we("%"),C=we("px"),gu=we("vh"),yu=we("vw"),os={...ot,parse:t=>ot.parse(t)/100,transform:t=>ot.transform(t*100)},as={...Dt,transform:Math.round},fo={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:Ae,scaleX:Ae,scaleY:Ae,scaleZ:Ae,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:le,originX:os,originY:os,originZ:C,zIndex:as,fillOpacity:le,strokeOpacity:le,numOctaves:as};function vr(t,e,n,r){const{style:s,vars:o,transform:i,transformOrigin:a}=t;let l=!1,c=!1,f=!0;for(const u in e){const h=e[u];if(co(u)){o[u]=h;continue}const d=fo[u],m=pu(h,d);if(jt.has(u)){if(l=!0,i[u]=m,!f)continue;h!==(d.default||0)&&(f=!1)}else u.startsWith("origin")?(c=!0,a[u]=m):s[u]=m}if(e.transform||(l||r?s.transform=hu(t.transform,n,f,r):s.transform&&(s.transform="none")),c){const{originX:u="50%",originY:h="50%",originZ:d=0}=a;s.transformOrigin=`${u} ${h} ${d}`}}const xr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ho(t,e,n){for(const r in e)!G(e[r])&&!ao(r,n)&&(t[r]=e[r])}function vu({transformTemplate:t},e,n){return p.reactExports.useMemo(()=>{const r=xr();return vr(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function xu(t,e,n){const r=t.style||{},s={};return ho(s,r,t),Object.assign(s,vu(t,e,n)),t.transformValues?t.transformValues(s):s}function bu(t,e,n){const r={},s=xu(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.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=s,r}const wu=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")||wu.has(t)}let po=t=>!We(t);function Eu(t){t&&(po=e=>e.startsWith("on")?!We(e):t(e))}try{Eu(require("@emotion/is-prop-valid").default)}catch{}function Su(t,e,n){const r={};for(const s in t)s==="values"&&typeof t.values=="object"||(po(s)||n===!0&&We(s)||!e&&!We(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}function ls(t,e,n){return typeof t=="string"?t:C.transform(e+n*t)}function Tu(t,e,n){const r=ls(e,t.x,t.width),s=ls(n,t.y,t.height);return`${r} ${s}`}const Pu={offset:"stroke-dashoffset",array:"stroke-dasharray"},Au={offset:"strokeDashoffset",array:"strokeDasharray"};function Cu(t,e,n=1,r=0,s=!0){t.pathLength=1;const o=s?Pu:Au;t[o.offset]=C.transform(-r);const i=C.transform(e),a=C.transform(n);t[o.array]=`${i} ${a}`}function br(t,{attrX:e,attrY:n,attrScale:r,originX:s,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:l=0,...c},f,u,h){if(vr(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&&(s!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=Tu(g,s!==void 0?s:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Cu(d,i,a,l,!1)}const mo=()=>({...xr(),attrs:{}}),wr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ru(t,e,n,r){const s=p.reactExports.useMemo(()=>{const o=mo();return br(o,e,{enableHardwareAcceleration:!1},wr(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};ho(o,t.style,t),s.style={...o,...s.style}}return s}function Ou(t=!1){return(n,r,s,{latestValues:o},i)=>{const l=(yr(n)?Ru:bu)(r,o,i,n),f={...Su(r,typeof n=="string",t),...l,ref:s},{children:u}=r,h=p.reactExports.useMemo(()=>G(u)?u.get():u,[u]);return p.reactExports.createElement(n,{...f,children:h})}}function go(t,{style:e,vars:n},r,s){Object.assign(t.style,e,s&&s.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const yo=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 vo(t,e,n,r){go(t,e,void 0,r);for(const s in e.attrs)t.setAttribute(yo.has(s)?s:pr(s),e.attrs[s])}function Er(t,e){const{style:n}=t,r={};for(const s in n)(G(n[s])||e.style&&G(e.style[s])||ao(s,t))&&(r[s]=n[s]);return r}function xo(t,e){const n=Er(t,e);for(const r in t)if(G(t[r])||G(e[r])){const s=xe.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[s]=t[r]}return n}function Sr(t,e,n,r={},s={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,s)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,s)),e}function Vu(t){const e=p.reactExports.useRef(null);return e.current===null&&(e.current=t()),e.current}const ze=t=>Array.isArray(t),ku=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Mu=t=>ze(t)?t[t.length-1]||0:t;function De(t){const e=G(t)?t.get():t;return ku(e)?e.toValue():e}function Lu({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,s,o){const i={latestValues:ju(r,s,o,t),renderState:e()};return n&&(i.mount=a=>n(r,a,i)),i}const bo=t=>(e,n)=>{const r=p.reactExports.useContext(nn),s=p.reactExports.useContext(dr),o=()=>Lu(t,e,r,s);return n?o():Vu(o)};function ju(t,e,n,r){const s={},o=r(t,{});for(const h in o)s[h]=De(o[h]);let{initial:i,animate:a}=t;const l=on(t),c=so(t);e&&c&&!l&&t.inherit!==!1&&(i===void 0&&(i=e.initial),a===void 0&&(a=e.animate));let f=n?n.initial===!1:!1;f=f||i===!1;const u=f?a:i;return u&&typeof u!="boolean"&&!sn(u)&&(Array.isArray(u)?u:[u]).forEach(d=>{const m=Sr(t,d);if(!m)return;const{transitionEnd:g,transition:y,...b}=m;for(const w in b){let v=b[w];if(Array.isArray(v)){const E=f?v.length-1:0;v=v[E]}v!==null&&(s[w]=v)}for(const w in g)s[w]=g[w]}),s}const N=t=>t;class cs{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 Du(t){let e=new cs,n=new cs,r=0,s=!1,o=!1;const i=new WeakSet,a={schedule:(l,c=!1,f=!1)=>{const u=f&&s,h=u?e:n;return c&&i.add(l),h.add(l)&&u&&s&&(r=e.order.length),l},cancel:l=>{n.remove(l),i.delete(l)},process:l=>{if(s){o=!0;return}if(s=!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),i.has(f)&&(a.schedule(f),t())}s=!1,o&&(o=!1,a.process(l))}};return a}const Ce=["prepare","read","update","preRender","render","postRender"],_u=40;function Nu(t,e){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=Ce.reduce((u,h)=>(u[h]=Du(()=>n=!0),u),{}),i=u=>o[u].process(s),a=()=>{const u=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(u-s.timestamp,_u),1),s.timestamp=u,s.isProcessing=!0,Ce.forEach(i),s.isProcessing=!1,n&&e&&(r=!1,t(a))},l=()=>{n=!0,r=!0,s.isProcessing||t(a)};return{schedule:Ce.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=>Ce.forEach(h=>o[h].cancel(u)),state:s,steps:o}}const{schedule:M,cancel:dt,state:H,steps:En}=Nu(typeof requestAnimationFrame<"u"?requestAnimationFrame:N,!0),Fu={useVisualState:bo({scrapeMotionValuesFromProps:xo,createRenderState:mo,onMount:(t,e,{renderState:n,latestValues:r})=>{M.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),M.render(()=>{br(n,r,{enableHardwareAcceleration:!1},wr(e.tagName),t.transformTemplate),vo(e,n)})}})},Bu={useVisualState:bo({scrapeMotionValuesFromProps:Er,createRenderState:xr})};function Iu(t,{forwardMotionProps:e=!1},n,r){return{...yr(t)?Fu:Bu,preloadedFeatures:n,useRender:Ou(e),createVisualElement:r,Component:t}}function ct(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const wo=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function ln(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const Uu=t=>e=>wo(e)&&t(e,ln(e));function ft(t,e,n,r){return ct(t,e,Uu(n),r)}const Wu=(t,e)=>n=>e(t(n)),Et=(...t)=>t.reduce(Wu);function Eo(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const us=Eo("dragHorizontal"),fs=Eo("dragVertical");function So(t){let e=!1;if(t==="y")e=fs();else if(t==="x")e=us();else{const n=us(),r=fs();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function To(){const t=So(!0);return t?(t(),!1):!0}class At{constructor(e){this.isMounted=!1,this.node=e}update(){}}function hs(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),s=(o,i)=>{if(o.pointerType==="touch"||To())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[r]&&M.update(()=>a[r](o,i))};return ft(t.current,n,s,{passive:!t.getProps()[r]})}class zu extends At{mount(){this.unmount=Et(hs(this.node,!0),hs(this.node,!1))}unmount(){}}class Hu 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 Po=(t,e)=>e?t===e?!0:Po(t,e.parentElement):!1;function Sn(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,ln(n))}class $u extends At{constructor(){super(...arguments),this.removeStartListeners=N,this.removeEndListeners=N,this.removeAccessibleListeners=N,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=ft(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:f,globalTapTarget:u}=this.node.getProps();M.update(()=>{!u&&!Po(this.node.current,a.target)?f&&f(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),i=ft(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Et(o,i),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const i=a=>{a.key!=="Enter"||!this.checkPressEnd()||Sn("up",(l,c)=>{const{onTap:f}=this.node.getProps();f&&M.update(()=>f(l,c))})};this.removeEndListeners(),this.removeEndListeners=ct(this.node.current,"keyup",i),Sn("down",(a,l)=>{this.startPress(a,l)})},n=ct(this.node.current,"keydown",e),r=()=>{this.isPressing&&Sn("cancel",(o,i)=>this.cancelPress(o,i))},s=ct(this.node.current,"blur",r);this.removeAccessibleListeners=Et(n,s)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&M.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!To()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&M.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=ft(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 $n=new WeakMap,Tn=new WeakMap,qu=t=>{const e=$n.get(t.target);e&&e(t)},Gu=t=>{t.forEach(qu)};function Xu({root:t,...e}){const n=t||document;Tn.has(n)||Tn.set(n,{});const r=Tn.get(n),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(Gu,{root:t,...e})),r[s]}function Ku(t,e,n){const r=Xu(e);return $n.set(t,n),r.observe(t),()=>{$n.delete(t),r.unobserve(t)}}const Yu={some:0,all:1};class Ju 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:s="some",once:o}=e,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:Yu[s]},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 Ku(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Zu(e,n))&&this.startObserver()}unmount(){}}function Zu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Qu={inView:{Feature:Ju},tap:{Feature:$u},focus:{Feature:Hu},hover:{Feature:zu}};function Ao(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 tf(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function ef(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function cn(t,e,n){const r=t.getProps();return Sr(r,e,n!==void 0?n:r.custom,tf(t),ef(t))}let nf=N,Tr=N;const St=t=>t*1e3,ht=t=>t/1e3,rf={current:!1},Co=t=>Array.isArray(t)&&typeof t[0]=="number";function Ro(t){return!!(!t||typeof t=="string"&&Oo[t]||Co(t)||Array.isArray(t)&&t.every(Ro))}const ie=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Oo={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 Vo(t){if(t)return Co(t)?ie(t):Array.isArray(t)?t.map(Vo):Oo[t]}function sf(t,e,n,{delay:r=0,duration:s,repeat:o=0,repeatType:i="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const f=Vo(a);return Array.isArray(f)&&(c.easing=f),t.animate(c,{delay:r,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"})}function of(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const ko=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,af=1e-7,lf=12;function cf(t,e,n,r,s){let o,i,a=0;do i=e+(n-e)/2,o=ko(i,r,s)-t,o>0?n=i:e=i;while(Math.abs(o)>af&&++a<lf);return i}function Ee(t,e,n,r){if(t===e&&n===r)return N;const s=o=>cf(o,0,1,t,n);return o=>o===0||o===1?o:ko(s(o),e,r)}const uf=Ee(.42,0,1,1),ff=Ee(0,0,.58,1),Mo=Ee(.42,0,.58,1),hf=t=>Array.isArray(t)&&typeof t[0]!="number",Lo=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,jo=t=>e=>1-t(1-e),Pr=t=>1-Math.sin(Math.acos(t)),Do=jo(Pr),df=Lo(Pr),_o=Ee(.33,1.53,.69,.99),Ar=jo(_o),pf=Lo(Ar),mf=t=>(t*=2)<1?.5*Ar(t):.5*(2-Math.pow(2,-10*(t-1))),gf={linear:N,easeIn:uf,easeInOut:Mo,easeOut:ff,circIn:Pr,circInOut:df,circOut:Do,backIn:Ar,backInOut:pf,backOut:_o,anticipate:mf},ds=t=>{if(Array.isArray(t)){Tr(t.length===4);const[e,n,r,s]=t;return Ee(e,n,r,s)}else if(typeof t=="string")return gf[t];return t},Cr=(t,e)=>n=>!!(be(n)&&mu.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),No=(t,e,n)=>r=>{if(!be(r))return r;const[s,o,i,a]=r.match(an);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},yf=t=>Tt(0,255,t),Pn={...Dt,transform:t=>Math.round(yf(t))},Mt={test:Cr("rgb","red"),parse:No("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Pn.transform(t)+", "+Pn.transform(e)+", "+Pn.transform(n)+", "+ce(le.transform(r))+")"};function vf(t){let e="",n="",r="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const qn={test:Cr("#"),parse:vf,transform:Mt.transform},$t={test:Cr("hsl","hue"),parse:No("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+ot.transform(ce(e))+", "+ot.transform(ce(n))+", "+ce(le.transform(r))+")"},$={test:t=>Mt.test(t)||qn.test(t)||$t.test(t),parse:t=>Mt.test(t)?Mt.parse(t):$t.test(t)?$t.parse(t):qn.parse(t),transform:t=>be(t)?t:t.hasOwnProperty("red")?Mt.transform(t):$t.transform(t)},D=(t,e,n)=>-n*t+n*e+t;function An(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 xf({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let s=0,o=0,i=0;if(!e)s=o=i=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;s=An(l,a,t+1/3),o=An(l,a,t),i=An(l,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:r}}const Cn=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},bf=[qn,Mt,$t],wf=t=>bf.find(e=>e.test(t));function ps(t){const e=wf(t);let n=e.parse(t);return e===$t&&(n=xf(n)),n}const Fo=(t,e)=>{const n=ps(t),r=ps(e),s={...n};return o=>(s.red=Cn(n.red,r.red,o),s.green=Cn(n.green,r.green,o),s.blue=Cn(n.blue,r.blue,o),s.alpha=D(n.alpha,r.alpha,o),Mt.transform(s))};function Ef(t){var e,n;return isNaN(t)&&be(t)&&(((e=t.match(an))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(uo))===null||n===void 0?void 0:n.length)||0)>0}const Bo={regex:du,countKey:"Vars",token:"${v}",parse:N},Io={regex:uo,countKey:"Colors",token:"${c}",parse:$.parse},Uo={regex:an,countKey:"Numbers",token:"${n}",parse:Dt.parse};function Rn(t,{regex:e,countKey:n,token:r,parse:s}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(s)))}function He(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Rn(n,Bo),Rn(n,Io),Rn(n,Uo),n}function Wo(t){return He(t).values}function zo(t){const{values:e,numColors:n,numVars:r,tokenised:s}=He(t),o=e.length;return i=>{let a=s;for(let l=0;l<o;l++)l<r?a=a.replace(Bo.token,i[l]):l<r+n?a=a.replace(Io.token,$.transform(i[l])):a=a.replace(Uo.token,ce(i[l]));return a}}const Sf=t=>typeof t=="number"?0:t;function Tf(t){const e=Wo(t);return zo(t)(e.map(Sf))}const Pt={test:Ef,parse:Wo,createTransformer:zo,getAnimatableNone:Tf},Ho=(t,e)=>n=>`${n>0?e:t}`;function $o(t,e){return typeof t=="number"?n=>D(t,e,n):$.test(t)?Fo(t,e):t.startsWith("var(")?Ho(t,e):Go(t,e)}const qo=(t,e)=>{const n=[...t],r=n.length,s=t.map((o,i)=>$o(o,e[i]));return o=>{for(let i=0;i<r;i++)n[i]=s[i](o);return n}},Pf=(t,e)=>{const n={...t,...e},r={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(r[s]=$o(t[s],e[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}},Go=(t,e)=>{const n=Pt.createTransformer(e),r=He(t),s=He(e);return r.numVars===s.numVars&&r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?Et(qo(r.values,s.values),n):Ho(t,e)},me=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},ms=(t,e)=>n=>D(t,e,n);function Af(t){return typeof t=="number"?ms:typeof t=="string"?$.test(t)?Fo:Go:Array.isArray(t)?qo:typeof t=="object"?Pf:ms}function Cf(t,e,n){const r=[],s=n||Af(t[0]),o=t.length-1;for(let i=0;i<o;i++){let a=s(t[i],t[i+1]);if(e){const l=Array.isArray(e)?e[i]||N:e;a=Et(l,a)}r.push(a)}return r}function Xo(t,e,{clamp:n=!0,ease:r,mixer:s}={}){const o=t.length;if(Tr(o===e.length),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const i=Cf(e,r,s),a=i.length,l=c=>{let f=0;if(a>1)for(;f<t.length-2&&!(c<t[f+1]);f++);const u=me(t[f],t[f+1],c);return i[f](u)};return n?c=>l(Tt(t[0],t[o-1],c)):l}function Rf(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const s=me(0,e,r);t.push(D(n,1,s))}}function Of(t){const e=[0];return Rf(e,t.length-1),e}function Vf(t,e){return t.map(n=>n*e)}function kf(t,e){return t.map(()=>e||Mo).splice(0,t.length-1)}function $e({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const s=hf(r)?r.map(ds):ds(r),o={done:!1,value:e[0]},i=Vf(n&&n.length===e.length?n:Of(e),t),a=Xo(i,e,{ease:Array.isArray(s)?s:kf(e,s)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}function Ko(t,e){return e?t*(1e3/e):0}const Mf=5;function Yo(t,e,n){const r=Math.max(e-Mf,0);return Ko(n-t(r),e-r)}const On=.001,Lf=.01,gs=10,jf=.05,Df=1;function _f({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let s,o;nf(t<=St(gs));let i=1-e;i=Tt(jf,Df,i),t=Tt(Lf,gs,ht(t)),i<1?(s=c=>{const f=c*i,u=f*t,h=f-n,d=Gn(c,i),m=Math.exp(-u);return On-h/d*m},o=c=>{const u=c*i*t,h=u*n+n,d=Math.pow(i,2)*Math.pow(c,2)*t,m=Math.exp(-u),g=Gn(Math.pow(c,2),i);return(-s(c)+On>0?-1:1)*((h-d)*m)/g}):(s=c=>{const f=Math.exp(-c*t),u=(c-n)*t+1;return-On+f*u},o=c=>{const f=Math.exp(-c*t),u=(n-c)*(t*t);return f*u});const a=5/t,l=Ff(s,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:i*2*Math.sqrt(r*c),duration:t}}}const Nf=12;function Ff(t,e,n){let r=n;for(let s=1;s<Nf;s++)r=r-t(r)/e(r);return r}function Gn(t,e){return t*Math.sqrt(1-e*e)}const Bf=["duration","bounce"],If=["stiffness","damping","mass"];function ys(t,e){return e.some(n=>t[n]!==void 0)}function Uf(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ys(t,If)&&ys(t,Bf)){const n=_f(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Jo({keyframes:t,restDelta:e,restSpeed:n,...r}){const s=t[0],o=t[t.length-1],i={done:!1,value:s},{stiffness:a,damping:l,mass:c,duration:f,velocity:u,isResolvedFromDuration:h}=Uf({...r,velocity:-ht(r.velocity||0)}),d=u||0,m=l/(2*Math.sqrt(a*c)),g=o-s,y=ht(Math.sqrt(a/c)),b=Math.abs(g)<5;n||(n=b?.01:2),e||(e=b?.005:.5);let w;if(m<1){const v=Gn(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)i.done=v>=f;else{let S=d;v!==0&&(m<1?S=Yo(w,v,E):S=0);const T=Math.abs(S)<=n,P=Math.abs(o-E)<=e;i.done=T&&P}return i.value=i.done?o:E,i}}}function vs({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:i,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,b=i===void 0?y:i(y);b!==y&&(g=b-u);const w=A=>-g*Math.exp(-A/r),v=A=>b+w(A),E=A=>{const R=w(A),_=v(A);h.done=Math.abs(R)<=c,h.value=h.done?b:_};let S,T;const P=A=>{d(h.value)&&(S=A,T=Jo({keyframes:[h.value,m(h.value)],velocity:Yo(v,A,h.value),damping:s,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 Wf=t=>{const e=({timestamp:n})=>t(n);return{start:()=>M.update(e,!0),stop:()=>dt(e),now:()=>H.isProcessing?H.timestamp:performance.now()}},xs=2e4;function bs(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<xs;)e+=n,r=t.next(e);return e>=xs?1/0:e}const zf={decay:vs,inertia:vs,tween:$e,keyframes:$e,spring:Jo};function qe({autoplay:t=!0,delay:e=0,driver:n=Wf,keyframes:r,type:s="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:f,onUpdate:u,...h}){let d=1,m=!1,g,y;const b=()=>{y=new Promise(k=>{g=k})};b();let w;const v=zf[s]||$e;let E;v!==$e&&typeof r[0]!="number"&&(E=Xo([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,_=null;S.calculatedDuration===null&&o&&(S.calculatedDuration=bs(S));const{calculatedDuration:V}=S;let j=1/0,U=1/0;V!==null&&(j=V+i,U=j*(o+1)-i);let W=0;const et=k=>{if(R===null)return;d>0&&(R=Math.min(R,k)),d<0&&(R=Math.min(k-U/d,R)),A!==null?W=A:W=Math.round(k-R)*d;const Nt=W-e*(d>=0?1:-1),Ft=d>=0?Nt<0:Nt>U;W=Math.max(Nt,0),P==="finished"&&A===null&&(W=U);let pn=W,Ct=S;if(o){const te=Math.min(W,U)/j;let Rt=Math.floor(te),Q=te%1;!Q&&te>=1&&(Q=1),Q===1&&Rt--,Rt=Math.min(Rt,o+1),!!(Rt%2)&&(a==="reverse"?(Q=1-Q,i&&(Q-=i/j)):a==="mirror"&&(Ct=T)),pn=Tt(0,1,Q)*j}const lt=Ft?{done:!1,value:r[0]}:Ct.next(pn);E&&(lt.value=E(lt.value));let{done:Bt}=lt;!Ft&&V!==null&&(Bt=d>=0?W>=U:W<=0);const It=A===null&&(P==="finished"||P==="running"&&Bt);return u&&u(lt.value),It&&z(),lt},I=()=>{w&&w.stop(),w=void 0},nt=()=>{P="idle",I(),g(),b(),R=_=null},z=()=>{P="finished",f&&f(),I(),g()},pt=()=>{if(m)return;w||(w=n(et));const k=w.now();l&&l(),A!==null?R=k-A:(!R||P==="finished")&&(R=k),P==="finished"&&b(),_=R,A=null,P="running",w.start()};t&&pt();const _t={then(k,Nt){return y.then(k,Nt)},get time(){return ht(W)},set time(k){k=St(k),W=k,A!==null||!w||d===0?A=k:R=w.now()-k/d},get duration(){const k=S.calculatedDuration===null?bs(S):S.calculatedDuration;return ht(k)},get speed(){return d},set speed(k){k===d||!w||(d=k,_t.time=ht(W))},get state(){return P},play:pt,pause:()=>{P="paused",A=W},stop:()=>{m=!0,P!=="idle"&&(P="idle",c&&c(),nt())},cancel:()=>{_!==null&&et(_),nt()},complete:()=>{P="finished"},sample:k=>(R=0,et(k))};return _t}function Hf(t){let e;return()=>(e===void 0&&(e=t()),e)}const $f=Hf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),qf=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Re=10,Gf=2e4,Xf=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Ro(e.ease);function Kf(t,e,{onUpdate:n,onComplete:r,...s}){if(!($f()&&qf.has(e)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0&&s.type!=="inertia"))return!1;let i=!1,a,l,c=!1;const f=()=>{l=new Promise(v=>{a=v})};f();let{keyframes:u,duration:h=300,ease:d,times:m}=s;if(Xf(e,s)){const v=qe({...s,repeat:0,delay:0});let E={done:!1,value:u[0]};const S=[];let T=0;for(;!E.done&&T<Gf;)E=v.sample(T),S.push(E.value),T+=Re;m=void 0,u=S,h=T-Re,d="linear"}const g=sf(t.owner.current,e,u,{...s,duration:h,ease:d,times:m}),y=()=>{c=!1,g.cancel()},b=()=>{c=!0,M.update(y),a(),f()};return g.onfinish=()=>{c||(t.set(of(u,s)),r&&r(),b())},{then(v,E){return l.then(v,E)},attachTimeline(v){return g.timeline=v,g.onfinish=null,N},get time(){return ht(g.currentTime||0)},set time(v){g.currentTime=St(v)},get speed(){return g.playbackRate},set speed(v){g.playbackRate=v},get duration(){return ht(h)},play:()=>{i||(g.play(),dt(y))},pause:()=>g.pause(),stop:()=>{if(i=!0,g.playState==="idle")return;const{currentTime:v}=g;if(v){const E=qe({...s,autoplay:!1});t.setWithVelocity(E.sample(v-Re).value,E.sample(v).value,Re)}b()},complete:()=>{c||g.finish()},cancel:b}}function Yf({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const s=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:N,pause:N,stop:N,then:o=>(o(),Promise.resolve()),cancel:N,complete:N});return e?qe({keyframes:[0,1],duration:0,delay:e,onComplete:s}):s()}const Jf={type:"spring",stiffness:500,damping:25,restSpeed:10},Zf=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Qf={type:"keyframes",duration:.8},th={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eh=(t,{keyframes:e})=>e.length>2?Qf:jt.has(t)?t.startsWith("scale")?Zf(e[1]):Jf:th,Xn=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Pt.test(e)||e==="0")&&!e.startsWith("url(")),nh=new Set(["brightness","contrast","saturate","opacity"]);function rh(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(an)||[];if(!r)return t;const s=n.replace(r,"");let o=nh.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+s+")"}const sh=/([a-z-]*)\(.*?\)/g,Kn={...Pt,getAnimatableNone:t=>{const e=t.match(sh);return e?e.map(rh).join(" "):t}},ih={...fo,color:$,backgroundColor:$,outlineColor:$,fill:$,stroke:$,borderColor:$,borderTopColor:$,borderRightColor:$,borderBottomColor:$,borderLeftColor:$,filter:Kn,WebkitFilter:Kn},Rr=t=>ih[t];function Zo(t,e){let n=Rr(t);return n!==Kn&&(n=Pt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Qo=t=>/^0[^.\s]+$/.test(t);function oh(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Qo(t)}function ah(t,e,n,r){const s=Xn(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const i=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?i:o[c-1]),oh(o[c])&&l.push(c),typeof o[c]=="string"&&o[c]!=="none"&&o[c]!=="0"&&(a=o[c]);if(s&&l.length&&a)for(let c=0;c<l.length;c++){const f=l[c];o[f]=Zo(e,a)}return o}function lh({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:i,repeatDelay:a,from:l,elapsed:c,...f}){return!!Object.keys(f).length}function Or(t,e){return t[e]||t.default||t}const ch={skipAnimations:!1},Vr=(t,e,n,r={})=>s=>{const o=Or(r,t)||{},i=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-St(i);const l=ah(e,t,n,o),c=l[0],f=l[l.length-1],u=Xn(t,c),h=Xn(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:()=>{s(),o.onComplete&&o.onComplete()}};if(lh(o)||(d={...d,...eh(t,d)}),d.duration&&(d.duration=St(d.duration)),d.repeatDelay&&(d.repeatDelay=St(d.repeatDelay)),!u||!h||rf.current||o.type===!1||ch.skipAnimations)return Yf(d);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const m=Kf(e,t,d);if(m)return m}return qe(d)};function Ge(t){return!!(G(t)&&t.add)}const ta=t=>/^\-?\d*\.?\d+$/.test(t);function kr(t,e){t.indexOf(e)===-1&&t.push(e)}function Mr(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Lr{constructor(){this.subscriptions=[]}add(e){return kr(this.subscriptions,e),()=>Mr(this.subscriptions,e)}notify(e,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,r);else for(let o=0;o<s;o++){const i=this.subscriptions[o];i&&i(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const uh=t=>!isNaN(parseFloat(t));class fh{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,s=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:i}=H;this.lastUpdated!==i&&(this.timeDelta=o,this.lastUpdated=i,M.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()),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>M.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=uh(this.current),this.owner=n.owner}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Lr);const r=this.events[e].add(n);return e==="change"?()=>{r(),M.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?Ko(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 Kt(t,e){return new fh(t,e)}const ea=t=>e=>e.test(t),hh={test:t=>t==="auto",parse:t=>t},na=[Dt,C,ot,xt,yu,gu,hh],re=t=>na.find(ea(t)),dh=[...na,$,Pt],ph=t=>dh.find(ea(t));function mh(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Kt(n))}function gh(t,e){const n=cn(t,e);let{transitionEnd:r={},transition:s={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const i in o){const a=Mu(o[i]);mh(t,i,a)}}function yh(t,e,n){var r,s;const o=Object.keys(e).filter(a=>!t.hasValue(a)),i=o.length;if(i)for(let a=0;a<i;a++){const l=o[a],c=e[l];let f=null;Array.isArray(c)&&(f=c[0]),f===null&&(f=(s=(r=n[l])!==null&&r!==void 0?r:t.readValue(l))!==null&&s!==void 0?s:e[l]),f!=null&&(typeof f=="string"&&(ta(f)||Qo(f))?f=parseFloat(f):!ph(f)&&Pt.test(c)&&(f=Zo(l,c)),t.addValue(l,Kt(f,{owner:t})),n[l]===void 0&&(n[l]=f),f!==null&&t.setBaseTarget(l,f))}}function vh(t,e){return e?(e[t]||e.default||e).from:void 0}function xh(t,e,n){const r={};for(const s in t){const o=vh(s,e);if(o!==void 0)r[s]=o;else{const i=n.getValue(s);i&&(r[s]=i.get())}}return r}function bh({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function wh(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 ra(t,e,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:i,...a}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");r&&(o=r);const c=[],f=s&&t.animationState&&t.animationState.getState()[s];for(const u in a){const h=t.getValue(u),d=a[u];if(!h||d===void 0||f&&bh(f,u))continue;const m={delay:n,elapsed:0,...Or(o||{},u)};if(window.HandoffAppearAnimations){const b=t.getProps()[ro];if(b){const w=window.HandoffAppearAnimations(b,u,h,M);w!==null&&(m.elapsed=w,m.isHandoff=!0)}}let g=!m.isHandoff&&!wh(h,d);if(m.type==="spring"&&(h.getVelocity()||m.velocity)&&(g=!1),h.animation&&(g=!1),g)continue;h.start(Vr(u,h,d,t.shouldReduceMotion&&jt.has(u)?{type:!1}:m));const y=h.animation;Ge(l)&&(l.add(u),y.then(()=>l.remove(u))),c.push(y)}return i&&Promise.all(c).then(()=>{i&&gh(t,i)}),c}function Yn(t,e,n={}){const r=cn(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const o=r?()=>Promise.all(ra(t,r,n)):()=>Promise.resolve(),i=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:u}=s;return Eh(t,e,c+l,f,u,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[l,c]=a==="beforeChildren"?[o,i]:[i,o];return l().then(()=>c())}else return Promise.all([o(),i(n.delay)])}function Eh(t,e,n=0,r=0,s=1,o){const i=[],a=(t.variantChildren.size-1)*r,l=s===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(t.variantChildren).sort(Sh).forEach((c,f)=>{c.notify("AnimationStart",e),i.push(Yn(c,e,{...o,delay:n+l(f)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(i)}function Sh(t,e){return t.sortNodePosition(e)}function Th(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const s=e.map(o=>Yn(t,o,n));r=Promise.all(s)}else if(typeof e=="string")r=Yn(t,e,n);else{const s=typeof e=="function"?cn(t,e,n.custom):e;r=Promise.all(ra(t,s,n))}return r.then(()=>t.notify("AnimationComplete",e))}const Ph=[...mr].reverse(),Ah=mr.length;function Ch(t){return e=>Promise.all(e.map(({animation:n,options:r})=>Th(t,n,r)))}function Rh(t){let e=Ch(t);const n=Vh();let r=!0;const s=(l,c)=>{const f=cn(t,c);if(f){const{transition:u,transitionEnd:h,...d}=f;l={...l,...d,...h}}return l};function o(l){e=l(t)}function i(l,c){const f=t.getProps(),u=t.getVariantContext(!0)||{},h=[],d=new Set;let m={},g=1/0;for(let b=0;b<Ah;b++){const w=Ph[b],v=n[w],E=f[w]!==void 0?f[w]:u[w],S=de(E),T=w===c?v.isActive:null;T===!1&&(g=b);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||sn(E)||typeof E=="boolean")continue;let R=Oh(v.prevProp,E)||w===c&&v.isActive&&!P&&S||b>g&&S,_=!1;const V=Array.isArray(E)?E:[E];let j=V.reduce(s,{});T===!1&&(j={});const{prevResolvedValues:U={}}=v,W={...U,...j},et=I=>{R=!0,d.has(I)&&(_=!0,d.delete(I)),v.needsAnimating[I]=!0};for(const I in W){const nt=j[I],z=U[I];if(m.hasOwnProperty(I))continue;let pt=!1;ze(nt)&&ze(z)?pt=!Ao(nt,z):pt=nt!==z,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=j,v.isActive&&(m={...m,...j}),r&&t.blockInitialAnimation&&(R=!1),R&&(!P||_)&&h.push(...V.map(I=>({animation:I,options:{type:w,...l}})))}if(d.size){const b={};d.forEach(w=>{const v=t.getBaseTarget(w);v!==void 0&&(b[w]=v)}),h.push({animation:b})}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=i(f,l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:i,setActive:a,setAnimateFunction:o,getState:()=>n}}function Oh(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ao(e,t):!1}function Ot(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Vh(){return{animate:Ot(!0),whileInView:Ot(),whileHover:Ot(),whileTap:Ot(),whileDrag:Ot(),whileFocus:Ot(),exit:Ot()}}class kh extends At{constructor(e){super(e),e.animationState||(e.animationState=Rh(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),sn(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 Mh=0;class Lh extends At{constructor(){super(...arguments),this.id=Mh++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)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 jh={animation:{Feature:kh},exit:{Feature:Lh}},ws=(t,e)=>Math.abs(t-e);function Dh(t,e){const n=ws(t.x,e.x),r=ws(t.y,e.y);return Math.sqrt(n**2+r**2)}class sa{constructor(e,n,{transformPagePoint:r,contextWindow:s,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=kn(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,d=Dh(u.offset,{x:0,y:0})>=3;if(!h&&!d)return;const{point:m}=u,{timestamp:g}=H;this.history.push({...m,timestamp:g});const{onStart:y,onMove:b}=this.handlers;h||(y&&y(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,u)},this.handlePointerMove=(u,h)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Vn(h,this.transformPagePoint),M.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=kn(u.type==="pointercancel"?this.lastMoveEventInfo:Vn(h,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,y),m&&m(u,y)},!wo(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const i=ln(e),a=Vn(i,this.transformPagePoint),{point:l}=a,{timestamp:c}=H;this.history=[{...l,timestamp:c}];const{onSessionStart:f}=n;f&&f(e,kn(a,this.history)),this.removeListeners=Et(ft(this.contextWindow,"pointermove",this.handlePointerMove),ft(this.contextWindow,"pointerup",this.handlePointerUp),ft(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),dt(this.updatePoint)}}function Vn(t,e){return e?{point:e(t.point)}:t}function Es(t,e){return{x:t.x-e.x,y:t.y-e.y}}function kn({point:t},e){return{point:t,delta:Es(t,ia(e)),offset:Es(t,_h(e)),velocity:Nh(e,.1)}}function _h(t){return t[0]}function ia(t){return t[t.length-1]}function Nh(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const s=ia(t);for(;n>=0&&(r=t[n],!(s.timestamp-r.timestamp>St(e)));)n--;if(!r)return{x:0,y:0};const o=ht(s.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const i={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function K(t){return t.max-t.min}function Jn(t,e=0,n=.01){return Math.abs(t-e)<=n}function Ss(t,e,n,r=.5){t.origin=r,t.originPoint=D(e.min,e.max,t.origin),t.scale=K(n)/K(e),(Jn(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=D(n.min,n.max,t.origin)-t.originPoint,(Jn(t.translate)||isNaN(t.translate))&&(t.translate=0)}function ue(t,e,n,r){Ss(t.x,e.x,n.x,r?r.originX:void 0),Ss(t.y,e.y,n.y,r?r.originY:void 0)}function Ts(t,e,n){t.min=n.min+e.min,t.max=t.min+K(e)}function Fh(t,e,n){Ts(t.x,e.x,n.x),Ts(t.y,e.y,n.y)}function Ps(t,e,n){t.min=e.min-n.min,t.max=t.min+K(e)}function fe(t,e,n){Ps(t.x,e.x,n.x),Ps(t.y,e.y,n.y)}function Bh(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?D(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?D(n,t,r.max):Math.min(t,n)),t}function As(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 Ih(t,{top:e,left:n,bottom:r,right:s}){return{x:As(t.x,n,s),y:As(t.y,e,r)}}function Cs(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 Uh(t,e){return{x:Cs(t.x,e.x),y:Cs(t.y,e.y)}}function Wh(t,e){let n=.5;const r=K(t),s=K(e);return s>r?n=me(e.min,e.max-r,t.min):r>s&&(n=me(t.min,t.max-s,e.min)),Tt(0,1,n)}function zh(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 Zn=.35;function Hh(t=Zn){return t===!1?t=0:t===!0&&(t=Zn),{x:Rs(t,"left","right"),y:Rs(t,"top","bottom")}}function Rs(t,e,n){return{min:Os(t,e),max:Os(t,n)}}function Os(t,e){return typeof t=="number"?t:t[e]||0}const Vs=()=>({translate:0,scale:1,origin:0,originPoint:0}),qt=()=>({x:Vs(),y:Vs()}),ks=()=>({min:0,max:0}),F=()=>({x:ks(),y:ks()});function J(t){return[t("x"),t("y")]}function oa({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function $h({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function qh(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 Mn(t){return t===void 0||t===1}function Qn({scale:t,scaleX:e,scaleY:n}){return!Mn(t)||!Mn(e)||!Mn(n)}function Vt(t){return Qn(t)||aa(t)||t.z||t.rotate||t.rotateX||t.rotateY}function aa(t){return Ms(t.x)||Ms(t.y)}function Ms(t){return t&&t!=="0%"}function Xe(t,e,n){const r=t-n,s=e*r;return n+s}function Ls(t,e,n,r,s){return s!==void 0&&(t=Xe(t,s,r)),Xe(t,n,r)+e}function tr(t,e=0,n=1,r,s){t.min=Ls(t.min,e,n,r,s),t.max=Ls(t.max,e,n,r,s)}function la(t,{x:e,y:n}){tr(t.x,e.translate,e.scale,e.originPoint),tr(t.y,n.translate,n.scale,n.originPoint)}function Gh(t,e,n,r=!1){const s=n.length;if(!s)return;e.x=e.y=1;let o,i;for(let a=0;a<s;a++){o=n[a],i=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}),i&&(e.x*=i.x.scale,e.y*=i.y.scale,la(t,i)),r&&Vt(o.latestValues)&&Gt(t,o.latestValues))}e.x=js(e.x),e.y=js(e.y)}function js(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 Ds(t,e,[n,r,s]){const o=e[s]!==void 0?e[s]:.5,i=D(t.min,t.max,o);tr(t,e[n],e[r],i,e.scale)}const Xh=["x","scaleX","originX"],Kh=["y","scaleY","originY"];function Gt(t,e){Ds(t.x,e,Xh),Ds(t.y,e,Kh)}function ca(t,e){return oa(qh(t.getBoundingClientRect(),e))}function Yh(t,e,n){const r=ca(t,n),{scroll:s}=e;return s&&(bt(r.x,s.offset.x),bt(r.y,s.offset.y)),r}const ua=({current:t})=>t?t.ownerDocument.defaultView:null,Jh=new WeakMap;class Zh{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=F(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ln(f,"page").point)},o=(f,u)=>{const{drag:h,dragPropagation:d,onDragStart:m}=this.getProps();if(h&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=So(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 b=this.getAxisMotionValue(y).get()||0;if(ot.test(b)){const{projection:w}=this.visualElement;if(w&&w.layout){const v=w.layout.layoutBox[y];v&&(b=K(v)*(parseFloat(b)/100))}}this.originPoint[y]=b}),m&&M.update(()=>m(f,u),!1,!0);const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},i=(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=Qh(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 sa(e,{onSessionStart:s,onStart:o,onMove:i,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:ua(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&M.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:s}=this.getProps();if(!r||!Oe(e,s,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=Bh(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=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&&s?this.constraints=Ih(s.layoutBox,n):this.constraints=!1,this.elastic=Hh(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&J(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=zh(s.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Ht(e))return!1;const r=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=Yh(r,s.root,this.visualElement.getTransformPagePoint());let i=Uh(s.layout.layoutBox,o);if(n){const a=n($h(i));this.hasMutatedConstraints=!!a,a&&(i=oa(a))}return i}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=J(f=>{if(!Oe(f,n,this.currentDirection))return;let u=l&&l[f]||{};i&&(u={min:0,max:0});const h=s?200:1e6,d=s?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(Vr(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(),s=r[n];return s||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){J(n=>{const{drag:r}=this.getProps();if(!Oe(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:i,max:a}=s.layout.layoutBox[n];o.set(e[n]-D(i,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 s={x:0,y:0};J(i=>{const a=this.getAxisMotionValue(i);if(a){const l=a.get();s[i]=Wh({min:l,max:l},this.constraints[i])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),J(i=>{if(!Oe(i,e,null))return;const a=this.getAxisMotionValue(i),{min:l,max:c}=this.constraints[i];a.set(D(l,c,s[i]))})}addListeners(){if(!this.visualElement.current)return;Jh.set(this.visualElement,this);const e=this.visualElement.current,n=ft(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:s}=this.visualElement,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),r();const i=ct(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.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()=>{i(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:i=Zn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Oe(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Qh(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class td extends At{constructor(e){super(e),this.removeGroupControls=N,this.removeListeners=N,this.controls=new Zh(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||N}unmount(){this.removeGroupControls(),this.removeListeners()}}const _s=t=>(e,n)=>{t&&M.update(()=>t(e,n))};class ed extends At{constructor(){super(...arguments),this.removePointerDownListener=N}onPointerDown(e){this.session=new sa(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ua(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:_s(e),onStart:_s(n),onMove:r,onEnd:(o,i)=>{delete this.session,s&&M.update(()=>s(o,i))}}}mount(){this.removePointerDownListener=ft(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 nd(){const t=p.reactExports.useContext(dr);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,s=p.reactExports.useId();return p.reactExports.useEffect(()=>r(s),[]),!e&&n?[!1,()=>n&&n(s)]:[!0]}const _e={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ns(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const se={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(C.test(t))t=parseFloat(t);else return t;const n=Ns(t,e.target.x),r=Ns(t,e.target.y);return`${n}% ${r}%`}},rd={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,s=Pt.parse(t);if(s.length>5)return r;const o=Pt.createTransformer(t),i=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+i]/=a,s[1+i]/=l;const c=D(a,l,.5);return typeof s[2+i]=="number"&&(s[2+i]/=c),typeof s[3+i]=="number"&&(s[3+i]/=c),o(s)}};class sd extends p.React$1.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:o}=e;cu(id),o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),_e.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:s,isPresent:o}=this.props,i=r.projection;return i&&(i.isPresent=o,s||e.layoutDependency!==n||n===void 0?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||M.postRender(()=>{const a=i.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:s}=e;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function fa(t){const[e,n]=nd(),r=p.reactExports.useContext(io);return p.React$1.createElement(sd,{...t,layoutGroup:r,switchLayoutGroup:p.reactExports.useContext(oo),isPresent:e,safeToRemove:n})}const id={borderRadius:{...se,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:se,borderTopRightRadius:se,borderBottomLeftRadius:se,borderBottomRightRadius:se,boxShadow:rd},ha=["TopLeft","TopRight","BottomLeft","BottomRight"],od=ha.length,Fs=t=>typeof t=="string"?parseFloat(t):t,Bs=t=>typeof t=="number"||C.test(t);function ad(t,e,n,r,s,o){s?(t.opacity=D(0,n.opacity!==void 0?n.opacity:1,ld(r)),t.opacityExit=D(e.opacity!==void 0?e.opacity:1,0,cd(r))):o&&(t.opacity=D(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let i=0;i<od;i++){const a=`border${ha[i]}Radius`;let l=Is(e,a),c=Is(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Bs(l)===Bs(c)?(t[a]=Math.max(D(Fs(l),Fs(c),r),0),(ot.test(c)||ot.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=D(e.rotate||0,n.rotate||0,r))}function Is(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const ld=da(0,.5,Do),cd=da(.5,.95,N);function da(t,e,n){return r=>r<t?0:r>e?1:n(me(t,e,r))}function Us(t,e){t.min=e.min,t.max=e.max}function Y(t,e){Us(t.x,e.x),Us(t.y,e.y)}function Ws(t,e,n,r,s){return t-=e,t=Xe(t,1/n,r),s!==void 0&&(t=Xe(t,1/s,r)),t}function ud(t,e=0,n=1,r=.5,s,o=t,i=t){if(ot.test(e)&&(e=parseFloat(e),e=D(i.min,i.max,e/100)-i.min),typeof e!="number")return;let a=D(o.min,o.max,r);t===o&&(a-=e),t.min=Ws(t.min,e,n,a,s),t.max=Ws(t.max,e,n,a,s)}function zs(t,e,[n,r,s],o,i){ud(t,e[n],e[r],e[s],e.scale,o,i)}const fd=["x","scaleX","originX"],hd=["y","scaleY","originY"];function Hs(t,e,n,r){zs(t.x,e,fd,n?n.x:void 0,r?r.x:void 0),zs(t.y,e,hd,n?n.y:void 0,r?r.y:void 0)}function $s(t){return t.translate===0&&t.scale===1}function pa(t){return $s(t.x)&&$s(t.y)}function dd(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 ma(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 qs(t){return K(t.x)/K(t.y)}class pd{constructor(){this.members=[]}add(e){kr(this.members,e),e.scheduleRender()}remove(e){if(Mr(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(s=>e===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const o=this.members[s];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:s}=e.options;s===!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 Gs(t,e,n){let r="";const s=t.x.translate/e.x,o=t.y.translate/e.y;if((s||o)&&(r=`translate3d(${s}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 i=t.x.scale*e.x,a=t.y.scale*e.y;return(i!==1||a!==1)&&(r+=`scale(${i}, ${a})`),r||"none"}const md=(t,e)=>t.depth-e.depth;class gd{constructor(){this.children=[],this.isDirty=!1}add(e){kr(this.children,e),this.isDirty=!0}remove(e){Mr(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(md),this.isDirty=!1,this.children.forEach(e)}}function yd(t,e){const n=performance.now(),r=({timestamp:s})=>{const o=s-n;o>=e&&(dt(r),t(o-e))};return M.read(r,!0),()=>dt(r)}function vd(t){window.MotionDebug&&window.MotionDebug.record(t)}function xd(t){return t instanceof SVGElement&&t.tagName!=="svg"}function bd(t,e,n){const r=G(t)?t:Kt(t);return r.start(Vr("",r,e,n)),r.animation}const Xs=["","X","Y","Z"],wd={visibility:"hidden"},Ks=1e3;let Ed=0;const kt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ga({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(i={},a=e==null?void 0:e()){this.id=Ed++,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(Pd),this.nodes.forEach(Vd),this.nodes.forEach(kd),this.nodes.forEach(Ad),vd(kt)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,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 gd)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Lr),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=xd(i),this.instance=i;const{layoutId:l,layout:c,visualElement:f}=this.options;if(f&&!f.current&&f.mount(i),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(i,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=yd(h,250),_e.hasAnimatedSinceResize&&(_e.hasAnimatedSinceResize=!1,this.nodes.forEach(Js))})}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()||_d,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=f.getProps(),w=!this.targetLayout||!ma(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={...Or(g,"layout"),onPlay:y,onComplete:b};(f.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else h||Js(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.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(Md),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!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(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ys);return}this.isUpdating||this.nodes.forEach(Rd),this.isUpdating=!1,this.nodes.forEach(Od),this.nodes.forEach(Sd),this.nodes.forEach(Td),this.clearAllSnapshots();const a=performance.now();H.delta=Tt(0,1e3/60,a-H.timestamp),H.timestamp=a,H.isProcessing=!0,En.update.process(H),En.preRender.process(H),En.render.process(H),H.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Cd),this.sharedNodes.forEach(Ld)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.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 i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=F(),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,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:i,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;const i=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!pa(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,f=c!==this.prevTransformTemplateValue;i&&(a||Vt(this.latestValues)||f)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),Nd(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return F();const a=i.measureViewportBox(),{scroll:l}=this.root;return l&&(bt(a.x,l.offset.x),bt(a.y,l.offset.y)),a}removeElementScroll(i){const a=F();Y(a,i);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,i);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(i,a=!1){const l=F();Y(l,i);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(i){const a=F();Y(a,i);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Vt(c.latestValues))continue;Qn(c.latestValues)&&c.updateSnapshot();const f=F(),u=c.measurePageBox();Y(f,u),Hs(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,f)}return Vt(this.latestValues)&&Hs(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==H.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!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(!(i||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=H.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=F(),this.relativeTargetOrigin=F(),fe(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=F(),this.targetWithTransforms=F()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Fh(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Y(this.target,this.layout.layoutBox),la(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=F(),this.relativeTargetOrigin=F(),fe(this.relativeTargetOrigin,this.target,d.target),Y(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}kt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Qn(this.parent.latestValues)||aa(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 i;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===H.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;Gh(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;ue(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Gs(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(i=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),i){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(i,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=F(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=d!==m,y=this.getStack(),b=!y||y.members.length<=1,w=!!(g&&!b&&this.options.crossfade===!0&&!this.path.some(Dd));this.animationProgress=0;let v;this.mixTargetDelta=E=>{const S=E/1e3;Zs(u.x,i.x,S),Zs(u.y,i.y,S),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fe(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jd(this.relativeTarget,this.relativeTargetOrigin,h,S),v&&dd(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=F()),Y(v,this.relativeTarget)),g&&(this.animationValues=f,ad(f,c,this.latestValues,S,w,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){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=M.update(()=>{_e.hasAnimatedSinceResize=!0,this.currentAnimation=bd(0,Ks,{...i,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ks),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:f}=i;if(!(!a||!l||!c)){if(this!==i&&this.layout&&c&&ya(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||F();const u=K(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+u;const h=K(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+h}Y(a,l),Gt(a,f),ue(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new pd),this.sharedNodes.get(i).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 i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:a}=this.options;return a?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:a}=this.options;return a?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:l}=i;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let f=0;f<Xs.length;f++){const u="rotate"+Xs[f];l[u]&&(c[u]=l[u],i.setStaticValue(u,0))}i.render();for(const f in c)i.setStaticValue(f,c[f]);i.scheduleRender()}getProjectionStyles(i){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return wd;const c={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=De(i==null?void 0:i.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=De(i==null?void 0:i.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=Gs(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 Ue){if(h[g]===void 0)continue;const{correct:y,applyTo:b}=Ue[g],w=c.transform==="none"?h[g]:y(h[g],u);if(b){const v=b.length;for(let E=0;E<v;E++)c[b[E]]=w}else c[g]=w}return this.options.layoutId&&(c.pointerEvents=u===this?De(i==null?void 0:i.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var a;return(a=i.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Ys),this.root.sharedNodes.clear()}}}function Sd(t){t.updateLayout()}function Td(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:s}=t.layout,{animationType:o}=t.options,i=n.source!==t.layout.source;o==="size"?J(u=>{const h=i?n.measuredBox[u]:n.layoutBox[u],d=K(h);h.min=r[u].min,h.max=h.min+d}):ya(o,n.layoutBox,r)&&J(u=>{const h=i?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();ue(a,r,n.layoutBox);const l=qt();i?ue(l,t.applyTransform(s,!0),n.measuredBox):ue(l,r,n.layoutBox);const c=!pa(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=F();fe(m,n.layoutBox,h.layoutBox);const g=F();fe(g,r,d.layoutBox),ma(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 Pd(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 Ad(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Cd(t){t.clearSnapshot()}function Ys(t){t.clearMeasurements()}function Rd(t){t.isLayoutDirty=!1}function Od(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Js(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Vd(t){t.resolveTargetDelta()}function kd(t){t.calcProjection()}function Md(t){t.resetRotation()}function Ld(t){t.removeLeadSnapshot()}function Zs(t,e,n){t.translate=D(e.translate,0,n),t.scale=D(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Qs(t,e,n,r){t.min=D(e.min,n.min,r),t.max=D(e.max,n.max,r)}function jd(t,e,n,r){Qs(t.x,e.x,n.x,r),Qs(t.y,e.y,n.y,r)}function Dd(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const _d={duration:.45,ease:[.4,0,.1,1]},ti=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),ei=ti("applewebkit/")&&!ti("chrome/")?Math.round:N;function ni(t){t.min=ei(t.min),t.max=ei(t.max)}function Nd(t){ni(t.x),ni(t.y)}function ya(t,e,n){return t==="position"||t==="preserve-aspect"&&!Jn(qs(e),qs(n),.2)}const Fd=ga({attachResizeListener:(t,e)=>ct(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ln={current:void 0},va=ga({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ln.current){const t=new Fd({});t.mount(window),t.setOptions({layoutScroll:!0}),Ln.current=t}return Ln.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Bd={pan:{Feature:ed},drag:{Feature:td,ProjectionNode:va,MeasureLayout:fa}},Id=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ud(t){const e=Id.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}function er(t,e,n=1){const[r,s]=Ud(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const i=o.trim();return ta(i)?parseFloat(i):i}else return Hn(s)?er(s,e,n+1):s}function Wd(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(s=>{const o=s.get();if(!Hn(o))return;const i=er(o,r);i&&s.set(i)});for(const s in e){const o=e[s];if(!Hn(o))continue;const i=er(o,r);i&&(e[s]=i,n||(n={}),n[s]===void 0&&(n[s]=o))}return{target:e,transitionEnd:n}}const zd=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),xa=t=>zd.has(t),Hd=t=>Object.keys(t).some(xa),ri=t=>t===Dt||t===C,si=(t,e)=>parseFloat(t.split(", ")[e]),ii=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/);if(s)return si(s[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?si(o[1],t):0}},$d=new Set(["x","y","z"]),qd=xe.filter(t=>!$d.has(t));function Gd(t){const e=[];return qd.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 Yt={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:ii(4,13),y:ii(5,14)};Yt.translateX=Yt.x;Yt.translateY=Yt.y;const Xd=(t,e,n)=>{const r=e.measureViewportBox(),s=e.current,o=getComputedStyle(s),{display:i}=o,a={};i==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(c=>{a[c]=Yt[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]=Yt[c](l,o)}),t},Kd=(t,e,n={},r={})=>{e={...e},r={...r};const s=Object.keys(e).filter(xa);let o=[],i=!1;const a=[];if(s.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let f=n[l],u=re(f);const h=e[l];let d;if(ze(h)){const m=h.length,g=h[0]===null?1:0;f=h[g],u=re(f);for(let y=g;y<m&&h[y]!==null;y++)d?Tr(re(h[y])===d):d=re(h[y])}else d=re(h);if(u!==d)if(ri(u)&&ri(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):(i||(o=Gd(t),i=!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=Xd(e,t,a);return o.length&&o.forEach(([f,u])=>{t.getValue(f).set(u)}),t.render(),rn&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:e,transitionEnd:r}};function Yd(t,e,n,r){return Hd(e)?Kd(t,e,n,r):{target:e,transitionEnd:r}}const Jd=(t,e,n,r)=>{const s=Wd(t,e,r);return e=s.target,r=s.transitionEnd,Yd(t,e,n,r)},nr={current:null},ba={current:!1};function Zd(){if(ba.current=!0,!!rn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nr.current=t.matches;t.addListener(e),e()}else nr.current=!1}function Qd(t,e,n){const{willChange:r}=e;for(const s in e){const o=e[s],i=n[s];if(G(o))t.addValue(s,o),Ge(r)&&r.add(s);else if(G(i))t.addValue(s,Kt(o,{owner:t})),Ge(r)&&r.remove(s);else if(i!==o)if(t.hasValue(s)){const a=t.getValue(s);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(s);t.addValue(s,Kt(a!==void 0?a:o,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const oi=new WeakMap,wa=Object.keys(pe),tp=wa.length,ai=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ep=gr.length;class np{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:s,visualState:o},i={}){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=()=>M.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=s,this.options=i,this.isControllingVariants=on(n),this.isVariantNode=so(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),Ge(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,oi.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)),ba.current||Zd(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:nr.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){oi.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=jt.has(e),s=n.on("change",i=>{this.latestValues[e]=i,this.props.onUpdate&&M.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{s(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,s,o){let i,a;for(let l=0;l<tp;l++){const c=wa[l],{isEnabled:f,Feature:u,ProjectionNode:h,MeasureLayout:d}=pe[c];h&&(i=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&&i){this.projection=new i(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):F()}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<ai.length;r++){const s=ai[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o=e["on"+s];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=Qd(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<ep;r++){const s=gr[r],o=this.props[s];(de(o)||o===!1)&&(n[s]=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=Kt(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,s=typeof r=="string"||typeof r=="object"?(n=Sr(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!G(o)?o:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Lr),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Ea extends np{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:s},o){let i=xh(r,e||{},this);if(s&&(n&&(n=s(n)),r&&(r=s(r)),i&&(i=s(i))),o){yh(this,r,i);const a=Jd(this,r,i,n);n=a.transitionEnd,r=a.target}return{transition:e,transitionEnd:n,...r}}}function rp(t){return window.getComputedStyle(t)}class sp extends Ea{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(jt.has(n)){const r=Rr(n);return r&&r.default||0}else{const r=rp(e),s=(co(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ca(e,n)}build(e,n,r,s){vr(e,n,r,s.transformTemplate)}scrapeMotionValuesFromProps(e,n){return Er(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,s){go(e,n,r,s)}}class ip extends Ea{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(jt.has(n)){const r=Rr(n);return r&&r.default||0}return n=yo.has(n)?n:pr(n),e.getAttribute(n)}measureInstanceViewportBox(){return F()}scrapeMotionValuesFromProps(e,n){return xo(e,n)}build(e,n,r,s){br(e,n,r,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,r,s){vo(e,n,r,s)}mount(e){this.isSVGTag=wr(e.tagName),super.mount(e)}}const op=(t,e)=>yr(t)?new ip(e,{enableHardwareAcceleration:!1}):new sp(e,{enableHardwareAcceleration:!0}),ap={layout:{ProjectionNode:va,MeasureLayout:fa}},lp={...jh,...Qu,...Bd,...ap},cp=au((t,e)=>Iu(t,e,lp,op));/**
7
- * @remix-run/router v1.15.3
8
- *
9
- * Copyright (c) Remix Software Inc.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE.md file in the root directory of this source tree.
13
- *
14
- * @license MIT
15
- */function ge(){return ge=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},ge.apply(this,arguments)}var Lt;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Lt||(Lt={}));const li="popstate";function up(t){t===void 0&&(t={});function e(r,s){let{pathname:o,search:i,hash:a}=r.location;return rr("",{pathname:o,search:i,hash:a},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Ke(s)}return hp(e,n,null,t)}function tt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function fp(){return Math.random().toString(36).substr(2,8)}function ci(t,e){return{usr:t.state,key:t.key,idx:e}}function rr(t,e,n,r){return n===void 0&&(n=null),ge({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?un(e):e,{state:n,key:e&&e.key||r||fp()})}function Ke(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 un(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 hp(t,e,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:o=!1}=r,i=s.history,a=Lt.Pop,l=null,c=f();c==null&&(c=0,i.replaceState(ge({},i.state,{idx:c}),""));function f(){return(i.state||{idx:null}).idx}function u(){a=Lt.Pop;let y=f(),b=y==null?null:y-c;c=y,l&&l({action:a,location:g.location,delta:b})}function h(y,b){a=Lt.Push;let w=rr(g.location,y,b);n&&n(w,y),c=f()+1;let v=ci(w,c),E=g.createHref(w);try{i.pushState(v,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(E)}o&&l&&l({action:a,location:g.location,delta:1})}function d(y,b){a=Lt.Replace;let w=rr(g.location,y,b);n&&n(w,y),c=f();let v=ci(w,c),E=g.createHref(w);i.replaceState(v,"",E),o&&l&&l({action:a,location:g.location,delta:0})}function m(y){let b=s.location.origin!=="null"?s.location.origin:s.location.href,w=typeof y=="string"?y:Ke(y);return w=w.replace(/ $/,"%20"),tt(b,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,b)}let g={get action(){return a},get location(){return t(s,i)},listen(y){if(l)throw new Error("A history only accepts one active listener");return s.addEventListener(li,u),l=y,()=>{s.removeEventListener(li,u),l=null}},createHref(y){return e(s,y)},createURL:m,encodeLocation(y){let b=m(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:d,go(y){return i.go(y)}};return g}var ui;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(ui||(ui={}));function Sa(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 dp(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:s=""}=typeof t=="string"?un(t):t;return{pathname:n?n.startsWith("/")?n:pp(n,e):e,search:gp(r),hash:yp(s)}}function pp(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function jn(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 mp(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Ta(t,e){let n=mp(t);return e?n.map((r,s)=>s===t.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Pa(t,e,n,r){r===void 0&&(r=!1);let s;typeof t=="string"?s=un(t):(s=ge({},t),tt(!s.pathname||!s.pathname.includes("?"),jn("?","pathname","search",s)),tt(!s.pathname||!s.pathname.includes("#"),jn("#","pathname","hash",s)),tt(!s.search||!s.search.includes("#"),jn("#","search","hash",s)));let o=t===""||s.pathname==="",i=o?"/":s.pathname,a;if(i==null)a=n;else{let u=e.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),u-=1;s.pathname=h.join("/")}a=u>=0?e[u]:"/"}let l=dp(s,a),c=i&&i!=="/"&&i.endsWith("/"),f=(o||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const Aa=t=>t.join("/").replace(/\/\/+/g,"/"),gp=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,yp=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Ca=["post","put","patch","delete"];new Set(Ca);const vp=["get",...Ca];new Set(vp);/**
16
- * React Router v6.22.3
17
- *
18
- * Copyright (c) Remix Software Inc.
19
- *
20
- * This source code is licensed under the MIT license found in the
21
- * LICENSE.md file in the root directory of this source tree.
22
- *
23
- * @license MIT
24
- */function Ye(){return Ye=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},Ye.apply(this,arguments)}const Ra=p.reactExports.createContext(null),Qt=p.reactExports.createContext(null),jr=p.reactExports.createContext(null),fn=p.reactExports.createContext({outlet:null,matches:[],isDataRoute:!1});function xp(t,e){let{relative:n}=e===void 0?{}:e;hn()||tt(!1);let{basename:r,navigator:s}=p.reactExports.useContext(Qt),{hash:o,pathname:i,search:a}=Va(t,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:Aa([r,i])),s.createHref({pathname:l,search:a,hash:o})}function hn(){return p.reactExports.useContext(jr)!=null}function dn(){return hn()||tt(!1),p.reactExports.useContext(jr).location}function Oa(t){p.reactExports.useContext(Qt).static||p.reactExports.useLayoutEffect(t)}function bp(){let{isDataRoute:t}=p.reactExports.useContext(fn);return t?Pp():wp()}function wp(){hn()||tt(!1);let t=p.reactExports.useContext(Ra),{basename:e,future:n,navigator:r}=p.reactExports.useContext(Qt),{matches:s}=p.reactExports.useContext(fn),{pathname:o}=dn(),i=JSON.stringify(Ta(s,n.v7_relativeSplatPath)),a=p.reactExports.useRef(!1);return Oa(()=>{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=Pa(c,JSON.parse(i),o,f.relative==="path");t==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:Aa([e,u.pathname])),(f.replace?r.replace:r.push)(u,f.state,f)},[e,r,i,o,t])}function Va(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=p.reactExports.useContext(Qt),{matches:s}=p.reactExports.useContext(fn),{pathname:o}=dn(),i=JSON.stringify(Ta(s,r.v7_relativeSplatPath));return p.reactExports.useMemo(()=>Pa(t,JSON.parse(i),o,n==="path"),[t,i,o,n])}var ka=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(ka||{}),Ma=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}(Ma||{});function Ep(t){let e=p.reactExports.useContext(Ra);return e||tt(!1),e}function Sp(t){let e=p.reactExports.useContext(fn);return e||tt(!1),e}function Tp(t){let e=Sp(),n=e.matches[e.matches.length-1];return n.route.id||tt(!1),n.route.id}function Pp(){let{router:t}=Ep(ka.UseNavigateStable),e=Tp(Ma.UseNavigateStable),n=p.reactExports.useRef(!1);return Oa(()=>{n.current=!0}),p.reactExports.useCallback(function(s,o){o===void 0&&(o={}),n.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,Ye({fromRouteId:e},o)))},[t,e])}function Ap(t){let{basename:e="/",children:n=null,location:r,navigationType:s=Lt.Pop,navigator:o,static:i=!1,future:a}=t;hn()&&tt(!1);let l=e.replace(/^\/*/,"/"),c=p.reactExports.useMemo(()=>({basename:l,navigator:o,static:i,future:Ye({v7_relativeSplatPath:!1},a)}),[l,a,o,i]);typeof r=="string"&&(r=un(r));let{pathname:f="/",search:u="",hash:h="",state:d=null,key:m="default"}=r,g=p.reactExports.useMemo(()=>{let y=Sa(f,l);return y==null?null:{location:{pathname:y,search:u,hash:h,state:d,key:m},navigationType:s}},[l,f,u,h,d,m,s]);return g==null?null:p.reactExports.createElement(Qt.Provider,{value:c},p.reactExports.createElement(jr.Provider,{children:n,value:g}))}new Promise(()=>{});/**
25
- * React Router DOM v6.22.3
26
- *
27
- * Copyright (c) Remix Software Inc.
28
- *
29
- * This source code is licensed under the MIT license found in the
30
- * LICENSE.md file in the root directory of this source tree.
31
- *
32
- * @license MIT
33
- */function sr(){return sr=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},sr.apply(this,arguments)}function Cp(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,o;for(o=0;o<r.length;o++)s=r[o],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function Rp(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Op(t,e){return t.button===0&&(!e||e==="_self")&&!Rp(t)}const Vp=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],kp="6";try{window.__reactRouterVersion=kp}catch{}const Mp="startTransition",fi=p.React[Mp];function Lp(t){let{basename:e,children:n,future:r,window:s}=t,o=p.reactExports.useRef();o.current==null&&(o.current=up({window:s,v5Compat:!0}));let i=o.current,[a,l]=p.reactExports.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},f=p.reactExports.useCallback(u=>{c&&fi?fi(()=>l(u)):l(u)},[l,c]);return p.reactExports.useLayoutEffect(()=>i.listen(f),[i,f]),p.reactExports.createElement(Ap,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const jp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_p=p.reactExports.forwardRef(function(e,n){let{onClick:r,relative:s,reloadDocument:o,replace:i,state:a,target:l,to:c,preventScrollReset:f,unstable_viewTransition:u}=e,h=Cp(e,Vp),{basename:d}=p.reactExports.useContext(Qt),m,g=!1;if(typeof c=="string"&&Dp.test(c)&&(m=c,jp))try{let v=new URL(window.location.href),E=c.startsWith("//")?new URL(v.protocol+c):new URL(c),S=Sa(E.pathname,d);E.origin===v.origin&&S!=null?c=S+E.search+E.hash:g=!0}catch{}let y=xp(c,{relative:s}),b=Np(c,{replace:i,state:a,target:l,preventScrollReset:f,relative:s,unstable_viewTransition:u});function w(v){r&&r(v),v.defaultPrevented||b(v)}return p.reactExports.createElement("a",sr({},h,{href:m||y,onClick:g||o?r:w,ref:n,target:l}))});var hi;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(hi||(hi={}));var di;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(di||(di={}));function Np(t,e){let{target:n,replace:r,state:s,preventScrollReset:o,relative:i,unstable_viewTransition:a}=e===void 0?{}:e,l=bp(),c=dn(),f=Va(t,{relative:i});return p.reactExports.useCallback(u=>{if(Op(u,n)){u.preventDefault();let h=r!==void 0?r:Ke(c)===Ke(f);l(t,{replace:h,state:s,preventScrollReset:o,relative:i,unstable_viewTransition:a})}},[c,l,f,r,s,n,t,o,i,a])}function Dr(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,o;for(o=0;o<r.length;o++)s=r[o],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}const Fp=Object.freeze(Object.defineProperty({__proto__:null,default:Dr},Symbol.toStringTag,{value:"Module"}));function Jt(){return Jt=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},Jt.apply(this,arguments)}const Bp=Object.freeze(Object.defineProperty({__proto__:null,default:Jt},Symbol.toStringTag,{value:"Module"}));function ir(t,e){return ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},ir(t,e)}function La(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ir(t,e)}function Dn(t,e,n){if(n||arguments.length===2)for(var r=0,s=e.length,o;r<s;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))}/*!
34
- * content-type
35
- * Copyright(c) 2015 Douglas Christopher Wilson
36
- * MIT Licensed
37
- */var pi=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Ip=/\\([\u000b\u0020-\u00ff])/g,Up=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Wp=zp;function zp(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?Hp(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(!Up.test(r))throw new TypeError("invalid media type");var s=new $p(r.toLowerCase());if(n!==-1){var o,i,a;for(pi.lastIndex=n;i=pi.exec(e);){if(i.index!==n)throw new TypeError("invalid parameter format");n+=i[0].length,o=i[1].toLowerCase(),a=i[2],a.charCodeAt(0)===34&&(a=a.slice(1,-1),a.indexOf("\\")!==-1&&(a=a.replace(Ip,"$1"))),s.parameters[o]=a}if(n!==e.length)throw new TypeError("invalid parameter format")}return s}function Hp(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 $p(t){this.parameters=Object.create(null),this.type=t}var Wt=new Map,ja=function(e){return e.cloneNode(!0)},mi=function(){return window.location.protocol==="file:"},Da=function(e,n,r){var s=new XMLHttpRequest;s.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&s.readyState===2){var o=s.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var i=Wp(o).type;if(!(i==="image/svg+xml"||i==="text/plain"))throw new Error("Invalid content type: ".concat(i))}if(s.readyState===4){if(s.status===404||s.responseXML===null)throw new Error(mi()?"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(s.status===200||mi()&&s.status===0)r(null,s);else throw new Error("There was a problem injecting the SVG: "+s.status+" "+s.statusText)}}catch(a){if(s.abort(),a instanceof Error)r(a,s);else throw a}},s.open("GET",e),s.withCredentials=n,s.overrideMimeType&&s.overrideMimeType("text/xml"),s.send()},wt={},gi=function(e,n){wt[e]=wt[e]||[],wt[e].push(n)},qp=function(e){for(var n=function(i,a){setTimeout(function(){if(Array.isArray(wt[e])){var l=Wt.get(e),c=wt[e][i];l instanceof SVGSVGElement&&c(null,ja(l)),l instanceof Error&&c(l),i===wt[e].length-1&&delete wt[e]}},0)},r=0,s=wt[e].length;r<s;r++)n(r)},Gp=function(e,n,r){if(Wt.has(e)){var s=Wt.get(e);if(s===void 0){gi(e,r);return}if(s instanceof SVGSVGElement){r(null,ja(s));return}}Wt.set(e,void 0),gi(e,r),Da(e,n,function(o,i){var a;o?Wt.set(e,o):((a=i.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&Wt.set(e,i.responseXML.documentElement),qp(e)})},Xp=function(e,n,r){Da(e,n,function(s,o){var i;s?r(s):((i=o.responseXML)===null||i===void 0?void 0:i.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},Kp=0,Yp=function(){return++Kp},rt=[],yi={},Jp="http://www.w3.org/2000/svg",_n="http://www.w3.org/1999/xlink",vi=function(e,n,r,s,o,i,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=s?Gp:Xp;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(Dn(Dn(Dn([],(u.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();u.setAttribute("class",y);var b=e.getAttribute("style");b&&u.setAttribute("style",b),u.setAttribute("data-src",l);var w=[].filter.call(e.attributes,function(z){return/^data-\w[\w-]*$/.test(z.name)});if(Array.prototype.forEach.call(w,function(z){z.name&&z.value&&u.setAttribute(z.name,z.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(z){E=z,T=v[z],S=u.querySelectorAll(E+"[id]");for(var pt=function(Ft,pn){P=S[Ft].id,A=P+"-"+Yp();var Ct;Array.prototype.forEach.call(T,function(mn){Ct=u.querySelectorAll("["+mn+'*="'+P+'"]');for(var Se=0,Ua=Ct.length;Se<Ua;Se++){var Br=Ct[Se].getAttribute(mn);Br&&!Br.match(new RegExp('url\\("?#'+P+'"?\\)'))||Ct[Se].setAttribute(mn,"url(#"+A+")")}});for(var lt=u.querySelectorAll("[*|href]"),Bt=[],It=0,te=lt.length;It<te;It++){var Rt=lt[It].getAttributeNS(_n,"href");Rt&&Rt.toString()==="#"+S[Ft].id&&Bt.push(lt[It])}for(var Q=0,Fr=Bt.length;Q<Fr;Q++)Bt[Q].setAttributeNS(_n,"href","#"+A);S[Ft].id=A},_t=0,k=S.length;_t<k;_t++)pt(_t)})}u.removeAttribute("xmlns:a");for(var R=u.querySelectorAll("script"),_=[],V,j,U=0,W=R.length;U<W;U++)j=R[U].getAttribute("type"),(!j||j==="application/ecmascript"||j==="application/javascript"||j==="text/javascript")&&(V=R[U].innerText||R[U].textContent,V&&_.push(V),u.removeChild(R[U]));if(_.length>0&&(n==="always"||n==="once"&&!yi[l])){for(var et=0,I=_.length;et<I;et++)new Function(_[et])(window);yi[l]=!0}var nt=u.querySelectorAll("style");if(Array.prototype.forEach.call(nt,function(z){z.textContent+=""}),u.setAttribute("xmlns",Jp),u.setAttribute("xmlns:xlink",_n),i(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)})},Zp=function(e,n){var r=n===void 0?{}:n,s=r.afterAll,o=s===void 0?function(){}:s,i=r.afterEach,a=i===void 0?function(){}:i,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,b=y===void 0?!0:y;if(e&&"length"in e)for(var w=0,v=0,E=e.length;v<E;v++)vi(e[v],d,b,u,g,c,function(S,T){a(S,T),e&&"length"in e&&e.length===++w&&o(w)});else e?vi(e,d,b,u,g,c,function(S,T){a(S,T),o(1),e=null}):o(0)},Qp=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},tm=function(e,n){for(var r in e)if(!(r in n))return!0;for(var s in n)if(e[s]!==n[s])return!0;return!1},em=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Ve="http://www.w3.org/2000/svg",xi="http://www.w3.org/1999/xlink",_r=function(t){La(e,t);function e(){for(var r,s=arguments.length,o=new Array(s),i=0;i<s;i++)o[i]=arguments[i];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 s=this;if(this.reactWrapper instanceof Qp(this.reactWrapper).Node){var o=this.props,i=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,b,w;y==="svg"?(b=document.createElementNS(Ve,y),b.setAttribute("xmlns",Ve),b.setAttribute("xmlns:xlink",xi),w=document.createElementNS(Ve,y)):(b=document.createElement(y),w=document.createElement(y)),b.appendChild(w),w.dataset.src=f,this.nonReactWrapper=this.reactWrapper.appendChild(b);var v=function(P){if(s.removeSVG(),!s._isMounted){d(P);return}s.setState(function(){return{hasError:!0,isLoading:!1}},function(){d(P)})},E=function(P,A){if(P){v(P);return}s._isMounted&&s.setState(function(){return{isLoading:!1}},function(){try{g(A)}catch(R){v(R)}})},S=function(P){if(P.setAttribute("role","img"),i){var A=P.querySelector(":scope > desc");A&&P.removeChild(A);var R=document.createElement("desc");R.innerHTML=i,P.prepend(R)}if(u){var _=P.querySelector(":scope > title");_&&P.removeChild(_);var V=document.createElement("title");V.innerHTML=u,P.prepend(V)}try{m(P)}catch(j){v(j)}};Zp(w,{afterEach:E,beforeEach:S,cacheRequests:h,evalScripts:a,httpRequestWithCredentials:l,renumerateIRIElements:c})}},n.removeSVG=function(){var s;(s=this.nonReactWrapper)!=null&&s.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(s){var o=this;tm(Jt({},s),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 s=this.props;s.afterInjection,s.beforeInjection,s.desc,s.evalScripts;var o=s.fallback;s.httpRequestWithCredentials;var i=s.loading;s.renumerateIRIElements,s.src,s.title,s.useRequestCache;var a=s.wrapper,l=Dr(s,em),c=a;return p.reactExports.createElement(c,Jt({},l,{ref:this.refCallback},a==="svg"?{xmlns:Ve,xmlnsXlink:xi}:{}),this.state.isLoading&&i&&p.reactExports.createElement(i,null),this.state.hasError&&o&&p.reactExports.createElement(o,null))},e}(p.reactExports.Component);_r.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};_r.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 nm(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 rm(t){const{children:e,parentRef:n,onlyChild:r}=t,[s,o]=p.reactExports.useState({top:0,left:0});return p.reactExports.useLayoutEffect(()=>{if(n.current){const i=n.current.getBoundingClientRect();o({top:i.top,left:i.left+i.width})}},[n]),r?e:p.reactDomExports.createPortal(p.jsxRuntimeExports.jsx("div",{style:{position:"fixed",top:s.top,left:s.left,zIndex:1200},children:e}),n.current)}function _a({item:t,level:e=0,...n}){var R,_;const{isActive:r,isCollapsed:s,expanded:o,toggleExpand:i}=n,a=`level-${e}`,l=s?"collapsed":"expanded",c=r(t.id)?"active":"",f=(V,j=a)=>`${V} ${j} ${l} ${c}`,u=!!((R=t.children)!=null&&R.length),[h,d]=p.reactExports.useState(!1),m=p.reactExports.useRef(),g=window.location.origin,y=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},b=window.location.pathname.split("/")[1],w=y.pathname.split("/")[1],v=n.ssr||!g.includes("local")&&g!==y.origin||w!==b,E=u||e===0?"div":v?"a":_p,S=t.path||"#",T=e+1,P=u&&!(s&&T>=2&&!h),A=s||e===0?void 0:`${e}rem`;return p.jsxRuntimeExports.jsxs("div",{ref:m,className:f("menu-item__wrapper"),onMouseEnter:()=>s&&d(!0),onMouseLeave:()=>s&&d(!1),children:[p.jsxRuntimeExports.jsxs(E,{to:S,href:S,style:{paddingLeft:A,transition:"all 0.3s"},className:f("menu-item__link"),onClick:V=>{u&&(V.preventDefault(),s||i(t.id))},children:[e!==0&&p.jsxRuntimeExports.jsx(sm,{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(nm,{className:f(`menu-item__icon-arrow__icon ${o(t.id)?"open":"close"}`)})})]}),P&&p.jsxRuntimeExports.jsx(rm,{parentRef:m,onlyChild:!s||s&&T<2,children:p.jsxRuntimeExports.jsx(cp.div,{className:f("menu-item__dropdown",`level-${T}`),initial:{height:s||o(t.id)?"auto":0},animate:{height:s||o(t.id)?"auto":0},transition:{duration:.25},children:(_=t.children)==null?void 0:_.map(V=>p.reactExports.createElement(_a,{...n,key:V.id,item:V,level:T}))})})]})}function sm({item:t,cls:e}){var i,a;const[n,r]=p.reactExports.useState(!t.icon),s=()=>{r(!0)},o=(i=t.icon)==null?void 0:i.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(_r,{src:t.icon,beforeInjection:l=>{l.setAttribute("style","margin: 0 auto;"),l.querySelectorAll("path").forEach(f=>{f.hasAttribute("fill")&&f.setAttribute("fill","currentColor"),f.hasAttribute("stroke")&&f.setAttribute("stroke","currentColor")})}}):p.jsxRuntimeExports.jsx("img",{src:t.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:s})})}function im(){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 om(){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"})})}function am(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"})})}const lm=`.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.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}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.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:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%}.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.collapsed.level-1{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:37px}.menu-item__link.menu-item__link.collapsed.level-0{padding:0;height:0;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.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;opacity:1;transition:all .15s ease-in-out}.menu-item__label.level-1.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0,.menu-item__label.collapsed.level-1{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:0}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__wrapper.level-0.collapsed{display:none}.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,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.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{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}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}
38
- `;function cm(t){const{baseUrl:e,menuPath:n}=t,r=dn(),[s,o]=p.reactExports.useState([]),[i,a]=p.reactExports.useState(localStorage.getItem("isCollapsed")==="true"),[l,c]=p.reactExports.useState({}),f=Nr(s),[u,h]=p.reactExports.useState(window.location.href);p.reactExports.useEffect(()=>{h(window.location.href)},[r]);const d=Na(f,u).filter(S=>S.parentKey!==0);console.log("matchPaths:",u,r,d);const m=S=>{c({...l,[S]:!l[S]})},g=()=>{a(!i),localStorage.setItem("isCollapsed",JSON.stringify(!i))};p.reactExports.useLayoutEffect(()=>{(async()=>{var T,P;try{const R=e+(n||"/global-menu-config/api/v1/menu-items/user"),{data:_}=await Ui.get(R,{withCredentials:!0});let V=_.map(U=>({...U,parentKey:0}));V=Ba(V),t.replacePath&&(V=Fa(V,t.replacePath));const j=fm(V);c(j),o(V)}catch(A){console.log(A),Yc(((P=(T=A.response)==null?void 0:T.data)==null?void 0:P.errorMessage)||"Have error when get menu items")}})()},[e,n,t.replacePath]);const[y,b]=p.reactExports.useState(!1),w=i?"collapsed":"expanded",v=S=>`${S} ${w}`,E=p.reactExports.useRef(null);return p.jsxRuntimeExports.jsxs("div",{className:v("side-bar"),children:[p.jsxRuntimeExports.jsx("div",{className:v("wrap-section side-bar__wrapper-toggle-btn"),children:p.jsxRuntimeExports.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:g,children:i?p.jsxRuntimeExports.jsx(om,{}):p.jsxRuntimeExports.jsx(im,{})})}),p.jsxRuntimeExports.jsx(Ji,{ref:E,className:v("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:s.map(S=>{const T=P=>d.some(A=>A.id===P);return p.jsxRuntimeExports.jsx(_a,{item:S,isActive:T,isCollapsed:i,expanded:P=>l[P],toggleExpand:m,replacePath:t.replacePath,ssr:t.ssr},S.id)})}),p.jsxRuntimeExports.jsxs("div",{className:v("wrap-section side-bar__wrap-btn-logout"),children:[p.jsxRuntimeExports.jsxs("button",{className:v("side-bar__logout-btn"),onClick:()=>b(!0),children:[p.jsxRuntimeExports.jsx(am,{className:v("side-bar__icon-logout")}),p.jsxRuntimeExports.jsx("span",{className:v("side-bar__logout-btn__text"),children:"Logout"})]}),p.jsxRuntimeExports.jsx(p.LogoutConfirmModal,{isOpen:y,onClose:()=>b(!1),onConfirm:()=>t.logout?t.logout():Wc(t.baseUrl)})]})]})}function Nr(t){let e=[];for(const n of t)e.push(n),n.children&&(e=e.concat(Nr(n.children)));return e}function um(t,e){const n=new URL(t).searchParams,r=new URL(e).searchParams;return Array.from(r).filter(([s,o])=>o===n.get(s)).length}function Na(t,e){const n=new URL(e),r=t.filter(i=>i.path&&i.path.includes("http")).map(i=>({item:i,itemUrl:new URL(i.path),matchingParamsCount:um(e,i.path)})).sort((i,a)=>{const l=new URL(i.itemUrl).searchParams,c=new URL(a.itemUrl).searchParams;return Array.from(l).length-Array.from(c).length}).filter(({itemUrl:i})=>n.pathname===i.pathname).sort((i,a)=>a.matchingParamsCount-i.matchingParamsCount);let s=r.length>0?r[0].item:null;console.log("matchingItems:",r);let o=[];for(;s;)o=[s,...o],s=t.find(i=>i.id===(s==null?void 0:s.parentKey))||null;return o}function Fa(t,e){return t.map(n=>(n.path&&(n.path=e(n.path)),n.children&&n.children.length>0&&(n.children=Fa(n.children,e)),n))}function Ba(t){return t.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=Ba(n.children)),n))}function fm(t){const e=Nr(t),n=Na(e,window.location.href),r={};return n.forEach(s=>r[s.id]=!0),e.forEach(s=>{var o;(o=s.children)!=null&&o.length&&(r[s.id]=!0)}),r}function Ia(t){return p.jsxRuntimeExports.jsx(p.ShadowDomWrapper,{styles:[Uc,lm],style:{position:"sticky",zIndex:1200},children:p.jsxRuntimeExports.jsx(cm,{...t})})}function hm(t){return p.jsxRuntimeExports.jsx(Lp,{children:p.jsxRuntimeExports.jsx(Ia,{...t,ssr:!0})})}{const t=p.s(hm,{props:{baseUrl:"string",menuPath:"string",logout:"function",replacePath:"function",ssr:"boolean"}});customElements.define("global-menu",t)}exports.GlobalMenu=Ia;exports._extends=Jt;exports._extends$1=Bp;exports._inheritsLoose=La;exports._objectWithoutPropertiesLoose=Dr;exports.axios=Ui;exports.color=zn;exports.objectWithoutPropertiesLoose=Fp;